diff --git a/public/index.html b/public/index.html index fa910b4..59e5941 100644 --- a/public/index.html +++ b/public/index.html @@ -221,6 +221,7 @@ Error message and password prompt {"name":"Relink","title":"$:/plugins/flibbles/relink","description":"Flexibility when relinking renamed tiddlers","author":"Flibbles","version":"2.3.1","core-version":">=5.1.22","source":"https://github.com/flibbles/tw5-relink","demo":"http://flibbles.github.io/tw5-relink/","list":"readme configuration license","dependents":"","plugin-type":"plugin","type":"application/json","text":"{\"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// We come before commands because they may do renaming, or jasmine testing\\nexports.before = ['commands'];\\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 !== undefined) {\\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 modifyField = utils.touchModifyField(this) ? this.getModificationFields() : undefined;\\n\\t\\t\\tvar newTiddler = new $tw.Tiddler(tiddler,changes,modifyField)\\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.lastRelinks = Object.create(null);\\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\\tvar lastRelink = this.lastRelinks[fromTitle];\\n\\tif (lastRelink) {\\n\\t\\tif (lastRelink.to === 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 = lastRelink.cache;\\n\\t\\t\\treturn lastRelink.results;\\n\\t\\t}\\n\\t\\tshortlist = buildShortlist(lastRelink);\\n\\t}\\n\\tvar results = utils.getRelinkResults(this.wiki, fromTitle, toTitle, this.context, shortlist, options);\\n\\tif (Object.keys(this.lastRelinks).length > 3) {\\n\\t\\t// The cache got a little large. wipe it clean.\\n\\t\\tthis.lastRelinks = Object.create(null);\\n\\t}\\n\\tthis.lastRelinks[fromTitle] = {\\n\\t\\tfrom: fromTitle,\\n\\t\\tresults: results,\\n\\t\\tto: toTitle,\\n\\t\\tcache: options.cache,\\n\\t\\tmaybeRelevant: Object.create(null)};\\n\\treturn results;\\n};\\n\\n// Returns all tiddlers that don't have anything referencing it.\\nIndexer.prototype.orphans = function() {\\n\\tthis._upkeep();\\n\\tvar results = [];\\n\\tfor (var title in this.index) {\\n\\t\\tif (!this.backIndex[title]\\n\\t\\t|| Object.keys(this.backIndex[title]).length === 0) {\\n\\t\\t\\tresults.push(title);\\n\\t\\t}\\n\\t}\\n\\treturn results;\\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 \u003C 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._decacheRelink(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._decacheRelink(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._decacheRelink = function(title) {\\n\\tvar tiddler = this.wiki.getTiddler(title);\\n\\tfor (var from in this.lastRelinks) {\\n\\t\\tvar lastRelink = this.lastRelinks[from];\\n\\t\\tif (title !== from\\n\\t\\t&& title !== lastRelink.to\\n\\t\\t&& (!tiddler\\n\\t\\t|| !$tw.utils.hop(tiddler.fields, 'draft.of') // is a draft\\n\\t\\t|| tiddler.fields['draft.of'] !== from// draft of target\\n\\t\\t|| references(this.index[title], from))) { // draft references target\\n\\t\\t\\t// This is not the draft of the last relinked title,\\n\\t\\t\\t// so our cached results should be wiped.\\n\\t\\t\\tlastRelink.maybeRelevant[title] = true;\\n\\t\\t\\t// Force this cached relink to partially refresh when it comes time\\n\\t\\t\\tlastRelink.to = undefined;\\n\\t\\t}\\n\\t}\\n};\\n\\nfunction references(list, item) {\\n\\treturn list !== undefined && list[item];\\n};\\n\\n// Compiles a short list of tiddlers we need to check for a rename.\\n// This list will be much faster to relink again.\\nfunction buildShortlist(lastRelink) {\\n\\tvar shortlist = Object.keys(lastRelink.results);\\n\\tfor (var title in lastRelink.maybeRelevant) {\\n\\t\\tif (lastRelink.results[title] === undefined) {\\n\\t\\t\\tshortlist.push(title);\\n\\t\\t}\\n\\t}\\n\\treturn shortlist;\\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(outputType, title, options) {\\n\\ttitle = \\\"$:/plugins/flibbles/relink/language/\\\" + title;\\n\\treturn options.wiki.renderTiddler(outputType, title, options);\\n};\\n\\nvar logger;\\n\\nexports.warn = function(string, options) {\\n\\tif (!logger) {\\n\\t\\tlogger = new $tw.utils.Logger(\\\"Relinker\\\");\\n\\t}\\n\\tlogger.alert(string);\\n};\\n\\nexports.reportFailures = function(failureList, options) {\\n\\tvar alertString = this.getString(\\\"text/html\\\", \\\"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\\tthis.warn(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.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\\\"text/plain\\\",\\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\\\"text/plain\\\",\\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\\\"text/plain\\\",\\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\\\"text/plain\\\",\\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 \u003C 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\\\\*/\\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\\tresults[entry][nameField] = entry;\\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 !== undefined) {\\n\\t\\tif (tiddlerList === undefined) {\\n\\t\\t\\ttiddlerList = wiki.getRelinkableTitles();\\n\\t\\t}\\n\\t\\tfor (var i = 0; i \u003C tiddlerList.length; i++) {\\n\\t\\t\\tvar title = tiddlerList[i];\\n\\t\\t\\tvar tiddler = wiki.getTiddler(title);\\n\\t\\t\\tif(tiddler) {\\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\\tif (tiddler.fields[\\\"plugin-type\\\"]) {\\n\\t\\t\\t\\t\\t\\t\\t// We never change plugins, even if they have links\\n\\t\\t\\t\\t\\t\\t\\tchangeList[title] = {};\\n\\t\\t\\t\\t\\t\\t\\tchangeList[title][field] = {impossible: true};\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tchangeList[title] = entries;\\n\\t\\t\\t\\t\\t\\t}\\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\\nexports.touchModifyField = function(wiki) {\\n\\tvar tiddler = wiki.getTiddler(\\\"$:/config/flibbles/relink/touch-modify\\\");\\n\\treturn tiddler && tiddler.fields.text.trim() === \\\"yes\\\";\\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\\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\\nexports.getRelinkOrphans = function() {\\n\\treturn utils.getIndexer(this).orphans();\\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/orphans.js\":{\"text\":\"/*\\\\\\nmodule-type: relinkfilteroperator\\n\\nFilter function for [relink:orphans[]].\\nReturns all tiddlers which are not referenced in any way\\n\\n\\\\*/\\n\\n(function() {\\n\\n/*jslint node: true, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nexports.orphans = function(source,prefix,options) {\\n\\treturn options.wiki.getRelinkOrphans();\\n};\\n\\n})();\\n\",\"module-type\":\"relinkfilteroperator\",\"title\":\"$:/plugins/flibbles/relink/js/filteroperators/orphans.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(\\\"text/plain\\\", \\\"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 \u003C 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/settings/attributes.js\":{\"text\":\"/*\\\\\\n\\nFactory method for creating the attributes whitelist cache.\\n\\n\\\\*/\\n\\nvar utils = require('../utils');\\n\\nexports.name = \\\"attributes\\\";\\n\\nexports.generate = function(attributes, tiddler, key) {\\n\\tvar data = utils.getType(tiddler.fields.text.trim());\\n\\tif (data) {\\n\\t\\tdata.source = tiddler.fields.title;\\n\\t\\t// Secret feature. You can access a config tiddler's\\n\\t\\t// fields from inside the fieldtype handler. Cool\\n\\t\\t// tricks can be done with this.\\n\\t\\tdata.fields = tiddler.fields;\\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};\\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\",\"module-type\":\"relinksetting\",\"title\":\"$:/plugins/flibbles/relink/js/settings/attributes.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/settings/fields.js\":{\"text\":\"/*\\\\\\n\\nFactory method for creating the fields whitelist cache.\\n\\n\\\\*/\\n\\nvar utils = require('../utils');\\n\\nexports.name = \\\"fields\\\";\\n\\nexports.generate = function(fields, tiddler, name) {\\n\\tvar data = utils.getType(tiddler.fields.text.trim());\\n\\tif (data) {\\n\\t\\tdata.source = tiddler.fields.title;\\n\\t\\t// Secret feature. You can access a config tiddler's\\n\\t\\t// fields from inside the fieldtype handler. Cool\\n\\t\\t// tricks can be done with this.\\n\\t\\tdata.fields = tiddler.fields;\\n\\t\\tfields[name] = data;\\n\\t}\\n};\\n\",\"module-type\":\"relinksetting\",\"title\":\"$:/plugins/flibbles/relink/js/settings/fields.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/settings/fieldwidgets.js\":{\"text\":\"/*\\\\\\n\\nFactory method for creating the fieldattributes regexp cache.\\n\\n\\\\*/\\n\\nexports.name = \\\"fieldattributes\\\";\\n\\nexports.generate = function(fieldattributes, tiddler, key) {\\n\\tfieldattributes[key] = new RegExp(tiddler.fields.text.trim());\\n};\\n\",\"module-type\":\"relinksetting\",\"title\":\"$:/plugins/flibbles/relink/js/settings/fieldwidgets.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/settings/macros.js\":{\"text\":\"/*\\\\\\n\\nFactory method for creating the macros whitelist cache.\\n\\n\\\\*/\\n\\nvar utils = require('../utils');\\n\\nexports.name = \\\"macros\\\";\\n\\nexports.generate = function(macros, tiddler, key) {\\n\\tvar data = utils.getType(tiddler.fields.text.trim());\\n\\tif (data) {\\n\\t\\tdata.source = tiddler.fields.title;\\n\\t\\t// Secret feature. You can access a config tiddler's\\n\\t\\t// fields from inside the fieldtype handler. Cool\\n\\t\\t// tricks can be done with this.\\n\\t\\tdata.fields = tiddler.fields;\\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};\\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\",\"module-type\":\"relinksetting\",\"title\":\"$:/plugins/flibbles/relink/js/settings/macros.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/settings/operators.js\":{\"text\":\"/*\\\\\\n\\nFactory method for creating the operators whitelist cache.\\n\\n\\\\*/\\n\\nvar utils = require('../utils');\\n\\nexports.name = \\\"operators\\\";\\n\\nexports.generate = function(operators, tiddler, key) {\\n\\tvar data = utils.getType(tiddler.fields.text.trim());\\n\\tif (data) {\\n\\t\\tdata.source = tiddler.fields.title;\\n\\t\\t// Secret feature. You can access a config tiddler's\\n\\t\\t// fields from inside the fieldtype handler. Cool\\n\\t\\t// tricks can be done with this.\\n\\t\\tdata.fields = tiddler.fields;\\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\",\"module-type\":\"relinksetting\",\"title\":\"$:/plugins/flibbles/relink/js/settings/operators.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/fieldtypes/filter.js\":{\"text\":\"/*\\\\\\n\\nThis specifies logic for updating filters to reflect title changes.\\n\\n\\\\*/\\n\\nvar refHandler = require(\\\"$:/plugins/flibbles/relink/js/fieldtypes/reference\\\");\\nvar Rebuilder = require(\\\"$:/plugins/flibbles/relink/js/utils/rebuilder\\\");\\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar filterRelinkers = utils.getModulesByTypeAsHashmap('relinkfilter', 'name');\\n\\nexports.name = \\\"filter\\\";\\n\\nexports.report = function(filter, callback, options) {\\n\\tif (filter) {\\n\\t\\ttry {\\n\\t\\t\\tvar parseTree = options.wiki.parseFilter(filter);\\n\\t\\t} catch (e) {\\n\\t\\t\\t// It must have been malformed. Return without doing anything.\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\tfor (var module in filterRelinkers) {\\n\\t\\t\\tfilterRelinkers[module].report(parseTree, callback, options);\\n\\t\\t}\\n\\t}\\n};\\n\\n/**Returns undefined if no change was made.\\n */\\nexports.relink = function(filter, fromTitle, toTitle, options) {\\n\\tvar changed = false;\\n\\tvar results = {};\\n\\tvar parseTree;\\n\\tif (filter) {\\n\\t\\ttry {\\n\\t\\t\\tparseTree = options.wiki.parseFilter(filter);\\n\\t\\t} catch (e) {\\n\\t\\t\\t// It must have been malformed. Return without doing anything.\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\t\\tfor (var module in filterRelinkers) {\\n\\t\\t\\tvar entry = filterRelinkers[module].relink(parseTree, fromTitle, toTitle, options);\\n\\t\\t\\tif (entry) {\\n\\t\\t\\t\\tif (entry.changed) {\\n\\t\\t\\t\\t\\tchanged = true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (entry.impossible) {\\n\\t\\t\\t\\t\\tresults.impossible = true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\tif (changed) {\\n\\t\\tbuilder = assembleFilterString(parseTree, filter, options);\\n\\t\\tresults.output = builder.results();\\n\\t\\tresults.impossible = results.impossible || builder.impossible;\\n\\t\\treturn results;\\n\\t}\\n\\tif (results.impossible) {\\n\\t\\treturn results;\\n\\t}\\n\\treturn undefined\\n};\\n\\nfunction assembleFilterString(parseTree, oldFilter, options) {\\n\\tvar relinker = new Rebuilder(oldFilter),\\n\\t\\twordBarrierRequired = false,\\n\\t\\tp = 0;\\n\\tfor (var i = 0; i \u003C parseTree.length; i++) {\\n\\t\\tvar start = $tw.utils.skipWhiteSpace(oldFilter, p);\\n\\t\\tif (start !== p) {\\n\\t\\t\\t// There's some breathing room between this run and the last.\\n\\t\\t\\t// We'll never need to insert space.\\n\\t\\t\\twordBarrierRequired = false;\\n\\t\\t\\tp = start;\\n\\t\\t}\\n\\t\\tvar run = parseTree[i];\\n\\t\\tif (run.prefix) {\\n\\t\\t\\tif (wordBarrierRequired) {\\n\\t\\t\\t\\trelinker.add(' ', p, p);\\n\\t\\t\\t\\twordBarrierRequired = false;\\n\\t\\t\\t}\\n\\t\\t\\tp += run.prefix.length;\\n\\t\\t}\\n\\t\\tif (oldFilter[p] !== '['\\n\\t\\t|| (oldFilter[p+1] === '[' && run.operators.length === 1)) {\\n\\t\\t\\t// It's a string title\\n\\t\\t\\tvar text = run.operators[0].operands[0].text,\\n\\t\\t\\t\\tend,\\n\\t\\t\\t\\told;\\n\\t\\t\\tswitch (oldFilter[p]) {\\n\\t\\t\\tcase \\\"'\\\":\\n\\t\\t\\tcase '\\\"':\\n\\t\\t\\t\\t// p + 1 to skip the first quote\\n\\t\\t\\t\\t// indexOf() + 1 to skip the last\\n\\t\\t\\t\\tend = oldFilter.indexOf(oldFilter[p], p+1) + 1;\\n\\t\\t\\t\\told = oldFilter.substring(p+1, end-1);\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase '[':\\n\\t\\t\\t\\tend = oldFilter.indexOf(']', p);\\n\\t\\t\\t\\told = oldFilter.substring(p+2, end);\\n\\t\\t\\t\\t// +2 to get past the ']]'\\n\\t\\t\\t\\tend += 2;\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tdefault:\\n\\t\\t\\t\\tend = skipWord(oldFilter, p);\\n\\t\\t\\t\\told = oldFilter.substring(p, end);\\n\\t\\t\\t}\\n\\t\\t\\tif (old !== text) {\\n\\t\\t\\t\\tvar wrapped = wrapTitle(text, oldFilter[p] !== \\\"[\\\" ? oldFilter[p] : '', options);\\n\\t\\t\\t\\tif (wrapped !== undefined) {\\n\\t\\t\\t\\t\\t// This is a no-quote title. If breathing room is required,\\n\\t\\t\\t\\t\\t// add it. Also, we may need breathing room after it.\\n\\t\\t\\t\\t\\tif (wordBarrierRequired && wrapped[0] !== \\\"[\\\") {\\n\\t\\t\\t\\t\\t\\trelinker.add(' ', p, p);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\trelinker.add(wrapped, p, end);\\n\\t\\t\\t\\t\\twordBarrierRequired = wrapped === text;\\n\\t\\t\\t\\t} else if (options.placeholder) {\\n\\t\\t\\t\\t\\tvar ph = options.placeholder.getPlaceholderFor(text);\\n\\t\\t\\t\\t\\trelinker.add('[\u003C' + ph + '>]', p, end);\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\trelinker.impossible = true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tif (wordBarrierRequired && oldFilter[p] !== \\\"[\\\") {\\n\\t\\t\\t\\t\\trelinker.add(' ', p, p);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\twordBarrierRequired = oldFilter.indexOf(text) === p;\\n\\t\\t\\t}\\n\\t\\t\\tp = end;\\n\\t\\t} else {\\n\\t\\t\\twordBarrierRequired = false;\\n\\t\\t\\tp++;\\n\\t\\t\\tfor (var j = 0; j \u003C run.operators.length; j++) {\\n\\t\\t\\t\\tvar operator = run.operators[j];\\n\\t\\t\\t\\tvar start = p;\\n\\t\\t\\t\\tfor (var index = 0; index \u003C operator.operands.length; index++) {\\n\\t\\t\\t\\t\\tvar operand = operator.operands[index],\\n\\t\\t\\t\\t\\t\\tskip = false;\\n\\t\\t\\t\\t\\t\\tend,\\n\\t\\t\\t\\t\\t\\twrapped;\\n\\t\\t\\t\\t\\tif (operand.indirect) {\\n\\t\\t\\t\\t\\t\\tp = oldFilter.indexOf('{', p);\\n\\t\\t\\t\\t\\t\\tend = oldFilter.indexOf('}', p+1);\\n\\t\\t\\t\\t\\t\\twrapped = '{' + operand.text + '}';\\n\\t\\t\\t\\t\\t} else if (operand.variable) {\\n\\t\\t\\t\\t\\t\\tp = oldFilter.indexOf('\u003C', p);\\n\\t\\t\\t\\t\\t\\tend = oldFilter.indexOf('>', p+1);\\n\\t\\t\\t\\t\\t\\twrapped = '\u003C' + operand.text + '>';\\n\\t\\t\\t\\t\\t} else if (operator.regexp) {\\n\\t\\t\\t\\t\\t\\tp = oldFilter.indexOf('/', p);\\n\\t\\t\\t\\t\\t\\tend = oldFilter.indexOf('/', p+1);\\n\\t\\t\\t\\t\\t\\tskip = true;\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tp = oldFilter.indexOf('[', p);\\n\\t\\t\\t\\t\\t\\tend = oldFilter.indexOf(']', p+1);\\n\\t\\t\\t\\t\\t\\tif (!canBePrettyOperand(operand.text) || (options.inBraces && operand.text.indexOf('}}}') >= 0)) {\\n\\t\\t\\t\\t\\t\\t\\tif (options.placeholder) {\\n\\t\\t\\t\\t\\t\\t\\t\\tvar ph = options.placeholder.getPlaceholderFor(operand.text, operand.handler);\\n\\t\\t\\t\\t\\t\\t\\t\\twrapped = '\u003C' + ph + '>';\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\tskip = true;\\n\\t\\t\\t\\t\\t\\t\\t\\trelinker.impossible = true;\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\twrapped = '[' + operand.text + ']';\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tend++; // skip the closing brace\\n\\t\\t\\t\\t\\tif (index === 0) {\\n\\t\\t\\t\\t\\t\\t// If this is the first operand, let's first recreate the operator signature in case it was changed at all.\\n\\t\\t\\t\\t\\t\\trelinker.add(operatorSignature(operator, oldFilter, start), start, p);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif (!skip) {\\n\\t\\t\\t\\t\\t\\trelinker.add(wrapped, p, end);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tp = end;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tp++; // Skip the closing brace;\\n\\t\\t}\\n\\t}\\n\\treturn relinker;\\n};\\n\\nfunction operatorSignature(operator, oldText, start) {\\n\\t// If it's a title operand, try to determine if it was a shorthand.\\n\\tvar prefix = operator.prefix || '';\\n\\tvar signature = prefix + ((operator.operator === 'title' && oldText[start + prefix.length] !== 't')? '': operator.operator);\\n\\tif (operator.suffix) {\\n\\t\\tsignature += ':' + operator.suffix;\\n\\t}\\n\\treturn signature;\\n}\\n\\nfunction skipWord(source,pos) {\\n\\tvar c;\\n\\twhile(true) {\\n\\t\\tc = source.charAt(pos);\\n\\t\\tif((c !== \\\"\\\") && (c !== \\\" \\\") && (c !== \\\"\\\\f\\\") && (c !== \\\"\\\\n\\\")\\n\\t\\t&& (c !== \\\"\\\\r\\\") && (c !== \\\"\\\\t\\\")\\n\\t\\t&& (c !== \\\"\\\\v\\\")&& (c !== \\\"\\\\u00a0\\\") // Ignores obscure unicode spaces\\n\\t\\t&& (c !== \\\"[\\\") && (c !== \\\"]\\\")) { // Ignore brackets\\n\\t\\t\\tpos++;\\n\\t\\t} else {\\n\\t\\t\\treturn pos;\\n\\t\\t}\\n\\t}\\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, options) {\\n\\tvar choices = {\\n\\t\\t\\\"\\\": function(v) {return /^[^\\\\s\\\\[\\\\]\\\\}\\\\+\\\\-\\\\~\\\\=\\\\:][^\\\\s\\\\[\\\\]]*[^\\\\s\\\\[\\\\]\\\\}]$/.test(v); },\\n\\t\\t\\\"[\\\": canBePrettyOperand,\\n\\t\\t\\\"'\\\": function(v) {return v.indexOf(\\\"'\\\") \u003C 0; },\\n\\t\\t'\\\"': function(v) {return v.indexOf('\\\"') \u003C 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 (options.inBraces && value.indexOf('}}}') >= 0) {\\n\\t\\t// In this particular case, it can't be wrapped in this filter,\\n\\t\\t// even if it would have worked within the context of the filter itself\\n\\t\\treturn undefined;\\n\\t}\\n\\tif (!choices[preference]) {\\n\\t\\tpreference = '';\\n\\t}\\n\\tif (choices[preference](value)) {\\n\\t\\treturn wrappers[preference](value);\\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 canBePrettyOperand(value) {\\n\\treturn value.indexOf(']') \u003C 0;\\n};\\n\\nfunction canBeInBraces(value) {\\n\\treturn value.indexOf(\\\"}}}\\\") \u003C 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 \u003C 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\\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar referenceOperators = utils.getModulesByTypeAsHashmap('relinkreference', 'name');\\n\\nexports.name = \\\"reference\\\";\\n\\nexports.report = function(value, callback, options) {\\n\\tif (value) {\\n\\t\\tvar reference = $tw.utils.parseTextReference(value);\\n\\t\\tfor (var operator in referenceOperators) {\\n\\t\\t\\treferenceOperators[operator].report(reference, callback, options);\\n\\t\\t}\\n\\t}\\n};\\n\\nexports.relink = function(value, fromTitle, toTitle, options) {\\n\\tvar entry;\\n\\tif (value) {\\n\\t\\tvar impossible = false;\\n\\t\\tvar modified = false;\\n\\t\\tvar reference = $tw.utils.parseTextReference(value);\\n\\t\\tfor (var operator in referenceOperators) {\\n\\t\\t\\tvar result = referenceOperators[operator].relink(reference, fromTitle, toTitle, options);\\n\\t\\t\\tif (result) {\\n\\t\\t\\t\\tif (result.impossible) {\\n\\t\\t\\t\\t\\timpossible = true;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (result.output) {\\n\\t\\t\\t\\t\\tmodified = true;\\n\\t\\t\\t\\t\\treference = result.output;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif (modified) {\\n\\t\\t\\tif (exports.canBePretty(reference.title)) {\\n\\t\\t\\t\\tentry = {output: exports.toString(reference)};\\n\\t\\t\\t} else {\\n\\t\\t\\t\\timpossible = true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif (impossible) {\\n\\t\\t\\tentry = entry || {};\\n\\t\\t\\tentry.impossible = true;\\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 && log.output.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(\\\"!!\\\") \u003C 0 && title.indexOf(\\\"##\\\") \u003C 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 \u003C 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 \u003C 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 \u003C 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(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\\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 \u003C 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/fieldtypes/filter/operators.js\":{\"text\":\"/*\\\\\\n\\nHandles reporting of filter operators.\\n\\n\\\\*/\\n\\nvar refHandler = require(\\\"$:/plugins/flibbles/relink/js/fieldtypes/reference\\\");\\nvar titleHandler = require(\\\"$:/plugins/flibbles/relink/js/fieldtypes/title\\\");\\nvar macrocall = require(\\\"$:/plugins/flibbles/relink/js/utils/macrocall.js\\\");\\n\\nexports.name = \\\"operators\\\";\\n\\nexports.report = function(filterParseTree, callback, options) {\\n\\tfor (var i = 0; i \u003C filterParseTree.length; i++) {\\n\\t\\tvar run = filterParseTree[i];\\n\\t\\tfor (var j = 0; j \u003C run.operators.length; j++) {\\n\\t\\t\\tvar operator = run.operators[j];\\n\\t\\t\\tfor (var index = 1; index \u003C= operator.operands.length; index++) {\\n\\t\\t\\t\\tvar operand = operator.operands[index-1];\\n\\t\\t\\t\\tvar display = operator.operator === 'title'? '': operator.operator;\\n\\t\\t\\t\\tif (operator.suffix) {\\n\\t\\t\\t\\t\\tdisplay += ':' + operator.suffix;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t// Now add any commas if this is a later operand\\n\\t\\t\\t\\tfor (var x = 1; x \u003C index; x++) {\\n\\t\\t\\t\\t\\tdisplay += ',';\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (operand.indirect) {\\n\\t\\t\\t\\t\\trefHandler.report(operand.text, function(title, blurb) {\\n\\t\\t\\t\\t\\t\\tcallback(title, (run.prefix || '') + '[' + (operator.prefix || '') + display + '{' + (blurb || '') + '}]');\\n\\t\\t\\t\\t\\t}, options);\\n\\t\\t\\t\\t} else if (operand.variable) {\\n\\t\\t\\t\\t\\tvar macro = $tw.utils.parseMacroInvocation(\\\"\u003C\u003C\\\"+operand.text+\\\">>\\\", 0);\\n\\t\\t\\t\\t\\tmacrocall.report(options.settings, macro, function(title, blurb) {\\n\\t\\t\\t\\t\\t\\tcallback(title, (run.prefix || '') + '[' + (operator.prefix || '') + display + '\u003C' + blurb + '>]');\\n\\t\\t\\t\\t\\t}, options);\\n\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t} else if (operand.text) {\\n\\t\\t\\t\\t\\tvar handler = fieldType(options.settings, operator, index, options)\\n\\t\\t\\t\\t\\tif (handler) {\\n\\t\\t\\t\\t\\t\\thandler.report(operand.text, function(title, blurb) {\\n\\t\\t\\t\\t\\t\\t\\tif (blurb || !standaloneTitleRun(run)) {\\n\\t\\t\\t\\t\\t\\t\\t\\tcallback(title, (run.prefix || '') + '[' + (operator.prefix || '') + display + '[' + (blurb || '') + ']]');\\n\\t\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\t\\tcallback(title, run.prefix);\\n\\t\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t\\t}, options);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n};\\n\\nexports.relink = function(filterParseTree, fromTitle, toTitle, options) {\\n\\tvar output = {};\\n\\tfor (var i = 0; i \u003C filterParseTree.length; i++) {\\n\\t\\tvar run = filterParseTree[i];\\n\\t\\tfor (var j = 0; j \u003C run.operators.length; j++) {\\n\\t\\t\\tvar operator = run.operators[j];\\n\\t\\t\\tfor (var index = 1; index \u003C= operator.operands.length; index++) {\\n\\t\\t\\t\\tvar operand = operator.operands[index-1],\\n\\t\\t\\t\\t\\tentry = undefined;\\n\\t\\t\\t\\tif (operand.indirect) {\\n\\t\\t\\t\\t\\tentry = refHandler.relinkInBraces(operand.text, fromTitle, toTitle, options);\\n\\t\\t\\t\\t} else if (operand.variable) {\\n\\t\\t\\t\\t\\tentry = relinkMacro(options.settings, operand.text, fromTitle, toTitle, options);\\n\\t\\t\\t\\t} else if (operand.text) {\\n\\t\\t\\t\\t\\tvar handler = fieldType(options.settings, operator, index, options)\\n\\t\\t\\t\\t\\tif (handler) {\\n\\t\\t\\t\\t\\t\\tentry = handler.relink(operand.text, fromTitle, toTitle, options);\\n\\t\\t\\t\\t\\t\\tif (entry && entry.output) {\\n\\t\\t\\t\\t\\t\\t\\toperand.handler = handler.name;\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif (entry) {\\n\\t\\t\\t\\t\\tif (entry.output) {\\n\\t\\t\\t\\t\\t\\toutput.changed = true;\\n\\t\\t\\t\\t\\t\\toperand.text = entry.output;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif (entry.impossible) {\\n\\t\\t\\t\\t\\t\\toutput.impossible = true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\treturn output;\\n};\\n\\n// Returns the relinker needed for a given operator, or returns undefined.\\n// This method should really be broken into three modules called relinkfilteroperator\\nfunction fieldType(context, operator, index, options) {\\n\\tvar op = operator.operator,\\n\\t\\tsuffix = operator.suffix,\\n\\t\\trtn = (suffix && context.getOperator(op + ':' + suffix, index))\\n\\t\\t || context.getOperator(op, index);\\n\\tif (!rtn && op === 'contains' && index == 1) {\\n\\t\\t// The 'contains' operator gets special handling\\n\\t\\tsuffix = suffix || 'list';\\n\\t\\tvar handler = context.getFields()[suffix];\\n\\t\\tif (handler && (handler.name === 'list' || handler.name === 'filter')) {\\n\\t\\t\\t// Contains uses the title handler, but only if it's\\n\\t\\t\\t// searching a 'list' or 'filter' field.\\n\\t\\t\\treturn titleHandler;\\n\\t\\t}\\n\\n\\t}\\n\\tif (!rtn && index == 1) {\\n\\t\\t// maybe it's a field operator?\\n\\t\\trtn = (op === 'field' && context.getFields()[suffix])\\n\\t\\t || (!suffix && !options.wiki.getFilterOperators()[op] && context.getFields()[op]);\\n\\t}\\n\\treturn rtn;\\n};\\n\\nfunction standaloneTitleRun(run) {\\n\\tif (run.operators.length == 1) {\\n\\t\\tvar op = run.operators[0];\\n\\t\\treturn op.operator === 'title'\\n\\t\\t\\t&& !op.prefix\\n\\t\\t\\t&& !op.suffix;\\n\\t}\\n\\treturn false;\\n};\\n\\n// Takes care of relinking a macro, as well as putting it back together.\\nfunction relinkMacro(context, text, fromTitle, toTitle, options) {\\n\\ttext = \\\"\u003C\u003C\\\" + text + \\\">>\\\";\\n\\tvar macro = $tw.utils.parseMacroInvocation(text, 0);\\n\\tvar entry = macrocall.relink(context, macro, text, fromTitle, toTitle, false, options);\\n\\tif (entry && entry.output) {\\n\\t\\tvar string = macrocall.reassemble(entry.output, text, options);\\n\\t\\t// We remove the surrounding brackets.\\n\\t\\tstring = string.substring(2, string.length-2);\\n\\t\\t// And we make sure that no brackets remain\\n\\t\\tif (string.indexOf(\\\">\\\") >= 0) {\\n\\t\\t\\tdelete entry.output;\\n\\t\\t\\tentry.impossible = true;\\n\\t\\t} else {\\n\\t\\t\\tentry.output = string;\\n\\t\\t}\\n\\t}\\n\\treturn entry;\\n};\\n\",\"module-type\":\"relinkfilter\",\"title\":\"$:/plugins/flibbles/relink/js/fieldtypes/filter/operators.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/fieldtypes/reference/title.js\":{\"text\":\"/*\\\\\\n\\nThis handles the title inside of references.\\n\\n\\\\*/\\n\\nexports.name = 'title';\\n\\nexports.report = function(reference, callback, options) {\\n\\tvar title = reference.title;\\n\\tif (title) {\\n\\t\\tif (reference.field) {\\n\\t\\t\\tcallback(title, '!!' + reference.field);\\n\\t\\t} else if (reference.index) {\\n\\t\\t\\tcallback(title, '##' + reference.index);\\n\\t\\t} else {\\n\\t\\t\\tcallback(title);\\n\\t\\t}\\n\\t}\\n};\\n\\nexports.relink = function(reference, fromTitle, toTitle, options) {\\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\\treturn {output: reference};\\n\\t}\\n};\\n\",\"module-type\":\"relinkreference\",\"title\":\"$:/plugins/flibbles/relink/js/fieldtypes/reference/title.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\\tif (field === 'list' && tiddler.fields['plugin-type']) {\\n\\t\\t\\t\\t// We have a built-in exception here. plugins use their list\\n\\t\\t\\t\\t// field differently. There's a whole mechanism for what\\n\\t\\t\\t\\t// they actually point to, but let's not bother with that now\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\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\\tif (field === 'list' && tiddler.fields['plugin-type']) {\\n\\t\\t\\t\\t// Same deal as above. Skip.\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\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('relinktext', 'type');\\n\\n// These are deprecated. Don't use them.\\nvar oldTextOperators = 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\\ttextOperators[type].report(tiddler.fields.text, callback, options);\\n\\t\\t} else if (oldTextOperators[type]) {\\n\\t\\t\\t// For the deprecated text operators\\n\\t\\t\\toldTextOperators[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\\t\\tentry;\\n\\t\\tif (textOperators[type]) {\\n\\t\\t\\tentry = textOperators[type].relink(tiddler.fields.text, fromTitle, toTitle, options);\\n\\t\\t} else if (oldTextOperators[type]) {\\n\\t\\t\\t// For the deprecated text operators\\n\\t\\t\\tentry = oldTextOperators[type].relink(tiddler, fromTitle, toTitle, options);\\n\\t\\t}\\n\\t\\tif (entry) {\\n\\t\\t\\tchanges.text = entry;\\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 = filterHandler.report;\\nexports.relink = filterHandler.relink;\\n\",\"module-type\":\"relinktext\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/filtertext.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/listtext.js\":{\"text\":\"/*\\\\\\n\\nThis relinks tiddlers which contain a tiddler list as their body.\\n\\n\\\\*/\\n\\n/*jslint node: false, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar listHandler = require(\\\"$:/plugins/flibbles/relink/js/utils\\\").getType('list');\\n\\nexports.type = 'text/x-tiddler-list';\\n\\nexports.report = listHandler.report;\\nexports.relink = listHandler.relink;\\n\",\"module-type\":\"relinktext\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/listtext.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/referencetext.js\":{\"text\":\"/*\\\\\\n\\nThis relinks tiddlers which contain a tiddler reference as their body.\\n\\n\\\\*/\\n\\n/*jslint node: false, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar refHandler = require(\\\"$:/plugins/flibbles/relink/js/utils\\\").getType('reference');\\n\\nexports.type = 'text/x-tiddler-reference';\\n\\nexports.report = refHandler.report;\\nexports.relink = refHandler.relink;\\n\",\"module-type\":\"relinktext\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/referencetext.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/titletext.js\":{\"text\":\"/*\\\\\\n\\nThis relinks tiddlers which contain a single title as their body.\\n\\n\\\\*/\\n\\n/*jslint node: false, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar titleHandler = require(\\\"$:/plugins/flibbles/relink/js/utils\\\").getType('title');\\n\\nexports.type = 'text/x-tiddler-title';\\n\\nexports.report = titleHandler.report;\\nexports.relink = titleHandler.relink;\\n\",\"module-type\":\"relinktext\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/titletext.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext.js\":{\"text\":\"/*\\\\\\n\\nChecks for fromTitle in 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 = wikitextHandler.report;\\n\\nexports.relink = function(text, fromTitle, toTitle, options) {\\n\\tvar placeholder = new Placeholder();\\n\\tvar currentOptions = Object.create(options);\\n\\tcurrentOptions.placeholder = placeholder;\\n\\tvar entry = wikitextHandler.relink(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\":\"relinktext\",\"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\\\"\u003C!-- [[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('|') \u003C 0 && filter.indexOf('}}') \u003C 0;\\n};\\n\\nfunction canBePrettyTemplate(template) {\\n\\treturn !template || (\\n\\t\\ttemplate.indexOf('|') \u003C 0\\n\\t\\t&& template.indexOf('{') \u003C 0\\n\\t\\t&& template.indexOf('}') \u003C 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\u003C$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 htmlOperators = relinkUtils.getModulesByTypeAsHashmap('relinkhtml', 'name');\\n\\nexports.name = \\\"html\\\";\\n\\nexports.report = function(text, callback, options) {\\n\\tvar element = this.nextTag.tag;\\n\\tvar nestedOptions = Object.create(options);\\n\\tnestedOptions.settings = this.parser.context;\\n\\tfor (var operator in htmlOperators) {\\n\\t\\thtmlOperators[operator].report(this.nextTag, this.parser, function(title, blurb) {\\n\\t\\t\\tcallback(title, '\u003C' + blurb + ' />');\\n\\t\\t}, nestedOptions);\\n\\t}\\n\\tthis.parse();\\n};\\n\\nexports.relink = function(text, fromTitle, toTitle, options) {\\n\\tvar widgetEntry = {};\\n\\twidgetEntry.attributes = Object.create(null);\\n\\twidgetEntry.element = this.nextTag.tag;\\n\\tvar elem = this.nextTag;\\n\\tvar changed = false;\\n\\tvar nestedOptions = Object.create(options);\\n\\tnestedOptions.settings = this.parser.context;\\n\\tfor (var operator in htmlOperators) {\\n\\t\\tvar entry = htmlOperators[operator].relink(this.nextTag, this.parser, fromTitle, toTitle, nestedOptions);\\n\\t\\tif (entry) {\\n\\t\\t\\tif (entry.output) {\\n\\t\\t\\t\\tchanged = true;\\n\\t\\t\\t}\\n\\t\\t\\tif (entry.impossible) {\\n\\t\\t\\t\\twidgetEntry.impossible = true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\tvar tag = this.parse()[0];\\n\\tif (tag.children) {\\n\\t\\tfor (var i = 0; i \u003C tag.children.length; i++) {\\n\\t\\t\\tvar child = tag.children[i];\\n\\t\\t\\tif (child.output) {\\n\\t\\t\\t\\tchanged = true;\\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 (changed) {\\n\\t\\tvar builder = new Rebuilder(text, elem.start);\\n\\t\\tfor (var attributeName in elem.attributes) {\\n\\t\\t\\tvar attr = elem.attributes[attributeName];\\n\\t\\t\\tvar quotedValue;\\n\\t\\t\\tswitch (attr.type) {\\n\\t\\t\\tcase 'string':\\n\\t\\t\\t\\tif (attr.valueless) {\\n\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tvar quote = relinkUtils.determineQuote(text, attr);\\n\\t\\t\\t\\tquotedValue = utils.wrapAttributeValue(attr.value, 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\\twidgetEntry.impossible = true;\\n\\t\\t\\t\\t\\t\\tcontinue;\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tvar value = options.placeholder.getPlaceholderFor(attr.value,attr.handler)\\n\\t\\t\\t\\t\\t\\tquotedValue = \\\"\u003C\u003C\\\"+value+\\\">>\\\";\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'indirect':\\n\\t\\t\\t\\tquotedValue = \\\"{{\\\" + attr.textReference + \\\"}}\\\";\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'filtered':\\n\\t\\t\\t\\tquotedValue = \\\"{{{\\\" + attr.filter + \\\"}}}\\\";\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\tcase 'macro':\\n\\t\\t\\t\\tif (attr.output) {\\n\\t\\t\\t\\t\\tquotedValue = attr.output;\\n\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\tquotedValue = undefined;\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\t// Else If output isn't set, this wasn't ever changed\\n\\t\\t\\t\\tbreak;\\n\\t\\t\\t}\\n\\t\\t\\tvar ptr = attr.start;\\n\\t\\t\\tptr = $tw.utils.skipWhiteSpace(text, ptr);\\n\\t\\t\\tif (attributeName !== attr.name) {\\n\\t\\t\\t\\t// Ooh, the attribute name changed\\n\\t\\t\\t\\tbuilder.add(attr.name, ptr, ptr + attributeName.length);\\n\\t\\t\\t}\\n\\t\\t\\tif (quotedValue) {\\n\\t\\t\\t\\t// We have a new attribute value\\n\\t\\t\\t\\tptr += attributeName.length;\\n\\t\\t\\t\\tptr = $tw.utils.skipWhiteSpace(text, ptr);\\n\\t\\t\\t\\tptr++; // For the equals\\n\\t\\t\\t\\tptr = $tw.utils.skipWhiteSpace(text, ptr);\\n\\t\\t\\t\\tbuilder.add(quotedValue, ptr, attr.end);\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif (tag.children) {\\n\\t\\t\\tfor (var i = 0; i \u003C tag.children.length; i++) {\\n\\t\\t\\t\\tvar child = tag.children[i];\\n\\t\\t\\t\\tif (child.output) {\\n\\t\\t\\t\\t\\tbuilder.add(child.output, child.start, child.end);\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\twidgetEntry.output = builder.results(this.parser.pos);\\n\\t}\\n\\tif (widgetEntry.output || widgetEntry.impossible) {\\n\\t\\treturn widgetEntry;\\n\\t}\\n\\treturn undefined;\\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\\\");\\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/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(\\\"\u003C$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=\u003C\u003C\\\"+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 = relinkUtils.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(\\\"\u003C\u003C\\\", 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 = relinkUtils.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(\\\"\u003C\u003C\\\", 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(']') \u003C 0 && (tooltip || title.indexOf('|') \u003C 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\u003C\u003CmyMacro '[[MyFilter]]' 'myTitle'>>\\n\\n\\\\*/\\n\\nvar utils = require(\\\"./utils.js\\\");\\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar macrocall = require('$:/plugins/flibbles/relink/js/utils/macrocall.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\\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 = macrocall.relink(this.parser.context, 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 \u003C$element attr=\u003C\u003C...>> />\\n * Processes the same, except it can't downgrade into a widget if the title\\n * is complicated.\\n * Kept for backward compatibility reasons\\n */\\nexports.relinkAttribute = function(parser, macro, text, fromTitle, toTitle, options) {\\n\\tvar entry = macrocall.relink(parser.context, macro, text, fromTitle, toTitle, false, options);\\n\\tif (entry && entry.output) {\\n\\t\\tentry.output = macrocall.reassemble(entry.output, text, options);\\n\\t}\\n\\treturn entry;\\n};\\n\\n/** As in, report a macrocall invocation that is an html attribute.\\n * Kept for backward compatibility reasons\\n */\\nexports.reportAttribute = function(parser, macro, callback, options) {\\n\\tmacrocall.report(parser.context, macro, function(title, blurb) {\\n\\t\\tcallback(title, \\\"\u003C\u003C\\\" + blurb + \\\">>\\\");\\n\\t}, options);\\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 \u003Cv5.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 \u003C 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 \u003C 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 \\\"\u003C$macrocall $name=\\\"+utils.wrapAttributeValue(macro.name)+attrs.join('')+\\\"/>\\\";\\n\\t} else {\\n\\t\\treturn macrocall.reassemble(macro, text, options);\\n\\t}\\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 \u003C 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 \u003C params.length; i++) {\\n\\t\\t\\tif (rtn[i] === undefined) {\\n\\t\\t\\t\\twhile(defPtr \u003C 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 \u003C= 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/quoteblock.js\":{\"text\":\"/*\\\\\\nmodule-type: relinkwikitextrule\\n\\nHandles the quote blocks, as in:\\n\\n\u003C\u003C\u003C\\n...\\n\u003C\u003C\u003C\\n\\n\\\\*/\\n\\nvar Rebuilder = require(\\\"$:/plugins/flibbles/relink/js/utils/rebuilder\\\");\\n\\nexports.name = \\\"quoteblock\\\";\\n\\nexports.type = {block: true};\\n\\nexports.report = function(text, callback, options) {\\n\\tvar reEndString = \\\"^\\\" + this.match[1] + \\\"(?!\u003C)\\\";\\n\\tthis.parser.pos = this.matchRegExp.lastIndex;\\n\\n\\tthis.parser.parseClasses();\\n\\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\\n\\n\\t// Parse the optional cite\\n\\treportCite(this.parser, this.match[1]);\\n\\t// Now parse the body of the quote\\n\\tthis.parser.parseBlocks(reEndString);\\n\\tif (this.match) {\\n\\t\\t// Now parse the closing cite\\n\\t\\treportCite(this.parser, this.match[1]);\\n\\t}\\n};\\n\\nexports.relink = function(text, fromTitle, toTitle, options) {\\n\\tvar reEndString = \\\"^\\\" + this.match[1] + \\\"(?!\u003C)\\\";\\n\\tvar builder = new Rebuilder(text, this.parser.pos);\\n\\tvar entry;\\n\\tthis.parser.pos = this.matchRegExp.lastIndex;\\n\\n\\tthis.parser.parseClasses();\\n\\tthis.parser.skipWhitespace({treatNewlinesAsNonWhitespace: true});\\n\\n\\t// Parse the optional cite\\n\\tmergeRelinks(builder, this.parser.parseInlineRun(/(\\\\r?\\\\n)/mg));\\n\\t// Now parse the body of the quote\\n\\tmergeRelinks(builder, this.parser.parseBlocks(reEndString));\\n\\t// Now parse the closing cite\\n\\tmergeRelinks(builder, this.parser.parseInlineRun(/(\\\\r?\\\\n)/mg));\\n\\n\\tif (builder.changed() || builder.impossible) {\\n\\t\\tentry = {};\\n\\t\\tentry.output = builder.results(this.parser.pos);\\n\\t\\tif (builder.impossible) {\\n\\t\\t\\tentry.impossible = true;\\n\\t\\t}\\n\\t}\\n\\treturn entry;\\n};\\n\\nfunction reportCite(parser, delimeter) {\\n\\tvar callback = parser.callback;\\n\\ttry {\\n\\t\\tparser.callback = function(title, blurb) {\\n\\t\\t\\treturn callback(title, delimeter + \\\" \\\" + blurb);\\n\\t\\t};\\n\\t\\tparser.parseInlineRun(/(\\\\r?\\\\n)/mg);\\n\\t} finally {\\n\\t\\tparser.callback = callback;\\n\\t}\\n};\\n\\nfunction mergeRelinks(builder, output) {\\n\\tif (output.length > 0) {\\n\\t\\tfor (var i = 0; i \u003C output.length; i++) {\\n\\t\\t\\tvar o = output[i];\\n\\t\\t\\tif (o.output) {\\n\\t\\t\\t\\tbuilder.add(o.output, o.start, o.end);\\n\\t\\t\\t}\\n\\t\\t\\tif (o.impossible) {\\n\\t\\t\\t\\tbuilder.impossible = true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n};\\n\",\"module-type\":\"relinkwikitextrule\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/quoteblock.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 \u003C$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(\\\"text/plain\\\", \\\"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/table.js\":{\"text\":\"/*\\\\\\nmodule-type: relinkwikitextrule\\n\\nHandles tables. Or rather handles the cells inside the tables, since tables\\nthemselves aren't relinked.\\n\\n\\\\*/\\n\\nvar Rebuilder = require(\\\"$:/plugins/flibbles/relink/js/utils/rebuilder\\\");\\n\\nexports.name = \\\"table\\\";\\n\\nexports.types = {block: true};\\n\\nexports.report = function(text, callback, options) {\\n\\tvar rowRegExp = /^\\\\|([^\\\\n]*)\\\\|([fhck]?)\\\\r?(?:\\\\n|$)/mg,\\n\\t\\trowTermRegExp = /(\\\\|(?:[fhck]?)\\\\r?(?:\\\\n|$))/mg;\\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\\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\\n\\t\\t} else if(rowType === \\\"c\\\") {\\n\\t\\t\\t// Is this a caption row?\\n\\t\\t\\t// If so, move past the opening `|` of the row\\n\\t\\t\\tthis.parser.pos++;\\n\\t\\t\\t// Parse the caption\\n\\t\\t\\tvar oldCallback = this.parser.callback;\\n\\t\\t\\tthis.parser.callback = function(title, blurb) {\\n\\t\\t\\t\\tcallback(title, '|' + blurb + '|c');\\n\\t\\t\\t};\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tthis.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});\\n\\t\\t\\t} finally {\\n\\t\\t\\t\\tthis.parser.callback = oldCallback;\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\t// Process the row\\n\\t\\t\\tprocessRow.call(this, rowType, callback);\\n\\t\\t\\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\\n\\t\\t}\\n\\t\\trowMatch = rowRegExp.exec(this.parser.source);\\n\\t}\\n};\\n\\nexports.relink = function(text, fromTitle, toTitle, options) {\\n\\tvar rowRegExp = /^\\\\|([^\\\\n]*)\\\\|([fhck]?)\\\\r?(?:\\\\n|$)/mg,\\n\\t\\trowTermRegExp = /(\\\\|(?:[fhck]?)\\\\r?(?:\\\\n|$))/mg,\\n\\t\\tbuilder = new Rebuilder(text, this.parser.pos),\\n\\t\\timpossible = false,\\n\\t\\toutput,\\n\\t\\tentry;\\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\\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\\n\\t\\t} else {\\n\\t\\t\\t// Is this a caption row?\\n\\t\\t\\tif(rowType === \\\"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// Parse the caption\\n\\t\\t\\t\\toutput = this.parser.parseInlineRun(rowTermRegExp,{eatTerminator: true});\\n\\t\\t\\t} else {\\n\\t\\t\\t\\t// Process the row\\n\\t\\t\\t\\toutput = processRow.call(this);\\n\\t\\t\\t\\tthis.parser.pos = rowMatch.index + rowMatch[0].length;\\n\\t\\t\\t}\\n\\t\\t\\tif (output.length > 0) {\\n\\t\\t\\t\\tfor (var i = 0; i \u003C output.length; i++) {\\n\\t\\t\\t\\t\\tvar o = output[i];\\n\\t\\t\\t\\t\\tif (o.output) {\\n\\t\\t\\t\\t\\t\\tbuilder.add(o.output, o.start, o.end);\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tif (o.impossible) {\\n\\t\\t\\t\\t\\t\\timpossible = true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\trowMatch = rowRegExp.exec(this.parser.source);\\n\\t}\\n\\tif (builder.changed() || impossible) {\\n\\t\\tentry = {}\\n\\t\\tentry.output = builder.results(this.parser.pos);\\n\\t\\tif (impossible) {\\n\\t\\t\\tentry.impossible = true;\\n\\t\\t}\\n\\t}\\n\\treturn entry;\\n};\\n\\nvar processRow = function(rowType, callback) {\\n\\tvar cellRegExp = /(?:\\\\|([^\\\\n\\\\|]*)\\\\|)|(\\\\|[fhck]?\\\\r?(?:\\\\n|$))/mg,\\n\\t\\tcellTermRegExp = /((?:\\\\x20*)\\\\|)/mg,\\n\\t\\tchildren = [];\\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[2]) {\\n\\t\\t\\t// End of row\\n\\t\\t\\tthis.parser.pos = cellRegExp.lastIndex - 1;\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tswitch (cellMatch[1]) {\\n\\t\\tcase '~':\\n\\t\\tcase '>':\\n\\t\\tcase '\u003C':\\n\\t\\t\\t// Move to just before the `|` terminating the cell\\n\\t\\t\\tthis.parser.pos = cellRegExp.lastIndex - 1;\\n\\t\\t\\tbreak;\\n\\t\\tdefault:\\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\\tvar prefix = '|';\\n\\t\\t\\tvar suffix = '|';\\n\\t\\t\\tif(this.parser.source.substr(this.parser.pos).search(/^\\\\^([^\\\\^]|\\\\^\\\\^)/) === 0) {\\n\\t\\t\\t\\tprefix += '^';\\n\\t\\t\\t\\tthis.parser.pos++;\\n\\t\\t\\t} else if(this.parser.source.substr(this.parser.pos).search(/^,([^,]|,,)/) === 0) {\\n\\t\\t\\t\\tprefix += ',';\\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\\tif (spaceLeft) {\\n\\t\\t\\t\\tprefix += ' ';\\n\\t\\t\\t}\\n\\t\\t\\t// Check whether this is a heading cell\\n\\t\\t\\tif(chr === \\\"!\\\") {\\n\\t\\t\\t\\tthis.parser.pos++;\\n\\t\\t\\t\\tprefix += '!';\\n\\t\\t\\t}\\n\\t\\t\\t// Parse the cell\\n\\t\\t\\tvar oldCallback = this.parser.callback;\\n\\t\\t\\tvar reports = [];\\n\\t\\t\\tthis.parser.callback = function(title, blurb) {\\n\\t\\t\\t\\treports.push(title, blurb);\\n\\t\\t\\t};\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tvar output = this.parser.parseInlineRun(cellTermRegExp,{eatTerminator: true});\\n\\t\\t\\t\\tif (output.length > 0) {\\n\\t\\t\\t\\t\\tchildren.push(output[0]);\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tif(this.parser.source.substr(this.parser.pos - 2,1) === \\\" \\\") { // spaceRight\\n\\t\\t\\t\\t\\tsuffix = ' |';\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\tfor (var i = 0; i \u003C reports.length; i += 2) {\\n\\t\\t\\t\\t\\tcallback(reports[i], prefix + reports[i+1] + suffix + rowType);\\n\\t\\t\\t\\t}\\n\\t\\t\\t} finally {\\n\\t\\t\\t\\tthis.parser.callback = oldCallback;\\n\\t\\t\\t}\\n\\t\\t\\t// Move back to the closing `|`\\n\\t\\t\\tthis.parser.pos--;\\n\\t\\t}\\n\\t\\tcellRegExp.lastIndex = this.parser.pos;\\n\\t\\tcellMatch = cellRegExp.exec(this.parser.source);\\n\\t}\\n\\treturn children;\\n};\\n\",\"module-type\":\"relinkwikitextrule\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/table.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\\\");\\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar referenceOperators = relinkUtils.getModulesByTypeAsHashmap('relinkreference', 'name');\\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\\tfor (var operator in referenceOperators) {\\n\\t\\treferenceOperators[operator].report(ref, function(title, blurb) {\\n\\t\\t\\tblurb = blurb || \\\"\\\";\\n\\t\\t\\tif (template) {\\n\\t\\t\\t\\tblurb += '||' + template;\\n\\t\\t\\t}\\n\\t\\t\\tcallback(title, \\\"{{\\\" + blurb + \\\"}}\\\");\\n\\t\\t}, options);\\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\\timpossible = false,\\n\\t\\tmodified = false;\\n\\tthis.parser.pos = this.matchRegExp.lastIndex;\\n\\tfor (var operator in referenceOperators) {\\n\\t\\tvar result = referenceOperators[operator].relink(reference, fromTitle, toTitle, options);\\n\\t\\tif (result !== undefined) {\\n\\t\\t\\tif (result.impossible) {\\n\\t\\t\\t\\timpossible = true;\\n\\t\\t\\t}\\n\\t\\t\\tif (result.output) {\\n\\t\\t\\t\\treference = result.output;\\n\\t\\t\\t\\tmodified = true\\n\\t\\t\\t}\\n\\t\\t}\\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\\timpossible = true;\\n\\t\\t}\\n\\t}\\n\\tif (impossible) {\\n\\t\\tentry = entry || {};\\n\\t\\tentry.impossible = true;\\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) || !canBePrettyField(reference.field)) {\\n\\t\\t// This block and the next account for the 1%...\\n\\t\\tvar transclude;\\n\\t\\tif (canBePrettyField(reference.field)) {\\n\\t\\t\\tvar reducedRef = {field: reference.field, index: reference.index};\\n\\t\\t\\ttransclude = prettyTransclude(reducedRef, template);\\n\\t\\t} else {\\n\\t\\t\\ttransclude = utils.makeWidget(parser, \\\"$transclude\\\", {tiddler: $tw.utils.trim(reference.title), field: reference.field});\\n\\t\\t}\\n\\t\\trtn = utils.makeWidget(parser, '$tiddler', {tiddler: $tw.utils.trim(reference.title)}, transclude);\\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 canBePrettyField(value) {\\n\\treturn !/[\\\\|\\\\}\\\\{]/.test(value);\\n};\\n\\nfunction canBePrettyTemplate(value) {\\n\\treturn !value || (value.indexOf('}') \u003C 0 && value.indexOf('{') \u003C 0 && value.indexOf('|') \u003C 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/typedblock.js\":{\"text\":\"/*\\\\\\nmodule-type: relinkwikitextrule\\n\\nHandles the typeed blocks, as in:\\n\\n$$$text/vnd.tiddlywiki>text/html\\n...\\n$$$\\n\\n\\\\*/\\n\\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar Rebuilder = require(\\\"$:/plugins/flibbles/relink/js/utils/rebuilder\\\");\\nvar language = require('$:/plugins/flibbles/relink/js/language.js');\\n\\nexports.name = \\\"typedblock\\\";\\n\\nexports.types = {block: true};\\n\\nvar textOperators;\\nvar oldTextOperators;\\n\\nfunction getTextOperator(type, options) {\\n\\tvar operator;\\n\\tif (textOperators === undefined) {\\n\\t\\ttextOperators = utils.getModulesByTypeAsHashmap('relinktext', 'type');\\n\\t\\toldTextOperators = utils.getModulesByTypeAsHashmap('relinktextoperator', 'type');\\n\\t}\\n\\toperator = textOperators[type];\\n\\tif (operator) {\\n\\t\\treturn operator;\\n\\t}\\n\\tvar info = $tw.utils.getFileExtensionInfo(type);\\n\\tif (info && textOperators[info.type]) {\\n\\t\\treturn textOperators[info.type];\\n\\t}\\n\\tvar old = oldTextOperators[type] || (info && oldTextOperators[info.type]);\\n\\tif (old) {\\n\\t\\tvar vars = Object.create(options);\\n\\t\\tvars.variables = {type: old.type, keyword: type};\\n\\t\\tvar warnString = language.getString(\\\"text/html\\\", \\\"Warning/OldRelinkTextOperator\\\", vars)\\n\\t\\tlanguage.warn(warnString);\\n\\t\\toldTextOperators[type] = undefined;\\n\\t}\\n};\\n\\nfunction getText() {\\n\\tvar reEnd = /\\\\r?\\\\n\\\\$\\\\$\\\\$\\\\r?(?:\\\\n|$)/mg;\\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\\treturn text;\\n};\\n\\nexports.report = function(text, callback, options) {\\n\\tvar innerText = getText.call(this),\\n\\t\\toperator = getTextOperator(this.match[1], options);\\n\\tif (operator) {\\n\\t\\treturn operator.report(innerText, callback, options);\\n\\t}\\n};\\n\\nexports.relink = function(text, fromTitle, toTitle, options) {\\n\\tvar start = this.parser.pos,\\n\\t\\tinnerStart = this.matchRegExp.lastIndex,\\n\\t\\tinnerText = getText.call(this),\\n\\t\\toperator = getTextOperator(this.match[1], options);\\n\\tif (operator) {\\n\\t\\tvar innerOptions = Object.create(options);\\n\\t\\tinnerOptions.settings = this.parser.context;\\n\\t\\tvar results = operator.relink(innerText, fromTitle, toTitle, innerOptions);\\n\\t\\tif (results && results.output) {\\n\\t\\t\\tvar builder = new Rebuilder(text, start);\\n\\t\\t\\tbuilder.add(results.output, innerStart, innerStart + innerText.length);\\n\\t\\t\\tresults.output = builder.results(this.parser.pos);\\n\\t\\t}\\n\\t\\treturn results;\\n\\t}\\n};\\n\",\"module-type\":\"relinkwikitextrule\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/typedblock.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 = '\u003C' + 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 = '\u003C\u003C' + 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 + '\u003C/' + 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 = \\\"\u003C$link to=\u003C\u003C\\\"+ph+\\\">>>\u003C$text text=\u003C\u003C\\\"+ph+\\\">>/>\u003C/$link>\\\";\\n\\t}\\n\\treturn output;\\n};\\n\\n/**In version 5.1.20, Tiddlywiki made it so \u003C$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\\\", \\\"\u003C$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(\\\"]]\\\") \u003C 0 && value[value.length-1] !== ']' && (customCaption !== undefined || value.indexOf('|') \u003C 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(\\\"\u003C/$link>\\\") \u003C= 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\u003C>\\\"'=])/.test(v) && v.length > 0; },\\n\\t\\t\\\"'\\\": function(v) {return v.indexOf(\\\"'\\\") \u003C 0; },\\n\\t\\t'\\\"': function(v) {return v.indexOf('\\\"') \u003C 0; },\\n\\t\\t'\\\"\\\"\\\"': function(v) {return v.indexOf('\\\"\\\"\\\"') \u003C 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 \u003C 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(']') \u003C 0;\\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/relinkoperations/text/wikitext/html/attributes.js\":{\"text\":\"/*\\\\\\n\\nHandles all element attribute values. Most widget relinking happens here.\\n\\n\\\\*/\\n\\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar refHandler = relinkUtils.getType('reference');\\nvar filterHandler = relinkUtils.getType('filter');\\nvar macrocall = require(\\\"$:/plugins/flibbles/relink/js/utils/macrocall.js\\\");\\nvar attributeOperators = relinkUtils.getModulesByTypeAsHashmap('relinkhtmlattributes', 'name');\\n\\nexports.name = \\\"attributes\\\";\\n\\nexports.report = function(element, parser, callback, options) {\\n\\tfor (var attributeName in element.attributes) {\\n\\t\\tvar attr = element.attributes[attributeName];\\n\\t\\tvar nextEql = parser.source.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 \u003C$link to /> We ignore those.\\n\\t\\tif (nextEql \u003C 0 || nextEql > attr.end) {\\n\\t\\t\\tcontinue;\\n\\t\\t}\\n\\t\\tvar entry;\\n\\t\\tswitch (attr.type) {\\n\\t\\tcase \\\"string\\\":\\n\\t\\t\\tfor (var operatorName in attributeOperators) {\\n\\t\\t\\t\\tvar operator = attributeOperators[operatorName];\\n\\t\\t\\t\\tvar handler = operator.getHandler(element, attr, options);\\n\\t\\t\\t\\tif (handler) {\\n\\t\\t\\t\\t\\thandler.report(attr.value, function(title, blurb) {\\n\\t\\t\\t\\t\\t\\tif (operator.formBlurb) {\\n\\t\\t\\t\\t\\t\\t\\tcallback(title, operator.formBlurb(element, attr, blurb, options));\\n\\t\\t\\t\\t\\t\\t} else if (blurb) {\\n\\t\\t\\t\\t\\t\\t\\tcallback(title, element.tag + ' ' + attributeName + '=\\\"' + blurb + '\\\"');\\n\\t\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\t\\tcallback(title, element.tag + ' ' + attributeName);\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}, options);\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t\\tbreak;\\n\\t\\tcase \\\"indirect\\\":\\n\\t\\t\\tentry = refHandler.report(attr.textReference, function(title, blurb) {\\n\\t\\t\\t\\tcallback(title, element.tag + ' ' + attributeName + '={{' + (blurb || '') + '}}');\\n\\t\\t\\t}, options);\\n\\t\\t\\tbreak;\\n\\t\\tcase \\\"filtered\\\":\\n\\t\\t\\tentry = filterHandler.report(attr.filter, function(title, blurb) {\\n\\t\\t\\t\\tcallback(title, element.tag + ' ' + attributeName + '={{{' + blurb + '}}}');\\n\\t\\t\\t}, options);\\n\\t\\t\\tbreak;\\n\\t\\tcase \\\"macro\\\":\\n\\t\\t\\tvar macro = attr.value;\\n\\t\\t\\tentry = macrocall.report(options.settings, macro, function(title, blurb) {\\n\\t\\t\\t\\tcallback(title, element.tag + ' ' + attributeName + '=\u003C\u003C' + blurb + '>>');\\n\\t\\t\\t}, options);\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t}\\n};\\n\\nexports.relink = function(element, parser, fromTitle, toTitle, options) {\\n\\tvar changed = undefined, impossible = undefined;\\n\\tfor (var attributeName in element.attributes) {\\n\\t\\tvar attr = element.attributes[attributeName];\\n\\t\\tvar nextEql = parser.source.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 \u003C$link to /> We ignore those.\\n\\t\\tif (nextEql \u003C 0 || nextEql > attr.end) {\\n\\t\\t\\tattr.valueless = true;\\n\\t\\t\\tcontinue;\\n\\t\\t}\\n\\t\\tvar entry;\\n\\t\\tswitch (attr.type) {\\n\\t\\tcase 'string':\\n\\t\\t\\tfor (var operatorName in attributeOperators) {\\n\\t\\t\\t\\tvar operator = attributeOperators[operatorName];\\n\\t\\t\\t\\tvar handler = operator.getHandler(element, attr, options);\\n\\t\\t\\t\\tif (handler) {\\n\\t\\t\\t\\t\\tentry = handler.relink(attr.value, fromTitle, toTitle, options);\\n\\t\\t\\t\\t\\tif (entry && entry.output) {\\n\\t\\t\\t\\t\\t\\tattr.value = entry.output;\\n\\t\\t\\t\\t\\t\\tattr.handler = handler.name;\\n\\t\\t\\t\\t\\t\\tchanged = true;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tbreak;\\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 && entry.output) {\\n\\t\\t\\t\\tattr.textReference = entry.output;\\n\\t\\t\\t\\tchanged = true;\\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 && entry.output) {\\n\\t\\t\\t\\tattr.filter = entry.output;\\n\\t\\t\\t\\tchanged = true;\\n\\t\\t\\t}\\n\\t\\t\\tbreak;\\n\\t\\tcase 'macro':\\n\\t\\t\\tvar macro = attr.value;\\n\\t\\t\\tentry = macrocall.relink(options.settings, macro, parser.source, fromTitle, toTitle, false, options);\\n\\t\\t\\tif (entry && entry.output) {\\n\\t\\t\\t\\tattr.output = macrocall.reassemble(entry.output, parser.source, options);\\n\\t\\t\\t\\tattr.value = entry.output;\\n\\t\\t\\t\\tchanged = true;\\n\\t\\t\\t}\\n\\t\\t}\\n\\t\\tif (entry && entry.impossible) {\\n\\t\\t\\timpossible = true;\\n\\t\\t}\\n\\t}\\n\\tif (changed || impossible) {\\n\\t\\treturn {output: changed, impossible: impossible};\\n\\t}\\n};\\n\",\"module-type\":\"relinkhtml\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/importvariables.js\":{\"text\":\"/*\\\\\\n\\nHandles state updating required for $importvariables widgets\\n\\n\\\\*/\\n\\nvar relinkUtils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar ImportContext = relinkUtils.getContext('import');\\n\\nexports.name = \\\"importvariables\\\";\\n\\nexports.report = function(element, parser, callback, options) {\\n\\tif (element.tag === \\\"$importvariables\\\") {\\n\\t\\tprocessImport(element, parser, options);\\n\\t}\\n};\\n\\nexports.relink = function(element, parser, fromTitle, toTitle, options) {\\n\\tif (element.tag === \\\"$importvariables\\\") {\\n\\t\\tprocessImport(element, parser, options);\\n\\t}\\n};\\n\\nfunction processImport(element, parser, options) {\\n\\tvar importFilterAttr = element.attributes.filter;\\n\\tif (importFilterAttr) {\\n\\t\\tprocessImportFilter(parser, importFilterAttr, options);\\n\\t}\\n};\\n\\n// This processes a \u003C$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\\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\",\"module-type\":\"relinkhtml\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/importvariables.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes/fields.js\":{\"text\":\"/*\\\\ \\nHandles replacement in widgets which allow arbitrary attributes that\\ncorrespond to tiddler fields.\\n\\n\\\\*/\\n\\nexports.name = \\\"fields\\\";\\n\\nexports.getHandler = function(element, attribute, options) {\\n\\tvar regexp = options.settings.getConfig(\\\"fieldattributes\\\")[element.tag];\\n\\tif (regexp) {\\n\\t\\tvar results = regexp.exec(attribute.name);\\n\\t\\tif (results && results[0] === attribute.name) {\\n\\t\\t\\treturn options.settings.getFields()[results[1]];\\n\\t\\t}\\n\\t}\\n};\\n\",\"module-type\":\"relinkhtmlattributes\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes/fields.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes/macrocall.js\":{\"text\":\"/*\\\\\\n\\nHandles replacement in $macrocall widgets\\n\\n\\\\*/\\n\\nexports.name = \\\"macrocall\\\";\\n\\nexports.getHandler = function(element, attribute, options) {\\n\\tif (element.tag === \\\"$macrocall\\\") {\\n\\t\\tvar nameAttr = element.attributes[\\\"$name\\\"];\\n\\t\\tif (nameAttr) {\\n\\t\\t\\tvar setting = options.settings.getMacro(nameAttr.value);\\n\\t\\t\\treturn setting && setting[attribute.name];\\n\\t\\t}\\n\\t}\\n};\\n\\nexports.formBlurb = function(element, attribute, blurb, options) {\\n\\tvar nameAttr = element.attributes[\\\"$name\\\"];\\n\\tvar newBlurb = '\u003C' + nameAttr.value + ' ' + attribute.name;\\n\\tif (blurb) {\\n\\t\\tnewBlurb += '=\\\"' + blurb + '\\\"';\\n\\t}\\n\\treturn newBlurb;\\n};\\n\",\"module-type\":\"relinkhtmlattributes\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes/macrocall.js\",\"type\":\"application/javascript\"},\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes/whitelist.js\":{\"text\":\"/*\\\\ \\n\\nHandles replacement of widget attributes that are specified in the whitelist.\\n\\n\\\\*/\\n\\nexports.name = \\\"whitelist\\\";\\n\\nexports.getHandler = function(element, attribute, options) {\\n\\tvar setting = options.settings.getAttribute(element.tag);\\n\\treturn setting && setting[attribute.name];\\n};\\n\",\"module-type\":\"relinkhtmlattributes\",\"title\":\"$:/plugins/flibbles/relink/js/relinkoperations/text/wikitext/html/attributes/whitelist.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.getConfig = function(category) {\\n\\treturn this.parent.getConfig(category);\\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 \u003C 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\\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 */\\nvar settingsGenerators = utils.getModulesByTypeAsHashmap('relinksetting', 'name');\\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.getConfig = function(category) {\\n\\treturn this[category];\\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 \u003C 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\\nfunction build(settings, wiki) {\\n\\tfor (var name in settingsGenerators) {\\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 = settingsGenerators[category];\\n\\t\\t\\tif (factory) {\\n\\t\\t\\t\\tvar name = remainder.substr(category.length+1);\\n\\t\\t\\t\\tfactory.generate(settings[category], tiddler, name, wiki);\\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/* 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\u003CV5.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\\nBackupIndexer.prototype.orphans = function() {\\n\\tvar index = getCache(this.wiki).lookup;\\n\\tvar results = [];\\n\\tfor (var title in index) {\\n\\t\\tvar found = false;\\n\\t\\tfor (var anything in this.reverseLookup(title)) {\\n\\t\\t\\tfound = true;\\n\\t\\t\\tbreak;\\n\\t\\t}\\n\\t\\tif (!found) {\\n\\t\\t\\tresults.push(title);\\n\\t\\t}\\n\\t}\\n\\treturn results;\\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 \u003C 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/macrocall.js\":{\"text\":\"/*\\\\\\n\\nMethods for reporting and relinking macros. Behaves much like a fieldtype, except that it's not.\\n\\n\\\\*/\\n\\nvar utils = require('$:/plugins/flibbles/relink/js/utils.js');\\nvar Rebuilder = require(\\\"$:/plugins/flibbles/relink/js/utils/rebuilder\\\");\\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\\n/** As in, report a macrocall invocation that is an html attribute.\\n * macro: must be a macro object.*/\\nexports.report = function(context, macro, callback, options) {\\n\\tvar managedMacro = 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(context, macro.name, managedArg, macro.params, options);\\n\\t\\t} catch (e) {\\n\\t\\t\\tcontinue;\\n\\t\\t}\\n\\t\\tif (index \u003C 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 = 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 */\\nexports.relink = function(context, macro, text, fromTitle, toTitle, mayBeWidget, options) {\\n\\tvar managedMacro = 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(context, 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 \u003C 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 = 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 = 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 = \\\"\u003C\u003C\\\"+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\\n/**Converts the macro object into a string, includes the \u003C\u003C..>>.\\n * The text is the old text the macro was formed from. It's used to preserve\\n * whitespace.\\n */\\nexports.reassemble = function(macro, text, options) {\\n\\tvar builder = new Rebuilder(text, macro.start);\\n\\tfor (var i = 0; i \u003C 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\\n/** Returns -1 if param definitely isn't in macrocall.\\n */\\nfunction getParamIndexWithinMacrocall(context, macroName, param, params, options) {\\n\\tvar index, i, anonsExist = false;\\n\\tfor (i = 0; i \u003C 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(context, 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 \u003C 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(context, macroName, params[i].name, options);\\n\\t\\t\\t\\tif (indexOfOther \u003C 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(context, macroName, paramName, options) {\\n\\tvar def = 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 \u003C 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\\n// Looks up the definition of a macro, and figures out what the expected index\\n// is for the given parameter.\\nfunction indexOfParameterDef(context, macroName, paramName, options) {\\n\\tvar def = 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 \u003C 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\\n/**Like wrapAttribute value, except for macro parameters, not attributes.\\n *\\n * These are more permissive. Allows brackets,\\n * and slashes and '\u003C' in unquoted values.\\n */\\nfunction wrapParameterValue(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(\\\"'\\\") \u003C 0; },\\n\\t\\t'\\\"': function(v) {return v.indexOf('\\\"') \u003C 0; },\\n\\t\\t\\\"[[\\\": canBePrettyOperand,\\n\\t\\t'\\\"\\\"\\\"': function(v) {return v.indexOf('\\\"\\\"\\\"') \u003C 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 \u003C 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 canBePrettyOperand(value) {\\n\\treturn value.indexOf(']') \u003C 0;\\n};\\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\",\"module-type\":\"library\",\"title\":\"$:/plugins/flibbles/relink/js/utils/macrocall.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 \u003C 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\"},\"$:/plugins/flibbles/relink/Filters/Missing\":{\"title\":\"$:/plugins/flibbles/relink/Filters/Missing\",\"description\":\"{{$:/plugins/flibbles/relink/language/Filters/Missing}}\",\"filter\":\"[all[]!is[system]relink:references[]!is[tiddler]!is[shadow]!prefix[$:/tags/]sort[title]] -[[]]\",\"tags\":\"$:/tags/Filter\"},\"$:/plugins/flibbles/relink/Filters/Orphans\":{\"title\":\"$:/plugins/flibbles/relink/Filters/Orphans\",\"description\":\"{{$:/plugins/flibbles/relink/language/Filters/Orphans}}\",\"filter\":\"[relink:orphans[]!is[system]sort[title]]\",\"tags\":\"$:/tags/Filter\"},\"$:/config/flibbles/relink/attributes/$action-deletefield/$tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-deletefield/$tiddler\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-deletetiddler/$filter\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-deletetiddler/$filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-deletetiddler/$tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-deletetiddler/$tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$action-listops/$filter\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-listops/$filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-listops/$tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-listops/$tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$action-log/$$filter\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-log/$$filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-navigate/$to\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-navigate/$to\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$action-popup/$state\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-popup/$state\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$action-sendmessage/$names\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-sendmessage/$names\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-sendmessage/$values\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-sendmessage/$values\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-setfield/$tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-setfield/$tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$fields\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$fields\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$indexes\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$indexes\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$values\":{\"title\":\"$:/config/flibbles/relink/attributes/$action-setmultiplefields/$values\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$button/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$button/actions\",\"text\":\"wikitext\"},\"$:/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/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$checkbox/actions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$checkbox/checkactions\":{\"title\":\"$:/config/flibbles/relink/attributes/$checkbox/checkactions\",\"text\":\"wikitext\"},\"$:/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/$checkbox/uncheckactions\":{\"title\":\"$:/config/flibbles/relink/attributes/$checkbox/uncheckactions\",\"text\":\"wikitext\"},\"$:/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/$droppable/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$droppable/actions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$dropzone/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$dropzone/actions\",\"text\":\"wikitext\"},\"$:/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/inputActions\":{\"title\":\"$:/config/flibbles/relink/attributes/$edit/inputActions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$edit/refreshTitle\":{\"title\":\"$:/config/flibbles/relink/attributes/$edit/refreshTitle\",\"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/$genesis/$names\":{\"title\":\"$:/config/flibbles/relink/attributes/$genesis/$names\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$genesis/$values\":{\"title\":\"$:/config/flibbles/relink/attributes/$genesis/$values\",\"text\":\"filter\"},\"$:/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/$jsontiddler/tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$jsontiddler/tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$keyboard/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$keyboard/actions\",\"text\":\"wikitext\"},\"$:/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/$link/tooltip\":{\"title\":\"$:/config/flibbles/relink/attributes/$link/tooltip\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$linkcatcher/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$linkcatcher/actions\",\"text\":\"wikitext\"},\"$:/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/$log/$$filter\":{\"title\":\"$:/config/flibbles/relink/attributes/$log/$$filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$messagecatcher/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$messagecatcher/actions\",\"text\":\"wikitext\"},\"$:/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/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$radio/actions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$radio/tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$radio/tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$range/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$range/actions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$range/actionsStart\":{\"title\":\"$:/config/flibbles/relink/attributes/$range/actionsStart\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$range/actionsStop\":{\"title\":\"$:/config/flibbles/relink/attributes/$range/actionsStop\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/attributes/$range/tiddler\":{\"title\":\"$:/config/flibbles/relink/attributes/$range/tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$reveal/state\":{\"title\":\"$:/config/flibbles/relink/attributes/$reveal/state\",\"text\":\"reference\"},\"$:/config/flibbles/relink/attributes/$reveal/stateTitle\":{\"title\":\"$:/config/flibbles/relink/attributes/$reveal/stateTitle\",\"text\":\"title\"},\"$:/config/flibbles/relink/attributes/$select/actions\":{\"title\":\"$:/config/flibbles/relink/attributes/$select/actions\",\"text\":\"wikitext\"},\"$:/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/$setmultiplevariables/$names\":{\"title\":\"$:/config/flibbles/relink/attributes/$setmultiplevariables/$names\",\"text\":\"filter\"},\"$:/config/flibbles/relink/attributes/$setmultiplevariables/$values\":{\"title\":\"$:/config/flibbles/relink/attributes/$setmultiplevariables/$values\",\"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\"},\"$:/config/flibbles/relink/attributes/$wikify/text\":{\"title\":\"$:/config/flibbles/relink/attributes/$wikify/text\",\"text\":\"wikitext\"},\"$:/plugins/flibbles/relink/configuration\":{\"title\":\"$:/plugins/flibbles/relink/configuration\",\"text\":\"\\\\whitespace trim\\n\u003Cdiv class=\\\"tc-control-panel\\\">\\n\u003C\u003Ctabs \\\"[all[shadows+tiddlers]tag[$:/tags/flibbles/relink/Configuration]!has[draft.of]]\\\" \\\"$:/plugins/flibbles/relink/ui/configuration/Fields\\\">>\\n\u003C/div>\\n\"},\"$:/config/flibbles/relink/fieldattributes/$action-createtiddler\":{\"title\":\"$:/config/flibbles/relink/fieldattributes/$action-createtiddler\",\"text\":\"([^$].*)\"},\"$:/config/flibbles/relink/fieldattributes/$action-deletefield\":{\"title\":\"$:/config/flibbles/relink/fieldattributes/$action-deletefield\",\"text\":\"([^$].*)\"},\"$:/config/flibbles/relink/fieldattributes/$action-setfield\":{\"title\":\"$:/config/flibbles/relink/fieldattributes/$action-setfield\",\"text\":\"([^$].*)\"},\"$:/config/flibbles/relink/fieldattributes/$jsontiddler\":{\"title\":\"$:/config/flibbles/relink/fieldattributes/$jsontiddler\",\"text\":\"\\\\$(.*)\"},\"$:/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 \\\"\u003C$text text=\u003C\u003CattributeName>>/>\\\". 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 \\\"\u003C$text text=\u003C\u003CelementName>>/>\\\". 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 \\\"\u003C$text text=\u003C\u003CmacroName>>/>\\\". Macros cannot contain whitespace\"},\"$:/plugins/flibbles/relink/language/Error/InvalidParameterName\":{\"title\":\"$:/plugins/flibbles/relink/language/Error/InvalidParameterName\",\"text\":\"Illegal characters in parameter name \\\"\u003C$text text=\u003C\u003CparameterName>>/>\\\". 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 '\u003C\u003Cfrom>>' to '\u003C\u003Cto>>' inside the following tiddlers:\"},\"$:/plugins/flibbles/relink/language/Error/UnrecognizedType\":{\"title\":\"$:/plugins/flibbles/relink/language/Error/UnrecognizedType\",\"text\":\"Relink parse error: Unrecognized field type '\u003C\u003Ctype>>'\"},\"$:/plugins/flibbles/relink/language/Filters/Missing\":{\"title\":\"$:/plugins/flibbles/relink/language/Filters/Missing\",\"text\":\"//Relink// Missing tiddlers\"},\"$:/plugins/flibbles/relink/language/Filters/Orphans\":{\"title\":\"$:/plugins/flibbles/relink/language/Filters/Orphans\",\"text\":\"//Relink// Orphans tiddlers\"},\"$:/plugins/flibbles/relink/language/Help/Attributes\":{\"title\":\"$:/plugins/flibbles/relink/language/Help/Attributes\",\"text\":\"See the \u003Ca href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Attributes]]}}} class=\\\"tc-tiddlylink-external\\\">Attributes documentation page\u003C/a> for details.\"},\"$:/plugins/flibbles/relink/language/Help/Fields\":{\"title\":\"$:/plugins/flibbles/relink/language/Help/Fields\",\"text\":\"See the \u003Ca href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Fields]]}}} class=\\\"tc-tiddlylink-external\\\">Fields documentation page\u003C/a> for details.\"},\"$:/plugins/flibbles/relink/language/Help/Macros\":{\"title\":\"$:/plugins/flibbles/relink/language/Help/Macros\",\"text\":\"See the \u003Ca href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Macros]]}}} class=\\\"tc-tiddlylink-external\\\">Macros documentation page\u003C/a> for details.\"},\"$:/plugins/flibbles/relink/language/Help/Operators\":{\"title\":\"$:/plugins/flibbles/relink/language/Help/Operators\",\"text\":\"See the \u003Ca href={{{[{$:/plugins/flibbles/relink!!demo}addsuffix[#Operators]]}}} class=\\\"tc-tiddlylink-external\\\">Operators documentation page\u003C/a> for details.\"},\"$:/plugins/flibbles/relink/language/SideBar/Missing/Caption\":{\"title\":\"$:/plugins/flibbles/relink/language/SideBar/Missing/Caption\",\"text\":\"//Relink//\u003Cbr>Missing\"},\"$:/plugins/flibbles/relink/language/SideBar/Orphans/Caption\":{\"title\":\"$:/plugins/flibbles/relink/language/SideBar/Orphans/Caption\",\"text\":\"//Relink//\u003Cbr>Orphans\"},\"$:/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/language/Warning/OldRelinkTextOperator\":{\"title\":\"$:/plugins/flibbles/relink/language/Warning/OldRelinkTextOperator\",\"text\":\"Relink cannot parse your \u003Ccode>$$$\u003C\u003Ckeyword>>\u003C/code> wikitext until you migrate your \\\"\u003C\u003Ctype>>\\\" relink module from the deprecated ''relinktextoperator'' module-type to ''relinktext''.\u003Cbr>\u003Cbr>See \u003Ca href={{{ [[Versions/2.1.0]addprefix[#]addprefix{$:/plugins/flibbles/relink!!demo}encodeuri[]] }}} class=\\\"tc-tiddlylink-external\\\">the online documentation\u003C/a> for details.\"},\"$:/plugins/flibbles/relink/license\":{\"title\":\"$:/plugins/flibbles/relink/license\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Ca href={{$:/plugins/flibbles/relink!!demo}} class=\\\"tc-tiddlylink-external\\\">Relink Plugin\u003C/a> Copyright (c) 2019-\u003C\u003Cnow YYYY>> Cameron Fischer\\n\\n[[BSD 3-Clause License|https://raw.githubusercontent.com/flibbles/tw5-relink/master/LICENSE]]\\n\"},\"$:/config/flibbles/relink/macros/colour-picker/actions\":{\"title\":\"$:/config/flibbles/relink/macros/colour-picker/actions\",\"text\":\"wikitext\"},\"$:/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/image-picker/actions\":{\"title\":\"$:/config/flibbles/relink/macros/image-picker/actions\",\"text\":\"wikitext\"},\"$:/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/keyboard-driven-input/configTiddlerFilter\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/configTiddlerFilter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/macros/keyboard-driven-input/inputAcceptActions\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/inputAcceptActions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/macros/keyboard-driven-input/inputAcceptVariantActions\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/inputAcceptVariantActions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/macros/keyboard-driven-input/inputCancelActions\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/inputCancelActions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/macros/keyboard-driven-input/selectionStateTitle\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/selectionStateTitle\",\"text\":\"title\"},\"$:/config/flibbles/relink/macros/keyboard-driven-input/storeTitle\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/storeTitle\",\"text\":\"title\"},\"$:/config/flibbles/relink/macros/keyboard-driven-input/tiddler\":{\"title\":\"$:/config/flibbles/relink/macros/keyboard-driven-input/tiddler\",\"text\":\"title\"},\"$:/config/flibbles/relink/macros/list-links/filter\":{\"title\":\"$:/config/flibbles/relink/macros/list-links/filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/macros/list-links/emptyMessage\":{\"title\":\"$:/config/flibbles/relink/macros/list-links/emptyMessage\",\"text\":\"wikitext\"},\"$:/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/emptyMessage\":{\"title\":\"$:/config/flibbles/relink/macros/list-tagged-draggable/emptyMessage\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate\":{\"title\":\"$:/config/flibbles/relink/macros/list-tagged-draggable/itemTemplate\",\"text\":\"title\"},\"$:/config/flibbles/relink/macros/list-thumbnails/filter\":{\"title\":\"$:/config/flibbles/relink/macros/list-thumbnails/filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/macros/tabs/actions\":{\"title\":\"$:/config/flibbles/relink/macros/tabs/actions\",\"text\":\"wikitext\"},\"$:/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-picker/actions\":{\"title\":\"$:/config/flibbles/relink/macros/tag-picker/actions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/macros/tag-pill/actions\":{\"title\":\"$:/config/flibbles/relink/macros/tag-pill/actions\",\"text\":\"wikitext\"},\"$:/config/flibbles/relink/macros/tag-pill/tag\":{\"title\":\"$:/config/flibbles/relink/macros/tag-pill/tag\",\"text\":\"title\"},\"$:/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/filter\":{\"title\":\"$:/config/flibbles/relink/operators/filter\",\"text\":\"filter\"},\"$:/config/flibbles/relink/operators/list\":{\"title\":\"$:/config/flibbles/relink/operators/list\",\"text\":\"reference\"},\"$:/config/flibbles/relink/operators/subfilter\":{\"title\":\"$:/config/flibbles/relink/operators/subfilter\",\"text\":\"filter\"},\"$:/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\"},\"$:/config/flibbles/relink/operators/relink:report\":{\"title\":\"$:/config/flibbles/relink/operators/relink:report\",\"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 ''\u003C$text text=\u003C\u003CfromTitle>>/>'' to ''\u003C$text text=\u003C\u003CtoTitle>>/>'' across all other tiddlers\"},\"$:/core/ui/EditTemplate/title\":{\"title\":\"$:/core/ui/EditTemplate/title\",\"tags\":\"$:/tags/EditTemplate\",\"text\":\"\\\\whitespace trim\\n\u003C$edit-text field=\\\"draft.title\\\" class=\\\"tc-titlebar tc-edit-texteditor\\\" focus=\\\"true\\\" tabindex={{$:/config/EditTabIndex}}/>\\n\\n\u003C$reveal state=\\\"!!draft.title\\\" type=\\\"nomatch\\\" text={{!!draft.of}} tag=\\\"div\\\">\\n\\n\u003C$vars pattern=\\\"\\\"\\\"[\\\\|\\\\[\\\\]{}]\\\"\\\"\\\" bad-chars=\\\"\\\"\\\"`| [ ] { }`\\\"\\\"\\\">\\n\\n\u003C$list filter=\\\"[all[current]regexp:draft.title\u003Cpattern>]\\\" variable=\\\"listItem\\\">\\n\\n\u003Cdiv class=\\\"tc-message-box\\\">\\n\\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}\\n\\n\u003C/div>\\n\\n\u003C/$list>\\n\\n\u003C/$vars>\\n\\n\u003C$list filter=\\\"[{!!draft.title}!is[missing]]\\\" variable=\\\"listItem\\\">\\n\\n\u003Cdiv class=\\\"tc-message-box\\\">\\n\\n{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}\\n\\n\u003C/div>\\n\\n\u003C/$list>\\n\\n\u003C$list filter=\\\"[{!!draft.of}!is[missing]]\\\" variable=\\\"listItem\\\">\\n\\n\u003C$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/RelinkOnRename\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> {{$:/language/EditTemplate/Title/Relink/Prompt}}\u003C/$checkbox>\\n\\n\u003C$tiddler tiddler=\u003C\u003CfromTitle>> >\\n\\n\u003C$list filter=\\\"[relink:wouldchange\u003CtoTitle>limit[1]]\\\" variable=\\\"listItem\\\">\\n\\n\u003C$vars stateTiddler=\u003C\u003Cqualify \\\"$:/state/edit/references\\\">> >\\n\\n\u003C$set\\n\\tname=\\\"prompt\\\"\\n\\tfilter=\\\"[relink:wouldchange\u003CtoTitle>relink:impossible\u003CtoTitle>]\\\"\\n\\tvalue=\\\"EditTemplate/Title/Impossibles/Prompt\\\"\\n\\temptyValue=\\\"EditTemplate/Title/References/Prompt\\\" >\\n\u003C$reveal type=\\\"nomatch\\\" state=\u003C\u003CstateTiddler>> text=\\\"show\\\">\\n\u003C$button set=\u003C\u003CstateTiddler>> setTo=\\\"show\\\" class=\\\"tc-btn-invisible\\\">\\n{{$:/core/images/right-arrow}}\\n \\n\u003C$macrocall $name=lingo title=\u003C\u003Cprompt>> />\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" state=\u003C\u003CstateTiddler>> text=\\\"show\\\">\\n\u003C$button set=\u003C\u003CstateTiddler>> setTo=\\\"hide\\\" class=\\\"tc-btn-invisible\\\">\\n{{$:/core/images/down-arrow}}\\n \\n\u003C$macrocall $name=lingo title=\u003C\u003Cprompt>> />\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C/$set>\\n\\n\u003C$reveal type=\\\"match\\\" state=\u003C\u003CstateTiddler>> text=\\\"show\\\">\\n\u003C$list variable=\\\"listItem\\\" filter=\\\"[relink:wouldchange\u003CtoTitle>!title[$:/StoryList]sort[title]]\\\" template=\\\"$:/plugins/flibbles/relink/ui/ListItemTemplate\\\">\\n\u003C/$list>\\n\u003C/$reveal>\\n\\n\u003C/$vars>\\n\\n\u003C/$list>\\n\\n\u003C/$tiddler>\\n\\n\u003C/$vars>\\n\\n\u003C/$list>\\n\\n\u003C/$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 \u003Ca href={{$:/plugins/flibbles/relink!!source}} class=\\\"tc-tiddlylink-external\\\">the tw5-relink website\u003C/a> for more details and examples.\\n\"},\"$:/config/flibbles/relink/settings/default-type\":{\"title\":\"$:/config/flibbles/relink/settings/default-type\",\"text\":\"title\"},\"$:/config/flibbles/relink/touch-modify\":{\"title\":\"$:/config/flibbles/relink/touch-modify\",\"text\":\"yes\"},\"$:/config/DefaultColourMappings/relink-impossible\":{\"title\":\"$:/config/DefaultColourMappings/relink-impossible\",\"text\":\"\u003C\u003Ccolour dirty-indicator>>\"},\"$:/language/Docs/PaletteColours/relink-impossible\":{\"title\":\"$:/language/Docs/PaletteColours/relink-impossible\",\"text\":\"Relink link impossible\"},\"$:/plugins/flibbles/relink/ui/ListItemTemplate\":{\"title\":\"$:/plugins/flibbles/relink/ui/ListItemTemplate\",\"text\":\"\\\\whitespace trim\\n\u003C$set\\n\\tname=\\\"classes\\\"\\n\\tfilter=\\\"[\u003ClistItem>relink:impossible\u003CtoTitle>]\\\"\\n\\tvalue=\\\"tc-menu-list-item tc-relink-impossible\\\"\\n\\temptyValue=\\\"tc-menu-list-item\\\">\\n\u003Cdiv class=\u003C\u003Cclasses>>>\\n\u003C$link to=\u003C\u003ClistItem>>>\u003C$text text=\u003C\u003ClistItem>> />\u003C/$link>\\n\u003C/div>\\n\u003C/$set>\\n\"},\"$:/plugins/flibbles/relink/ui/ListItemWithBlurbTemplate\":{\"title\":\"$:/plugins/flibbles/relink/ui/ListItemWithBlurbTemplate\",\"text\":\"\u003Cdiv class=\\\"tc-menu-list-item\\\">\u003C$link />\u003C/div>\\n\u003C$list variable=blurb filter=\\\"[\u003CcurrentTiddler>relink:report\u003CmissingTiddler>]\\\">\u003Cdiv class=\\\"tc-relink-menu-missing-blurb\\\">\u003C$text text=\u003C\u003Cblurb>> />\u003C/div>\\n\"},\"$:/plugins/flibbles/relink/ui/MissingTemplate\":{\"title\":\"$:/plugins/flibbles/relink/ui/MissingTemplate\",\"text\":\"\\\\whitespace trim\\n\u003C$set name=\\\"missingTiddler\\\" value=\u003C\u003CcurrentTiddler>> >\\n\u003Cdiv class=\\\"tc-tiddler-missing\\\">\\n\u003C$button popup=\u003C\u003Cqualify \\\"$:/state/relink/popup/missing\\\">> class=\\\"tc-btn-invisible tc-missing-tiddler-label\\\">\\n\u003C$view field=\\\"title\\\" format=\\\"text\\\" />\\n\u003C/$button>\\n\u003C$reveal state=\u003C\u003Cqualify \\\"$:/state/relink/popup/missing\\\">> type=\\\"popup\\\" position=\\\"below\\\" animate=\\\"yes\\\">\\n\u003Cdiv class=\\\"tc-drop-down\\\">\\n\u003C$transclude tiddler=\\\"$:/core/ui/ListItemTemplate\\\"/>\\n\u003Chr>\\n\u003C$list filter=\\\"[all[current]relink:backreferences[]sort[title]]\\\" template=\\\"$:/plugins/flibbles/relink/ui/ListItemWithBlurbTemplate\\\"/>\\n\u003C/div>\\n\u003C/$reveal>\\n\u003C/div>\\n\u003C/$set>\\n\"},\"$:/plugins/flibbles/relink/ui/MoreSideBar/Missing\":{\"title\":\"$:/plugins/flibbles/relink/ui/MoreSideBar/Missing\",\"caption\":\"{{$:/plugins/flibbles/relink/language/SideBar/Missing/Caption}}\",\"tags\":\"$:/tags/MoreSideBar\",\"text\":\"\u003C$list filter={{$:/plugins/flibbles/relink/Filters/Missing!!filter}} template=\\\"$:/plugins/flibbles/relink/ui/MissingTemplate\\\" />\\n\"},\"$:/plugins/flibbles/relink/ui/MoreSideBar/Orphans\":{\"title\":\"$:/plugins/flibbles/relink/ui/MoreSideBar/Orphans\",\"caption\":\"{{$:/plugins/flibbles/relink/language/SideBar/Orphans/Caption}}\",\"tags\":\"$:/tags/MoreSideBar\",\"text\":\"\u003C$list filter={{$:/plugins/flibbles/relink/Filters/Orphans!!filter}} template=\\\"$:/core/ui/ListItemTemplate\\\" />\\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\\\\whitespace trim\\n\u003C$list filter=\\\"[subfilter\u003Cfilter>first[]]\\\">\\n\u003C\u003Clingo References/Description>>\\n\u003C/$list>\\n\u003Ctable class=\\\"tc-relink-references-table\\\">\\n\u003Ctbody>\\n\u003C$list filter=\u003C\u003Cfilter>> emptyMessage=\u003C\u003Clingo References/Empty>> variable=\\\"listItem\\\" template=\\\"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\\\" />\\n\u003C/tbody>\\n\u003C/table>\\n\"},\"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\":{\"title\":\"$:/plugins/flibbles/relink/ui/TiddlerInfo/ReferencesTemplate\",\"text\":\"\\\\whitespace trim\\n\u003Ctr class=\\\"tc-relink-references\\\">\\n\u003Ctd class=\\\"tc-relink-references-title\\\">\\n\u003C$link to=\u003C\u003ClistItem>>/>\\n\u003C/td>\\n\u003Ctd class=\\\"tc-relink-references-report\\\">\\n\u003C$list filter=\\\"[\u003ClistItem>relink:report\u003CcurrentTiddler>]\\\">\\n\\n\u003C$text text=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\\n\u003C/td>\\n\u003C/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\\\\whitespace trim\\n\\n\u003C$list\\n\\tfilter=\\\"[all[current]prefix\u003Cprefix>]\\\"\\n\\temptyMessage=\\\"\u003C$link>\u003C$button class='tc-btn-invisible' tooltip={{$:/plugins/flibbles/relink/language/Buttons/LinkToInline/Hint}}>{{$:/core/images/link}}\u003C/$button>\u003C/$link>\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" tooltip={{$:/plugins/flibbles/relink/language/Buttons/Delete/Hint}}>\u003C$list filter=\\\"[all[current]is[tiddler]]\\\">\\n\u003C$action-deletetiddler $tiddler=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\u003C$list filter=\\\"[all[current]is[shadow]]\\\">\\n\u003C$action-setfield $tiddler=\u003C\u003CtiddlerName>> text=\\\"\\\" />\\n\u003C/$list>\\n{{$:/core/images/delete-button}}\\n\u003C/$button>\\n\u003C/$list>\\n\"},\"$:/plugins/flibbles/relink/ui/components/select-fieldtype\":{\"title\":\"$:/plugins/flibbles/relink/ui/components/select-fieldtype\",\"text\":\"\\\\define prefix() $:/config/flibbles/relink/\\n\\\\whitespace trim\\n\\n\u003C$vars type={{{ [\u003Csignature>relink:type[]] }}} >\\n\u003C$list filter=\\\"[all[current]prefix\u003Cprefix>]\\\" >\\n\u003C$select tiddler=\u003C\u003CcurrentTiddler>> >\\n\u003C$list variable=\\\"option\\\" filter=\\\"[relink:types[]]\\\">\\n\u003Coption>\u003C$text text=\u003C\u003Coption>> />\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C/$list>\u003C$list filter=\\\"[all[current]!prefix\u003Cprefix>]\\\">\\n\u003C$text text=\u003C\u003Ctype>> />\\n\u003C/$list>\\n\u003C/$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\\\\whitespace trim\\n\\n\u003C$list variable=\\\"render\\\" filter=\\\"[relink:signatures\u003C__plugin__>prefix\u003C__category__>first[]]\\\">\\n\u003C$set name=\\\"table-state\\\" value=\u003C\u003Cqualify \\\"\\\"\\\"$:/state/flibbles/relink/tables/$title$\\\"\\\"\\\">>>\\n\u003Ctr>\u003Cth class=\\\"tc-relink-header-plugin\\\" colspan=\u003C\u003Ccolumn-count>> >\\n\u003C$reveal type=\\\"nomatch\\\" state=\u003C\u003Ctable-state>> text=\\\"yes\\\" default=\\\"\\\"\\\"$default-table-state$\\\"\\\"\\\">\\n\u003C$button class=\\\"tc-btn-invisible tc-btn-dropdown\\\" set=\u003C\u003Ctable-state>> setTo=\\\"yes\\\">\\n{{$:/core/images/right-arrow}} $title$\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" state=\u003C\u003Ctable-state>> text=\\\"yes\\\" default=\\\"\\\"\\\"$default-table-state$\\\"\\\"\\\">\\n\u003C$button class=\\\"tc-btn-invisible tc-btn-dropdown\\\" set=\u003C\u003Ctable-state>> setTo=\\\"no\\\">\\n{{$:/core/images/down-arrow}} $title$\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C/th>\u003C/tr>\\n\u003C$list\\n\\tvariable=\\\"signature\\\"\\n\\tfilter=\\\"[relink:signatures\u003C__plugin__>prefix\u003C__category__>sort[]]\\\">\\n\u003C$vars key={{{ [\u003Csignature>removeprefix\u003C__category__>removeprefix[/]] }}} >\\n\u003C$tiddler tiddler={{{[\u003Csignature>relink:source[]]}}} >\\n\u003C$reveal tag=\\\"tr\\\" type=\\\"match\\\" state=\u003C\u003Ctable-state>> text=\\\"yes\\\" default=\\\"\\\"\\\"$default-table-state$\\\"\\\"\\\">\\n\u003C$macrocall $name=\u003C\u003C__list-row-macro__>> signature=\u003C\u003Csignature>> />\\n\u003Ctd class=\\\"tc-relink-column-type\\\">{{||$:/plugins/flibbles/relink/ui/components/select-fieldtype}}\u003C/td>\\n\u003Ctd class=\\\"tc-relink-column-delete\\\">{{||$:/plugins/flibbles/relink/ui/components/button-delete}}\u003C/td>\\n\u003C/$reveal>\\n\u003C/$tiddler>\\n\u003C/$vars>\\n\u003C/$list>\\n\u003C/$set>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define tables(category, list-row-macro, header-list)\\n\\\\whitespace trim\\n\u003C$vars\\n\\tcolumn-count={{{[enlist\u003C__header-list__>] [[DeleteColumn]] +[count[]]}}}>\\n\u003Ctable class=\\\"tc-relink-whitelist\\\">\u003Ctbody>\\n\u003Ctr>\\n\u003C$list variable=\\\"header\\\" filter=\\\"[enlist\u003C__header-list__>butlast[]]\\\">\u003Cth>\u003C\u003Cheader>>\u003C/th>\u003C/$list>\\n\u003C!-- We have the last column extend into the delete/link column, which is unlabeled. -->\\n\u003Cth colspan=2>\u003C$text text={{{ [enlist\u003C__header-list__>last[]] }}} />\u003C/th>\\n\u003C/tr>\\n\u003C\u003C.make-table Custom \\\"\\\" yes>>\\n\\n\u003C$list\\n\\tfilter=\\\"[plugin-type[plugin]![$:/core]![$:/plugins/flibbles/relink]]\\\">\\n\u003C$set name=\\\"subtitle\\\" filter=\\\"[all[current]has[description]]\\\" value=\\\"''{{!!name}}'': \u003C$text text={{!!description}}/>\\\" emptyValue=\\\"''{{!!name}}''\\\" >\\n\u003C$macrocall $name=\\\".make-table\\\" title=\u003C\u003Csubtitle>> plugin=\u003C\u003CcurrentTiddler>> />\\n\u003C/$set>\\n\u003C/$list>\\n\u003C\u003C.make-table Core \\\"$:/plugins/flibbles/relink\\\">>\\n\\n\u003C/tbody>\u003C/table>\\n\u003C/$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\\\\whitespace trim\\n\u003C$set name='element'\\n value={{{[\u003Ckey>splitbefore[/]removesuffix[/]]}}}>\\n\u003C$set name=\\\"attribute\\\"\\n value={{{[\u003Ckey>removeprefix\u003Celement>removeprefix[/]]}}}>\\n\u003Ctd>\u003C$text text=\u003C\u003Celement>> />\u003C/td>\\n\u003Ctd>\u003C$text text=\u003C\u003Cattribute>> />\u003C/td>\\n\u003C/$set>\u003C/$set>\\n\\\\end\\n\\\\define body()\\n\\\\whitespace trim\\n\\n\u003Cem class=\\\"tc-edit\\\">Add a new attribute:\u003C/em>\\n \\n\u003C$edit-text\\n\\ttiddler=\u003C\u003Celement-name-tiddler>>\\n\\ttag=\\\"input\\\"\\n\\tdefault=\\\"\\\"\\n\\tplaceholder=\\\"widget/element\\\" />\\n \\n\u003C$edit-text\\n\\ttiddler=\u003C\u003Cattribute-name-tiddler>>\\n\\ttag=\\\"input\\\"\\n\\tdefault=\\\"\\\"\\n\\tplaceholder=\\\"attribute\\\" />\\n \\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" state=\u003C\u003Celement-name-tiddler>> >\\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" state=\u003C\u003Cattribute-name-tiddler>> >\\n\u003C$relinkmangler>\\n\u003C$button\\n\\ttooltip={{$(lingo-base)$NewAttribute/Hint}}\\n\\taria-label={{$(lingo-base)$NewAttribute/Caption}}>\\n\u003C$action-sendmessage\\n\\t$message=\\\"relink-add-attribute\\\"\\n\\telement={{$(element-name-tiddler)$}}\\n\\tattribute={{$(attribute-name-tiddler)$}} />\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Cattribute-name-tiddler>> />\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Celement-name-tiddler>> />\\n\u003C$text text={{$(lingo-base)$NewAttribute/Caption}}/>\\n\u003C/$button>\\n\u003C/$relinkmangler>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" state=\u003C\u003Cattribute-name-tiddler>> >\\n\u003C$button>\\n\u003C$text text={{$(lingo-base)$NewAttribute/Caption}}/>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" state=\u003C\u003Celement-name-tiddler>> >\\n\u003C$button>\\n\u003C$text text={{$(lingo-base)$NewAttribute/Caption}}/>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$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{{$:/plugins/flibbles/relink/language/Help/Attributes}}\\n\\n\u003C\u003Cbody>>\\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\u003Ctd>\u003C$text text=\u003C\u003Ckey>> />\u003C/td>\\n\\\\end\\n\\n\\\\define body()\\n\\\\whitespace trim\\n\\n\u003Cem class='tc-edit'>Add a new field:\u003C/em>\\n \\n\u003C$edit-text\\n\\ttiddler=\u003C\u003Cfield-name-tiddler>>\\n\\ttag=\\\"input\\\"\\n\\tdefault=\\\"\\\"\\n\\tplaceholder=\\\"field name\\\" />\\n \\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" state=\u003C\u003Cfield-name-tiddler>> >\\n\u003C$relinkmangler>\\n\u003C$button\\n\\ttooltip={{$(lingo-base)$NewField/Hint}}\\n\\taria-label={{$(lingo-base)$NewField/Caption}}>\\n\u003C$action-sendmessage\\n\\t$message=\\\"relink-add-field\\\"\\n\\tfield={{$(field-name-tiddler)$}} />\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Cfield-name-tiddler>> />\\n\u003C$text text={{$(lingo-base)$NewField/Caption}}/>\\n\u003C/$button>\\n\u003C/$relinkmangler>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" state=\u003C\u003Cfield-name-tiddler>> >\\n\u003C$button>\\n\u003C$text text={{$(lingo-base)$NewField/Caption}}/>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$macrocall\\n\\t$name=tables\\n\\tcategory=\\\"fields\\\"\\n\\theader-list=\\\"[[Field Name]] [[Field Type]]\\\"\\n\\tlist-row-macro=\\\"row\\\" />\\n\\\\end\\n\\n{{$:/plugins/flibbles/relink/language/Help/Fields}}\\n\\n\u003C\u003Cbody>>\\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\\\\whitespace trim\\n\u003C$set name=\\\"parameter\\\"\\n value={{{[\u003Ckey>relink:splitafter[/]]}}}>\\n\u003C$set name='macro'\\n value={{{[\u003Ckey>removesuffix\u003Cparameter>removesuffix[/]]}}}>\\n\u003Ctd>\u003C$text text=\u003C\u003Cmacro>> />\u003C/td>\\n\u003Ctd>\u003C$text text=\u003C\u003Cparameter>> />\u003C/td>\\n\u003C/$set>\u003C/$set>\\n\\\\end\\n\\n\\\\define body()\\n\\\\whitespace trim\\n\\n\u003Cem class=\\\"tc-edit\\\">Add a new macro parameter:\u003C/em>\\n \\n\u003C$edit-text\\n\\ttiddler=\u003C\u003Cmacro-name-tiddler>>\\n\\ttag=\\\"input\\\"\\n\\tdefault=\\\"\\\"\\n\\tplaceholder=\\\"macro\\\" />\\n \\n\u003C$edit-text\\n\\ttiddler=\u003C\u003Cparameter-name-tiddler>>\\n\\ttag=\\\"input\\\"\\n\\tdefault=\\\"\\\"\\n\\tplaceholder=\\\"parameter\\\" />\\n \\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" state=\u003C\u003Cmacro-name-tiddler>> >\\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" state=\u003C\u003Cparameter-name-tiddler>> >\\n\u003C$relinkmangler>\\n\u003C$button\\n\\ttooltip={{$(lingo-base)$NewParameter/Hint}}\\n\\taria-label={{$(lingo-base)$NewParameter/Caption}}>\\n\u003C$action-sendmessage\\n\\t$message=\\\"relink-add-parameter\\\"\\n\\tmacro={{$(macro-name-tiddler)$}}\\n\\tparameter={{$(parameter-name-tiddler)$}} />\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Cparameter-name-tiddler>> />\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Cmacro-name-tiddler>> />\\n\u003C$text text={{$(lingo-base)$NewParameter/Caption}}/>\\n\u003C/$button>\\n\u003C/$relinkmangler>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" state=\u003C\u003Cparameter-name-tiddler>> >\\n\u003C$button>\\n\u003C$text text={{$(lingo-base)$NewParameter/Caption}}/>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" state=\u003C\u003Cmacro-name-tiddler>> >\\n\u003C$button>\\n\u003C$text text={{$(lingo-base)$NewParameter/Caption}}/>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$macrocall\\n\\t$name=tables\\n\\tcategory=\\\"macros\\\"\\n\\theader-list=\\\"Macro Parameter Type\\\"\\n\\tlist-row-macro=\\\"row\\\" />\\n\\\\end\\n\\n{{$:/plugins/flibbles/relink/language/Help/Macros}}\\n\\n\u003C\u003Cbody>>\\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\u003Ctd>\u003C$text text=\u003C\u003Ckey>> />\u003C/td>\\n\\\\end\\n\\n\\\\define body()\\n\\\\whitespace trim\\n\\n\u003Cem class='tc-edit'>Add a new filter operator:\u003C/em>\\n \\n\u003C$edit-text\\n\\ttiddler=\u003C\u003Coperator-name-tiddler>>\\n\\ttag=\\\"input\\\"\\n\\tdefault=\\\"\\\"\\n\\tplaceholder=\\\"operator name\\\" />\\n \\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" state=\u003C\u003Coperator-name-tiddler>>>\\n\u003C$relinkmangler>\\n\u003C$button\\n\\ttooltip={{$(lingo-base)$NewOperator/Hint}}\\n\\taria-label={{$(lingo-base)$NewOperator/Caption}}>\\n\u003C$action-sendmessage\\n\\t$message=\\\"relink-add-operator\\\"\\n\\toperator={{$(operator-name-tiddler)$}} />\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Coperator-name-tiddler>> />\\n\u003C$text text={{$(lingo-base)$NewOperator/Caption}}/>\\n\u003C/$button>\\n\u003C/$relinkmangler>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" state=\u003C\u003Coperator-name-tiddler>>>\\n\u003C$button>\\n\u003C$text text={{$(lingo-base)$NewOperator/Caption}}/>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$macrocall\\n\\t$name=tables\\n\\tcategory=\\\"operators\\\"\\n\\theader-list=\\\"[[Filter Operator]] [[Operand Type]]\\\"\\n\\tlist-row-macro=\\\"row\\\" />\\n\\\\end\\n\\n{{$:/plugins/flibbles/relink/language/Help/Operators}}\\n\\n\u003C\u003Cbody>>\\n\"},\"$:/plugins/flibbles/relink/ui/stylesheet.css\":{\"title\":\"$:/plugins/flibbles/relink/ui/stylesheet.css\",\"tags\":\"$:/tags/Stylesheet\",\"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: \u003C\u003Ccolour relink-impossible>>;\\n}\\n\\n.tc-relink-menu-missing-blurb {\\n\\tmargin-left: 30pt;\\n}\\n\"}}}"}, {"text":"{\"tiddlers\":{\"$:/config/TiddlyWiki-CPL/GitHub\":{\"title\":\"$:/config/TiddlyWiki-CPL/GitHub\",\"caption\":\"\u003C$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\u003C$list filter=\\\"[\u003Clang>search:title[zh]]\\\">太微中文社区插件源(~GitHub版)\u003C/$list>\u003C$list filter=\\\"[\u003Clang>!search:title[zh]]\\\">TiddlyWiki CPL(~GitHub Host)\u003C/$list>\u003C/$list>\",\"tags\":[\"$:/tags/PluginLibrary\",\"$:/tags/PluginLibrary/CPL\"],\"type\":\"text/vnd.tiddlywiki\",\"url\":\"https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html\",\"text\":\"\u003C!-- lang变量就是当前语言 -->\\n\u003C$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\u003C$list filter=\\\"[\u003Clang>search:title[zh]]\\\" variable=\\\"lang\\\">\\n\\n欢迎使用''【太微中文社区插件源】''!\\n\\n本插件源是由[[太微(TiddlyWiki)中文社区|https://github.com/tiddly-gittly]]维护的、致力于搜集网络上所有与 ~TiddlyWiki5 有关插件的、希望为中国以及全世界的太微用户提供一键安装、更新插件体验的公开插件源。\\n\\n如果还不了解该如何使用太微和本插件源,欢迎阅读[[中文社区共建的太微(TiddlyWiki)教程|https://tw-cn.netlify.app]]里插件相关的部分。如上提到的插件源和教程皆为开源项目,你可以在 [[GitHub|https://github.com/tiddly-gittly]] 中找到并参与贡献!如果乐意,可以通过QQ群等方式加入我们,详情请见如上提到的中文教程。\\n\\n要添加这个插件库到你的 Wiki 中,只需鼠标拖动这个链接到你的 Wiki 里即可:\u003C$link to=\u003C\u003CcurrentTiddler>>>{{!!caption}}\u003C/$link>\\n\\n注意:本插件源版本为 ~GitHub Page 的版本,更新更快,但是可能需要科学上网手段。如果你在国内,而且不清楚什么是“科学上网”,请选用另一个经过 netlify.app 加速的[[版本|$:/config/TiddlyWiki-CPL/Netlify]],虽然更新有一定的延迟,但对国内用户更加友好。\\n\\n@@color:red;''安装任何插件前,请记得备份你的Wiki,本插件源无法为插件造成的个人损失负责!''@@\\n\\n\u003C/$list>\\n\\n\u003C$list filter=\\\"[\u003Clang>!search:title[zh]]\\\" variable=\\\"lang\\\">\\n\\nWelcome to the ''[TiddlyWiki Chinese Community Plugin Source]''!\\n\\nThis plugin source is maintained by the [[TiddlyWiki Chinese Community]] and is dedicated to collecting all TiddlyWiki5 related plugins on the web, hoping to provide a one-click installation and update plugin experience for TiddlyWiki users in China and around the world.\\n\\nIf you don't know how to use TiddlyWiki and this source, you are welcome to read the plugins related section in the [[TiddlyWiki Tutorials for Chinese Communities|https://tw-cn.netlify.app]]. As mentioned above, both the plugin source and the tutorial are open source projects, you can find them in [[GitHub|https://github.com/tiddly-gittly]] and participate in contributing! If you like, you can join us through QQ groups and other means, see the Chinese tutorials mentioned above for details.\\n\\nTo add this plugin library to your Wiki, just drag this link with your mouse into your Wiki: \u003C$link to=\u003C\u003CcurrentTiddler>>>{{!!caption}}\u003C/$link>\\n\\nNote: The source version of this plugin is the ~GitHub Page version, which is faster to update, but may require scientific Internet access. If you are in China and are not sure what GFW is, please use another [[version|$:/config/TiddlyWiki-CPL/Netlify]] that is accelerated by netlify.app, although there is a certain delay in updating, but it is more friendly to domestic users more friendly.\\n\\n@@color:red;''Please remember to back up your Wiki before installing any plugins, this plugin source cannot be held responsible for personal losses caused by plugins!''@@\\n\\n\u003C/$list>\\n\u003C/$list>\\n\"},\"$:/config/TiddlyWiki-CPL/Netlify\":{\"title\":\"$:/config/TiddlyWiki-CPL/Netlify\",\"caption\":\"\u003C$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\u003C$list filter=\\\"[\u003Clang>search:title[zh]]\\\">太微中文社区插件源(大陆加速版)\u003C/$list>\u003C$list filter=\\\"[\u003Clang>!search:title[zh]]\\\">TiddlyWiki CPL(Netlify Host)\u003C/$list>\u003C/$list>\",\"tags\":[\"$:/tags/PluginLibrary\",\"$:/tags/PluginLibrary/CPL\"],\"type\":\"text/vnd.tiddlywiki\",\"url\":\"https://tw-cpl.netlify.app/library/index.html\",\"text\":\"\u003C!-- lang变量就是当前语言 -->\\n\u003C$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\u003C$list filter=\\\"[\u003Clang>search:title[zh]]\\\" variable=\\\"lang\\\">\\n\\n欢迎使用''【太微中文社区插件源】''!\\n\\n本插件源是由[[太微(TiddlyWiki)中文社区|https://github.com/tiddly-gittly]]维护的、致力于搜集网络上所有与 ~TiddlyWiki5 有关插件的、希望为中国以及全世界的太微用户提供一键安装、更新插件体验的公开插件源。\\n\\n如果还不了解该如何使用太微和本插件源,欢迎阅读[[中文社区共建的太微(TiddlyWiki)教程|https://tw-cn.netlify.app]]里插件相关的部分。如上提到的插件源和教程皆为开源项目,你可以在 [[GitHub|https://github.com/tiddly-gittly]] 中找到并参与贡献!如果乐意,可以通过QQ群等方式加入我们,详情请见如上提到的中文教程。\\n\\n要添加这个插件库到你的 Wiki 中,只需鼠标拖动这个链接到你的 Wiki 里即可:\u003C$link to=\u003C\u003CcurrentTiddler>>>{{!!caption}}\u003C/$link>\\n\\n注意:本插件源版本为经过 netlify.app 加速的版本,对国内用户更加友好,但是更新有一定的延迟。还提供另一版本,是直接使用 ~GitHub Page 服务器的版本,更新更快,但是可能需要科学上网手段。\\n\\n@@color:red;''安装任何插件前,请记得备份你的Wiki,本插件源无法为插件造成的个人损失负责!''@@\\n\\n\u003C/$list>\\n\\n\u003C$list filter=\\\"[\u003Clang>!search:title[zh]]\\\" variable=\\\"lang\\\">\\n\\nWelcome to the ''[TiddlyWiki Chinese Community Plugin Source]''!\\n\\nThis plugin source is maintained by the [[TiddlyWiki Chinese Community]] and is dedicated to collecting all TiddlyWiki5 related plugins on the web, hoping to provide a one-click installation and update plugin experience for TiddlyWiki users in China and around the world.\\n\\nIf you don't know how to use TiddlyWiki and this source, you are welcome to read the plugins related section in the [[TiddlyWiki Tutorials for Chinese Communities|https://tw-cn.netlify.app]]. As mentioned above, both the plugin source and the tutorial are open source projects, you can find them in [[GitHub|https://github.com/tiddly-gittly]] and participate in contributing! If you like, you can join us through QQ groups and other means, see the Chinese tutorials mentioned above for details.\\n\\nTo add this plugin library to your Wiki, just drag this link with your mouse into your Wiki: \u003C$link to=\u003C\u003CcurrentTiddler>>>{{!!caption}}\u003C/$link>\\n\\nNote: The source version of this plugin is a version accelerated by netlify.app, which is more friendly to China mainland users, but there is a delay in updating. There is also another version that uses the GitHub Page server directly, which is faster to update, but may require technology to overturn the GFW.\\n\\n@@color:red;''Please remember to back up your Wiki before installing any plugins, this plugin source cannot be held responsible for personal losses caused by plugins!''@@\\n\\n\u003C/$list>\\n\u003C/$list>\\n\"}}}","type":"application/json","author":"Gk0Wk","description":"Repos for CPL","name":"CPL Repo","plugin-type":"plugin","title":"$:/plugins/Gk0Wk/CPL-Repo","version":"2022.12.28","revision":"0","bag":"default"}, {"version":"0.0.9","type":"application/json","title":"$:/plugins/Gk0Wk/echarts","plugin-type":"plugin","name":"ECharts","list":"readme LICENSE","description":"ECharts for TiddlyWiki5","author":"Gk0Wk","source":"https://github.com/tiddly-gittly/tw-echarts/tree/master/plugins/Gk0Wk/echarts","dependents":"$:/plugins/felixhayashi/hotzone","text":"{\"tiddlers\":{\"$:/plugins/Gk0Wk/echarts/LICENSE\":{\"title\":\"$:/plugins/Gk0Wk/echarts/LICENSE\",\"type\":\"text/plain\",\"text\":\"\\nMIT License\\n\\nCopyright (c) 2023 Gk0Wk(nmg_wk@yeah.net)\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"`{\\n \\\"tooltip\\\": {\\n \\\"trigger\\\": \\\"item\\\"\\n },\\n \\\"series\\\": [\\n {\\n \\\"type\\\": \\\"treemap\\\",\\n \\\"visibleMin\\\": 300,\\n \\\"name\\\": \\\"Plugin Size\\\",\\n \\\"leafDepth\\\": 1,\\n \\\"data\\\": [\\n`\\n\u003C$list filter=\\\"[!plugin-type[]!title[$:/core]!title[$:/temp/info-plugin]]\\\" variable=\\\"pluginName\\\" counter=\\\"counter1\\\">\\n` {\\n \\\"name\\\": \\\"`\u003C$list filter=\\\"[\u003CpluginName>has[name]]\\\">\u003C$text text={{{ [\u003CpluginName>get[name]] }}}/>\u003C/$list>\u003C$list filter=\\\"[\u003CpluginName>!has[name]]\\\">\u003C$text text={{{ [\u003CpluginName>has[name]else\u003CpluginName>split[/]nth[4]] }}}/>\u003C/$list>`\\\",\\n \\\"value\\\": `\u003C$text text={{{ [\u003CpluginName>get[text]length[]else[0]] }}}/>`,\\n \\\"children\\\": [\\n`\\n\u003C$list filter=\\\"[\u003CpluginName>plugintiddlers[]]\\\" variable=\\\"pluginShadow\\\" counter=\\\"counter2\\\">\\n` {\\n \\\"name\\\": \\\"`\u003C$text text={{{ [\u003CpluginShadow>removeprefix\u003CpluginName>removeprefix[/]else\u003CpluginShadow>] }}}/>`\\\",\\n \\\"value\\\": `\u003C$text text={{{ [\u003CpluginShadow>get[text]length[]else[0]] }}}/>`\\n }`\u003C$list filter=\\\"[\u003Ccounter2-last>match[no]]\\\">`,`\u003C/$list>`\\n`\\n\u003C/$list>\\n` ]\\n }`\u003C$list filter=\\\"[\u003Ccounter1-last>match[no]]\\\">`,`\u003C/$list>`\\n`\\n\u003C/$list>\\n`\\n ],\\n \\\"levels\\\": [\\n {\\n \\\"itemStyle\\\": {\\n \\\"borderColor\\\": \\\"#555\\\",\\n \\\"borderWidth\\\": 4,\\n \\\"gapWidth\\\": 4\\n }\\n },\\n {\\n \\\"colorSaturation\\\": [0.3, 0.6],\\n \\\"itemStyle\\\": {\\n \\\"borderColorSaturation\\\": 0.7,\\n \\\"gapWidth\\\": 2,\\n \\\"borderWidth\\\": 2\\n }\\n }\\n ],\\n \\\"upperLabel\\\": {\\n \\\"show\\\": true,\\n \\\"height\\\": 30\\n }\\n }\\n ]\\n}`\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/SimpleExample.json\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/SimpleExample.json\",\"type\":\"application/json\",\"text\":\"{\\n \\\"xAxis\\\": {\\n \\\"type\\\": \\\"category\\\",\\n \\\"data\\\": [\\\"Mon\\\", \\\"Tue\\\", \\\"Wed\\\", \\\"Thu\\\", \\\"Fri\\\", \\\"Sat\\\", \\\"Sun\\\"]\\n },\\n \\\"yAxis\\\": {\\n \\\"type\\\": \\\"value\\\"\\n },\\n \\\"series\\\": [\\n {\\n \\\"data\\\": [120, 200, 150, 80, 70, 110, 130],\\n \\\"type\\\": \\\"bar\\\",\\n \\\"showBackground\\\": true,\\n \\\"backgroundStyle\\\": {\\n \\\"color\\\": \\\"rgba(180, 180, 180, 0.2)\\\"\\n }\\n }\\n ]\\n}\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TagCloudTagView\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TagCloudTagView\",\"text\":\"\u003C$set name=\\\"tagName\\\" value={{$:/temp/Gk0Wk/echarts/addons/TagCloud/currentTag}}>\\n\\n\u003C$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\u003C$list filter=\\\"[\u003Clang>search[zh]]\\\">\\n\\n!! 包含 \u003C$link to=\u003C\u003CtagName>>/> 标签的条目\\n\\n\u003C/$list>\\n\\n\u003C$list filter=\\\"[\u003Clang>!search[zh]]\\\">\\n\\n!! Tiddlers tagged with \u003C$link to=\u003C\u003CtagName>>/>\\n\\n\u003C/$list>\\n\u003C/$list>\\n\\n\u003Cdiv class=\\\"tc-table-of-contents\\\">\\n\u003C$macrocall $name=\\\"toc\\\" tag=\u003C\u003CtagName>> sort=\\\"sort[title]\\\"/>\\n\u003C/div>\\n\\n\u003C/$set>\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\",\"text\":\"const Categories=[{name:\\\"Focusing\\\"},{name:\\\"History\\\"},{name:\\\"Link To\\\"},{name:\\\"Backlink From\\\"},{name:\\\"Tag To\\\"},{name:\\\"Tag By\\\"},{name:\\\"Parent\\\"}];function getAliasOrTitle(e,t){var i=$tw.wiki.getTiddler(e);return i&&(i=i.fields[t])&&\\\"string\\\"==typeof i?$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",i,{variables:{currentTiddler:e}}):e}exports.onMount=function(e){return e.on(\\\"click\\\",function(e){\\\"node\\\"===e.dataType&&(new $tw.Story).navigateTiddler(e.data.name)}),{historyTiddlers:[]}},exports.shouldUpdate=function(e,t){return 0\u003C$tw.utils.count(t)},exports.onUpdate=function onUpdate(e,i,t){const r=t.focussedTiddler||$tw.wiki.getTiddlerText(\\\"$:/temp/focussedTiddler\\\"),a=t.levels?Number.parseInt(t.levels):1;var l=t.graphTitle||\\\"The Brain View\\\";if(!r||!r.startsWith(\\\"$:/\\\")){const c=[],g=[],w=\\\"\\\"===t.aliasField?undefined:t.aliasField,u=\\\"\\\"===t.excludeFilter||t.excludeFilter===undefined?undefined:$tw.wiki.compileFilter(t.excludeFilter);if(r&&\\\"\\\"!==r){const h={\\\"\\\":!0};h[r]=!0,c.push({name:r,category:0,label:{formatter:getAliasOrTitle(r,w)}});let e=r;var s={};for(let t=i.historyTiddlers.length-2;0\u003C=t;t--){var o=i.historyTiddlers[t];if(!s[o]&&(o!==e&&!o.startsWith(\\\"$:/\\\"))){if(g.push({source:o,target:e,label:{show:!0,formatter:\\\"history\\\"}}),s[o]=!0,e=o,h[o])break;u&&0!==u.call($tw.wiki,[o]).length||c.push({name:o,label:{formatter:getAliasOrTitle(o,w)},category:1}),h[o]=!0}}function n(t,e,i){g.push({source:t,target:e,label:{show:!0,formatter:\\\"backlink\\\"}}),h[t]||(u&&0!==u.call($tw.wiki,[t]).length||c.push({name:t,category:3}),h[t]=!0,i!==a&&$tw.utils.each($tw.wiki.getTiddlerLinks(t),e=>{n(e,t,i+1)}))}$tw.utils.each($tw.wiki.getTiddlerLinks(r),e=>function l(t,e,i){g.push({source:e,target:t,label:{show:!0,formatter:\\\"link\\\"}}),h[t]||(u&&0!==u.call($tw.wiki,[t]).length||c.push({name:t,label:{formatter:getAliasOrTitle(t,w)},category:2}),h[t]=!0,i!==a&&$tw.utils.each($tw.wiki.getTiddlerLinks(t),e=>{l(e,t,i+1)}))}(e,r,1)),$tw.utils.each($tw.wiki.getTiddlerBacklinks(r),e=>n(e,r,1)),$tw.utils.each($tw.wiki.getTiddler(r).fields.tags,e=>{var t,i;t=e,e=r,i=1,$tw.wiki.tiddlerExists(t)&&(g.push({source:e,target:t,label:{show:!0,formatter:\\\"tag\\\"}}),h[t]||(u&&0!==u.call($tw.wiki,[t]).length||c.push({name:t,label:{formatter:getAliasOrTitle(t,w)},category:4}),h[t]=!0,i!==a&&$tw.utils.each($tw.wiki.getTiddler(t).fields.tags,e=>{n(e,t,i+1)})))}),$tw.utils.each($tw.wiki.getTiddlersWithTag(r),e=>{!function l(t,e,i){g.push({source:t,target:e,label:{show:!0,formatter:\\\"tag\\\"}}),h[t]||(u&&0!==u.call($tw.wiki,[t]).length||c.push({name:t,label:{formatter:getAliasOrTitle(t,w)},category:5}),h[t]=!0,i!==a&&$tw.utils.each($tw.wiki.getTiddlersWithTag(t),e=>{l(e,t,i+1)}))}(e,r,1)});var d=r.split(\\\"/\\\");1\u003Cd.length&&(d=d.slice(0,-1).join(\\\"/\\\"),$tw.utils.each([d,d+\\\"/\\\"],function(e){g.push({source:e,target:r,label:{show:!0,formatter:\\\"parent\\\"}}),h[e]||(u&&0!==u.call($tw.wiki,[e]).length||c.push({name:e,label:{formatter:getAliasOrTitle(e,w)},category:6}),h[e]=!0)}))}d=i.historyTiddlers.indexOf(r);-1\u003Cd&&i.historyTiddlers.splice(d,1),i.historyTiddlers.push(r),i.historyTiddlers.slice(-10),e.setOption({legend:[{data:Categories.map(function(e){return e.name})}],title:{text:l,show:!0,top:\\\"bottom\\\",left:\\\"right\\\"},series:[{name:l,type:\\\"graph\\\",layout:\\\"force\\\",nodes:c,edges:g,categories:Categories,roam:!0,draggable:!0,zoom:4,label:{position:\\\"right\\\",show:!0},force:{repulsion:50},edgeSymbol:[\\\"circle\\\",\\\"arrow\\\"],edgeSymbolSize:[4,10],edgeLabel:{fontSize:5},lineStyle:{opacity:.9,width:2,curveness:0}}]})}};\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\"},\"$:/plugins/Gk0Wk/echarts/addons/oflg/CalendarHeatmap/CalendarHeatmapExample\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/oflg/CalendarHeatmap/CalendarHeatmapExample\",\"text\":\"\u003C$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/oflg/CalendarHeatmap/CalendarHeatmap.js\\\" $height=\\\"180px\\\"/>\\n\"},\"$:/plugins/Gk0Wk/echarts/banner\":{\"title\":\"$:/plugins/Gk0Wk/echarts/banner\",\"text\":\"/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAeAAD/7gAhQWRvYmUAZMAAAAABAwAQAwIDBgAAElMAACf5AABfHf/bAIQAEAsLCwwLEAwMEBcPDQ8XGxQQEBQbHxcXFxcXHx4XGhoaGhceHiMlJyUjHi8vMzMvL0BAQEBAQEBAQEBAQEBAQAERDw8RExEVEhIVFBEUERQaFBYWFBomGhocGhomMCMeHh4eIzArLicnJy4rNTUwMDU1QEA/QEBAQEBAQEBAQEBA/8IAEQgBGgMAAwEiAAIRAQMRAf/EAOIAAQACAwEBAAAAAAAAAAAAAAACBAEDBQYHAQEBAQEBAQEAAAAAAAAAAAAAAQIDBAUGEAACAgICAQMDBAICAgMBAAABAgMEABESBRMQICEwFAZAMTIVIiNBM1AWYCQ0NREAAgECAwQGBgcGBAQFBQEAAQIRAAMhMRJBURMEYXGR0SIyECCBoUIzMECxwZIjFPDhUmJygtLiNAVgskNzUPGiwiRTY4OTRBUSAAEDAwAIBQIEBAYDAAAAAAEAEQIhMRIQIEFRYXEiAzCBkaEy0RNAsUKCUMFiM/DhUnIjBPGSsv/aAAwDAQACEQMRAAAA8gPT5R0I57s4XjutzjULBZz0rN8bjU36LAABcz0prte415u2U5MejPO+W7Gy54bowsoyvxzqg6MSg6tHU0CwAAAAAAAAAAAztnTS27GKzdJK6zgrrUVrrEU0igAAAAAAAAAAGcDdrziGMKywMsDLAywMsDLEiN2nmW5RlhMW6mwlpngjKMqlYp7ZdUtm8pCwABOVnn6aI6eYAAAAAAASItuobNaalPUZlKOVZ1rNjWieIqAAAAAAAAAAAAAsatmuXBlMJwaC5JZlhndYx2pRvaF02IWWamndjWNUu/tzrzc0t89VnTqOjCpcKuejyyAsAAAzhmaw37M9ag3wAAAAAAEjGN2kAbp6s73ZqbEjG3ErDWRkxs1pq7rrJbGymuOlppjq16WzO+rTp41jpa62qOjGgzvpx5zUtbaCzbqLAAJ4W87rWYVc9OjGgmre7nNY6MuYzrpZ5hek5pOk5pd9vmt8PU58rfx01R046cuhzrOyWssabGmUUCgAAJZznHbbso5z0wtZuajbLWNBsuNYuRcz1pltKg1zZwNuIxl35rlnAuQEootRrpqxHSqUS5AATsxl12dkpqvC7OKWq7pspwvUbkKAAAAtxrJd2yqTZaoiV2hgncojZYpjdsqiwrizWKs9bhM72wldua1uG7OtdLfXs1xnDWTPRlp6e1SzqpjONYwTXfmOePu0zk1z0ZlPXPNijt5917l7VjbobNc9e/Rt1y03KmyXUN8Eoq26pRAAAAAAAEo3ojjs6ZvVu7HO+b7o0+fv+h44b47rlb46XoULd+Xm1rvP3jQNZAAMpcFoqsLMrNWMsXCowrIAAG2O6WtsjlEM4qfT5d7OrXM6PU5dfM9Xkz6c+ljmRNmdEdZ6FDODAsCULAGcJWcECmcAABnA26p4IpiCYgmIJiCYgmIM4F3TOXpWaN3z+itTxZ3zja3V9S9HGJrVTv1Lmj0ddCvQcL03DxunUu6evHQLAMThuiDcNLdg1NszRjfg0t8DSlGgADO8052XpeYjOyXpePHn09d5O9zc7pLtPrxzDbexrm79beb9HUlljCwLAAJxwmpQyuQAAAADp2ZeQ6Y5mOoOY6Y5eemOY6Y5cesOO73BSe3b6WaornB59dXU52zfPt8ucZqnC3C5j061qahzOjURd5HYXn8rrV9c6I1AI2NG+XLMZZZ1TMTxisxnGXMcxshGUbkAC76vx05NWJ4a1pE3+u8RnPT0PoeB6Tl2p+R7/F3zep8nd8nepy+pT9fmrjrzzPWjY1q2IYjY14raa42NathCJmydNaepJNc7iAqe2uLCuLCuLCuLCuLCuLCuN2kJdTm+hzq7wOvxuXbbao9ffOho6eo5N7ZZKWm4MUMzsr3dPex381T9z5bp56A1kDEsYJ4iiedZZz0jbCJJ4xipYAABPM4jrxIAT171n0OTGXv2uZz8bjZ0+g1Nk4S5ddHH7/M3jhbI7N52bKkcdb1aG+arN9fp59uucLjOWF2yzHHeeEJqRBcNmLzrjpwAMZAAAAAAM9Hm3Zbm6te5d+VepS3y6e/m7c6hqv7Kr1+jzSNWWLl0ubg6HI0tZCxKOJZ4wAsAWazO8z1rnGSwziAoAAACVynGW1VLAM9fjyzrs3vMWJrt0dnOitjMt4hLJM69xZT1T5+iMLmta+3bGazW26dcoyZ3xjsjiXfiM8d6t+g6eboZ5xehnp3/ADfS8Y2a/T84LkbTdZhz46mKulYY6XNsZwOv0fOdDOutqr+g8/q8Zu7NfXPn7NGe3GWiV9mpb2jl6r/IauUy5CkZRjbOM2sLVfHXZqs1VzHOd8MZxsm2dSWzXwVODXKevMzRGcLAAJRAABnAljAzmIGTDIYlgwyNqEc9NunJJQnHWMZZI5Bt1pYixeo7M79hjnZ+b+m5mjoU+3jpD3fCdXlXI06epzS/z9kFvc/oc/PYN8G7SLWam2Xs9TzdXn19fp87PXHo6tGqtumFW3bqLAAEZYi5s1T4fR1Rg7+CSJJIiSIkiJIiSIkiMRziwAluz0rsbbz1pXbKDbaz0oLO24osZoAAAAAAAAAAAAC70eC8/wBDs83Q1zDt4wLlMhs1icBQsAA3bqeyWOYLAAAAAAMMjDNzNpNlqKKWNTDKsMjDIwyMMjGQAHrszyD3TM8K91NfBPdDwr3XPPLDpQAAALVOTPTbokvPGSgAAG7TdzutpuRIaNuu5sTqrmPW5bPTG/SuOly85L9KI6XNMbGOmMt/axrzzsY1OQ62TkOxvl4DuXs3yr1FeXz7r56Y470uznvyz0XndQN4AGDOMdTnvmZt3M64+b1fWdC3JaSzcy5eO1v5689nox6Tn57NfLnD0cgHS5qPoLj9PwfR2y0bZo1I2+L6/m/X4g78WM4JzjOWMsSNUsSQyWEsegx14Md+nfJDZBJQ2QWAsYzgnmMpZw2ayUZREsSITjsNWetVilLZtqoWkpxnAv8A0f5z9L8Xr8/shq7Yry7XHs6GuPU4dsR2OHp007fE13t46dPp5+ht1aOGqvgPdeF+h84O3EBjZGWPf4vqfJ25e2NbHTXu6VU5s47fRzvQo9HzdL9HkdWNM84qhYhV9HPQPRwAA293zt7z/Q6s6ezy/V2x0Udcq0D3/ACxjOCU9c4ShIhKEqkxKXNmOzl66kJQ6+SUJQTZHOCIpjOBnO+NULGwq46FFcSvU00z6dCXpUOjQyXNW5eL6Lj9k89GcN5ufQ/n30Tx+3jVbWjvwhnOdTsUK9vh26PM7mjye7z+3dnp6bOM4zyhepXJnf8AK/p/zD0/PwPZ5AJRliWHq/K9jzdr/G7XO4ddtHbv65126/T5aq0OhE59vVnpnfZq2OG9VDfQ786w9vmAAAuXaHdy4dTfooKAYyMzsasddc0tc9EsyMSswx3nLGeXppw3Y9Hz9cN0BHfA0pRRjOKdvleo5687tj2Jrncrr5st+f8AQ8uTo8L1Pnl6PM9J55nqVrVZrTeqXI89Gce2Lfu/nnV8/p72ngQ6cvQy84r0k/M4l+iS8FLy+j2unyUJv1mfHyu/abPEZmPa/MuryfR5w7+cBjODf0uPs49fT7fM2fF2v16dTtjsWOFlbdviZ656Frizy3djzcq7HE3ad4yO3MAAB2eMkC0AAYOlS1sdtktONcrinnHboaqmLOjnms76OqouLGmDXO1GvmwLGMjb0uRjOrF3l4W9mjg69Oojs8+tmzs82vlOjChlbNzkpZYN4AAYyLcOvb4dvN47ui9eTq6fM3yDfEAA24Z1s4aAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAniJn//aAAgBAgABBQDN5sZsejMFG/YzaO83jNocsJ+GbSq21B39XYzYzebGbGb/AE2gfpPIAfpa9Pj9HsH02MaQDFk3jtoL/HmfT981g37fjDIA/wBLZOcfjl6kbCroazWKvHAMAxY9Nx+dexiRg2w8WFCc8eeLPHniziOJRRms3rN+7f8AmYkLeVd812SB6M4XGcL7NezWcR7N5yGchgYH36+iUUnCfkeqF/Q4Q3Lbct/5PGhaSMMzqSWAxwD9TeQ3JZJgoz/HCgOAlcHs3m/pnHnWMuvJQp1gGv0s5chYo0P7584N4QGEZIwfV36MOSogAB3jyomfvnEZoezQ37t/QJIwDZPzgGbw4MP8gR7NjNjN58+3/n0deQkJ2gIy1WeR4gEj+gWwMD9M4p/2HAcJzY0N467YHft1mh9IqDnFiWOs+MUnZOGMnNOmKwYehO8A9A30jjqeRzWbwZ8egAHprNerLsa+mVBwoNBfn49SmiJMLbKrnxhAOa0dZoY9jRBBHuI+W3HkViOVdDNYcA9ocEx89Yd70eSoAfrlQcCgew+jglSdGFjzw/sD8byM79SM8KbVQo+c17f8vPofSLgZv0LgNsb+tJXDNHAqH016AAD6jEgljy+gzcc8ozyjPKMEgJ9qqQPa++I2F9GUkYAc0dqjBsLqG2M2MLqoM0YAmjJ2MM8QKSK/skkWMPYRMWQMPKu2nVQbsQH3CcFtRt6kbDyOreZs8zZBsj3M4U/S387GbHpaJEgDHEcNkjFRsnF/dZjo/OVwAnpv5suwkYM0nldmOwCrIGhePNtxILN62Iyw4PiROzAa9x/ZmB9+8B3gIOAgnR8h+Xc7OWgxdf446BUB+fQ5U9f+bUayiEKrAcHn5KY+Sqy7Zo1AjiAPsIwD2K6t68/kfx2PTY9XbC2l3xVSFVTrFJ2oHLQ55NG7MFOtHCmwaz7FeXPt5M+2lyCJk9jxswerYxIZiHglaQwg4YpDj11cRo6t9FUCD5zi2uH+Qj+OB2N5r14DZQb4DOA0UBHEYEAwIB7S8wPObELH/wAr/9oACAEDAAEFAMA3nE4QR6RRPKxBB9Y4w66w/GIgYka9FXZK6YjX1VhkZNHNHNHNHNH9NsjDg9fjNeyGuXT6QkcLs58+m/0JVgM4tkcBbJK+hDHyMn8xGvp+x37jsha7GH6WgM5EkofVW4s7823g+Md+RHxn7YZNry+N/HqihiwSJvuvgSqD9zn3Jz7nPuc5nmJGI2c1vNe7h/oW5OsYqyFBBKQEYjIoHlMcLyH0B0OWvUH55DObezWcTnBsKkYfdv6KuyjROAfB/bAMcJ6AAkNF4gsQiCjxw2Zkjr2XSKCUKsbOBC7Lh+kM45JVjSMuTm2wORhUNh+PZrAB9D49VxYWcIdMWHoTv02dbObzZ1sjN5sjN/TG8hCjGkds+Bnxh1gJUygHD7Pj6OvRDxaSQkkEFY3fP2zkc2fZzbj7tZo5o5o5o5o5o4RrAAcLaA+MJ3msGHAdoQd+g+c4tnEnNEYQoJA9hXfqjhTEo4yFTlawsaS7Z/oLETjRsvs3m83m83m/RccbhGEYBmjs6yKXhEy69m82cDEZv6IcjC6BUXZ+ccDiqAhLCoC0M2SRshwDZRCpJGE/Lxj6QyN14A5vNYfjPnN4ST6A4T6xOEYn5zR929eqsRgkO2b4+c+fRJgQ1cDFjCCSXefOKxUlgVB1mzkPX8lZGU+4H4XUuPXkQltEuBiEkk+ozRx4HRbIgD4vDXJPHJMzp9cSuoeR39gOvSJlWQJsXIl8HqBvLChfUHBO4Eg5uFUYT7R4/wCvLMR9FYmYawn5EbFfr1+yeJLF+SZfUEgklj67+iBvNfH0CdZyGbzkM37pXRz7Yiod+Jc5/wAoyqfVmUrgRiOJzicCMSInOGGQDicEMhDxunsRCxELHDGQfGcERJ+3ffhbZhYeyOjA6/18Iz+uhyxFHG/ujgaRPpfPsrgFSVAZSMiUMyKqlI1YNAjOEGrDMW9NfEIHEEBeIAzYJ5A4NZvQ9eunRGMlbJ7FaOMkk+0DZjjKfQ16a+AfgfGAEelZisTHZyJiZI5CHLHXzt95bGj6H9oiVD7I3sJ8hvkg6AY47/HsMgGE79RkkMkZ0c0cEWkf/t0c0c0cII9CmkCclRC5RS+IpdyF5uW5OSBkMyLEWG+QxX4kWU0Loz71MNxd2JVk9iuozzR4ZEGLKgUSDPImCQDHZSPoyztKf8deWPmZv9Zs7YyqQSpwn49C5KczwVyqxuUMbmNwdF3LvI5c+xUiIEVXJliX2cl3/wCP/wAd/wD/2gAIAQEAAQUA/UJ8snwR8J7k/f8A+A1uqWesvQxlY/x8ux6IgW4BXsesFSOWN6yrEYV4y1liT2j95GpcLMnVMnKDi0nVFI4qQpzHq446c/SrWpVKFuCvB1lGEy9KTUl6tX83TeStJ1izvN0pnhl6lblmfoWmttTZ/wBQql2+zscp6s9d5OsvxWLFK1WD9fcjMnW3okTr7klResvusNC3YtR9fdlaenZrL+pDMB4bXi/2jNzYVkJ4NnBs4NnB84NnBs4NnBs4NnBs4NnBs+VMnaSSJa7aazHgOj95bjSyzzS+j/IgrTWWHT9iRo7f4+gYXCfpASp+4m28skhe1ZkkeaWQNYsPjWJ2C2bCwCzYUR2bEUwnnBeaWT9Wkkm3J57ObObObObObObObObObObObObOBWOMpVtR5w3hVl9G+YpCRKwBGD5QEjCZGREjjYx9RxOt+2CASlo4VrfoUjL48BT3InIyxPE3/gEsJ4nYc+QzkM5DOQzkM5DOQzkM5DF2xZWXOQxNMYlDNb/7PQeRF/wbEU8JP3qdhJXUdvOVe61mMwPGZH4j9/oM7MPT9v0Kfy9QCxFWRg7RwgS845EKH3QeHyKer8tn7DyRfZeaX+s8sx6TLP8AV6snofDZ/qODN+OfZzf1HigPS/bL/TeGken8Cf0vDrz0gVj0ZkgNDyJ/T87P23l9sUcBjdU58UzxfArsQUCnimBFOeBjn27YtUYqIoKgiSqNrH8IoUW/+2u9ZWS30n21ns/7CofCSg4meIp6MdSR37FWO13nYTtPK0030FGy409SHySXI1cfXjZVwyI59ACTHGEWSdm9IW2E8Dj7WJlIKnArEFWGFWH0ANmxA0Ero6HPt2+1+rFG7F1bnHG2RRHfE48QcfZrtIlXNHNHRB2Ac0cAOiDgBy3/ANvV36NeU2/xy9PW7CpSlsXWnlVomIj88JBUqMk+WJ0n0YxuSYalr3BDHNfVv0Coz54ZIzqHDHVwPVjEkryH0B0cjP8AkeMiiOsmGyiD72zkkssp90CxvNcrmtZ7QB17UET3oooha/w68VkFGOGSQfTjZgwlAMs4UbJzZzZzZzZzZzZzZzZzZzZzZzZ9j1bEUHADOK5Wkljd1R3Ma4y8CGJH0a43JZGnx14tFHXkyamiFKzyY1OVVCscavKqZo4ASUqR+Mggx1NQeoYjFZixOz+h0dRQxJB2NdIZ5K099B188lV+teYS9Yk0lrrZZG7DzeORkq0NHX0qpilW0ixtXVJpp4I4lj4vJJUgQcxjUoBhcAx04Xil4xyQVopYZgkb1YI51sRpDlaOOd7NWOJMqX5ai2vySe1Vllimk0gEKgCtUawLFZ6+WQNL8J6aONTsrCATnjbCFA9K8fFZk5pChZ7KHccjRtJ5AalpYF/sUVakvGd5ajCFEawErM2+LvOrVh+/nj0SSfRPHh8G/wBAkUkjt17NDUsp4+r620sg6xYSJIlMnZjzG/bMK9hZFuHtVd4LEVhLfWpYewZ7En2sYjtKrR/qQN58JnIstes08idZNEtSvYt5Y621WXJiHLo6po4I3OVuwtiOx+TXWim7KxPH42wroYjopWdnLTtGRZVi8zKFkiDSv8KY+Uu9DhuRdL/hjIAn+OGPSf44EHA8fUAnFVg36Cv2CGKveEI7Dp48XXHu5xFBMkjo0fCy9JkjNXXYGExUJUlrmDseDCh94bHiiy1alst+oVWYmGWNcVQif8EkmNiWrSRqjW6vjKf5/wClnodf1kssnU9Y0k9Xra1axBViSoayFp+oCMQW9ASMLM2AkYWZvQsxz9sLMfQu5Gcm1hdyM5N7FYofNJIf0EU9GWCrCkMFNeSt2dvn5HtzwxS1ZoK8YrxJuR4S2OiF5IZImaFYs6TskqS9911dlmnnu5LSirp7f8c/xw6yxZpyUtHB8Zfnq2JdHB8G/Zp2E0foQTPBLJ2fYSBf8QBtWbkcj/eiHkijp2BPb/Hq5p/bMMSMbjcK8spaTyHCSS/7lGA+h+/1kCgcFzxZ4s8WeLPFnizxZ4s8WeLPFhjAxgB6VYYJjJ1ttE6+k8aXWBoQryBhSxHHKzQRywV2TsICp7OAZ99UZmmaUvVZIuJGdPbjt05ou1WY06kOWZKjD2bG/FJnilzxSZ4pc8UueKTPFLhgmU+GXPFLnikwgg+5RyJ/zckceAA5KMhbk/4ssEsXaQ1/sXtzWICGUof8oxxlb+SrsVZlhkPcFUmnEsnPC2x7opTFJI5kfyHhr6gJUmzMc+5l2bMxz7iUg2pjn3M2zZlOC1MB91NsWZhhsTHHldx6QwSzyGver5BIskU0iRxQ0y5rQXWx4lCSRqckHFv2NcqHqwLGJo95ZUyt1lyTr5ErjtLHbNBVk9vztFidhFHxMACtENxeHkkcTq0cXAtB542iU+SuEd6zZLrn7UUuzU7UMcEAlebqPBCfnIRCZGi6fhVtT0pbHYz3K6V5jau056zNGy5GGd26K6xdJOZIRf1HR9bFflmo1Ypftaufa1c+1q59rVz7Wrn2tXPtaufa1c+1q59rVz7Wrn2tXL/S1k67IbPXLH11xI4uymgmlkcWB9ipEcb8vuJhjtIysaZHOu5gVUaKdY42sdYRLICsbsJuzsSWJp6vYTx/09jGHE+vxy5y4rzcd2NNJOrRyTM/kn0XmKDz8vJNgkm4GSc5Lsye3p/H/ZTrR8BQKZEffjbNIMrRVpV6ut1AoR0ac09TrFqJcrz3hYpdhUbppYZLxWpnetGLxJJ9ERnzwSZ4JM8EmfbyZ4JM8EmeCTDXlGeCTPBJngkw15QfBJngkz7eQ54JM8EmeCTDBJr0hmlgf7+1n39nPv7Off2c+/s59/Zz7+zn39nPv7Off2c+/s59/Zz7+zk1uxMmRoHkQzV86V0mp3kiHYRShAnYWDk9m2jW5QY43Z2iq88syGIVXEyz9VVGS00QxwoJLaLNHPXpJH7f+Y+JfihVkVVK7eOPUn7Rvw4q6CXzKDzi4M8ZyX+ftoiQ2rct8yITIXjLHxoM5QrjSMcLuh/GIKthuUFdL3ezSTSy3SyGtuv2dpxN1Ukj/YW9a0c/49T/AA9ZvXWTD/bxOLF8xKokeFQ7IVGQ/wAv0VYhZ4zUMSW1kuXY2r2a7EZBKVEs8b5brSFo60EZEcUCGhLJkPXSRST/AHPXSpeSbCIznQU7MdS7Uklh7SpXqn2f882wSNrk2FztJWBEsi4bEpUTOZC7b8jcebY55N7QSpB5lg3EM6nkpz/Xm48Y7livT1JR2tu/H13U127D8i66ilYyWIzAZGcdgvBZqcgShT8vc168dgawJG2R1oFAbr8evWeOWARH/Xn+vJuGf680mf6zknFplCJhKSFERmYRb0gVljJi4b/RJI8bRyU5DIXrHu4VYQkhkUuFljLyeNYxBLC7B7U69dfRTa7SJB3ItRqioM6ru5Ouy/8Ak9mWxbty25faQD6aG9bzWs0PXQPpoD31xAZrJrhs8jZyU4THg4ElowQ/AJPIk1/8lnu1vuZJMEXzXoSCFuvcqldIVM3mHdtWSsiM5MqxL5AwZSMDsipOJUmr/wCWTYBrCflVLNKhD/JVAoKyakb/ADOm8jPoqo/R/vkPWzgVzE5RLUVN1eB1tCOOOwKVYc3lkk5NWkWFZLSgWpxKXjSVvRjpfYNE6XCFwgD3V46jRvoSIsJU739VPgUE60m7HSU+quVyp2cTrL2ELZSehYr2u4EWdl2lO3TBIXZzZxXIxlJTZBSfmrwI2Soy5vWBHIACtIf9jS6zmTiH/PbDEbbGPiybHotrrjht9YSLfVELdqLJNQlsuQQfbUoiVJblSvk3Zvykq0beOjxtgOi8jyN0Rpq122ZsjNbuK8/40gEEh+5rWnjgax46lqwVvSWBt3JylWnsy/1FxiWUYbEfO1VreP8AQqhYfTb4T3R/LSfzgsQq0Ha9YEtT0ZVVeWeI54jniOBCFKAkwjAXKsus46CREqVVBY5l/Ec8RxIzz8Z34yCoOCPXsALHresjrIf2lidX9lWA2LHYWo5nDHVxGieF1R+wYXKvrVhkmmjaN06jtoo7f3lXJ+kq2n7L8dMdWbr75ks07UViGrYnyv1BAlvxV4+t7ieMdsOqst7iPmN2C83zm+BnJkhmRFMjFjIueRs5vhYgQJLM06SwtDPXEbSEsW+I+TmTkh8rZIxPukGj7kOnYf4odH5RmCkew/wzkcJJx5CmfcbLWmKbJyf/ALfRP5/85rIWO/XpoRLew/sULPahVF9fxtVbsZ5ueDW+4kjd1PExTluu9ktp5Iknihp9bAJZ+n7wpNL+QdZG79pRsSWLUUGS9pYEEnksTrLIIHsQV7llYFm9xHzCVKsVU167SRlkjklvwyRh0wuhwSKMDoC1nkvNM5pnNM5pnNMDphdMWWMCVlJ/QqRm0zaZtM5IRtM2mbTGkR82mbTNpjOjttM2mBkU7TNpm0wSKnsgsTV2jsyyRmWTTRg5d2sfr1FsU+w7itJDdRAzyRKqhWXLDiKh7lsutfqdRy1x5LN5xL2dljV7a3Yjr2Gsr9tekiNj6B/fro0dr0SK6yTICCTxOcTnE5xOcTnE5xOcTnE5xOcTnE5xOcTkg1/4qjcEWF1KPNEgtWjOfZJ2lqWn6QTvBJNM80nvW0y1epUNfZ2Mk0zzy/TIzrp40e9YiZ/MM8wzzDPMM8wzzDPMM8wzzDPMM8wzzDPMM8wzzDPMMZw/s449eJVX5MkaKtdVlmvUateGnFHPY7KjVqR9bWgt2e2o1aRHz+t5Nr9HBYlrv9YjeAazWa+NYRvANZrNfGsI3gGs1mvjWEbwDWawDX6cfJmqwJFyOLEhUkj6VaGOVrMaRSbOeJOOzlGCKxN2FWCqdnKnWUZ6zfDUoY7FrteupUouRyhQqWIbCiKel11KevIAsn6uezRegrRh+1tULNolf0Azq6XT36n9H1Wf0fVZ/R9Vh/HuuCf0fVZ/R9Vn9H1Wd1U6mhT/AE/Vy9dG/ZSUpLFN6iiyYmm+vQqm7cv/AIjNSz/12Tiv49I2f+vycm/HpFwfjshWj+Jy3Hn/ABeWG0PwOwS34POpn/EpoVP4/IC349Iop/hc1qD/ANFnyf8AD54SRo/S2PTevXe/TevpdF2Ro2/u1z7pc+6XPvdj7pc+6XDcQDt+wa/c9dfPkIxn0gkPGF+UvlONIQS/+uN94JDsc2aVuGCQ8Y32/lOSPxdztfXWK/EeXA6+Ly4kgJ8uCQbkcLJ5cd1C+XPIOPlyNwz+XPLj6DkjOgI/ubVJLpkhVbd2olQFz5JXOoKMb9f0kriZ+vinaa5ZjKWZ5YrUssix1RJHXiFiSmpgro8jN29uWGw38vc3wvXdVTtPHRrvN/S0DSt9dWgnNaPVajXlBoVxElOEip1FGfJei69ZK/491ssXYdXUrWKPWVLOW+k6+E3usqVqHu6O/wDdV/Q/beL07+/4ovZ871DjiHxgQ8K4h82oMcQ7Ih8UYhxVgLfb/wBbDckincCHhEIeeoMlEPkcIE9SQMWN2HhkwQyeDwyZHDJvwyYIZNywyeX7eXJYG49PUq2E7BZTJUpSWbM/XSVLPhky11Nmqknw53n4/wDPdSaU22K2fNLNkdKm3XyqNVZpuP2tWEq7cbFeuwZIkgVubddBA1CtHGskevFUkYy9wu7Lfy9p3hGxPX6hGox9c809ToBTURcLI6pXpiErGIzLWg6Mw2ouoWXr63460s0HVG5JF1627sPTpa+M7GPrF673VbElaZbU7L9xYwteCfcWMkuTxpPM88vs2N8Hx0fxhH4V0fzcHx0fZR/FEj5HHtGE/jnRtBH4RI/Pg+TI/kYEJ7B6D/oyMEtxwcQZm/2kk5L/AB/HP37Ak2em/wD6ndEm5ndn/wCjJ/P/ACzqA7dnUhkVrysLEQbZL85Q2qs9dep6oMZfGxivQyIFUcIVjL19LDZVWWHiigKSDEsD/wA/Yn8X+WgaNZOym6acVpesjeOXrzYS30AS7Y6SSz/jqFoFaVoHs0bHURhm1P009GO13dig9upa6UvzrcrRTx++haCL9zDh7JjH9zDl+0JD7tnHJ8YJ4VyfPs45OyT4q/y80SxM3/55ycBPCInns5MT5D/D1O8Qx6grGwNQrFQgrWrl2rFUn3Dl3qhSSUw+WDq6s3WSmHj+OmPd4xfcdNAWu9wY/vatUW5O74CnJ/MjOicR9vL3FSI2rCTSxOMLjySuNBx4+olVZYn2nZEuhbglaQGQTKqtdiTFbz4thIy7eeN/5exf4sBt/wCPT9zVqZN2kEzmQNlTsIa9KQkWTOkgWfzddFcSnTkYzvA//wBw3ovthfSOk3d1GLdrW8nY245aXvBIKOHVo+u+2kfgpOz7dfPIY7DxhhwrsPNyGOw2NtHXb/ZbP+1z/onYYGHCJhz5DJmHkY7T2AHPx4Hw3fmXpI5P7Lud/d6Od9v7aUEy0wR0MoPHoK80Qvg/cdAdVe5B++6D4t97/wDjk/nnUKD2Z6prbWK3geJMKf7JU+An+ulKa8lWRnqlXsM/VMVjoyxPJC+3oyua9Z442qvICXrRP/L2BtBiCRHLIDZt2mrW+2iSUXnkksyyzX5r3Y2+utWYbMPcdnViv9zbuSV5ew6nKXYzULaS21s2u8smpSh7R47luzK1ns5rVT6HXeFrB6euBdaI2PcASzdbKqNFHwEUfCCOMTeKPHij3RRFKInO0oMrqBBNHGcMCIsUUfPxR49cPI8DKGQr66Byus0jVm/+taeUzdQHji7iRxb6dZVfvXYV6qzPbsufsYucz03YwXJJfuep5RZ3Eji71KyrL3juKcny+QTyV5o/y3uY8l/IOylcd5fGf3d/ke8vtn95f0O8vjI/yvuI40/Lu5Q/+5d5h/LO4OH8n7Un/wBq7jB+WdwAPy7uRkn5T28mE7PuqPIuVI+yglX+/EUPV93apXOi7CrkljuILnW1ux+4u/30NN5rS2Zr/aW2er2LzkdrFStNM+Rd52VLFg7K1MAV+lJ+QTt1XvB0ZexkemUdo1jciGN0mkrRIFgiavTCrKP5W/8AsYj7eJUMPjEsvhEbtFIuRzSwWLdh7D+ynMsMtLuY44pbCPPW7ZIrfY3YrM8fY+GPtO0r24YbaxqO4gahXsJHJS7qKNZ51ksQdhBHf7G9FZs/cx+Hs+zr2qzHbe89bO6Hr74w0rgz7S1grTbOg31FLoRatqf7Xs+MH5D2kMVru+zsl7Fl3gv3q7zdj2E0ZmnOCewMNm2Wa7daJnlYGadjHduxMBofotnNnATgJzbbJObODebO9thJzZwbzbbJb36HpoehG/UAD00PTQ9CN/S6L8mTqacn5pG+P+UxvjfkKNljt1mi961LDiSvNGP/AI8JpgrSyOG/l/8AHh+//9oACAECAgY/ANVzqgMS+7ZpfGUuSsnYoyxkW2C6EsZCljdWI/iQAu4en8AvouqVTGmgL4sHq51K6rIR9/DporpZ77kzk89LPI8yrlGpUpZTOWwmg5J3KudR2df6VdVkrq6urrE8kxNCGAPgtwTkVumLg8kzqp0VQfbqXOpfWurqh/AAkW0Nt1DmAK0bdo3p9u5As3B0On6pyDXigXMTwZDqIoyD7Cg/lz8SqECA0y1NirVWVFW2tbxIxIJz3VRAJi+0IDI9Pvz/AA4hBxlJjMfpCeMYg2cCuoQUYn9P4AgUXUASC44aBnKMXs50W1X228eyPC+sKX2+BZW12dliuG5CccTRiJbFGDviAH/DSHBxq71GTkY7Ne3hO1UCSzbNRhUqspeVAr5R43TjTeior8VXw4yjcUPI6lVTVvpZzHkr+JRWtqPGismVdLHS0A/EpwX8As4j8qoEOKtXgn8CQF4o5hi+gMBxTvTcyJD9X4CoVBrEC5CZADadBbTI7DKmnmqDEbgmGuLs3kreEOOkRq54JvHyBx3p/kdVh4sWiZZFi2ziUI4liCctgb6+C6sVYqxTMdasjLWLODwQdzppIx0XV1ImZkJWDW0CJNTbS5NAgTL5VCYSvoIMqjguku2oZSdhuDoZZVYUBN0CHY1TV9ESXYcCn6//AFPH6IT6sS2zfwUWy6ziOk6WRiQKL9KsFlIXtrgf6vDZNpiRQsoF6Y1G9SYfEspRkcs7cEBKrWTijKQJL7ESUCNoD6nbAHcYiTmDN5v7J374Eepg2JY2Tfb78b7msieq1gsxLvzeuAIo7KfcHc73c6fi9fJdvuf83xrANwvxUC844yem3gdTKNx+S+MvRAEEDbRMNeBG2W3l4DhUTbk/D6IMbXQANQRoiAHohyGiZFci+rPy1MZDpq5yxZMBEBmB+7k5ezJ2A+51TJnYtsCAjCMsSJRfuMcq7EZYRHd7nVie5ezo5RDAPA5s8q0Up92Ah1U/5SxdlAiH6nPWSwrXj4XSXbTKO4fmu1z/AJa2I8+CERUke29UHIb0TvPupSIbeiTROC+XUsgXenpoEoEBgg99uhiiQ16VVTH1Vx6q49VLJqtqEAR6r5B3QMI9gSEnfHih94dqf7UJN2TEEfKPVRA4weIYOLIOO2QJOennZATjGURsZF8cWpiPCOO0voAysXdEv8gAoh/gpEH5W4IV1Cd7eyfgyH9Nk3F0Qf1X0BtgZeb+uqQIZDYXX9v3RyGP8V//2gAIAQMCBj8A1cYAEs9S35pt2pI5whgHaRqeWjfyTGUY0vJb9ADiL7Smyia3FlcHl4su5GEpQh8pAUHMq2m34ci3hSmWAxJj1AFxw8MxEpCMrxBoeY0P+Dcgh9Finl0j3WUDkPdObBS5phJzi4xD13aa62R5I93cfjtI2n38Oq50VP8AB0iTA4l2lbzRljGL7Ihho380+MY7OkNpAxiMdoFTzQDCm3amYajE4oMfuEJjAEcU47YHmvj7r4+6+Puvj7rMULuiQKg5GQG/wTL+tYCXSGjZZxxkKWkNqyECRv5IkRJAqW0HHZd0REfEEny0/VUA0urDzqnduWra6sqj8AYg0lfQ+zUGJJpV9+ipZYucLOxUo5PV8sSz7ER9y258fNNGcQIUHS995ZSi0JgF+oSN+VkRhCfVkXD03WLKYiaSiQblSxavyuabvPxKIyBLxG3aqUVyq1XTfam1Lo1HiSIYYb0CQC2wonEV9tRnom030U8Uym3TFxE7SmMiRuJpqAhCYtK7b/wAJryXS9Qx46DjEybdovq4P0vk3HXfwLqytqkPSJtqMrFWK3Jsj6K+o+l2dZb7Kl9pRjJ7u8dqlJmyJPgh6fmi4t4kZUYSxV1dV0bl3O3hGX3P1G416E+EzltyMQHfbqZSOMfc8AgI9rtneZjIlNiO13Gpj8SmkPPYdDCqcjq9kDLafoqC/TTcU4Nr7vLw5wmWBGQO6Q1KFV1LK2nIwj3KWnZEt5aOfg0VVcV1DHuDLcV8sedfdCW+rm/kmj6/TSTENfS/dJD1xj/MppAx5+A8mMqRpSyNi1aJjdVKrSOq+xQnMNHuWNLIfYkZRxq9K+2iWRk/6WD/AM1jic3+WX8lCBEQO3QMGPn+AYGiGRdtaMpB4xkCQgQQxDqZkHIFDqfmoQZpR7Yy5mtfLTyQq/ErI8qK2sfjnn+66AJJAsPCJDdN66GRmGaN6pvH+3KP3AB01YjgsGEIm4G3z1HCJJcmpPimrN7p38O3gPHtjthrAk+ddYGQEhtEqD2RYRiCaAGg0P7J5QE+B1IgQESLnfoJAoNLAIsLJzGg0OAhkGytqMFQhM6uEzhNT1WLh0bdIe+oJxlNjxH0V+56j6K8/UfRYwMi3yfXnMM3buNvh8tQg71INV6FDiokBsb8UXHyKk4puZdIERAnIb0WoyYlxEltLo/G4um6K04r5QK2LFoDigGiER0XupWLjUPb7rYyqDLYf80Gn2eLyClKJ7c5fpAL1RJudYDev+xAljDtscTQtIeE6I4gouPlGnqhIihyA9NEqdOVSieOiFLJmRLJwCqXUd9X1H32o6dyf2tsTP8AGgojU1DHpQDnEUfGyDHnTYgIyf8AapOdm7VrqgTiY5Bw+ntdx/nMhv8Aay/7n+0//Y02THRmaOWj/URf0Upy6Yjb/UbDzVSwA6pGwFqph+kE8oipX24HLKTR2XRECSKeu1YyGJ7Qw9FHtyjjj1cxO2iUJP1FU0OLpy+XJMSfQKj+ievoomLuHfUDk03Kpn6rpMgmeb8LI1LFGsrKhKDO77fCie4XxjjSnmtrv7KUh2w0oGIjuLM6hBv7cpSfe7fRd6WP98EXtV12gYOO38q/Kro0atK2VNMYFmgSR+6/5I9umJkJeY/8qUQzdwYnyLomO2JjXdIMUJxvEuE45ozleRc+aEpXAEfIBtUZTx8lXvEftQHan9zeWby1GcPz/iGxf//aAAgBAQEGPwD6x7D9lFv4RNE7Ww9nrnoB/wCAkv8AG0liAViYltOONXD+oxtgGAuBJ2eygpvAYEnDd7aQ8Q+PoywJ39FPaVtQWIYiJkT6mtroUzlhRui8hgxonx5xlU68YmK18a25whVMn1scqwtsDhjB34036a1cRz5dTSBlWXij30BYtXFvEAAsw0zEE9tCeVuG4yRqCkgtGdLaexeS+qDUCcNRGJilXmrRa8J1ET7NtSlh2dSQzcRVEzIwY7qI/wB15cm4znQQQ3h3eFquTZu4uxQqY8HwiDV39RbYoT+UDiQOmIq5qs3ChK8MqYgAeLA1ce7bb9OQFRTidW3I0x4Lm0UAUKYhpxOJ3UrPac8qFIZWMnVsOFIbVh+EFbWF8J1Hy5mh+kRkQZ6zJP1kKuZypUCyznSokZ0EvIVZshvoctcsMt9l1hNpWJmgb9s2wxgTvqyHtMp5karM/GDuovcssqqNRJ3U/OpaY8tbIV7mwE0rLZYq0aTsMiRX6SzaL35I0Doxp0t2WZrbaXAGR3Gla8hQP5Sdv1qASBurjBW4R+LZUeL318XvqSCTvNZHsrI9lZHsrI1keysj2Vkeysj2Vkeysj2Vkeysj2UJGIxxrQbaxh7jNMjWrShsyiAHGMuz0A7qAS86hW8ADGAIpnZi1zDVJkmB6Q2/A9YorZXWVGojorVwSBEmSBhvzqNtBR8OfX9ALkSp2j6qCDBGRoHWZUyDORrU7FjvJmhde67XAIDljqAGyai47OBiNRJ+2k13GbhCLck+Ebl3UQ1xiDgZYmabl1uMLDkM1sE6SRtIoAXXAGAAY0L9q4yXhiLgJDY9NMRcYFzLEE4npocR2eMtRJ+tqmo6JHhnDPdTY7TWdZ1nWdZ1nWdZ1nWdZ1nWdYVD15iPZWDA+77axEegN0gH2USDjOBrWNuY3H0MN0H7qwMUkEnAzj00OK0E/wAOJAofnXtW3wLE9tYZesdTaFAkscqe0l0OZB6B9SMECN9CWBnd1etjgN9QwI3H/wABW1wU1Aj83HVnTeEZnf315R7++vKPf315R7++vKPf315R7++vKPf315R7++vKPf315R7++oVAe3vqWtgD299eUe/vryiPb31kIFDqHpDQQpykYGv4T7qe2c41L7P3UDvANcIJbZSZl0DGes01s2LAGccJcxTWWtWrYIkNbQKZB6Ki4pDbjgB1mlAMkD2Cdw+hAyAyAqPqfb9nqQMSaBSCNuygpId1GCrkD0mlDD8smG69/sreN/rjjeToocQPwtJnRnq+HOl/S8Qp8WuPupOMG4M+PR5ojZNWuDxOHI4uvd0RVvhh41DiRM6NsaqX9NxdUjUHiNO3KjwA3EkR5spxz6KY8txQ/wAAeIGWdHSH/U8PDzeeOzOvyeMLkDAxGqO+l4wbjx4vNnS6uNxtI1RGnVtih+rDcWTMTlsyo8TjB5byxET4c+irn60MTq/Lz8vTpq5hdC6/yyuWiOnpq5xQwt4cMYk+6n4ouhfDwyn/AKp1V/8AG1cOB54mduXrB2uEXgwAtxhE5zTeLadleb3V5vdUz7qgtB6jXm91YNPsNbew1+6vEahRFYnOpQ4boqB9lQKHUKP6i21xTkFOkirNteRc3lMwWAmN7RtprPLf7ciqoPhjUVjasYUQVKGgQdaTlt9lAZgeU71OI9AbfBpra6SU8pKgleoxVssbZOkLjbU4xjmKe62bGcBH0IFEdNAsJQYncYpb1pYDTMdG36gdS6py6KAVAmeXV6YGNSThtb7hWlfCm70NbJ8LY+2jbdobDxbD++iLV0NcB8pwkUQRBGY9EgEisQRWIInKfoAN9NaYyV3dNQ6lTEwRGB9H6mRp16Au0mJn6bUoJCkajuk02BzNSQeitTDqoYVDCazPVWAoYeg+gVlRw9A6hVs8xyqvpmbhJz3wKlwLDkSGAYQd1FOV538t50qbXhnrzprlzxMTiYH2ACsDpPThRtNhcUeGd2z2UQcCMDSsdgEdc4VAzdie6nbbPh6sp+iUdNNQQrJDSD0HOnCrmulT15/UDpExnQLiBj9lAmRlIqRdaN2nH7aOkNcJy1Qo901jgBkoyHpn0Rjjur8xlLDbMGOuvHcDf0ye6tNhI/mbE9lfMMbtlA3GLEZT66LcJCMwDEbj11cs7FPhO8bDXK8yP+tZGr+pPAfsq0djWbZH4a5fhrp12lZpOJJ21yloYa9dxhtkmAewU3MuSGNwJbGw4S1OUXULY1Odwyn6QAEgEiR7aZWMGcDUKZY1M1nWdZ1nWdZ1nWdZ1nWdZ+ol+7bKgzpkbSK8TAdGf2V5vdSlSGUGc8qLlRJoYZYii75nBVG6nnaPv+indQO8egruq2QwD/EhyajLhJyBptLLCmJmi0gxjAONYCa1kSu8Y+kAZmi5DMQCApwk9FRtyind11N8IBxB9TAx1ViSc8+r6nMYZTVrnRF3Q8X7R2DZ7DWqzjYugXLR/lbZ7KtXSBbZbYQliSXjI9FJZusq8IsUAEnxbz7KtcW78tQkAR4RSu9xiAApnOBljScN5VRph/hA6q5flRa0pYUxp8WosZZqFhGDXeZh7pU+VBknbnUxgcvo+Awt2iPFxnnMbPbQh7d6ZkrOHvpbbFLStm7TA99FluWrhEeETONKhCoGIBYzAnacaYi/ZbSCRE4xu668i+/vrDmLJy37p315VPb30rm/ZUsJKmZHQcaZAEcAwGEwa4jXbVsyRoadWHtrSpS4InUs99MXuW7OkgAPMmd2NLpa3d1fwzh10ys1u0FUsC8wSNmda0v27hmNCTPX6GVEtuGIJ4ihoI3TSp+nsqJGtmUEGNwo3HXSzZ8MaV7DUhdY68eyidOmdho6biIRsdtPZQ1OjT/Awb7KU7aY74Hpyocw1si0cmrAVjgN5wrAyfd6ZOZrDMYihuGJoOMsjWpfNsO6ockzjjTBlnVlQGgzGFEs2lWnVRHEAnAxQWQUk4nKioAG5i8g+yakbDhQU+eZHRQxjpoWJlACTcy8ec1JMnf6TrnoihwtU459X1FbaKSz+Ub6a7Zkta+daIhl6ablOYANi4ZDbbbfxD764p0nlnlXViRxEO2PsprV1jdtKSbSmYAPRvrRqAK4aZprVpQ0Aw38wE0tzXk5GXRNC20MpgEZbJmm1ppRRMjHtrXbMgGMc64itoaMcMCat8oiRwRoVF37W9tHl7RXwkfqeZaNK/ypSvy9ory1s6BeIguxxx+tQM6xxb3CmkycDQTUtvVMM50jCi4a0CPiNxSfYKYooBUgGWAJJ66LXQoVYxDAzO6PRAI8Ow4UAQccT91ZVlA3nChYDKyIMAEUn8UTX6dVt6FAXVpEmKNpnUKQARoVTgZ8yiswfaKxI6gZ9E6ZPTUKsnroB0zEjGoW3BO40NaYNljUhMek0OJbzyxoQpJOQmvzLcAGAZrInompa3pAwkGsjUm3AG2d9bak2zETM7K21OgwcZmsJ9OFYgjP7PqK8vza67SH8u4uFy31GiLpF/lHwXnFHjWf/qbaXm7Onhk6iF8jpmWG7qoacow6qRQ2i47QpGYEV+p+IHTd6G2H21yvNAflXypP9Uw4rmbESbV5Sv8AS3h+8Vzbx4LFtmHWVhaW4fPzLwo26F7zScshIvGDcC56myX2Ck5dxrYQpcb6mydDA43Vzg5iaNrmBwrNg+HlV89xv4nO41qI0WlwS2uCL0D6yFUEk5AUToadrQYX0MxxbCBu661viT5RUnE0FOIns6qF10F1bhKw04EAn7qAHJ2zjpZpYwdk40RegRiSM4r5rKCd2Q7ai5z4dYPgIZceunZf9wHDBOlQpY4bJrh2+d/Ncy3gJOk0DZ5gXnmNIUrhGeNMebsm4hGENoIPYaWOUfVBx4mfWIolRpBOA3D0yDHVXiJMb6wrEkxlPoxJPogkkeiCxI3eiJMeiCTG70Z+pK50A5kY/Z9RFjmLXDuLgvMW8/7121qUxpMDmbYNy28/BdSr6XCLVhgsqjTbacSVJyB3U6W3AgnSCBgNnWKNjn20u/y7pyUnL+001nmk8y6Li7HX4WBpeWZtVlnmxc2q2Yn7KLXB4lGm7O0DytRRhpN1SeYboUQB2VZvsuFtY5ayBj0EinMcTn75OAx4SnPHfFCzb/Mut52Xb/KvRvNfo3GvjMACuSHKOmv/APQfUTb0i4gMalmMOml5flbGiyplbdsTjESx2mm/U3gL0eG0njM/zEYD6DCrFm1ywt8xb1cW/qJ4k5YdFZ1jjStynL/pkCKpQEtLDNsd9Z1jjVgcryw5ZrdsLdaZ1sPirP6Bbtsw6YqemiH5h2DAqQTsOytZz+EffQn4jJPQKnZsHR6CdwP2VwlUtipgCTmRhX6a8htWr+kEtgJG2d+FNoZEdFlXLjHTvqXYAdGJ91QcFgndOG80Ft4EmC1MSAZOEjZWAA6hUkzQG4AffUnDo2/Q4fTBi0GSI9mdece/urze491eb3HurzDsPdXmHYe6vN7j3V5h2Hurze491eYdh7q8w7D3V5vce6vMOw91YsB7D3VgwPVPoZbt4WWA8BYHST0kUbiqLtpcS9shhG/Chda4yFx5VMYHfXBtrAQDLcu6pXxqN2z71+ytDYxk2TL7Kt2+YAd7Z0Fju+E06I50gzDDUoOVaiwkGJyxOWeNeOSAcTgQD01q1FCw88SxB2DdXB5VOGr5scXcn7qdLRFq3/8A0c0+Z/lXbR/SKQi532wJ9uQoW3uC9eQRdBxntq9ynLKbVlGJgEKNLGVlqDc1zIYn4LPjbtOFKvLWjbCzLs0s3WMh6sba8p7K8h7K8p7K8h7K8h7K8p7K8h7KgowO6N9eQ9leQ9leU9lQcCPXA31AyyHVRIy8q9QqXMdG2sFHWcaghYgyYq4/hturaZ3LmKva3DgKWyIgjLOhZdzocYDcdk0VMgjMUJy21BzE0eupJhd9F1trcEQRcGodlcL9Ly5iSToxk9M0bgRUmPCuVZZVHri4ACRsNFzgSZgVojDf9KCMxiKxPuqZ2zlWLdOVRIiZyrFqBnEEkYbTWJ6aAnLLCp1ZdFDHLLDfQJbKgGMgZekWrKl3MkKOimJt3LY8rGCBjspXXIgUzuYUDGuJyvMpqGMElG99Dj27dyP+orqHEbZBoi4QJzYYtFOhw07d9QfLl1jfWLQPhfo/borSVBJB8QFN4IaMWzZsMhuoa0FxlxS0zAKOlqi7eN5lytWRCL7ThTMttdDiGWSWwyM5U93nPAVhdKtpUqACM+um5XlbVoWmXzg63x2Fj1etsrSNQPSwAw66bPZ8a0G0OVMwQQRh1UPBcyG7uo4P5W2jcaZxICkAywGdJicj8S76XzGCuIIjCKY8NnkEEHZ04UZtHPfQ0o6YYwcDRjLZPrBRmcqNy5aZQcASN9cEXEtsRLO5heqaRhzVh3Klo1jDqqTSi+WFv4iuJpRZv3i2LMSggRkDjTNyrQHGoscVPRFJqIFs/NUYA9BoWrKl9RwUbBQTmkKz5H3jdNbxS6ATckAqMzReFg46Z8VFWGjRgQfhqBns7z9Zc3WhLUHQM2n7qe3w1bSYmT318le099fJXtPfXyV7T318le099fJXtPfXyV7T318le099fJXtPfXyV7T318le099fJXtPfXyV9/fX6u2dDquogeUyYjE5+hRc5Z+Iog3EuFZ6Yira224lp1BRLhBK+4VFhBbNq09x9EYnALlhQW6SY3mPsoMgOH8Jx99BQbiMPiZfD7StCwCWcYtI1DHISdlar1q3sxUbRngKLC0CNoBmN5FQqnScjGXuoEAr0SB7hE1FyNBJBGrH2YzRVQR0Ngv76hCSuwIbailPD1QwJDOIIB6IFcuLNlGPiGlzgcNuWVC2bVi0o2KUUkjbM0PzbOOX5q0RnBjD1MsawdY9lN412fw0DrWDlitAh1BAG0UxNwEkMcxuNRxBHWKSHXCZxXfQGte1a86+6j41zG6sbgPtFGcT61jiTpkzGeRq4GZ40nMCMq8Ak7JIw9lDAyBj7caxw6zFYnUdw76b9TdNgDyBU1aqVbVwOgHjZlxJ2zOVXk5XmQUZjFthpXPeTQ4VtLtxRGJBY1o/T20W3I8aFiWy2GnLW2KISCSpIGO+KUXEAeDpYb6wuN+GjoxYKJGwHfUnP0nTGG8gfbXw/iXvr4fxL318P4l76nw/iXvr4fxL318P4l76+H8S99Y6ROI8S99fD+Je+vh/EvfXw/iXvqDpB/qXvr4fxL318P4l76gafxL318P4l76+H8S99fD+Je+icDAkwwOXt9IuWmKMNorzDsFeYdgrzDsFeYdgrzDsFeYdgrzDsFeYdgrzDsFeYdgrzDsFeYdgrzDsFBLjkoMQuQn0KhYIGIBY5CdprQP90VAohQhZgB7BQd7nGugsru2JicBjsq8tgXGthsAhgdMZ14rLTlNxtXuEUEXl5BzOkjsDSKknVZnBisaZ2N1UC4KsDiV+3HrocO7LdPhPdUwV/iJyJrQoGsfGcQKuK5OuV1McwJhiB1VNu2z7mL50QLUf3/upS9tgs4nUCPbhSltTKrAFkGoqNuVM1rmWZxBVGQrM9PrZ+yoW1qMHM4ZUfyxs+Kg3DkGcmnKhCEzGGPZRlYgNhPRlRPDBWROMmkPCOIO076VRa2j9sqP5IIOBmj+RtG00IsxG4mjAjo9a2LYLPjpAIBOG801q+zypxScAfZQW4vWSNlairKCc8x91Y3APZJ91eEFjvbD3Vu6qCqxGkDLfnV2+5C3kgBWGAG8U124wYASSCVgU1v8A25oTTEsZlt4pmbmDw3EsGYuuOzT11qsyt3PiDAezdTKSrAEAMM46ae4LmLGQGzx3mieGYH3VG31l9vqJ/QPUYzt9Hjw2gVAAIJEHcKM4dWQqdkx2eg/0t9h+p22a3xVDAtb/AIhtFE8t/thgmS9yFAG6XmrXLsbSppfTbsHUAYyaAOmrluCqAnSXaMD0LQYGB/EAttfxvJoMWMbZJOG+Wp3A12m8Lkb4JmkVBNt0iTvzFC2+k3D8P/lU6wpOUHDsNSjpcU5CYNa2tkKQUYHceqtGPDOKmcCPbWlpBrAxNXOYstIutGkiRpWVmDRt3baOpkExo8OzTg2M0q2wyuZlSwZYGGYxz9bzHtojUca8xoEMRAFEliZBGe8Vg5HUTSgXGkTOJ30HZyYIkzurzHtojUc5rzHton1pBgjbUEEHePvrSjaxtIP3VmRvFYqOsYVkR2VkT7abSoGMyccKDcs2ll8xOOroPRXC5mLdtsCV8M9tKebZre23qUqjtE50t5LiW7ymFUeHUN1ZQozHmB6zS37CasRqUDaMcaBezbE56lxrWvLNBPwsY6squ3ri8HU3gBQsANxO+i3KsHSBrwiGPRWPuqEkndWq+2jcsjHsqMBsBxPtqVMYmCDIrEEjeKyPurI+6kwPkFZH3VkayNEAGSaxU6h05UCZw2dVKcQCcfZUDUMpJMGggxDb8/srwgk9GVNEzpb7D9TDodLDI0huvf5vmHgC0DpWTsJNJfa3Z5PhMCtpTN54wIOfvq3z1uFVwAzES2PlgVOIbefFc9k4LQFwkKcdAMseliaFm34bNoEtG07SRShRFzTgWMlQ2ORzp3uHzHTbJzZju6BQS1LafCMPDhmZoxdW2uwLi00bXFPHsyYOIdT0Gv03P2BcU5OnhZTvqFy9DK4N3l2GKA4j+moskXOVUyocQTtx0xlRuPgMdKjJQev1sfRP06jmCws/EUxb2TQXlXZrcY6hpM9p9EEyOnGsVHswrAEe2og0sLMecztUVqgBjkI9+NLeBl0IYasRIpeXazbSMWdRiT/LuqLtw3FOGm4ZjqoaZAJwkyPYaU2lGjrA7aPHKom8kHH2Gpt80i6diz7sKC8xcuFRkcx2Vw7CFyzBnvFdJndnUL7TsFaLPm+K5t9lQ+O47fQpUxnWhyS5NFrflifQn9AqTWAwqFxJpzMGY91eLPAdRoavDA/bKhjI6dleaW2xlQMQRjtArwDA79nVTMMZUzvGB+pwKF2+45W2Dg7mGwx8K50V5O0rEfN5vmYME7YOAo8qU4ttzpt3ydIx2gHZOVG3p8QJ6sNsn7aLk54atrn+FdyjaaVmAbm+ZIZLexV+EtVwE6uYuLMbhMLQQHXbW3CtvfKl5cQCqIzDpcwBU6s4xOQ1eEE9EiDSljouKSLVw5o4ztP0bjXGUaLqmLtvp6PSZ3erjWdZ1h603nKvOXRTBMUBwPRQLNBrDL6YvuwHWaU85fe2CTrVU1YbINauVvteliNLJohdnqYZbjQS74HHYYo27TS/7ZUrNzJFwYOCmIPbQsKf1FpSBBXSMK4dmyLVzUCcScBRAMA5j0wcqBHTW41pcgHeRnTENjsPXSEiQFAwqc6k4DP2VpTOcYxkUxwgDHbh7aISYOZO2sTNLukUSDjUMTJyqQfDGJOVMNpRsd6x6F41gtpAgCBsxGGdT+lyyE4R214uVJ6AY++m4fLBlYKArAGIzoXOV5ZrNuBIY7d+NEHMesb99uFy65ttboWh+i5dWQgHiPiZ3GkVrFtwyLK6ejGtPKHhcyFlrZPhJ3Cijgqy4EH0SMxWp2LHeaY3tL3W+WjA4EYzuNLZdeLeOVowsDOXPwgU3LKTbZI1GJyOIVttcW1cLugkW2A0mMl6KfmuY8RtSxB2vkq9tc3zbGb10i2h6Wkk+wVySzJ1Fm6lbCuc04aQun/8ZWmB8gZlP/bu+Idho8TH4L3WPK9FAYa2BLnJlOQq6USUtCS2w9VYkCl1Lrtg+IZSN1fqOTuh7Q89tjFxCejaPqUj6RRvk+vHQfsqRtxHto3OYtcYRBUMUM7DIo6+VYQMfHqJPtGVH9Py5stMyX1COqKzA6zFeZe0V5l7RXmXtFL4l2ziKzWOsVmvsNAMynpkUreEEAdRwog6VbYoNFgY2AyJijFxTnEkdtMutYBI82yvMvaK8y9opfEuY2ivMuPSK8y4dIrxMDOHmFNMYI0YzsPqADEnAChcuDVfOJn4egUaYkYSfVSyPiOJ6NtfpgAlqx4UYbYwxFaZOndVufCeGsRXFYnUpkDeeuk58ALcB0XQow6PUC22CMPFrJiANtPYsuU5VMea5k+a51de6ja08PlAmlIx0wfM/XtNAC6jFvKAwJNALNkFiz6fi7aB5NmfQSTbOJacJEVZsGywZUETgM5OPtpnur4buoBhiJIypNFtiLiFCdkrl9lC7zbBRp03EnPd4qaxyKa3sgY5rH31+quHicuzaeZtgDwD4WG2Ke/yVzTdWSykaVeDEr0+vnUDVGOX/lWTdg7qybsHdQADSerurUVbDPFagBvd3ViG93dXxe7urJvd3UCCSTsw7qIWcBOMD7qAYHESIg/dQFy2WfaSoNGA0TgIGXZWCEHoH7qI8Qjq7qA8Rnq7q+L3d1CZ9vrAfyj7PXE5TXSpg1jkcD1VhmK1LhvXd6q+31E2jQMDQJGQg9NaQIMQTWNN1+lesejD0OCc0b7PUUnEIC3Zl6DTbpNBlEYwfU8QDRbcgHfFMDbVWmSVEUJy21Z0GYT3HKgYmNhrmLehVTA4DEmd/qpZACWkx0qIk7zTJanj3jFxj8KDYvXRuOStqwpuXGUwYXIA9NPb5tmZLny2zK9BikQXNeowWUGF664Fq4GcY7vZjShvG7mEQRJPtq7ctWQgsuEYsZInoFX+Vv3C7XLQucuAdKloDAQJqzz1kRd5b8q+g2rsJ6DlXF5U6rFwAvbO5vMhmm/TsWtHFZEETs9nr5UF4jqccAMP+YVBvP2f5qDreaDvGP21BuudJxEbv7qKAspO0D99fOudn+avmv2f5qjisetR31PGfs/zUVN5oO5APvr51zs/zV8652f5q+dc7P8ANXzrnZ/mr51zs/zV8252f5q+bc7P81RrJ6SuP/NWDs39QiPefqUNj1Vke391ZHt/dWR7f3UFg4dO/wBlZHt/dWR7f3Vke391DwnwjTnurI9v7qyPb+6sj2/uotBx6f3Vke391ZHt/dQaDhjn+6sj2/urI9v7qyPb+6iQDJBGe8R6hey2liIJG6lfWfEAaxY9tSMDQBGZ9SzfbyA6X/pbA01hEUWrp12WURKnHOtLHT00SLgYjCKDxI7c6W0UVbt06mjDwjf67cuoAVyCxGZjYau82YjlrZcE5az4V99WwwnU4kb5NXWGANyPDuBjCiVEcG4ukHHARX+4cuBqS+fBBkBp1TnXK31YDmeXbRp/lXxKaduVc8K6AzgYDURLCOg/Q5UdelhB8JzGNLoKW5GIIz91aVvqBuE91SbqEnPPur5qft/bXzU/b+2vmp+39tfNT9v7a+an7f2181P2/tr5qft/bXzU/b+2vmp+39tfNT9v7a+an7f2181P2/tr5qft/bXzU/b+2h4lb+n/AMh/4Vwrnk2HdWoEEHbUswFQMEGQ3+qnJuQVtzDx49P8M7vSHWDvU4hhuNG4+ZyGwDd9A3LKIFxgbjbWjIeyrZPwy87ioJn2UbkyxbVPTM0165i7mWjDH6SZoh4UQfFtONLo03BGJONfLTsPfXy07D318tOw99fLTsPfXy07D318tOw99fLTsPfXy07D318tOw99fLTsPfXy07D318tOw99fLTsPfXy07D318tOw99fLTsPfWChY3eoMc6Yi5MCRljUHDpokNJ3UiOdCsQCx2A0LlnmBdaY04ZeyktXX4SMcXOzDppG5fmBfLGCojDsoWuYu8C2QTrMbOurY5W+OY1zqiPDHVW767EmN31QvaMMVKkxODCD9Sj1YrP1IrP62BRdLoZhkuGNZUCXg7qOH0RFx9AAwoLbbiLEyKyqdeMTFZVw7z8JIJ1GNnXSCxd4wadURh2VlS3bvNC3caZSRh2mioEgGJq3ZvPwrbGGuHYPbSPy3MjmGZoKggwIzwrKi97mBaYGNOGXtp7aHWimA42ihcvcyLbkmUkYR10yr4lBIDbxv+uWbFqxo5lDNy7/EKQskqGBYTmN1C5yPL/p7IUApvbfhWA+opfHLrryuLjgw9tf6Zff31/pl9/fX+mX399azyq6c5x76/wBMvv76/wBMvv76/wBMvv76LLy68a54bQxz357PrDnn7ZuKQNEbD2ig3IIbdrSJB/i99N+pUsTGmKJ5cabewH6hZ5RWCG8wXUcYmk1cyr65yUjL21q4w7DXzh2GtPGHYa+cOw1q4w7DTIvMKmkTipP31+mPMKTIGrSdvtqP1a/gPfR/+UpjM6T30GPMKZ/lPfUcYdhqeMOw1xhzSqJIgqTl7aH/AMtccvAe+mH6hW0iSdJ76I3fXAGxs3fC46dhryP2DvryP2DvryP2DvqIeN2HfXkfsHfXkfsHfRJRgBiTh301zK0vhtLuUd/qTWS9gpCFWSDOA30x0rIjYKVWVSCccBWS/hFYKuQ2DdQOlZkjIdFNKrgpIwFDwr+EUQqrAO4Ug0rOmWwGcmidKyI2CoKrEHYN1ZL+EVAVYgbBupTABxyEepnUaVPSRjXkXsotw1kMBlvBryL2UZRcicuivIvZXkXsplCLAJAwryL2UhFtfEsnDpIryL2UToWZGyvIvZUG2sQdnRXkXsryL2UYwE5VjXJxnxBSi8xGjLT00eWE6A2mdsUhQk685r20K/UEnVpJjZImrgWJKjPro847MLnmgZStIEClnynKKa40AzDAVbQxicOimuMcUwMGuG2G6KNtPKpMz00oO0YU9tYgoJo9frkjdTLe5jhAIGBnM7saFtruhCSDcJMAb6W+eb0uboQicILacs8sauW7d7iqkaWB8091EyRAnM1Z4l/RxFl2Mwh6aDi9LFypSTIH8VXibuNtgqLjLg7RV7ic1o4ahlMxqJGWO6uWVedgXVZnJMwQJGVWXfmyGuGCuoY9Aq5btXS6oRAnHEY4jDCuYN3mOFwVBQE+aZq0E5vC4pZiTOIGHl31Y5q1zGu7cIDW5nMH7PX4Tn861geldh9OGrix7J9P6W2fzLg8cbF/f6vRWLNP9I76t+Jsj8I3/wBVN4m2fCP8VJ4mz/hH+KvM34R/ioeJsh8I3f1UPE3mPwjcP5qfxN5T8I/xUBrbMfCO+nu2Ws3Ayy4bxH2TtxpLplCyDwquGBI39FN4m2fCP8VDxNkfhG7+qvM34R/io+Jsh8I3f1UugkjHMR3+rKjDrFZe8U2HxDaNxrL3ijhsO0bqy94oYe8U+HxHaN9eWOsirc/w7CP4jV1btgG5ZQur6szsEA09rQihGEaYGyrdiQnEbTqwMeya4c6x4wGymJFZe8UjuVYOocQdjddMOmsq5ORH5ooaWgHM1ccGGDSD01F1i8ZTXFNtTd0E6ts0MKt2dR4RMFdkE40DaUJq8xFadWExp3g0oYCJxO6n0wNIOkUga9KsJbDymixAY+KGO2DQhsx4juxpscpjpoAuTIM9GNMc/DnR6/XIOW2rYt3H4ZtksQJ8fw51aHNOwUhuIDgoPw4irtzl7hfmA50STMzlG6nLkhxGgAYHHGaIt3n0cIkEjHibuqrQvErbgaiok5UouEi3q8RGemuZL3W1i54CcG0wIgUwsXXKcOVjGbm7GrXEuy3DJIYkCcJk76VVuPwuIwbcE+EzRUO3A4igGPg+IzV39PcbC0pUL4l1ycJPo5d7Lk82WGtfYZ9cXbbFSMDG40GW8xBxGNfNbtriFrmjPVsr5rdtF2utA6aa7cJZmOZ9WKyPZVvwnI7Omm8J2bKTwnPdXlPZQ8JyGzooeE+Y7OgU/hPlOyiSviBwq3rMoScNvtq3APlOz+ZqbwnZsoeE5HZ0V5T2UfCchs6KWRGJ9dv6l+xvQY3H7KxIFDb7qeMPEcuusat/0/8AuNc7/wBg1eJz1j7K5X/uClG43ftPosjfZtfaaPo5ZRixcQBTa0YLAz31ew2mjUSYnKhXDZ1F3QwjbONPqkiBNMNJ1HKrZu23CT4owJw2U8q+r4DOzppYRoA/M/dRBBBnAe2khSRPjAzplOpTPgB3dNLpB/mpw8Aw0TnlTdZ9Xd0j0A3RKAjUN421bPLWCQEIOkacfhnqqx+ossSobjE4hjswpnW03B45MT/090VemwYJ8IIxIjYdlA2+XJAskYeEaifD2UABlnSG6hZQ0vBzXdV9uXQpZLDQp2CBV7j2T4lGgHxbMY3Y0unAQ2HZSPzi6kE6pxHRhT3eWGmxhkI64Fc0TYaGVRa1YkGDPVjSnhtpCw41ZtvFWwAQ4Y6jOBww+gNq4cBitZnsNcI3G4YEaYMRWZ7DQtp5Riek/QW+o/bTeyk6/QOofZS/1H7BRByIinRJgRnVnrP30n9J/wCZqb2UOo/Z6D1D7KXrPqYV4gSeggfdTmzbdxaGpyCMB2UwYMCGEiROR6KtcuQwFxo1SO6jbBZlIeMRkpK7uivK3aO6kuMS6sqtgctezLop/C3mO0b+ql5uWFwuywSIhQTu6Kt+FvLvG89Fc5pBH5JmSO6r0hp1DaN3VXL30ttw1uAF5EA9lDUDndyPSeijbtKdQUsZYDAeyrOoGODbyPSaaMprOuUdpIW4CaGsMJ6KuXUnS5kTRr20K9lOYnAYe2pAwnOrULqhp0nI4U6FRJ+LdS/lgaVyjzUwK+3dSEocNkZ01xF8JO3MRSsymMsNtXLiLgQRjgRFN1n1cIO+awo9VE3eXAm2qjTmSNuO+rIt8iG0sW0xgRBwGFXRwhbJuu22VE+Wr3LPYDvcmHw2iMeqvFaFubYAUgj+7GrCJy6lrQIaJJudcUnJpyhNzV8yMyDPXNczyd7ldN1mOzDxDCZxwovashQFEqgJAj4qsleXF7SjgpBOrpNWeXHLLxLT6mP8WPl31d1ciHHFDFo8K+IHTMbKvEcmPGoE4f8Aqq0/6NIS2VKmMSduVcvZXlxbZHJN0fFgcPoARmKDCtS3XPM6QdEeHVOImp27Kk+v5RVvwjI/bTeEbKTwjOvKKHhGQ+ygFQE6jgAdwrygYffT+yrOG01b8I8p/wCZqbwjZQ8IyP2V5RR8IyH2UuEYnL1uf/7XfXMQP+r/AIq5a5pOgPBaMJjfX/7f+Zqyq0P/ALdn/wB1Ph8R+2kBEHiv/wArVb/p/wDca5priFVuWCUJ2ir39Q+ylG39Qv3UOu79pp/+01Wv+zb+00fRywGEuKh7hUoBsnA09rVq0YTRxrPbQxrPZRdcTFB4wMkilE6CviU50/50K2LCN1I3ELECEwypwDhhqq3Fwhl8mFMpfVJJcx00qlojy4Vctjx4Es2WdN1n1Y7RvrDKmFtZCjE7ppdNsM1u3ohVnwxma5UDlQyKCLeGLAj3Vd567YKDjEnDAMDEU19gupiGIAwkUurlyrWrU6VUzpJ81I3L2xddVKhIxIOJypLzcoGTiETESWJw6MavWTYW2bxVdESwjp31dtty88VZM4wBhOFJcFsMHtsoBESJmQaX/cFtSXclPCdJY7BV/lnsqHutBMRGo4jTXMtasAh1C3ZUCBGwYbKtLcRVNpNKwuY341Z5Q21W3YYlWGZzGP0ItXyQj4AgxDbK1HXp3zh9lMtmTbXAE7en1woGdaywAzOBpPzRkdh39VN+aNmw91IeKM9x7q+aOxu6h+aMhsO7qrwuG82AB6N9DxAZ7DjjTSYmJ6KtQZgmOmrf5gB07j/E3RRDXRJjYe6h+aMjsO7qr5o7D3UQjhjAwAO6gpOOJOyhO31DbtuViTmQKuRgf0onpO+r6hyJugDHrpLTsWYX1x6IowxHzMj/ADNVx7p1K9pismatkEg6LWX91C7rOlLoBUk4+KrhGH5z5f0GrSNcYDQTgek1E5cq2PZV1Q5EuAMeiktO+p+Ou3GDFCGIxu5HpNcS48q9toBO6rJDEHhW8us03X6Ev2jFy2dSk440SrrjnKCmZ2Us2JOkVII/CKmVnOdIrEjDZpFadSx/SKkEfhFC2rrp/oFSrrOXkFRxEx/kFedcP5BUl1x/lFedcP5RUB1x/kFYOuH8go6nXxCD4RUnb695VJCuFDgbR00f0ylbj29RyxtnbjXLaSsHyZTl8c9FMl110XbjEqY1ebPqq6cGRRqYg+YZ02skXGsCcAfywTSPyvgdlLK7ZFcjScSBbW8skRrnVh7Jpr7k8ZWBYn+Ib6c4rotkXFUQNBxJM1yqlWJa2xsCfgEHCrFyY5dXmyBEhpwp7jybhcaj/NNXbNz5jgFtQxGEAj2UugNr4epCTH5ZwwrScCCQe36L9KHPEeEuf0rt+gB20LQGJJndjmaTSCYBntoqB4jEClLCIMGkIk6lk47aNxvOCoz2YUQMB4vsWl9v2in6hVnrP305YAkJhPW1C2TAMY9tGDMFh7jWKkYT7KF1JwgTE7KFxzLZbsBAHqlnBggjCryX9R1WuHbgDDrp3AOlrgcdQmkYluAHDsoAnARXEtg6fHnh5iSPtpBb8wQo0jfSJaDSq2wZEYrM1cIkMzhl9hmuDc1NeNxnJgRDKVFIzAwqlT1yTVxLwMcE2k0jad+NPcUHSzBh1CrfMMDoR1Y74FcW2G0y+efiJiraY6lBB9tW7VoNqS2iGRGK50Tv+gS5yqtzKOss1tWOhtqt01jy138BrGxcH9pr5L/hNAMhRdrEGBRAxG/6UlGic8JyqVukGNMjduq2n6htNryAbKFpb7aQ2odZM05fmGhxDDYRXEe6WbTpk4+EbKD2bxRgIBjYa4V3mGZNWvSf4qkvJPRRi4RIgwMxSMbzTbBVOgHYKFlrxNpTKpsBqC+GeW6pZ5O8itVu8ytGmRu3ViZO0/U86wNZ1iazwrA1nWJrOs8KwNZ41iazrA/TYeifpn5ZrBul3L6g0ZgDd0V/pWH947q/05H9w7q+Sfxfup7YtkagRM/QAqhIOINS6kDf/wAPhQ7aRkJqGYsM4Jo5Z7Mv+Hx99f/Z\",\"type\":\"image/jpeg\"},\"$:/plugins/Gk0Wk/echarts/echarts-wordcloud.min.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/echarts-wordcloud.min.js\",\"text\":\"(()=>{\\\"use strict\\\";t=h={},\\\"undefined\\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\\\"Module\\\"}),Object.defineProperty(t,\\\"__esModule\\\",{value:!0}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||(window.postMessage&&window.addEventListener?(a=[void 0],i=\\\"zero-timeout-message\\\",window.addEventListener(\\\"message\\\",function(t){var e;\\\"string\\\"==typeof t.data&&t.data.substr(0,i.length)===i&&(t.stopImmediatePropagation(),e=parseInt(t.data.substr(i.length),36),a[e])&&(a[e](),a[e]=void 0)},!0),window.clearImmediate=function(t){a[t]&&(a[t]=void 0)},function(t){var e=a.length;return a.push(t),window.postMessage(i+e.toString(36),\\\"*\\\"),e}):null)||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var h,a,i,t,q=!(!(e=document.createElement(\\\"canvas\\\"))||!e.getContext||!((e=e.getContext(\\\"2d\\\")).getImageData&&e.fillText&&Array.prototype.some&&Array.prototype.push)),G=function(){if(q){for(var t,e,a=document.createElement(\\\"canvas\\\").getContext(\\\"2d\\\"),i=20;i;){if(a.font=i.toString(10)+\\\"px sans-serif\\\",a.measureText(\\\"W\\\").width===t&&a.measureText(\\\"m\\\").width===e)return i+1;t=a.measureText(\\\"W\\\").width,e=a.measureText(\\\"m\\\").width,i--}return 0}}(),e=function(v,t){if(q){(v=Array.isArray(v)?v:[v]).forEach(function(t,e){if(\\\"string\\\"==typeof t){if(v[e]=document.getElementById(t),!v[e])throw\\\"The element id specified is not found.\\\"}else if(!t.tagName&&!t.appendChild)throw\\\"You must pass valid HTML elements, or ID of the element.\\\"});var e,S={list:[],fontFamily:'\\\"Trebuchet MS\\\", \\\"Heiti TC\\\", \\\"微軟正黑體\\\", \\\"Arial Unicode MS\\\", \\\"Droid Fallback Sans\\\", sans-serif',fontWeight:\\\"normal\\\",color:\\\"random-dark\\\",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:\\\"#fff\\\",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:\\\"rgba(255,0,0,0.3)\\\",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:\\\"circle\\\",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var a in t)a in S&&(S[a]=t[a]);if(\\\"function\\\"!=typeof S.weightFactor&&(e=S.weightFactor,S.weightFactor=function(t){return t*e}),\\\"function\\\"!=typeof S.shape)switch(S.shape){case\\\"circle\\\":default:S.shape=\\\"circle\\\";break;case\\\"cardioid\\\":S.shape=function(t){return 1-Math.sin(t)};break;case\\\"diamond\\\":case\\\"square\\\":S.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case\\\"triangle-forward\\\":S.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case\\\"triangle\\\":case\\\"triangle-upright\\\":S.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case\\\"pentagon\\\":S.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case\\\"star\\\":S.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return 0\u003C=(t+.955)%(2*Math.PI/5)-2*Math.PI/10?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))}}S.gridSize=Math.max(Math.floor(S.gridSize),4);var p,y,x,M,I,i,b,T=S.gridSize,C=T-S.maskGapWidth,k=Math.abs(S.maxRotation-S.minRotation),E=Math.min(S.maxRotation,S.minRotation),L=S.rotationStep;switch(S.color){case\\\"random-dark\\\":b=function(){return _(10,50)};break;case\\\"random-light\\\":b=function(){return _(50,90)};break;default:\\\"function\\\"==typeof S.color&&(b=S.color)}var O=null;\\\"function\\\"==typeof S.classes&&(O=S.classes);var o,n,r,P=!1,D=[],W=function(t){var e=t.currentTarget,a=e.getBoundingClientRect(),i=(t.touches?(o=t.touches[0].clientX,t.touches[0]):(o=t.clientX,t)).clientY,o=o-a.left,i=i-a.top,o=Math.floor(o*(e.width/a.width||1)/T),i=Math.floor(i*(e.height/a.height||1)/T);return D[o][i]},B=function(t){var e=W(t);o!==e&&((o=e)?S.hover(e.item,e.dimension,t):S.hover(void 0,void 0,t))},l=function(t){var e=W(t);e&&(S.click(e.item,e.dimension,t),t.preventDefault())},R=[],A=function(){return 0\u003CS.abortThreshold&&(new Date).getTime()-i>S.abortThreshold},s=function(a,i,o){if(i)return!v.some(function(t){var e=document.createEvent(\\\"CustomEvent\\\");return e.initCustomEvent(a,!0,i,o||{}),!t.dispatchEvent(e)},this);v.forEach(function(t){var e=document.createEvent(\\\"CustomEvent\\\");e.initCustomEvent(a,!0,i,o||{}),t.dispatchEvent(e)},this)},d=v[0];if(x=d.getContext?(y=Math.ceil(d.width/T),Math.ceil(d.height/T)):(c=d.getBoundingClientRect(),y=Math.ceil(c.width/T),Math.ceil(c.height/T)),s(\\\"wordcloudstart\\\",!0)){if(M=S.origin?[S.origin[0]/T,S.origin[1]/T]:[y/2,x/2],I=Math.floor(Math.sqrt(y*y+x*x)),p=[],!d.getContext||S.clearCanvas)for(v.forEach(function(t){var e;t.getContext?((e=t.getContext(\\\"2d\\\")).fillStyle=S.backgroundColor,e.clearRect(0,0,y*(T+1),x*(T+1)),e.fillRect(0,0,y*(T+1),x*(T+1))):(t.textContent=\\\"\\\",t.style.backgroundColor=S.backgroundColor,t.style.position=\\\"relative\\\")}),h=y;h--;)for(p[h]=[],n=x;n--;)p[h][n]=!0;else{var c=document.createElement(\\\"canvas\\\").getContext(\\\"2d\\\");c.fillStyle=S.backgroundColor,c.fillRect(0,0,1,1);for(var u,f,X=c.getImageData(0,0,1,1).data,H=d.getContext(\\\"2d\\\").getImageData(0,0,y*T,x*T).data,h=y;h--;)for(p[h]=[],n=x;n--;){f=T;t:for(;f--;)for(u=T;u--;)for(m=4;m--;)if(H[4*((n*T+f)*y*T+(h*T+u))+m]!==X[m]){p[h][n]=!1;break t}!1!==p[h][n]&&(p[h][n]=!0)}H=c=X=void 0}if(S.hover||S.click){for(P=!0,h=y+1;h--;)D[h]=[];S.hover&&d.addEventListener(\\\"mousemove\\\",B),S.click&&(d.addEventListener(\\\"click\\\",l),d.addEventListener(\\\"touchstart\\\",l),d.addEventListener(\\\"touchend\\\",function(t){t.preventDefault()}),d.style.webkitTapHighlightColor=\\\"rgba(0, 0, 0, 0)\\\"),d.addEventListener(\\\"wordcloudstart\\\",function v(){d.removeEventListener(\\\"wordcloudstart\\\",v),d.removeEventListener(\\\"mousemove\\\",B),d.removeEventListener(\\\"click\\\",l),o=void 0})}var m=0,Y=!0,g=S.layoutAnimation?0!==S.wait?(r=window.setTimeout,window.clearTimeout):(r=window.setImmediate,window.clearImmediate):(r=function(t){t()},function(){Y=!1}),w=function(e,a){v.forEach(function(t){t.removeEventListener(e,a)},this)},z=function v(){w(\\\"wordcloudstart\\\",v),g(F)},F=(!function(e){v.forEach(function(t){t.addEventListener(\\\"wordcloudstart\\\",e)},this)}(z),(S.layoutAnimation?r:setTimeout)(function d(){var t;Y&&(m>=S.list.length?(g(F),s(\\\"wordcloudstop\\\",!1),w(\\\"wordcloudstart\\\",z)):(i=(new Date).getTime(),t=function(t){var e,a,i;Array.isArray(t)?(e=t[0],a=t[1]):(e=t.word,a=t.weight,i=t.attributes);var o,n,r=0===S.rotateRatio||Math.random()>S.rotateRatio?0:0===k?E:E+Math.round(Math.random()*k/L)*L,l=function(t,e,a){var i=S.weightFactor(e);if(i\u003C=S.minSize)return!1;var o=1,n=(i\u003CG&&(o=function(){for(var t=2;t*i\u003CG;)t+=2;return t}()),document.createElement(\\\"canvas\\\")),r=n.getContext(\\\"2d\\\",{willReadFrequently:!0}),l=(r.font=S.fontWeight+\\\" \\\"+(i*o).toString(10)+\\\"px \\\"+S.fontFamily,r.measureText(t).width/o),s=Math.max(i*o,r.measureText(\\\"m\\\").width,r.measureText(\\\"W\\\").width)/o,d=l+2*s,c=3*s,u=Math.ceil(d/T),f=Math.ceil(c/T),d=u*T,c=f*T,u=-l/2,f=.4*-s,h=Math.ceil((d*Math.abs(Math.sin(a))+c*Math.abs(Math.cos(a)))/T),d=Math.ceil((d*Math.abs(Math.cos(a))+c*Math.abs(Math.sin(a)))/T),m=d*T,c=h*T,g=(n.setAttribute(\\\"width\\\",m),n.setAttribute(\\\"height\\\",c),r.scale(1/o,1/o),r.translate(m*o/2,c*o/2),r.rotate(-a),r.font=S.fontWeight+\\\" \\\"+(i*o).toString(10)+\\\"px \\\"+S.fontFamily,r.fillStyle=\\\"#000\\\",r.textBaseline=\\\"middle\\\",r.fillText(t,u*o,(f+.5*i)*o),r.getImageData(0,0,m,c).data);if(A())return!1;for(var w,v,p,y=[],x=d,M=[h/2,d/2,h/2,d/2];x--;)for(w=h;w--;){p=T;t:for(;p--;)for(v=T;v--;)if(g[4*((w*T+p)*m+(x*T+v))+3]){y.push([x,w]),x\u003CM[3]&&(M[3]=x),M[1]\u003Cx&&(M[1]=x),w\u003CM[0]&&(M[0]=w),M[2]\u003Cw&&(M[2]=w);break t}}return{mu:o,occupied:y,bounds:M,gw:d,gh:h,fillTextOffsetX:u,fillTextOffsetY:f,fillTextWidth:l,fillTextHeight:s,fontSize:i}}(e,a,r);if(!l)return!1;if(A())return!1;if(!S.drawOutOfBound){var s=l.bounds;if(s[1]-s[3]+1>y||s[2]-s[0]+1>x)return!1}for(var d=I+1;d--;){var c=function(t){if(R[t])return R[t];var e=8*t,a=e,i=[];for(0===t&&i.push([M[0],M[1],0]);a--;){var o=1;\\\"circle\\\"!==S.shape&&(o=S.shape(a/e*2*Math.PI)),i.push([M[0]+t*o*Math.cos(-a/e*2*Math.PI),M[1]+t*o*Math.sin(-a/e*2*Math.PI)*S.ellipticity,a/e*2*Math.PI])}return R[t]=i}(I-d);if(S.shuffle){c=[].concat(c);{u=void 0;f=void 0;h=void 0;m=void 0;var u=c;for(var f,h,m=u.length;m;f=Math.floor(Math.random()*m),h=u[--m],u[m]=u[f],u[f]=h);}}for(var g=0;g\u003Cc.length;g++){w=c[g],0,o=Math.floor(w[0]-l.gw/2),n=Math.floor(w[1]-l.gh/2),l.gw,l.gh;var w=!!function(t,e,a){for(var i=a.length;i--;){var o=t+a[i][0],n=e+a[i][1];if(y\u003C=o||x\u003C=n||o\u003C0||n\u003C0){if(!S.drawOutOfBound)return}else if(!p[o][n])return}return 1}(o,n,l.occupied)&&(function(l,s,d,c,t,e,a,u,f){var h=d.fontSize,m=b?b(c,t,h,e,a):S.color,g=O?O(c,t,h,e,a):S.classes,i=d.bounds;i[3],i[0],i[1],i[3],i[2],i[0],v.forEach(function(t){if(t.getContext){var e=t.getContext(\\\"2d\\\"),a=d.mu;e.save(),e.scale(1/a,1/a),e.font=S.fontWeight+\\\" \\\"+(h*a).toString(10)+\\\"px \\\"+S.fontFamily,e.fillStyle=m,e.translate((l+d.gw/2)*T*a,(s+d.gh/2)*T*a),0!==u&&e.rotate(-u),e.textBaseline=\\\"middle\\\",e.fillText(c,d.fillTextOffsetX*a,(d.fillTextOffsetY+.5*h)*a),e.restore()}else{var i,o=document.createElement(\\\"span\\\"),a=\\\"\\\",a=\\\"rotate(\\\"+-u/Math.PI*180+\\\"deg) \\\",n=(1!==d.mu&&(a+=\\\"translateX(-\\\"+d.fillTextWidth/4+\\\"px) scale(\\\"+1/d.mu+\\\")\\\"),{position:\\\"absolute\\\",display:\\\"block\\\",font:S.fontWeight+\\\" \\\"+h*d.mu+\\\"px \\\"+S.fontFamily,left:(l+d.gw/2)*T+d.fillTextOffsetX+\\\"px\\\",top:(s+d.gh/2)*T+d.fillTextOffsetY+\\\"px\\\",width:d.fillTextWidth+\\\"px\\\",height:d.fillTextHeight+\\\"px\\\",lineHeight:h+\\\"px\\\",whiteSpace:\\\"nowrap\\\",transform:a,webkitTransform:a,msTransform:a,transformOrigin:\\\"50% 40%\\\",webkitTransformOrigin:\\\"50% 40%\\\",msTransformOrigin:\\\"50% 40%\\\"});for(i in m&&(n.color=m),o.textContent=c,n)o.style[i]=n[i];if(f)for(var r in f)o.setAttribute(r,f[r]);g&&(o.className+=g),t.appendChild(o)}})}(o,n,l,e,a,I-d,w[2],r,i),function(t,e,a,i){var o,n,r,l=a.occupied,s=S.drawMask;s&&((o=v[0].getContext(\\\"2d\\\")).save(),o.fillStyle=S.maskColor),P&&(r={x:(t+(n=a.bounds)[3])*T,y:(e+n[0])*T,w:(n[1]-n[3]+1)*T,h:(n[2]-n[0]+1)*T});for(var d,c,u,f,h,m=l.length;m--;){var g=t+l[m][0],w=e+l[m][1];y\u003C=g||x\u003C=w||g\u003C0||w\u003C0||(c=w,u=s,f=r,h=i,y\u003C=(d=g))||x\u003C=c||d\u003C0||c\u003C0||(p[d][c]=!1,u&&v[0].getContext(\\\"2d\\\").fillRect(d*T,c*T,C,C),P&&(D[d][c]={item:h,dimension:f}))}s&&o.restore()}(o,n,l,t),{gx:o,gy:n,rot:r,info:l});if(w)return w}}return null}(S.list[m]),t=!s(\\\"wordclouddrawn\\\",!0,{item:S.list[m],drawn:t}),A()||t?(g(F),S.abort(),s(\\\"wordcloudabort\\\",!1),s(\\\"wordcloudstop\\\",!1),w(\\\"wordcloudstart\\\",z)):(m++,F=r(d,S.wait))))},S.wait))}}function _(t,e){return\\\"hsl(\\\"+(360*Math.random()).toFixed()+\\\",\\\"+(30*Math.random()+70).toFixed()+\\\"%,\\\"+(Math.random()*(e-t)+t).toFixed()+\\\"%)\\\"}};e.isSupported=q,e.minFontSize=G;const m=e;var g=window.echarts;{function h(t){for(var e=t.getContext(\\\"2d\\\"),a=e.getImageData(0,0,t.width,t.height),i=e.createImageData(a),o=0,n=0,r=0;r\u003Ca.data.length;r+=4)128\u003Ca.data[r+3]&&(o+=s=a.data[r]+a.data[r+1]+a.data[r+2],++n);for(var l=o/n,r=0;r\u003Ca.data.length;r+=4){var s=a.data[r]+a.data[r+1]+a.data[r+2];a.data[r+3]\u003C128||l\u003Cs?(i.data[r]=0,i.data[r+1]=0,i.data[r+2]=0,i.data[r+3]=0):(i.data[r]=255,i.data[r+1]=255,i.data[r+2]=255,i.data[r+3]=255)}e.putImageData(i,0,0)}m.isSupported&&(g.extendChartView({type:\\\"wordCloud\\\",render:function(r,t,e){var l=this.group,s=(l.removeAll(),r.getData()),d=r.get(\\\"gridSize\\\");r.layoutInstance.ondraw=function(t,e,a,i){var o=s.getItemModel(a),n=o.getModel(\\\"textStyle\\\"),n=new g.graphic.Text({style:g.helper.createTextStyle(n),scaleX:1/i.info.mu,scaleY:1/i.info.mu,x:(i.gx+i.info.gw/2)*d,y:(i.gy+i.info.gh/2)*d,rotation:i.rot});n.setStyle({x:i.info.fillTextOffsetX,y:i.info.fillTextOffsetY+.5*e,text:t,verticalAlign:\\\"middle\\\",fill:s.getItemVisual(a,\\\"style\\\").fill,fontSize:e}),l.add(n),s.setItemGraphicEl(a,n),n.ensureState(\\\"emphasis\\\").style=g.helper.createTextStyle(o.getModel([\\\"emphasis\\\",\\\"textStyle\\\"]),{state:\\\"emphasis\\\"}),n.ensureState(\\\"blur\\\").style=g.helper.createTextStyle(o.getModel([\\\"blur\\\",\\\"textStyle\\\"]),{state:\\\"blur\\\"}),g.helper.enableHoverEmphasis(n,o.get([\\\"emphasis\\\",\\\"focus\\\"]),o.get([\\\"emphasis\\\",\\\"blurScope\\\"])),n.stateTransition={duration:r.get(\\\"animation\\\")?r.get([\\\"stateAnimation\\\",\\\"duration\\\"]):0,easing:r.get([\\\"stateAnimation\\\",\\\"easing\\\"])},n.__highDownDispatcher=!0},this._model=r},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),g.extendSeriesModel({type:\\\"series.wordCloud\\\",visualStyleAccessPath:\\\"textStyle\\\",visualStyleMapper:function(t){return{fill:t.get(\\\"color\\\")}},visualDrawType:\\\"fill\\\",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var a=g.helper.createDimensions(t.data,{coordDimensions:[\\\"value\\\"]}),a=new g.List(a,this);return a.initData(t.data),a},defaultOption:{maskImage:null,shape:\\\"circle\\\",left:\\\"center\\\",top:\\\"center\\\",width:\\\"70%\\\",height:\\\"80%\\\",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{fontWeight:\\\"normal\\\"}}}),g.registerLayout(function(u,f){u.eachSeriesByType(\\\"wordCloud\\\",function(a){var i=g.helper.getLayoutRect(a.getBoxLayoutParams(),{width:f.getWidth(),height:f.getHeight()}),o=a.getData(),t=document.createElement(\\\"canvas\\\"),e=(t.width=i.width,t.height=i.height,t.getContext(\\\"2d\\\")),n=a.get(\\\"maskImage\\\");if(n)try{e.drawImage(n,0,0,t.width,t.height),h(t)}catch(h){console.error(\\\"Invalid mask image\\\"),console.error(h.toString())}var r=a.get(\\\"sizeRange\\\"),e=a.get(\\\"rotationRange\\\"),l=o.getDataExtent(\\\"value\\\"),s=Math.PI/180,d=a.get(\\\"gridSize\\\");function c(t){var e=t.detail.item;t.detail.drawn&&a.layoutInstance.ondraw&&(t.detail.drawn.gx+=i.x/d,t.detail.drawn.gy+=i.y/d,a.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}m(t,{list:o.mapArray(\\\"value\\\",function(t,e){var a=o.getItemModel(e);return[o.getName(e),a.get(\\\"textStyle.fontSize\\\",!0)||g.number.linearMap(t,l,r),e]}).sort(function(t,e){return e[1]-t[1]}),fontFamily:a.get(\\\"textStyle.fontFamily\\\")||a.get(\\\"emphasis.textStyle.fontFamily\\\")||u.get(\\\"textStyle.fontFamily\\\"),fontWeight:a.get(\\\"textStyle.fontWeight\\\")||a.get(\\\"emphasis.textStyle.fontWeight\\\")||u.get(\\\"textStyle.fontWeight\\\"),gridSize:d,ellipticity:i.height/i.width,minRotation:e[0]*s,maxRotation:e[1]*s,clearCanvas:!n,rotateRatio:1,rotationStep:a.get(\\\"rotationStep\\\")*s,drawOutOfBound:a.get(\\\"drawOutOfBound\\\"),layoutAnimation:a.get(\\\"layoutAnimation\\\"),shuffle:!1,shape:a.get(\\\"shape\\\")}),t.addEventListener(\\\"wordclouddrawn\\\",c),a.layoutInstance&&a.layoutInstance.dispose(),a.layoutInstance={ondraw:null,dispose:function(){t.removeEventListener(\\\"wordclouddrawn\\\",c),t.addEventListener(\\\"wordclouddrawn\\\",function(t){t.preventDefault()})}}})}),g.registerPreprocessor(function(t){var e=(t||{}).series,a=(g.util.isArray(e)||(e=e?[e]:[]),[\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"]);function i(e){e&&g.util.each(a,function(t){e.hasOwnProperty(t)&&(e[\\\"text\\\"+g.format.capitalFirst(t)]=e[t])})}g.util.each(e,function(t){var e;t&&\\\"wordCloud\\\"===t.type&&(i((e=t.textStyle||{}).normal),i(e.emphasis))})}))}exports[\\\"echarts-wordcloud\\\"]=h})();\",\"type\":\"application/javascript\",\"module-type\":\"echarts-extension\",\"Modern.TiddlyDev#Minify\":\"false\"},\"$:/plugins/Gk0Wk/echarts/echarts.min.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/echarts.min.js\",\"text\":\"!function(t,e){\\\"object\\\"==typeof exports&&\\\"undefined\\\"!=typeof module?e(exports):\\\"function\\\"==typeof define&&define.amd?define([\\\"exports\\\"],e):e((t=\\\"undefined\\\"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){\\\"use strict\\\";var a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if(\\\"function\\\"!=typeof e&&null!==e)throw new TypeError(\\\"Class extends value \\\"+String(e)+\\\" is not a constructor or null\\\");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s,l,h,c,p=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},S=new function(){this.browser=new p,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=\\\"undefined\\\"!=typeof window},tt=(\\\"object\\\"==typeof wx&&\\\"function\\\"==typeof wx.getSystemInfoSync?(S.wxa=!0,S.touchEventsSupported=!0):\\\"undefined\\\"==typeof document&&\\\"undefined\\\"!=typeof self?S.worker=!0:\\\"undefined\\\"==typeof navigator?(S.node=!0,S.svgSupported=!0):(s=navigator.userAgent,Vt=(l=S).browser,at=s.match(/Firefox\\\\/([\\\\d.]+)/),_=s.match(/MSIE\\\\s([\\\\d.]+)/)||s.match(/Trident\\\\/.+?rv:(([\\\\d.]+))/),C=s.match(/Edge?\\\\/([\\\\d.]+)/),O=/micromessenger/i.test(s),at&&(Vt.firefox=!0,Vt.version=at[1]),_&&(Vt.ie=!0,Vt.version=_[1]),C&&(Vt.edge=!0,Vt.version=C[1],Vt.newEdge=18\u003C+C[1].split(\\\".\\\")[0]),O&&(Vt.weChat=!0),l.svgSupported=\\\"undefined\\\"!=typeof SVGRect,l.touchEventsSupported=\\\"ontouchstart\\\"in window&&!Vt.ie&&!Vt.edge,l.pointerEventsSupported=\\\"onpointerdown\\\"in window&&(Vt.edge||Vt.ie&&11\u003C=+Vt.version),l.domSupported=\\\"undefined\\\"!=typeof document,at=document.documentElement.style,l.transform3dSupported=(Vt.ie&&\\\"transition\\\"in at||Vt.edge||\\\"WebKitCSSMatrix\\\"in window&&\\\"m11\\\"in new WebKitCSSMatrix||\\\"MozPerspective\\\"in at)&&!(\\\"OTransition\\\"in at),l.transformSupported=l.transform3dSupported||Vt.ie&&9\u003C=+Vt.version),\\\"12px sans-serif\\\"),d=function(t){var e={};if(\\\"undefined\\\"!=typeof JSON)for(var n=0;n\u003Ct.length;n++){var i=String.fromCharCode(n+32),o=(t.charCodeAt(n)-20)/100;e[i]=o}return e}(\\\"007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\\\\\\\\\\\\\WQb\\\\\\\\0FWLg\\\\\\\\bWb\\\\\\\\WQ\\\\\\\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\\\\\\\FFF5.5N\\\"),J={createCanvas:function(){return\\\"undefined\\\"!=typeof document&&document.createElement(\\\"canvas\\\")},measureText:function(t,e){if(h||(n=J.createCanvas(),h=n&&n.getContext(\\\"2d\\\")),h)return c!==e&&(c=h.font=e||tt),h.measureText(t);t=t||\\\"\\\";var n=/^([0-9]*?)px$/.exec(e=e||tt),i=+(n&&n[1])||12,o=0;if(0\u003C=e.indexOf(\\\"mono\\\"))o=i*t.length;else for(var r=0;r\u003Ct.length;r++){var a=d[t[r]];o+=null==a?i:a*i}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function f(t){for(var e in J)t[e]&&(J[e]=t[e])}var g=ct([\\\"Function\\\",\\\"RegExp\\\",\\\"Date\\\",\\\"Error\\\",\\\"CanvasGradient\\\",\\\"CanvasPattern\\\",\\\"Image\\\",\\\"Canvas\\\"],function(t,e){return t[\\\"[object \\\"+e+\\\"]\\\"]=!0,t},{}),y=ct([\\\"Int8\\\",\\\"Uint8\\\",\\\"Uint8Clamped\\\",\\\"Int16\\\",\\\"Uint16\\\",\\\"Int32\\\",\\\"Uint32\\\",\\\"Float32\\\",\\\"Float64\\\"],function(t,e){return t[\\\"[object \\\"+e+\\\"Array]\\\"]=!0,t},{}),x=Object.prototype.toString,_=Array.prototype,b=_.forEach,w=_.filter,M=_.slice,T=_.map,C=(function(){}).constructor,O=C?C.prototype:null,et=\\\"__proto__\\\",nt=2311;function it(){return nt++}function ot(){for(var t=[],e=0;e\u003Carguments.length;e++)t[e]=arguments[e];\\\"undefined\\\"!=typeof console&&console.error.apply(console,t)}function L(t){if(null==t||\\\"object\\\"!=typeof t)return t;var e=t,n=x.call(t);if(\\\"[object Array]\\\"===n){if(!kt(t))for(var e=[],i=0,o=t.length;i\u003Co;i++)e[i]=L(t[i])}else if(y[n]){if(!kt(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),i=0,o=t.length;i\u003Co;i++)e[i]=t[i]}}else if(!g[n]&&!kt(t)&&!mt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==et&&(e[a]=L(t[a]));return e}function v(t,e,n){if(!R(e)||!R(t))return n?L(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==et&&(o=t[i],!R(r=e[i])||!R(o)||U(r)||U(o)||mt(r)||mt(o)||gt(r)||gt(o)||kt(r)||kt(o)?!n&&i in t||(t[i]=L(e[i])):v(o,r,n))}return t}function rt(t,e){for(var n=t[0],i=1,o=t.length;i\u003Co;i++)n=v(n,t[i],e);return n}function Z(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==et&&(t[n]=e[n]);return t}function H(t,e,n){for(var i=W(e),o=0;o\u003Ci.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}var at=J.createCanvas;function G(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n\u003Ci;n++)if(t[n]===e)return n}return-1}function st(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function ut(t,e,n){if(t=\\\"prototype\\\"in t?t.prototype:t,e=\\\"prototype\\\"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o\u003Ci.length;o++){var r=i[o];\\\"constructor\\\"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else H(t,e,n)}function ht(t){return!!t&&\\\"string\\\"!=typeof t&&\\\"number\\\"==typeof t.length}function lt(t,e,n){if(t&&e)if(t.forEach&&t.forEach===b)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i\u003Co;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function Y(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.map&&t.map===T)return t.map(e,n);for(var i=[],o=0,r=t.length;o\u003Cr;o++)i.push(e.call(n,t[o],o,t));return i}function ct(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o\u003Cr;o++)n=e.call(i,n,t[o],o,t);return n}}function pt(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.filter&&t.filter===w)return t.filter(e,n);for(var i=[],o=0,r=t.length;o\u003Cr;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function dt(t,e,n){if(t&&e)for(var i=0,o=t.length;i\u003Co;i++)if(e.call(n,t[i],i,t))return t[i]}function W(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var I=O&&A(O.bind)?O.call.bind(O.bind):function(t,e){for(var n=[],i=2;i\u003Carguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(M.call(arguments)))}};function D(t){for(var e=[],n=1;n\u003Carguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(M.call(arguments)))}}function U(t){return Array.isArray?Array.isArray(t):\\\"[object Array]\\\"===x.call(t)}function A(t){return\\\"function\\\"==typeof t}function X(t){return\\\"string\\\"==typeof t}function ft(t){return\\\"[object String]\\\"===x.call(t)}function j(t){return\\\"number\\\"==typeof t}function R(t){var e=typeof t;return\\\"function\\\"==e||!!t&&\\\"object\\\"==e}function gt(t){return!!g[x.call(t)]}function yt(t){return!!y[x.call(t)]}function mt(t){return\\\"object\\\"==typeof t&&\\\"number\\\"==typeof t.nodeType&&\\\"object\\\"==typeof t.ownerDocument}function vt(t){return null!=t.colorStops}function xt(t){return null!=t.image}function _t(t){return\\\"[object RegExp]\\\"===x.call(t)}function bt(t){return t!=t}function wt(){for(var t=[],e=0;e\u003Carguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n\u003Ci;n++)if(null!=t[n])return t[n]}function P(t,e){return null!=t?t:e}function St(t,e,n){return null!=t?t:null!=e?e:n}function Mt(t){for(var e=[],n=1;n\u003Carguments.length;n++)e[n-1]=arguments[n];return M.apply(t,e)}function It(t){var e;return\\\"number\\\"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Tt(t,e){if(!t)throw new Error(e)}function Ct(t){return null==t?null:\\\"function\\\"==typeof t.trim?t.trim():t.replace(/^[\\\\s\\\\uFEFF\\\\xA0]+|[\\\\s\\\\uFEFF\\\\xA0]+$/g,\\\"\\\")}var Dt=\\\"__ec_primitive__\\\";function At(t){t[Dt]=!0}function kt(t){return t[Dt]}Pt.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},Pt.prototype.set=function(t,e){return this.data[t]=e},Pt.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},Pt.prototype.keys=function(){return W(this.data)},Pt.prototype.removeKey=function(t){delete this.data[t]};var Lt=Pt;function Pt(t){this.data={};var n=U(t),i=(this.data={},this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Pt?t.each(e):t&<(t,e)}function N(t){return new Lt(t)}function Ot(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i\u003Ct.length;i++)n[i]=t[i];for(var o=t.length,i=0;i\u003Ce.length;i++)n[i+o]=e[i];return n}function Rt(t,e){var n=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&Z(n,e),n}function Nt(t){var e=t.style;e.webkitUserSelect=\\\"none\\\",e.userSelect=\\\"none\\\",e.webkitTapHighlightColor=\\\"rgba(0,0,0,0)\\\",e[\\\"-webkit-touch-callout\\\"]=\\\"none\\\"}function q(t,e){return t.hasOwnProperty(e)}function Et(){}var zt=180/Math.PI,Vt=Object.freeze({__proto__:null,guid:it,logError:ot,clone:L,merge:v,mergeAll:rt,extend:Z,defaults:H,createCanvas:at,indexOf:G,inherits:st,mixin:ut,isArrayLike:ht,each:lt,map:Y,reduce:ct,filter:pt,find:dt,keys:W,bind:I,curry:D,isArray:U,isFunction:A,isString:X,isStringSafe:ft,isNumber:j,isObject:R,isBuiltInObject:gt,isTypedArray:yt,isDom:mt,isGradientObject:vt,isImagePatternObject:xt,isRegExp:_t,eqNaN:bt,retrieve:wt,retrieve2:P,retrieve3:St,slice:Mt,normalizeCssArray:It,assert:Tt,trim:Ct,setAsPrimitive:At,isPrimitive:kt,HashMap:Lt,createHashMap:N,concatArray:Ot,createObject:Rt,disableUserSelect:Nt,hasOwn:q,noop:Et,RADIAN_TO_DEGREE:zt});function Bt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Ft(t,e){return t[0]=e[0],t[1]=e[1],t}function Gt(t){return[t[0],t[1]]}function Wt(t,e,n){return t[0]=e,t[1]=n,t}function Ht(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Yt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Ut(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Xt(t){return Math.sqrt(Zt(t))}function Zt(t){return t[0]*t[0]+t[1]*t[1]}function jt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function qt(t,e){var n=Xt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Kt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var $t=Kt;function Jt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Qt=Jt;function te(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ee(t,e,n){var i=e[0],o=e[1];return t[0]=n[0]*i+n[2]*o+n[4],t[1]=n[1]*i+n[3]*o+n[5],t}function ne(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ie(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var oe=Object.freeze({__proto__:null,create:Bt,copy:Ft,clone:Gt,set:Wt,add:Ht,scaleAndAdd:Yt,sub:Ut,len:Xt,length:Xt,lenSquare:Zt,lengthSquare:Zt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:jt,normalize:qt,distance:Kt,dist:$t,distanceSquare:Jt,distSquare:Qt,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:te,applyTransform:ee,min:ne,max:ie}),re=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ae=(he.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new re(e,t),\\\"dragstart\\\",t.event))},he.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new re(r,t),\\\"drag\\\",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new re(o,t),\\\"dragleave\\\",t.event),i)&&i!==o&&this.handler.dispatchToElement(new re(i,t),\\\"dragenter\\\",t.event)},he.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new re(e,t),\\\"dragend\\\",t.event),this._dropTarget&&this.handler.dispatchToElement(new re(this._dropTarget,t),\\\"drop\\\",t.event),this._draggingTarget=null,this._dropTarget=null},he),se=(ue.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(\\\"function\\\"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a\u003Co[t].length;a++)if(o[t][a].h===n)return this;var r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},s=o[t].length-1,l=o[t][s];l&&l.callAtLast?o[t].splice(s,0,r):o[t].push(r)}return this},ue.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ue.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o\u003Cr;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ue.prototype.trigger=function(t){for(var e=[],n=1;n\u003Carguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s\u003Ca;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},ue.prototype.triggerWithContext=function(t){for(var e=[],n=1;n\u003Carguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l\u003Cs;l++){var u=i[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},ue),le=Math.log(2);function ue(t){t&&(this._$eventProcessor=t)}function he(t){(this.handler=t).on(\\\"mousedown\\\",this._dragStart,this),t.on(\\\"mousemove\\\",this._drag,this),t.on(\\\"mouseup\\\",this._dragEnd,this)}function ce(t,e,n,i,o,r){var a,s=i+\\\"-\\\"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1\u003C\u003Cl)-1&~o)/le),t[n][a];for(var u=i|1\u003C\u003Cn,h=n+1;i&1\u003C\u003Ch;)h++;for(var c=0,p=0,d=0;p\u003Cl;p++){var f=1\u003C\u003Cp;f&o||(c+=(d%2?-1:1)*t[n][p]*ce(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function pe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=ce(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a\u003C8;a++)for(var s=0;s\u003C8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*ce(n,7,0===a?1:0,1\u003C\u003Ca,1\u003C\u003Cs,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var de=[];function fe(t,e,n,i,o){if(e.getBoundingClientRect&&S.domSupported&&!ge(e)){var r=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),r=function(t,e,n){for(var i=n?\\\"invTrans\\\":\\\"trans\\\",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u\u003C4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?pe(s,a):pe(a,s))}(function(t,e){var n=e.markers;if(!n)for(var n=e.markers=[],i=[\\\"left\\\",\\\"right\\\"],o=[\\\"top\\\",\\\"bottom\\\"],r=0;r\u003C4;r++){var a=document.createElement(\\\"div\\\"),s=r%2,l=(r>>1)%2;a.style.cssText=[\\\"position: absolute\\\",\\\"visibility: hidden\\\",\\\"padding: 0\\\",\\\"margin: 0\\\",\\\"border-width: 0\\\",\\\"user-select: none\\\",\\\"width:0\\\",\\\"height:0\\\",i[s]+\\\":0\\\",o[l]+\\\":0\\\",i[1-s]+\\\":auto\\\",o[1-l]+\\\":auto\\\",\\\"\\\"].join(\\\"!important;\\\"),t.appendChild(a),n.push(a)}return n}(e,r),r,o);if(r)return r(t,n,i),1}}function ge(t){return\\\"CANVAS\\\"===t.nodeName.toUpperCase()}var ye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,me=[],ve=S.browser.firefox&&+S.browser.version.split(\\\".\\\")[0]\u003C39;function xe(t,e,n,i){return n=n||{},i?_e(t,e,n):ve&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):_e(t,e,n),n}function _e(t,e,n){if(S.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,r=e.clientY;if(ge(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,n.zrY=r-i.top;if(fe(me,t,o,r))return n.zrX=me[0],n.zrY=me[1]}n.zrX=n.zrY=0}function be(t){return t||window.event}function we(t,e,n){var i,o,r;return null==(e=be(e)).zrX&&((o=e.type)&&0\u003C=o.indexOf(\\\"touch\\\")?(o=(\\\"touchend\\\"!==o?e.targetTouches:e.changedTouches)[0])&&xe(t,o,e,n):(xe(t,e,e,n),o=(o=(t=e).wheelDelta)||(i=t.deltaX,r=t.deltaY,null==i||null==r?o:3*(0!==r?Math.abs(r):Math.abs(i))*(0\u003Cr||!(r\u003C0)&&0\u003Ci?-1:1)),e.zrDelta=o?o/120:-(e.detail||0)/3),r=e.button,null==e.which&&void 0!==r&&ye.test(e.type))&&(e.which=1&r?1:2&r?3:4&r?2:0),e}function Se(t,e,n,i){t.addEventListener(e,n,i)}var Me=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ie(t){return 2===t.which||3===t.which}Ce.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Ce.prototype.clear=function(){return this._track.length=0,this},Ce.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r\u003Ca;r++){var s=i[r],l=xe(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Ce.prototype._recognize=function(t){for(var e in Ae)if(Ae.hasOwnProperty(e)){e=Ae[e](this._track,t);if(e)return e}};var Te=Ce;function Ce(){this._track=[]}function De(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Ae={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,n=(t[n-2]||{}).points||i;if(n&&1\u003Cn.length&&i&&1\u003Ci.length)return n=De(i)/De(n),isFinite(n)||(n=1),e.pinchScale=n,n=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2],e.pinchX=n[0],e.pinchY=n[1],{type:\\\"pinch\\\",target:t[0].target,event:e}}}};function ke(){Me(this.event)}u(Ve,Pe=se),Ve.prototype.dispose=function(){},Ve.prototype.setCursor=function(){};var Le,Pe,Oe=Ve,Re=function(t,e){this.x=t,this.y=e},Ne=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],Ee=(u(ze,Le=se),ze.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(lt(Ne,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},ze.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Be(this,e,n),o=this._hovered,r=o.target,i=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=i?new Re(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:\\\"default\\\"),r&&e!==r&&this.dispatchToElement(o,\\\"mouseout\\\",t),this.dispatchToElement(i,\\\"mousemove\\\",t),e&&e!==r&&this.dispatchToElement(i,\\\"mouseover\\\",t)},ze.prototype.mouseout=function(t){var e=t.zrEventControl;\\\"only_globalout\\\"!==e&&this.dispatchToElement(this._hovered,\\\"mouseout\\\",t),\\\"no_globalout\\\"!==e&&this.trigger(\\\"globalout\\\",{type:\\\"globalout\\\",event:t})},ze.prototype.resize=function(){this._hovered=new Re(0,0)},ze.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},ze.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},ze.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},ze.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o=\\\"on\\\"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ke};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){\\\"function\\\"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},ze.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),o=new Re(t,e),r=i.length-1;0\u003C=r;r--){var a=void 0;if(i[r]!==n&&!i[r].ignore&&(a=function(t,e,n){if(t[t.rectHover?\\\"rectContain\\\":\\\"contain\\\"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=i.ignoreClip?!0:r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(o=!0)}a=i.__hostTarget;i=a||i.parent}return!o||\\\"silent\\\"}return!1}(i[r],t,e))&&(o.topTarget||(o.topTarget=i[r]),\\\"silent\\\"!==a)){o.target=i[r];break}}return o},ze.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Te);var n,i=this._gestureMgr,o=(\\\"start\\\"===e&&i.clear(),i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));\\\"end\\\"===e&&i.clear(),o&&(i=o.type,t.gestureEvent=i,(n=new Re).target=o.target,this.dispatchToElement(n,i,o.event))},ze);function ze(t,e,n,i){var o=Le.call(this)||this;return o._hovered=new Re(0,0),o.storage=t,o.painter=e,o.painterRoot=i,n=n||new Oe,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new ae(o),o}function Ve(){var t=null!==Pe&&Pe.apply(this,arguments)||this;return t.handler=null,t}function Be(t,e,n){var i=t.painter;return e\u003C0||e>i.getWidth()||n\u003C0||n>i.getHeight()}function Fe(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])\u003C0){for(;o\u003Cn&&i(t[o],t[o-1])\u003C0;)o++;var r=t,a=e,s=o;for(s--;a\u003Cs;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o\u003Cn&&0\u003C=i(t[o],t[o-1]);)o++;return o-e}function Ge(t,e,n,i,o){for(i===e&&i++;i\u003Cn;i++){for(var r,a=t[i],s=e,l=i;s\u003Cl;)o(a,t[r=s+l>>>1])\u003C0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0\u003Cu;)t[s+u]=t[s+u-1],u--}t[s]=a}}function We(t,e,n,i,o,r){var a=0,s=0,l=1;if(0\u003Cr(t,e[n+o])){for(s=i-o;l\u003Cs&&0\u003Cr(t,e[n+o+l]);)(l=1+((a=l)\u003C\u003C1))\u003C=0&&(l=s);s\u003Cl&&(l=s),a+=o,l+=o}else{for(s=o+1;l\u003Cs&&r(t,e[n+o-l])\u003C=0;)(l=1+((a=l)\u003C\u003C1))\u003C=0&&(l=s);var u=a,a=o-(l=s\u003Cl?s:l),l=o-u}for(a++;a\u003Cl;){var h=a+(l-a>>>1);0\u003Cr(t,e[n+h])?a=h+1:l=h}return l}function He(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])\u003C0){for(s=o+1;l\u003Cs&&r(t,e[n+o-l])\u003C0;)(l=1+((a=l)\u003C\u003C1))\u003C=0&&(l=s);var u=a,a=o-(l=s\u003Cl?s:l),l=o-u}else{for(s=i-o;l\u003Cs&&0\u003C=r(t,e[n+o+l]);)(l=1+((a=l)\u003C\u003C1))\u003C=0&&(l=s);s\u003Cl&&(l=s),a+=o,l+=o}for(a++;a\u003Cl;){var h=a+(l-a>>>1);r(t,e[n+h])\u003C0?l=h:a=h+1}return l}function Ye(t,e,n,i){var f,g,a,s,y,l,m,o=(i=i||t.length)-(n=n||0);if(!(o\u003C2)){var r=0;if(o\u003C32)Ge(t,n,i,n+(r=Fe(t,n,i,e)),e);else{g=e,y=7,l=0,(f=t).length,m=[],a=[],s=[];var u,h={mergeRuns:function(){for(;1\u003Cl;){var t=l-2;if(1\u003C=t&&s[t-1]\u003C=s[t]+s[t+1]||2\u003C=t&&s[t-2]\u003C=s[t]+s[t-1])s[t-1]\u003Cs[t+1]&&t--;else if(s[t]>s[t+1])break;p(t)}},forceMergeRuns:function(){for(;1\u003Cl;){var t=l-2;0\u003Ct&&s[t-1]\u003Cs[t+1]&&t--,p(t)}},pushRun:function(t,e){a[l]=t,s[l]=e,l+=1}},c=function(t){for(var e=0;32\u003C=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=Fe(t,n,i,e))\u003Cc&&(Ge(t,n,n+(u=c\u003C(u=o)?c:o),n+r,e),r=u),h.pushRun(n,r),h.mergeRuns(),n+=r,0!==(o-=r));h.forceMergeRuns()}}function p(t){var e=a[t],n=s[t],i=a[t+1],o=s[t+1],r=(s[t]=n+o,t===l-3&&(a[t+1]=a[t+2],s[t+1]=s[t+2]),l--,He(f[i],f,e,n,0,g));e+=r,0!=(n-=r)&&0!==(o=We(f[e+n-1],f,i,o,o-1,g))&&(n\u003C=o?function(t,e,n,i){for(var o=0,o=0;o\u003Ce;o++)m[o]=f[t+o];var r=0,a=n,s=t;if(f[s++]=f[a++],0==--i)for(o=0;o\u003Ce;o++)f[s+o]=m[r+o];else{if(1===e){for(o=0;o\u003Ci;o++)f[s+o]=f[a+o];return f[s+i]=m[r]}for(var l,u,h,c=y;;){u=l=0,h=!1;do{if(g(f[a],m[r])\u003C0){if(f[s++]=f[a++],u++,(l=0)==--i){h=!0;break}}else if(f[s++]=m[r++],l++,u=0,1==--e){h=!0;break}}while((l|u)\u003Cc);if(h)break;do{if(0!==(l=He(f[a],m,r,e,0,g))){for(o=0;o\u003Cl;o++)f[s+o]=m[r+o];if(s+=l,r+=l,(e-=l)\u003C=1){h=!0;break}}if(f[s++]=f[a++],0==--i){h=!0;break}if(0!==(u=We(m[r],f,a,i,0,g))){for(o=0;o\u003Cu;o++)f[s+o]=f[a+o];if(s+=u,a+=u,0==(i-=u)){h=!0;break}}if(f[s++]=m[r++],1==--e){h=!0;break}}while(c--,7\u003C=l||7\u003C=u);if(h)break;c\u003C0&&(c=0),c+=2}if((y=c)\u003C1&&(y=1),1===e){for(o=0;o\u003Ci;o++)f[s+o]=f[a+o];f[s+i]=m[r]}else{if(0===e)throw new Error;for(o=0;o\u003Ce;o++)f[s+o]=m[r+o]}}}:function(t,e,n,i){for(var o=0,o=0;o\u003Ci;o++)m[o]=f[n+o];var r=t+e-1,a=i-1,s=n+i-1,l=0,u=0;if(f[s--]=f[r--],0==--e)for(l=s-(i-1),o=0;o\u003Ci;o++)f[l+o]=m[o];else{if(1===i){for(u=1+(s-=e),l=1+(r-=e),o=e-1;0\u003C=o;o--)f[u+o]=f[l+o];return f[s]=m[a]}for(var h=y;;){var c=0,p=0,d=!1;do{if(g(m[a],f[r])\u003C0){if(f[s--]=f[r--],c++,(p=0)==--e){d=!0;break}}else if(f[s--]=m[a--],p++,c=0,1==--i){d=!0;break}}while((c|p)\u003Ch);if(d)break;do{if(0!=(c=e-He(m[a],f,t,e,e-1,g))){for(e-=c,u=1+(s-=c),l=1+(r-=c),o=c-1;0\u003C=o;o--)f[u+o]=f[l+o];if(0===e){d=!0;break}}if(f[s--]=m[a--],1==--i){d=!0;break}if(0!=(p=i-We(f[r],m,0,i,i-1,g))){for(i-=p,u=1+(s-=p),l=1+(a-=p),o=0;o\u003Cp;o++)f[u+o]=m[l+o];if(i\u003C=1){d=!0;break}}if(f[s--]=f[r--],0==--e){d=!0;break}}while(h--,7\u003C=c||7\u003C=p);if(d)break;h\u003C0&&(h=0),h+=2}if((y=h)\u003C1&&(y=1),1===i){for(u=1+(s-=e),l=1+(r-=e),o=e-1;0\u003C=o;o--)f[u+o]=f[l+o];f[s]=m[a]}else{if(0===i)throw new Error;for(l=s-(i-1),o=0;o\u003Ci;o++)f[l+o]=m[o]}}})(e,n,i,o)}}lt([\\\"click\\\",\\\"mousedown\\\",\\\"mouseup\\\",\\\"mousewheel\\\",\\\"dblclick\\\",\\\"contextmenu\\\"],function(a){Ee.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=Be(this,i,o);if(\\\"mouseup\\\"===a&&r||(n=(e=this.findHover(i,o)).target),\\\"mousedown\\\"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if(\\\"mouseup\\\"===a)this._upEl=n;else if(\\\"click\\\"===a){if(this._downEl!==this._upEl||!this._downPoint||4\u003C$t(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var Ue=!1;function Xe(){Ue||(Ue=!0,console.warn(\\\"z / z2 / zlevel of displayable is invalid, which may cause unexpected errors\\\"))}function Ze(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}sn.prototype.traverse=function(t,e){for(var n=0;n\u003Cthis._roots.length;n++)this._roots[n].traverse(t,e)},sn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},sn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i\u003Co;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Ye(n,Ze)},sn.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s\u003Ca.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{i=t;e&&e.length?i.__clipPaths=e:i.__clipPaths&&0\u003Ci.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Xe(),i.z=0),isNaN(i.z2)&&(Xe(),i.z2=0),isNaN(i.zlevel)&&(Xe(),i.zlevel=0),this._displayList[this._displayListLen++]=i}i=t.getDecalElement&&t.getDecalElement(),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextGuideLine()),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,e,n)}},sn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},sn.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e\u003Cn;e++)this.delRoot(t[e]);else{var i=G(this._roots,t);0\u003C=i&&this._roots.splice(i,1)}},sn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},sn.prototype.getRoots=function(){return this._roots},sn.prototype.dispose=function(){this._displayList=null,this._roots=null};var je=sn,qe=S.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ke={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)\u003C1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)\u003C1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)\u003C1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)\u003C1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)\u003C1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)\u003C1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n\u003C1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n\u003C1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n\u003C1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)\u003C1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)\u003C1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-Ke.bounceOut(1-t)},bounceOut:function(t){return t\u003C1/2.75?7.5625*t*t:t\u003C2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t\u003C2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t\u003C.5?.5*Ke.bounceIn(2*t):.5*Ke.bounceOut(2*t-1)+.5}},$e=Math.pow,Je=Math.sqrt,Qe=1e-8,tn=1e-4,en=Je(3),nn=1/3,on=Bt(),rn=Bt(),an=Bt();function sn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ze}function ln(t){return-1e-8\u003Ct&&t\u003CQe}function un(t){return Qe\u003Ct||t\u003C-1e-8}function hn(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function cn(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function pn(t,e,n,i,o,r){var a,s,l=i+3*(e-n)-t,u=3*(n-2*e+t),h=3*(e-t),c=t-o,p=u*u-3*l*h,d=u*h-9*l*c,c=h*h-3*u*c,f=0;return ln(p)&&ln(d)?ln(u)?r[0]=0:0\u003C=(s=-h/u)&&s\u003C=1&&(r[f++]=s):ln(h=d*d-4*p*c)?(a=-(c=d/p)/2,0\u003C=(s=-u/l+c)&&s\u003C=1&&(r[f++]=s),0\u003C=a&&a\u003C=1&&(r[f++]=a)):0\u003Ch?(h=p*u+1.5*l*(-d-(c=Je(h))),0\u003C=(s=(-u-((c=(c=p*u+1.5*l*(-d+c))\u003C0?-$e(-c,nn):$e(c,nn))+(h=h\u003C0?-$e(-h,nn):$e(h,nn))))/(3*l))&&s\u003C=1&&(r[f++]=s)):(c=(2*p*u-3*l*d)/(2*Je(p*p*p)),h=Math.acos(c)/3,s=(-u-2*(d=Je(p))*(c=Math.cos(h)))/(3*l),a=(-u+d*(c+en*Math.sin(h)))/(3*l),p=(-u+d*(c-en*Math.sin(h)))/(3*l),0\u003C=s&&s\u003C=1&&(r[f++]=s),0\u003C=a&&a\u003C=1&&(r[f++]=a),0\u003C=p&&p\u003C=1&&(r[f++]=p)),f}function dn(t,e,n,i,o){var r,a,s=6*n-12*e+6*t,l=9*e+3*i-3*t-9*n,u=3*e-3*t,h=0;return ln(l)?un(s)&&0\u003C=(r=-u/s)&&r\u003C=1&&(o[h++]=r):ln(u=s*s-4*l*u)?o[0]=-s/(2*l):0\u003Cu&&(a=(-s-(u=Je(u)))/(2*l),0\u003C=(r=(-s+u)/(2*l))&&r\u003C=1&&(o[h++]=r),0\u003C=a)&&a\u003C=1&&(o[h++]=a),h}function fn(t,e,n,i,o,r){var a=(e-t)*o+t,s=(n-e)*o+e,l=(i-n)*o+n,u=(s-a)*o+a,s=(l-s)*o+s,h=(s-u)*o+u;r[0]=t,r[1]=a,r[2]=u,r[3]=h,r[4]=h,r[5]=s,r[6]=l,r[7]=i}function gn(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;on[0]=l,on[1]=u;for(var m=0;m\u003C1;m+=.05)rn[0]=hn(t,n,o,a,m),rn[1]=hn(e,i,r,s,m),(d=Qt(on,rn))\u003Cy&&(c=m,y=d);for(var y=1/0,v=0;v\u003C32&&!(g\u003Ctn);v++)p=c+g,rn[0]=hn(t,n,o,a,f=c-g),rn[1]=hn(e,i,r,s,f),d=Qt(rn,on),0\u003C=f&&d\u003Cy?(c=f,y=d):(an[0]=hn(t,n,o,a,p),an[1]=hn(e,i,r,s,p),f=Qt(an,on),p\u003C=1&&f\u003Cy?(c=p,y=f):g*=.5);return h&&(h[0]=hn(t,n,o,a,c),h[1]=hn(e,i,r,s,c)),Je(y)}function yn(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function mn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function vn(t,e,n){var i=t+n-2*e;return 0==i?.5:(t-e)/i}function xn(t,e,n,i,o){var r=(e-t)*i+t,a=(n-e)*i+e,s=(a-r)*i+r;o[0]=t,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=n}function _n(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;on[0]=a,on[1]=s;for(var p=0;p\u003C1;p+=.05)rn[0]=yn(t,n,o,p),rn[1]=yn(e,i,r,p),(y=Qt(on,rn))\u003Cc&&(u=p,c=y);for(var c=1/0,d=0;d\u003C32&&!(h\u003Ctn);d++){var f=u-h,g=u+h,y=(rn[0]=yn(t,n,o,f),rn[1]=yn(e,i,r,f),Qt(rn,on));0\u003C=f&&y\u003Cc?(u=f,c=y):(an[0]=yn(t,n,o,g),an[1]=yn(e,i,r,g),f=Qt(an,on),g\u003C=1&&f\u003Cc?(u=g,c=f):h*=.5)}return l&&(l[0]=yn(t,n,o,u),l[1]=yn(e,i,r,u)),Je(c)}var bn=/cubic-bezier\\\\(([0-9,\\\\.e ]+)\\\\)/;function wn(t){var e=t&&bn.exec(t);if(e){var n,e=e[1].split(\\\",\\\"),i=+Ct(e[0]),o=+Ct(e[1]),r=+Ct(e[2]),a=+Ct(e[3]);if(!isNaN(i+o+r+a))return n=[],function(t){return t\u003C=0?0:1\u003C=t?1:pn(0,i,r,1,t,n)&&hn(0,o,a,1,n[0])}}}kn.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n,r=(o\u003C0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},kn.prototype.pause=function(){this._paused=!0},kn.prototype.resume=function(){this._paused=!1},kn.prototype.setEasing=function(t){this.easing=t,this.easingFunc=A(t)?t:Ke[t]||wn(t)};var Sn=kn,Mn=function(t){this.value=t},In=(An.prototype.insert=function(t){var e=new Mn(t);return this.insertEntry(e),e},An.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},An.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},An.prototype.len=function(){return this._len},An.prototype.clear=function(){this.head=this.tail=null,this._len=0},An),Tn=(Dn.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0\u003Ci&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new Mn(e),n.key=t,o.insertEntry(n),r[t]=n),a},Dn.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},Dn.prototype.clear=function(){this._list.clear(),this._map={}},Dn.prototype.len=function(){return this._list.len()},Dn),Cn={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 Dn(t){this._list=new In,this._maxSize=10,this._map={},this._maxSize=t}function An(){this._len=0}function kn(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Et,this.ondestroy=t.ondestroy||Et,this.onrestart=t.onrestart||Et,t.easing&&this.setEasing(t.easing)}function Ln(t){return(t=Math.round(t))\u003C0?0:255\u003Ct?255:t}function Pn(t){return t\u003C0?0:1\u003Ct?1:t}function On(t){var e=t;return e.length&&\\\"%\\\"===e.charAt(e.length-1)?Ln(parseFloat(e)/100*255):Ln(parseInt(e,10))}function Rn(t){var e=t;return e.length&&\\\"%\\\"===e.charAt(e.length-1)?Pn(parseFloat(e)/100):Pn(parseFloat(e))}function Nn(t,e,n){return n\u003C0?n+=1:1\u003Cn&&--n,6*n\u003C1?t+(e-t)*n*6:2*n\u003C1?e:3*n\u003C2?t+(e-t)*(2/3-n)*6:t}function En(t,e,n){return t+(e-t)*n}function zn(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function Vn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Bn=new Tn(20),Fn=null;function Gn(t,e){Fn&&Vn(Fn,e),Fn=Bn.put(t,Fn||e.slice())}function Wn(t,e){if(t){e=e||[];var n=Bn.get(t);if(n)return Vn(e,n);n=(t+=\\\"\\\").replace(/ /g,\\\"\\\").toLowerCase();if(n in Cn)return Vn(e,Cn[n]),Gn(t,e),e;var i=n.length;if(\\\"#\\\"===n.charAt(0))return 4===i||5===i?0\u003C=(o=parseInt(n.slice(1,4),16))&&o\u003C=4095?(zn(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)\u003C\u003C4,5===i?parseInt(n.slice(4),16)/15:1),Gn(t,e),e):void zn(e,0,0,0,1):7===i||9===i?0\u003C=(o=parseInt(n.slice(1,7),16))&&o\u003C=16777215?(zn(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),Gn(t,e),e):void zn(e,0,0,0,1):void 0;var o=n.indexOf(\\\"(\\\"),r=n.indexOf(\\\")\\\");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(\\\",\\\"),s=1;switch(i){case\\\"rgba\\\":if(4!==a.length)return 3===a.length?zn(e,+a[0],+a[1],+a[2],1):zn(e,0,0,0,1);s=Rn(a.pop());case\\\"rgb\\\":return 3!==a.length?void zn(e,0,0,0,1):(zn(e,On(a[0]),On(a[1]),On(a[2]),s),Gn(t,e),e);case\\\"hsla\\\":return 4!==a.length?void zn(e,0,0,0,1):(a[3]=Rn(a[3]),Hn(a,e),Gn(t,e),e);case\\\"hsl\\\":return 3!==a.length?void zn(e,0,0,0,1):(Hn(a,e),Gn(t,e),e);default:return}}zn(e,0,0,0,1)}}function Hn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Rn(t[1]),o=Rn(t[2]),i=o\u003C=.5?o*(i+1):o+i-o*i,o=2*o-i;return zn(e=e||[],Ln(255*Nn(o,i,n+1/3)),Ln(255*Nn(o,i,n)),Ln(255*Nn(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Yn(t,e){var n=Wn(t);if(n){for(var i=0;i\u003C3;i++)n[i]=e\u003C0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255\u003Cn[i]?n[i]=255:n[i]\u003C0&&(n[i]=0);return qn(n,4===n.length?\\\"rgba\\\":\\\"rgb\\\")}}function Un(t,e,n){var i,o,r,a;if(e&&e.length&&0\u003C=t&&t\u003C=1)return n=n||[],a=t*(e.length-1),i=Math.floor(a),r=Math.ceil(a),o=e[i],r=e[r],n[0]=Ln(En(o[0],r[0],a=a-i)),n[1]=Ln(En(o[1],r[1],a)),n[2]=Ln(En(o[2],r[2],a)),n[3]=Pn(En(o[3],r[3],a)),n}function Xn(t,e,n){var i,o,r,a,s,l;if(e&&e.length&&0\u003C=t&&t\u003C=1)return i=t*(e.length-1),o=Math.floor(i),r=Math.ceil(i),l=Wn(e[o]),a=Wn(e[r]),l=qn([Ln(En(l[0],a[0],s=i-o)),Ln(En(l[1],a[1],s)),Ln(En(l[2],a[2],s)),Pn(En(l[3],a[3],s))],\\\"rgba\\\"),n?{color:l,leftIndex:o,rightIndex:r,value:i}:l}function Zn(t,e,n,i){var o=Wn(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,u,h;if(t)return h=t[0]/255,n=t[1]/255,i=t[2]/255,s=Math.min(h,n,i),r=((o=Math.max(h,n,i))+s)/2,0==(u=o-s)?a=e=0:(a=r\u003C.5?u/(o+s):u/(2-o-s),s=((o-h)/6+u/2)/u,l=((o-n)/6+u/2)/u,u=((o-i)/6+u/2)/u,h===o?e=u-l:n===o?e=1/3+s-u:i===o&&(e=2/3+l-s),e\u003C0&&(e+=1),1\u003Ce&&--e),h=[360*e,a,r],null!=t[3]&&h.push(t[3]),h}(o),null!=e&&(o[0]=(t=Math.round(e))\u003C0?0:360\u003Ct?360:t),null!=n&&(o[1]=Rn(n)),null!=i&&(o[2]=Rn(i)),qn(Hn(o),\\\"rgba\\\")}function jn(t,e){var n=Wn(t);if(n&&null!=e)return n[3]=Pn(e),qn(n,\\\"rgba\\\")}function qn(t,e){var n;if(t&&t.length)return n=t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2],\\\"rgba\\\"!==e&&\\\"hsva\\\"!==e&&\\\"hsla\\\"!==e||(n+=\\\",\\\"+t[3]),e+\\\"(\\\"+n+\\\")\\\"}function Kn(t,e){var n=Wn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var $n=Object.freeze({__proto__:null,parse:Wn,lift:Yn,toHex:function(t){var e=Wn(t);if(e)return((1\u003C\u003C24)+(e[0]\u003C\u003C16)+(e[1]\u003C\u003C8)+ +e[2]).toString(16).slice(1)},fastLerp:Un,fastMapToColor:Un,lerp:Xn,mapToColor:Xn,modifyHSL:Zn,modifyAlpha:jn,stringify:qn,lum:Kn,random:function(){return qn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],\\\"rgb\\\")}}),Jn=Math.round;function Qn(t){var e,n;return t&&\\\"transparent\\\"!==t?\\\"string\\\"==typeof t&&-1\u003Ct.indexOf(\\\"rgba\\\")&&(n=Wn(t))&&(t=\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\",e=n[3]):t=\\\"none\\\",{color:t,opacity:null==e?1:e}}var ti=1e-4;function ei(t){return t\u003Cti&&-1e-4\u003Ct}function ni(t){return Jn(1e3*t)/1e3}function ii(t){return Jn(1e4*t)/1e4}var oi={left:\\\"start\\\",right:\\\"end\\\",center:\\\"middle\\\",middle:\\\"middle\\\"};function ri(t){return t&&!!t.image}function ai(t){return\\\"linear\\\"===t.type}function si(t){return\\\"radial\\\"===t.type}function li(t){return\\\"url(#\\\"+t+\\\")\\\"}function ui(t){var e=t.getGlobalScale(),e=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function hi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*zt,o=P(t.scaleX,1),r=P(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push(\\\"translate(\\\"+e+\\\"px,\\\"+n+\\\"px)\\\"),i&&l.push(\\\"rotate(\\\"+i+\\\")\\\"),1===o&&1===r||l.push(\\\"scale(\\\"+o+\\\",\\\"+r+\\\")\\\"),(a||s)&&l.push(\\\"skew(\\\"+Jn(a*zt)+\\\"deg, \\\"+Jn(s*zt)+\\\"deg)\\\"),l.join(\\\" \\\")}var ci=S.hasGlobalWindow&&A(window.btoa)?function(t){return window.btoa(unescape(t))}:\\\"undefined\\\"!=typeof Buffer?function(t){return Buffer.from(t).toString(\\\"base64\\\")}:function(t){return null},pi=Array.prototype.slice;function di(t,e,n){return(e-t)*n+t}function fi(t,e,n,i){for(var o=e.length,r=0;r\u003Co;r++)t[r]=di(e[r],n[r],i);return t}function gi(t,e,n,i){for(var o=e.length,r=0;r\u003Co;r++)t[r]=e[r]+n[r]*i;return t}function yi(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a\u003Co;a++){t[a]||(t[a]=[]);for(var s=0;s\u003Cr;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function mi(t){if(ht(t)){var e=t.length;if(ht(t[0])){for(var n=[],i=0;i\u003Ce;i++)n.push(pi.call(t[i]));return n}return pi.call(t)}return t}function vi(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],\\\"rgba(\\\"+t.join(\\\",\\\")+\\\")\\\"}function xi(t){return 4===t||5===t}function _i(t){return 1===t||2===t}var bi=[0,0,0,0],wi=(Ii.prototype.isFinished=function(){return this._finished},Ii.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Ii.prototype.needsAnimate=function(){return 1\u003C=this.keyframes.length},Ii.prototype.getAdditiveTrack=function(){return this._additiveTrack},Ii.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,o=i.length,r=!1,a=6,s=e,l=(ht(e)?(1==(a=l=ht(e&&e[0])?2:1)&&!j(e[0])||2==l&&!j(e[0][0]))&&(r=!0):j(e)&&!bt(e)?a=0:X(e)?isNaN(+e)?(l=Wn(e))&&(s=l,a=3):a=0:vt(e)&&((l=Z({},s)).colorStops=Y(e.colorStops,function(t){return{offset:t.offset,color:Wn(t.color)}}),ai(e)?a=4:si(e)&&(a=5),s=l),0===o?this.valType=a:a===this.valType&&6!==a||(r=!0),this.discrete=this.discrete||r,{time:t,value:s,rawValue:e,percent:0});return n&&(l.easing=n,l.easingFunc=A(n)?n:Ke[n]||wn(n)),i.push(l),l},Ii.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,o=n.length,r=n[o-1],a=this.discrete,s=_i(i),l=xi(i),u=0;u\u003Co;u++){var h=n[u],c=h.value,p=r.value;if(h.percent=h.time/t,!a)if(s&&u!==o-1){d=void 0;f=void 0;g=void 0;y=void 0;m=void 0;h=void 0;v=void 0;x=void 0;_=void 0;b=void 0;var d=c;var f=p;var g=i;var y=d,m=f;if(y.push&&m.push){var h=y.length,v=m.length;if(h!==v)if(v\u003Ch)y.length=v;else for(var x=h;x\u003Cv;x++)y.push(1===g?m[x]:pi.call(m[x]));for(var _=y[0]&&y[0].length,x=0;x\u003Cy.length;x++)if(1===g)isNaN(y[x])&&(y[x]=m[x]);else for(var b=0;b\u003C_;b++)isNaN(y[x][b])&&(y[x][b]=m[x][b])}}else if(l){d=void 0;f=void 0;w=void 0;S=void 0;M=void 0;h=void 0;I=void 0;T=void 0;d=c.colorStops;f=p.colorStops;for(var w=d.length,S=f.length,M=S\u003Cw?f:d,h=Math.min(w,S),I=M[h-1]||{color:[0,0,0,0],offset:0},T=h;T\u003CMath.max(w,S);T++)M.push({offset:I.offset,color:I.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var C=n[0].value,u=0;u\u003Co;u++)0===i?n[u].additiveValue=n[u].value-C:3===i?n[u].additiveValue=gi([],n[u].value,C,-1):_i(i)&&(n[u].additiveValue=(1===i?gi:yi)([],n[u].value,C,-1))}},Ii.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r,a,s=null!=this._additiveTrack,l=s?\\\"additiveValue\\\":\\\"value\\\",u=this.valType,h=this.keyframes,c=h.length,p=this.propName,d=3===u,f=this._lastFr,g=Math.min;if(1===c)i=o=h[0];else{if(e\u003C0)n=0;else if(e\u003Cthis._lastFrP){for(n=g(f+1,c-1);0\u003C=n&&!(h[n].percent\u003C=e);n--);n=g(n,c-2)}else{for(n=f;n\u003Cc&&!(h[n].percent>e);n++);n=g(n-1,c-2)}o=h[n+1],i=h[n]}i&&o&&(this._lastFr=n,this._lastFrP=e,f=o.percent-i.percent,r=0==f?1:g((e-i.percent)/f,1),o.easingFunc&&(r=o.easingFunc(r)),f=s?this._additiveValue:d?bi:t[p],(_i(u)||d)&&(f=f||(this._additiveValue=[])),this.discrete?t[p]=(r\u003C1?i:o).rawValue:_i(u)?(1===u?fi:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a\u003Co;a++){t[a]||(t[a]=[]);for(var s=0;s\u003Cr;s++)t[a][s]=di(e[a][s],n[a][s],i)}})(f,i[l],o[l],r):xi(u)?(g=i[l],a=o[l],t[p]={type:(u=4===u)?\\\"linear\\\":\\\"radial\\\",x:di(g.x,a.x,r),y:di(g.y,a.y,r),colorStops:Y(g.colorStops,function(t,e){var n=a.colorStops[e];return{offset:di(t.offset,n.offset,r),color:vi(fi([],t.color,n.color,r))}}),global:a.global},u?(t[p].x2=di(g.x2,a.x2,r),t[p].y2=di(g.y2,a.y2,r)):t[p].r=di(g.r,a.r,r)):d?(fi(f,i[l],o[l],r),s||(t[p]=vi(f))):(u=di(i[l],o[l],r),s?this._additiveValue=u:t[p]=u),s)&&this._addToTarget(t)}},Ii.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(Wn(t[n],bi),gi(bi,bi,i,1),t[n]=vi(bi)):1===e?gi(t[n],t[n],i,1):2===e&&yi(t[n],t[n],i,1)},Ii),Si=(Mi.prototype.getMaxTime=function(){return this._maxTime},Mi.prototype.getDelay=function(){return this._delay},Mi.prototype.getLoop=function(){return this._loop},Mi.prototype.getTarget=function(){return this._target},Mi.prototype.changeTarget=function(t){this._target=t},Mi.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,W(e),n)},Mi.prototype.whenWithKeys=function(t,e,n,i){for(var o=this._tracks,r=0;r\u003Cn.length;r++){var a=n[r];if(!(l=o[a])){var s,l=o[a]=new wi(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&vi(u))):u=this._target[a],null==u)continue;0\u003Ct&&l.addKeyframe(0,mi(u),i),this._trackKeys.push(a)}l.addKeyframe(t,mi(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},Mi.prototype.pause=function(){this._clip.pause(),this._paused=!0},Mi.prototype.resume=function(){this._clip.resume(),this._paused=!1},Mi.prototype.isPaused=function(){return!!this._paused},Mi.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Mi.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n\u003Ce;n++)t[n].call(this)},Mi.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n\u003Ce.length;n++)e[n].call(this)},Mi.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n\u003Ce.length;n++)t[e[n]].setFinished()},Mi.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i\u003Cn.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},Mi.prototype.start=function(t){if(!(0\u003Cthis._started)){this._started=1;for(var e,r=this,a=[],n=this._maxTime||0,i=0;i\u003Cthis._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],o=this._getAdditiveTrack(o),l=s.keyframes,u=l.length;s.prepare(n,o),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((o=l[u-1])&&(r._target[s.propName]=o.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new Sn({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var n=!1,i=0;i\u003Ce.length;i++)if(e[i]._clip){n=!0;break}n||(r._additiveAnimators=null)}for(i=0;i\u003Ca.length;i++)a[i].step(r._target,t);var o=r._onframeCbs;if(o)for(i=0;i\u003Co.length;i++)o[i](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Mi.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Mi.prototype.delay=function(t){return this._delay=t,this},Mi.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Mi.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Mi.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Mi.prototype.getClip=function(){return this._clip},Mi.prototype.getTrack=function(t){return this._tracks[t]},Mi.prototype.getTracks=function(){var e=this;return Y(this._trackKeys,function(t){return e._tracks[t]})},Mi.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o\u003Ct.length;o++){var r=n[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o\u003Ci.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Mi.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i\u003Ce.length;i++){var o=e[i],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[n?0:r.length-1])&&(t[o]=mi(r.rawValue))}}},Mi.prototype.__changeFinalValue=function(t,e){e=e||W(t);for(var n=0;n\u003Ce.length;n++){var i,o=e[n],r=this._tracks[o];r&&1\u003C(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}},Mi);function Mi(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?ot(\\\"Can' use additive animation on looped animation.\\\"):(this._additiveAnimators=i,this._allowDiscrete=n)}function Ii(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function Ti(){return(new Date).getTime()}u(Ni,Di=se),Ni.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Ni.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},Ni.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},Ni.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ni.prototype.update=function(t){for(var e=Ti()-this._pausedTime,n=e-this._time,i=this._head;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.trigger(\\\"frame\\\",n),this.stage.update&&this.stage.update())},Ni.prototype._startLoop=function(){var t=this;this._running=!0,qe(function Ni(){t._running&&(qe(Ni),!t._paused)&&t.update()})},Ni.prototype.start=function(){this._running||(this._time=Ti(),this._pausedTime=0,this._startLoop())},Ni.prototype.stop=function(){this._running=!1},Ni.prototype.pause=function(){this._paused||(this._pauseStart=Ti(),this._paused=!0)},Ni.prototype.resume=function(){this._paused&&(this._pausedTime+=Ti()-this._pauseStart,this._paused=!1)},Ni.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},Ni.prototype.isFinished=function(){return null==this._head},Ni.prototype.animate=function(t,e){e=e||{},this.start();var n=new Si(t,e.loop);return this.addAnimator(n),n};var Ci,Di,Ai=Ni,ki=S.domSupported,Li=(Ci={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:qi=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"wheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],touch:[\\\"touchstart\\\",\\\"touchend\\\",\\\"touchmove\\\"],pointer:Y(qi,function(t){var e=t.replace(\\\"mouse\\\",\\\"pointer\\\");return Ci.hasOwnProperty(e)?e:t})}),Pi=[\\\"mousemove\\\",\\\"mouseup\\\"],Oi=[\\\"pointermove\\\",\\\"pointerup\\\"],Ri=!1;function Ni(t){var e=Di.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}function Ei(t){var e=t.pointerType;return\\\"pen\\\"===e||\\\"touch\\\"===e}function zi(t){t&&(t.zrByTouch=!0)}function Vi(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Bi=function(t,e){this.stopPropagation=Et,this.stopImmediatePropagation=Et,this.preventDefault=Et,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Fi={mousedown:function(t){t=we(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger(\\\"mousedown\\\",t)},mousemove:function(t){t=we(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger(\\\"mousemove\\\",t)},mouseup:function(t){t=we(this.dom,t),this.__togglePointerCapture(!1),this.trigger(\\\"mouseup\\\",t)},mouseout:function(t){Vi(this,(t=we(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl=\\\"no_globalout\\\"),this.trigger(\\\"mouseout\\\",t))},wheel:function(t){Ri=!0,t=we(this.dom,t),this.trigger(\\\"mousewheel\\\",t)},mousewheel:function(t){Ri||(t=we(this.dom,t),this.trigger(\\\"mousewheel\\\",t))},touchstart:function(t){zi(t=we(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,\\\"start\\\"),Fi.mousemove.call(this,t),Fi.mousedown.call(this,t)},touchmove:function(t){zi(t=we(this.dom,t)),this.handler.processGesture(t,\\\"change\\\"),Fi.mousemove.call(this,t)},touchend:function(t){zi(t=we(this.dom,t)),this.handler.processGesture(t,\\\"end\\\"),Fi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment\u003C300&&Fi.click.call(this,t)},pointerdown:function(t){Fi.mousedown.call(this,t)},pointermove:function(t){Ei(t)||Fi.mousemove.call(this,t)},pointerup:function(t){Fi.mouseup.call(this,t)},pointerout:function(t){Ei(t)||Fi.mouseout.call(this,t)}},Gi=(lt([\\\"click\\\",\\\"dblclick\\\",\\\"contextmenu\\\"],function(e){Fi[e]=function(t){t=we(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){Ei(t)||Gi.mousemove.call(this,t)},pointerup:function(t){Gi.mouseup.call(this,t)},mousemove:function(t){this.trigger(\\\"mousemove\\\",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(\\\"mouseup\\\",t),e&&(t.zrEventControl=\\\"only_globalout\\\",this.trigger(\\\"mouseout\\\",t))}});function Wi(i,o){var r=o.domHandlers;S.pointerEventsSupported?lt(Li.pointer,function(e){Yi(o,e,function(t){r[e].call(i,t)})}):(S.touchEventsSupported&<(Li.touch,function(n){Yi(o,n,function(t){var e;r[n].call(i,t),(e=o).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),lt(Li.mouse,function(e){Yi(o,e,function(t){t=be(t),o.touching||r[e].call(i,t)})}))}function Hi(i,o){function t(n){Yi(o,n,function(t){var e;t=be(t),Vi(i,t.target)||(e=t,t=we(i.dom,new Bi(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}S.pointerEventsSupported?lt(Oi,t):S.touchEventsSupported||lt(Pi,t)}function Yi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Se(t.domTarget,e,n,i)}function Ui(t){var e,n,i,o,r,a=t.mounted;for(r in a)a.hasOwnProperty(r)&&(e=t.domTarget,n=r,i=a[r],o=t.listenerOpts[r],e.removeEventListener(n,i,o));t.mounted={}}var Xi,Zi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},ji=(u(Ki,Xi=se),Ki.prototype.dispose=function(){Ui(this._localHandlerScope),ki&&Ui(this._globalHandlerScope)},Ki.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||\\\"default\\\")},Ki.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,ki&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Hi(this,e):Ui(e))},Ki),qi=1;function Ki(t,e){var n=Xi.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Zi(t,Fi),ki&&(n._globalHandlerScope=new Zi(document,Gi)),Wi(n,n._localHandlerScope),n}var $i=qi=S.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):qi,Ji=\\\"#333\\\",Qi=\\\"#ccc\\\";function to(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function eo(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function no(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=l,t}function io(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function oo(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=o*h+s*u,t[3]=-o*u+h*s,t[4]=h*r+u*l,t[5]=h*l-u*r,t}function ro(t,e,n){var i=n[0],o=n[1];return t[0]=e[0]*i,t[1]=e[1]*o,t[2]=e[2]*i,t[3]=e[3]*o,t[4]=e[4]*i,t[5]=e[5]*o,t}function ao(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=n*a-r*i;return l?(t[0]=a*(l=1/l),t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*o)*l,t[5]=(r*o-n*s)*l,t):null}function so(t){var e=[1,0,0,1,0,0];return eo(e,t),e}var qi=Object.freeze({__proto__:null,create:function(){return[1,0,0,1,0,0]},identity:to,copy:eo,mul:no,translate:io,rotate:oo,scale:ro,invert:ao,clone:so}),lo=to;function uo(t){return 5e-5\u003Ct||t\u003C-5e-5}var ho=[],co=[],po=[1,0,0,1,0,0],fo=Math.abs,go=(mo.prototype.getLocalTransform=function(t){return mo.getLocalTransform(this,t)},mo.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},mo.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},mo.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},mo.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},mo.prototype.needLocalTransform=function(){return uo(this.rotation)||uo(this.x)||uo(this.y)||uo(this.scaleX-1)||uo(this.scaleY-1)||uo(this.skewX)||uo(this.skewY)},mo.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):lo(n),t&&(e?no(n,t,n):eo(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&lo(n)},mo.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(ho),n=((ho[1]-(n=ho[1]\u003C0?-1:1))*i+n)/ho[1]||0,t[0]*=i=((ho[0]-(e=ho[0]\u003C0?-1:1))*i+e)/ho[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||[1,0,0,1,0,0],ao(this.invTransform,t)},mo.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},mo.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},mo.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(no(co,e.invTransform,t),t=co),e=this.originX,n=this.originY,(e||n)&&(po[4]=e,po[5]=n,no(co,t,po),co[4]-=e,co[5]-=n,t=co),this.setLocalTransform(t))},mo.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]\u003C0&&(t[0]=-t[0]),e[3]\u003C0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},mo.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&ee(n,n,i),n},mo.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ee(n,n,i),n},mo.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10\u003Cfo(t[0]-1)&&1e-10\u003Cfo(t[3]-1)?Math.sqrt(fo(t[0]*t[3]-t[2]*t[1])):1},mo.prototype.copyTransform=function(t){vo(this,t)},mo.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*o-c*(s=i+s)*r,e[5]=-s*r-p*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=p*o,e[2]=c*r,l&&oo(e,e,l),e[4]+=n+u,e[5]+=i+h,e},mo.initDefaultProps=((e=mo.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),mo),yo=[\\\"x\\\",\\\"y\\\",\\\"originX\\\",\\\"originY\\\",\\\"anchorX\\\",\\\"anchorY\\\",\\\"rotation\\\",\\\"scaleX\\\",\\\"scaleY\\\",\\\"skewX\\\",\\\"skewY\\\"];function mo(){}function vo(t,e){for(var n=0;n\u003Cyo.length;n++){var i=yo[n];t[i]=e[i]}}Ao.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Ao.prototype.clone=function(){return new Ao(this.x,this.y)},Ao.prototype.set=function(t,e){return this.x=t,this.y=e,this},Ao.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Ao.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Ao.prototype.scale=function(t){this.x*=t,this.y*=t},Ao.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Ao.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Ao.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Ao.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Ao.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Ao.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Ao.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},Ao.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},Ao.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Ao.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Ao.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Ao.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Ao.set=function(t,e,n){t.x=e,t.y=n},Ao.copy=function(t,e){t.x=e.x,t.y=e.y},Ao.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Ao.lenSquare=function(t){return t.x*t.x+t.y*t.y},Ao.dot=function(t,e){return t.x*e.x+t.y*e.y},Ao.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Ao.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Ao.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Ao.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Ao.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y};var V=Ao,xo=Math.min,_o=Math.max,bo=new V,wo=new V,So=new V,Mo=new V,Io=new V,To=new V,B=(Do.prototype.union=function(t){var e=xo(t.x,this.x),n=xo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=_o(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=_o(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Do.prototype.applyTransform=function(t){Do.applyTransform(this,this,t)},Do.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=[1,0,0,1,0,0];return io(i,i,[-this.x,-this.y]),ro(i,i,[e,n]),io(i,i,[t.x,t.y]),i},Do.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Do||(t=Do.create(t));var n,i,o,r,a,s,l,u,h=this.x,c=this.x+this.width,p=this.y,d=this.y+this.height,f=t.x,g=t.x+t.width,y=t.y,m=t.y+t.height,v=!(c\u003Cf||g\u003Ch||d\u003Cy||m\u003Cp);return e&&(n=1/0,i=0,o=Math.abs(c-f),r=Math.abs(g-h),a=Math.abs(d-y),s=Math.abs(m-p),l=Math.min(o,r),u=Math.min(a,s),c\u003Cf||g\u003Ch?i\u003Cl&&(i=l,o\u003Cr?V.set(To,-o,0):V.set(To,r,0)):l\u003Cn&&(n=l,o\u003Cr?V.set(Io,o,0):V.set(Io,-r,0)),d\u003Cy||m\u003Cp?i\u003Cu&&(i=u,a\u003Cs?V.set(To,0,-a):V.set(To,0,s)):l\u003Cn&&(n=l,a\u003Cs?V.set(Io,0,a):V.set(Io,0,-s))),e&&V.copy(e,v?Io:To),v},Do.prototype.contain=function(t,e){return t>=this.x&&t\u003C=this.x+this.width&&e>=this.y&&e\u003C=this.y+this.height},Do.prototype.clone=function(){return new Do(this.x,this.y,this.width,this.height)},Do.prototype.copy=function(t){Do.copy(this,t)},Do.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Do.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Do.prototype.isZero=function(){return 0===this.width||0===this.height},Do.create=function(t){return new Do(t.x,t.y,t.width,t.height)},Do.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Do.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]\u003C1e-5&&-1e-5\u003Cn[1]&&n[2]\u003C1e-5&&-1e-5\u003Cn[2]?(i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width\u003C0&&(t.x+=t.width,t.width=-t.width),t.height\u003C0&&(t.y+=t.height,t.height=-t.height)):(bo.x=So.x=e.x,bo.y=Mo.y=e.y,wo.x=Mo.x=e.x+e.width,wo.y=So.y=e.y+e.height,bo.transform(n),Mo.transform(n),wo.transform(n),So.transform(n),t.x=xo(bo.x,wo.x,So.x,Mo.x),t.y=xo(bo.y,wo.y,So.y,Mo.y),r=_o(bo.x,wo.x,So.x,Mo.x),a=_o(bo.y,wo.y,So.y,Mo.y),t.width=r-t.x,t.height=a-t.y):t!==e&&Do.copy(t,e)},Do),Co={};function Do(t,e,n,i){n\u003C0&&(t+=n,n=-n),i\u003C0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}function Ao(t,e){this.x=t||0,this.y=e||0}function ko(t,e){var n=Co[e=e||tt],i=(n=n||(Co[e]=new Tn(500))).get(t);return null==i&&(i=J.measureText(t,e).width,n.put(t,i)),i}function Lo(t,e,n,i){var o=ko(t,e),r=No(e),a=Oo(0,o,n),s=Ro(0,r,i);return new B(a,s,o,r)}function Po(t,e,n,i){var o=((t||\\\"\\\")+\\\"\\\").split(\\\"\\\\n\\\");if(1===o.length)return Lo(o[0],e,n,i);for(var r=new B(0,0,0,0),a=0;a\u003Co.length;a++){var s=Lo(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function Oo(t,e,n){return\\\"right\\\"===n?t-=e:\\\"center\\\"===n&&(t-=e/2),t}function Ro(t,e,n){return\\\"middle\\\"===n?t-=e/2:\\\"bottom\\\"===n&&(t-=e),t}function No(t){return ko(\\\"国\\\",t)}function Eo(t,e){return\\\"string\\\"==typeof t?0\u003C=t.lastIndexOf(\\\"%\\\")?parseFloat(t)/100*e:parseFloat(t):t}function zo(t,e,n){var i=e.position||\\\"inside\\\",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,h=\\\"left\\\",c=\\\"top\\\";if(i instanceof Array)l+=Eo(i[0],n.width),u+=Eo(i[1],n.height),c=h=null;else switch(i){case\\\"left\\\":l-=o,u+=s,h=\\\"right\\\",c=\\\"middle\\\";break;case\\\"right\\\":l+=o+a,u+=s,c=\\\"middle\\\";break;case\\\"top\\\":l+=a/2,u-=o,h=\\\"center\\\",c=\\\"bottom\\\";break;case\\\"bottom\\\":l+=a/2,u+=r+o,h=\\\"center\\\";break;case\\\"inside\\\":l+=a/2,u+=s,h=\\\"center\\\",c=\\\"middle\\\";break;case\\\"insideLeft\\\":l+=o,u+=s,c=\\\"middle\\\";break;case\\\"insideRight\\\":l+=a-o,u+=s,h=\\\"right\\\",c=\\\"middle\\\";break;case\\\"insideTop\\\":l+=a/2,u+=o,h=\\\"center\\\";break;case\\\"insideBottom\\\":l+=a/2,u+=r-o,h=\\\"center\\\",c=\\\"bottom\\\";break;case\\\"insideTopLeft\\\":l+=o,u+=o;break;case\\\"insideTopRight\\\":l+=a-o,u+=o,h=\\\"right\\\";break;case\\\"insideBottomLeft\\\":l+=o,u+=r-o,c=\\\"bottom\\\";break;case\\\"insideBottomRight\\\":l+=a-o,u+=r-o,h=\\\"right\\\",c=\\\"bottom\\\"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Vo,Bo=\\\"__zr_normal__\\\",Fo=yo.concat([\\\"ignore\\\"]),Go=ct(yo,function(t,e){return t[e]=!0,t},{ignore:!1}),Wo={},Ho=new B(0,0,0,0),e=(n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,n){switch(this.draggable){case\\\"horizontal\\\":e=0;break;case\\\"vertical\\\":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,h,c,p=this._textContent;!p||p.ignore&&!t||(this.textConfig||(this.textConfig={}),u=(e=this.textConfig).local,o=i=void 0,r=!1,(n=p.innerTransformable).parent=u?this:null,c=!1,n.copyTransform(p),null!=e.position&&(h=Ho,e.layoutRect?h.copy(e.layoutRect):h.copy(this.getBoundingRect()),u||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wo,e,h):zo(Wo,e,h),n.x=Wo.x,n.y=Wo.y,i=Wo.align,o=Wo.verticalAlign,a=e.origin)&&null!=e.rotation&&(l=s=void 0,l=\\\"center\\\"===a?(s=.5*h.width,.5*h.height):(s=Eo(a[0],h.width),Eo(a[1],h.height)),c=!0,n.originX=-n.x+s+(u?0:h.x),n.originY=-n.y+l+(u?0:h.y)),null!=e.rotation&&(n.rotation=e.rotation),(a=e.offset)&&(n.x+=a[0],n.y+=a[1],c||(n.originX=-a[0],n.originY=-a[1])),s=null==e.inside?\\\"string\\\"==typeof e.position&&0\u003C=e.position.indexOf(\\\"inside\\\"):e.inside,l=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),c=h=u=void 0,s&&this.canBeInsideText()?(u=e.insideFill,h=e.insideStroke,null!=u&&\\\"auto\\\"!==u||(u=this.getInsideTextFill()),null!=h&&\\\"auto\\\"!==h||(h=this.getInsideTextStroke(u),c=!0)):(u=e.outsideFill,h=e.outsideStroke,null!=u&&\\\"auto\\\"!==u||(u=this.getOutsideFill()),null!=h&&\\\"auto\\\"!==h||(h=this.getOutsideStroke(u),c=!0)),(u=u||\\\"#000\\\")===l.fill&&h===l.stroke&&c===l.autoStroke&&i===l.align&&o===l.verticalAlign||(r=!0,l.fill=u,l.stroke=h,l.autoStroke=c,l.align=i,l.verticalAlign=o,p.setDefaultTextStyle(l)),p.__dirty|=1,r&&p.dirtyStyle(!0))},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return\\\"#fff\\\"},n.prototype.getInsideTextStroke=function(t){return\\\"#000\\\"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qi:Ji},n.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n=\\\"string\\\"==typeof e&&Wn(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r\u003C3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,qn(n,\\\"rgba\\\")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){\\\"textConfig\\\"===t?this.setTextConfig(e):\\\"textContent\\\"===t?this.setTextContent(e):\\\"clipPath\\\"===t?this.setClipPath(e):\\\"extra\\\"===t?(this.extra=this.extra||{},Z(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(\\\"string\\\"==typeof t)this.attrKV(t,e);else if(R(t))for(var n=W(t),i=0;i\u003Cn.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n\u003Cthis.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;i.getLoop()||o&&o!==Bo||(o=(o=i.targetName)?e[o]:e,i.saveTo(o))}},n.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Fo)},n.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i\u003Cn.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return 0\u003Cthis.currentStates.length},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(Bo,!1,t)},n.prototype.useState=function(t,e,n,i){var o=t===Bo;if(this.hasState()||!o){var r,a,s=this.currentStates,l=this.stateTransition;if(!(0\u003C=G(s,t))||!e&&1!==s.length){if((r=(r=this.stateProxy&&!o?this.stateProxy(t):r)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(r),(s=!!(r&&r.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&l&&0\u003Cl.duration,l),l=this._textContent,a=this._textGuide,l&&l.useState(t,e,n,s),a&&a.useState(t,e,n,s),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!s&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),r;ot(\\\"State \\\"+t+\\\" not exists.\\\")}}},n.prototype.useStates=function(t,e,n){if(t.length){var i=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s\u003Cr;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s\u003Cr;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[r-1],h=!!(h&&h.hoverLayer||n),c=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),p=this.stateTransition,c=(this.saveCurrentToNormalState(c),this._applyStateObj(t.join(\\\",\\\"),c,this._normalState,!1,!e&&!this.__inHover&&p&&0\u003Cp.duration,p),this._textContent),p=this._textGuide;c&&c.useStates(t,e,h),p&&p.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t=0;t\u003Cthis.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e,n=G(this.currentStates,t);0\u003C=n&&((e=this.currentStates.slice()).splice(n,1),this.useStates(e))},n.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),o=G(i,t),r=0\u003C=G(i,e);0\u003C=o?r?i.splice(o,1):i[o]=e:n&&!r&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,n={},i=0;i\u003Ct.length;i++){var o=t[i];Z(n,o),o.textConfig&&Z(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},n.prototype._applyStateObj=function(t,e,n,i,o,r){var a=!(e&&i);e&&e.textConfig?(this.textConfig=Z({},(i?this:n).textConfig),Z(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u\u003CFo.length;u++){var h=Fo[u],c=o&&Go[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(u=0;u\u003Cthis.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,r)},n.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t===this||((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new go,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Z(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n\u003Ce.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n\u003Ce.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Si(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},n.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=G(t,n);0\u003C=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r\u003Ci;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,n){Uo(this,t,e,n)},n.prototype.animateFrom=function(t,e,n){Uo(this,t,e,n,!0)},n.prototype._transitionState=function(t,e,n,i){for(var o=Uo(this,e,n,i),r=0;r\u003Co.length;r++)o[r].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=((Vo=n.prototype).type=\\\"element\\\",Vo.name=\\\"\\\",Vo.ignore=Vo.silent=Vo.isGroup=Vo.draggable=Vo.dragging=Vo.ignoreClip=Vo.__inHover=!1,Vo.__dirty=1,void(Object.defineProperty&&(Yo(\\\"position\\\",\\\"_legacyPos\\\",\\\"x\\\",\\\"y\\\"),Yo(\\\"scale\\\",\\\"_legacyScale\\\",\\\"scaleX\\\",\\\"scaleY\\\"),Yo(\\\"origin\\\",\\\"_legacyOrigin\\\",\\\"originX\\\",\\\"originY\\\")))),n);function n(t){this.id=nt++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Yo(t,e,n,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(Vo,t,{get:function(){return this[e]||o(this,this[e]=[]),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,o(this,t)}})}function Uo(t,e,n,i,o){var r=[],a=(!function T(t,e,i,o,n,r,a,s){for(var l=W(o),u=n.duration,h=n.delay,c=n.additive,p=n.setToFinal,d=!R(r),f=t.animators,g=[],y=0;y\u003Cl.length;y++){var m=l[y],v=o[m];null!=v&&null!=i[m]&&(d||r[m])?!R(v)||ht(v)||vt(v)?g.push(m):e?s||(i[m]=v,t.updateDuringAnimation(e)):T(t,m,i[m],v,n,r&&r[m],a,s):s||(i[m]=v,t.updateDuringAnimation(e),g.push(m))}var x=g.length;if(!c&&x)for(var _=0;_\u003Cf.length;_++){var b;(w=f[_]).targetName===e&&w.stopTracks(g)&&(b=G(f,w),f.splice(b,1))}if(n.force||(x=(g=pt(g,function(t){return e=o[t],n=i[t],!(e===n||ht(e)&&ht(n)&&function(t,e){var n=t.length;if(n===e.length){for(var i=0;i\u003Cn;i++)if(t[i]!==e[i])return;return 1}}(e,n));var e,n})).length),0\u003Cx||n.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},p&&(S={}),_=0;_\u003Cx;_++)M[m=g[_]]=i[m],p?S[m]=o[m]:i[m]=o[m];else if(p)for(I={},_=0;_\u003Cx;_++)I[m=g[_]]=mi(i[m]),Zo(i,o,m);(w=new Si(i,!1,!1,c?pt(f,function(t){return t.targetName===e}):null)).targetName=e,n.scope&&(w.scope=n.scope),p&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:o,g).delay(h||0),t.addAnimator(w,e),a.push(w)}}(t,\\\"\\\",t,e,n=n||{},i,r,o),r.length),s=!1,l=n.done,u=n.aborted,h=function(){s=!0,--a\u003C=0&&(s?l&&l():u&&u())},c=function(){--a\u003C=0&&(s?l&&l():u&&u())};a||l&&l(),0\u003Cr.length&&n.during&&r[0].during(function(t,e){n.during(e)});for(var p=0;p\u003Cr.length;p++){var d=r[p];d.done(h),d.aborted(c),n.force&&d.duration(n.duration),d.start(n.easing)}return r}function Xo(t,e,n){for(var i=0;i\u003Cn;i++)t[i]=e[i]}function Zo(t,e,n){if(ht(e[n]))if(ht(t[n])||(t[n]=[]),yt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Xo(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(ht(o[0]))for(var s=o[0].length,l=0;l\u003Ca;l++)r[l]?Xo(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Xo(r,o,a);r.length=o.length}else t[n]=e[n]}ut(e,se),ut(e,go);u(qo,jo=e),qo.prototype.childrenRef=function(){return this._children},qo.prototype.children=function(){return this._children.slice()},qo.prototype.childAt=function(t){return this._children[t]},qo.prototype.childOfName=function(t){for(var e=this._children,n=0;n\u003Ce.length;n++)if(e[n].name===t)return e[n]},qo.prototype.childCount=function(){return this._children.length},qo.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},qo.prototype.addBefore=function(t,e){var n,i;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0\u003C=(i=(n=this._children).indexOf(e))&&(n.splice(i,0,t),this._doAdd(t)),this},qo.prototype.replace=function(t,e){var n=G(this._children,t);return 0\u003C=n&&this.replaceAt(e,n),this},qo.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},qo.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},qo.prototype.remove=function(t){var e=this.__zr,n=this._children,i=G(n,t);return i\u003C0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},qo.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n\u003Ct.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},qo.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i\u003Cn.length;i++){var o=n[i];t.call(e,o,i)}return this},qo.prototype.traverse=function(t,e){for(var n=0;n\u003Cthis._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},qo.prototype.addSelfToZr=function(t){jo.prototype.addSelfToZr.call(this,t);for(var e=0;e\u003Cthis._children.length;e++)this._children[e].addSelfToZr(t)},qo.prototype.removeSelfFromZr=function(t){jo.prototype.removeSelfFromZr.call(this,t);for(var e=0;e\u003Cthis._children.length;e++)this._children[e].removeSelfFromZr(t)},qo.prototype.getBoundingRect=function(t){for(var e=new B(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r\u003Cn.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(B.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var jo,K=qo;function qo(t){var e=jo.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}K.prototype.type=\\\"group\\\";var Ko={},$o={},Jo=(Qo.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Qo.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Qo.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},Qo.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if(\\\"string\\\"==typeof t)return Kn(t,1)\u003C.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o\u003Ci;o++)n+=Kn(e[o].color,1);return n/i\u003C.4}}return!1}(t)},Qo.prototype.getBackgroundColor=function(){return this._backgroundColor},Qo.prototype.setDarkMode=function(t){this._darkMode=t},Qo.prototype.isDarkMode=function(){return this._darkMode},Qo.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},Qo.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},Qo.prototype.flush=function(){this._flush(!1)},Qo.prototype._flush=function(t){var e,n=Ti(),i=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Ti());e?(this._stillFrameAccum=0,this.trigger(\\\"rendered\\\",{elapsedTime:i-n})):0\u003Cthis._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},Qo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Qo.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},Qo.prototype.refreshHover=function(){this._needsRefreshHover=!0},Qo.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&\\\"canvas\\\"===this.painter.getType()&&this.painter.refreshHover()},Qo.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},Qo.prototype.clearAnimation=function(){this.animation.clear()},Qo.prototype.getWidth=function(){return this.painter.getWidth()},Qo.prototype.getHeight=function(){return this.painter.getHeight()},Qo.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},Qo.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},Qo.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},Qo.prototype.off=function(t,e){this.handler.off(t,e)},Qo.prototype.trigger=function(t,e){this.handler.trigger(t,e)},Qo.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e\u003Ct.length;e++)t[e]instanceof K&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},Qo.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete $o[t]},Qo);function Qo(t,e,n){var i=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new je),r=n.renderer||\\\"canvas\\\",r=(Ko[r]||(r=W(Ko)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new Ko[r](e,o,n,t)),a=n.ssr||r.ssrOnly,s=(this.storage=o,this.painter=r,S.node||S.worker||a?null:new ji(r.getViewportRoot(),r.root));this.handler=new Ee(o,r,s,r.root),this.animation=new Ai({stage:{update:a?null:function(){return i._flush(!0)}}}),a||this.animation.start()}function tr(t,e){var n=new Jo(nt++,t,e);return $o[n.id]=n}function er(t,e){Ko[t]=e}var nr=Object.freeze({__proto__:null,init:tr,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in $o)$o.hasOwnProperty(t)&&$o[t].dispose();$o={}},getInstance:function(t){return $o[t]},registerPainter:er,version:\\\"5.3.0\\\"});function ir(t,e,n,i){var o=e[0],r=e[1],a=n[0],s=n[1],l=r-o,u=s-a;if(0==l)return 0==u?a:(a+s)/2;if(i)if(0\u003Cl){if(t\u003C=o)return a;if(r\u003C=t)return s}else{if(o\u003C=t)return a;if(t\u003C=r)return s}else{if(t===o)return a;if(t===r)return s}return(t-o)/l*u+a}function F(t,e){switch(t){case\\\"center\\\":case\\\"middle\\\":t=\\\"50%\\\";break;case\\\"left\\\":case\\\"top\\\":t=\\\"0%\\\";break;case\\\"right\\\":case\\\"bottom\\\":t=\\\"100%\\\"}return X(t)?t.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function or(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function rr(t){return t.sort(function(t,e){return t-e}),t}function ar(t){if(t=+t,isNaN(t))return 0;if(1e-14\u003Ct)for(var e=1,n=0;n\u003C15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return sr(t)}function sr(t){var e=t.toString().toLowerCase(),n=e.indexOf(\\\"e\\\"),i=0\u003Cn?+e.slice(n+1):0,n=0\u003Cn?n:e.length,e=e.indexOf(\\\".\\\");return Math.max(0,(e\u003C0?0:n-1-e)-i)}function lr(t,e){var n=Math.log,i=Math.LN10,o=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),i=Math.min(Math.max(-o+n,0),20);return isFinite(i)?i:20}function ur(t,e,n){if(!t[e])return 0;var i=ct(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),r=Y(t,function(t){return(isNaN(t)?0:t)/i*o*100}),a=100*o,s=Y(r,function(t){return Math.floor(t)}),l=ct(s,function(t,e){return t+e},0),u=Y(r,function(t,e){return t-s[e]});l\u003Ca;){for(var h=Number.NEGATIVE_INFINITY,c=null,p=0,d=u.length;p\u003Cd;++p)u[p]>h&&(h=u[p],c=p);++s[c],u[c]=0,++l}return s[e]/o}var hr=9007199254740991;function cr(t){var e=2*Math.PI;return(t%e+e)%e}function pr(t){return-1e-4\u003Ct&&t\u003C1e-4}var dr=/^(?:(\\\\d{4})(?:[-\\\\/](\\\\d{1,2})(?:[-\\\\/](\\\\d{1,2})(?:[T ](\\\\d{1,2})(?::(\\\\d{1,2})(?::(\\\\d{1,2})(?:[.,](\\\\d+))?)?)?(Z|[\\\\+\\\\-]\\\\d\\\\d:?\\\\d\\\\d)?)?)?)?)?$/;function fr(t){var e,n;return t instanceof Date?t:X(t)?(e=dr.exec(t))?e[8]?(n=+e[4]||0,\\\"Z\\\"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function gr(t){return Math.pow(10,yr(t))}function yr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10\u003C=t/Math.pow(10,e)&&e++,e)}function mr(t,e){var n=yr(t),i=Math.pow(10,n),o=t/i;return t=(e?o\u003C1.5?1:o\u003C2.5?2:o\u003C4?3:o\u003C7?5:10:o\u003C1?1:o\u003C2?2:o\u003C3?3:o\u003C5?5:10)*i,-20\u003C=n?+t.toFixed(n\u003C0?-n:0):t}function vr(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),o=+t[i-1],n=n-i;return n?o+n*(t[i]-o):o}function xr(t){t.sort(function(t,e){return function i(t,e,n){return t.interval[n]\u003Ce.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&i(t,e,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i\u003Ct.length;){for(var o=t[i].interval,r=t[i].close,a=0;a\u003C2;a++)o[a]\u003C=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t}function _r(t){var e=parseFloat(t);return e==t&&(0!==e||!X(t)||t.indexOf(\\\"x\\\")\u003C=0)?e:NaN}function br(t){return!isNaN(_r(t))}function wr(){return Math.round(9*Math.random())}function Sr(t,e){return null==t?e:null==e?t:t*e/function n(t,e){return 0===e?t:n(e,t%e)}(t,e)}function Mr(t){throw new Error(t)}function Ir(t,e,n){return(e-t)*n+t}var Tr=\\\"series\\\\0\\\",Cr=\\\"\\\\0_ec_\\\\0\\\";function Dr(t){return t instanceof Array?t:null==t?[]:[t]}function Ar(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i\u003Co;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var kr=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"rich\\\",\\\"tag\\\",\\\"color\\\",\\\"textBorderColor\\\",\\\"textBorderWidth\\\",\\\"width\\\",\\\"height\\\",\\\"lineHeight\\\",\\\"align\\\",\\\"verticalAlign\\\",\\\"baseline\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\",\\\"textShadowColor\\\",\\\"textShadowBlur\\\",\\\"textShadowOffsetX\\\",\\\"textShadowOffsetY\\\",\\\"backgroundColor\\\",\\\"borderColor\\\",\\\"borderWidth\\\",\\\"borderRadius\\\",\\\"padding\\\"];function Lr(t){return!R(t)||U(t)||t instanceof Date?t:t.value}function Pr(t,n,e){var i=\\\"normalMerge\\\"===e,o=\\\"replaceMerge\\\"===e,r=\\\"replaceAll\\\"===e,a=(t=t||[],n=(n||[]).slice(),N());lt(n,function(t,e){R(t)||(n[e]=null)});var s,l,u,h,c,p,d,f,g,y,m=function(t,e,n){var i=[];if(\\\"replaceAll\\\"!==n)for(var o=0;o\u003Ct.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:\\\"replaceMerge\\\"===n||zr(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,e);return(i||o)&&(d=m,f=t,g=a,lt(y=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=Rr(t.id),null!=(i=g.get(n)))&&(Tt(!(o=d[i]).newOption,'Duplicated option on id \\\"'+n+'\\\".'),o.newOption=t,o.existing=f[i],y[e]=null)})),i&&(c=m,lt(p=n,function(t,e){if(t&&null!=t.name)for(var n=0;n\u003Cc.length;n++){var i=c[n].existing;if(!c[n].newOption&&i&&(null==i.id||null==t.id)&&!zr(t)&&!zr(i)&&Or(\\\"name\\\",i,t))return c[n].newOption=t,void(p[e]=null)}})),i||o?(u=m,h=o,lt(n,function(t){if(t){for(var e,n=0;(e=u[n])&&(e.newOption||zr(e.existing)||e.existing&&null!=t.id&&!Or(\\\"id\\\",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=h):u.push({newOption:t,brandNew:h,existing:null,keyInfo:null}),n++}})):r&&(l=m,lt(n,function(t){l.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),a=m,s=N(),lt(a,function(t){var e=t.existing;e&&s.set(e.id,t)}),lt(a,function(t){var e=t.newOption;Tt(!e||null==e.id||!s.get(e.id)||s.get(e.id)===t,\\\"id duplicates: \\\"+(e&&e.id)),e&&null!=e.id&&s.set(e.id,t),t.keyInfo||(t.keyInfo={})}),lt(a,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(R(i)){if(o.name=null!=i.name?Rr(i.name):n?n.name:Tr+e,n)o.id=Rr(n.id);else if(null!=i.id)o.id=Rr(i.id);else for(var r=0;o.id=\\\"\\\\0\\\"+o.name+\\\"\\\\0\\\"+r++,s.get(o.id););s.set(o.id,t)}}),m}function Or(t,e,n){var i=Nr(e[t],null),o=Nr(n[t],null);return null!=i&&null!=o&&i===o}function Rr(t){return Nr(t,\\\"\\\")}function Nr(t,e){return null==t?e:X(t)?t:j(t)||ft(t)?t+\\\"\\\":e}function Er(t){var e=t.name;return!(!e||!e.indexOf(Tr))}function zr(t){return t&&null!=t.id&&0===Rr(t.id).indexOf(Cr)}function Vr(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?U(t.dataIndex)?Y(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?U(t.name)?Y(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function i(){var e=\\\"__ec_inner_\\\"+Br++;return function(t){return t[e]||(t[e]={})}}var Br=wr();function Fr(i,t,o){var e=Gr(t,o),n=e.mainTypeSpecified,r=e.queryOptionMap,a=e.others,s=o?o.defaultMainType:null;return!n&&s&&r.set(s,{}),r.each(function(t,e){var n=Yr(i,e,t,{useDefault:s===e,enableAll:!o||null==o.enableAll||o.enableAll,enableNone:!o||null==o.enableNone||o.enableNone});a[e+\\\"Models\\\"]=n.models,a[e+\\\"Model\\\"]=n.models[0]}),a}function Gr(t,o){var e=X(t)?((e={})[t+\\\"Index\\\"]=0,e):t,r=N(),a={},s=!1;return lt(e,function(t,e){var n,i;\\\"dataIndex\\\"!==e&&\\\"dataIndexInside\\\"!==e?(n=(i=e.match(/^(\\\\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||\\\"\\\").toLowerCase(),!n||!i||o&&o.includeMainTypes&&G(o.includeMainTypes,n)\u003C0||(s=s||!!n,(r.get(n)||r.set(n,{}))[i]=t)):a[e]=t}),{mainTypeSpecified:s,queryOptionMap:r,others:a}}var Wr={useDefault:!0,enableAll:!1,enableNone:!1},Hr={useDefault:!1,enableAll:!0,enableNone:!0};function Yr(t,e,n,i){i=i||Wr;var o=n.index,r=n.id,a=n.name,s={models:null,specified:null!=o||null!=r||null!=a};return s.specified?\\\"none\\\"===o||!1===o?(Tt(i.enableNone,'`\\\"none\\\"` or `false` is not a valid value on index option.'),s.models=[]):(\\\"all\\\"===o&&(Tt(i.enableAll,'`\\\"all\\\"` is not a valid value on index option.'),o=r=a=null),s.models=t.queryComponents({mainType:e,index:o,id:r,name:a})):(o=void 0,s.models=i.useDefault&&(o=t.getComponent(e))?[o]:[]),s}function Ur(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Xr(t,n){var i=N(),o=[];return lt(t,function(t){var e=n(t);(i.get(e)||(o.push(e),i.set(e,[]))).push(t)}),{keys:o,buckets:i}}function Zr(t,e,n,i,o){var r=null==e||\\\"auto\\\"===e;if(null==i)return i;if(j(i))return or(p=Ir(n||0,i,o),r?Math.max(ar(n||0),ar(i)):e);if(X(i))return o\u003C1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h\u003Cu;++h){var c,p,d=t.getDimensionInfo(h);d&&\\\"ordinal\\\"===d.type?a[h]=(o\u003C1&&s?s:l)[h]:(p=Ir(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=or(p,r?Math.max(ar(d),ar(c)):e))}return a}var jr=\\\"___EC__COMPONENT__CONTAINER___\\\",qr=\\\"___EC__EXTENDED_CLASS___\\\";function Kr(t){var e,n={main:\\\"\\\",sub:\\\"\\\"};return t&&(e=t.split(\\\".\\\"),n.main=e[0]||\\\"\\\",n.sub=e[1]||\\\"\\\"),n}function $r(t){(t.$constructor=t).extend=function(t){var e,n,i,o=this;return A(n=o)&&/^class\\\\s/.test(Function.prototype.toString.call(n))?(u(r,i=o),e=r):st(e=function(){(t.$constructor||o).apply(this,arguments)},this),Z(e.prototype,t),e[qr]=!0,e.extend=this.extend,e.superCall=ta,e.superApply=ea,e.superClass=o,e;function r(){return i.apply(this,arguments)||this}}}function Jr(t,e){t.extend=e.extend}var Qr=Math.round(10*Math.random());function ta(t,e){for(var n=[],i=2;i\u003Carguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function ea(t,e,n){return this.superClass.prototype[e].apply(t,n)}function na(t){var o={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(Tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType \\\"'+e+'\\\" illegal'),(e=Kr(t.prototype.type=n)).sub?e.sub!==jr&&((n=o[e.main])&&n[jr]||((n=o[e.main]={})[jr]=!0),n[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[jr]&&(i=e?i[e]:null),n&&!i)throw new Error(e?\\\"Component \\\"+t+\\\".\\\"+(e||\\\"\\\")+\\\" is used but not imported.\\\":t+\\\".type should be specified.\\\");return i},t.getClassesByMainType=function(t){var e=Kr(t),n=[],e=o[e.main];return e&&e[jr]?lt(e,function(t,e){e!==jr&&n.push(t)}):n.push(e),n},t.hasClass=function(t){var e=Kr(t);return!!o[e.main]},t.getAllClassMainTypes=function(){var n=[];return lt(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){var e=Kr(t),e=o[e.main];return e&&e[jr]}}function ia(a,s){for(var t=0;t\u003Ca.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},o=0;o\u003Ca.length;o++){var r=a[o][1];e&&0\u003C=G(e,r)||n&&G(n,r)\u003C0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var oa=ia([[\\\"fill\\\",\\\"color\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"opacity\\\"],[\\\"shadowColor\\\"]]),ra=(sa.prototype.getAreaStyle=function(t,e){return oa(this,t,e)},sa),aa=new Tn(50);function sa(){}function la(t,e,n,i,o){var r,a;return t?\\\"string\\\"==typeof t?(e&&e.__zrImageSrc===t||!n||(r={hostEl:n,cb:i,cbPayload:o},(a=aa.get(t))?ha(e=a.image)||a.pending.push(r):((a=J.loadImage(t,ua,ua)).__zrImageSrc=t,aa.put(t,a.__cachedImgObj={image:a,pending:[r]}))),e):t:e}function ua(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e\u003Ct.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function ha(t){return t&&t.width&&t.height}var ca=/\\\\{([a-zA-Z0-9_]+)\\\\|([^}]*)\\\\}/g;function pa(t,e,n,i,o){if(!e)return\\\"\\\";var r=(t+\\\"\\\").split(\\\"\\\\n\\\");o=da(e,n,i,o);for(var a=0,s=r.length;a\u003Cs;a++)r[a]=fa(r[a],o);return r.join(\\\"\\\\n\\\")}function da(t,e,n,i){var o=Z({},i=i||{}),r=(o.font=e,n=P(n,\\\"...\\\"),o.maxIterations=P(i.maxIterations,2),o.minChar=P(i.minChar,0)),a=(o.cnCharWidth=ko(\\\"国\\\",e),o.ascCharWidth=ko(\\\"a\\\",e));o.placeholder=P(i.placeholder,\\\"\\\");for(var s=t=Math.max(0,t-1),l=0;l\u003Cr&&a\u003C=s;l++)s-=a;var u=ko(n,e);return s\u003Cu&&(n=\\\"\\\",u=0),s=t-u,o.ellipsis=n,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=t,o}function fa(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return\\\"\\\";var r=ko(t,i);if(!(r\u003C=n)){for(var a=0;;a++){if(r\u003C=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;r\u003Ca&&o\u003Ce;r++){var s=t.charCodeAt(r);o+=0\u003C=s&&s\u003C=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0\u003Cr?Math.floor(t.length*o/r):0,r=ko(t=t.substr(0,s),i)}\\\"\\\"===t&&(t=e.placeholder)}return t}var ga=function(){},ya=function(t){this.tokens=[],t&&(this.tokens=t)},ma=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function va(t,e,n,i,o){var r,a,s,l,u=\\\"\\\"===e,h=o&&n.rich[o]||{},c=t.lines,p=h.font||n.font,d=!1;i?(s=(s=h.padding)?s[1]+s[3]:0,null!=h.width&&\\\"auto\\\"!==h.width?(l=Eo(h.width,i.width)+s,0\u003Cc.length&&l+i.accumWidth>i.width&&(r=e.split(\\\"\\\\n\\\"),d=!0),i.accumWidth=l):(l=_a(e,p,i.width,i.breakAll,i.accumWidth),i.accumWidth=l.accumWidth+s,a=l.linesWidths,r=l.lines)):r=e.split(\\\"\\\\n\\\");for(var f=0;f\u003Cr.length;f++){var g,y,m=r[f],v=new ga;v.styleName=o,v.text=m,v.isLineHolder=!m&&!u,\\\"number\\\"==typeof h.width?v.width=h.width:v.width=a?a[f]:ko(m,p),f||d?c.push(new ya([v])):1===(y=(g=(c[c.length-1]||(c[0]=new ya)).tokens).length)&&g[0].isLineHolder?g[0]=v:!m&&y&&!u||g.push(v)}}var xa=ct(\\\",&?/;] \\\".split(\\\"\\\"),function(t,e){return t[e]=!0,t},{});function _a(t,e,n,i,o){for(var r,a=[],s=[],l=\\\"\\\",u=\\\"\\\",h=0,c=0,p=0;p\u003Ct.length;p++){var d,f,g=t.charAt(p);\\\"\\\\n\\\"!==g?(d=ko(g,e),f=!(i||(f=void 0,!(33\u003C=(f=(r=g).charCodeAt(0))&&f\u003C=383))||xa[r]),(a.length?n\u003Cc+d:n\u003Co+c+d)?c?(l||u)&&(c=f?(l||(l=u,u=\\\"\\\",c=h=0),a.push(l),s.push(c-h),u+=g,l=\\\"\\\",h+=d):(u&&(l+=u,u=\\\"\\\",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u=\\\"\\\",h=0),l+=g))):(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l=\\\"\\\",c=h=0)}return a.length||l||(l=t,u=\\\"\\\",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}var ba,wa=\\\"__zr_style_\\\"+Math.round(10*Math.random()),Sa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:\\\"#000\\\",opacity:1,blend:\\\"source-over\\\"},Ma={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Ia=(Sa[wa]=!0,[\\\"z\\\",\\\"z2\\\",\\\"invisible\\\"]),Ta=[\\\"invisible\\\"],Ca=(u(ka,ba=e),ka.prototype._init=function(t){for(var e=W(t),n=0;n\u003Ce.length;n++){var i=e[n];\\\"style\\\"===i?this.useStyle(t[i]):ba.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},ka.prototype.beforeBrush=function(){},ka.prototype.afterBrush=function(){},ka.prototype.innerBeforeBrush=function(){},ka.prototype.innerAfterBrush=function(){},ka.prototype.shouldBePainted=function(t,e,n,i){var o,r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(o=this,t=t,e=e,Da.copy(o.getBoundingRect()),o.transform&&Da.applyTransform(o.transform),Aa.width=t,Aa.height=e,!Da.intersect(Aa))||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var a=0;a\u003Cthis.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.parent}return!0},ka.prototype.contain=function(t,e){return this.rectContain(t,e)},ka.prototype.traverse=function(t,e){t.call(e,this)},ka.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},ka.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new B(0,0,0,0)),o?B.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},ka.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new B(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},ka.prototype.getPrevPaintRect=function(){return this._prevPaintRect},ka.prototype.animateStyle=function(t){return this.animate(\\\"style\\\",t)},ka.prototype.updateDuringAnimation=function(t){\\\"style\\\"===t?this.dirtyStyle():this.markRedraw()},ka.prototype.attrKV=function(t,e){\\\"style\\\"!==t?ba.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},ka.prototype.setStyle=function(t,e){return\\\"string\\\"==typeof t?this.style[t]=e:Z(this.style,t),this.dirtyStyle(),this},ka.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},ka.prototype.dirty=function(){this.dirtyStyle()},ka.prototype.styleChanged=function(){return!!(2&this.__dirty)},ka.prototype.styleUpdated=function(){this.__dirty&=-3},ka.prototype.createStyle=function(t){return Rt(Sa,t)},ka.prototype.useStyle=function(t){t[wa]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},ka.prototype.isStyleObject=function(t){return t[wa]},ka.prototype._innerSaveToNormal=function(t){ba.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Ia)},ka.prototype._applyStateObj=function(t,e,n,i,o,r){ba.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=W(l),h=0;h\u003Cu.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=W(a),h=0;h\u003Cc.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);var d=this.__inHover?Ta:Ia;for(h=0;h\u003Cd.length;h++)p=d[h],e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])},ka.prototype._mergeStates=function(t){for(var e,n=ba.prototype._mergeStates.call(this,t),i=0;i\u003Ct.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},ka.prototype._mergeStyle=function(t,e){return Z(t,e),t},ka.prototype.getAnimationStyleProps=function(){return Ma},ka.initDefaultProps=((e=ka.prototype).type=\\\"displayable\\\",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=\\\"pointer\\\",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=3)),ka),Da=new B(0,0,0,0),Aa=new B(0,0,0,0);function ka(t){return ba.call(this,t)||this}var La=Math.min,Pa=Math.max,Oa=Math.sin,Ra=Math.cos,Na=2*Math.PI,Ea=Bt(),za=Bt(),Va=Bt();function Ba(t,e,n){if(0!==t.length){for(var i=t[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l\u003Ct.length;l++)i=t[l],o=La(o,i[0]),r=Pa(r,i[0]),a=La(a,i[1]),s=Pa(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function Fa(t,e,n,i,o,r){o[0]=La(t,n),o[1]=La(e,i),r[0]=Pa(t,n),r[1]=Pa(e,i)}var Ga=[],Wa=[];var Ha={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ya=[],Ua=[],Xa=[],Za=[],ja=[],qa=[],Ka=Math.min,$a=Math.max,Ja=Math.cos,Qa=Math.sin,ts=Math.abs,es=Math.PI,ns=2*es,is=\\\"undefined\\\"!=typeof Float32Array,os=[];function rs(t){return Math.round(t/es*1e8)/1e8%2*es}function as(t,e){var n=rs(t[0]),i=(n\u003C0&&(n+=ns),n-t[0]),o=t[1];o+=i,!e&&ns\u003C=o-n?o=n+ns:e&&ns\u003C=n-o?o=n-ns:!e&&o\u003Cn?o=n+(ns-rs(n-o)):e&&n\u003Co&&(o=n-(ns-rs(o-n))),t[0]=n,t[1]=o}ls.prototype.increaseVersion=function(){this._version++},ls.prototype.getVersion=function(){return this._version},ls.prototype.setScale=function(t,e,n){0\u003C(n=n||0)&&(this._ux=ts(n/$i/t)||0,this._uy=ts(n/$i/e)||0)},ls.prototype.setDPR=function(t){this.dpr=t},ls.prototype.setContext=function(t){this._ctx=t},ls.prototype.getContext=function(){return this._ctx},ls.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},ls.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},ls.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ha.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},ls.prototype.lineTo=function(t,e){var n=ts(t-this._xi),i=ts(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(Ha.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},ls.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Ha.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},ls.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ha.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},ls.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),os[0]=i,os[1]=o,as(os,r);var a=(o=os[1])-(i=os[0]);return this.addData(Ha.A,t,e,n,n,i,a,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Ja(o)*n+t,this._yi=Qa(o)*n+e,this},ls.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},ls.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ha.R,t,e,n,i),this},ls.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ha.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},ls.prototype.fill=function(t){t&&t.fill(),this.toStatic()},ls.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},ls.prototype.len=function(){return this._len},ls.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!is||(this.data=new Float32Array(e));for(var n=0;n\u003Ce;n++)this.data[n]=t[n];this._len=e},ls.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o\u003Ce;o++)n+=t[o].len();for(is&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),o=0;o\u003Ce;o++)for(var r=t[o].data,a=0;a\u003Cr.length;a++)this.data[i++]=r[a];this._len=i},ls.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h\u003Carguments.length;h++)u[this._len++]=arguments[h]}},ls.prototype._drawPendingPt=function(){0\u003Cthis._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},ls.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e\u003Cthis._len;e++)t[e]=this.data[e];this.data=t}},ls.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,is)&&11\u003Cthis._len&&(this.data=new Float32Array(t))},ls.prototype.getBoundingRect=function(){Xa[0]=Xa[1]=ja[0]=ja[1]=Number.MAX_VALUE,Za[0]=Za[1]=qa[0]=qa[1]=-Number.MAX_VALUE;for(var t,e,n,i,o,r,a,s,l=this.data,u=0,h=0,c=0,p=0,d=0;d\u003Cthis._len;){var E=l[d++],z=1===d;switch(z&&(c=u=l[d],p=h=l[d+1]),E){case Ha.M:u=c=l[d++],h=p=l[d++],ja[0]=c,ja[1]=p,qa[0]=c,qa[1]=p;break;case Ha.L:Fa(u,h,l[d],l[d+1],ja,qa),u=l[d++],h=l[d++];break;case Ha.C:A=D=C=T=I=M=S=w=b=_=x=v=m=y=g=f=void 0;var f=u,g=h,y=l[d++],m=l[d++],v=l[d++],x=l[d++],_=l[d],b=l[d+1],w=ja,S=qa,M=dn,I=hn,T=M(f,y,v,_,Ga);w[0]=1/0,w[1]=1/0,S[0]=-1/0,S[1]=-1/0;for(var C=0;C\u003CT;C++){var D=I(f,y,v,_,Ga[C]);w[0]=La(D,w[0]),S[0]=Pa(D,S[0])}for(T=M(g,m,x,b,Wa),C=0;C\u003CT;C++){var A=I(g,m,x,b,Wa[C]);w[1]=La(A,w[1]),S[1]=Pa(A,S[1])}w[0]=La(f,w[0]),S[0]=Pa(f,S[0]),w[0]=La(_,w[0]),S[0]=Pa(_,S[0]),w[1]=La(g,w[1]),S[1]=Pa(g,S[1]),w[1]=La(b,w[1]),S[1]=Pa(b,S[1]),u=l[d++],h=l[d++];break;case Ha.Q:t=u,e=h,n=l[d++],i=l[d++],o=l[d],r=l[d+1],a=ja,s=qa,L=k=L=k=M=void 0,M=yn,k=Pa(La((L=vn)(t,n,o),1),0),L=Pa(La(L(e,i,r),1),0),k=M(t,n,o,k),L=M(e,i,r,L),a[0]=La(t,o,k),a[1]=La(e,r,L),s[0]=Pa(t,o,k),s[1]=Pa(e,r,L),u=l[d++],h=l[d++];break;case Ha.A:var k=l[d++],L=l[d++],P=l[d++],O=l[d++],R=l[d++],N=l[d++]+R,V=(d+=1,!l[d++]);z&&(c=Ja(R)*P+k,p=Qa(R)*O+L),function(t,e,n,i,o,r,a,s,l){var u=ne,h=ie,c=Math.abs(o-r);if(c%Na\u003C1e-4&&1e-4\u003Cc)return s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;Ea[0]=Ra(o)*n+t,Ea[1]=Oa(o)*i+e,za[0]=Ra(r)*n+t,za[1]=Oa(r)*i+e,u(s,Ea,za),h(l,Ea,za),(o%=Na)\u003C0&&(o+=Na),(r%=Na)\u003C0&&(r+=Na),r\u003Co&&!a?r+=Na:o\u003Cr&&a&&(o+=Na),a&&(c=r,r=o,o=c);for(var p=0;p\u003Cr;p+=Math.PI/2)o\u003Cp&&(Va[0]=Ra(p)*n+t,Va[1]=Oa(p)*i+e,u(s,Va,s),h(l,Va,l))}(k,L,P,O,R,N,V,ja,qa),u=Ja(N)*P+k,h=Qa(N)*O+L;break;case Ha.R:Fa(c=u=l[d++],p=h=l[d++],c+l[d++],p+l[d++],ja,qa);break;case Ha.Z:u=c,h=p}ne(Xa,Xa,ja),ie(Za,Za,qa)}return 0===d&&(Xa[0]=Xa[1]=Za[0]=Za[1]=0),new B(Xa[0],Xa[1],Za[0]-Xa[0],Za[1]-Xa[1])},ls.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c\u003Ce;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case Ha.M:o=a=t[c++],r=s=t[c++];break;case Ha.L:var g=t[c++],y=(x=t[c++])-r;(ts(C=g-o)>n||ts(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),o=g,r=x);break;case Ha.C:var m=t[c++],v=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d\u003C=l;d++){var f=d*p,g=hn(t,n,o,a,f),f=hn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,x,_,b,10),o=_,r=b;break;case Ha.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c\u003C=a;c++){var p=c*h,d=yn(t,n,o,p),p=yn(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],x=t[c++],10),o=g,r=x;break;case Ha.A:var _=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=I+M;c+=1,t[c++],d&&(a=Ja(M)*w+_,s=Qa(M)*S+b),f=$a(w,S)*Ka(ns,Math.abs(I)),o=Ja(T)*w+_,r=Qa(T)*S+b;break;case Ha.R:a=o=t[c++],s=r=t[c++],f=2*t[c++]+2*t[c++];break;case Ha.Z:var C=a-o,y=s-r;f=Math.sqrt(C*C+y*y),o=a,r=s}0\u003C=f&&(u+=l[h++]=f)}return this._pathLen=u},ls.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,V=this._len,c=e\u003C1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g\u003CV;){var y,m=h[g++],B=1===g;switch(B&&(n=o=h[g],i=r=h[g+1]),m!==Ha.L&&0\u003Cf&&(t.lineTo(l,u),f=0),m){case Ha.M:n=o=h[g++],i=r=h[g++],t.moveTo(o,r);break;case Ha.L:var v=h[g++],x=h[g++],_=ts(v-o),b=ts(x-r);if(E\u003C_||z\u003Cb){if(c){if(p+(y=a[d++])>s){var w=(s-p)/y;t.lineTo(o*(1-w)+v*w,r*(1-w)+x*w);break t}p+=y}t.lineTo(v,x),o=v,r=x,f=0}else{_=_*_+b*b;f\u003C_&&(l=v,u=x,f=_)}break;case Ha.C:var S=h[g++],M=h[g++],I=h[g++],T=h[g++],b=h[g++],_=h[g++];if(c){if(p+(y=a[d++])>s){fn(o,S,I,b,w=(s-p)/y,Ya),fn(r,M,T,_,w,Ua),t.bezierCurveTo(Ya[1],Ua[1],Ya[2],Ua[2],Ya[3],Ua[3]);break t}p+=y}t.bezierCurveTo(S,M,I,T,b,_),o=b,r=_;break;case Ha.Q:if(S=h[g++],M=h[g++],I=h[g++],T=h[g++],c){if(p+(y=a[d++])>s){xn(o,S,I,w=(s-p)/y,Ya),xn(r,M,T,w,Ua),t.quadraticCurveTo(Ya[1],Ua[1],Ya[2],Ua[2]);break t}p+=y}t.quadraticCurveTo(S,M,I,T),o=I,r=T;break;case Ha.A:var C=h[g++],D=h[g++],A=h[g++],k=h[g++],L=h[g++],P=h[g++],O=h[g++],F=!h[g++],G=k\u003CA?A:k,R=.001\u003Cts(A-k),N=L+P,W=!1;if(c&&(p+(y=a[d++])>s&&(N=L+P*(s-p)/y,W=!0),p+=y),R&&t.ellipse?t.ellipse(C,D,A,k,O,L,N,F):t.arc(C,D,G,L,N,F),W)break t;B&&(n=Ja(L)*A+C,i=Qa(L)*k+D),o=Ja(N)*A+C,r=Qa(N)*k+D;break;case Ha.R:n=o=h[g],i=r=h[g+1],v=h[g++],x=h[g++];P=h[g++],R=h[g++];if(c){if(p+(y=a[d++])>s){O=s-p;t.moveTo(v,x),t.lineTo(v+Ka(O,P),x),0\u003C(O-=P)&&t.lineTo(v+P,x+Ka(O,R)),0\u003C(O-=R)&&t.lineTo(v+$a(P-O,0),x+R),0\u003C(O-=P)&&t.lineTo(v,x+$a(R-O,0));break t}p+=y}t.rect(v,x,P,R);break;case Ha.Z:if(c){if(p+(y=a[d++])>s){t.lineTo(o*(1-(w=(s-p)/y))+n*w,r*(1-w)+i*w);break t}p+=y}t.closePath(),o=n,r=i}}},ls.prototype.clone=function(){var t=new ls,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},ls.CMD=Ha,ls.initDefaultProps=((e=ls.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var ss=ls;function ls(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function us(t,e,n,i,o,r,a){var s,l,u;if(0!==o)return l=0,!(e+(s=o)\u003Ca&&i+s\u003Ca||a\u003Ce-s&&a\u003Ci-s||t+s\u003Cr&&n+s\u003Cr||r\u003Ct-s&&r\u003Cn-s)&&(t===n?Math.abs(r-t)\u003C=s/2:(u=(l=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*u/(l*l+1)\u003C=s/2*s/2)}function hs(t,e,n,i,o,r,a,s,l){var u;if(0!==a)return!(e+(u=a)\u003Cl&&i+u\u003Cl&&r+u\u003Cl||l\u003Ce-u&&l\u003Ci-u&&l\u003Cr-u||t+u\u003Cs&&n+u\u003Cs&&o+u\u003Cs||s\u003Ct-u&&s\u003Cn-u&&s\u003Co-u)&&_n(t,e,n,i,o,r,s,l,null)\u003C=u/2}var cs=2*Math.PI;function ps(t){return(t%=cs)\u003C0&&(t+=cs),t}var ds=2*Math.PI;function fs(t,e,n,i,o,r){var a,s;return e\u003Cr&&i\u003Cr||r\u003Ce&&r\u003Ci||i===e?0:(s=(a=(r-e)/(i-e))*(n-t)+t)===o?1/0:o\u003Cs?1!=a&&0!=a?i\u003Ce?1:-1:i\u003Ce?.5:-.5:0}var gs=ss.CMD,ys=2*Math.PI,ms=[-1,-1,-1],vs=[-1,-1];function xs(t,e,n,i,o){for(var r,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;f\u003Cl;){var g=s[f++],y=1===f;switch(g===gs.M&&1\u003Cf&&(n||(u+=fs(h,c,p,d,i,o))),y&&(p=h=s[f],d=c=s[f+1]),g){case gs.M:h=p=s[f++],c=d=s[f++];break;case gs.L:if(n){if(us(h,c,s[f],s[f+1],e,i,o))return!0}else u+=fs(h,c,s[f],s[f+1],i,o)||0;h=s[f++],c=s[f++];break;case gs.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){var c;if(0!==l)return!(e+(c=l)\u003Ch&&i+c\u003Ch&&r+c\u003Ch&&s+c\u003Ch||h\u003Ce-c&&h\u003Ci-c&&h\u003Cr-c&&h\u003Cs-c||t+c\u003Cu&&n+c\u003Cu&&o+c\u003Cu&&a+c\u003Cu||u\u003Ct-c&&u\u003Cn-c&&u\u003Co-c&&u\u003Ca-c)&&gn(t,e,n,i,o,r,a,s,u,h,null)\u003C=c/2}(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,o))return!0}else u+=function(t,e,n,i,o,r,a,s,l,u){if(e\u003Cu&&i\u003Cu&&r\u003Cu&&s\u003Cu||u\u003Ce&&u\u003Ci&&u\u003Cr&&u\u003Cs)return 0;var h,c=pn(e,i,r,s,u,ms);if(0===c)return 0;for(var p=0,d=-1,f=void 0,g=void 0,y=0;y\u003Cc;y++){var m=ms[y],v=0===m||1===m?.5:1;hn(t,n,o,a,m)\u003Cl||(d\u003C0&&(d=dn(e,i,r,s,vs),vs[1]\u003Cvs[0]&&1\u003Cd&&(h=vs[0],vs[0]=vs[1],vs[1]=h),f=hn(e,i,r,s,vs[0]),1\u003Cd)&&(g=hn(e,i,r,s,vs[1])),2===d?m\u003Cvs[0]?p+=f\u003Ce?v:-v:m\u003Cvs[1]?p+=g\u003Cf?v:-v:p+=s\u003Cg?v:-v:m\u003Cvs[0]?p+=f\u003Ce?v:-v:p+=s\u003Cf?v:-v)}return p}(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,o)||0;h=s[f++],c=s[f++];break;case gs.Q:if(n){if(hs(h,c,s[f++],s[f++],s[f],s[f+1],e,i,o))return!0}else u+=function(t,e,n,i,o,r,a,s){if(e\u003Cs&&i\u003Cs&&r\u003Cs||s\u003Ce&&s\u003Ci&&s\u003Cr)return 0;l=ms,p=2*(i-e),d=e-s,f=0,ln(c=e-2*i+r)?un(p)&&0\u003C=(u=-d/p)&&u\u003C=1&&(l[f++]=u):ln(d=p*p-4*c*d)?0\u003C=(u=-p/(2*c))&&u\u003C=1&&(l[f++]=u):0\u003Cd&&(h=(-p-(d=Je(d)))/(2*c),0\u003C=(u=(-p+d)/(2*c))&&u\u003C=1&&(l[f++]=u),0\u003C=h)&&h\u003C=1&&(l[f++]=h);var l,u,h,c,p,d,f,g=f;if(0===g)return 0;var y=vn(e,i,r);if(0\u003C=y&&y\u003C=1){for(var m=0,v=yn(e,i,r,y),x=0;x\u003Cg;x++){var _=0===ms[x]||1===ms[x]?.5:1;yn(t,n,o,ms[x])\u003Ca||(ms[x]\u003Cy?m+=v\u003Ce?_:-_:m+=r\u003Cv?_:-_)}return m}return _=0===ms[0]||1===ms[0]?.5:1,yn(t,n,o,ms[0])\u003Ca?0:r\u003Ce?_:-_}(h,c,s[f++],s[f++],s[f],s[f+1],i,o)||0;h=s[f++],c=s[f++];break;case gs.A:var m=s[f++],v=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++],S=(f+=1,!!(1-s[f++])),M=Math.cos(b)*x+m,I=Math.sin(b)*_+v,T=(y?(p=M,d=I):u+=fs(h,c,M,I,i,o),(i-m)*_/x+m);if(n){if(function(t,e,n,i,o,r,a,s,l){var u,h;if(0!==a)return h=a,s-=t,l-=e,!(n\u003C(u=Math.sqrt(s*s+l*l))-h||u+h\u003Cn)&&(Math.abs(i-o)%ds\u003C1e-4||((o=r?(u=i,i=ps(o),ps(u)):(i=ps(i),ps(o)))\u003Ci&&(o+=ds),(h=Math.atan2(l,s))\u003C0&&(h+=ds),i\u003C=h&&h\u003C=o)||i\u003C=h+ds&&h+ds\u003C=o)}(m,v,_,b,b+w,S,e,T,o))return!0}else u+=function(t,e,n,i,o,r,a,s){if((s-=e)>n||s\u003C-n)return 0;var l=Math.sqrt(n*n-s*s);if(ms[0]=-l,ms[1]=l,(l=Math.abs(i-o))\u003C1e-4)return 0;if(ys-1e-4\u003C=l)return o=ys,c=r?1:-1,a>=ms[i=0]+t&&a\u003C=ms[1]+t?c:0;o\u003Ci&&(l=i,i=o,o=l),i\u003C0&&(i+=ys,o+=ys);for(var u=0,h=0;h\u003C2;h++){var c,p=ms[h];a\u003Cp+t&&(c=r?1:-1,i\u003C=(p=(p=Math.atan2(s,p))\u003C0?ys+p:p)&&p\u003C=o||i\u003C=p+ys&&p+ys\u003C=o)&&(u+=c=p>Math.PI/2&&p\u003C1.5*Math.PI?-c:c)}return u}(m,v,_,b,b+w,S,T,o);h=Math.cos(b+w)*x+m,c=Math.sin(b+w)*_+v;break;case gs.R:if(p=h=s[f++],d=c=s[f++],M=p+s[f++],I=d+s[f++],n){if(us(p,d,M,d,e,i,o)||us(M,d,M,I,e,i,o)||us(M,I,p,I,e,i,o)||us(p,I,p,d,e,i,o))return!0}else u=(u+=fs(M,d,M,I,i,o))+fs(p,I,p,d,i,o);break;case gs.Z:if(n){if(us(h,c,p,d,e,i,o))return!0}else u+=fs(h,c,p,d,i,o);h=p,c=d}}return n||(r=c,a=d,Math.abs(r-a)\u003C1e-4)||(u+=fs(h,c,p,d,i,o)||0),0!==u}var _s,bs,ws=H({fill:\\\"#000\\\",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:\\\"butt\\\",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Sa),Ss={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ma.style)},Ms=yo.concat([\\\"invisible\\\",\\\"culling\\\",\\\"z\\\",\\\"z2\\\",\\\"zlevel\\\",\\\"parent\\\"]),Q=(u(Ds,bs=Ca),Ds.prototype.update=function(){var e=this,t=(bs.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new Ds,o=(i.buildPath===Ds.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)o[n]!==t[n]&&(o[n]=t[n]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r\u003CMs.length;++r)i[Ms[r]]=this[Ms[r]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},Ds.prototype.getDecalElement=function(){return this._decalEl},Ds.prototype._init=function(t){var e=W(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i\u003Ce.length;i++){var o=e[i],r=t[o];\\\"style\\\"===o?this.style?Z(this.style,r):this.useStyle(r):\\\"shape\\\"===o?Z(this.shape,r):bs.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},Ds.prototype.getDefaultStyle=function(){return null},Ds.prototype.getDefaultShape=function(){return{}},Ds.prototype.canBeInsideText=function(){return this.hasFill()},Ds.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if(\\\"none\\\"!==e){if(X(e))return.5\u003C(t=Kn(e,0))?Ji:.2\u003Ct?\\\"#eee\\\":Qi;if(e)return Qi}return Ji},Ds.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(X(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Kn(t,0)\u003C.4)return e}},Ds.prototype.buildPath=function(t,e,n){},Ds.prototype.pathUpdated=function(){this.__dirty&=-5},Ds.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},Ds.prototype.createPathProxy=function(){this.path=new ss(!1)},Ds.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||\\\"none\\\"===e||!(0\u003Ct.lineWidth))},Ds.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&\\\"none\\\"!==t},Ds.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||4&this.__dirty)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0\u003Cthis.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10\u003Ce)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},Ds.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10\u003Co&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),xs(n,i/o,!0,t,e)))return!0}if(this.hasFill())return xs(n,0,!1,t,e)}return!1},Ds.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},Ds.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Ds.prototype.animateShape=function(t){return this.animate(\\\"shape\\\",t)},Ds.prototype.updateDuringAnimation=function(t){\\\"style\\\"===t?this.dirtyStyle():\\\"shape\\\"===t?this.dirtyShape():this.markRedraw()},Ds.prototype.attrKV=function(t,e){\\\"shape\\\"===t?this.setShape(e):bs.prototype.attrKV.call(this,t,e)},Ds.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return\\\"string\\\"==typeof t?n[t]=e:Z(n,t),this.dirtyShape(),this},Ds.prototype.shapeChanged=function(){return!!(4&this.__dirty)},Ds.prototype.createStyle=function(t){return Rt(ws,t)},Ds.prototype._innerSaveToNormal=function(t){bs.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=Z({},this.shape))},Ds.prototype._applyStateObj=function(t,e,n,i,o,r){bs.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=Z({},n.shape),Z(a,e.shape)):(a=Z({},(i?this:n).shape),Z(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=Z({},this.shape);for(var l={},u=W(a),h=0;h\u003Cu.length;h++){var c=u[h];\\\"object\\\"==typeof a[c]?this.shape[c]=a[c]:l[c]=a[c]}this._transitionState(t,{shape:l},r)}else this.shape=a,this.dirtyShape()},Ds.prototype._mergeStates=function(t){for(var e,n=bs.prototype._mergeStates.call(this,t),i=0;i\u003Ct.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},Ds.prototype.getAnimationStyleProps=function(){return Ss},Ds.prototype.isZeroArea=function(){return!1},Ds.extend=function(n){u(o,i=Ds),o.prototype.getDefaultStyle=function(){return L(n.style)},o.prototype.getDefaultShape=function(){return L(n.shape)};var i,t,e=o;function o(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)\\\"function\\\"==typeof n[t]&&(e.prototype[t]=n[t]);return e},Ds.initDefaultProps=((e=Ds.prototype).type=\\\"path\\\",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=7)),Ds),Is=H({strokeFirst:!0,font:tt,x:0,y:0,textAlign:\\\"left\\\",textBaseline:\\\"top\\\",miterLimit:2},ws),Ts=(u(Cs,_s=Ca),Cs.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&\\\"none\\\"!==e&&0\u003Ct.lineWidth},Cs.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&\\\"none\\\"!==t},Cs.prototype.createStyle=function(t){return Rt(Is,t)},Cs.prototype.setBoundingRect=function(t){this._rect=t},Cs.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+=\\\"\\\":t=\\\"\\\",(t=Po(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Cs.initDefaultProps=void(Cs.prototype.dirtyRectTolerance=10),Cs);function Cs(){return null!==_s&&_s.apply(this,arguments)||this}function Ds(t){return bs.call(this,t)||this}Ts.prototype.type=\\\"tspan\\\";var As,ks=H({x:0,y:0},Sa),Ls={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ma.style)},Ps=(u(Os,As=Ca),Os.prototype.createStyle=function(t){return Rt(ks,t)},Os.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&\\\"string\\\"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(n=n[e=\\\"width\\\"===t?\\\"height\\\":\\\"width\\\"])?i[t]:i[t]/i[e]*n:0},Os.prototype.getWidth=function(){return this._getSize(\\\"width\\\")},Os.prototype.getHeight=function(){return this._getSize(\\\"height\\\")},Os.prototype.getAnimationStyleProps=function(){return Ls},Os.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new B(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},Os);function Os(){return null!==As&&As.apply(this,arguments)||this}Ps.prototype.type=\\\"image\\\";var Rs=Math.round;function Ns(t,e,n){var i,o,r,a,s;if(e)return i=e.x1,o=e.x2,r=e.y1,a=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=a,(s=n&&n.lineWidth)&&(Rs(2*i)===Rs(2*o)&&(t.x1=t.x2=zs(i,s,!0)),Rs(2*r)===Rs(2*a))&&(t.y1=t.y2=zs(r,s,!0)),t}function Es(t,e,n){var i,o,r,a,s;if(e)return i=e.x,o=e.y,r=e.width,a=e.height,t.x=i,t.y=o,t.width=r,t.height=a,(s=n&&n.lineWidth)&&(t.x=zs(i,s,!0),t.y=zs(o,s,!0),t.width=Math.max(zs(i+r,s,!1)-t.x,0===r?0:1),t.height=Math.max(zs(o+a,s,!1)-t.y,0===a?0:1)),t}function zs(t,e,n){var i;return e?((i=Rs(2*t))+Rs(e))%2==0?i/2:(i+(n?1:-1))/2:t}var Vs,Bs=function(){this.x=0,this.y=0,this.width=0,this.height=0},Fs={},E=(u(Gs,Vs=Q),Gs.prototype.getDefaultShape=function(){return new Bs},Gs.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y;this.subPixelOptimize?(n=(p=Es(Fs,e,this.style)).x,i=p.y,o=p.width,r=p.height,p.r=e.r,e=p):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,y=e.r,f\u003C0&&(p+=f,f=-f),g\u003C0&&(d+=g,g=-g),\\\"number\\\"==typeof y?s=l=u=h=y:y instanceof Array?1===y.length?s=l=u=h=y[0]:2===y.length?(s=u=y[0],l=h=y[1]):3===y.length?(s=y[0],l=h=y[1],u=y[2]):(s=y[0],l=y[1],u=y[2],h=y[3]):s=l=u=h=0,f\u003Cs+l&&(s*=f/(c=s+l),l*=f/c),f\u003Cu+h&&(u*=f/(c=u+h),h*=f/c),g\u003Cl+u&&(l*=g/(c=l+u),u*=g/c),g\u003Cs+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},Gs.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Gs);function Gs(t){return Vs.call(this,t)||this}E.prototype.type=\\\"rect\\\";var Ws,Hs={fill:\\\"#000\\\"},Ys={style:H({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ma.style)},z=(u(js,Ws=Ca),js.prototype.childrenRef=function(){return this._children},js.prototype.update=function(){Ws.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t\u003Cthis._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},js.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Ws.prototype.updateTransform.call(this)},js.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Ws.prototype.getLocalTransform.call(this,t)},js.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Ws.prototype.getComputedTransform.call(this)},js.prototype._updateSubTexts=function(){var t;this._childCursor=0,Js(t=this.style),lt(t.rich,Js),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},js.prototype.addSelfToZr=function(t){Ws.prototype.addSelfToZr.call(this,t);for(var e=0;e\u003Cthis._children.length;e++)this._children[e].__zr=t},js.prototype.removeSelfFromZr=function(t){Ws.prototype.removeSelfFromZr.call(this,t);for(var e=0;e\u003Cthis._children.length;e++)this._children[e].__zr=null},js.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new B(0,0,0,0),e=this._children,n=[],i=null,o=0;o\u003Ce.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},js.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Hs},js.prototype.setTextContent=function(t){},js.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},Z(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},js.prototype._mergeRich=function(t,e){for(var n=W(e),i=0;i\u003Cn.length;i++){var o=n[i];t[o]=t[o]||{},Z(t[o],e[o])}},js.prototype.getAnimationStyleProps=function(){return Ys},js.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},js.prototype._updatePlainTexts=function(){var t,e=this.style,n=e.font||tt,i=e.padding,o=function(t,e){null!=t&&(t+=\\\"\\\");var n,i=e.overflow,o=e.padding,r=e.font,a=\\\"truncate\\\"===i,s=No(r),l=P(e.lineHeight,s),u=!!e.backgroundColor,h=\\\"truncate\\\"===e.lineOverflow,c=e.width,i=(n=null==c||\\\"break\\\"!==i&&\\\"breakAll\\\"!==i?t?t.split(\\\"\\\\n\\\"):[]:t?_a(t,e.font,c,\\\"breakAll\\\"===i,0).lines:[]).length*l,p=P(e.height,i);if(p\u003Ci&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=da(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f\u003Cn.length;f++)n[f]=fa(n[f],d);for(var h=p,g=0,f=0;f\u003Cn.length;f++)g=Math.max(ko(n[f],r),g);null==c&&(c=g);a=g;return o&&(h+=o[0]+o[2],a+=o[1]+o[3],c+=o[1]+o[3]),{lines:n,height:p,outerWidth:a=u?c:a,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(nl(e),e),r=il(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,u=o.contentWidth,h=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||\\\"left\\\",y=e.verticalAlign||p.verticalAlign||\\\"top\\\",m=d,v=Ro(f,o.contentHeight,y);(r||i)&&(t=Oo(d,l,g),f=Ro(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=el(d,g,i),\\\"top\\\"===y?v+=i[0]:\\\"bottom\\\"===y&&(v-=i[2]));for(var x=0,r=!1,_=(tl((\\\"fill\\\"in e?e:(r=!0,p)).fill)),b=(Qs(\\\"stroke\\\"in e?e.stroke:a||p.autoStroke&&!r?null:(x=2,p.stroke))),w=0\u003Ce.textShadowBlur,S=null!=e.width&&(\\\"truncate\\\"===e.overflow||\\\"break\\\"===e.overflow||\\\"breakAll\\\"===e.overflow),M=o.calculatedLineHeight,I=0;I\u003Ch.length;I++){var T=this._getOrCreateChild(Ts),C=T.createStyle();T.useStyle(C),C.text=h[I],C.x=m,C.y=v,g&&(C.textAlign=g),C.textBaseline=\\\"middle\\\",C.opacity=e.opacity,C.strokeFirst=!0,w&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||\\\"transparent\\\",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=b,C.fill=_,b&&(C.lineWidth=e.lineWidth||x,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=n,Ks(C,e),v+=c,S&&T.setBoundingRect(new B(Oo(C.x,e.width,C.textAlign),Ro(C.y,M,C.textBaseline),u,M))}},js.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new ma;if(null!=t&&(t+=\\\"\\\"),t){for(var i,o=e.width,r=e.height,a=e.overflow,s=\\\"break\\\"!==a&&\\\"breakAll\\\"!==a||null==o?null:{width:o,accumWidth:0,breakAll:\\\"breakAll\\\"===a},l=ca.lastIndex=0;null!=(i=ca.exec(t));){var u=i.index;l\u003Cu&&va(n,t.substring(l,u),e,s),va(n,i[2],e,s,i[1]),l=ca.lastIndex}l\u003Ct.length&&va(n,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,f=e.padding,g=\\\"truncate\\\"===a,y=\\\"truncate\\\"===e.lineOverflow;t:for(var m=0;m\u003Cn.lines.length;m++){for(var v=n.lines[m],x=0,_=0,b=0;b\u003Cv.tokens.length;b++){var w=(A=v.tokens[b]).styleName&&e.rich[A.styleName]||{},S=A.textPadding=w.padding,M=S?S[1]+S[3]:0,I=A.font=w.font||e.font,T=(A.contentHeight=No(I),P(w.height,A.contentHeight));if(A.innerHeight=T,S&&(T+=S[0]+S[2]),A.height=T,A.lineHeight=St(w.lineHeight,e.lineHeight,T),A.align=w&&w.align||e.align,A.verticalAlign=w&&w.verticalAlign||\\\"middle\\\",y&&null!=r&&p+A.lineHeight>r){0\u003Cb?(v.tokens=v.tokens.slice(0,b),L(v,_,x),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var C,S=w.width,D=null==S||\\\"auto\\\"===S;\\\"string\\\"==typeof S&&\\\"%\\\"===S.charAt(S.length-1)?(A.percentWidth=S,c.push(A),A.contentWidth=ko(A.text,I)):(D&&(S=w.backgroundColor,S=S&&S.image)&&ha((C=void 0,S=\\\"string\\\"==typeof(h=S)?(C=aa.get(h))&&C.image:h))&&(A.width=Math.max(A.width,S.width*T/S.height)),null!=(C=g&&null!=o?o-_:null)&&C\u003CA.width?!D||C\u003CM?(A.text=\\\"\\\",A.width=A.contentWidth=0):(A.text=pa(A.text,C-M,I,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=ko(A.text,I)):A.contentWidth=ko(A.text,I)),A.width+=M,_+=A.width,w&&(x=Math.max(x,A.lineHeight))}L(v,_,x)}for(n.outerWidth=n.width=P(o,d),n.outerHeight=n.height=P(r,p),n.contentHeight=p,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),m=0;m\u003Cc.length;m++){var A,k=(A=c[m]).percentWidth;A.width=parseInt(k,10)/100*n.width}}return n;function L(t,e,n){t.width=e,t.lineHeight=n,p+=n,d=Math.max(d,e)}}(nl(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=Oo(a,i,u),u=Ro(s,o,l),h=a,c=u,p=(r&&(h+=r[3],c+=r[0]),h+n);il(t)&&this._renderBackground(t,t,a,u,i,o);for(var d=!!t.backgroundColor,f=0;f\u003Ce.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,x=g.width,_=0,b=h,w=p,S=m-1,M=void 0;_\u003Cm&&(!(M=y[_]).align||\\\"left\\\"===M.align);)this._placeToken(M,t,v,c,b,\\\"left\\\",d),x-=M.width,b+=M.width,_++;for(;0\u003C=S&&\\\"right\\\"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,\\\"right\\\",d),x-=M.width,w-=M.width,S--;for(b+=(n-(b-h)-(p-w)-x)/2;_\u003C=S;)M=y[_],this._placeToken(M,t,v,c,b+M.width/2,\\\"center\\\",d),b+=M.width,_++;c+=v}},js.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2,l=(\\\"top\\\"===l?u=i+t.height/2:\\\"bottom\\\"===l&&(u=i+n-t.height/2),!t.isLineHolder&&il(s)&&this._renderBackground(s,e,\\\"right\\\"===r?o-t.width:\\\"center\\\"===r?o-t.width/2:o,u-t.height/2,t.width,t.height),!!s.backgroundColor),h=t.textPadding,h=(h&&(o=el(o,r,h),u-=t.height/2-h[0]-t.innerHeight/2),this._getOrCreateChild(Ts)),c=h.createStyle(),p=(h.useStyle(c),this._defaultStyle),d=!1,f=0,g=tl((\\\"fill\\\"in s?s:\\\"fill\\\"in e?e:(d=!0,p)).fill),l=Qs(\\\"stroke\\\"in s?s.stroke:\\\"stroke\\\"in e?e.stroke:l||a||p.autoStroke&&!d?null:(f=2,p.stroke)),d=0\u003Cs.textShadowBlur||0\u003Ce.textShadowBlur,p=(c.text=t.text,c.x=o,c.y=u,d&&(c.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,c.shadowColor=s.textShadowColor||e.textShadowColor||\\\"transparent\\\",c.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,c.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),c.textAlign=r,c.textBaseline=\\\"middle\\\",c.font=t.font||tt,c.opacity=St(s.opacity,e.opacity,1),Ks(c,s),l&&(c.lineWidth=St(s.lineWidth,e.lineWidth,f),c.lineDash=P(s.lineDash,e.lineDash),c.lineDashOffset=e.lineDashOffset||0,c.stroke=l),g&&(c.fill=g),t.contentWidth),u=t.contentHeight;h.setBoundingRect(new B(Oo(c.x,p,c.textAlign),Ro(c.y,u,c.textBaseline),p,u))},js.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(E)).useStyle(a.createStyle()),a.style.fill=null,(u=a.shape).x=n,u.y=i,u.width=o,u.height=r,u.r=g,a.dirtyShape()),f?((l=a.style).fill=h||null,l.fillOpacity=P(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Ps)).onload=function(){y.dirtyStyle()},(u=s.style).image=h.image,u.x=n,u.y=i,u.width=o,u.height=r),c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=P(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||\\\"transparent\\\",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=St(t.opacity,e.opacity,1)},js.makeFont=function(t){var e=\\\"\\\";return(e=$s(t)?[t.fontStyle,t.fontWeight,qs(t.fontSize),t.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\"):e)&&Ct(e)||t.textFont||t.font},js),Us={left:!0,right:1,center:1},Xs={top:1,bottom:1,middle:1},Zs=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\"];function js(t){var e=Ws.call(this)||this;return e.type=\\\"text\\\",e._children=[],e._defaultStyle=Hs,e.attr(t),e}function qs(t){return\\\"string\\\"!=typeof t||-1===t.indexOf(\\\"px\\\")&&-1===t.indexOf(\\\"rem\\\")&&-1===t.indexOf(\\\"em\\\")?isNaN(+t)?\\\"12px\\\":t+\\\"px\\\":t}function Ks(t,e){for(var n=0;n\u003CZs.length;n++){var i=Zs[n],o=e[i];null!=o&&(t[i]=o)}}function $s(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Js(t){var e;t&&(t.font=z.makeFont(t),e=t.align,t.align=null==(e=\\\"middle\\\"===e?\\\"center\\\":e)||Us[e]?e:\\\"left\\\",e=t.verticalAlign,t.verticalAlign=null==(e=\\\"center\\\"===e?\\\"middle\\\":e)||Xs[e]?e:\\\"top\\\",t.padding)&&(t.padding=It(t.padding))}function Qs(t,e){return null==t||e\u003C=0||\\\"transparent\\\"===t||\\\"none\\\"===t?null:t.image||t.colorStops?\\\"#000\\\":t}function tl(t){return null==t||\\\"none\\\"===t?null:t.image||t.colorStops?\\\"#000\\\":t}function el(t,e,n){return\\\"right\\\"===e?t-n[1]:\\\"center\\\"===e?t+n[3]/2-n[1]/2:t+n[3]}function nl(t){var e=t.text;return null!=e&&(e+=\\\"\\\"),e}function il(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var $=i(),ol=function(n,i,o,t){var e;t&&((e=$(t)).dataIndex=o,e.dataType=i,e.seriesIndex=n,\\\"group\\\"===t.type)&&t.traverse(function(t){var e=$(t);e.seriesIndex=n,e.dataIndex=o,e.dataType=i})},rl=1,al={},sl=i(),ll=i(),ul=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],hl=[\\\"normal\\\",\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],cl=10,pl=\\\"highlight\\\",dl=\\\"downplay\\\",fl=\\\"select\\\",gl=\\\"unselect\\\",yl=\\\"toggleSelect\\\";function ml(t){return null!=t&&\\\"none\\\"!==t}var vl=new Tn(100);function xl(t){var e;return X(t)?((e=vl.get(t))||(e=Yn(t,-.1),vl.put(t,e)),e):vt(t)?((e=Z({},t)).colorStops=Y(t.colorStops,function(t){return{offset:t.offset,color:Yn(t.color,-.1)}}),e):t}function _l(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function bl(t){_l(t,\\\"emphasis\\\",2)}function wl(t){2===t.hoverState&&_l(t,\\\"normal\\\",0)}function Sl(t){_l(t,\\\"blur\\\",1)}function Ml(t){1===t.hoverState&&_l(t,\\\"normal\\\",0)}function Il(t){t.selected=!0}function Tl(t){t.selected=!1}function Cl(t,e,n){e(t,n)}function Dl(t,e,n){Cl(t,e,n),t.isGroup&&t.traverse(function(t){Cl(t,e,n)})}function Al(t,e){switch(e){case\\\"emphasis\\\":t.hoverState=2;break;case\\\"normal\\\":t.hoverState=0;break;case\\\"blur\\\":t.hoverState=1;break;case\\\"select\\\":t.selected=!0}}function kl(t,e){var n,i,o,r,a,s,l,u=this.states[t];if(this.style){if(\\\"emphasis\\\"===t)return i=this,o=u,s=e&&0\u003C=G(e,\\\"select\\\"),l=!1,i instanceof Q&&(r=sl(i),a=s&&r.selectFill||r.normalFill,s=s&&r.selectStroke||r.normalStroke,ml(a)||ml(s))&&(\\\"inherit\\\"===(r=(o=o||{}).style||{}).fill?(l=!0,o=Z({},o),(r=Z({},r)).fill=a):!ml(r.fill)&&ml(a)?(l=!0,o=Z({},o),(r=Z({},r)).fill=xl(a)):!ml(r.stroke)&&ml(s)&&(l||(o=Z({},o),r=Z({},r)),r.stroke=xl(s)),o.style=r),o&&null==o.z2&&(l||(o=Z({},o)),a=i.z2EmphasisLift,o.z2=i.z2+(null!=a?a:cl)),o;if(\\\"blur\\\"===t)return e=t,i=u,s=0\u003C=G((o=this).currentStates,e),r=o.style.opacity,l=s?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a\u003Ce.length;a++){var s=e[a],l=o[s];r[s]=null==l?i[s]:l}for(a=0;a\u003Ct.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)\u003C0&&\\\"style\\\"===u.targetName&&u.saveTo(r,e)}return r}(o,[\\\"opacity\\\"],e,{opacity:1}),null==(a=(i=i||{}).style||{}).opacity&&(i=Z({},i),a=Z({opacity:s?r:.1*l.opacity},a),i.style=a),i;if(\\\"select\\\"===t)return e=this,(t=u)&&null==t.z2&&(t=Z({},t),n=e.z2SelectLift,t.z2=e.z2+(null!=n?n:9)),t}return u}function Ll(t){t.stateProxy=kl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=kl),n&&(n.stateProxy=kl)}function Pl(t,e){Fl(t,e)||t.__highByOuter||Dl(t,bl)}function Ol(t,e){Fl(t,e)||t.__highByOuter||Dl(t,wl)}function Rl(t,e){t.__highByOuter|=1\u003C\u003C(e||0),Dl(t,bl)}function Nl(t,e){(t.__highByOuter&=~(1\u003C\u003C(e||0)))||Dl(t,wl)}function El(t){Dl(t,Sl)}function zl(t){Dl(t,Ml)}function Vl(t){Dl(t,Il)}function Bl(t){Dl(t,Tl)}function Fl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Gl(r){var e=r.getModel(),a=[],s=[];e.eachComponent(function(t,e){var n=ll(e),i=\\\"series\\\"===t,o=i?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e);i||s.push(o),n.isBlured&&(o.group.traverse(function(t){Ml(t)}),i)&&a.push(e),n.isBlured=!1}),lt(s,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(a,!1,e)})}function Wl(t,r,a,s){var l,u,h,i=s.getModel();function c(t,e){for(var n=0;n\u003Ce.length;n++){var i=t.getItemGraphicEl(e[n]);i&&zl(i)}}a=a||\\\"coordinateSystem\\\",null!=t&&r&&\\\"none\\\"!==r&&(l=i.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],i.eachSeries(function(t){var e=l===t,n=t.coordinateSystem;if(n&&n.master&&(n=n.master),!(\\\"series\\\"===a&&!e||\\\"coordinateSystem\\\"===a&&!(n&&u?n===u:e)||\\\"series\\\"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){Sl(t)}),ht(r))c(t.getData(),r);else if(R(r))for(var i=W(r),o=0;o\u003Ci.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t),ll(t).isBlured=!0}}),i.eachComponent(function(t,e){var n;\\\"series\\\"!==t&&(n=s.getViewOfComponentModel(e))&&n.toggleBlurSeries&&n.toggleBlurSeries(h,!0,i)}))}function Hl(t,e,n){var i;null!=t&&null!=e&&(i=n.getModel().getComponent(t,e))&&(ll(i).isBlured=!0,i=n.getViewOfComponentModel(i))&&i.focusBlurEnabled&&i.group.traverse(function(t){Sl(t)})}function Yl(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||\\\"series\\\"===t||null==e||null==n)return o;var r=i.getModel().getComponent(t,e);if(!r)return o;r=i.getViewOfComponentModel(r);if(!r||!r.findHighDownDispatchers)return o;for(var a,s=r.findHighDownDispatchers(n),l=0;l\u003Cs.length;l++)if(\\\"self\\\"===$(s[l]).focus){a=!0;break}return{focusSelf:a,dispatchers:s}}function Ul(i){lt(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?Vl:Bl)(t)})})}function Xl(t,e,n){Jl(t,!0),Dl(t,Ll),jl(t,e,n)}function Zl(t,e,n,i){i?Jl(t,!1):Xl(t,e,n)}function jl(t,e,n){var i=$(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var ql=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],Kl={itemStyle:\\\"getItemStyle\\\",lineStyle:\\\"getLineStyle\\\",areaStyle:\\\"getAreaStyle\\\"};function $l(t,e,n,i){n=n||\\\"itemStyle\\\";for(var o=0;o\u003Cql.length;o++){var r=ql[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[Kl[n]]()}}function Jl(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Ql(t){return!(!t||!t.__highDownDispatcher)}function tu(t){var e=t.type;return e===fl||e===gl||e===yl}function eu(t){var e=t.type;return e===pl||e===dl}var nu=ss.CMD,iu=[[],[],[]],ou=Math.sqrt,ru=Math.atan2;function au(t,e){if(e){for(var n,i,o,r,a=t.data,s=t.len(),l=nu.M,u=nu.C,h=nu.L,c=nu.R,p=nu.A,d=nu.Q,f=0,g=0;f\u003Cs;){switch(n=a[f++],g=f,i=0,n){case l:case h:i=1;break;case u:i=3;break;case d:i=2;break;case p:var y=e[4],m=e[5],v=ou(e[0]*e[0]+e[1]*e[1]),x=ou(e[2]*e[2]+e[3]*e[3]),_=ru(-e[1]/x,e[0]/v);a[f]*=v,a[f++]+=y,a[f]*=x,a[f++]+=m,a[f++]*=v,a[f++]*=x,a[f++]+=_,a[f++]+=_,g=f+=2;break;case c:r[0]=a[f++],r[1]=a[f++],ee(r,r,e),a[g++]=r[0],a[g++]=r[1],r[0]+=a[f++],r[1]+=a[f++],ee(r,r,e),a[g++]=r[0],a[g++]=r[1]}for(o=0;o\u003Ci;o++){var b=iu[o];b[0]=a[f++],b[1]=a[f++],ee(b,b,e),a[g++]=b[0],a[g++]=b[1]}}t.increaseVersion()}}var su=Math.sqrt,lu=Math.sin,uu=Math.cos,hu=Math.PI;function cu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function pu(t,e){return(t[0]*e[0]+t[1]*e[1])/(cu(t)*cu(e))}function du(t,e){return(t[0]*e[1]\u003Ct[1]*e[0]?-1:1)*Math.acos(pu(t,e))}function fu(t,e,n,i,o,r,a,s,l,u,h){var c=l*(hu/180),p=uu(c)*(t-n)/2+lu(c)*(e-i)/2,d=-1*lu(c)*(t-n)/2+uu(c)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s),f=(1\u003Cf&&(a*=su(f),s*=su(f)),(o===r?-1:1)*su((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0),g=f*a*d/s,f=f*-s*p/a,y=(t+n)/2+uu(c)*g-lu(c)*f,m=(e+i)/2+lu(c)*g+uu(c)*f,v=du([1,0],[(p-g)/a,(d-f)/s]),x=[(p-g)/a,(d-f)/s],p=[(-1*p-g)/a,(-1*d-f)/s],g=du(x,p);pu(x,p)\u003C=-1&&(g=hu),(g=1\u003C=pu(x,p)?0:g)\u003C0&&(d=Math.round(g/hu*1e6)/1e6,g=2*hu+d%2*hu),h.addData(u,y,m,a,s,v,g,c,r)}var gu,yu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,mu=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g,vu=(u(xu,gu=Q),xu.prototype.applyTransform=function(t){},xu);function xu(){return null!==gu&&gu.apply(this,arguments)||this}function _u(t){return null!=t.setData}function bu(t,e){var n=function(t){var e=new ss;if(t){var n,i=0,o=0,r=i,a=o,s=ss.CMD,l=t.match(yu);if(l){for(var u=0;u\u003Cl.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(mu)||[],f=d.length,g=0;g\u003Cf;g++)d[g]=parseFloat(d[g]);for(var y=0;y\u003Cf;){var m=void 0,v=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=o,T=void 0,C=void 0;switch(c){case\\\"l\\\":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case\\\"L\\\":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case\\\"m\\\":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c=\\\"l\\\";break;case\\\"M\\\":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c=\\\"L\\\";break;case\\\"h\\\":i+=d[y++],p=s.L,e.addData(p,i,o);break;case\\\"H\\\":i=d[y++],p=s.L,e.addData(p,i,o);break;case\\\"v\\\":o+=d[y++],p=s.L,e.addData(p,i,o);break;case\\\"V\\\":o=d[y++],p=s.L,e.addData(p,i,o);break;case\\\"C\\\":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case\\\"c\\\":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case\\\"S\\\":m=i,v=o,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],v+=o-C[T-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,I,i,o);break;case\\\"s\\\":m=i,v=o,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],v+=o-C[T-3]),p=s.C,M=i+d[y++],I=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,I,i,o);break;case\\\"Q\\\":M=d[y++],I=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case\\\"q\\\":M=d[y++]+i,I=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case\\\"T\\\":m=i,v=o,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],v+=o-C[T-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case\\\"t\\\":m=i,v=o,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],v+=o-C[T-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case\\\"A\\\":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],fu(M=i,I=o,i=d[y++],o=d[y++],w,S,x,_,b,p=s.A,e);break;case\\\"a\\\":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],fu(M=i,I=o,i+=d[y++],o+=d[y++],w,S,x,_,b,p=s.A,e)}}\\\"z\\\"!==c&&\\\"Z\\\"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}e.toStatic()}}return e}(t),i=Z({},e);return i.buildPath=function(t){var e;_u(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):n.rebuildPath(e=t,1)},i.applyTransform=function(t){au(n,t),this.dirtyShape()},i}function wu(t,e){return new vu(bu(t,e))}function Su(t,e){e=e||{};var n=new Q;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?au(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Mu,Iu=function(){this.cx=0,this.cy=0,this.r=0},Tu=(u(Cu,Mu=Q),Cu.prototype.getDefaultShape=function(){return new Iu},Cu.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},Cu);function Cu(t){return Mu.call(this,t)||this}Tu.prototype.type=\\\"circle\\\";var Du,Au=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ku=(u(Lu,Du=Q),Lu.prototype.getDefaultShape=function(){return new Au},Lu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,r=e.ry,a=.5522848*o,s=.5522848*r;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-s,n-a,i-r,n,i-r),t.bezierCurveTo(n+a,i-r,n+o,i-s,n+o,i),t.bezierCurveTo(n+o,i+s,n+a,i+r,n,i+r),t.bezierCurveTo(n-a,i+r,n-o,i+s,n-o,i),t.closePath()},Lu);function Lu(t){return Du.call(this,t)||this}ku.prototype.type=\\\"ellipse\\\";var Pu=Math.PI,Ou=2*Pu,Ru=Math.sin,Nu=Math.cos,Eu=Math.acos,zu=Math.atan2,Vu=Math.abs,Bu=Math.sqrt,Fu=Math.max,Gu=Math.min,Wu=1e-4;function Hu(t,e,n,i,o,r,a){var s=t-n,l=e-i,u=(a?r:-r)/Bu(s*s+l*l),l=u*l,u=-u*s,s=t+l,h=e+u,c=n+l,p=i+u,d=(s+c)/2,f=(h+p)/2,g=c-s,y=p-h,m=g*g+y*y,v=o-r,s=s*p-c*h,p=(y\u003C0?-1:1)*Bu(Fu(0,v*v*m-s*s)),c=(s*y-g*p)/m,h=(-s*g-y*p)/m,x=(s*y+g*p)/m,s=(-s*g+y*p)/m,g=c-d,y=h-f,p=x-d,m=s-f;return p*p+m*m\u003Cg*g+y*y&&(c=x,h=s),{cx:c,cy:h,x0:-l,y0:-u,x1:c*(o/v-1),y1:h*(o/v-1)}}var Yu,Uu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Xu=(u(Zu,Yu=Q),Zu.prototype.getDefaultShape=function(){return new Uu},Zu.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,x,_,b,w,S,M,I,T,C,D,A,k,L,P,O,R,N;t=t,O=Fu((e=e).r,0),R=Fu(e.r0||0,0),((N=0\u003CO)||0\u003CR)&&(N||(O=R,R=0),O\u003CR&&(N=O,O=R,R=N),N=e.startAngle,n=e.endAngle,isNaN(N)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,w=Vu(n-N),Wu\u003C(a=Ou\u003Cw&&w%Ou)&&(w=a),Wu\u003CO?Ou-Wu\u003Cw?(t.moveTo(i+O*Nu(N),o+O*Ru(N)),t.arc(i,o,O,N,n,!r),Wu\u003CR&&(t.moveTo(i+R*Nu(n),o+R*Ru(n)),t.arc(i,o,R,n,N,r))):(g=f=d=p=M=S=c=h=D=C=T=I=u=l=s=a=void 0,y=O*Nu(N),m=O*Ru(N),v=R*Nu(n),x=R*Ru(n),(_=Wu\u003Cw)&&((b=e.cornerRadius)&&(a=(b=function(t){if(U(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(b))[0],s=b[1],l=b[2],u=b[3]),b=Vu(O-R)/2,I=Gu(b,l),T=Gu(b,u),C=Gu(b,a),D=Gu(b,s),S=h=Fu(I,T),M=c=Fu(C,D),Wu\u003Ch||Wu\u003Cc)&&(p=O*Nu(n),d=O*Ru(n),f=R*Nu(N),g=R*Ru(N),w\u003CPu)&&((b=function(){var t=f-y,e=g-m,n=v-p,i=x-d,o=i*t-n*e;if(!(o*o\u003CWu))return[y+(o=(n*(m-d)-i*(y-p))/o)*t,m+o*e]}())&&(I=y-b[0],T=m-b[1],C=p-b[0],D=d-b[1],w=1/Ru(Eu((I*C+T*D)/(Bu(I*I+T*T)*Bu(C*C+D*D)))/2),I=Bu(b[0]*b[0]+b[1]*b[1]),S=Gu(h,(O-I)/(1+w)),M=Gu(c,(R-I)/(w-1)))),_?Wu\u003CS?(A=Gu(l,S),k=Gu(u,S),L=Hu(f,g,y,m,O,A,r),P=Hu(p,d,v,x,O,k,r),t.moveTo(i+L.cx+L.x0,o+L.cy+L.y0),S\u003Ch&&A===k?t.arc(i+L.cx,o+L.cy,S,zu(L.y0,L.x0),zu(P.y0,P.x0),!r):(0\u003CA&&t.arc(i+L.cx,o+L.cy,A,zu(L.y0,L.x0),zu(L.y1,L.x1),!r),t.arc(i,o,O,zu(L.cy+L.y1,L.cx+L.x1),zu(P.cy+P.y1,P.cx+P.x1),!r),0\u003Ck&&t.arc(i+P.cx,o+P.cy,k,zu(P.y1,P.x1),zu(P.y0,P.x0),!r))):(t.moveTo(i+y,o+m),t.arc(i,o,O,N,n,!r)):t.moveTo(i+y,o+m),Wu\u003CR&&_?Wu\u003CM?(A=Gu(a,M),L=Hu(v,x,p,d,R,-(k=Gu(s,M)),r),P=Hu(y,m,f,g,R,-A,r),t.lineTo(i+L.cx+L.x0,o+L.cy+L.y0),M\u003Cc&&A===k?t.arc(i+L.cx,o+L.cy,M,zu(L.y0,L.x0),zu(P.y0,P.x0),!r):(0\u003Ck&&t.arc(i+L.cx,o+L.cy,k,zu(L.y0,L.x0),zu(L.y1,L.x1),!r),t.arc(i,o,R,zu(L.cy+L.y1,L.cx+L.x1),zu(P.cy+P.y1,P.cx+P.x1),r),0\u003CA&&t.arc(i+P.cx,o+P.cy,A,zu(P.y1,P.x1),zu(P.y0,P.x0),!r))):(t.lineTo(i+v,o+x),t.arc(i,o,R,n,N,r)):t.lineTo(i+v,o+x)):t.moveTo(i,o),t.closePath()))},Zu.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Zu);function Zu(t){return Yu.call(this,t)||this}Xu.prototype.type=\\\"sector\\\";var ju,qu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Ku=(u($u,ju=Q),$u.prototype.getDefaultShape=function(){return new qu},$u.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},$u);function $u(t){return ju.call(this,t)||this}function Ju(t,e,n){var i=e.smooth,o=e.points;if(o&&2\u003C=o.length){if(i){var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p\u003Cd;p++)ne(h,h,t[p]),ie(c,c,t[p]);ne(h,h,i[0]),ie(c,c,i[1])}for(p=0,d=t.length;p\u003Cd;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Gt(t[p]));continue}o=t[p-1],r=t[p+1]}Ut(s,r,o),jt(s,s,e);var g=Kt(f,o),y=Kt(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),jt(l,s,-g),jt(u,s,y),Ht([],f,l)),g=Ht([],f,u);i&&(ie(m,m,h),ne(m,m,c),ie(g,g,h),ne(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s\u003C(n?a:a-1);s++){var l=r[2*s],u=r[2*s+1],h=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s\u003Cc;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}Ku.prototype.type=\\\"ring\\\";var Qu,th=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},eh=(u(nh,Qu=Q),nh.prototype.getDefaultShape=function(){return new th},nh.prototype.buildPath=function(t,e){Ju(t,e,!0)},nh);function nh(t){return Qu.call(this,t)||this}eh.prototype.type=\\\"polygon\\\";var ih,oh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},rh=(u(ah,ih=Q),ah.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},ah.prototype.getDefaultShape=function(){return new oh},ah.prototype.buildPath=function(t,e){Ju(t,e,!1)},ah);function ah(t){return ih.call(this,t)||this}rh.prototype.type=\\\"polyline\\\";var sh,lh={},uh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},hh=(u(ch,sh=Q),ch.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},ch.prototype.getDefaultShape=function(){return new uh},ch.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=Ns(lh,e,this.style)).x1,i=r.y1,o=r.x2,r):(n=e.x1,i=e.y1,o=e.x2,e)).y2;var n,i,o,r,a=e.percent;0!==a&&(t.moveTo(n,i),a\u003C1&&(o=n*(1-a)+o*a,r=i*(1-a)+r*a),t.lineTo(o,r))},ch.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},ch);function ch(t){return sh.call(this,t)||this}hh.prototype.type=\\\"line\\\";var ph=[],dh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function fh(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?cn:hn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?cn:hn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?mn:yn)(t.x1,t.cpx1,t.x2,e),(n?mn:yn)(t.y1,t.cpy1,t.y2,e)]}u(mh,gh=Q),mh.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},mh.prototype.getDefaultShape=function(){return new dh},mh.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,h=e.percent;0!==h&&(t.moveTo(n,i),null==l||null==u?(h\u003C1&&(xn(n,a,o,h,ph),a=ph[1],o=ph[2],xn(i,s,r,h,ph),s=ph[1],r=ph[2]),t.quadraticCurveTo(a,s,o,r)):(h\u003C1&&(fn(n,a,l,o,h,ph),a=ph[1],l=ph[2],o=ph[3],fn(i,s,u,r,h,ph),s=ph[1],u=ph[2],r=ph[3]),t.bezierCurveTo(a,s,l,u,o,r)))},mh.prototype.pointAt=function(t){return fh(this.shape,t,!1)},mh.prototype.tangentAt=function(t){var e=fh(this.shape,t,!0);return qt(e,e)};var gh,yh=mh;function mh(t){return gh.call(this,t)||this}yh.prototype.type=\\\"bezier-curve\\\";var vh,xh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},_h=(u(bh,vh=Q),bh.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},bh.prototype.getDefaultShape=function(){return new xh},bh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(r),u=Math.sin(r);t.moveTo(l*o+n,u*o+i),t.arc(n,i,o,r,a,!s)},bh);function bh(t){return vh.call(this,t)||this}_h.prototype.type=\\\"arc\\\";u(Gh,Ih=Q),Gh.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n\u003Ct.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},Gh.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n\u003Ct.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},Gh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i\u003Cn.length;i++)n[i].buildPath(t,n[i].shape,!0)},Gh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e\u003Ct.length;e++)t[e].pathUpdated()},Gh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Q.prototype.getBoundingRect.call(this)};var wh,Sh,Mh,Ih,Th=Gh,e=(Fh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},Fh),Ch=(u(Bh,Mh=e),Bh),Dh=(u(Vh,Sh=e),Vh),Ah=[0,0],kh=[0,0],Lh=new V,Ph=new V,Oh=(zh.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,s=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,s),n[3].set(o,s),e)for(var l=0;l\u003C4;l++)n[l].transform(e);for(V.sub(i[0],n[1],n[0]),V.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l\u003C2;l++)this._origin[l]=i[l].dot(n[0])},zh.prototype.intersect=function(t,e){var n=!0,i=!e;return Lh.set(1/0,1/0),Ph.set(0,0),!this._intersectCheckOneSide(this,t,Lh,Ph,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Lh,Ph,i,-1)&&(n=!1,i)||i||V.copy(e,n?Lh:Ph),n},zh.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s\u003C2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Ah),this._getProjMinMaxOnAxis(s,e._corners,kh),Ah[1]\u003Ckh[0]||kh[1]\u003CAh[0]){if(a=!1,o)return a;var u=Math.abs(kh[0]-Ah[1]),h=Math.abs(Ah[0]-kh[1]);Math.min(u,h)>i.len()&&(u\u003Ch?V.scale(i,l,-u*r):V.scale(i,l,h*r))}else n&&(u=Math.abs(kh[0]-Ah[1]),h=Math.abs(Ah[0]-kh[1]),Math.min(u,h)\u003Cn.len())&&(u\u003Ch?V.scale(n,l,u*r):V.scale(n,l,-h*r))}return a},zh.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l\u003Ce.length;l++)var u=e[l].dot(i)+o[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},zh),Rh=[],e=(u(Eh,wh=Ca),Eh.prototype.traverse=function(t,e){t.call(e,this)},Eh.prototype.useStyle=function(){this.style={}},Eh.prototype.getCursor=function(){return this._cursor},Eh.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Eh.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Eh.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Eh.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Eh.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n\u003Ct.length;n++)this.addDisplayable(t[n],e)},Eh.prototype.getDisplayables=function(){return this._displayables},Eh.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Eh.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e\u003Cthis._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e\u003Cthis._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Eh.prototype.update=function(){this.updateTransform();for(var t,e=this._cursor;e\u003Cthis._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e\u003Cthis._temporaryDisplayables.length;e++)(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null},Eh.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new B(1/0,1/0,-1/0,-1/0),e=0;e\u003Cthis._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Rh)),t.union(i)}this._rect=t}return this._rect},Eh.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i\u003Cthis._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},Eh),Nh=i();function Eh(){var t=null!==wh&&wh.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}function zh(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n\u003C4;n++)this._corners[n]=new V;for(n=0;n\u003C2;n++)this._axes[n]=new V;t&&this.fromBoundingRect(t,e)}function Vh(t,e,n,i,o){var r=Sh.call(this,i)||this;return r.x=null==t?.5:t,r.y=null==e?.5:e,r.r=null==n?.5:n,r.type=\\\"radial\\\",r.global=o||!1,r}function Bh(t,e,n,i,o,r){var a=Mh.call(this,o)||this;return a.x=null==t?0:t,a.y=null==e?0:e,a.x2=null==n?1:n,a.y2=null==i?0:i,a.type=\\\"linear\\\",a.global=r||!1,a}function Fh(t){this.colorStops=t||[]}function Gh(){var t=null!==Ih&&Ih.apply(this,arguments)||this;return t.type=\\\"compound\\\",t}function Wh(t,e,n,i,o){e&&e.ecModel&&(r=(r=e.ecModel.getUpdatePayload())&&r.animation);var r,a,s,l,u=\\\"update\\\"===t;return e&&e.isAnimationEnabled()?(l=s=a=void 0,l=i?(a=P(i.duration,200),s=P(i.easing,\\\"cubicOut\\\"),0):(a=e.getShallow(u?\\\"animationDurationUpdate\\\":\\\"animationDuration\\\"),s=e.getShallow(u?\\\"animationEasingUpdate\\\":\\\"animationEasing\\\"),e.getShallow(u?\\\"animationDelayUpdate\\\":\\\"animationDelay\\\")),A(l=r&&(null!=r.duration&&(a=r.duration),null!=r.easing&&(s=r.easing),null!=r.delay)?r.delay:l)&&(l=l(n,o)),{duration:(a=A(a)?a(n):a)||0,delay:l,easing:s}):null}function Hh(t,e,n,i,o,r,a){var s=!1,l=(A(o)?(a=r,r=o,o=null):R(o)&&(r=o.cb,a=o.during,s=o.isFrom,u=o.removeOpt,o=o.dataIndex),\\\"leave\\\"===t),u=(l||e.stopAnimation(\\\"leave\\\"),Wh(t,i,o,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null));u&&0\u003Cu.duration?(u={duration:u.duration,delay:u.delay||0,easing:u.easing,done:r,force:!!r||!!a,setToFinal:!l,scope:t,during:a},s?e.animateFrom(n,u):e.animateTo(n,u)):(e.stopAnimation(),s||e.attr(n),a&&a(1),r&&r())}function k(t,e,n,i,o,r){Hh(\\\"update\\\",t,e,n,i,o,r)}function Yh(t,e,n,i,o,r){Hh(\\\"enter\\\",t,e,n,i,o,r)}function Uh(t){if(!t.__zr)return!0;for(var e=0;e\u003Ct.animators.length;e++)if(\\\"leave\\\"===t.animators[e].scope)return!0;return!1}function Xh(t,e,n,i,o,r){Uh(t)||Hh(\\\"leave\\\",t,e,n,i,o,r)}function Zh(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Xh(t,{style:{opacity:0}},e,n,i)}function jh(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Zh(t,e,n,i)}):Zh(t,e,n,i)}function qh(t){Nh(t).oldStyle=t.style}var Kh=Math.max,$h=Math.min,Jh={};function Qh(t){return Q.extend(t)}function tc(t,e){return o=bu(t,e),u(n,i=vu),n;function n(t){var e=i.call(this,t)||this;return e.applyTransform=o.applyTransform,e.buildPath=o.buildPath,e}var i,o}function ec(t,e){Jh[t]=e}function nc(t){if(Jh.hasOwnProperty(t))return Jh[t]}function ic(t,e,n,i){var o=wu(t,e);return n&&(\\\"center\\\"===i&&(n=rc(n,o.getBoundingRect())),sc(o,n)),o}function oc(t,n,i){var o=new Ps({style:{image:t,x:n.x,y:n.y,width:n.width,height:n.height},onload:function(t){var e;\\\"center\\\"===i&&(e={width:t.width,height:t.height},o.setStyle(rc(n,e)))}});return o}function rc(t,e){var n=e.width/e.height,i=t.height*n,n=i\u003C=t.width?t.height:(i=t.width)/n;return{x:t.x+t.width/2-i/2,y:t.y+t.height/2-n/2,width:i,height:n}}var ac=function(t,e){for(var n=[],i=t.length,o=0;o\u003Ci;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}var a=new Q(e);return a.createPathProxy(),a.buildPath=function(t){var e;_u(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},a};function sc(t,e){var n;t.applyTransform&&(n=t.getBoundingRect().calculateTransform(e),t.applyTransform(n))}var lc=zs;function uc(t,e){for(var n=to([]);t&&t!==e;)no(n,t.getLocalTransform(),n),t=t.parent;return n}function hc(t,e,n){return e&&!ht(e)&&(e=go.getLocalTransform(e)),ee([],t,e=n?ao([],e):e)}function cc(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=hc([\\\"left\\\"===t?-i:\\\"right\\\"===t?i:0,\\\"top\\\"===t?-o:\\\"bottom\\\"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0\u003Ci[0]?\\\"right\\\":\\\"left\\\":0\u003Ci[1]?\\\"bottom\\\":\\\"top\\\"}function pc(t){return!t.isGroup}function dc(t,e,i){var n,o;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=Z({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){pc(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;pc(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),k(t,n,i,$(t).dataIndex))}))}function fc(t,i){return Y(t,function(t){var e=t[0],e=Kh(e,i.x),n=(e=$h(e,i.x+i.width),t[1]),n=Kh(n,i.y);return[e,$h(n,i.y+i.height)]})}function gc(t,e){var n=Kh(t.x,e.x),i=$h(t.x+t.width,e.x+e.width),o=Kh(t.y,e.y),r=$h(t.y+t.height,e.y+e.height);if(n\u003C=i&&o\u003C=r)return{x:n,y:o,width:i-n,height:r-o}}function yc(t,e,n){var i=Z({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf(\\\"image://\\\")?(o.image=t.slice(8),H(o,n),new Ps(i)):ic(t.replace(\\\"path://\\\",\\\"\\\"),i,n,\\\"center\\\")}function mc(t,e,n,i,o){for(var r=0,a=o[o.length-1];r\u003Co.length;r++){var s=o[r];if(vc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function vc(t,e,n,i,o,r,a,s){var l,u=n-t,h=i-e,c=a-o,p=s-r,d=c*h-u*p;return!(d\u003C=1e-6&&-1e-6\u003C=d||(u=((l=t-o)*h-u*(h=e-r))/d)\u003C0||1\u003Cu||(u=(l*p-c*h)/d)\u003C0||1\u003Cu)}function xc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=X(e)?{formatter:e}:e,o=n.mainType,n=n.componentIndex,r={componentType:o,name:i,$vars:[\\\"name\\\"]},a=(r[o+\\\"Index\\\"]=n,t.formatterParamsExtra),s=(a&<(W(a),function(t){q(r,t)||(r[t]=a[t],r.$vars.push(t))}),$(t.el));s.componentMainType=o,s.componentIndex=n,s.tooltipConfig={name:i,option:H({content:i,formatterParams:r},e)}}function _c(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function bc(t,e){if(t)if(U(t))for(var n=0;n\u003Ct.length;n++)_c(t[n],e);else _c(t,e)}ec(\\\"circle\\\",Tu),ec(\\\"ellipse\\\",ku),ec(\\\"sector\\\",Xu),ec(\\\"ring\\\",Ku),ec(\\\"polygon\\\",eh),ec(\\\"polyline\\\",rh),ec(\\\"rect\\\",E),ec(\\\"line\\\",hh),ec(\\\"bezierCurve\\\",yh),ec(\\\"arc\\\",_h);var wc=Object.freeze({__proto__:null,updateProps:k,initProps:Yh,removeElement:Xh,removeElementWithFadeOut:jh,isElementRemoved:Uh,extendShape:Qh,extendPath:tc,registerShape:ec,getShapeClass:nc,makePath:ic,makeImage:oc,mergePath:ac,resizePath:sc,subPixelOptimizeLine:function(t){return Ns(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return Es(t.shape,t.shape,t.style),t},subPixelOptimize:lc,getTransform:uc,applyTransform:hc,transformDirection:cc,groupTransition:dc,clipPointsByRect:fc,clipRectByRect:gc,createIcon:yc,linePolygonIntersect:mc,lineLineIntersect:vc,setTooltipConfig:xc,traverseElements:bc,Group:K,Image:Ps,Text:z,Circle:Tu,Ellipse:ku,Sector:Xu,Ring:Ku,Polygon:eh,Polyline:rh,Rect:E,Line:hh,BezierCurve:yh,Arc:_h,IncrementalDisplayable:e,CompoundPath:Th,LinearGradient:Ch,RadialGradient:Dh,BoundingRect:B,OrientedBoundingRect:Oh,Point:V,Path:Q}),Sc={};function Mc(t,e){for(var n=0;n\u003Cul.length;n++){var i=ul[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function Ic(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,\\\"normal\\\",null,a,s&&s.get(\\\"formatter\\\"),null!=n?{interpolatedValue:n}:null):i)?A(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u\u003Cul.length;u++){var h=ul[u],c=e[h];l[h]=P(o?o.getFormattedLabel(r,h,null,a,c&&c.get(\\\"formatter\\\")):null,i)}return l}function Tc(t,n,i,e){i=i||Sc;for(var o=t instanceof z,r=!1,a=0;a\u003Chl.length;a++)if((p=n[hl[a]])&&p.getShallow(\\\"show\\\")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new z,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Ic(i,n),u=n.normal,h=!!u.getShallow(\\\"show\\\"),c=Dc(u,e&&e.normal,i,!1,!o);for(c.text=l.normal,o||t.setTextConfig(Ac(u,i,!1)),a=0;a\u003Cul.length;a++){var p,d,f,g=ul[a];(p=n[g])&&(d=s.ensureState(g),(f=!!P(p.getShallow(\\\"show\\\"),h))!=h&&(d.ignore=!f),d.style=Dc(p,e&&e[g],i,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Ac(p,i,!0)))}s.silent=!!u.getShallow(\\\"silent\\\"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),i.enableTextSetter&&(Nc(s).setLabelText=function(t){var e=Ic(i,n,t);Mc(s,e)})}else s&&(s.ignore=!0);t.dirty()}function Cc(t,e){for(var n={normal:t.getModel(e=e||\\\"label\\\")},i=0;i\u003Cul.length;i++){var o=ul[i];n[o]=t.getModel([o,e])}return n}function Dc(t,e,n,i,o){var r={},a=r,s=t,l=0,u=i,h=o;l=n||Sc;var c,p,d=s.ecModel,f=d&&d.option.textStyle,g=function(t){for(;t&&t!==t.ecModel;){var e=(t.option||Sc).rich;if(e)for(var n=n||{},i=W(e),o=0;o\u003Ci.length;o++)n[i[o]]=1;t=t.parentModel}return n}(s);if(g)for(var y in c={},g)g.hasOwnProperty(y)&&(p=s.getModel([\\\"rich\\\",y]),Oc(c[y]={},p,f,l,u,h,!1,!0));return c&&(a.rich=c),(d=s.get(\\\"overflow\\\"))&&(a.overflow=d),null!=(d=s.get(\\\"minMargin\\\"))&&(a.margin=d),Oc(a,s,f,l,u,h,!0,!1),e&&Z(r,e),r}function Ac(t,e,n){e=e||{};var i,o={},r=t.getShallow(\\\"rotate\\\"),a=P(t.getShallow(\\\"distance\\\"),n?null:5),s=t.getShallow(\\\"offset\\\");return null!=(i=\\\"outside\\\"===(i=t.getShallow(\\\"position\\\")||(n?null:\\\"inside\\\"))?e.defaultOutsidePosition||\\\"top\\\":i)&&(o.position=i),null!=s&&(o.offset=s),null!=r&&(r*=Math.PI/180,o.rotation=r),null!=a&&(o.distance=a),o.outsideFill=\\\"inherit\\\"===t.get(\\\"color\\\")?e.inheritColor||null:\\\"auto\\\",o}var kc=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"textShadowColor\\\",\\\"textShadowBlur\\\",\\\"textShadowOffsetX\\\",\\\"textShadowOffsetY\\\"],Lc=[\\\"align\\\",\\\"lineHeight\\\",\\\"width\\\",\\\"height\\\",\\\"tag\\\",\\\"verticalAlign\\\"],Pc=[\\\"padding\\\",\\\"borderWidth\\\",\\\"borderRadius\\\",\\\"borderDashOffset\\\",\\\"backgroundColor\\\",\\\"borderColor\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"];function Oc(t,e,n,i,o,r,a,s){n=!o&&n||Sc;var l=i&&i.inheritColor,u=e.getShallow(\\\"color\\\"),h=e.getShallow(\\\"textBorderColor\\\"),c=P(e.getShallow(\\\"opacity\\\"),n.opacity),u=(\\\"inherit\\\"!==u&&\\\"auto\\\"!==u||(u=l||null),\\\"inherit\\\"!==h&&\\\"auto\\\"!==h||(h=l||null),r||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),P(e.getShallow(\\\"textBorderWidth\\\"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),P(e.getShallow(\\\"textBorderType\\\"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),P(e.getShallow(\\\"textBorderDashOffset\\\"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=o||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p\u003Ckc.length;p++){var d=kc[p];null!=(f=P(e.getShallow(d),n[d]))&&(t[d]=f)}for(p=0;p\u003CLc.length;p++)d=Lc[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow(\\\"baseline\\\"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p\u003CPc.length;p++){var f,d=Pc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow(\\\"borderType\\\");null!=u&&(t.borderDash=u),\\\"auto\\\"!==t.backgroundColor&&\\\"inherit\\\"!==t.backgroundColor||!l||(t.backgroundColor=l),\\\"auto\\\"!==t.borderColor&&\\\"inherit\\\"!==t.borderColor||!l||(t.borderColor=l)}}function Rc(t,e){var n=e&&e.getModel(\\\"textStyle\\\");return Ct([t.fontStyle||n&&n.getShallow(\\\"fontStyle\\\")||\\\"\\\",t.fontWeight||n&&n.getShallow(\\\"fontWeight\\\")||\\\"\\\",(t.fontSize||n&&n.getShallow(\\\"fontSize\\\")||12)+\\\"px\\\",t.fontFamily||n&&n.getShallow(\\\"fontFamily\\\")||\\\"sans-serif\\\"].join(\\\" \\\"))}var Nc=i();function Ec(t,e,n,i){var o,r;t&&((o=Nc(t)).prevValue=o.value,o.value=n,r=e.normal,o.valueAnimation=r.get(\\\"valueAnimation\\\"),o.valueAnimation)&&(o.precision=r.get(\\\"precision\\\"),o.defaultInterpolatedText=i,o.statesModels=e)}function zc(n,i,o,t,r){var a,s,l,u=Nc(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=P(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?Yh:k)(n,{percent:1},t,i,null,function(t){var e=Zr(o,u.precision,s,l,t),e=(u.interpolatedValue=1===t?null:e,Ic({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+\\\"\\\"},u.statesModels,e));Mc(n,e)}))}var Vc,Bc=[\\\"textStyle\\\",\\\"color\\\"],Fc=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\",\\\"padding\\\",\\\"lineHeight\\\",\\\"rich\\\",\\\"width\\\",\\\"height\\\",\\\"overflow\\\"],Gc=new z,Wc=(Qc.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow(\\\"color\\\")||(!t&&e?e.get(Bc):null)},Qc.prototype.getFont=function(){return Rc({fontStyle:this.getShallow(\\\"fontStyle\\\"),fontWeight:this.getShallow(\\\"fontWeight\\\"),fontSize:this.getShallow(\\\"fontSize\\\"),fontFamily:this.getShallow(\\\"fontFamily\\\")},this.ecModel)},Qc.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow(\\\"verticalAlign\\\")||this.getShallow(\\\"baseline\\\")},n=0;n\u003CFc.length;n++)e[Fc[n]]=this.getShallow(Fc[n]);return Gc.useStyle(e),Gc.update(),Gc.getBoundingRect()},Qc),Hc=[[\\\"lineWidth\\\",\\\"width\\\"],[\\\"stroke\\\",\\\"color\\\"],[\\\"opacity\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"],[\\\"lineDash\\\",\\\"type\\\"],[\\\"lineDashOffset\\\",\\\"dashOffset\\\"],[\\\"lineCap\\\",\\\"cap\\\"],[\\\"lineJoin\\\",\\\"join\\\"],[\\\"miterLimit\\\"]],Yc=ia(Hc),Uc=(Jc.prototype.getLineStyle=function(t){return Yc(this,t)},Jc),Xc=[[\\\"fill\\\",\\\"color\\\"],[\\\"stroke\\\",\\\"borderColor\\\"],[\\\"lineWidth\\\",\\\"borderWidth\\\"],[\\\"opacity\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"],[\\\"lineDash\\\",\\\"borderType\\\"],[\\\"lineDashOffset\\\",\\\"borderDashOffset\\\"],[\\\"lineCap\\\",\\\"borderCap\\\"],[\\\"lineJoin\\\",\\\"borderJoin\\\"],[\\\"miterLimit\\\",\\\"borderMiterLimit\\\"]],Zc=ia(Xc),jc=($c.prototype.getItemStyle=function(t,e){return Zc(this,t,e)},$c),qc=(Kc.prototype.init=function(t,e,n){for(var i=3;i\u003Carguments.length;i++)i-3,0},Kc.prototype.mergeOption=function(t,e){v(this.option,t,!0)},Kc.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Kc.prototype.getShallow=function(t,e){var n,i=this.option,i=null==i?i:i[t];return null!=i||e||(n=this.parentModel)&&(i=n.getShallow(t)),i},Kc.prototype.getModel=function(t,e){var n=null!=t,i=n?this.parsePath(t):null;return new Kc(n?this._doGet(i):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},Kc.prototype.isEmpty=function(){return null==this.option},Kc.prototype.restoreData=function(){},Kc.prototype.clone=function(){return new this.constructor(L(this.option))},Kc.prototype.parsePath=function(t){return\\\"string\\\"==typeof t?t.split(\\\".\\\"):t},Kc.prototype.resolveParentPath=function(t){return t},Kc.prototype.isAnimationEnabled=function(){if(!S.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Kc.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i\u003Ct.length&&(!t[i]||null!=(n=n&&\\\"object\\\"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n},Kc);function Kc(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}function $c(){}function Jc(){}function Qc(){}$r(qc),hd=qc,Vc=[\\\"__\\\\0is_clz\\\",+Qr].join(\\\"_\\\"),hd.prototype[Vc]=!0,hd.isInstance=function(t){return!(!t||!t[Vc])},ut(qc,Uc),ut(qc,jc),ut(qc,ra),ut(qc,Wc);var tp=Math.round(10*Math.random());function ep(t){return[t||\\\"\\\",tp++].join(\\\"_\\\")}function np(t,e){return v(v({},t,!0),e,!0)}var ip={},op={},rp=S.domSupported&&-1\u003C(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(\\\"ZH\\\")?\\\"ZH\\\":\\\"EN\\\";function ap(t,e){t=t.toUpperCase(),op[t]=new qc(e),ip[t]=e}function sp(t){return op[t]}ap(\\\"EN\\\",{time:{month:[\\\"January\\\",\\\"February\\\",\\\"March\\\",\\\"April\\\",\\\"May\\\",\\\"June\\\",\\\"July\\\",\\\"August\\\",\\\"September\\\",\\\"October\\\",\\\"November\\\",\\\"December\\\"],monthAbbr:[\\\"Jan\\\",\\\"Feb\\\",\\\"Mar\\\",\\\"Apr\\\",\\\"May\\\",\\\"Jun\\\",\\\"Jul\\\",\\\"Aug\\\",\\\"Sep\\\",\\\"Oct\\\",\\\"Nov\\\",\\\"Dec\\\"],dayOfWeek:[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],dayOfWeekAbbr:[\\\"Sun\\\",\\\"Mon\\\",\\\"Tue\\\",\\\"Wed\\\",\\\"Thu\\\",\\\"Fri\\\",\\\"Sat\\\"]},legend:{selector:{all:\\\"All\\\",inverse:\\\"Inv\\\"}},toolbox:{brush:{title:{rect:\\\"Box Select\\\",polygon:\\\"Lasso Select\\\",lineX:\\\"Horizontally Select\\\",lineY:\\\"Vertically Select\\\",keep:\\\"Keep Selections\\\",clear:\\\"Clear Selections\\\"}},dataView:{title:\\\"Data View\\\",lang:[\\\"Data View\\\",\\\"Close\\\",\\\"Refresh\\\"]},dataZoom:{title:{zoom:\\\"Zoom\\\",back:\\\"Zoom Reset\\\"}},magicType:{title:{line:\\\"Switch to Line Chart\\\",bar:\\\"Switch to Bar Chart\\\",stack:\\\"Stack\\\",tiled:\\\"Tile\\\"}},restore:{title:\\\"Restore\\\"},saveAsImage:{title:\\\"Save as Image\\\",lang:[\\\"Right Click to Save Image\\\"]}},series:{typeNames:{pie:\\\"Pie chart\\\",bar:\\\"Bar chart\\\",line:\\\"Line chart\\\",scatter:\\\"Scatter plot\\\",effectScatter:\\\"Ripple scatter plot\\\",radar:\\\"Radar chart\\\",tree:\\\"Tree\\\",treemap:\\\"Treemap\\\",boxplot:\\\"Boxplot\\\",candlestick:\\\"Candlestick\\\",k:\\\"K line chart\\\",heatmap:\\\"Heat map\\\",map:\\\"Map\\\",parallel:\\\"Parallel coordinate map\\\",lines:\\\"Line graph\\\",graph:\\\"Relationship graph\\\",sankey:\\\"Sankey diagram\\\",funnel:\\\"Funnel chart\\\",gauge:\\\"Gauge\\\",pictorialBar:\\\"Pictorial bar\\\",themeRiver:\\\"Theme River Map\\\",sunburst:\\\"Sunburst\\\"}},aria:{general:{withTitle:'This is a chart about \\\"{title}\\\"',withoutTitle:\\\"This is a chart\\\"},series:{single:{prefix:\\\"\\\",withName:\\\" with type {seriesType} named {seriesName}.\\\",withoutName:\\\" with type {seriesType}.\\\"},multiple:{prefix:\\\". It consists of {seriesCount} series count.\\\",withName:\\\" The {seriesId} series is a {seriesType} representing {seriesName}.\\\",withoutName:\\\" The {seriesId} series is a {seriesType}.\\\",separator:{middle:\\\"\\\",end:\\\"\\\"}}},data:{allData:\\\"The data is as follows: \\\",partialData:\\\"The first {displayCnt} items are: \\\",withName:\\\"the data for {name} is {value}\\\",withoutName:\\\"{value}\\\",separator:{middle:\\\", \\\",end:\\\". \\\"}}}}),ap(\\\"ZH\\\",{time:{month:[\\\"一月\\\",\\\"二月\\\",\\\"三月\\\",\\\"四月\\\",\\\"五月\\\",\\\"六月\\\",\\\"七月\\\",\\\"八月\\\",\\\"九月\\\",\\\"十月\\\",\\\"十一月\\\",\\\"十二月\\\"],monthAbbr:[\\\"1月\\\",\\\"2月\\\",\\\"3月\\\",\\\"4月\\\",\\\"5月\\\",\\\"6月\\\",\\\"7月\\\",\\\"8月\\\",\\\"9月\\\",\\\"10月\\\",\\\"11月\\\",\\\"12月\\\"],dayOfWeek:[\\\"星期日\\\",\\\"星期一\\\",\\\"星期二\\\",\\\"星期三\\\",\\\"星期四\\\",\\\"星期五\\\",\\\"星期六\\\"],dayOfWeekAbbr:[\\\"日\\\",\\\"一\\\",\\\"二\\\",\\\"三\\\",\\\"四\\\",\\\"五\\\",\\\"六\\\"]},legend:{selector:{all:\\\"全选\\\",inverse:\\\"反选\\\"}},toolbox:{brush:{title:{rect:\\\"矩形选择\\\",polygon:\\\"圈选\\\",lineX:\\\"横向选择\\\",lineY:\\\"纵向选择\\\",keep:\\\"保持选择\\\",clear:\\\"清除选择\\\"}},dataView:{title:\\\"数据视图\\\",lang:[\\\"数据视图\\\",\\\"关闭\\\",\\\"刷新\\\"]},dataZoom:{title:{zoom:\\\"区域缩放\\\",back:\\\"区域缩放还原\\\"}},magicType:{title:{line:\\\"切换为折线图\\\",bar:\\\"切换为柱状图\\\",stack:\\\"切换为堆叠\\\",tiled:\\\"切换为平铺\\\"}},restore:{title:\\\"还原\\\"},saveAsImage:{title:\\\"保存为图片\\\",lang:[\\\"右键另存为图片\\\"]}},series:{typeNames:{pie:\\\"饼图\\\",bar:\\\"柱状图\\\",line:\\\"折线图\\\",scatter:\\\"散点图\\\",effectScatter:\\\"涟漪散点图\\\",radar:\\\"雷达图\\\",tree:\\\"树图\\\",treemap:\\\"矩形树图\\\",boxplot:\\\"箱型图\\\",candlestick:\\\"K线图\\\",k:\\\"K线图\\\",heatmap:\\\"热力图\\\",map:\\\"地图\\\",parallel:\\\"平行坐标图\\\",lines:\\\"线图\\\",graph:\\\"关系图\\\",sankey:\\\"桑基图\\\",funnel:\\\"漏斗图\\\",gauge:\\\"仪表盘图\\\",pictorialBar:\\\"象形柱图\\\",themeRiver:\\\"主题河流图\\\",sunburst:\\\"旭日图\\\"}},aria:{general:{withTitle:\\\"这是一个关于“{title}”的图表。\\\",withoutTitle:\\\"这是一个图表,\\\"},series:{single:{prefix:\\\"\\\",withName:\\\"图表类型是{seriesType},表示{seriesName}。\\\",withoutName:\\\"图表类型是{seriesType}。\\\"},multiple:{prefix:\\\"它由{seriesCount}个图表系列组成。\\\",withName:\\\"第{seriesId}个系列是一个表示{seriesName}的{seriesType},\\\",withoutName:\\\"第{seriesId}个系列是一个{seriesType},\\\",separator:{middle:\\\";\\\",end:\\\"。\\\"}}},data:{allData:\\\"其数据是——\\\",partialData:\\\"其中,前{displayCnt}项是——\\\",withName:\\\"{name}的数据是{value}\\\",withoutName:\\\"{value}\\\",separator:{middle:\\\",\\\",end:\\\"\\\"}}}});var lp=1e3,up=6e4,hp=36e5,cp=864e5,pp={year:\\\"{yyyy}\\\",month:\\\"{MMM}\\\",day:\\\"{d}\\\",hour:\\\"{HH}:{mm}\\\",minute:\\\"{HH}:{mm}\\\",second:\\\"{HH}:{mm}:{ss}\\\",millisecond:\\\"{HH}:{mm}:{ss} {SSS}\\\",none:\\\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}\\\"},dp={year:\\\"{yyyy}\\\",month:\\\"{yyyy}-{MM}\\\",day:\\\"{yyyy}-{MM}-{dd}\\\",hour:\\\"{yyyy}-{MM}-{dd} \\\"+pp.hour,minute:\\\"{yyyy}-{MM}-{dd} \\\"+pp.minute,second:\\\"{yyyy}-{MM}-{dd} \\\"+pp.second,millisecond:pp.none},fp=[\\\"year\\\",\\\"month\\\",\\\"day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"],gp=[\\\"year\\\",\\\"half-year\\\",\\\"quarter\\\",\\\"month\\\",\\\"week\\\",\\\"half-week\\\",\\\"day\\\",\\\"half-day\\\",\\\"quarter-day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"];function yp(t,e){return\\\"0000\\\".substr(0,e-(t+=\\\"\\\").length)+t}function mp(t){switch(t){case\\\"half-year\\\":case\\\"quarter\\\":return\\\"month\\\";case\\\"week\\\":case\\\"half-week\\\":return\\\"day\\\";case\\\"half-day\\\":case\\\"quarter-day\\\":return\\\"hour\\\";default:return t}}function vp(t,e,n,i){var o=fr(t),r=o[bp(n)](),a=o[wp(n)]()+1,s=Math.floor((a-1)/4)+1,l=o[Sp(n)](),u=o[\\\"get\\\"+(n?\\\"UTC\\\":\\\"\\\")+\\\"Day\\\"](),h=o[Mp(n)](),c=(h-1)%12+1,p=o[Ip(n)](),d=o[Tp(n)](),o=o[Cp(n)](),f=(i instanceof qc?i:sp(i||rp)||op.EN).getModel(\\\"time\\\"),g=f.get(\\\"month\\\"),y=f.get(\\\"monthAbbr\\\"),m=f.get(\\\"dayOfWeek\\\"),f=f.get(\\\"dayOfWeekAbbr\\\");return(e||\\\"\\\").replace(/{yyyy}/g,r+\\\"\\\").replace(/{yy}/g,r%100+\\\"\\\").replace(/{Q}/g,s+\\\"\\\").replace(/{MMMM}/g,g[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,yp(a,2)).replace(/{M}/g,a+\\\"\\\").replace(/{dd}/g,yp(l,2)).replace(/{d}/g,l+\\\"\\\").replace(/{eeee}/g,m[u]).replace(/{ee}/g,f[u]).replace(/{e}/g,u+\\\"\\\").replace(/{HH}/g,yp(h,2)).replace(/{H}/g,h+\\\"\\\").replace(/{hh}/g,yp(c+\\\"\\\",2)).replace(/{h}/g,c+\\\"\\\").replace(/{mm}/g,yp(p,2)).replace(/{m}/g,p+\\\"\\\").replace(/{ss}/g,yp(d,2)).replace(/{s}/g,d+\\\"\\\").replace(/{SSS}/g,yp(o,3)).replace(/{S}/g,o+\\\"\\\")}function xp(t,e){var n=fr(t),i=n[wp(e)]()+1,o=n[Sp(e)](),r=n[Mp(e)](),a=n[Ip(e)](),s=n[Tp(e)](),n=0===n[Cp(e)](),s=n&&0===s,a=s&&0===a,r=a&&0===r,o=r&&1===o;return o&&1===i?\\\"year\\\":o?\\\"month\\\":r?\\\"day\\\":a?\\\"hour\\\":s?\\\"minute\\\":n?\\\"second\\\":\\\"millisecond\\\"}function _p(t,e,n){var i=j(t)?fr(t):t;switch(e=e||xp(t,n)){case\\\"year\\\":return i[bp(n)]();case\\\"half-year\\\":return 6\u003C=i[wp(n)]()?1:0;case\\\"quarter\\\":return Math.floor((i[wp(n)]()+1)/4);case\\\"month\\\":return i[wp(n)]();case\\\"day\\\":return i[Sp(n)]();case\\\"half-day\\\":return i[Mp(n)]()/24;case\\\"hour\\\":return i[Mp(n)]();case\\\"minute\\\":return i[Ip(n)]();case\\\"second\\\":return i[Tp(n)]();case\\\"millisecond\\\":return i[Cp(n)]()}}function bp(t){return t?\\\"getUTCFullYear\\\":\\\"getFullYear\\\"}function wp(t){return t?\\\"getUTCMonth\\\":\\\"getMonth\\\"}function Sp(t){return t?\\\"getUTCDate\\\":\\\"getDate\\\"}function Mp(t){return t?\\\"getUTCHours\\\":\\\"getHours\\\"}function Ip(t){return t?\\\"getUTCMinutes\\\":\\\"getMinutes\\\"}function Tp(t){return t?\\\"getUTCSeconds\\\":\\\"getSeconds\\\"}function Cp(t){return t?\\\"getUTCMilliseconds\\\":\\\"getMilliseconds\\\"}function Dp(t){return t?\\\"setUTCMonth\\\":\\\"setMonth\\\"}function Ap(t){return t?\\\"setUTCDate\\\":\\\"setDate\\\"}function kp(t){return t?\\\"setUTCHours\\\":\\\"setHours\\\"}function Lp(t){return t?\\\"setUTCMinutes\\\":\\\"setMinutes\\\"}function Pp(t){return t?\\\"setUTCSeconds\\\":\\\"setSeconds\\\"}function Op(t){return t?\\\"setUTCMilliseconds\\\":\\\"setMilliseconds\\\"}function Rp(t){var e;return br(t)?(e=(t+\\\"\\\").split(\\\".\\\"))[0].replace(/(\\\\d{1,3})(?=(?:\\\\d{3})+(?!\\\\d))/g,\\\"$1,\\\")+(1\u003Ce.length?\\\".\\\"+e[1]:\\\"\\\"):X(t)?t:\\\"-\\\"}function Np(t,e){return t=(t||\\\"\\\").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var Ep=It,zp=/([&\u003C>\\\"'])/g,Vp={\\\"&\\\":\\\"&\\\",\\\"\u003C\\\":\\\"<\\\",\\\">\\\":\\\">\\\",'\\\"':\\\""\\\",\\\"'\\\":\\\"'\\\"};function Bp(t){return null==t?\\\"\\\":(t+\\\"\\\").replace(zp,function(t,e){return Vp[e]})}function Fp(t,e,n){function i(t){return t&&Ct(t)?t:\\\"-\\\"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r=\\\"time\\\"===e,a=t instanceof Date;if(r||a){var r=r?fr(t):t;if(!isNaN(+r))return vp(r,\\\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}\\\",n);if(a)return\\\"-\\\"}return\\\"ordinal\\\"===e?ft(t)?i(t):j(t)&&o(t)?t+\\\"\\\":\\\"-\\\":o(r=_r(t))?Rp(r):ft(t)?i(t):\\\"boolean\\\"==typeof t?t+\\\"\\\":\\\"-\\\"}var Gp=[\\\"a\\\",\\\"b\\\",\\\"c\\\",\\\"d\\\",\\\"e\\\",\\\"f\\\",\\\"g\\\"],Wp=function(t,e){return\\\"{\\\"+t+(null==e?\\\"\\\":e)+\\\"}\\\"};function Hp(t,e,n){var i=(e=U(e)?e:[e]).length;if(!i)return\\\"\\\";for(var o=e[0].$vars||[],r=0;r\u003Co.length;r++){var a=Gp[r];t=t.replace(Wp(a),Wp(a,0))}for(var s=0;s\u003Ci;s++)for(var l=0;l\u003Co.length;l++){var u=e[s][o[l]];t=t.replace(Wp(Gp[l],s),n?Bp(u):u)}return t}function Yp(t,e){var n=X(t)?{color:t,extraCssText:e}:t||{},i=n.color,o=n.type,r=(e=n.extraCssText,n.renderMode||\\\"html\\\");return i?\\\"html\\\"===r?\\\"subItem\\\"===o?'\u003Cspan style=\\\"display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bp(i)+\\\";\\\"+(e||\\\"\\\")+'\\\">\u003C/span>':'\u003Cspan style=\\\"display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bp(i)+\\\";\\\"+(e||\\\"\\\")+'\\\">\u003C/span>':{renderMode:r,content:\\\"{\\\"+(n.markerId||\\\"markerX\\\")+\\\"|} \\\",style:\\\"subItem\\\"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:\\\"\\\"}function Up(t,e){return e=e||\\\"transparent\\\",X(t)?t:R(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Xp(t,e){var n;\\\"_blank\\\"===e||\\\"blank\\\"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Zp=lt,jp=[\\\"left\\\",\\\"right\\\",\\\"top\\\",\\\"bottom\\\",\\\"width\\\",\\\"height\\\"],qp=[[\\\"width\\\",\\\"left\\\",\\\"right\\\"],[\\\"height\\\",\\\"top\\\",\\\"bottom\\\"]];function Kp(s,l,u,h,c){var p=0,d=0,f=(null==h&&(h=1/0),null==c&&(c=1/0),0);l.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),a=l.childAt(e+1),a=a&&a.getBoundingRect();f=\\\"horizontal\\\"===s?(o=r.width+(a?-a.x+r.x:0),(n=p+o)>h||t.newline?(p=0,n=o,d+=f+u,r.height):Math.max(f,r.height)):(o=r.height+(a?-a.y+r.y:0),(i=d+o)>c||t.newline?(p+=f+u,d=0,i=o,r.width):Math.max(f,r.width)),t.newline||(t.x=p,t.y=d,t.markRedraw(),\\\"horizontal\\\"===s?p=n+u:d=i+u)})}var $p=Kp;function Jp(t,e,n){n=Ep(n||0);var i=e.width,o=e.height,r=F(t.left,i),a=F(t.top,o),s=F(t.right,i),l=F(t.bottom,o),u=F(t.width,i),h=F(t.height,o),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(i/o\u003Cd?u=.8*i:h=.8*o),isNaN(u)&&(u=d*h),isNaN(h))&&(h=u/d),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-h-c),t.left||t.right){case\\\"center\\\":r=i/2-u/2-n[3];break;case\\\"right\\\":r=i-u-p}switch(t.top||t.bottom){case\\\"middle\\\":case\\\"center\\\":a=o/2-h/2-n[0];break;case\\\"bottom\\\":a=o-h-c}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));d=new B(r+n[3],a+n[0],u,h);return d.margin=n,d}function Qp(t,e,n,i,o,r){var a,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],u=o&&o.boundingMode||\\\"all\\\";if((r=r||t).x=t.x,r.y=t.y,!s&&!l)return!1;\\\"raw\\\"===u?a=\\\"group\\\"===t.type?new B(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(a=t.getBoundingRect(),t.needLocalTransform()&&(h=t.getLocalTransform(),(a=a.clone()).applyTransform(h)));var h=Jp(H({width:a.width,height:a.height},e),n,i),s=s?h.x-a.x:0,l=l?h.y-a.y:0;return\\\"raw\\\"===u?(r.x=s,r.y=l):(r.x+=s,r.y+=l),r===t&&t.markRedraw(),!0}function td(t){var e=t.layoutMode||t.constructor.layoutMode;return R(e)?e:e?{type:e}:null}function ed(l,u,t){var h=t&&t.ignoreSize,e=(U(h)||(h=[h,h]),i(qp[0],0)),n=i(qp[1],1);function i(t,e){var n={},i=0,o={},r=0;if(Zp(t,function(t){o[t]=l[t]}),Zp(t,function(t){c(u,t)&&(n[t]=o[t]=u[t]),p(n,t)&&i++,p(o,t)&&r++}),h[e])p(u,t[1])?o[t[2]]=null:p(u,t[2])&&(o[t[1]]=null);else if(2!==r&&i){if(!(2\u003C=i))for(var a=0;a\u003Ct.length;a++){var s=t[a];if(!c(n,s)&&c(l,s)){n[s]=l[s];break}}return n}return o}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&\\\"auto\\\"!==t[e]}function o(t,e,n){Zp(t,function(t){e[t]=n[t]})}o(qp[0],l,e),o(qp[1],l,n)}function nd(t){return id({},t)}function id(e,n){return n&&e&&Zp(jp,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}D(Kp,\\\"vertical\\\"),D(Kp,\\\"horizontal\\\");var od,rd,ad,sd=i(),m=(u(ld,od=qc),ld.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},ld.prototype.mergeDefaultAndTheme=function(t,e){var n=td(this),i=n?nd(t):{};v(t,e.getTheme().get(this.mainType)),v(t,this.getDefaultOption()),n&&ed(t,i,n)},ld.prototype.mergeOption=function(t,e){v(this.option,t,!0);var n=td(this);n&&ed(this.option,t,n)},ld.prototype.optionUpdated=function(t,e){},ld.prototype.getDefaultOption=function(){var t=this.constructor;if(!t||!t[qr])return t.defaultOption;var e=sd(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0\u003C=a;a--)r=v(r,n[a],!0);e.defaultOption=r}return e.defaultOption},ld.prototype.getReferringComponents=function(t,e){var n=t+\\\"Id\\\";return Yr(this.ecModel,t,{index:this.get(t+\\\"Index\\\",!0),id:this.get(n,!0)},e)},ld.prototype.getBoxLayoutParams=function(){return{left:this.get(\\\"left\\\"),top:this.get(\\\"top\\\"),right:this.get(\\\"right\\\"),bottom:this.get(\\\"bottom\\\"),width:this.get(\\\"width\\\"),height:this.get(\\\"height\\\")}},ld.prototype.getZLevelKey=function(){return\\\"\\\"},ld.prototype.setZLevel=function(t){this.option.zlevel=t},ld.protoInitialize=((Qr=ld.prototype).type=\\\"component\\\",Qr.id=\\\"\\\",Qr.name=\\\"\\\",Qr.mainType=\\\"\\\",Qr.subType=\\\"\\\",void(Qr.componentIndex=0)),ld);function ld(t,e,n){var i=od.call(this,t,e,n)||this;return i.uid=ep(\\\"ec_cpt_model\\\"),i}function ud(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Jr(m,qc),na(m),ad={},(rd=m).registerSubTypeDefaulter=function(t,e){var n=Kr(t);ad[n.main]=e},rd.determineSubType=function(t,e){var n,i=e.type;return i||(n=Kr(t).main,rd.hasSubTypes(t)&&ad[n]&&(i=ad[n](e))),i},m.topologicalTravel=function(t,e,n,i){if(t.length){p={},d=[],lt(c=e,function(n){var e,i,t,o,r=ud(p,n),a=(t=r.originalDeps=(t=n,o=[],lt(m.getClassesByMainType(t),function(t){o=o.concat(t.dependencies||t.prototype.dependencies||[])}),o=Y(o,function(t){return Kr(t).main}),\\\"dataset\\\"!==t&&G(o,\\\"dataset\\\")\u003C=0&&o.unshift(\\\"dataset\\\"),o),e=c,i=[],lt(t,function(t){0\u003C=G(e,t)&&i.push(t)}),i);r.entryCount=a.length,0===r.entryCount&&d.push(n),lt(a,function(t){G(r.predecessor,t)\u003C0&&r.predecessor.push(t);var e=ud(p,t);G(e.successor,t)\u003C0&&e.successor.push(n)})});var o={graph:p,noEntryList:d},r=o.graph,a=o.noEntryList,s={};for(lt(t,function(t){s[t]=!0});a.length;){var l=a.pop(),u=r[l],h=!!s[l];h&&(n.call(i,l,u.originalDeps.slice()),delete s[l]),lt(u.successor,h?g:f)}lt(s,function(){throw new Error(\\\"\\\")})}var c,p,d;function f(t){r[t].entryCount--,0===r[t].entryCount&&a.push(t)}function g(t){s[t]=!0,f(t)}};var hd=\\\"\\\",Uc=(\\\"undefined\\\"!=typeof navigator&&(hd=navigator.platform||\\\"\\\"),\\\"rgba(0, 0, 0, 0.2)\\\"),cd={darkMode:\\\"auto\\\",colorBy:\\\"series\\\",color:[\\\"#5470c6\\\",\\\"#91cc75\\\",\\\"#fac858\\\",\\\"#ee6666\\\",\\\"#73c0de\\\",\\\"#3ba272\\\",\\\"#fc8452\\\",\\\"#9a60b4\\\",\\\"#ea7ccc\\\"],gradientColor:[\\\"#f6efa6\\\",\\\"#d88273\\\",\\\"#bf444c\\\"],aria:{decal:{decals:[{color:Uc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Uc,symbol:\\\"circle\\\",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Uc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Uc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Uc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Uc,symbol:\\\"triangle\\\",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hd.match(/^Win/)?\\\"Microsoft YaHei\\\":\\\"sans-serif\\\",fontSize:12,fontStyle:\\\"normal\\\",fontWeight:\\\"normal\\\"},blendMode:null,stateAnimation:{duration:300,easing:\\\"cubicOut\\\"},animation:\\\"auto\\\",animationDuration:1e3,animationDurationUpdate:500,animationEasing:\\\"cubicInOut\\\",animationEasingUpdate:\\\"cubicInOut\\\",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},pd=N([\\\"tooltip\\\",\\\"label\\\",\\\"itemName\\\",\\\"itemId\\\",\\\"itemGroupId\\\",\\\"seriesName\\\"]),dd=\\\"original\\\",fd=\\\"arrayRows\\\",gd=\\\"objectRows\\\",yd=\\\"keyedColumns\\\",md=\\\"typedArray\\\",vd=\\\"unknown\\\",xd=\\\"column\\\",_d=\\\"row\\\",bd=1,wd=2,Sd=3,Md=i();function Id(i,t,e){var r,o,a,s,n,l,u={},h=Cd(t);return h&&i&&(a=[],s=[],n=t.ecModel,n=Md(n).datasetMap,h=h.uid+\\\"_\\\"+e.seriesLayoutBy,lt(i=i.slice(),function(t,e){var n=R(t)?t:i[e]={name:t};\\\"ordinal\\\"===n.type&&null==r&&(r=e,o=p(n)),u[n.name]=[]}),l=n.get(h)||n.set(h,{categoryWayDim:o,valueWayDim:0}),lt(i,function(t,e){var n,i=t.name,o=p(t);null==r?(n=l.valueWayDim,c(u[i],n,o),c(s,n,o),l.valueWayDim+=o):r===e?(c(u[i],0,o),c(a,0,o)):(n=l.categoryWayDim,c(u[i],n,o),c(s,n,o),l.categoryWayDim+=o)}),a.length&&(u.itemName=a),s.length)&&(u.seriesName=s),u;function c(t,e,n){for(var i=0;i\u003Cn;i++)t.push(e+i)}function p(t){var e=t.dimsDef;return e?e.length:1}}function Td(t,l,u){var h,c,p,e,n={};return Cd(t)&&(c=l.sourceFormat,p=l.dimensionsDefine,c!==gd&&c!==yd||lt(p,function(t,e){\\\"name\\\"===(R(t)?t.name:t)&&(h=e)}),e=function(){for(var t={},e={},n=[],i=0,o=Math.min(5,u);i\u003Co;i++){var r=Ad(l.data,c,l.seriesLayoutBy,p,l.startIndex,i),a=(n.push(r),r===Sd);if(a&&null==t.v&&i!==h&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==Sd)||(t.n=i),s(t)&&n[t.n]!==Sd)return t;a||(r===wd&&null==e.v&&i!==h&&(e.v=i),null!=e.n&&e.n!==e.v)||(e.n=i)}function s(t){return null!=t.v&&null!=t.n}return s(t)?t:s(e)?e:null}())&&(n.value=[e.v],e=null!=h?h:e.n,n.itemName=[e],n.seriesName=[e]),n}function Cd(t){if(!t.get(\\\"data\\\",!0))return Yr(t.ecModel,\\\"dataset\\\",{index:t.get(\\\"datasetIndex\\\",!0),id:t.get(\\\"datasetId\\\",!0)},Wr).models[0]}function Dd(t,e){return Ad(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Ad(t,e,n,i,o,r){var a,s,l,u;if(!yt(t)){if(i&&(R(u=i[r])?(s=u.name,l=u.type):X(u)&&(s=u)),null!=l)return\\\"ordinal\\\"===l?bd:Sd;if(e===fd){var h=t;if(n===_d){for(var c=h[r],p=0;p\u003C(c||[]).length&&p\u003C5;p++)if(null!=(a=v(c[o+p])))return a}else for(p=0;p\u003Ch.length&&p\u003C5;p++){var d=h[o+p];if(d&&null!=(a=v(d[r])))return a}}else if(e===gd){var f=t;if(!s)return Sd;for(p=0;p\u003Cf.length&&p\u003C5;p++)if((y=f[p])&&null!=(a=v(y[s])))return a}else if(e===yd){if(!s)return Sd;if(!(c=t[s])||yt(c))return Sd;for(p=0;p\u003Cc.length&&p\u003C5;p++)if(null!=(a=v(c[p])))return a}else if(e===dd)for(var g=t,p=0;p\u003Cg.length&&p\u003C5;p++){var y,m=Lr(y=g[p]);if(!U(m))return Sd;if(null!=(a=v(m[r])))return a}}return Sd;function v(t){var e=X(t);return null!=t&&isFinite(t)&&\\\"\\\"!==t?e?wd:Sd:e&&\\\"-\\\"!==t?bd:void 0}}var kd,Ld,Pd,Od=N(),Rd=i(),Nd=i(),Ed=(zd.prototype.getColorFromPalette=function(t,e,n){var i=Dr(this.get(\\\"color\\\",!0)),o=this.get(\\\"colorLayer\\\",!0);return Bd(this,Rd,i,o,t,e,n)},zd.prototype.clearColorPalette=function(){var t,e;(e=Rd)(t=this).paletteIdx=0,e(t).paletteNameMap={}},zd);function zd(){}function Vd(t,e,n,i){var o=Dr(t.get([\\\"aria\\\",\\\"decal\\\",\\\"decals\\\"]));return Bd(t,Nd,o,null,e,n,i)}function Bd(t,e,n,i,o,r,a){var s,l,u=e(r=r||t),h=u.paletteIdx||0,c=u.paletteNameMap=u.paletteNameMap||{};return c.hasOwnProperty(o)?c[o]:(s=(null!=a&&i?function(t,e){for(var n=t.length,i=0;i\u003Cn;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n)||n)&&s.length?(l=s[h],o&&(c[o]=l),u.paletteIdx=(h+1)%s.length,l):void 0}u(Wd,Fd=qc),Wd.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new qc(i),this._locale=new qc(o),this._optionManager=r},Wd.prototype.setOption=function(t,e,n){var i=Ud(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},Wd.prototype.resetOption=function(t,e){return this._resetOption(t,Ud(e))},Wd.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&\\\"recreate\\\"!==t||(n=o.mountOption(\\\"recreate\\\"===t),this.option&&\\\"recreate\\\"!==t?(this.restoreData(),this._mergeOption(n,e)):Pd(this,n),i=!0),\\\"timeline\\\"!==t&&\\\"media\\\"!==t||this.restoreData(),t&&\\\"recreate\\\"!==t&&\\\"timeline\\\"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&\\\"recreate\\\"!==t&&\\\"media\\\"!==t||(n=o.getMediaOption(this)).length&<(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Wd.prototype.mergeOption=function(t){this._mergeOption(t,null)},Wd.prototype._mergeOption=function(p,t){var d=this.option,f=this._componentsMap,g=this._componentsCount,n=[],i=N(),y=t&&t.replaceMergeMainTypeMap;Md(this).datasetMap=N(),lt(p,function(t,e){null!=t&&(m.hasClass(e)?e&&(n.push(e),i.set(e,!0)):d[e]=null==d[e]?L(t):v(d[e],t,!0))}),y&&y.each(function(t,e){m.hasClass(e)&&!i.get(e)&&(n.push(e),i.set(e,!0))}),m.topologicalTravel(n,m.getAllClassMainTypes(),function(a){t=this,e=a,n=Dr(p[a]);var t,e,n,o,r,i=(i=(i=Od.get(e))&&i(t))?n.concat(i):n,s=f.get(a),i=Pr(s,i,s?y&&y.get(a)?\\\"replaceMerge\\\":\\\"normalMerge\\\":\\\"replaceAll\\\");o=a,r=m,lt(i,function(t){var e,n,i=t.newOption;R(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=i,t=t.existing,n=r,e.type||(t?t.subType:n.determineSubType(o,e))))}),d[a]=null,f.set(a,null),g.set(a,0);var l,u=[],h=[],c=0;lt(i,function(t,e){var n=t.existing,i=t.newOption;if(i){var o,r=m.getClass(a,t.keyInfo.subType,!(\\\"series\\\"===a));if(!r)return;if(\\\"tooltip\\\"===a){if(l)return;l=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(o=Z({componentIndex:e},t.keyInfo),Z(n=new r(i,this,this,o),o),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(u.push(n.option),h.push(n),c++):(u.push(void 0),h.push(void 0))},this),d[a]=u,f.set(a,h),g.set(a,c),\\\"series\\\"===a&&kd(this)},this),this._seriesIndices||kd(this)},Wd.prototype.getOption=function(){var a=L(this.option);return lt(a,function(t,e){if(m.hasClass(e)){for(var n=Dr(t),i=n.length,o=!1,r=i-1;0\u003C=r;r--)n[r]&&!zr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[\\\"\\\\0_ec_inner\\\"],a},Wd.prototype.getTheme=function(){return this._theme},Wd.prototype.getLocaleModel=function(){return this._locale},Wd.prototype.setUpdatePayload=function(t){this._payload=t},Wd.prototype.getUpdatePayload=function(){return this._payload},Wd.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var o=0;o\u003Cn.length;o++)if(n[o])return n[o]}},Wd.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(n=t.index,i=t.id,o=t.name,r=this._componentsMap.get(a))&&r.length?(null!=n?(e=[],lt(Dr(n),function(t){r[t]&&e.push(r[t])})):e=null!=i?Hd(\\\"id\\\",i,r):null!=o?Hd(\\\"name\\\",o,r):pt(r,function(t){return!!t}),Yd(e,t)):[]},Wd.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+\\\"Index\\\",r=i+\\\"Id\\\",e=i+\\\"Name\\\",!n||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=Yd(o?this.queryComponents(o):pt(this._componentsMap.get(i),function(t){return!!t}),t);return t.filter?pt(r,t.filter):r},Wd.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(A(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n\u003Ct.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=X(t)?i.get(t):R(t)?this.findComponents(t):null,s=0;a&&s\u003Ca.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Wd.prototype.getSeriesByName=function(t){var e=Nr(t,null);return pt(this._componentsMap.get(\\\"series\\\"),function(t){return!!t&&null!=e&&t.name===e})},Wd.prototype.getSeriesByIndex=function(t){return this._componentsMap.get(\\\"series\\\")[t]},Wd.prototype.getSeriesByType=function(e){return pt(this._componentsMap.get(\\\"series\\\"),function(t){return!!t&&t.subType===e})},Wd.prototype.getSeries=function(){return pt(this._componentsMap.get(\\\"series\\\"),function(t){return!!t})},Wd.prototype.getSeriesCount=function(){return this._componentsCount.get(\\\"series\\\")},Wd.prototype.eachSeries=function(n,i){Ld(this),lt(this._seriesIndices,function(t){var e=this._componentsMap.get(\\\"series\\\")[t];n.call(i,e,t)},this)},Wd.prototype.eachRawSeries=function(e,n){lt(this._componentsMap.get(\\\"series\\\"),function(t){t&&e.call(n,t,t.componentIndex)})},Wd.prototype.eachSeriesByType=function(n,i,o){Ld(this),lt(this._seriesIndices,function(t){var e=this._componentsMap.get(\\\"series\\\")[t];e.subType===n&&i.call(o,e,t)},this)},Wd.prototype.eachRawSeriesByType=function(t,e,n){return lt(this.getSeriesByType(t),e,n)},Wd.prototype.isSeriesFiltered=function(t){return Ld(this),null==this._seriesIndicesMap.get(t.componentIndex)},Wd.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Wd.prototype.filterSeries=function(n,i){Ld(this);var o=[];lt(this._seriesIndices,function(t){var e=this._componentsMap.get(\\\"series\\\")[t];n.call(i,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=N(o)},Wd.prototype.restoreData=function(o){kd(this);var e=this._componentsMap,n=[];e.each(function(t,e){m.hasClass(e)&&n.push(e)}),m.topologicalTravel(n,m.getAllClassMainTypes(),function(t){lt(e.get(t),function(i){!i||\\\"series\\\"===t&&function(){var t,e,n;if(o)return t=o.seriesIndex,e=o.seriesId,n=o.seriesName,null!=t&&i.componentIndex!==t||null!=e&&i.id!==e||null!=n&&i.name!==n}()||i.restoreData()})})},Wd.internalField=(kd=function(t){var e=t._seriesIndices=[];lt(t._componentsMap.get(\\\"series\\\"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=N(e)},Ld=function(t){},void(Pd=function(t,e){t.option={},t.option[\\\"\\\\0_ec_inner\\\"]=1,t._componentsMap=N({series:[]}),t._componentsCount=N();var n,i,o,r=e.aria;R(r)&&null==r.enabled&&(r.enabled=!0),n=e,i=t._theme.option,o=n.color&&!n.colorLayer,lt(i,function(t,e){\\\"colorLayer\\\"===e&&o||m.hasClass(e)||(\\\"object\\\"==typeof t?n[e]=n[e]?v(n[e],t,!1):L(t):null==n[e]&&(n[e]=t))}),v(e,cd,!1),t._mergeOption(e,null)}));var Fd,Gd=Wd;function Wd(){return null!==Fd&&Fd.apply(this,arguments)||this}function Hd(e,t,n){var i,o;return U(t)?(i=N(),lt(t,function(t){null!=t&&null!=Nr(t,null)&&i.set(t,!0)}),pt(n,function(t){return t&&i.get(t[e])})):(o=Nr(t,null),pt(n,function(t){return t&&null!=o&&t[e]===o}))}function Yd(t,e){return e.hasOwnProperty(\\\"subType\\\")?pt(t,function(t){return t&&t.subType===e.subType}):t}function Ud(t){var e=N();return t&<(Dr(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut(Gd,Ed);var Xd=[\\\"getDom\\\",\\\"getZr\\\",\\\"getWidth\\\",\\\"getHeight\\\",\\\"getDevicePixelRatio\\\",\\\"dispatchAction\\\",\\\"isSSR\\\",\\\"isDisposed\\\",\\\"on\\\",\\\"off\\\",\\\"getDataURL\\\",\\\"getConnectedDataURL\\\",\\\"getOption\\\",\\\"getId\\\",\\\"updateLabelLayout\\\"],Zd=function(e){lt(Xd,function(t){this[t]=I(e[t],e)},this)},jd={},qd=(Qd.prototype.create=function(i,o){var r=[];lt(jd,function(t,e){var n=t.create(i,o);r=r.concat(n||[])}),this._coordinateSystems=r},Qd.prototype.update=function(e,n){lt(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},Qd.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Qd.register=function(t,e){jd[t]=e},Qd.get=function(t){return jd[t]},Qd),Kd=/^(min|max)?(.+)$/,$d=(Jd.prototype.setOption=function(t,e,n){t&&(lt(Dr(t.series),function(t){t&&t.data&&yt(t.data)&&At(t.data)}),lt(Dr(t.dataset),function(t){t&&t.source&&yt(t.source)&&At(t.source)})),t=L(t);var i,o,r,a,s,l,u,h,c,p,d=this._optionBackup,f=(i=e,o=!d,s=[],f=(e=t).baseOption,l=e.timeline,u=e.options,h=e.media,c=!!e.media,p=!!(u||l||f&&f.timeline),f?(a=f).timeline||(a.timeline=l):((p||c)&&(e.options=e.media=null),a=e),c&&U(h)&<(h,function(t){t&&t.option&&(t.query?s.push(t):r=r||t)}),g(a),lt(u,g),lt(s,function(t){return g(t.option)}),{baseOption:a,timelineOptions:u||[],mediaDefault:r,mediaList:s});function g(e){lt(i,function(t){t(e,o)})}this._newBaseOption=f.baseOption,d?(f.timelineOptions.length&&(d.timelineOptions=f.timelineOptions),f.mediaList.length&&(d.mediaList=f.mediaList),f.mediaDefault&&(d.mediaDefault=f.mediaDefault)):this._optionBackup=f},Jd.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],L(t?e.baseOption:this._newBaseOption)},Jd.prototype.getTimelineOption=function(t){var e,n,i=this._timelineOptions;return e=i.length&&(n=t.getComponent(\\\"timeline\\\"))?L(i[n.getCurrentIndex()]):e},Jd.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),o=this._api.getHeight(),r=this._mediaList,a=this._mediaDefault,s=[],l=[];if(r.length||a){for(var u=0,h=r.length;u\u003Ch;u++)!function(t,e,n){var o={width:e,height:n,aspectratio:e/n},r=!0;return lt(t,function(t,e){var n,i=e.match(Kd);i&&i[1]&&i[2]&&(n=i[1],i=i[2].toLowerCase(),e=o[i],(\\\"min\\\"===n?t\u003C=e:\\\"max\\\"===n?e\u003C=t:e===t)||(r=!1))}),r}(r[u].query,i,o)||s.push(u);(s=!s.length&&a?[-1]:s).length&&(e=s,n=this._currentMediaIndices,e.join(\\\",\\\")!==n.join(\\\",\\\"))&&(l=Y(s,function(t){return L((-1===t?a:r[t]).option)})),this._currentMediaIndices=s}return l},Jd);function Jd(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}function Qd(){this._coordinateSystems=[]}var tf=lt,ef=R,nf=[\\\"areaStyle\\\",\\\"lineStyle\\\",\\\"nodeStyle\\\",\\\"linkStyle\\\",\\\"chordStyle\\\",\\\"label\\\",\\\"labelLine\\\"];function of(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=nf.length;n\u003Ci;n++){var o=nf[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?v(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?v(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function rf(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,H(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function af(t){rf(t,\\\"itemStyle\\\"),rf(t,\\\"lineStyle\\\"),rf(t,\\\"areaStyle\\\"),rf(t,\\\"label\\\"),rf(t,\\\"labelLine\\\"),rf(t,\\\"upperLabel\\\"),rf(t,\\\"edgeLabel\\\")}function sf(t,e){var n=ef(t)&&t[e],i=ef(n)&&n.textStyle;if(i)for(var o=0,r=kr.length;o\u003Cr;o++){var a=kr[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function lf(t){t&&(af(t),sf(t,\\\"label\\\"),t.emphasis)&&sf(t.emphasis,\\\"label\\\")}function uf(t){return U(t)?t:t?[t]:[]}function hf(t){return(U(t)?t[0]:t)||{}}function cf(e,t){tf(uf(e.series),function(t){if(ef(t))if(ef(t)){of(t),af(t),sf(t,\\\"label\\\"),sf(t,\\\"upperLabel\\\"),sf(t,\\\"edgeLabel\\\"),t.emphasis&&(sf(t.emphasis,\\\"label\\\"),sf(t.emphasis,\\\"upperLabel\\\"),sf(t.emphasis,\\\"edgeLabel\\\"));var e=t.markPoint,n=(e&&(of(e),lf(e)),t.markLine),i=(n&&(of(n),lf(n)),t.markArea),o=(i&&lf(i),t.data);if(\\\"graph\\\"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!yt(r))for(var a=0;a\u003Cr.length;a++)lf(r[a]);lt(t.categories,function(t){af(t)})}if(o&&!yt(o))for(a=0;a\u003Co.length;a++)lf(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a\u003Cs.length;a++)lf(s[a]);if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a\u003Cl.length;a++)U(l[a])?(lf(l[a][0]),lf(l[a][1])):lf(l[a])}\\\"gauge\\\"===t.type?(sf(t,\\\"axisLabel\\\"),sf(t,\\\"title\\\"),sf(t,\\\"detail\\\")):\\\"treemap\\\"===t.type?(rf(t.breadcrumb,\\\"itemStyle\\\"),lt(t.levels,function(t){af(t)})):\\\"tree\\\"===t.type&&af(t.leaves)}});var n=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"radiusAxis\\\",\\\"angleAxis\\\",\\\"singleAxis\\\",\\\"parallelAxis\\\",\\\"radar\\\"];t&&n.push(\\\"valueAxis\\\",\\\"categoryAxis\\\",\\\"logAxis\\\",\\\"timeAxis\\\"),tf(n,function(t){tf(uf(e[t]),function(t){t&&(sf(t,\\\"axisLabel\\\"),sf(t.axisPointer,\\\"label\\\"))})}),tf(uf(e.parallel),function(t){var e=t&&t.parallelAxisDefault;sf(e,\\\"axisLabel\\\"),sf(e&&e.axisPointer,\\\"label\\\")}),tf(uf(e.calendar),function(t){rf(t,\\\"itemStyle\\\"),sf(t,\\\"dayLabel\\\"),sf(t,\\\"monthLabel\\\"),sf(t,\\\"yearLabel\\\")}),tf(uf(e.radar),function(t){sf(t,\\\"name\\\"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),tf(uf(e.geo),function(t){ef(t)&&(lf(t),tf(uf(t.regions),function(t){lf(t)}))}),tf(uf(e.timeline),function(t){lf(t),rf(t,\\\"label\\\"),rf(t,\\\"itemStyle\\\"),rf(t,\\\"controlStyle\\\",!0);var e=t.data;U(e)&<(e,function(t){R(t)&&(rf(t,\\\"label\\\"),rf(t,\\\"itemStyle\\\"))})}),tf(uf(e.toolbox),function(t){rf(t,\\\"iconStyle\\\"),tf(t.feature,function(t){rf(t,\\\"iconStyle\\\")})}),sf(hf(e.axisPointer),\\\"label\\\"),sf(hf(e.tooltip).axisPointer,\\\"label\\\")}function pf(e){e&<(df,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var df=[[\\\"x\\\",\\\"left\\\"],[\\\"y\\\",\\\"top\\\"],[\\\"x2\\\",\\\"right\\\"],[\\\"y2\\\",\\\"bottom\\\"]],ff=[\\\"grid\\\",\\\"geo\\\",\\\"parallel\\\",\\\"legend\\\",\\\"toolbox\\\",\\\"title\\\",\\\"visualMap\\\",\\\"dataZoom\\\",\\\"timeline\\\"],gf=[[\\\"borderRadius\\\",\\\"barBorderRadius\\\"],[\\\"borderColor\\\",\\\"barBorderColor\\\"],[\\\"borderWidth\\\",\\\"barBorderWidth\\\"]];function yf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n\u003Cgf.length;n++){var i=gf[n][1],o=gf[n][0];null!=e[i]&&(e[o]=e[i])}}function mf(t){t&&\\\"edge\\\"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function vf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function xf(n,t){cf(n,t),n.series=Dr(n.series),lt(n.series,function(t){if(R(t)){var e,n=t.type;if(\\\"line\\\"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if(\\\"pie\\\"===n||\\\"gauge\\\"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),mf(t.label),(e=t.data)&&!yt(e))for(var i=0;i\u003Ce.length;i++)mf(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if(\\\"gauge\\\"===n){var o=function(t){for(var e=\\\"pointer.color\\\".split(\\\",\\\"),n=t,i=0;i\u003Ce.length&&null!=(n=n&&n[e[i]]);i++);return n}(t);if(null!=o){var r=t;var a=o;for(var s,l=\\\"itemStyle.color\\\".split(\\\",\\\"),u=r,h=0;h\u003Cl.length-1;h++)null==u[s=l[h]]&&(u[s]={}),u=u[s];null==u[l[h]]&&(u[l[h]]=a)}}else if(\\\"bar\\\"===n){if(yf(t),yf(t.backgroundStyle),yf(t.emphasis),(e=t.data)&&!yt(e))for(i=0;i\u003Ce.length;i++)\\\"object\\\"==typeof e[i]&&(yf(e[i]),yf(e[i]&&e[i].emphasis))}else\\\"sunburst\\\"===n?((o=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),vf(t),function c(t,e){if(t)for(var n=0;n\u003Ct.length;n++)e(t[n]),t[n]&&c(t[n].children,e)}(t.data,vf)):\\\"graph\\\"===n||\\\"sankey\\\"===n?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus)&&(r.emphasis.focus=\\\"adjacency\\\"):\\\"map\\\"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&H(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),pf(t)}}),n.dataRange&&(n.visualMap=n.dataRange),lt(ff,function(t){var e=n[t];e&<(e=U(e)?e:[e],function(t){pf(t)})})}function _f(x){lt(x,function(d,f){var g=[],y=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],m=d.data,v=d.isStackedByIndex;m.modify(t,function(t,e,n){var i,o,r=m.get(d.stackedDimension,n);if(isNaN(r))return y;v?o=m.getRawIndex(n):i=m.get(d.stackedByDimension,n);for(var a,s,l,u,h=NaN,c=f-1;0\u003C=c;c--){var p=x[c];if(0\u003C=(o=v?o:p.data.rawIndexOf(p.stackedByDimension,i))){p=p.data.getByRawIndex(p.stackResultDimension,o);if(0\u003C=r&&0\u003Cp||r\u003C=0&&p\u003C0){a=r,s=p,u=l=void 0,l=Math.max(ar(a),ar(s)),u=a+s,r=20\u003Cl?u:or(u,l),h=p;break}}}return g[0]=r,g[1]=h,g})})}var bf,wf,Sf=function(t){this.data=t.data||(t.sourceFormat===yd?{}:[]),this.sourceFormat=t.sourceFormat||vd,this.seriesLayoutBy=t.seriesLayoutBy||xd,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n\u003Ce.length;n++){var i=e[n];null==i.type&&Dd(this,n)===bd&&(i.type=\\\"ordinal\\\")}};function Mf(t){return t instanceof Sf}function If(t,e,n){n=n||Cf(t);var i,o,r,a,s,l,u,h=e.seriesLayoutBy,c=(i=t,o=n,r=h,a=e.sourceHeader,s=e.dimensions,i?(o===fd?(u=i,\\\"auto\\\"===a||null==a?Af(function(t){null!=t&&\\\"-\\\"!==t&&(X(t)?null==l&&(l=1):l=0)},r,u,10):l=j(a)?a:a?1:0,s||1!==l||(s=[],Af(function(t,e){s[e]=null!=t?t+\\\"\\\":\\\"\\\"},r,u,1/0)),u=s?s.length:r===_d?u.length:u[0]?u[0].length:null):o===gd?s=s||function(t){for(var e,n,i=0;i\u003Ct.length&&!(e=t[i++]););if(e)return n=[],lt(e,function(t,e){n.push(e)}),n}(i):o===yd?s||(s=[],lt(i,function(t,e){s.push(e)})):o===dd&&(u=U(c=Lr(i[0]))&&c.length||1),{startIndex:l,dimensionsDefine:Df(s),dimensionsDetectedCount:u}):{dimensionsDefine:Df(s),startIndex:l,dimensionsDetectedCount:u});return new Sf({data:t,sourceFormat:n,seriesLayoutBy:h,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectedCount:c.dimensionsDetectedCount,metaRawOption:L(e)})}function Tf(t){return new Sf({data:t,sourceFormat:yt(t)?md:dd})}function Cf(t){var e=vd;if(yt(t))e=md;else if(U(t)){0===t.length&&(e=fd);for(var n=0,i=t.length;n\u003Ci;n++){var o=t[n];if(null!=o){if(U(o)){e=fd;break}if(R(o)){e=gd;break}}}}else if(R(t))for(var r in t)if(q(t,r)&&ht(t[r])){e=yd;break}return e}function Df(t){var o;if(t)return o=N(),Y(t,function(t,e){var n,i={name:(t=R(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=i.name&&(i.name+=\\\"\\\",null==i.displayName&&(i.displayName=i.name),(n=o.get(i.name))?i.name+=\\\"-\\\"+n.count++:o.set(i.name,{count:1})),i})}function Af(t,e,n,i){if(e===_d)for(var o=0;o\u003Cn.length&&o\u003Ci;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o\u003Cr.length&&o\u003Ci;o++)t(r[o],o)}function kf(t){var e=t.sourceFormat;return e===gd||e===yd}Ef.prototype.getSource=function(){return this._source},Ef.prototype.count=function(){return 0},Ef.prototype.getItem=function(t,e){},Ef.prototype.appendData=function(t){},Ef.prototype.clean=function(){},Ef.protoInitialize=((jc=Ef.prototype).pure=!1,void(jc.persistent=!0)),Ef.internalField=(wf=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,s=n.dimensionsDefine;Z(t,bf[Hf(o,r)]),o===md?(t.getItem=Lf,t.count=Of,t.fillStorage=Pf):(i=Vf(o,r),t.getItem=I(i,null,e,a,s),i=Ff(o,r),t.count=I(i,null,e,a,s))},Lf=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r\u003Ci;r++)e[r]=n[o+r];return e},Pf=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a\u003Cr;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p\u003Ch;p++){var d=o[p*r+a];(c[t+p]=d)\u003Cl&&(l=d),u\u003Cd&&(u=d)}s[0]=l,s[1]=u}},Of=function(){return this._data?this._data.length/this._dimSize:0},(jc={}).arrayRows_column={pure:!0,appendData:zf},jc.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: \\\"row\\\".')}},jc.objectRows={pure:!0,appendData:zf},jc.keyedColumns={pure:!0,appendData:function(t){var o=this._data;lt(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i\u003C(t||[]).length;i++)n.push(t[i])})}},jc.original={appendData:zf},jc.typedArray={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(bf=jc));var Lf,Pf,Of,Rf=Ef,ra=function(t,e,n,i){return t[i]},Nf=((Wc={}).arrayRows_column=function(t,e,n,i){return t[i+e]},Wc.arrayRows_row=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s\u003Ca.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},Wc.objectRows=ra,Wc.keyedColumns=function(t,e,n,i,o){for(var r=o||[],a=0;a\u003Cn.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},Wc.original=ra,Wc);function Ef(t,e){var n=Mf(t)?t:Tf(t),i=(this._source=n,this._data=n.data);n.sourceFormat===md&&(this._offset=0,this._dimSize=e,this._data=i),wf(this,i,n)}function zf(t){for(var e=0;e\u003Ct.length;e++)this._data.push(t[e])}function Vf(t,e){return Nf[Hf(t,e)]}var Qr=function(t,e,n){return t.length},Bf=((Uc={}).arrayRows_column=function(t,e,n){return Math.max(0,t.length-e)},Uc.arrayRows_row=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Uc.objectRows=Qr,Uc.keyedColumns=function(t,e,n){var i=t[n[0].name];return i?i.length:0},Uc.original=Qr,Uc);function Ff(t,e){return Bf[Hf(t,e)]}var hd=function(t,e,n){return t[e]},Gf=((jc={}).arrayRows=hd,jc.objectRows=function(t,e,n){return t[n]},jc.keyedColumns=hd,jc.original=function(t,e,n){var i=Lr(t);return i instanceof Array?i[e]:i},jc.typedArray=hd,jc);function Wf(t){return Gf[t]}function Hf(t,e){return t===fd?t+\\\"_\\\"+e:t}function Yf(t,e,n){if(t){var i,o,r,a=t.getRawDataItem(e);if(null!=a)return i=(o=t.getStore()).getSource().sourceFormat,null!=n?(r=t.getDimensionIndex(n),o=o.getDimensionProperty(r),Wf(i)(a,r,o)):(r=a,i===dd?Lr(a):r)}}var Uf=/\\\\{@(.+?)\\\\}/g,ra=(Xf.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,\\\"style\\\"),l=s&&s[n.getItemVisual(t,\\\"drawType\\\")||\\\"fill\\\"],s=s&&s.stroke,u=this.mainType,h=\\\"series\\\"===u,n=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:l,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:[\\\"seriesName\\\",\\\"name\\\",\\\"value\\\"]}},Xf.prototype.getFormattedLabel=function(o,t,e,n,i,r){t=t||\\\"normal\\\";var a=this.getData(e),s=this.getDataParams(o,e);return r&&(s.value=r.interpolatedValue),null!=n&&U(s.value)&&(s.value=s.value[n]),A(i=i||a.getItemModel(o).get(\\\"normal\\\"===t?[\\\"label\\\",\\\"formatter\\\"]:[t,\\\"label\\\",\\\"formatter\\\"]))?(s.status=t,s.dimensionIndex=n,i(s)):X(i)?Hp(i,s).replace(Uf,function(t,e){var n=e.length,i=e,n=(\\\"[\\\"===i.charAt(0)&&\\\"]\\\"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),Yf(a,o,i));return null!=(n=r&&U(r.interpolatedValue)&&0\u003C=(i=a.getDimensionIndex(i))?r.interpolatedValue[i]:n)?n+\\\"\\\":\\\"\\\"}):void 0},Xf.prototype.getRawValue=function(t,e){return Yf(this.getData(e),t)},Xf.prototype.formatTooltip=function(t,e,n){},Xf);function Xf(){}function Zf(t){var e,n;return R(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function jf(t){return new eg(t)}rg.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;this._dirty&&n&&((r=this.context).data=r.outputData=n.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,r=u(this._modBy),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1\u003C=t?t:1}r===s&&a===l||(e=\\\"reset\\\"),!this._dirty&&\\\"reset\\\"!==e||(this._dirty=!1,o=this._doReset(i)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!i&&(o||h\u003Cc)){var p=this._progress;if(U(p))for(var d=0;d\u003Cp.length;d++)this._doProgress(p[d],h,c,s,l);else this._doProgress(p,h,c,s,l)}this._dueIndex=c;a=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},rg.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},rg.prototype._doProgress=function(t,e,n,i,o){ng.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:ng.next},this.context)},rg.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((n=this._reset(this.context))&&n.progress&&(e=n.forceFirstProgress,n=n.progress),U(n))&&!n.length&&(n=null),this._progress=n,this._modBy=this._modDataCount=null;var e,n=this._downstream;return n&&n.dirty(),e},rg.prototype.unfinished=function(){return this._progress&&this._dueIndex\u003Cthis._dueEnd},rg.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},rg.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},rg.prototype.getUpstream=function(){return this._upstream},rg.prototype.getDownstream=function(){return this._downstream},rg.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var qf,Kf,$f,Jf,Qf,tg,eg=rg,ng=tg={reset:function(t,e,n,i){Kf=t,qf=e,$f=n,Jf=i,Qf=Math.ceil(Jf/$f),tg.next=1\u003C$f&&0\u003CJf?og:ig}};function ig(){return Kf\u003Cqf?Kf++:null}function og(){var t=Kf%Qf*$f+Math.ceil(Kf/Qf),t=qf\u003C=Kf?null:t\u003CJf?t:Kf;return Kf++,t}function rg(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}function ag(t,e){var n=e&&e.type;return\\\"ordinal\\\"===n?t:null==(t=\\\"time\\\"!==n||j(t)||null==t||\\\"-\\\"===t?t:+fr(t))||\\\"\\\"===t?NaN:+t}var sg=N({number:function(t){return parseFloat(t)},time:function(t){return+fr(t)},trim:function(t){return X(t)?Ct(t):t}});function lg(t){return sg.get(t)}var ug={lt:function(t,e){return t\u003Ce},lte:function(t,e){return t\u003C=e},gt:function(t,e){return e\u003Ct},gte:function(t,e){return e\u003C=t}},hg=(gg.prototype.evaluate=function(t){return j(t)?this._opFn(t,this._rvalFloat):this._opFn(_r(t),this._rvalFloat)},gg),cg=(fg.prototype.evaluate=function(t,e){var n=j(t)?t:_r(t),i=j(e)?e:_r(e),o=isNaN(n),r=isNaN(i);return o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r&&(o=X(t),r=X(e),o&&(n=r?t:0),r)&&(i=o?e:0),n\u003Ci?this._resultLT:i\u003Cn?-this._resultLT:0},fg),pg=(dg.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||\\\"number\\\"!=e&&\\\"number\\\"!==this._rvalTypeof||(n=_r(t)===this._rvalFloat),this._isEQ?n:!n},dg);function dg(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=_r(e)}function fg(t,e){var n=\\\"desc\\\"===t;this._resultLT=n?1:-1,this._incomparable=\\\"min\\\"===(e=null==e?n?\\\"min\\\":\\\"max\\\":e)?-1/0:1/0}function gg(t,e){j(e)||Mr(\\\"\\\"),this._opFn=ug[t],this._rvalFloat=_r(e)}mg.prototype.getRawData=function(){throw new Error(\\\"not supported\\\")},mg.prototype.getRawDataItem=function(t){throw new Error(\\\"not supported\\\")},mg.prototype.cloneRawData=function(){},mg.prototype.getDimensionInfo=function(t){},mg.prototype.cloneAllDimensionInfo=function(){},mg.prototype.count=function(){},mg.prototype.retrieveValue=function(t,e){},mg.prototype.retrieveValueFromItem=function(t,e){},mg.prototype.convertValue=ag;var yg=mg;function mg(){}function vg(t){return Mg(t.sourceFormat)||Mr(\\\"\\\"),t.data}function xg(t){var e=t.sourceFormat,n=t.data;if(Mg(e)||Mr(\\\"\\\"),e===fd){for(var i=[],o=0,r=n.length;o\u003Cr;o++)i.push(n[o].slice());return i}if(e===gd){for(i=[],o=0,r=n.length;o\u003Cr;o++)i.push(Z({},n[o]));return i}}function _g(t,e,n){if(null!=n)return j(n)||!isNaN(n)&&!q(e,n)?t[n]:q(e,n)?e[n]:void 0}function bg(t){return L(t)}var wg=N();function Sg(t,o){o.length||Mr(\\\"\\\"),R(t)||Mr(\\\"\\\");var e=t.type,d=wg.get(e),e=(d||Mr(\\\"\\\"),Y(o,function(t){var e=t,t=d,n=new yg,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==xd&&Mr(\\\"\\\"),[]),s={};if(h=e.dimensionsDefine)lt(h,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(q(s,n)&&Mr(\\\"\\\"),s[n]=i)});else for(var l=0;l\u003Ce.dimensionsDetectedCount;l++)a.push({index:l});var u=Vf(o,xd),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,r,a,t)},n.getRawData=I(vg,null,e)),n.cloneRawData=I(xg,null,e),Ff(o,xd)),c=(n.count=I(h,null,i,r,a),Wf(o)),p=(n.retrieveValue=function(t,e){var n=u(i,r,a,t);return p(n,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=I(_g,null,a,s),n.cloneAllDimensionInfo=I(bg,null,a),n}));return Y(Dr(d.transform({upstream:e[0],upstreamList:e,config:L(t.config)})),function(t,e){R(t)||Mr(\\\"\\\"),t.data||Mr(\\\"\\\"),Mg(Cf(t.data))||Mr(\\\"\\\");var n=o[0],i=n&&0===e&&!t.dimensions?((i=n.startIndex)&&(t.data=n.data.slice(0,i).concat(t.data)),{seriesLayoutBy:xd,sourceHeader:i,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:xd,sourceHeader:0,dimensions:t.dimensions};return If(t.data,i,null)})}function Mg(t){return t===fd||t===gd}var Ig,Wc=\\\"undefined\\\",Tg=typeof Uint32Array==Wc?Array:Uint32Array,Cg=typeof Uint16Array==Wc?Array:Uint16Array,Dg=typeof Int32Array==Wc?Array:Int32Array,Qr=typeof Float64Array==Wc?Array:Float64Array,Ag={\\\"float\\\":Qr,\\\"int\\\":Dg,ordinal:Array,number:Array,time:Qr};function kg(t){return 65535\u003Ct?Tg:Cg}function Lg(t,e,n,i,o){var r=Ag[n||\\\"float\\\"];if(o){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;u\u003Cs;u++)l[u]=a[u];t[e]=l}}else t[e]=new r(i)}Ng.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Ig[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],kf(i),this._dimensions=Y(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},Ng.prototype.getProvider=function(){return this._provider},Ng.prototype.getSource=function(){return this._provider.getSource()},Ng.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new Ag[e||\\\"float\\\"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},Ng.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[t]=[1/0,-1/0]);for(var s=o[t],l=r;l\u003Ca;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type=\\\"ordinal\\\"},Ng.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},Ng.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},Ng.prototype.appendData=function(t){var e=this._provider,n=this.count(),i=(e.appendData(t),e.count());return e.persistent||(i+=n),n\u003Ci&&this._initDataFromProvider(n,i,!0),[n,i]},Ng.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l\u003Co;l++)Lg(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h\u003Cs;h++)for(var c=h-a,p=0;p\u003Co;p++){var d=i[p],f=Ig.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,r[p]);f\u003Cg[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},Ng.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=Y(r,function(t){return t.property}),u=0;u\u003Ca;u++){var h=r[u];s[u]||(s[u]=[1/0,-1/0]),Lg(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p\u003Ce;p++)for(var c=i.getItem(p,c),d=0;d\u003Ca;d++){var f=o[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g\u003Cf[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},Ng.prototype.count=function(){return this._count},Ng.prototype.get=function(t,e){var n;return 0\u003C=e&&e\u003Cthis._count&&(n=this._chunks[t])?n[this.getRawIndex(e)]:NaN},Ng.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o\u003Cthis._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o\u003Cr;o++)n.push(this.get(i[o],e));return n},Ng.prototype.getByRawIndex=function(t,e){var n;return 0\u003C=e&&e\u003Cthis._rawCount&&(n=this._chunks[t])?n[e]:NaN},Ng.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n\u003Ci;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},Ng.prototype.getMedian=function(t){var e=[],n=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},Ng.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t\u003C0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n\u003Cthis._count&&n===t)return t;for(var i=0,o=this._count-1;i\u003C=o;){var r=(i+o)/2|0;if(e[r]\u003Ct)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},Ng.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l\u003Cu;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c\u003C=n&&((c\u003Cr||c===r&&0\u003C=h&&a\u003C0)&&(r=c,a=h,s=0),h===a)&&(o[s++]=l)}o.length=s}return o},Ng.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o\u003Cn;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else for(i=new(e=kg(this._rawCount))(this.count()),o=0;o\u003Ci.length;o++)i[o]=o;return i},Ng.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(kg(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h\u003Ci;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d\u003Ca;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s\u003Ci&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},Ng.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=W(t),o=i.length;if(!o)return this;var r=e.count(),a=new(kg(e._rawCount))(r),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[i[0]],f=0;f\u003Cn;f++)((v=d[f])>=u&&v\u003C=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f\u003Cn;f++){var v=d[f],x=g[f];(u\u003C=v&&v\u003C=h||isNaN(v))&&(y\u003C=x&&x\u003C=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f\u003Cr;f++){var _=e.getRawIndex(f);((v=c[i[0]][_])>=u&&v\u003C=h||isNaN(v))&&(a[s++]=_)}else for(f=0;f\u003Cr;f++){for(var b=!0,w=(_=e.getRawIndex(f),0);w\u003Co;w++){var S=i[w];((v=c[S][_])\u003Ct[S][0]||v>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s\u003Cr&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},Ng.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},Ng.prototype.modify=function(t,e){this._updateDims(this,t,e)},Ng.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u\u003Ce.length;u++)l[e[u]]=[1/0,-1/0];for(var h=0;h\u003Ca;h++){for(var c=t.getRawIndex(h),p=0;p\u003Cr;p++)s[p]=i[e[p]][c];s[r]=h;var d=n&&n.apply(null,s);if(null!=d)for(\\\"object\\\"!=typeof d&&(o[0]=d,d=o),u=0;u\u003Cd.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g\u003Cy[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},Ng.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(kg(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;h\u003Cr-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g\u003Cp;g++){var y=o[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,x=o[l],_=-1,b=c,w=-1,S=0,g=c;g\u003Cm;g++){var M,y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,w\u003C0&&(w=M)):(n=Math.abs((v-d)*(y-x)-(v-g)*(f-x)))>_&&(_=n,b=M)}0\u003CS&&S\u003Cm-c&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},Ng.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=[1/0,-1/0],c=new(kg(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d\u003Cu;d+=s){u-d\u003Cs&&(a.length=s=u-d);for(var f=0;f\u003Cs;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)\u003Ch[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},Ng.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o\u003Cr;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s\u003Cn;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},Ng.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,o=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var r=(i=n)[0],a=i[1],s=0;s\u003Co;s++){var l=e[this.getRawIndex(s)];l\u003Cr&&(r=l),a\u003Cl&&(a=l)}return this._extent[t]=i=[r,a]},Ng.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o\u003Ci.length;o++)n.push(i[o][e]);return n},Ng.prototype.clone=function(t,e){var n,i,o=new Ng,r=this._chunks,a=t&&ct(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s\u003Cr.length;s++)o._chunks[s]=a[s]?(i=void 0,(i=(n=r[s]).constructor)===Array?n.slice():new i(n)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},Ng.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=L(this._extent),t._rawExtent=L(this._rawExtent)},Ng.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i\u003Cn;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},Ng.prototype._getRawIdxIdentity=function(t){return t},Ng.prototype._getRawIdx=function(t){return t\u003Cthis._count&&0\u003C=t?this._indices[t]:-1},Ng.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},Ng.internalField=void(Ig={arrayRows:Eg,objectRows:function(t,e,n,i){return ag(t[e],this._dimensions[i])},keyedColumns:Eg,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return ag(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Pg=Ng,Og=(Rg.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Rg.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10\u003Cthis._versionSignBase&&(this._versionSignBase=0)},Rg.prototype._getVersionSign=function(){return this._sourceHost.uid+\\\"_\\\"+this._versionSignBase},Rg.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Rg.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Vg(s)?(i=s,o=t=r=void 0,e=u?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=yt(r=i.get(\\\"data\\\",!0))?md:dd,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=P(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=P(i.sourceHeader,o.sourceHeader),i=P(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[If(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[If(r.get(\\\"source\\\",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Rg.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get(\\\"transform\\\",!0),i=n.get(\\\"fromTransformResult\\\",!0);null!=i&&1!==t.length&&Bg(\\\"\\\");var o=[],a=[];return lt(t,function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||Bg(\\\"\\\"),o.push(e),a.push(t._getVersionSign())}),r?e=function(t){var e=Dr(r),n=e.length;n||Mr(\\\"\\\");for(var i=0,o=n;i\u003Co;i++)t=Sg(e[i],t),i!==o-1&&(t.length=Math.max(t.length,1));return t}(o,n.componentIndex):null!=i&&(e=[new Sf({data:(n=o[0]).data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:L(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Rg.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e\u003Ct.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Rg.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Rg.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Rg.prototype._innerGetDataStore=function(t,e,n){var i,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[n];return o||(i=this._getUpstreamSourceManagers()[0],Vg(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new Pg).initData(new Rf(e,t.length),t),r[n]=o),o},Rg.prototype._getUpstreamSourceManagers=function(){var t,e,n=this._sourceHost;return Vg(n)?(t=Cd(n))?[t.getSourceManager()]:[]:Y((e=n).get(\\\"transform\\\",!0)||e.get(\\\"fromTransformResult\\\",!0)?Yr(e.ecModel,\\\"dataset\\\",{index:e.get(\\\"fromDatasetIndex\\\",!0),id:e.get(\\\"fromDatasetId\\\",!0)},Wr).models:[],function(t){return t.getSourceManager()})},Rg.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Vg(i)?(t=i.get(\\\"seriesLayoutBy\\\",!0),e=i.get(\\\"sourceHeader\\\",!0),n=i.get(\\\"dimensions\\\",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get(\\\"seriesLayoutBy\\\",!0),e=i.get(\\\"sourceHeader\\\",!0),n=i.get(\\\"dimensions\\\",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},Rg);function Rg(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Ng(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=N()}function Eg(t,e,n,i){return ag(t[i],this._dimensions[i])}function zg(t){t.option.transform&&At(t.option.transform)}function Vg(t){return\\\"series\\\"===t.mainType}function Bg(t){throw new Error(t)}function Fg(t,e){var n=t.color||\\\"#6e7079\\\",i=t.fontSize||12,o=t.fontWeight||\\\"400\\\",r=t.color||\\\"#464646\\\",a=t.fontSize||14,s=t.fontWeight||\\\"900\\\";return\\\"html\\\"===e?{nameStyle:\\\"font-size:\\\"+Bp(i+\\\"\\\")+\\\"px;color:\\\"+Bp(n)+\\\";font-weight:\\\"+Bp(o+\\\"\\\"),valueStyle:\\\"font-size:\\\"+Bp(a+\\\"\\\")+\\\"px;color:\\\"+Bp(r)+\\\";font-weight:\\\"+Bp(s+\\\"\\\")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var Gg=[0,10,20,30],Wg=[\\\"\\\",\\\"\\\\n\\\",\\\"\\\\n\\\\n\\\",\\\"\\\\n\\\\n\\\\n\\\"];function Hg(t,e){return e.type=t,e}function Yg(t){return\\\"section\\\"===t.type}function Ug(t){return Yg(t)?Xg:Zg}function Xg(i,o,t,r){var n,e=o.noHeader,a=(l=function c(t){var n,e,i;return Yg(t)?(n=0,e=t.blocks.length,i=1\u003Ce||0\u003Ce&&!t.noHeader,lt(t.blocks,function(t){var e=c(t);n\u003C=e&&(n=e+ +(i&&(!e||Yg(t)&&!t.noHeader)))}),n):0}(o),{html:Gg[l],richText:Wg[l]}),s=[],l=o.blocks||[],u=(Tt(!l||U(l)),l=l||[],i.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),q(h={valueAsc:\\\"asc\\\",valueDesc:\\\"desc\\\"},u)?(n=new cg(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):\\\"seriesDesc\\\"===u&&l.reverse()),lt(l,function(t,e){var n=o.valueFormatter,n=Ug(t)(n?Z(Z({},i),{valueFormatter:n}):i,t,0\u003Ce?a.html:0,r);null!=n&&s.push(n)}),\\\"richText\\\"===i.renderMode?s.join(a.richText):qg(s.join(\\\"\\\"),e?t:a.html));return e?h:(u=Fp(o.header,\\\"ordinal\\\",i.useUTC),l=Fg(r,i.renderMode).nameStyle,\\\"richText\\\"===i.renderMode?Kg(i,u,l)+a.richText+h:qg('\u003Cdiv style=\\\"'+l+';line-height:1;\\\">'+Bp(u)+\\\"\u003C/div>\\\"+h,t))}function Zg(t,e,n,i){var o,r,a,s,l,u,h=t.renderMode,c=e.noName,p=e.noValue,d=!e.markerType,f=e.name,g=t.useUTC,y=e.valueFormatter||t.valueFormatter||function(t){return Y(t=U(t)?t:[t],function(t,e){return Fp(t,U(r)?r[e]:r,g)})};if(!c||!p)return o=d?\\\"\\\":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||\\\"#333\\\",h),f=c?\\\"\\\":Fp(f,\\\"ordinal\\\",g),r=e.valueType,y=p?[]:y(e.value),a=!d||!c,s=!d&&c,u=Fg(i,h),l=u.nameStyle,u=u.valueStyle,\\\"richText\\\"===h?(d?\\\"\\\":o)+(c?\\\"\\\":Kg(t,f,l))+(p?\\\"\\\":(e=t,i=y,h=[u],a&&h.push({padding:[0,0,0,s?10:20],align:\\\"right\\\"}),e.markupStyleCreator.wrapRichTextStyle(U(i)?i.join(\\\" \\\"):i,h))):qg((d?\\\"\\\":o)+(c?\\\"\\\":'\u003Cspan style=\\\"'+l+\\\";\\\"+(d?\\\"\\\":\\\"margin-left:2px\\\")+'\\\">'+Bp(f)+\\\"\u003C/span>\\\")+(p?\\\"\\\":'\u003Cspan style=\\\"'+(a?\\\"float:right;margin-left:\\\"+(s?\\\"10px\\\":\\\"20px\\\"):\\\"\\\")+\\\";\\\"+u+'\\\">'+Y(U(t=y)?t:[t],Bp).join(\\\" \\\")+\\\"\u003C/span>\\\"),n)}function jg(t,e,n,i,o,r){if(t)return Ug(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function qg(t,e){return'\u003Cdiv style=\\\"margin: '+e+'px 0 0;line-height:1;\\\">'+t+'\u003Cdiv style=\\\"clear:both\\\">\u003C/div>\u003C/div>'}function Kg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function $g(t,e){return Up(t.getData().getItemVisual(e,\\\"style\\\")[t.visualDrawType])}function Jg(t,e){var n=t.get(\\\"padding\\\");return null!=n?n:\\\"richText\\\"===e?[8,10]:10}ty.prototype._generateStyleName=function(){return\\\"__EC_aUTo_\\\"+this._nextStyleNameId++},ty.prototype.makeTooltipMarker=function(t,e,n){var i=\\\"richText\\\"===n?this._generateStyleName():null,o=Yp({color:e,type:t,renderMode:n,markerId:i});return X(o)?o:(this.richTextStyles[i]=o.style,o.content)},ty.prototype.wrapRichTextStyle=function(t,e){var n={},i=(U(e)?lt(e,function(t){return Z(n,t)}):Z(n,e),this._generateStyleName());return this.richTextStyles[i]=n,\\\"{\\\"+i+\\\"|\\\"+t+\\\"}\\\"};var Qg=ty;function ty(){this.richTextStyles={},this._nextStyleNameId=wr()}function ey(t){var e,n,i,o,r,a,s,l,u,h,c,p,d=t.series,f=t.dataIndex,g=t.multipleSeries,y=d.getData(),m=y.mapDimensionsAll(\\\"defaultedTooltip\\\"),v=m.length,x=d.getRawValue(f),_=U(x),b=$g(d,f);function w(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?p.push(Hg(\\\"nameValue\\\",{markerType:\\\"subItem\\\",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(h.push(t),c.push(n.type)))}1\u003Cv||_&&!v?(t=x,r=f,a=m,s=b,l=d.getData(),u=ct(t,function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),h=[],c=[],p=[],a.length?lt(a,function(t){w(Yf(l,r,t),t)}):lt(t,w),n=(e={inlineValues:h,inlineValueTypes:c,blocks:p}).inlineValueTypes,i=e.blocks,o=(e=e.inlineValues)[0]):v?(v=y.getDimensionInfo(m[0]),o=e=Yf(y,f,m[0]),n=v.type):o=e=_?x[0]:x;m=Er(d),v=m&&d.name||\\\"\\\",_=y.getName(f),x=g?v:_;return Hg(\\\"section\\\",{header:v,noHeader:g||!m,sortParam:o,blocks:[Hg(\\\"nameValue\\\",{markerType:\\\"item\\\",markerColor:b,name:x,noName:!Ct(x),value:e,valueType:n})].concat(i||[])})}var ny=i();function iy(t,e){return t.getName(e)||t.getId(e)}u(ay,oy=m),ay.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=jf({count:ly,reset:uy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(ny(this).sourceManager=new Og(this)).prepareSource();var i=this.getInitialData(t,n);cy(i,this),this.dataTask.context.data=i,ny(this).dataBeforeProcessed=i,sy(this),this._initSelectedMapFromData(i)},ay.prototype.mergeDefaultAndTheme=function(t,e){var n=td(this),i=n?nd(t):{},o=this.subType;m.hasClass(o),v(t,e.getTheme().get(this.subType)),v(t,this.getDefaultOption()),Ar(t,\\\"label\\\",[\\\"show\\\"]),this.fillDataTextStyle(t.data),n&&ed(t,i,n)},ay.prototype.mergeOption=function(t,e){t=v(this.option,t,!0),this.fillDataTextStyle(t.data);var n=td(this),n=(n&&ed(this.option,t,n),ny(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));cy(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,ny(this).dataBeforeProcessed=n,sy(this),this._initSelectedMapFromData(n)},ay.prototype.fillDataTextStyle=function(t){if(t&&!yt(t))for(var e=[\\\"show\\\"],n=0;n\u003Ct.length;n++)t[n]&&t[n].label&&Ar(t[n],\\\"label\\\",e)},ay.prototype.getInitialData=function(t,e){},ay.prototype.appendData=function(t){this.getRawData().appendData(t.data)},ay.prototype.getData=function(t){var e=dy(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):ny(this).data},ay.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},ay.prototype.setData=function(t){var e,n=dy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),ny(this).data=t},ay.prototype.getEncode=function(){var t=this.get(\\\"encode\\\",!0);if(t)return N(t)},ay.prototype.getSourceManager=function(){return ny(this).sourceManager},ay.prototype.getSource=function(){return this.getSourceManager().getSource()},ay.prototype.getRawData=function(){return ny(this).dataBeforeProcessed},ay.prototype.getColorBy=function(){return this.get(\\\"colorBy\\\")||\\\"series\\\"},ay.prototype.isColorBySeries=function(){return\\\"series\\\"===this.getColorBy()},ay.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},ay.prototype.formatTooltip=function(t,e,n){return ey({series:this,dataIndex:t,multipleSeries:e})},ay.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!S.node||t&&t.ssr)&&!!(t=(t=this.getShallow(\\\"animation\\\"))&&this.getData().count()>this.getShallow(\\\"animationThreshold\\\")?!1:t)},ay.prototype.restoreData=function(){this.dataTask.dirty()},ay.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Ed.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},ay.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},ay.prototype.getProgressive=function(){return this.get(\\\"progressive\\\")},ay.prototype.getProgressiveThreshold=function(){return this.get(\\\"progressiveThreshold\\\")},ay.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},ay.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if(\\\"series\\\"===i||\\\"all\\\"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r\u003Ct.length;r++){var a=iy(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},ay.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i\u003Ct.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},ay.prototype.getSelectedDataIndices=function(){if(\\\"all\\\"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=W(t),n=[],i=0;i\u003Ce.length;i++){var o=t[e[i]];0\u003C=o&&n.push(o)}return n},ay.prototype.isSelected=function(t,e){var n,i=this.option.selectedMap;return!!i&&(n=this.getData(e),\\\"all\\\"===i||i[iy(n,t)])&&!n.getItemModel(t).get([\\\"select\\\",\\\"disabled\\\"])},ay.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},ay.prototype._innerSelect=function(t,e){var n,i=this.option,o=i.selectedMode,r=e.length;if(o&&r)if(\\\"series\\\"===o)i.selectedMap=\\\"all\\\";else if(\\\"multiple\\\"===o){R(i.selectedMap)||(i.selectedMap={});for(var a=i.selectedMap,s=0;s\u003Cr;s++){var l=e[s];a[n=iy(t,l)]=!0,this._selectedDataIndicesMap[n]=t.getRawIndex(l)}}else\\\"single\\\"!==o&&!0!==o||(n=iy(t,o=e[r-1]),i.selectedMap=((i={})[n]=!0,i),this._selectedDataIndicesMap=((i={})[n]=t.getRawIndex(o),i))},ay.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0\u003Ci.length&&this._innerSelect(n,i))},ay.registerClass=function(t){return m.registerClass(t)},ay.protoInitialize=((Uc=ay.prototype).type=\\\"series.__base__\\\",Uc.seriesIndex=0,Uc.ignoreStyleOnData=!1,Uc.hasSymbolVisual=!1,Uc.defaultSymbol=\\\"circle\\\",Uc.visualStyleAccessPath=\\\"itemStyle\\\",void(Uc.visualDrawType=\\\"fill\\\"));var oy,ry=ay;function ay(){var t=null!==oy&&oy.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function sy(t){var n,e,i,o=t.name;Er(t)||(t.name=(n=t.getRawData(),e=n.mapDimensionsAll(\\\"seriesName\\\"),i=[],lt(e,function(t){var e=n.getDimensionInfo(t);e.displayName&&i.push(e.displayName)}),i.join(\\\" \\\")||o))}function ly(t){return t.model.getRawData().count()}function uy(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),hy}function hy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cy(e,n){lt(Ot(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,D(py,n))})}function py(t,e){var n=dy(t);return n&&n.setOutputEnd((e||this).count()),e}function dy(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}ut(ry,ra),ut(ry,Ed),Jr(ry,m);gy.prototype.init=function(t,e){},gy.prototype.render=function(t,e,n,i){},gy.prototype.dispose=function(t,e){},gy.prototype.updateView=function(t,e,n,i){},gy.prototype.updateLayout=function(t,e,n,i){},gy.prototype.updateVisual=function(t,e,n,i){},gy.prototype.toggleBlurSeries=function(t,e,n){},gy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var fy=gy;function gy(){this.group=new K,this.uid=ep(\\\"viewComponent\\\")}function yy(){var a=i();return function(t){var e=a(t),n=t.pipelineContext,i=!!e.large,o=!!e.progressiveRender,r=e.large=!(!n||!n.large),e=e.progressiveRender=!(!n||!n.progressiveRender);return!(i==r&&o==e)&&\\\"reset\\\"}}$r(fy),na(fy);var my=i(),vy=yy(),xy=(_y.prototype.init=function(t,e){},_y.prototype.render=function(t,e,n,i){},_y.prototype.highlight=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&wy(o,i,\\\"emphasis\\\")},_y.prototype.downplay=function(t,e,n,i){var o=t.getData(i&&i.dataType);o&&wy(o,i,\\\"normal\\\")},_y.prototype.remove=function(t,e){this.group.removeAll()},_y.prototype.dispose=function(t,e){},_y.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},_y.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},_y.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},_y.prototype.eachRendered=function(t){bc(this.group,t)},_y.markUpdateMethod=function(t,e){my(t).updateMethod=e},_y.protoInitialize=void(_y.prototype.type=\\\"chart\\\"),_y);function _y(){this.group=new K,this.uid=ep(\\\"viewChart\\\"),this.renderTask=jf({plan:Sy,reset:My}),this.renderTask.context={view:this}}function by(t,e,n){t&&Ql(t)&&(\\\"emphasis\\\"===e?Rl:Nl)(t,n)}function wy(e,t,n){var i,o=Vr(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=al[t])&&rl\u003C=32?al[t]=rl++:i):null;null!=o?lt(Dr(o),function(t){by(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){by(t,n,r)})}function Sy(t){return vy(t.model)}function My(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=t.view,s=o&&my(o).updateMethod,r=r?\\\"incrementalPrepareRender\\\":s&&a[s]?s:\\\"render\\\";return\\\"render\\\"!==r&&a[r](e,n,i,o),Iy[r]}$r(xy),na(xy);var Iy={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Ty=\\\"\\\\0__throttleOriginMethod\\\",Cy=\\\"\\\\0__throttleRate\\\",Dy=\\\"\\\\0__throttleType\\\";function Ay(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;var e=function(){for(var t=[],e=0;e\u003Carguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var n=h||o,i=h||r;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0\u003C=s?f():d=setTimeout(f,-s),c=a};return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function ky(t,e,n,i){var o=t[e];if(o){var r=o[Ty]||o,a=o[Dy];if(o[Cy]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Ay(r,n,\\\"debounce\\\"===i))[Ty]=r,o[Dy]=i,o[Cy]=n}return o}}function Ly(t,e){var n=t[e];n&&n[Ty]&&(n.clear&&n.clear(),t[e]=n[Ty])}var Py=i(),Oy={itemStyle:ia(Xc,!0),lineStyle:ia(Hc,!0)},Ry={lineStyle:\\\"stroke\\\",itemStyle:\\\"fill\\\"};function Ny(t,e){return t.visualStyleMapper||Oy[e]||(console.warn(\\\"Unkown style type '\\\"+e+\\\"'.\\\"),Oy.itemStyle)}function Ey(t,e){return t.visualDrawType||Ry[e]||(console.warn(\\\"Unkown style type '\\\"+e+\\\"'.\\\"),\\\"fill\\\")}var hd={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||\\\"itemStyle\\\",i=o.getModel(n),r=Ny(o,n)(i),i=i.getShallow(\\\"decal\\\"),a=(i&&(e.setVisual(\\\"decal\\\",i),i.dirty=!0),Ey(o,n)),i=r[a],s=A(i)?i:null,n=\\\"auto\\\"===r.fill||\\\"auto\\\"===r.stroke;if(r[a]&&!s&&!n||(i=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=i,e.setVisual(\\\"colorFromPalette\\\",!0)),r.fill=\\\"auto\\\"===r.fill||A(r.fill)?i:r.fill,r.stroke=\\\"auto\\\"===r.stroke||A(r.stroke)?i:r.stroke),e.setVisual(\\\"style\\\",r),e.setVisual(\\\"drawType\\\",a),!t.isSeriesFiltered(o)&&s)return e.setVisual(\\\"colorFromPalette\\\",!1),{dataEach:function(t,e){var n=o.getDataParams(e),i=Z({},r);i[a]=s(n),t.setItemVisual(e,\\\"style\\\",i)}}}},zy=new qc,jc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n,i,o,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return n=t.getData(),i=t.visualStyleAccessPath||\\\"itemStyle\\\",o=Ny(t,i),r=n.getVisual(\\\"drawType\\\"),{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(zy.option=n[i],n=o(zy),Z(t.ensureUniqueItemVisual(e,\\\"style\\\"),n),zy.option.decal&&(t.setItemVisual(e,\\\"decal\\\",zy.option.decal),zy.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,\\\"colorFromPalette\\\",!1)}:null}}},Wc={performRawSeries:!0,overallReset:function(e){var i=N();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+\\\"-\\\"+n,(e=i.get(n))||i.set(n,e={}),Py(t).scope=e)}),e.eachSeries(function(o){var r,a,s,l,t,u;o.isColorBySeries()||e.isSeriesFiltered(o)||(r=o.getRawData(),a={},s=o.getData(),l=Py(o).scope,t=o.visualStyleAccessPath||\\\"itemStyle\\\",u=Ey(o,t),s.each(function(t){var e=s.getRawIndex(t);a[e]=t}),r.each(function(t){var e,n,i=a[t];s.getItemVisual(i,\\\"colorFromPalette\\\")&&(i=s.ensureUniqueItemVisual(i,\\\"style\\\"),e=r.getName(t)||t+\\\"\\\",n=r.count(),i[u]=o.getColorFromPalette(e,l,n))}))})}},Vy=Math.PI,By=(Fy.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},Fy.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:n=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(i=i&&i.modDataCount)?Math.ceil(i/n):null,modDataCount:i}},Fy.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Fy.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get(\\\"large\\\")&&i>=t.get(\\\"largeThreshold\\\"),i=\\\"mod\\\"===t.get(\\\"progressiveChunkMode\\\")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:i,large:r}},Fy.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=N();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Fy.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;lt(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Tt(!(t.reset&&t.overallReset),\\\"\\\"),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Fy.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Fy.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Fy.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Fy.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}lt(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Fy.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Fy.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Fy.prototype.updatePayload=function(t,e){\\\"remain\\\"!==e&&(t.context.payload=e)},Fy.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),e=n.seriesType,l=n.getTargetSeries;function u(t){var e=t.uid,e=s.set(e,a&&a.get(e)||jf({plan:Uy,reset:Xy,count:qy}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(u):e?i.eachRawSeriesByType(e,u):l&&l(i,o).each(u)},Fy.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||jf({reset:Gy}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=N(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(c=!0,jf({reset:Wy,onDirty:Yy})));e.context={model:t,overallProgress:h},e.agent=r,e.__block=h,o._pipe(t,e)}Tt(!t.createOnAllSeries,\\\"\\\"),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,lt(n.getSeries(),p)),c&&r.dirty()},Fy.prototype._pipe=function(t,e){var n=t.uid,n=this._pipelineMap.get(n);n.head||(n.head=e),n.tail&&n.tail.pipe(e),(n.tail=e).__idxInPipeline=n.count++,e.__pipeline=n},Fy.wrapStageHandler=function(t,e){return(t=A(t)?{overallReset:t,seriesType:function(t){Ky=null;try{t($y,Jy)}catch(t){}return Ky}(t)}:t).uid=ep(\\\"stageHandler\\\"),e&&(t.visualType=e),t},Fy);function Fy(t,e,n,i){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Gy(t){t.overallReset(t.ecModel,t.api,t.payload)}function Wy(t){return t.overallProgress&&Hy}function Hy(){this.agent.dirty(),this.getDownstream().dirty()}function Yy(){this.agent&&this.agent.dirty()}function Uy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Xy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Dr(t.reset(t.model,t.ecModel,t.api,t.payload));return 1\u003Ce.length?Y(e,function(t,e){return jy(e)}):Zy}var Zy=jy(0);function jy(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o\u003Ct.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function qy(t){return t.data.count()}var Ky,$y={},Jy={};function Qy(t,e){for(var n in e.prototype)t[n]=Et}Qy($y,Gd),Qy(Jy,Zd),$y.eachSeriesByType=$y.eachRawSeriesByType=function(t){Ky=t},$y.eachComponent=function(t){\\\"series\\\"===t.mainType&&t.subType&&(Ky=t.subType)};var Qr=[\\\"#37A2DA\\\",\\\"#32C5E9\\\",\\\"#67E0E3\\\",\\\"#9FE6B8\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#fb7293\\\",\\\"#E062AE\\\",\\\"#E690D1\\\",\\\"#e7bcf3\\\",\\\"#9d96f5\\\",\\\"#8378EA\\\",\\\"#96BFFF\\\"],Uc={color:Qr,colorLayer:[[\\\"#37A2DA\\\",\\\"#ffd85c\\\",\\\"#fd7b5f\\\"],[\\\"#37A2DA\\\",\\\"#67E0E3\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#E062AE\\\",\\\"#9d96f5\\\"],[\\\"#37A2DA\\\",\\\"#32C5E9\\\",\\\"#9FE6B8\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#fb7293\\\",\\\"#e7bcf3\\\",\\\"#8378EA\\\",\\\"#96BFFF\\\"],Qr]},tm=\\\"#B9B8CE\\\",Xc=\\\"#100C2A\\\",Hc=function(){return{axisLine:{lineStyle:{color:tm}},splitLine:{lineStyle:{color:\\\"#484753\\\"}},splitArea:{areaStyle:{color:[\\\"rgba(255,255,255,0.02)\\\",\\\"rgba(255,255,255,0.05)\\\"]}},minorSplitLine:{lineStyle:{color:\\\"#20203B\\\"}}}},Qr=[\\\"#4992ff\\\",\\\"#7cffb2\\\",\\\"#fddd60\\\",\\\"#ff6e76\\\",\\\"#58d9f9\\\",\\\"#05c091\\\",\\\"#ff8a45\\\",\\\"#8d48e3\\\",\\\"#dd79ff\\\"],Xc={darkMode:!0,color:Qr,backgroundColor:Xc,axisPointer:{lineStyle:{color:\\\"#817f91\\\"},crossStyle:{color:\\\"#817f91\\\"},label:{color:\\\"#fff\\\"}},legend:{textStyle:{color:tm}},textStyle:{color:tm},title:{textStyle:{color:\\\"#EEF1FA\\\"},subtextStyle:{color:\\\"#B9B8CE\\\"}},toolbox:{iconStyle:{borderColor:tm}},dataZoom:{borderColor:\\\"#71708A\\\",textStyle:{color:tm},brushStyle:{color:\\\"rgba(135,163,206,0.3)\\\"},handleStyle:{color:\\\"#353450\\\",borderColor:\\\"#C5CBE3\\\"},moveHandleStyle:{color:\\\"#B0B6C3\\\",opacity:.3},fillerColor:\\\"rgba(135,163,206,0.2)\\\",emphasis:{handleStyle:{borderColor:\\\"#91B7F2\\\",color:\\\"#4D587D\\\"},moveHandleStyle:{color:\\\"#636D9A\\\",opacity:.7}},dataBackground:{lineStyle:{color:\\\"#71708A\\\",width:1},areaStyle:{color:\\\"#71708A\\\"}},selectedDataBackground:{lineStyle:{color:\\\"#87A3CE\\\"},areaStyle:{color:\\\"#87A3CE\\\"}}},visualMap:{textStyle:{color:tm}},timeline:{lineStyle:{color:tm},label:{color:tm},controlStyle:{color:tm,borderColor:tm}},calendar:{itemStyle:{color:Xc},dayLabel:{color:tm},monthLabel:{color:tm},yearLabel:{color:tm}},timeAxis:Hc(),logAxis:Hc(),valueAxis:Hc(),categoryAxis:Hc(),line:{symbol:\\\"circle\\\"},graph:{color:Qr},gauge:{title:{color:tm},axisLine:{lineStyle:{color:[[1,\\\"rgba(207,212,219,0.2)\\\"]]}},axisLabel:{color:tm},detail:{color:\\\"#EEF1FA\\\"}},candlestick:{itemStyle:{color:\\\"#f64e56\\\",color0:\\\"#54ea92\\\",borderColor:\\\"#f64e56\\\",borderColor0:\\\"#54ea92\\\"}}},em=(Xc.categoryAxis.splitLine.show=!1,om.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return X(t)?(e=Kr(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=[\\\"Index\\\",\\\"Name\\\",\\\"Id\\\"],s={name:1,dataIndex:1,dataType:1},lt(t,function(t,e){for(var n=!1,i=0;i\u003Ca.length;i++){var o=a[i],r=e.lastIndexOf(o);0\u003Cr&&r===e.length-o.length&&\\\"data\\\"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},om.prototype.filter=function(t,e){var n,i,o,r,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,o=s.model,s=s.view,!o)||!s||(r=e.cptQuery,a=e.dataQuery,l(r,o,\\\"mainType\\\")&&l(r,o,\\\"subType\\\")&&l(r,o,\\\"index\\\",\\\"componentIndex\\\")&&l(r,o,\\\"name\\\")&&l(r,o,\\\"id\\\")&&l(a,i,\\\"name\\\")&&l(a,i,\\\"dataIndex\\\")&&l(a,i,\\\"dataType\\\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},om.prototype.afterTrigger=function(){this.eventInfo=null},om),nm=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolRotate\\\",\\\"symbolOffset\\\"],im=nm.concat([\\\"symbolKeepAspect\\\"]),Hc={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,t){var e=a.getData();if(a.legendIcon&&e.setVisual(\\\"legendIcon\\\",a.legendIcon),a.hasSymbolVisual){for(var s,n={},l={},i=!1,o=0;o\u003Cnm.length;o++){var r=nm[o],u=a.get(r);A(u)?(i=!0,l[r]=u):n[r]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(Z({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get(\\\"symbolKeepAspect\\\")},n)),!t.isSeriesFiltered(a))return s=W(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),o=0;o\u003Cs.length;o++){var r=s[o];t.setItemVisual(e,r,l[r](n,i))}}:null}}}},Qr={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i\u003Cim.length;i++){var o=im[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function om(){}function rm(t,e,n){switch(n){case\\\"color\\\":return t.getItemVisual(e,\\\"style\\\")[t.getVisual(\\\"drawType\\\")];case\\\"opacity\\\":return t.getItemVisual(e,\\\"style\\\").opacity;case\\\"symbol\\\":case\\\"symbolSize\\\":case\\\"liftZ\\\":return t.getItemVisual(e,n)}}function am(t,e){switch(e){case\\\"color\\\":return t.getVisual(\\\"style\\\")[t.getVisual(\\\"drawType\\\")];case\\\"opacity\\\":return t.getVisual(\\\"style\\\").opacity;case\\\"symbol\\\":case\\\"symbolSize\\\":case\\\"liftZ\\\":return t.getVisual(e)}}function sm(t,e,n,i){switch(n){case\\\"color\\\":t.ensureUniqueItemVisual(e,\\\"style\\\")[t.getVisual(\\\"drawType\\\")]=i,t.setItemVisual(e,\\\"colorFromPalette\\\",!1);break;case\\\"opacity\\\":t.ensureUniqueItemVisual(e,\\\"style\\\").opacity=i;break;case\\\"symbol\\\":case\\\"symbolSize\\\":case\\\"liftZ\\\":t.setItemVisual(e,n,i)}}function lm(r,t){lt([[r+\\\"ToggleSelect\\\",\\\"toggleSelect\\\"],[r+\\\"Select\\\",\\\"select\\\"],[r+\\\"UnSelect\\\",\\\"unselect\\\"]],function(o){t(o[0],function(t,e,n){var i;t=Z({},t),n.dispatchAction(Z(t,{type:o[1],seriesIndex:(t=t,i=[],e.eachComponent({mainType:\\\"series\\\",subType:r,query:t},function(t){i.push(t.seriesIndex)}),i)}))})})}function um(t,e,s,n,l){var u=t+e;s.isSilent(u)||n.eachComponent({mainType:\\\"series\\\",subType:\\\"pie\\\"},function(t){for(var e,n,i=t.seriesIndex,o=t.option.selectedMap,r=l.selected,a=0;a\u003Cr.length;a++)r[a].seriesIndex===i&&(n=Vr(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:U(n)?e.getName(n[0]):e.getName(n),selected:X(o)?o:Z({},o)}))})}function hm(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var cm=Math.round(9*Math.random()),pm=\\\"function\\\"==typeof Object.defineProperty,dm=(_m.prototype.get=function(t){return this._guard(t)[this._id]},_m.prototype.set=function(t,e){var n=this._guard(t);return pm?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},_m.prototype[\\\"delete\\\"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},_m.prototype.has=function(t){return!!this._guard(t)[this._id]},_m.prototype._guard=function(t){if(t!==Object(t))throw TypeError(\\\"Value of WeakMap is not a non-null object.\\\");return t},_m),fm=Q.extend({type:\\\"triangle\\\",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i+r),t.lineTo(n-o,i+r),t.closePath()}}),gm=Q.extend({type:\\\"diamond\\\",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,r=e.height/2;t.moveTo(n,i-r),t.lineTo(n+o,i),t.lineTo(n,i+r),t.lineTo(n-o,i),t.closePath()}}),ym=Q.extend({type:\\\"pin\\\",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),o=o/2,a=o*o/(r-o),r=i-r+o+a,s=Math.asin(a/o),l=Math.cos(s)*o,u=Math.sin(s),h=Math.cos(s),c=.6*o,p=.7*o;t.moveTo(n-l,r+a),t.arc(n,r,o,Math.PI-s,2*Math.PI+s),t.bezierCurveTo(n+l-u*c,r+a+h*c,n,i-p,n,i),t.bezierCurveTo(n,i-p,n-l+u*c,r+a+h*c,n-l,r+a),t.closePath()}}),mm=Q.extend({type:\\\"arrow\\\",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,r=e.y,i=i/3*2;t.moveTo(o,r),t.lineTo(o+i,r+n),t.lineTo(o,r+n/4*3),t.lineTo(o-i,r+n),t.lineTo(o,r),t.closePath()}}),vm={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){var r=Math.min(n,i);o.x=t,o.y=e,o.width=r,o.height=r},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},xm={};function _m(){this._id=\\\"__ec_inner_\\\"+cm++}lt({line:hh,rect:E,roundRect:E,square:E,circle:Tu,diamond:gm,pin:ym,arrow:mm,triangle:fm},function(t,e){xm[e]=new t});var bm=Q.extend({type:\\\"symbol\\\",shape:{symbolType:\\\"\\\",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=zo(t,e,n),o=this.shape;return o&&\\\"pin\\\"===o.symbolType&&\\\"inside\\\"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i,o=e.symbolType;\\\"none\\\"!==o&&(i=(i=xm[o])||xm[o=\\\"rect\\\"],vm[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}});function wm(t,e){var n;\\\"image\\\"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||\\\"#fff\\\",n.lineWidth=2):\\\"line\\\"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function Sm(t,e,n,i,o,r,a){var s,l=0===t.indexOf(\\\"empty\\\");return(s=0===(t=l?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf(\\\"image://\\\")?oc(t.slice(8),new B(e,n,i,o),a?\\\"center\\\":\\\"cover\\\"):0===t.indexOf(\\\"path://\\\")?ic(t.slice(7),{},new B(e,n,i,o),a?\\\"center\\\":\\\"cover\\\"):new bm({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=l,s.setColor=wm,r&&s.setColor(r),s}function Mm(t){return[(t=U(t)?t:[+t,+t])[0]||0,t[1]||0]}function Im(t,e){if(null!=t)return[F((t=U(t)?t:[t,t])[0],e[0])||0,F(P(t[1],t[0]),e[1])||0]}function Tm(t,e,n){for(var i,o,r,a,s,l,u,h,c,p=\\\"radial\\\"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,h=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(u=u*a+r.x,h=h*s+r.y,c*=l),i.createRadialGradient(u,h,0,u,h,c)):(o=t,a=null==e.x?0:e.x,s=null==e.x2?1:e.x2,l=null==e.y?0:e.y,u=null==e.y2?0:e.y2,e.global||(a=a*n.width+n.x,s=s*n.width+n.x,l=l*n.height+n.y,u=u*n.height+n.y),a=isNaN(a)?0:a,s=isNaN(s)?1:s,l=isNaN(l)?0:l,u=isNaN(u)?0:u,o.createLinearGradient(a,l,s,u)),d=e.colorStops,f=0;f\u003Cd.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function Cm(t){return parseInt(t,10)}function Dm(t,e,n){var i,o=[\\\"width\\\",\\\"height\\\"][e],r=[\\\"clientWidth\\\",\\\"clientHeight\\\"][e],a=[\\\"paddingLeft\\\",\\\"paddingTop\\\"][e],s=[\\\"paddingRight\\\",\\\"paddingBottom\\\"][e];return null!=n[o]&&\\\"auto\\\"!==n[o]?parseFloat(n[o]):(i=document.defaultView.getComputedStyle(t),(t[r]||Cm(i[o])||Cm(t.style[o]))-(Cm(i[a])||0)-(Cm(i[s])||0)|0)}function Am(t){var e,n=t.style,i=n.lineDash&&0\u003Cn.lineWidth&&(o=n.lineDash,i=n.lineWidth,o&&\\\"solid\\\"!==o&&0\u003Ci?\\\"dashed\\\"===o?[4*i,2*i]:\\\"dotted\\\"===o?[i]:j(o)?[o]:U(o)?o:null:null),o=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=Y(i,function(t){return t/e}),o/=e),[i,o]}var km=new ss(!0);function Lm(t){var e=t.stroke;return!(null==e||\\\"none\\\"===e||!(0\u003Ct.lineWidth))}function Pm(t){return\\\"string\\\"==typeof t&&\\\"none\\\"!==t}function Om(t){var e=t.fill;return null!=e&&\\\"none\\\"!==e}function Rm(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Nm(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Em(t,e,n){var i,o=la(e.image,e.__image,n);if(ha(o))return o=t.createPattern(o,e.repeat||\\\"repeat\\\"),\\\"function\\\"==typeof DOMMatrix&&o&&o.setTransform&&((i=new DOMMatrix).translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*zt),i.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(i)),o}var zm=[\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"],Vm=[[\\\"lineCap\\\",\\\"butt\\\"],[\\\"lineJoin\\\",\\\"miter\\\"],[\\\"miterLimit\\\",10]];function Bm(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(Wm(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Sa.opacity:r),!i&&e.blend===n.blend||(a||(Wm(t,o),a=!0),t.globalCompositeOperation=e.blend||Sa.blend);for(var s=0;s\u003Czm.length;s++){var l=zm[s];!i&&e[l]===n[l]||(a||(Wm(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(Wm(t,o),a=!0),t.shadowColor=e.shadowColor||Sa.shadowColor),a}function Fm(t,e,n,i,o){var r=Hm(e,o.inHover),a=i?null:n&&Hm(n,o.inHover)||{};if(r!==a){var s,l=Bm(t,r,a,i,o);(i||r.fill!==a.fill)&&(l||(Wm(t,o),l=!0),Pm(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(l||(Wm(t,o),l=!0),Pm(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(l||(Wm(t,o),l=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(s=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==s)&&(l||(Wm(t,o),l=!0),t.lineWidth=s);for(var u=0;u\u003CVm.length;u++){var h=Vm[u],c=h[0];!i&&r[c]===a[c]||(l||(Wm(t,o),l=!0),t[c]=r[c]||h[1])}}}function Gm(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Wm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill=\\\"\\\",e.batchStroke=\\\"\\\"}function Hm(t,e){return e&&t.__hoverStyle||t.style}function Ym(t,e){Um(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Um(t,e,n,E){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,e.__isRendered=!1;var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,x,_,z,b,w,S,M,V,B,I,T,C=e.__clipPaths,D=n.prevElClipPaths,A=!1,k=!1;if(!D||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n\u003Ct.length;n++)if(t[n]!==e[n])return 1}}(C,D)){if(D&&D.length&&(Wm(t,n),t.restore(),k=A=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),C&&C.length){Wm(t,n),t.save();for(var F=C,G=t,L=n,W=!1,H=0;H\u003CF.length;H++){var Y=F[H],W=W||Y.isZeroArea();Gm(G,Y),G.beginPath(),Y.buildPath(G,Y.shape),G.clip()}L.allClipped=W,A=!0}n.prevElClipPaths=C}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();D=n.prevEl;D||(k=A=!0);var P,C=e instanceof Q&&e.autoBatch&&(L=e.style,C=Om(L),P=Lm(L),!(L.lineDash||!(+C^+P)||C&&\\\"string\\\"!=typeof L.fill||P&&\\\"string\\\"!=typeof L.stroke||L.strokePercent\u003C1||L.strokeOpacity\u003C1||L.fillOpacity\u003C1)),A=(A||(P=D.transform,i&&P?i[0]!==P[0]||i[1]!==P[1]||i[2]!==P[2]||i[3]!==P[3]||i[4]!==P[4]||i[5]!==P[5]:i||P)?(Wm(t,n),Gm(t,e)):C||Wm(t,n),Hm(e,n.inHover));if(e instanceof Q)1!==n.lastDrawType&&(k=!0,n.lastDrawType=1),Fm(t,e,D,k,n),C&&(n.batchFill||n.batchStroke)||t.beginPath(),s=t,l=e,h=C,i=Lm(u=A),_=Om(u),z=u.strokePercent,b=z\u003C1,w=!l.path,l.silent&&!b||!w||l.createPathProxy(),S=l.path||km,M=l.__dirty,h||(c=u.fill,T=u.stroke,p=_&&!!c.colorStops,d=i&&!!T.colorStops,f=_&&!!c.image,g=i&&!!T.image,I=x=v=m=y=void 0,(p||d)&&(I=l.getBoundingRect()),p&&(y=M?Tm(s,c,I):l.__canvasFillGradient,l.__canvasFillGradient=y),d&&(m=M?Tm(s,T,I):l.__canvasStrokeGradient,l.__canvasStrokeGradient=m),f&&(v=M||!l.__canvasFillPattern?Em(s,c,l):l.__canvasFillPattern,l.__canvasFillPattern=v),g&&(x=M||!l.__canvasStrokePattern?Em(s,T,l):l.__canvasStrokePattern,l.__canvasStrokePattern=v),p?s.fillStyle=y:f&&(v?s.fillStyle=v:_=!1),d?s.strokeStyle=m:g&&(x?s.strokeStyle=x:i=!1)),I=l.getGlobalScale(),S.setScale(I[0],I[1],l.segmentIgnoreThreshold),s.setLineDash&&u.lineDash&&(V=(c=Am(l))[0],B=c[1]),T=!0,(w||4&M)&&(S.setDPR(s.dpr),b?S.setContext(null):(S.setContext(s),T=!1),S.reset(),l.buildPath(S,l.shape,h),S.toStatic(),l.pathUpdated()),T&&S.rebuildPath(s,b?z:1),V&&(s.setLineDash(V),s.lineDashOffset=B),h||(u.strokeFirst?(i&&Nm(s,u),_&&Rm(s,u)):(_&&Rm(s,u),i&&Nm(s,u))),V&&s.setLineDash([]),C&&(n.batchFill=A.fill||\\\"\\\",n.batchStroke=A.stroke||\\\"\\\");else if(e instanceof Ts)3!==n.lastDrawType&&(k=!0,n.lastDrawType=3),Fm(t,e,D,k,n),l=t,h=e,null!=(p=(u=A).text)&&(p+=\\\"\\\"),p&&(l.font=u.font||tt,l.textAlign=u.textAlign,l.textBaseline=u.textBaseline,f=y=void 0,l.setLineDash&&u.lineDash&&(y=(v=Am(h))[0],f=v[1]),y&&(l.setLineDash(y),l.lineDashOffset=f),u.strokeFirst?(Lm(u)&&l.strokeText(p,u.x,u.y),Om(u)&&l.fillText(p,u.x,u.y)):(Om(u)&&l.fillText(p,u.x,u.y),Lm(u)&&l.strokeText(p,u.x,u.y)),y)&&l.setLineDash([]);else if(e instanceof Ps)2!==n.lastDrawType&&(k=!0,n.lastDrawType=2),s=k,Bm(t,Hm(e,n.inHover),D&&Hm(D,n.inHover),s,n),o=t,R=A,(d=(O=e).__image=la(R.image,O.__image,O,O.onload))&&ha(d)&&(m=R.x||0,g=R.y||0,x=O.getWidth(),I=O.getHeight(),c=d.width/d.height,null==x&&null!=I?x=I*c:null==I&&null!=x?I=x/c:null==x&&null==I&&(x=d.width,I=d.height),R.sWidth&&R.sHeight?(r=R.sx||0,a=R.sy||0,o.drawImage(d,r,a,R.sWidth,R.sHeight,m,g,x,I)):R.sx&&R.sy?(c=x-(r=R.sx),w=I-(a=R.sy),o.drawImage(d,r,a,c,w,m,g,x,I)):o.drawImage(d,m,g,x,I));else if(e.getTemporalDisplayables){4!==n.lastDrawType&&(k=!0,n.lastDrawType=4);{var U=t;var O=e;var R=n;var X=O.getDisplayables(),Z=O.getTemporalDisplayables();U.save();for(var j={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover},q=O.getCursor(),K=X.length;q\u003CK;q++)(N=X[q]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),Um(U,N,j,q===K-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),j.prevEl=N;for(var N,$=0,J=Z.length;$\u003CJ;$++)(N=Z[$]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),Um(U,N,j,$===J-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),j.prevEl=N;O.clearTemporalDisplayables(),O.notClear=!0,U.restore()}}C&&E&&Wm(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}var Xm=new dm,Zm=new Tn(100),jm=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolKeepAspect\\\",\\\"color\\\",\\\"backgroundColor\\\",\\\"dashArrayX\\\",\\\"dashArrayY\\\",\\\"maxTileWidth\\\",\\\"maxTileHeight\\\"];function qm(t,e){if(\\\"none\\\"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o=\\\"svg\\\"===i.painter.type,r=(t.dirty&&Xm[\\\"delete\\\"](t),Xm.get(t));if(r)return r;for(var a,s=H(t,{symbol:\\\"rect\\\",symbolSize:1,symbolKeepAspect:!0,color:\\\"rgba(0, 0, 0, 0.2)\\\",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),r=(\\\"none\\\"===s.backgroundColor&&(s.backgroundColor=null),{repeat:\\\"repeat\\\"}),e=r,l=[n],u=!0,h=0;h\u003Cjm.length;++h){var c=s[jm[h]];if(null!=c&&!U(c)&&!X(c)&&!j(c)&&\\\"boolean\\\"!=typeof c){u=!1;break}l.push(c)}u&&(a=l.join(\\\",\\\")+(o?\\\"-svg\\\":\\\"\\\"),_=Zm.get(a))&&(o?e.svgElement=_:e.image=_);var p,d,f,g=function R(t){if(!t||0===t.length)return[[0,0]];if(j(t))return[[o=Math.ceil(t),o]];for(var e=!0,n=0;n\u003Ct.length;++n)if(!j(t[n])){e=!1;break}if(e)return R([t]);var i=[];for(n=0;n\u003Ct.length;++n){var o;j(t[n])?(o=Math.ceil(t[n]),i.push([o,o])):(o=Y(t[n],function(t){return Math.ceil(t)})).length%2==1?i.push(o.concat(o)):i.push(o)}return i}(s.dashArrayX),y=!(d=s.dashArrayY)||\\\"object\\\"==typeof d&&0===d.length?[0,0]:j(d)?[f=Math.ceil(d),f]:(f=Y(d,function(t){return Math.ceil(t)}),d.length%2?f.concat(f):f),m=function N(t){if(!t||0===t.length)return[[\\\"rect\\\"]];if(X(t))return[[t]];for(var e=!0,n=0;n\u003Ct.length;++n)if(!X(t[n])){e=!1;break}if(e)return N([t]);var i=[];for(n=0;n\u003Ct.length;++n)X(t[n])?i.push([t[n]]):i.push(t[n]);return i}(s.symbol),v=Y(g,Km),x=Km(y),_=!o&&J.createCanvas(),b=o&&{tag:\\\"g\\\",attrs:{},key:\\\"dcl\\\",children:[]},w=function(){for(var t=1,e=0,n=v.length;e\u003Cn;++e)t=Sr(t,v[e]);for(var i=1,e=0,n=m.length;e\u003Cn;++e)i=Sr(i,m[e].length);t*=i;var o=x*v.length*m.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(o,s.maxTileHeight))}}();_&&(_.width=w.width*n,_.height=w.height*n,p=_.getContext(\\\"2d\\\")),p&&(p.clearRect(0,0,_.width,_.height),s.backgroundColor)&&(p.fillStyle=s.backgroundColor,p.fillRect(0,0,_.width,_.height));for(var S=0,M=0;M\u003Cy.length;++M)S+=y[M];if(!(S\u003C=0))for(var I=-x,T=0,C=0,D=0;I\u003Cw.height;){if(T%2==0){for(var E=C/2%m.length,A=0,k=0,z=0;A\u003C2*w.width;){for(var V,L,B,F,G,P,O,W=0,M=0;M\u003Cg[D].length;++M)W+=g[D][M];if(W\u003C=0)break;k%2==0&&(L=.5*(1-s.symbolSize),V=A+g[D][k]*L,L=I+y[T]*L,B=g[D][k]*s.symbolSize,F=y[T]*s.symbolSize,G=z/2%m[E].length,P=O=void 0,O=Sm(m[E][G],V*(O=o?1:n),L*O,B*O,F*O,s.color,s.symbolKeepAspect),o?(P=i.painter.renderOneToVNode(O))&&b.children.push(P):Ym(p,O)),A+=g[D][k],++z,++k===g[D].length&&(k=0)}++D===g.length&&(D=0)}I+=y[T],++C,++T===y.length&&(T=0)}return u&&Zm.put(a,_||b),e.image=_,e.svgElement=b,e.svgWidth=w.width,e.svgHeight=w.height,r.rotation=s.rotation,r.scaleX=r.scaleY=o?1:1/n,Xm.set(t,r),t.dirty=!1,r}function Km(t){for(var e=0,n=0;n\u003Ct.length;++n)e+=t[n];return t.length%2==1?2*e:e}var $m=new se,Jm={};var Qm=\\\"undefined\\\"!=typeof window,gm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},t0=/^[a-zA-Z0-9_]+$/,e0=\\\"__connectUpdateStatus\\\";function n0(n){return function(){for(var t=[],e=0;e\u003Carguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return o0(this,n,t);N0(this.id)}}function i0(n){return function(){for(var t=[],e=0;e\u003Carguments.length;e++)t[e]=arguments[e];return o0(this,n,t)}}function o0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),se.prototype[e].apply(t,n)}u(I0,S0=se);var r0,a0,s0,l0,u0,h0,c0,p0,d0,f0,g0,y0,m0,v0,x0,_0,b0,w0,S0,M0=I0,ym=M0.prototype;function I0(){return null!==S0&&S0.apply(this,arguments)||this}ym.on=i0(\\\"on\\\"),ym.off=i0(\\\"off\\\");u(D0,T0=se),D0.prototype._onframe=function(){if(!this._disposed){w0(this);var t=this._scheduler;if(this.__pendingUpdate){var e=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{r0(this),l0.update.call(this,null,this.__pendingUpdate.updateParams)}catch(t){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,t}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,p0.call(this,e),d0.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),h0(this,i),t.performVisualTasks(i),v0(this,this._model,o,\\\"remain\\\",{}),0\u003C(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},D0.prototype.getDom=function(){return this._dom},D0.prototype.getId=function(){return this.id},D0.prototype.getZr=function(){return this._zr},D0.prototype.isSSR=function(){return this._ssr},D0.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)N0(this.id);else{R(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,this._model&&!e||(a=new $d(this._api),l=this._theme,(s=this._model=new Gd).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,l,this._locale,a)),this._model.setOption(t,{replaceMerge:o},B0);var i,o,r,a,s,l={seriesTransition:r,optionChanged:!0};if(n)this.__pendingUpdate={silent:i,updateParams:l},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{r0(this),l0.update.call(this,null,l)}catch(t){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,p0.call(this,i),d0.call(this,i)}}},D0.prototype.setTheme=function(){},D0.prototype.getModel=function(){return this._model},D0.prototype.getOption=function(){return this._model&&this._model.getOption()},D0.prototype.getWidth=function(){return this._zr.getWidth()},D0.prototype.getHeight=function(){return this._zr.getHeight()},D0.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Qm&&window.devicePixelRatio||1},D0.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},D0.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get(\\\"backgroundColor\\\"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},D0.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},D0.prototype.getSvgDataURL=function(){var t;if(S.svgSupported)return lt((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},D0.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,lt(o,function(t){e.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})}),o=\\\"svg\\\"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL(\\\"image/\\\"+(t&&t.type||\\\"png\\\")),lt(n,function(t){t.group.ignore=!1}),o;N0(this.id)},D0.prototype.getConnectedDataURL=function(o){var r,a,s,l,u,h,c,p,d,n,t,e,i,f,g;if(!this._disposed)return r=\\\"svg\\\"===o.type,a=this.group,s=Math.min,l=Math.max,Y0[a]?(h=u=1/0,p=c=-1/0,d=[],n=o&&o.pixelRatio||this.getDevicePixelRatio(),lt(H0,function(t,e){var n,i;t.group===a&&(n=r?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(L(o)),i=t.getDom().getBoundingClientRect(),u=s(i.left,u),h=s(i.top,h),c=l(i.right,c),p=l(i.bottom,p),d.push({dom:n,left:i.left,top:i.top}))}),t=(c*=n)-(u*=n),e=(p*=n)-(h*=n),i=J.createCanvas(),(f=tr(i,{renderer:r?\\\"svg\\\":\\\"canvas\\\"})).resize({width:t,height:e}),r?(g=\\\"\\\",lt(d,function(t){var e=t.left-u,n=t.top-h;g+='\u003Cg transform=\\\"translate('+e+\\\",\\\"+n+')\\\">'+t.dom+\\\"\u003C/g>\\\"}),f.painter.getSvgRoot().innerHTML=g,o.connectedBackgroundColor&&f.painter.setBackgroundColor(o.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(o.connectedBackgroundColor&&f.add(new E({shape:{x:0,y:0,width:t,height:e},style:{fill:o.connectedBackgroundColor}})),lt(d,function(t){var e=new Ps({style:{x:t.left*n-u,y:t.top*n-h,image:t.dom}});f.add(e)}),f.refreshImmediately(),i.toDataURL(\\\"image/\\\"+(o&&o.type||\\\"png\\\")))):this.getDataURL(o);N0(this.id)},D0.prototype.convertToPixel=function(t,e){return u0(this,\\\"convertToPixel\\\",t,e)},D0.prototype.convertFromPixel=function(t,e){return u0(this,\\\"convertFromPixel\\\",t,e)},D0.prototype.containPixel=function(t,i){var o;if(!this._disposed)return lt(Fr(this._model,t),function(t,n){0\u003C=n.indexOf(\\\"Models\\\")&<(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):\\\"seriesModels\\\"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;N0(this.id)},D0.prototype.getVisual=function(t,e){var n=Fr(this._model,t,{defaultMainType:\\\"series\\\"}),i=n.seriesModel.getData(),n=n.hasOwnProperty(\\\"dataIndexInside\\\")?n.dataIndexInside:n.hasOwnProperty(\\\"dataIndex\\\")?i.indexOfRawIndex(n.dataIndex):null;return null!=n?rm(i,n,e):am(i,e)},D0.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},D0.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},D0.prototype._initEvents=function(){var t,n,i,s=this;lt(R0,function(a){var t=function(t){var i,e,n,o=s.getModel(),r=t.target;\\\"globalout\\\"===a?i={}:r&&hm(r,function(t){var e,n=$(t);return n&&null!=n.dataIndex?(e=n.dataModel||o.getSeriesByIndex(n.seriesIndex),i=e&&e.getDataParams(n.dataIndex,n.dataType)||{},1):n.eventData&&(i=Z({},n.eventData),1)},!0),i&&(e=i.componentType,n=i.componentIndex,\\\"markLine\\\"!==e&&\\\"markPoint\\\"!==e&&\\\"markArea\\\"!==e||(e=\\\"series\\\",n=i.seriesIndex),n=(e=e&&null!=n&&o.getComponent(e,n))&&s[\\\"series\\\"===e.mainType?\\\"_chartsMap\\\":\\\"_componentsMap\\\"][e.__viewId],i.event=t,i.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:i,model:e,view:n},s.trigger(a,i))};t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),lt(z0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),lt([\\\"selectchanged\\\"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on(\\\"selectchanged\\\",function(t){var e=i.getModel();t.isFromClick?(um(\\\"map\\\",\\\"selectchanged\\\",n,e,t),um(\\\"pie\\\",\\\"selectchanged\\\",n,e,t)):\\\"select\\\"===t.fromAction?(um(\\\"map\\\",\\\"selected\\\",n,e,t),um(\\\"pie\\\",\\\"selected\\\",n,e,t)):\\\"unselect\\\"===t.fromAction&&(um(\\\"map\\\",\\\"unselected\\\",n,e,t),um(\\\"pie\\\",\\\"unselected\\\",n,e,t))})},D0.prototype.isDisposed=function(){return this._disposed},D0.prototype.clear=function(){this._disposed?N0(this.id):this.setOption({series:[]},!0)},D0.prototype.dispose=function(){var t,e,n;this._disposed?N0(this.id):(this._disposed=!0,this.getDom()&&Ur(this.getDom(),Z0,\\\"\\\"),e=(t=this)._api,n=t._model,lt(t._componentsViews,function(t){t.dispose(n,e)}),lt(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete H0[t.id])},D0.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)N0(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption(\\\"media\\\"),n=t&&t.silent;this.__pendingUpdate&&(null==n&&(n=this.__pendingUpdate.silent),e=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{e&&r0(this),l0.update.call(this,{type:\\\"resize\\\",animation:Z({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,p0.call(this,n),d0.call(this,n)}}},D0.prototype.showLoading=function(t,e){var n,i;this._disposed?N0(this.id):(R(t)&&(e=t,t=\\\"\\\"),t=t||\\\"default\\\",this.hideLoading(),W0[t]&&(n=W0[t](this._api,e),i=this._zr,this._loadingFX=n,i.add(n)))},D0.prototype.hideLoading=function(){this._disposed?N0(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},D0.prototype.makeActionFromEvent=function(t){var e=Z({},t);return e.type=z0[t.type],e},D0.prototype.dispatchAction=function(t,e){var n,i;this._disposed?N0(this.id):(R(e)||(e={silent:!!e}),E0[t.type]&&this._model&&(this.__flagInMainProcess?this._pendingActions.push(t):(n=e.silent,c0.call(this,t,n),(i=e.flush)?this._zr.flush():!1!==i&&S.browser.weChat&&this._throttledZrFlush(),p0.call(this,n),d0.call(this,n))))},D0.prototype.updateLabelLayout=function(){$m.trigger(\\\"series:layoutlabels\\\",this._model,this._api,{updatedSeries:[]})},D0.prototype.appendData=function(t){var e;this._disposed?N0(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},D0.internalField=(r0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),a0(t,!0),a0(t,!1),e.plan()},a0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e\u003Cs.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,\\\"_ec_\\\"+t.id+\\\"_\\\"+t.type),n=!n&&l[i];n||(e=Kr(t.type),(n=new(o?fy.getClass(e.main,e.sub):xy.getClass(e.sub))).init(r,h),l[i]=n,s.push(n),u.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(n,t,r,h)}for(o?r.eachComponent(function(t,e){\\\"series\\\"!==t&&n(e)}):r.eachSeries(n),e=0;e\u003Cs.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),u.remove(i.group),i.dispose(r,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},s0=function(d,e,f,n,t){var i,g,o,r=d._model;function a(t){t&&t.__alive&&t[e]&&t[e](t.__model,r,d._api,f)}r.setUpdatePayload(f),n?((i={})[n+\\\"Id\\\"]=f[n+\\\"Id\\\"],i[n+\\\"Index\\\"]=f[n+\\\"Index\\\"],i[n+\\\"Name\\\"]=f[n+\\\"Name\\\"],i={mainType:n,query:i},t&&(i.subType=t),null!=(o=f.excludeSeriesId)&&(g=N(),lt(Dr(o),function(t){var e=Nr(t,null);null!=e&&g.set(e,!0)})),r&&r.eachComponent(i,function(t){if(!g||null===g.get(t.id))if(eu(f))if(t instanceof ry){if(f.type===pl&&!f.notBlur&&!t.get([\\\"emphasis\\\",\\\"disabled\\\"])){var e=t,n=f,i=d._api,o=e.seriesIndex,r=e.getData(n.dataType);if(r){var a,s=(U(s=Vr(r,n))?s[0]:s)||0,l=r.getItemGraphicEl(s);if(!l)for(var u=r.count(),h=0;!l&&h\u003Cu;)l=r.getItemGraphicEl(h++);l?Wl(o,(s=$(l)).focus,s.blurScope,i):(s=e.get([\\\"emphasis\\\",\\\"focus\\\"]),a=e.get([\\\"emphasis\\\",\\\"blurScope\\\"]),null!=s&&Wl(o,s,a,i))}}}else s=(o=Yl(t.mainType,t.componentIndex,f.name,d._api)).focusSelf,a=o.dispatchers,f.type===pl&&s&&!f.notBlur&&Hl(t.mainType,t.componentIndex,d._api),a&<(a,function(t){(f.type===pl?Rl:Nl)(t)});else tu(f)&&t instanceof ry&&(n=t,e=f,d._api,tu(e)&&(c=e.dataType,U(p=Vr(n.getData(c),e))||(p=[p]),n[e.type===yl?\\\"toggleSelect\\\":e.type===fl?\\\"select\\\":\\\"unselect\\\"](p,c)),Ul(t),b0(d));var c,p},d),r&&r.eachComponent(i,function(t){g&&null!==g.get(t.id)||a(d[\\\"series\\\"===n?\\\"_chartsMap\\\":\\\"_componentsMap\\\"][t.__viewId])},d)):lt([].concat(d._componentsViews).concat(d._chartsViews),a)},l0={prepareAndUpdate:function(t){r0(this),l0.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),h0(this,n),r.update(n,i),A0(n),a.performVisualTasks(n,t),y0(this,n,i,t,e),r=n.get(\\\"backgroundColor\\\")||\\\"transparent\\\",a=n.get(\\\"darkMode\\\"),o.setBackgroundColor(r),null!=a&&\\\"auto\\\"!==a&&o.setDarkMode(a),$m.trigger(\\\"afterupdate\\\",n,i))},updateTransform:function(o){var r,n,a=this,s=this._model,l=this._api;s&&(s.setUpdatePayload(o),r=[],s.eachComponent(function(t,e){var n,i;\\\"series\\\"!==t&&(n=a.getViewOfComponentModel(e))&&n.__alive&&(!n.updateTransform||(i=n.updateTransform(e,s,l,o))&&i.update)&&r.push(n)}),n=N(),s.eachSeries(function(t){var e=a._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,s,l,o))&&e.update)&&n.set(t.uid,1)}),A0(s),this._scheduler.performVisualTasks(s,o,{setDirty:!0,dirtyMap:n}),v0(this,s,l,o,{},n),$m.trigger(\\\"afterupdate\\\",s,l))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),xy.markUpdateMethod(t,\\\"updateView\\\"),A0(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),y0(this,e,this._api,t,{}),$m.trigger(\\\"afterupdate\\\",e,this._api))},updateVisual:function(i){var o=this,r=this._model;r&&(r.setUpdatePayload(i),r.eachSeries(function(t){t.getData().clearAllVisual()}),xy.markUpdateMethod(i,\\\"updateVisual\\\"),A0(r),this._scheduler.performVisualTasks(r,i,{visualType:\\\"visual\\\",setDirty:!0}),r.eachComponent(function(t,e){var n;\\\"series\\\"!==t&&(n=o.getViewOfComponentModel(e))&&n.__alive&&n.updateVisual(e,r,o._api,i)}),r.eachSeries(function(t){o._chartsMap[t.__viewId].updateVisual(t,r,o._api,i)}),$m.trigger(\\\"afterupdate\\\",r,this._api))},updateLayout:function(t){l0.update.call(this,t)}},u0=function(t,e,n,i){if(t._disposed)N0(t.id);else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Fr(o,n),s=0;s\u003Cr.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},h0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},c0=function(i,t){var o=this,e=this.getModel(),n=i.type,r=i.escapeConnect,a=E0[n],s=a.actionInfo,l=(s.update||\\\"update\\\").split(\\\":\\\"),u=l.pop(),h=null!=l[0]&&Kr(l[0]),l=(this.__flagInMainProcess=!0,[i]),c=!1;i.batch&&(c=!0,l=Y(i.batch,function(t){return(t=H(Z({},t),i)).batch=null,t}));var p=[],d=tu(i),f=eu(i);if(f&&Gl(this._api),lt(l,function(t){var e,n;(y=(y=a.action(t,o._model,o._api))||Z({},t)).type=s.event||y.type,p.push(y),f?(e=(n=Gr(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:\\\"series\\\",s0(o,u,t,n),b0(o)):d?(s0(o,u,t,\\\"series\\\"),b0(o)):h&&s0(o,u,t,h.main,h.sub)}),\\\"none\\\"!==u&&!f&&!d&&!h)try{this.__pendingUpdate?(r0(this),l0.update.call(this,i),this.__pendingUpdate=null):l0[u].call(this,i)}catch(i){throw this.__flagInMainProcess=!1,i}var g,y=c?{type:s.event||n,escapeConnect:r,batch:p}:p[0];this.__flagInMainProcess=!1,t||((l=this._messageCenter).trigger(y.type,y),d&&(c={type:\\\"selectchanged\\\",escapeConnect:r,selected:(g=[],e.eachSeries(function(i){lt(i.getAllData(),function(t){t.data;var e=t.type,n=i.getSelectedDataIndices();0\u003Cn.length&&(n={dataIndex:n,seriesIndex:i.seriesIndex},null!=e&&(n.dataType=e),g.push(n))})}),g),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},l.trigger(c.type,c)))},p0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();c0.call(this,n,t)}},d0=function(t){t||this.trigger(\\\"updated\\\")},f0=function(e,n){e.on(\\\"rendered\\\",function(t){n.trigger(\\\"rendered\\\",t),!e.animation.isFinished()||n.__pendingUpdate||n._scheduler.unfinished||n._pendingActions.length||n.trigger(\\\"finished\\\")})},g0=function(t,a){t.on(\\\"mouseover\\\",function(t){var e,n,i,o,r=hm(t.target,Ql);r&&(e=r,n=t,t=a._api,r=$(e),i=Yl(r.componentMainType,r.componentIndex,r.componentHighDownName,t),o=i.dispatchers,i=i.focusSelf,o?(i&&Hl(r.componentMainType,r.componentIndex,t),lt(o,function(t){return Pl(t,n)})):(Wl(r.seriesIndex,r.focus,r.blurScope,t),\\\"self\\\"===r.focus&&Hl(r.componentMainType,r.componentIndex,t),Pl(e,n)),b0(a))}).on(\\\"mouseout\\\",function(t){var e,n,i=hm(t.target,Ql);i&&(e=i,n=t,Gl(t=a._api),(i=Yl((i=$(e)).componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers)?lt(i,function(t){return Ol(t,n)}):Ol(e,n),b0(a))}).on(\\\"click\\\",function(t){var e,n=hm(t.target,function(t){return null!=$(t).dataIndex},!0);n&&(e=n.selected?\\\"unselect\\\":\\\"select\\\",n=$(n),a._api.dispatchAction({type:e,dataType:n.dataType,dataIndexInside:n.dataIndex,seriesIndex:n.seriesIndex,isFromClick:!0}))})},y0=function(t,e,n,i,o){var r,a,s,l,u,h,c;u=[],c=!(h=[]),(r=e).eachComponent(function(t,e){var n=e.get(\\\"zlevel\\\")||0,i=e.get(\\\"z\\\")||0,o=e.getZLevelKey();c=c||!!o,(\\\"series\\\"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:o})}),c&&(Ye(l=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),lt(l,function(t){var e=r.getComponent(t.type,t.idx),n=t.zlevel,i=t.key;null!=a&&(n=Math.max(a,n)),i?(n===a&&i!==s&&n++,s=i):s&&(n===a&&n++,s=\\\"\\\"),a=n,e.setZLevel(n)})),m0(t,e,n,i,o),lt(t._chartsViews,function(t){t.__alive=!1}),v0(t,e,n,i,o),lt(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},m0=function(t,n,i,o,e,r){lt(r||t._componentsViews,function(t){var e=t.__model;P0(0,t),t.render(e,n,i,o),L0(e,t),O0(e,t)})},v0=function(r,t,e,a,n,s){var i,o,l,u,h=r._scheduler,c=(n=Z(n||{},{updatedSeries:t.getSeries()}),$m.trigger(\\\"series:beforeupdate\\\",t,e,n),!1);t.eachSeries(function(t){var e,n,i=r._chartsMap[t.__viewId],o=(i.__alive=!0,i.renderTask);h.updatePayload(o,a),P0(0,i),s&&s.get(t.uid)&&o.dirty(),o.perform(h.getPerformArgs(o))&&(c=!0),i.group.silent=!!t.get(\\\"silent\\\"),e=i,n=t.get(\\\"blendMode\\\")||null,e.eachRendered(function(t){t.isGroup||(t.style.blend=n)}),Ul(t)}),h.unfinished=c||h.unfinished,$m.trigger(\\\"series:layoutlabels\\\",t,e,n),$m.trigger(\\\"series:transition\\\",t,e,n),t.eachSeries(function(t){var e=r._chartsMap[t.__viewId];L0(t,e),O0(t,e)}),o=t,l=(i=r)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>o.get(\\\"hoverLayerThreshold\\\")&&!S.node&&!S.worker&&o.eachSeries(function(t){var e;t.preventUsingHoverLayer||(e=i._chartsMap[t.__viewId]).__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),$m.trigger(\\\"series:afterupdate\\\",t,e,n)},b0=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},w0=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse(function(t){Uh(t)||k0(t)}),t.__needsUpdateStatus=!1)},x0=function(n){return u(t,e=Zd),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){Rl(t,e),b0(n)},t.prototype.leaveEmphasis=function(t,e){Nl(t,e),b0(n)},t.prototype.enterBlur=function(t){El(t),b0(n)},t.prototype.leaveBlur=function(t){zl(t),b0(n)},t.prototype.enterSelect=function(t){Vl(t),b0(n)},t.prototype.leaveSelect=function(t){Bl(t),b0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(_0=function(i){function o(t,e){for(var n=0;n\u003Ct.length;n++)t[n][e0]=e}lt(z0,function(t,e){i._messageCenter.on(e,function(t){var e,n;!Y0[i.group]||0===i[e0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],lt(H0,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),lt(n,function(t){1!==t[e0]&&t.dispatchAction(e)}),o(n,2))})})}));var T0,C0=D0,mm=C0.prototype;function D0(t,e,n){var i=T0.call(this,new em)||this,o=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},X(e)&&(e=G0[e]),i._dom=t,i._zr=tr(t,{renderer:n.renderer||\\\"canvas\\\",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:null!=n.useDirtyRect&&n.useDirtyRect})),r=(i._ssr=n.ssr,i._throttledZrFlush=Ay(I(o.flush,o),17),(e=L(e))&&xf(e,!0),i._theme=e,i._locale=X(t=n.locale||rp)?(r=ip[t.toUpperCase()]||{},\\\"ZH\\\"===t||\\\"EN\\\"===t?L(r):v(L(r),L(ip.EN),!1)):v(L(t),L(ip.EN),!1),i._coordSysMgr=new qd,i._api=x0(i));function a(t,e){return t.__prio-e.__prio}return Ye(F0,a),Ye(V0,a),i._scheduler=new By(i,r,V0,F0),i._messageCenter=new M0,i._initEvents(),i.resize=I(i.resize,i),o.animation.on(\\\"frame\\\",i._onframe,i),f0(o,i),g0(o,i),At(i),i}function A0(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function k0(t){for(var e=[],n=t.currentStates,i=0;i\u003Cn.length;i++){var o=n[i];\\\"emphasis\\\"!==o&&\\\"blur\\\"!==o&&\\\"select\\\"!==o&&e.push(o)}t.selected&&t.states.select&&e.push(\\\"select\\\"),2===t.hoverState&&t.states.emphasis?e.push(\\\"emphasis\\\"):1===t.hoverState&&t.states.blur&&e.push(\\\"blur\\\"),t.useStates(e)}function L0(t,e){var n,i;t.preventAutoZ||(n=t.get(\\\"z\\\")||0,i=t.get(\\\"zlevel\\\")||0,e.eachRendered(function(t){return function l(t,e,n,i){var o=t.getTextContent(),r=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s\u003Ca.length;s++)i=Math.max(l(a[s],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);o&&(o.z=e,o.zlevel=n,isFinite(i))&&(o.z2=i+2),r&&(o=t.textGuideLineConfig,r.z=e,r.zlevel=n,isFinite(i))&&(r.z2=i+(o&&o.showAbove?1:-1));return i}(t,n,i,-1/0),!0}))}function P0(t,e){e.eachRendered(function(t){var e,n;Uh(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function O0(t,e){var n=t.getModel(\\\"stateAnimation\\\"),r=t.isAnimationEnabled(),i=n.get(\\\"duration\\\"),a=0\u003Ci?{duration:i,delay:n.get(\\\"delay\\\"),easing:n.get(\\\"easing\\\")}:null;e.eachRendered(function(t){var e,n,i,o;t.states&&t.states.emphasis&&(Uh(t)||(t instanceof Q&&((i=sl(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,o=n.states.select||{},i.selectFill=o.style&&o.style.fill||null,i.selectStroke=o.style&&o.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),r&&(t.stateTransition=a,o=t.getTextContent(),e=t.getTextGuideLine(),o&&(o.stateTransition=a),e)&&(e.stateTransition=a),t.__dirty&&k0(t)))})}mm.on=n0(\\\"on\\\"),mm.off=n0(\\\"off\\\"),mm.one=function(n,i,o){var r=this;this.on.call(this,n,function o(){for(var t=[],e=0;e\u003Carguments.length;e++)t[e]=arguments[e];i&&i.apply&&i.apply(this,t),r.off(n,o)},o)};var R0=[\\\"click\\\",\\\"dblclick\\\",\\\"mouseover\\\",\\\"mouseout\\\",\\\"mousemove\\\",\\\"mousedown\\\",\\\"mouseup\\\",\\\"globalout\\\",\\\"contextmenu\\\"];function N0(){}var E0={},z0={},V0=[],B0=[],F0=[],G0={},W0={},H0={},Y0={},U0=+new Date,X0=+new Date,Z0=\\\"_echarts_instance_\\\";function j0(t){Y0[t]=!1}fm=j0;function q0(t){return H0[e=Z0,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function K0(t,e){G0[t]=e}function $0(t){G(B0,t)\u003C0&&B0.push(t)}function J0(t,e){sv(V0,t,e,2e3)}function Q0(t){ev(\\\"afterinit\\\",t)}function tv(t){ev(\\\"afterupdate\\\",t)}function ev(t,e){$m.on(t,e)}function nv(t,e,n){A(e)&&(n=e,e=\\\"\\\");var i=R(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,z0[e]||(Tt(t0.test(i)&&t0.test(e)),E0[i]||(E0[i]={action:n,actionInfo:t}),z0[e]=i)}function iv(t,e){qd.register(t,e)}function ov(t,e){sv(F0,t,e,1e3,\\\"layout\\\")}function rv(t,e){sv(F0,t,e,3e3,\\\"visual\\\")}var av=[];function sv(t,e,n,i,o){var r;(A(e)||R(e))&&(n=e,e=i),0\u003C=G(av,n)||(av.push(n),(r=By.wrapStageHandler(n,o)).__prio=e,r.__raw=n,t.push(r))}function lv(t,e){W0[t]=e}function uv(t,e,n){var i=Jm.registerMap;i&&i(t,e,n)}var dm=function(t){var e=(t=L(t)).type,n=(e||Mr(\\\"\\\"),e.split(\\\":\\\")),i=(2!==n.length&&Mr(\\\"\\\"),!1);\\\"echarts\\\"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,wg.set(e,t)},hv=(rv(2e3,hd),rv(4500,jc),rv(4500,Wc),rv(2e3,Hc),rv(4500,Qr),rv(7e3,function(i,o){i.eachRawSeries(function(t){var n,e;!i.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,\\\"decal\\\");e&&(n.ensureUniqueItemVisual(t,\\\"style\\\").decal=qm(e,o))}),e=n.getVisual(\\\"decal\\\"))&&(n.getVisual(\\\"style\\\").decal=qm(e,o))})}),$0(xf),J0(900,function(t){var o=N();t.eachSeries(function(t){var e,n,i=t.get(\\\"stack\\\");i&&(i=o.get(i)||o.set(i,[]),(n={stackResultDimension:(e=t.getData()).getCalculationInfo(\\\"stackResultDimension\\\"),stackedOverDimension:e.getCalculationInfo(\\\"stackedOverDimension\\\"),stackedDimension:e.getCalculationInfo(\\\"stackedDimension\\\"),stackedByDimension:e.getCalculationInfo(\\\"stackedByDimension\\\"),isStackedByIndex:e.getCalculationInfo(\\\"isStackedByIndex\\\"),data:e,seriesModel:t}).stackedDimension)&&(n.isStackedByIndex||n.stackedByDimension)&&(i.length&&e.setCalculationInfo(\\\"stackedOnSeries\\\",i[i.length-1].seriesModel),i.push(n))}),o.each(_f)}),lv(\\\"default\\\",function(i,o){H(o=o||{},{text:\\\"loading\\\",textColor:\\\"#000\\\",fontSize:12,fontWeight:\\\"normal\\\",fontStyle:\\\"normal\\\",fontFamily:\\\"sans-serif\\\",maskColor:\\\"rgba(255, 255, 255, 0.8)\\\",showSpinner:!0,color:\\\"#5470c6\\\",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new K,r=new E({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});t.add(r);var a,s=new z({style:{text:o.text,fill:o.textColor,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle,fontFamily:o.fontFamily},zlevel:o.zlevel,z:10001}),l=new E({style:{fill:\\\"none\\\"},textContent:s,textConfig:{position:\\\"right\\\",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((a=new _h({shape:{startAngle:-Vy/2,endAngle:-Vy/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:\\\"round\\\",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Vy/2}).start(\\\"circularInOut\\\"),a.animateShape(!0).when(1e3,{startAngle:3*Vy/2}).delay(300).start(\\\"circularInOut\\\"),t.add(a)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,t=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner&&t?0:5+t/2)+(o.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;o.showSpinner&&a.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),r.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),nv({type:pl,event:pl,update:pl},Et),nv({type:dl,event:dl,update:dl},Et),nv({type:fl,event:fl,update:fl},Et),nv({type:gl,event:gl,update:gl},Et),nv({type:yl,event:yl,update:yl},Et),K0(\\\"light\\\",Uc),K0(\\\"dark\\\",Xc),[]),cv={registerPreprocessor:$0,registerProcessor:J0,registerPostInit:Q0,registerPostUpdate:tv,registerUpdateLifecycle:ev,registerAction:nv,registerCoordinateSystem:iv,registerLayout:ov,registerVisual:rv,registerTransform:dm,registerLoading:lv,registerMap:uv,registerImpl:function(t,e){Jm[t]=e},PRIORITY:gm,ComponentModel:m,ComponentView:fy,SeriesModel:ry,ChartView:xy,registerComponentModel:function(t){m.registerClass(t)},registerComponentView:function(t){fy.registerClass(t)},registerSeriesModel:function(t){ry.registerClass(t)},registerChartView:function(t){xy.registerClass(t)},registerSubTypeDefaulter:function(t,e){m.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){er(t,e)}};function o(t){U(t)?lt(t,function(t){o(t)}):0\u003C=G(hv,t)||(hv.push(t),(t=A(t)?{install:t}:t).install(cv))}function pv(t){return null==t?0:t.length||1}function dv(t){return t}mv.prototype.add=function(t){return this._add=t,this},mv.prototype.update=function(t){return this._update=t,this},mv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},mv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},mv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},mv.prototype.remove=function(t){return this._remove=t,this},mv.prototype.execute=function(){this[this._diffModeMultiple?\\\"_executeMultiple\\\":\\\"_executeOneToOne\\\"]()},mv.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,\\\"_oldKeyGetter\\\"),this._initIndexMap(e,n,o,\\\"_newKeyGetter\\\");for(var r=0;r\u003Ct.length;r++){var a,s=i[r],l=n[s],u=pv(l);1\u003Cu?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},mv.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,\\\"_oldKeyGetter\\\"),this._initIndexMap(e,i,r,\\\"_newKeyGetter\\\");for(var a=0;a\u003Co.length;a++){var s=o[a],l=n[s],u=i[s],h=pv(l),c=pv(u);if(1\u003Ch&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1\u003Cc)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1\u003Ch&&1\u003Cc)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1\u003Ch)for(var p=0;p\u003Ch;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},mv.prototype._performRestAdd=function(t,e){for(var n=0;n\u003Ct.length;n++){var i=t[n],o=e[i],r=pv(o);if(1\u003Cr)for(var a=0;a\u003Cr;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},mv.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r\u003Ct.length;r++){var a,s,l=\\\"_ec_\\\"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=pv(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var fv=mv,gv=(yv.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},yv.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},yv);function yv(t,e){this._encode=t,this._schema=e}function mv(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||dv,this._newKeyGetter=i||dv,this.context=o,this._diffModeMultiple=\\\"multiple\\\"===r}function vv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function xv(t){return\\\"category\\\"===t?\\\"ordinal\\\":\\\"time\\\"===t?\\\"time\\\":\\\"float\\\"}var _v=function(t){this.otherDims={},null!=t&&Z(this,t)},bv=i(),wv={\\\"float\\\":\\\"f\\\",\\\"int\\\":\\\"i\\\",ordinal:\\\"o\\\",number:\\\"n\\\",time:\\\"t\\\"},Sv=(Mv.prototype.isDimensionOmitted=function(){return this._dimOmitted},Mv.prototype._updateDimOmitted=function(t){!(this._dimOmitted=t)||this._dimNameMap||(this._dimNameMap=Cv(this.source))},Mv.prototype.getSourceDimensionIndex=function(t){return P(this._dimNameMap.get(t),-1)},Mv.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Mv.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=kf(this.source),n=!(30\u003Ct),i=\\\"\\\",o=[],r=0,a=0;r\u003Ct;r++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\\\\`/g,\\\"`1\\\").replace(/\\\\$/g,\\\"`2\\\"):l),i=i+\\\"$\\\"+(wv[u]||\\\"f\\\"),h&&(i+=h.uid),i+=\\\"$\\\"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join(\\\"$$\\\")}},Mv.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e\u003Cthis._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},Mv.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Mv);function Mv(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Iv(t){return t instanceof Sv}function Tv(t){for(var e=N(),n=0;n\u003C(t||[]).length;n++){var i=t[n],i=R(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Cv(t){var e=bv(t);return e.dimNameMap||(e.dimNameMap=Tv(t.dimensionsDefine))}var Dv,Av,kv,Lv,Pv,Ov,Rv,Nv=R,Ev=Y,zv=\\\"undefined\\\"==typeof Int32Array?Array:Int32Array,Vv=[\\\"hasItemOption\\\",\\\"_nameList\\\",\\\"_idList\\\",\\\"_invertedIndicesMap\\\",\\\"_dimSummary\\\",\\\"userOutput\\\",\\\"_rawData\\\",\\\"_dimValueGetter\\\",\\\"_nameDimIdx\\\",\\\"_idDimIdx\\\",\\\"_nameRepeatCount\\\"],Bv=[\\\"_approximateExtent\\\"],Fv=(r.prototype.getDimension=function(t){var e,n;return null==(n=this._recognizeDimIndex(t))?t:(n=t,this._dimOmitted?null!=(e=this._dimIdxToName.get(n))?e:(e=this._schema.getSourceDimension(n))?e.name:void 0:this.dimensions[n])},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(j(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)\u003C0))return+t},r.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},r.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i,r,o,a,s,l,u,h,c,p,d,f=this;(i=t instanceof Pg?t:i)||(d=this.dimensions,o=Mf(t)||ht(t)?new Rf(t,d.length):t,i=new Pg,d=Ev(d,function(t){return{type:f._dimInfos[t].type,property:t}}),i.initData(o,d,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=(t=(r=this)._schema,a=(o={}).encode={},s=N(),l=[],u=[],h={},lt(r.dimensions,function(t){var e,n,o=r.getDimensionInfo(t),i=o.coordDim;i&&(n=o.coordDimIndex,vv(a,i)[n]=t,o.isExtraCoord||(s.set(i,1),\\\"ordinal\\\"!==(e=o.type)&&\\\"time\\\"!==e&&(l[0]=t),vv(h,i)[n]=r.getDimensionIndex(o.name)),o.defaultTooltip)&&u.push(t),pd.each(function(t,e){var n=vv(a,e),i=o.otherDims[e];null!=i&&!1!==i&&(n[i]=o.name)})}),c=[],p={},s.each(function(t,e){var n=a[e];p[e]=n[0],c=c.concat(n)}),o.dataDimsOnCoord=c,o.dataDimIndicesOnCoord=Y(c,function(t){return r.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=p,(d=a.label)&&d.length&&(l=d.slice()),(d=a.tooltip)&&d.length?u=d.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,o.userOutput=new gv(h,t),o),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,o=n.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a\u003Co;a++)this._nameList[a]=e[a-i],r&&Rv(this,a)},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n\u003Ce.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==md&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(e\u003C=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(n.getSource().sourceFormat===dd&&!n.pure)for(var r=[],a=t;a\u003Ce;a++){var s,l=n.getItem(a,r);this.hasItemOption||!R(u=l)||u instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=Nr(s,null)),s=l.id,null==o[a])&&null!=s&&(o[a]=Nr(s,null))}if(this._shouldMakeIdFromName())for(a=t;a\u003Ce;a++)Rv(this,a);Dv(this)}var u},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Nv(t)?Z(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n=null==(n=null==n&&null!=this._nameDimIdx?kv(this,this._nameDimIdx,e):n)?\\\"\\\":n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return Av(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return U(t)?i.getValues(Ev(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n\u003Ci;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e\u003Cn;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){A(t)&&(n=e,e=t,t=[]);var i=n||this,o=Ev(Lv(t),this._getStoreDimIndex,this);this._store.each(o,i?I(e,i):e)},r.prototype.filterSelf=function(t,e,n){A(t)&&(n=e,e=t,t=[]);var i=n||this,o=Ev(Lv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?I(e,i):e),this},r.prototype.selectRange=function(n){var i=this,o={};return lt(W(n),function(t){var e=i._getStoreDimIndex(t);o[e]=n[t]}),this._store=this._store.selectRange(o),this},r.prototype.mapArray=function(t,e,n){A(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},r.prototype.map=function(t,e,n,i){var o=n||i||this,r=Ev(Lv(t),this._getStoreDimIndex,this),a=Ov(this);return a._store=this._store.map(r,o?I(e,o):e),a},r.prototype.modify=function(t,e,n,i){var o=n||i||this,r=Ev(Lv(t),this._getStoreDimIndex,this);this._store.modify(r,o?I(e,o):e)},r.prototype.downSample=function(t,e,n,i){var o=Ov(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},r.prototype.lttbDownSample=function(t,e){var n=Ov(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new qc(n,e,e&&e.ecModel)},r.prototype.diff=function(e){var n=this;return new fv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Av(e,t)},function(t){return Av(n,t)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Nv(t)?Z(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],n=n&&n[e];return null==n?this.getVisual(e):n},r.prototype.hasItemVisual=function(){return 0\u003Cthis._itemVisuals.length},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(U(n=this.getVisual(e))?n=n.slice():Nv(n)&&(n=Z({},n)),i[e]=n),n},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Nv(e)?Z(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Nv(t)?Z(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?Z(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;ol(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(n,i){lt(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},r.prototype.cloneShallow=function(t){return t=t||new r(this._schema||Ev(this.dimensions,this._getDimInfo,this),this.hostModel),Pv(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];A(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Mt(arguments)))})},r.internalField=(Dv=function(a){var s=a._invertedIndicesMap;lt(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new zv(i.categories.length);for(var r=0;r\u003Ct.length;r++)t[r]=-1;for(r=0;r\u003Co.count();r++)t[o.get(n.storeDimIndex,r)]=r}})},kv=function(t,e,n){return Nr(t._getCategory(e,n),null)},Av=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?kv(t,t._idDimIdx,e):n)?\\\"e\\\\0\\\\0\\\"+e:n},Lv=function(t){return t=U(t)?t:null!=t?[t]:[]},Ov=function(t){var e=new r(t._schema||Ev(t.dimensions,t._getDimInfo,t),t.hostModel);return Pv(e,t),e},Pv=function(e,n){lt(Vv.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,lt(Bv,function(t){e[t]=L(n[t])}),e._calculationInfo=Z({},n._calculationInfo)},void(Rv=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=kv(t,o,e)),null==s&&null!=r&&(i[e]=s=kv(t,r,e)),null==s&&null!=a&&(s=a,1\u003C(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+=\\\"__ec__\\\"+o),i[e]=s)})),r);function r(t,e){this.type=\\\"list\\\",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[\\\"cloneShallow\\\",\\\"downSample\\\",\\\"lttbDownSample\\\",\\\"map\\\"],this.CHANGABLE_METHODS=[\\\"filterSelf\\\",\\\"selectRange\\\"];var n=!(this.DOWNSAMPLE_METHODS=[\\\"downSample\\\",\\\"lttbDownSample\\\"]);Iv(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,o=t);for(var i,o=o||[\\\"x\\\",\\\"y\\\"],r={},a=[],s={},l=!1,u={},h=0;h\u003Co.length;h++){var c=o[h],c=X(c)?new _v({name:c}):c instanceof _v?c:new _v(c),p=c.name,d=(c.type=c.type||\\\"float\\\",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),n&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=N(),lt(a,function(t){i.set(r[t].storeDimIndex,t)}))}function Gv(t,e){Mf(t)||(t=Tf(t));for(var n,i,o,r,a=(e=e||{}).coordDimensions||[],s=e.dimensionsDefine||t.dimensionsDefine||[],l=N(),u=[],h=(n=t,i=a,o=e.dimensionsCount,r=Math.max(n.dimensionsDetectedCount||1,i.length,s.length,o||0),lt(i,function(t){var e;R(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r),c=e.canOmitUnusedDimensions&&30\u003Ch,p=s===t.dimensionsDefine,d=p?Cv(t):Tv(s),f=e.encodeDefine,g=N(f=!f&&e.encodeDefaulter?e.encodeDefaulter(t,h):f),y=new Dg(h),m=0;m\u003Cy.length;m++)y[m]=-1;function v(t){var e,n,i,o=y[t];return o\u003C0?(e=R(e=s[t])?e:{name:e},n=new _v,null!=(i=e.name)&&null!=d.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),y[t]=u.length,n.storeDimIndex=t,u.push(n),n):u[o]}if(!c)for(m=0;m\u003Ch;m++)v(m);g.each(function(t,i){var o,e=Dr(t).slice();1===e.length&&!X(e[0])&&e[0]\u003C0?g.set(i,!1):(o=g.set(i,[]),lt(e,function(t,e){var n=X(t)?d.get(t):t;null!=n&&n\u003Ch&&_(v(o[e]=n),i,e)}))});var x=0;function _(t,e,n){null!=pd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,l.set(e,!0))}lt(a,function(t){X(t)?(s=t,a={}):(s=(a=t).name,e=a.ordinalMeta,a.ordinalMeta=null,(a=Z({},a)).ordinalMeta=e,o=a.dimsDef,r=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null);var o,r,a,s,e,n=g.get(s);if(!1!==n){if(!(n=Dr(n)).length)for(var i=0;i\u003C(o&&o.length||1);i++){for(;x\u003Ch&&null!=v(x).coordDim;)x++;x\u003Ch&&n.push(x++)}lt(n,function(t,e){var n,i=v(t);p&&null!=a.type&&(i.type=a.type),_(H(i,a),s,e),null==i.name&&o&&(R(n=o[e])||(n={name:n}),i.name=i.displayName=n.name,i.defaultTooltip=n.defaultTooltip),r&&H(i.otherDims,r)})}});var b=e.generateCoord,w=null!=(S=e.generateCoordCount),S=b?S||1:0,M=b||\\\"value\\\";function I(t){null==t.name&&(t.name=t.coordDim)}if(c)lt(u,function(t){I(t)}),u.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var T=0;T\u003Ch;T++){var C=v(T);null==C.coordDim&&(C.coordDim=function(t,e,n){var i=e.data;if(n||i.hasOwnProperty(t)){for(var o=0;i.hasOwnProperty(t+o);)o++;t+=o}return e.set(t,!0),t}(M,l,w),C.coordDimIndex=0,(!b||S\u003C=0)&&(C.isExtraCoord=!0),S--),I(C),null!=C.type||Dd(t,T)!==bd&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type=\\\"ordinal\\\")}for(var D=u,A=N(),k=0;k\u003CD.length;k++){var L=D[k],P=L.name,O=A.get(P)||0;0\u003CO&&(L.name=P+(O-1)),O++,A.set(P,O)}return new Sv({source:t,dimensions:u,fullDimensionCount:h,dimensionOmitted:c})}var Wv=function(t){this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.coordSysName=t},Hv={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents(\\\"xAxis\\\",Wr).models[0],r=t.getReferringComponents(\\\"yAxis\\\",Wr).models[0];e.coordSysDims=[\\\"x\\\",\\\"y\\\"],n.set(\\\"x\\\",o),n.set(\\\"y\\\",r),Yv(o)&&(i.set(\\\"x\\\",o),e.firstCategoryDimIndex=0),Yv(r)&&(i.set(\\\"y\\\",r),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){var o=t.getReferringComponents(\\\"singleAxis\\\",Wr).models[0];e.coordSysDims=[\\\"single\\\"],n.set(\\\"single\\\",o),Yv(o)&&(i.set(\\\"single\\\",o),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents(\\\"polar\\\",Wr).models[0],r=o.findAxisModel(\\\"radiusAxis\\\"),o=o.findAxisModel(\\\"angleAxis\\\");e.coordSysDims=[\\\"radius\\\",\\\"angle\\\"],n.set(\\\"radius\\\",r),n.set(\\\"angle\\\",o),Yv(r)&&(i.set(\\\"radius\\\",r),e.firstCategoryDimIndex=0),Yv(o)&&(i.set(\\\"angle\\\",o),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=[\\\"lng\\\",\\\"lat\\\"]},parallel:function(t,o,r,a){var s=t.ecModel,e=s.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\")),l=o.coordSysDims=e.dimensions.slice();lt(e.parallelAxisIndex,function(t,e){var n=s.getComponent(\\\"parallelAxis\\\",t),i=l[e];r.set(i,n),Yv(n)&&(a.set(i,n),null==o.firstCategoryDimIndex)&&(o.firstCategoryDimIndex=e)})}};function Yv(t){return\\\"category\\\"===t.get(\\\"type\\\")}function Uv(t,e,n){var i,o,r,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;Iv(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e;var l,u,h,c,p,d,f,g,y,m=!(!t||!t.get(\\\"stack\\\"));return lt(i,function(t,e){X(t)&&(i[e]=t={name:t}),m&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||\\\"ordinal\\\"===t.type||\\\"time\\\"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u&&(h=\\\"__\\\\0ecstackresult_\\\"+t.id,c=\\\"__\\\\0ecstackedover_\\\"+t.id,l&&(l.createInvertedIndices=!0),p=u.coordDim,d=u.type,f=0,lt(i,function(t){t.coordDim===p&&f++}),g={name:h,coordDim:p,coordDimIndex:f,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:f+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(g.storeDimIndex=r.ensureCalculationDimension(c,d),y.storeDimIndex=r.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))),{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Xv(t,e){return!!e&&e===t.getCalculationInfo(\\\"stackedDimension\\\")}function Zv(t,e){return Xv(t,e)?t.getCalculationInfo(\\\"stackResultDimension\\\"):e}function jv(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,c=(t?(h=!0,i=Tf(t)):h=(i=u.getSource()).sourceFormat===dd,function(t){var e=t.get(\\\"coordinateSystem\\\"),n=new Wv(e),e=Hv[e];if(e)return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),p=(l=c,p=e.get(\\\"coordinateSystem\\\"),p=qd.get(p),d=(d=l&&l.coordSysDims?Y(l.coordSysDims,function(t){var e={name:t},n=l.axisMap.get(t);return n&&(n=n.get(\\\"type\\\"),e.type=xv(n)),e}):d)||p&&(p.getDimensionsInfo?p.getDimensionsInfo():p.dimensions.slice())||[\\\"x\\\",\\\"y\\\"]),d=n.useEncodeDefaulter,d=A(d)?d:d?D(Id,p,e):null,p=Gv(i,{coordDimensions:p,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!h}),f=(t=p.dimensions,o=n.createInvertedIndices,(r=c)&<(t,function(t,e){var n=t.coordDim,n=r.categoryAxisMap.get(n);n&&(null==a&&(a=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(s=!0)}),s||null==a||(t[a].otherDims.itemName=0),a),d=h?null:u.getSharedDataStore(p),c=Uv(e,{schema:p,store:d}),u=new Fv(p,e),p=(u.setCalculationInfo(c),null==f||(n=i).sourceFormat!==dd||U(Lr(function(t){for(var e=0;e\u003Ct.length&&null==t[e];)e++;return t[e]}(n.data||[])))?null:function(t,e,n,i){return i===f?n:this.defaultDimValueGetter(t,e,n,i)});return u.hasItemOption=!1,u.initData(h?i:d,null,p),u}Kv.prototype.getSetting=function(t){return this._setting[t]},Kv.prototype.unionExtent=function(t){var e=this._extent;t[0]\u003Ce[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Kv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Kv.prototype.getExtent=function(){return this._extent.slice()},Kv.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Kv.prototype.isInExtentRange=function(t){return this._extent[0]\u003C=t&&this._extent[1]>=t},Kv.prototype.isBlank=function(){return this._isBlank},Kv.prototype.setBlank=function(t){this._isBlank=t};var qv=Kv;function Kv(t){this._setting=t||{},this._extent=[1/0,-1/0]}na(qv);var $v=0,Jv=(Qv.createByAxisModel=function(t){var e=t.option,n=e.data,n=n&&Y(n,t1);return new Qv({categories:n,needCollect:!n,deduplication:!1!==e.dedplication})},Qv.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Qv.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return X(t)||i?(i&&!this._deduplication?(e=this.categories.length,this.categories[e]=t):null==(e=(n=this._getOrCreateMap()).get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e):t},Qv.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},Qv);function Qv(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$v}function t1(t){return R(t)&&null!=t.value?t.value:t+\\\"\\\"}function e1(t){return\\\"interval\\\"===t.type||\\\"log\\\"===t.type}function n1(t){var e=Math.pow(10,yr(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,or(n*e)}function i1(t){return ar(t)+2}function o1(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function r1(t,e){return t>=e[0]&&t\u003C=e[1]}function a1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function s1(t,e){return t*(e[1]-e[0])+e[0]}u(h1,l1=qv),h1.prototype.parse=function(t){return null==t?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},h1.prototype.contain=function(t){return r1(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},h1.prototype.normalize=function(t){return a1(t=this._getTickNumber(this.parse(t)),this._extent)},h1.prototype.scale=function(t){return t=Math.round(s1(t,this._extent)),this.getRawOrdinalNumber(t)},h1.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n\u003C=e[1];)t.push({value:n}),n++;return t},h1.prototype.getMinorTicks=function(t){},h1.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o\u003Ca;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o\u003Cr;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},h1.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0\u003C=t&&t\u003Ce.length?e[t]:t},h1.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0\u003C=t&&t\u003Ce.length?e[t]:t},h1.prototype.getLabel=function(t){var e;if(!this.isBlank())return e=this.getRawOrdinalNumber(t.value),null==(e=this._ordinalMeta.categories[e])?\\\"\\\":e+\\\"\\\"},h1.prototype.count=function(){return this._extent[1]-this._extent[0]+1},h1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},h1.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]\u003C=t&&this._extent[1]>=t},h1.prototype.getOrdinalMeta=function(){return this._ordinalMeta},h1.prototype.calcNiceTicks=function(){},h1.prototype.calcNiceExtent=function(){},h1.type=\\\"ordinal\\\";var l1,u1=h1;function h1(t){var e=l1.call(this,t)||this,n=(e.type=\\\"ordinal\\\",e.getSetting(\\\"ordinalMeta\\\"));return U(n=n||new Jv({}))&&(n=new Jv({categories:Y(n,function(t){return R(t)?t.value:t})})),e._ordinalMeta=n,e._extent=e.getSetting(\\\"extent\\\")||[0,n.categories.length-1],e}qv.registerClass(u1);var c1,p1=or,d1=(u(f1,c1=qv),f1.prototype.parse=function(t){return t},f1.prototype.contain=function(t){return r1(t,this._extent)},f1.prototype.normalize=function(t){return a1(t,this._extent)},f1.prototype.scale=function(t){return s1(t,this._extent)},f1.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},f1.prototype.unionExtent=function(t){var e=this._extent;t[0]\u003Ce[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},f1.prototype.getInterval=function(){return this._interval},f1.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=i1(t)},f1.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]\u003Ci[0]&&r.push(t?{value:p1(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a\u003C=i[1]&&(r.push({value:a}),(a=p1(a+e,o))!==r[r.length-1].value);)if(1e4\u003Cr.length)return[];var s=r.length?r[r.length-1].value:i[1];n[1]>s&&r.push(t?{value:p1(s+e,o)}:{value:n[1]})}return r},f1.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o\u003Ce.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s\u003Ct-1;){var h=p1(a.value+(s+1)*u);h>i[0]&&h\u003Ci[1]&&l.push(h),s++}n.push(l)}return n},f1.prototype.getLabel=function(t,e){var n;return null==t?\\\"\\\":(null==(n=e&&e.precision)?n=ar(t.value)||0:\\\"auto\\\"===n&&(n=this._intervalPrecision),Rp(p1(t.value,n,!0)))},f1.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i,o,r=this._extent,a=r[1]-r[0];isFinite(a)&&(a\u003C0&&r.reverse(),t=t,e=e,n=n,a={},r=(i=r)[1]-i[0],r=a.interval=mr(r/t,!0),null!=e&&r\u003Ce&&(r=a.interval=e),null!=n&&n\u003Cr&&(r=a.interval=n),o=a.intervalPrecision=i1(r),t=a.niceTickExtent=[or(Math.ceil(i[0]/r)*r,o),or(Math.floor(i[1]/r)*r,o)],e=i,isFinite(t[0])||(t[0]=e[0]),isFinite(t[1])||(t[1]=e[1]),o1(t,0,e),o1(t,1,e),t[0]>t[1]&&(t[0]=t[1]),r=a,this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent)},f1.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=p1(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=p1(Math.ceil(e[1]/n)*n))},f1.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},f1.type=\\\"interval\\\",f1);function f1(){var t=null!==c1&&c1.apply(this,arguments)||this;return t.type=\\\"interval\\\",t._interval=0,t._intervalPrecision=2,t}qv.registerClass(d1);var g1=\\\"undefined\\\"!=typeof Float32Array,y1=g1?Float32Array:Array;function m1(t){return U(t)?g1?new Float32Array(t):t:new y1(t)}var v1=\\\"__ec_stack_\\\";function x1(t){return t.get(\\\"stack\\\")||v1+t.seriesIndex}function _1(t){return t.dim+t.index}function b1(t,e){var n=[];return e.eachSeriesByType(t,function(t){T1(t)&&n.push(t)}),n}function w1(a){var l=function(){var t,u={},e=(lt(a,function(t){var e=t.coordinateSystem.getBaseAxis();if(\\\"time\\\"===e.type||\\\"value\\\"===e.type)for(var n=t.getData(),i=e.dim+\\\"_\\\"+e.index,o=n.getDimensionIndex(n.mapDimension(e.dim)),r=n.getStore(),a=0,s=r.count();a\u003Cs;++a){var l=r.get(o,a);u[i]?u[i].push(l):u[i]=[l]}}),{});for(t in u)if(u.hasOwnProperty(t)){var n=u[t];if(n){n.sort(function(t,e){return t-e});for(var i=null,o=1;o\u003Cn.length;++o){var r=n[o]-n[o-1];0\u003Cr&&(i=null===i?r:Math.min(i,r))}e[t]=i}}return e}(),u=[];return lt(a,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent(),o=(e=\\\"category\\\"===n.type?n.getBandWidth():\\\"value\\\"===n.type||\\\"time\\\"===n.type?(e=n.dim+\\\"_\\\"+n.index,e=l[e],o=Math.abs(i[1]-i[0]),r=n.scale.getExtent(),r=Math.abs(r[1]-r[0]),e?o/r*e:o):(r=t.getData(),Math.abs(i[1]-i[0])/r.count()),F(t.get(\\\"barWidth\\\"),e)),i=F(t.get(\\\"barMaxWidth\\\"),e),r=F(t.get(\\\"barMinWidth\\\")||(C1(t)?.5:1),e),a=t.get(\\\"barGap\\\"),s=t.get(\\\"barCategoryGap\\\");u.push({bandWidth:e,barWidth:o,barMaxWidth:i,barMinWidth:r,barGap:a,barCategoryGap:s,axisKey:_1(n),stackId:x1(t)})}),S1(u)}function S1(t){var a={},d=(lt(t,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:\\\"20%\\\",stacks:{}},o=i.stacks,n=(a[n]=i,t.stackId),r=(o[n]||i.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),r=(r&&!o[n].width&&(o[n].width=r,r=Math.min(i.remainedWidth,r),i.remainedWidth-=r),t.barMaxWidth),r=(r&&(o[n].maxWidth=r),t.barMinWidth),n=(r&&(o[n].minWidth=r),t.barGap),o=(null!=n&&(i.gap=n),t.barCategoryGap);null!=o&&(i.categoryGap=o)}),{});return lt(a,function(t,n){d[n]={};var e=t.stacks,i=t.bandWidth,o=t.categoryGap,r=(null==o&&(r=W(e).length,o=Math.max(35-4*r,15)+\\\"%\\\"),F(o,i)),a=F(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);lt(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,s-=e+a*e,l--):(e=u,n&&n\u003Ce&&(e=Math.min(n,s)),(e=i&&e\u003Ci?i:e)!==u&&(t.width=e,s-=e+a*e,l--))}),u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0,p=(lt(e,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a),-c/2);lt(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+a)})}),d}function M1(t,e){var n=b1(t,e),r=w1(n);lt(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=x1(t),n=r[_1(n)][i],i=n.offset,o=n.width;e.setLayout({bandWidth:n.bandWidth,offset:i,size:o})})}function I1(t){return{seriesType:t,plan:yy(),reset:function(t){var e,_,n,b,w,S,i,o,M,I,T,C,D,A,k,L;if(T1(t))return e=t.getData(),i=(_=t.coordinateSystem).getBaseAxis(),n=_.getOtherAxis(i),b=e.getDimensionIndex(e.mapDimension(n.dim)),w=e.getDimensionIndex(e.mapDimension(i.dim)),S=t.get(\\\"showBackground\\\",!0),i=e.mapDimension(n.dim),o=e.getCalculationInfo(\\\"stackResultDimension\\\"),M=Xv(e,i)&&!!e.getCalculationInfo(\\\"stackedOnSeries\\\"),I=n.isHorizontal(),T=n.toGlobalCoord(n.dataToCoord(\\\"log\\\"===n.type?1:0)),C=C1(t),D=t.get(\\\"barMinHeight\\\")||0,A=o&&e.getDimensionIndex(o),k=e.getLayout(\\\"size\\\"),L=e.getLayout(\\\"offset\\\"),{progress:function(t,e){for(var n,i=t.count,o=C&&m1(3*i),r=C&&S&&m1(3*i),a=C&&m1(i),s=_.master.getRect(),l=I?s.width:s.height,u=e.getStore(),h=0;null!=(n=t.next());){var c,p=u.get(M?A:b,n),d=u.get(w,n),f=T,g=void 0,y=(M&&(g=+p-u.get(b,n)),void 0),m=void 0,v=void 0,x=void 0;I?(c=_.dataToPoint([p,d]),y=f=M?_.dataToPoint([g,d])[0]:f,m=c[1]+L,v=c[0]-f,x=k,Math.abs(v)\u003CD&&(v=(v\u003C0?-1:1)*D)):(c=_.dataToPoint([d,p]),M&&(f=_.dataToPoint([d,g])[1]),y=c[0]+L,m=f,v=k,x=c[1]-f,Math.abs(x)\u003CD&&(x=(x\u003C=0?-1:1)*D)),C?(o[h]=y,o[h+1]=m,o[h+2]=I?v:x,r&&(r[h]=I?s.x:y,r[h+1]=I?m:s.y,r[h+2]=l),a[n]=n):e.setItemLayout(n,{x:y,y:m,width:v,height:x}),h+=3}C&&e.setLayout({largePoints:o,largeDataIndices:a,largeBackgroundPoints:r,valueAxisHorizontal:I})}}}}}function T1(t){return t.coordinateSystem&&\\\"cartesian2d\\\"===t.coordinateSystem.type}function C1(t){return t.pipelineContext&&t.pipelineContext.large}u(L1,D1=d1),L1.prototype.getLabel=function(t){var e=this.getSetting(\\\"useUTC\\\");return vp(t.value,dp[function(t){switch(t){case\\\"year\\\":case\\\"month\\\":return\\\"day\\\";case\\\"millisecond\\\":return\\\"millisecond\\\";default:return\\\"second\\\"}}(mp(this._minLevelUnit))]||dp.second,e,this.getSetting(\\\"locale\\\"))},L1.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting(\\\"useUTC\\\"),o=this.getSetting(\\\"locale\\\"),r=i,a=null;if(X(n))a=n;else if(A(n))a=n(t.value,e,{level:t.level});else{var s=Z({},pp);if(0\u003Ct.level)for(var l=0;l\u003Cfp.length;++l)s[fp[l]]=\\\"{primary|\\\"+s[fp[l]]+\\\"}\\\";var u=n?!1===n.inherit?n:H(n,s):s,h=xp(t.value,r);if(u[h])a=u[h];else if(u.inherit){for(l=gp.indexOf(h)-1;0\u003C=l;--l)if(u[h]){a=u[h];break}a=a||s.none}U(a)&&(i=null==t.level?0:0\u003C=t.level?t.level:a.length+t.level,a=a[i=Math.min(i,a.length-1)])}return vp(new Date(t.value),a,r,o)},L1.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting(\\\"useUTC\\\"),t=function(t,w,S,M){var e=gp,n=0;function i(t,e,n){var i,o,r=[],a=!e.length;if(!function(t,e,n,i){var o=fr(e),r=fr(n),a=function(t){return _p(o,t,i)===_p(r,t,i)},s=function(){return a(\\\"year\\\")},l=function(){return s()&&a(\\\"month\\\")},u=function(){return l()&&a(\\\"day\\\")},h=function(){return u()&&a(\\\"hour\\\")},c=function(){return h()&&a(\\\"minute\\\")},p=function(){return c()&&a(\\\"second\\\")};switch(t){case\\\"year\\\":return s();case\\\"month\\\":return l();case\\\"day\\\":return u();case\\\"hour\\\":return h();case\\\"minute\\\":return c();case\\\"second\\\":return p();case\\\"millisecond\\\":return p()&&a(\\\"millisecond\\\")}}(mp(t),M[0],M[1],S)){a&&(e=[{value:function(t,e,n){var i=new Date(t);switch(mp(e)){case\\\"year\\\":case\\\"month\\\":i[Dp(n)](0);case\\\"day\\\":i[Ap(n)](1);case\\\"hour\\\":i[kp(n)](0);case\\\"minute\\\":i[Lp(n)](0);case\\\"second\\\":i[Pp(n)](0),i[Op(n)](0)}return i.getTime()}(new Date(M[0]),t,S)},{value:M[1]}]);for(var s=0;s\u003Ce.length-1;s++){var l=e[s].value,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case\\\"year\\\":h=Math.max(1,Math.round(w/cp/365)),c=bp(S),p=S?\\\"setUTCFullYear\\\":\\\"setFullYear\\\";break;case\\\"half-year\\\":case\\\"quarter\\\":case\\\"month\\\":o=w,h=6\u003C(o/=2592e6)?6:3\u003Co?3:2\u003Co?2:1,c=wp(S),p=Dp(S);break;case\\\"week\\\":case\\\"half-week\\\":case\\\"day\\\":o=w,h=16\u003C(o/=cp)?16:7.5\u003Co?7:3.5\u003Co?4:1.5\u003Co?2:1,c=Sp(S),p=Ap(S),0;break;case\\\"half-day\\\":case\\\"quarter-day\\\":case\\\"hour\\\":i=w,h=12\u003C(i/=hp)?12:6\u003Ci?6:3.5\u003Ci?4:2\u003Ci?2:1,c=Mp(S),p=kp(S);break;case\\\"minute\\\":h=P1(w,!0),c=Ip(S),p=Lp(S);break;case\\\"second\\\":h=P1(w,!1),c=Tp(S),p=Pp(S);break;case\\\"millisecond\\\":h=mr(w,!0),c=Cp(S),p=Op(S)}b=_=x=v=m=y=g=f=d=void 0;for(var d=h,f=l,g=u,y=c,m=p,v=r,x=new Date(f),_=f,b=x[y]();_\u003Cg&&_\u003C=M[1];)v.push({value:_}),x[m](b+=d),_=x.getTime();v.push({value:_,notAdd:!0}),\\\"year\\\"===t&&1\u003Cn.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s\u003Cr.length;s++)n.push(r[s])}}for(var o,r=[],a=[],s=0,l=0;l\u003Ce.length&&n++\u003C1e4;++l){var u=mp(e[l]);if((o=e[l])===mp(o)&&(i(e[l],r[r.length-1]||[],a),u!==(e[l+1]?mp(e[l+1]):null))){if(a.length){u=s,a.sort(function(t,e){return t.value-e.value});for(var h=[],c=0;c\u003Ca.length;++c){var p=a[c].value;0!==c&&a[c-1].value===p||(h.push(a[c]),p>=M[0]&&p\u003C=M[1]&&s++)}var d=(M[1]-M[0])/w;if(1.5*d\u003Cs&&d/1.5\u003Cu)break;if(r.push(h),d\u003Cs||t===e[l])break}a=[]}}for(var f=pt(Y(r,function(t){return pt(t,function(t){return t.value>=M[0]&&t.value\u003C=M[1]&&!t.notAdd})}),function(t){return 0\u003Ct.length}),g=[],y=f.length-1,l=0;l\u003Cf.length;++l)for(var m=f[l],v=0;v\u003Cm.length;++v)g.push({value:m[v].value,level:y-l});g.sort(function(t,e){return t.value-e.value});var x=[];for(l=0;l\u003Cg.length;++l)0!==l&&g[l].value===g[l-1].value||x.push(g[l]);return x}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},L1.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=cp,n[1]+=cp),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-cp),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},L1.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval\u003Ce&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),k1.length),i=Math.min(function(t,e,n,i){for(;n\u003Ci;){var o=n+i>>>1;t[o][1]\u003Ce?n=1+o:i=o}return n}(k1,this._approxInterval,0,i),i-1);this._interval=k1[i][1],this._minLevelUnit=k1[Math.max(i-1,0)][0]},L1.prototype.parse=function(t){return j(t)?t:+fr(t)},L1.prototype.contain=function(t){return r1(this.parse(t),this._extent)},L1.prototype.normalize=function(t){return a1(this.parse(t),this._extent)},L1.prototype.scale=function(t){return s1(t,this._extent)},L1.type=\\\"time\\\";var D1,A1=L1,k1=[[\\\"second\\\",lp],[\\\"minute\\\",up],[\\\"hour\\\",hp],[\\\"quarter-day\\\",216e5],[\\\"half-day\\\",432e5],[\\\"day\\\",10368e4],[\\\"half-week\\\",3024e5],[\\\"week\\\",6048e5],[\\\"month\\\",26784e5],[\\\"quarter\\\",8208e6],[\\\"half-year\\\",15768e6],[\\\"year\\\",31536e6]];function L1(t){var e=D1.call(this,t)||this;return e.type=\\\"time\\\",e}function P1(t,e){return 30\u003C(t/=e?up:lp)?30:20\u003Ct?20:15\u003Ct?15:10\u003Ct?10:5\u003Ct?5:2\u003Ct?2:1}qv.registerClass(A1);var O1,R1=qv.prototype,N1=d1.prototype,E1=or,z1=Math.floor,V1=Math.ceil,B1=Math.pow,F1=Math.log,G1=(u(W1,O1=qv),W1.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,o=e.getExtent();return Y(N1.getTicks.call(this,t),function(t){var e=t.value,n=or(B1(this.base,e)),n=e===i[0]&&this._fixMin?H1(n,o[0]):n;return{value:e===i[1]&&this._fixMax?H1(n,o[1]):n}},this)},W1.prototype.setExtent=function(t,e){var n=this.base;t=F1(t)/F1(n),e=F1(e)/F1(n),N1.setExtent.call(this,t,e)},W1.prototype.getExtent=function(){var t=this.base,e=R1.getExtent.call(this),t=(e[0]=B1(t,e[0]),e[1]=B1(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=H1(e[0],t[0])),this._fixMax&&(e[1]=H1(e[1],t[1])),e},W1.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=F1(t[0])/F1(e),t[1]=F1(t[1])/F1(e),R1.unionExtent.call(this,t)},W1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},W1.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n\u003C=0)){var i=gr(n);for(t/n*i\u003C=.5&&(i*=10);!isNaN(i)&&Math.abs(i)\u003C1&&0\u003CMath.abs(i);)i*=10;n=[or(V1(e[0]/i)*i),or(z1(e[1]/i)*i)];this._interval=i,this._niceExtent=n}},W1.prototype.calcNiceExtent=function(t){N1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},W1.prototype.parse=function(t){return t},W1.prototype.contain=function(t){return r1(t=F1(t)/F1(this.base),this._extent)},W1.prototype.normalize=function(t){return a1(t=F1(t)/F1(this.base),this._extent)},W1.prototype.scale=function(t){return t=s1(t,this._extent),B1(this.base,t)},W1.type=\\\"log\\\",W1),ym=G1.prototype;function W1(){var t=null!==O1&&O1.apply(this,arguments)||this;return t.type=\\\"log\\\",t.base=10,t._originalScale=new d1,t._interval=0,t}function H1(t,e){return E1(t,ar(e))}ym.getMinorTicks=N1.getMinorTicks,ym.getLabel=N1.getLabel,qv.registerClass(G1);Z1.prototype._prepareParams=function(t,e,n){n[1]\u003Cn[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=\\\"ordinal\\\"===t.type,o=(this._needCrossZero=\\\"interval\\\"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get(\\\"min\\\",!0)),o=(A(o)?this._modelMinNum=q1(t,o({min:n[0],max:n[1]})):\\\"dataMin\\\"!==o&&(this._modelMinNum=q1(t,o)),this._modelMaxRaw=e.get(\\\"max\\\",!0));A(o)?this._modelMaxNum=q1(t,o({min:n[0],max:n[1]})):\\\"dataMax\\\"!==o&&(this._modelMaxNum=q1(t,o)),i?this._axisDataLen=e.getCategories().length:\\\"boolean\\\"==typeof(i=U(o=e.get(\\\"boundaryGap\\\"))?o:[o||0,o||0])[0]||\\\"boolean\\\"==typeof i[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Eo(i[0],1),Eo(i[1],1)]},Z1.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a=\\\"dataMin\\\"===this._modelMinRaw?e:this._modelMinNum,s=\\\"dataMax\\\"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),bt(a)||bt(s)||t&&!i),n=(this._needCrossZero&&(a=0\u003Ca&&0\u003Cs&&!l?0:a)\u003C0&&s\u003C0&&!u&&(s=0),this._determinedMin),o=this._determinedMax;return null!=n&&(a=n,l=!0),null!=o&&(s=o,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},Z1.prototype.modifyDataMinMax=function(t,e){this[X1[t]]=e},Z1.prototype.setDeterminedMinMax=function(t,e){this[U1[t]]=e},Z1.prototype.freeze=function(){this.frozen=!0};var Y1=Z1,U1={min:\\\"_determinedMin\\\",max:\\\"_determinedMax\\\"},X1={min:\\\"_dataMin\\\",max:\\\"_dataMax\\\"};function Z1(t,e,n){this._prepareParams(t,e,n)}function j1(t,e,n){var i;return t.rawExtentInfo||(i=new Y1(t,e,n),t.rawExtentInfo=i)}function q1(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function K1(t,e){var n,i,o,r,a,s,l,u=t.type,h=j1(t,e,t.getExtent()).calculate(),c=(t.setBlank(h.isBlank),h.min),p=h.max,d=e.ecModel;return d&&\\\"time\\\"===u&&(u=b1(\\\"bar\\\",d),n=!1,lt(u,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(d=w1(u),t=c,i=p,r=d,u=(u=(o=e).axis.getExtent())[1]-u[0],c=(l=void 0===(d=function(t){if(r&&t)return r[_1(t)]}(o.axis))?{min:t,max:i}:(a=1/0,lt(d,function(t){a=Math.min(t.offset,a)}),s=-1/0,lt(d,function(t){s=Math.max(t.offset+t.width,s)}),a=Math.abs(a),s=Math.abs(s),{min:t-=a/(d=a+s)*(u=(l=i-t)/(1-(a+s)/u)-l),max:i+=s/d*u})).min,p=l.max),{extent:[c,p],fixMin:h.minFixed,fixMax:h.maxFixed}}function $1(t,e){var n=e,i=K1(t,n),o=i.extent,r=n.get(\\\"splitNumber\\\"),a=(t instanceof G1&&(t.base=n.get(\\\"logBase\\\")),t.type),s=n.get(\\\"interval\\\"),a=\\\"interval\\\"===a||\\\"time\\\"===a;t.setExtent(o[0],o[1]),t.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:a?n.get(\\\"minInterval\\\"):null,maxInterval:a?n.get(\\\"maxInterval\\\"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function J1(t,e){if(e=e||t.get(\\\"type\\\"))switch(e){case\\\"category\\\":return new u1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case\\\"time\\\":return new A1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get(\\\"useUTC\\\")});default:return new(qv.getClass(e)||d1)}}function Q1(n){var i,o,r,t=n.getLabelModel().get(\\\"formatter\\\"),a=\\\"category\\\"===n.type?n.scale.getExtent()[0]:null;return\\\"time\\\"===n.scale.type?(o=t,function(t,e){return n.scale.getFormattedLabel(t,e,o)}):X(t)?(r=t,function(t){var e=n.scale.getLabel(t);return r.replace(\\\"{value}\\\",null!=e?e:\\\"\\\")}):A(t)?(i=t,function(t,e){return null!=a&&(e=t.value-a),i(tx(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function tx(t,e){return\\\"category\\\"===t.type?t.scale.getLabel(e):e.value}function ex(t){var e=t.get(\\\"interval\\\");return null==e?\\\"auto\\\":e}function nx(t){return\\\"category\\\"===t.type&&0===ex(t.getLabelModel())}function ix(e,t){var n={};return lt(e.mapDimensionsAll(t),function(t){n[Zv(e,t)]=!0}),W(n)}rx.prototype.getNeedCrossZero=function(){return!this.option.scale},rx.prototype.getCoordSysModel=function(){};var ox=rx;function rx(){}mm=Object.freeze({__proto__:null,createList:function(t){return jv(null,t)},getLayoutRect:Jp,dataStack:{isDimensionStacked:Xv,enableDataStack:Uv,getStackedDimension:Zv},createScale:function(t,e){var n=e,i=J1(n=e instanceof qc?n:new qc(e));return i.setExtent(t[0],t[1]),$1(i,n),i},mixinAxisModelCommonMethods:function(t){ut(t,ox)},getECData:$,createTextStyle:function(t,e){return Dc(t,null,null,\\\"normal\\\"!==(e=e||{}).state)},createDimensions:function(t,e){return Gv(t,e).dimensions},createSymbol:Sm,enableHoverEmphasis:Xl});function ax(t,e){return Math.abs(t-e)\u003C1e-8}function sx(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var r=1;r\u003Ct.length;r++){var a=t[r];i+=fs(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return ax(o[0],s[0])&&ax(o[1],s[1])||(i+=fs(o[0],o[1],s[0],s[1],e,n)),0!==i}var lx=[];function ux(t,e){for(var n=0;n\u003Ct.length;n++)ee(t[n],t[n],e)}function hx(t,e,n,i){for(var o=0;o\u003Ct.length;o++){var r=t[o];(r=i?i.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(ne(e,e,r),ie(n,n,r))}}xx.prototype.setCenter=function(t){this._center=t},xx.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};var cx,px,hd=xx,dx=function(t,e){this.type=\\\"polygon\\\",this.exterior=t,this.interiors=e},fx=function(t){this.type=\\\"linestring\\\",this.points=t},gx=(u(vx,px=hd),vx.prototype.calcCenter=function(){for(var t,e,n=this.geometries,i=0,o=0;o\u003Cn.length;o++){var r=n[o],a=r.exterior,a=a&&a.length;i\u003Ca&&(t=r,i=a)}if(t){for(var s=t.exterior,l=0,u=0,h=0,c=s.length,p=s[c-1][0],d=s[c-1][1],f=0;f\u003Cc;f++){var g=s[f][0],y=s[f][1],m=p*y-g*d;l+=m,u+=(p+g)*m,h+=(d+y)*m,p=g,d=y}return l?[u/l/3,h/l/3,l]:[s[0][0]||0,s[0][1]||0]}return[(e=this.getBoundingRect()).x+e.width/2,e.y+e.height/2]},vx.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],lt(this.geometries,function(t){\\\"polygon\\\"===t.type?hx(t.exterior,n,i,e):lt(t.points,function(t){hx(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new B(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},vx.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i\u003Co;i++){var r=n[i];if(\\\"polygon\\\"===r.type){var a=r.exterior,s=r.interiors;if(sx(a,t[0],t[1])){for(var l=0;l\u003C(s?s.length:0);l++)if(sx(s[l],t[0],t[1]))continue t;return!0}}}return!1},vx.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=o.width/o.height;n?i=i||n/r:n=r*i;for(var r=new B(t,e,n,i),a=o.calculateTransform(r),s=this.geometries,l=0;l\u003Cs.length;l++){var u=s[l];\\\"polygon\\\"===u.type?(ux(u.exterior,a),lt(u.interiors,function(t){ux(t,a)})):lt(u.points,function(t){ux(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},vx.prototype.cloneShallow=function(t){var e=new vx(t=null==t?this.name:t,this.geometries,this._center);return e._rect=this._rect,e.transformTo=null,e},vx),yx=(u(mx,cx=hd),mx.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=to(lx),i=t;i&&!i.isGeoSVGGraphicRoot;)no(n,i.getLocalTransform(),n),i=i.parent;return ao(n,n),ee(e,e,n),e},mx);function mx(t,e){var n=cx.call(this,t)||this;return n.type=\\\"geoSVG\\\",n._elOnlyForCalculate=e,n}function vx(t,e,n){var i=px.call(this,t)||this;return i.type=\\\"geoJSON\\\",i.geometries=e,i._center=n&&[n[0],n[1]],i}function xx(t){this.name=t}function _x(t,e,n){for(var i=0;i\u003Ct.length;i++)t[i]=bx(t[i],e[i],n)}function bx(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a\u003Ct.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l),o=s+=o,r=l+=r;i.push([s/n,l/n])}return i}function Sx(t,a){return Y(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),lt(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case\\\"LineString\\\":e.coordinates=bx(i,n,o);break;case\\\"Polygon\\\":case\\\"MultiLineString\\\":_x(i,n,o);break;case\\\"MultiPolygon\\\":lt(i,function(t,e){return _x(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0\u003Ct.geometry.coordinates.length}),function(t){var e=t.properties,n=t.geometry,i=[];switch(n.type){case\\\"Polygon\\\":var o=n.coordinates;i.push(new dx(o[0],o.slice(1)));break;case\\\"MultiPolygon\\\":lt(n.coordinates,function(t){t[0]&&i.push(new dx(t[0],t.slice(1)))});break;case\\\"LineString\\\":i.push(new fx([n.coordinates]));break;case\\\"MultiLineString\\\":i.push(new fx(n.coordinates))}var r=new gx(e[a||\\\"name\\\"],i,e.cp);return r.properties=e,r});var e,n,o}var jc=Object.freeze({__proto__:null,linearMap:ir,round:or,asc:rr,getPrecision:ar,getPrecisionSafe:sr,getPixelPrecision:lr,getPercentWithPrecision:ur,MAX_SAFE_INTEGER:hr,remRadian:cr,isRadianAroundZero:pr,parseDate:fr,quantity:gr,quantityExponent:yr,nice:mr,quantile:vr,reformIntervals:xr,isNumeric:br,numericToNumber:_r}),Wc=Object.freeze({__proto__:null,parse:fr,format:vp}),Hc=Object.freeze({__proto__:null,extendShape:Qh,extendPath:tc,makePath:ic,makeImage:oc,mergePath:ac,resizePath:sc,createIcon:yc,updateProps:k,initProps:Yh,getTransform:uc,clipPointsByRect:fc,clipRectByRect:gc,registerShape:ec,getShapeClass:nc,Group:K,Image:Ps,Text:z,Circle:Tu,Ellipse:ku,Sector:Xu,Ring:Ku,Polygon:eh,Polyline:rh,Rect:E,Line:hh,BezierCurve:yh,Arc:_h,IncrementalDisplayable:e,CompoundPath:Th,LinearGradient:Ch,RadialGradient:Dh,BoundingRect:B}),Qr=Object.freeze({__proto__:null,addCommas:Rp,toCamelCase:Np,normalizeCssArray:Ep,encodeHTML:Bp,formatTpl:Hp,getTooltipMarker:Yp,formatTime:function(t,e,n){\\\"week\\\"!==t&&\\\"month\\\"!==t&&\\\"quarter\\\"!==t&&\\\"half-year\\\"!==t&&\\\"year\\\"!==t||(t=\\\"MM-dd\\\\nyyyy\\\");var i=fr(e),o=n?\\\"getUTC\\\":\\\"get\\\",r=i[o+\\\"FullYear\\\"](),a=i[o+\\\"Month\\\"]()+1,s=i[o+\\\"Date\\\"](),l=i[o+\\\"Hours\\\"](),u=i[o+\\\"Minutes\\\"](),h=i[o+\\\"Seconds\\\"](),o=i[o+\\\"Milliseconds\\\"]();return t.replace(\\\"MM\\\",yp(a,2)).replace(\\\"M\\\",a).replace(\\\"yyyy\\\",r).replace(\\\"yy\\\",r%100+\\\"\\\").replace(\\\"dd\\\",yp(s,2)).replace(\\\"d\\\",s).replace(\\\"hh\\\",yp(l,2)).replace(\\\"h\\\",l).replace(\\\"mm\\\",yp(u,2)).replace(\\\"m\\\",u).replace(\\\"ss\\\",yp(h,2)).replace(\\\"s\\\",h).replace(\\\"SSS\\\",yp(o,3))},capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},truncateText:pa,getTextRect:function(t,e,n,i,o,r,a,s){return new z({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?\\\"truncate\\\":null,lineHeight:s}}).getBoundingRect()}}),Uc=Object.freeze({__proto__:null,map:Y,each:lt,indexOf:G,inherits:st,reduce:ct,filter:pt,bind:I,curry:D,isArray:U,isString:X,isObject:R,isFunction:A,extend:Z,defaults:H,clone:L,merge:v}),Mx=i();function Ix(t,e){var n,i=Tx(t,\\\"labels\\\"),o=ex(e);return Cx(i,o)||Dx(i,o,{labels:A(o)?kx(t,o):Ax(t,n=\\\"auto\\\"===o?null!=(i=Mx(e=t).autoInterval)?i:Mx(e).autoInterval=e.calculateCategoryInterval():o),labelCategoryInterval:n})}function Tx(t,e){return Mx(t)[e]||(Mx(t)[e]=[])}function Cx(t,e){for(var n=0;n\u003Ct.length;n++)if(t[n].key===e)return t[n].value}function Dx(t,e,n){return t.push({key:e,value:n}),n}function Ax(t,e,n){var i=Q1(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],h=o.count(),h=(0!==u&&1\u003Cl&&2\u003Ch/l&&(u=Math.round(Math.ceil(u/l)*l)),nx(t)),c=a.get(\\\"showMinLabel\\\")||h,a=a.get(\\\"showMaxLabel\\\")||h;c&&u!==r[0]&&d(r[0]);for(var p=u;p\u003C=r[1];p+=l)d(p);function d(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return a&&p-l!==r[1]&&d(r[1]),s}function kx(t,i,o){var r=t.scale,a=Q1(t),s=[];return lt(r.getTicks(),function(t){var e=r.getLabel(t),n=t.value;i(t.value,e)&&s.push(o?n:{formattedLabel:a(t),rawLabel:e,tickValue:n})}),s}var Lx=[0,1],Xc=(Px.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n\u003C=t&&t\u003C=e},Px.prototype.containData=function(t){return this.scale.contain(t)},Px.prototype.getExtent=function(){return this._extent.slice()},Px.prototype.getPixelPrecision=function(t){return lr(t||this.scale.getExtent(),this._extent)},Px.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Px.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&\\\"ordinal\\\"===i.type&&Ox(n=n.slice(),i.count()),ir(t,Lx,n,e)},Px.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&\\\"ordinal\\\"===i.type&&Ox(n=n.slice(),i.count()),ir(t,n,Lx,e));return this.scale.scale(i)},Px.prototype.pointToData=function(t,e){},Px.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,l,u,h=(t=t||{}).tickModel||this.getTickModel(),c=Y((e=h,\\\"category\\\"===(i=this).type?(e=e,c=Tx(n=i,\\\"ticks\\\"),r=ex(e),(u=Cx(c,r))||(e.get(\\\"show\\\")&&!n.scale.isBlank()||0,Dx(c,r,{ticks:A(r)?kx(n,r,!0):\\\"auto\\\"===r?(a=(u=Ix(n,n.getLabelModel())).labelCategoryInterval,Y(u.labels,function(t){return t.tickValue})):Ax(n,a=r,!0),tickCategoryInterval:a}))):{ticks:Y(i.scale.getTicks(),function(t){return t.value})}).ticks,function(t){return{coord:this.dataToCoord(\\\"ordinal\\\"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return e=this,n=c,i=h.get(\\\"alignWithLabel\\\"),t=t.clamp,u=n.length,e.onBand&&!i&&u&&(r=e.getExtent(),1===u?(n[0].coord=r[0],o=n[1]={coord:r[0]}):(a=n[u-1].tickValue-n[0].tickValue,s=(n[u-1].coord-n[0].coord)/a,lt(n,function(t){t.coord-=s/2}),a=1+e.scale.getExtent()[1]-n[u-1].tickValue,o={coord:n[u-1].coord+s*a},n.push(o)),l=r[0]>r[1],p(n[0].coord,r[0])&&(t?n[0].coord=r[0]:n.shift()),t&&p(r[0],n[0].coord)&&n.unshift({coord:r[0]}),p(r[1],o.coord)&&(t?o.coord=r[1]:n.pop()),t)&&p(o.coord,r[1])&&n.push({coord:r[1]}),c;function p(t,e){return t=or(t),e=or(e),l?e\u003Ct:t\u003Ce}},Px.prototype.getMinorTicksCoords=function(){var t;return\\\"ordinal\\\"===this.scale.type?[]:(t=this.model.getModel(\\\"minorTick\\\").get(\\\"splitNumber\\\"),Y(this.scale.getMinorTicks(t=0\u003Ct&&t\u003C100?t:5),function(t){return Y(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Px.prototype.getViewLabels=function(){return(\\\"category\\\"===(t=this).type?(o=(e=t).getLabelModel(),r=Ix(e,o),!o.get(\\\"show\\\")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(n=t).scale.getTicks(),i=Q1(n),{labels:Y(o,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})})).labels;var t,n,i,e,o,r},Px.prototype.getLabelModel=function(){return this.model.getModel(\\\"axisLabel\\\")},Px.prototype.getTickModel=function(){return this.model.getModel(\\\"axisTick\\\")},Px.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Px.prototype.calculateCategoryInterval=function(){var t=this;o=(e=t).getLabelModel();var e,n={axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:o.get(\\\"rotate\\\")||0,font:o.getFont()},i=Q1(t),o=(n.axisRotate-n.labelRotate)/180*Math.PI,r=(a=t.scale).getExtent(),a=a.count();if(r[1]-r[0]\u003C1)return 0;var s=1;40\u003Ca&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(o)),u=Math.abs(u*Math.sin(o)),c=0,p=0;l\u003C=r[1];l+=s)var d=1.3*(f=Po(i({value:l}),n.font,\\\"center\\\",\\\"top\\\")).width,f=1.3*f.height,c=Math.max(c,d,7),p=Math.max(p,f,7);var o=c/h,h=p/u,u=(isNaN(o)&&(o=1/0),isNaN(h)&&(h=1/0),Math.max(0,Math.floor(Math.min(o,h)))),o=Mx(t.model),h=t.getExtent(),g=o.lastAutoInterval,y=o.lastTickCount;return null!=g&&null!=y&&Math.abs(g-u)\u003C=1&&Math.abs(y-a)\u003C=1&&u\u003Cg&&o.axisExtent0===h[0]&&o.axisExtent1===h[1]?u=g:(o.lastTickCount=a,o.lastAutoInterval=u,o.axisExtent0=h[0],o.axisExtent1=h[1]),u},Px);function Px(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Ox(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Rx=2*Math.PI,Nx=ss.CMD,Ex=[\\\"top\\\",\\\"right\\\",\\\"bottom\\\",\\\"left\\\"];function zx(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,h=n-t,c=i-e,p=Math.sqrt(h*h+c*c),l=(l*(h/=p)+u*(c/=p))/p,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=p)*h),p=a[1]=e+l*c;return Math.sqrt((u-o)*(u-o)+(p-r)*(p-r))}function Vx(t,e,n,i,o,r,a){n\u003C0&&(t+=n,n=-n),i\u003C0&&(e+=i,i=-i);var s=t+n,l=e+i,s=a[0]=Math.min(Math.max(o,t),s),l=a[1]=Math.min(Math.max(r,e),l);return Math.sqrt((s-o)*(s-o)+(l-r)*(l-r))}var Bx=[];function Fx(t,e,n){for(var i=0,o=0,r=0,a=0,s=1/0,l=e.data,u=t.x,h=t.y,c=0;c\u003Cl.length;){var p=l[c++],d=(1===c&&(r=i=l[c],a=o=l[c+1]),s);switch(p){case Nx.M:i=r=l[c++],o=a=l[c++];break;case Nx.L:d=zx(i,o,l[c],l[c+1],u,h,Bx,!0),i=l[c++],o=l[c++];break;case Nx.C:d=gn(i,o,l[c++],l[c++],l[c++],l[c++],l[c],l[c+1],u,h,Bx),i=l[c++],o=l[c++];break;case Nx.Q:d=_n(i,o,l[c++],l[c++],l[c],l[c+1],u,h,Bx),i=l[c++],o=l[c++];break;case Nx.A:var f=l[c++],g=l[c++],y=l[c++],m=l[c++],v=l[c++],x=l[c++],_=(c+=1,!!(1-l[c++])),b=Math.cos(v)*y+f,w=Math.sin(v)*m+g;c\u003C=1&&(r=b,a=w),d=function(t,e,n,i,o,r,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-o)%Rx\u003C1e-4)return l[0]=h,l[1]=c,u-n;(o=r?(f=i,i=ps(o),ps(f)):(i=ps(i),ps(o)))\u003Ci&&(o+=Rx);var p,d,f=Math.atan2(s,a);return f\u003C0&&(f+=Rx),i\u003C=f&&f\u003C=o||i\u003C=f+Rx&&f+Rx\u003C=o?(l[0]=h,l[1]=c,u-n):(c=((f=n*Math.cos(i)+t)-a)*(f-a)+((h=n*Math.sin(i)+e)-s)*(h-s))\u003C(d=((u=n*Math.cos(o)+t)-a)*(u-a)+((p=n*Math.sin(o)+e)-s)*(p-s))?(l[0]=f,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=p,Math.sqrt(d))}(f,g,m,v,v+x,_,(u-f)*m/y+f,h,Bx),i=Math.cos(v+x)*y+f,o=Math.sin(v+x)*m+g;break;case Nx.R:d=Vx(r=i=l[c++],a=o=l[c++],l[c++],l[c++],u,h,Bx);break;case Nx.Z:d=zx(i,o,r,a,u,h,Bx,!0),i=r,o=a}d\u003Cs&&(s=d,n.set(Bx[0],Bx[1]))}return s}var Gx=new V,Wx=new V,Hx=new V,Yx=new V,Ux=new V;function Xx(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||Ex,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&ao([],h),p=e.get(\\\"length2\\\")||0;u&&Hx.copy(u);for(var d=0;d\u003Ca.length;d++){_=x=v=m=y=g=f=void 0;var f=a[d],g=0,y=s,m=Gx,v=Yx,x=y.width,_=y.height;switch(f){case\\\"top\\\":m.set(y.x+x/2,y.y-g),v.set(0,-1);break;case\\\"bottom\\\":m.set(y.x+x/2,y.y+_+g),v.set(0,1);break;case\\\"left\\\":m.set(y.x-g,y.y+_/2),v.set(-1,0);break;case\\\"right\\\":m.set(y.x+x+g,y.y+_/2),v.set(1,0)}V.scaleAndAdd(Wx,Gx,Yx,p),Wx.transform(c);var b=t.getBoundingRect(),b=u?u.distance(Wx):t instanceof Q?Fx(Wx,t.path,Hx):(f=Hx,w=void 0,w=Vx(b.x,b.y,b.width,b.height,Wx.x,Wx.y,Bx),f.set(Bx[0],Bx[1]),w);b\u003Cl&&(l=b,Wx.transform(h),Hx.transform(h),Hx.toArray(r[0]),Wx.toArray(r[1]),Gx.toArray(r[2]))}qx(r,e.get(\\\"minTurnAngle\\\")),n.setShape({points:r})}}var w}var Zx=[],jx=new V;function qx(t,e){var n,i;e\u003C=180&&0\u003Ce&&(e=e/180*Math.PI,Gx.fromArray(t[0]),Wx.fromArray(t[1]),Hx.fromArray(t[2]),V.sub(Yx,Gx,Wx),V.sub(Ux,Hx,Wx),i=Yx.len(),n=Ux.len(),i\u003C.001||n\u003C.001||(Yx.scale(1/i),Ux.scale(1/n),i=Yx.dot(Ux),Math.cos(e)\u003Ci&&(n=zx(Wx.x,Wx.y,Hx.x,Hx.y,Gx.x,Gx.y,Zx,!1),jx.fromArray(Zx),jx.scaleAndAdd(Ux,n/Math.tan(Math.PI-e)),i=Hx.x!==Wx.x?(jx.x-Wx.x)/(Hx.x-Wx.x):(jx.y-Wx.y)/(Hx.y-Wx.y),isNaN(i)||(i\u003C0?V.copy(jx,Wx):1\u003Ci&&V.copy(jx,Hx),jx.toArray(t[1])))))}function Kx(t,e,n,i){var o=\\\"normal\\\"===n,r=o?t:t.ensureState(n),a=(r.ignore=e,i.get(\\\"smooth\\\")),a=(a&&!0===a&&(a=.3),r.shape=r.shape||{},0\u003Ca&&(r.shape.smooth=a),i.getModel(\\\"lineStyle\\\").getLineStyle());o?t.useStyle(a):r.style=a}function $x(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0\u003Cn&&3\u003C=i.length){var o=$t(i[0],i[1]),r=$t(i[1],i[2]);o&&r?(n=Math.min(o,r)*n,o=te([],i[1],i[0],n/o),n=te([],i[1],i[2],n/r),r=te([],o,n,.5),t.bezierCurveTo(o[0],o[1],o[0],o[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var a=1;a\u003Ci.length;a++)t.lineTo(i[a][0],i[a][1])}function Jx(t,e,n){var i=t.getTextGuideLine(),o=t.getTextContent();if(o){for(var r=e.normal,a=r.get(\\\"show\\\"),s=o.ignore,l=0;l\u003Chl.length;l++){var u,h=hl[l],c=e[h],p=\\\"normal\\\"===h;c&&(u=c.get(\\\"show\\\"),(p?s:P(o.states[h]&&o.states[h].ignore,s))||!P(u,a)?(u=p?i:i&&i.states[h])&&(u.ignore=!0):(i||(i=new rh,t.setTextGuideLine(i),p||!s&&a||Kx(i,!0,\\\"normal\\\",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Kx(i,!1,h,c)))}i&&(H(i.style,n),i.style.fill=null,r=r.get(\\\"showAbove\\\"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=r||!1,i.buildPath=$x)}else i&&t.removeTextGuideLine()}function Qx(t,e){for(var n={normal:t.getModel(e=e||\\\"labelLine\\\")},i=0;i\u003Cul.length;i++){var o=ul[i];n[o]=t.getModel([o,e])}return n}function t_(t){for(var e=[],n=0;n\u003Ct.length;n++){var i,o,r,a,s,l,u=t[n];u.defaultAttr.ignore||(o=(i=u.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]\u003C1e-5&&o[2]\u003C1e-5,l=i.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new Oh(r,o):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}function e_(s,l,u,t,e,n){var h=s.length;if(!(h\u003C2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var i,o=0,r=!1,a=0,c=0;c\u003Ch;c++){var p=s[c],d=p.rect;(i=d[l]-o)\u003C0&&(d[l]-=i,p.label[l]-=i,r=!0),a+=Math.max(-i,0),o=d[l]+d[u]}0\u003Ca&&n&&_(-a/h,0,h);var f,g,y=s[0],m=s[h-1];return v(),f\u003C0&&b(-f,.8),g\u003C0&&b(g,.8),v(),x(f,g,1),x(g,f,-1),v(),f\u003C0&&w(-f),g\u003C0&&w(g),r}function v(){f=y.rect[l]-t,g=e-m.rect[l]-m.rect[u]}function x(t,e,n){var i;t\u003C0&&(0\u003C(i=Math.min(e,-t))?(_(i*n,0,h),(i=i+t)\u003C0&&b(-i*n,1)):b(-t*n,1))}function _(t,e,n){0!==t&&(r=!0);for(var i=e;i\u003Cn;i++){var o=s[i];o.rect[l]+=t,o.label[l]+=t}}function b(t,e){for(var n=[],i=0,o=1;o\u003Ch;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[l]-r[l]-r[u],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0\u003Ct)for(o=0;o\u003Ch-1;o++)_(n[o]*a,0,o+1);else for(o=h-1;0\u003Co;o--)_(-n[o-1]*a,o,h)}}function w(t){var e=t\u003C0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(h-1)),i=0;i\u003Ch-1;i++)if(0\u003Ce?_(n,0,i+1):_(-n,h-i-1,h),(t-=n)\u003C=0)return}}function n_(t,e,n,i){return e_(t,\\\"y\\\",\\\"height\\\",e,n,i)}function i_(t){var e=[],n=(t.sort(function(t,e){return e.priority-t.priority}),new B(0,0,0,0));function i(t){var e;t.ignore||null==(e=t.ensureState(\\\"emphasis\\\")).ignore&&(e.ignore=!1),t.ignore=!0}for(var o=0;o\u003Ct.length;o++){var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine;n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=r.obb,p=!1,d=0;d\u003Ce.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new Oh(f.localRect,f.transform)),(c=c||new Oh(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr(\\\"ignore\\\",r.defaultAttr.ignore),h&&h.attr(\\\"ignore\\\",r.defaultAttr.labelGuideIgnore),e.push(r))}}function o_(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n\u003Ct.length;n++)e.push(t[n].slice());return e}}(i&&i.shape.points)}}var r_=[\\\"align\\\",\\\"verticalAlign\\\",\\\"width\\\",\\\"height\\\",\\\"fontSize\\\"],a_=new go,s_=i(),l_=i();function u_(t,e,n){for(var i=0;i\u003Cn.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var h_=[\\\"x\\\",\\\"y\\\",\\\"rotation\\\"],c_=(d_.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},d_.prototype._addLabel=function(t,e,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();B.applyTransform(l,l,s),s?a_.setLocalTransform(s):(a_.x=a_.y=a_.rotation=a_.originX=a_.originY=0,a_.scaleX=a_.scaleY=1);var u,s=i.__hostTarget,h=(s&&(u=s.getBoundingRect().plain(),h=s.getComputedTransform(),B.applyTransform(u,u,h)),u&&s.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:a_.x,y:a_.y,scaleX:a_.scaleX,scaleY:a_.scaleY,rotation:a_.rotation,style:{x:r.x,y:r.y,align:r.align,verticalAlign:r.verticalAlign,width:r.width,height:r.height,fontSize:r.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},d_.prototype.addLabelsOfSeries=function(t){var i=this,o=(this._chartViewList.push(t),t.__model),r=o.get(\\\"labelLayout\\\");(A(r)||W(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),n=$(t);e&&!e.disableLabelLayout&&i._addLabel(n.dataIndex,n.dataType,o,e,r)})},d_.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i\u003Cthis._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=(A(o.layoutOption)?o.layoutOption(o_(o,a)):o.layoutOption)||{},u=(o.computedLayoutOption=l,Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=F(l.x,e),r.setStyle(\\\"x\\\",0),h=!0):(r.x=s.x,r.setStyle(\\\"x\\\",s.style.x)),null!=l.y?(r.y=F(l.y,n),r.setStyle(\\\"y\\\",0),h=!0):(r.y=s.y,r.setStyle(\\\"y\\\",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),s_(r).needsUpdateLabelLine=h,r.rotation=null!=l.rotate?l.rotate*u:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p\u003Cr_.length;p++){var d=r_[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor=\\\"move\\\",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on(\\\"drag\\\",function(t,e){return function(){Xx(t,e)}}(a,c.getModel(\\\"labelLine\\\"))))):(r.off(\\\"drag\\\"),r.cursor=s.cursor)}},d_.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=t_(this._labelList),o=pt(i,function(t){return\\\"shiftX\\\"===t.layoutOption.moveOverlap}),r=pt(i,function(t){return\\\"shiftY\\\"===t.layoutOption.moveOverlap});e_(o,\\\"x\\\",\\\"width\\\",0,e,void 0),n_(r,0,n),i_(pt(i,function(t){return t.layoutOption.hideOverlap}))},d_.prototype.processLabelsOverall=function(){var a=this;lt(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!o,n=t.getTextContent();(e=!e&&n?s_(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},d_.prototype._updateLabelLine=function(t,e){var n,i=t.getTextContent(),o=$(t),r=o.dataIndex;i&&null!=r&&(o=(i=e.getData(o.dataType)).getItemModel(r),n={},r=i.getItemVisual(r,\\\"style\\\"),i=i.getVisual(\\\"drawType\\\"),n.stroke=r[i],i=o.getModel(\\\"labelLine\\\"),Jx(t,Qx(o),n),Xx(t,i))},d_.prototype._animateLabels=function(t,e){var n,i,o,r,a,s,l=t.getTextContent(),u=t.getTextGuideLine();!l||!t.forceLabelAnimation&&(l.ignore||l.invisible||t.disableLabelAnimation||Uh(t))||(r=(a=s_(l)).oldLayout,n=(i=$(t)).dataIndex,s={x:l.x,y:l.y,rotation:l.rotation},i=e.getData(i.dataType),r?(l.attr(r),(o=t.prevStates)&&(0\u003C=G(o,\\\"select\\\")&&l.attr(a.oldLayoutSelect),0\u003C=G(o,\\\"emphasis\\\"))&&l.attr(a.oldLayoutEmphasis),k(l,s,e,n)):(l.attr(s),Nc(l).valueAnimation||(o=P(l.style.opacity,1),l.style.opacity=0,Yh(l,{style:{opacity:o}},e,n))),a.oldLayout=s,l.states.select&&(u_(o=a.oldLayoutSelect={},s,h_),u_(o,l.states.select,h_)),l.states.emphasis&&(u_(o=a.oldLayoutEmphasis={},s,h_),u_(o,l.states.emphasis,h_)),zc(l,n,i,e,e)),!u||u.ignore||u.invisible||(r=(a=l_(u)).oldLayout,s={points:u.shape.points},r?(u.attr({shape:r}),k(u,{shape:s},e)):(u.setShape(s),u.style.strokePercent=0,Yh(u,{style:{strokePercent:1}},e)),a.oldLayout=s)},d_),p_=i();function d_(){this._labelList=[],this._chartViewList=[]}var f_=Math.sin,g_=Math.cos,y_=Math.PI,m_=2*Math.PI,v_=180/y_,x_=(w_.prototype.reset=function(t){this._start=!0,this._d=[],this._str=\\\"\\\",this._p=Math.pow(10,t||4)},w_.prototype.moveTo=function(t,e){this._add(\\\"M\\\",t,e)},w_.prototype.lineTo=function(t,e){this._add(\\\"L\\\",t,e)},w_.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add(\\\"C\\\",t,e,n,i,o,r)},w_.prototype.quadraticCurveTo=function(t,e,n,i){this._add(\\\"Q\\\",t,e,n,i)},w_.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},w_.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,h=!s,c=Math.abs(u),p=ei(c-m_)||(h?m_\u003C=u:m_\u003C=-u),c=!!p||!ei(c)&&y_\u003C=(0\u003Cu?u%m_:u%m_+m_)==!!h,u=t+n*g_(r),d=e+i*f_(r),f=(this._start&&this._add(\\\"M\\\",u,d),Math.round(o*v_));p?(p=1/this._p,this._add(\\\"A\\\",n,i,f,1,+h,t+n*g_(r+(l=(h?1:-1)*(m_-p))),e+i*f_(r+l)),.01\u003Cp&&this._add(\\\"A\\\",n,i,f,0,+h,u,d)):(l=t+n*g_(a),p=e+i*f_(a),this._add(\\\"A\\\",n,i,f,+c,+h,l,p))},w_.prototype.rect=function(t,e,n,i){this._add(\\\"M\\\",t,e),this._add(\\\"l\\\",n,0),this._add(\\\"l\\\",0,i),this._add(\\\"l\\\",-n,0),this._add(\\\"Z\\\")},w_.prototype.closePath=function(){0\u003Cthis._d.length&&this._add(\\\"Z\\\")},w_.prototype._add=function(t,e,n,i,o,r,a,s,l){for(var u=[],h=this._p,c=1;c\u003Carguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(\\\" \\\")),this._start=\\\"Z\\\"===t},w_.prototype.generateStr=function(){this._str=this._invalid?\\\"\\\":this._d.join(\\\"\\\"),this._d=[]},w_.prototype.getStr=function(){return this._str},w_),__=\\\"none\\\",b_=Math.round;function w_(){}var S_=[\\\"lineCap\\\",\\\"miterLimit\\\",\\\"lineJoin\\\"],M_=Y(S_,function(t){return\\\"stroke-\\\"+t.toLowerCase()});var I_=\\\"http://www.w3.org/2000/svg\\\",T_=\\\"http://www.w3.org/1999/xlink\\\";function C_(t){return document.createElementNS(I_,t)}function D_(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function A_(i,t){var o=(t=t||{}).newline?\\\"\\\\n\\\":\\\"\\\";return function i(t){var e=t.children,n=t.tag;return function(t,e){var n=[];if(e)for(var i in e){var o=e[i];!1!==o&&(!0!==o&&null!=o&&(i+='=\\\"'+o+'\\\"'),n.push(i))}return\\\"\u003C\\\"+t+\\\" \\\"+n.join(\\\" \\\")+\\\">\\\"}(n,t.attrs)+(t.text||\\\"\\\")+(e?o+Y(e,function(t){return i(t)}).join(o)+o:\\\"\\\")+\\\"\u003C/\\\"+n+\\\">\\\"}(i)}function k_(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function L_(t,e,n,i){return D_(\\\"svg\\\",\\\"root\\\",{width:t,height:e,xmlns:I_,\\\"xmlns:xlink\\\":T_,version:\\\"1.1\\\",baseProfile:\\\"full\\\",viewBox:!!i&&\\\"0 0 \\\"+t+\\\" \\\"+e},n)}var P_={cubicIn:\\\"0.32,0,0.67,0\\\",cubicOut:\\\"0.33,1,0.68,1\\\",cubicInOut:\\\"0.65,0,0.35,1\\\",quadraticIn:\\\"0.11,0,0.5,0\\\",quadraticOut:\\\"0.5,1,0.89,1\\\",quadraticInOut:\\\"0.45,0,0.55,1\\\",quarticIn:\\\"0.5,0,0.75,0\\\",quarticOut:\\\"0.25,1,0.5,1\\\",quarticInOut:\\\"0.76,0,0.24,1\\\",quinticIn:\\\"0.64,0,0.78,0\\\",quinticOut:\\\"0.22,1,0.36,1\\\",quinticInOut:\\\"0.83,0,0.17,1\\\",sinusoidalIn:\\\"0.12,0,0.39,0\\\",sinusoidalOut:\\\"0.61,1,0.88,1\\\",sinusoidalInOut:\\\"0.37,0,0.63,1\\\",exponentialIn:\\\"0.7,0,0.84,0\\\",exponentialOut:\\\"0.16,1,0.3,1\\\",exponentialInOut:\\\"0.87,0,0.13,1\\\",circularIn:\\\"0.55,0,1,0.45\\\",circularOut:\\\"0,0.55,0.45,1\\\",circularInOut:\\\"0.85,0,0.15,1\\\"},O_=\\\"transform-origin\\\";var R_={fill:\\\"fill\\\",opacity:\\\"opacity\\\",lineWidth:\\\"stroke-width\\\",lineDashOffset:\\\"stroke-dashoffset\\\"};function N_(t,e){var n=e.zrId+\\\"-ani-\\\"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function E_(t){return X(t)?P_[t]?\\\"cubic-bezier(\\\"+P_[t]+\\\")\\\":wn(t)?t:\\\"\\\":\\\"\\\"}function z_(A,k,L,P){var t=A.animators,e=t.length,n=[];if(A instanceof Th){if(o=function(t,h){var c,p,e=A.shape.paths,d={};if(lt(e,function(t){var e=k_(h.zrId),n=(e.animation=!0,z_(t,{},e,!0),e.cssAnims),i=e.cssNodes,e=W(n),o=e.length;if(o){var r,a,s=n[p=e[o-1]];for(r in s){var l=s[r];d[r]=d[r]||{d:\\\"\\\"},d[r].d+=l.d||\\\"\\\"}for(a in i){var u=i[a].animation;0\u003C=u.indexOf(p)&&(c=u)}}}),c)return t.d=!1,e=N_(d,h),c.replace(p,e)}(k,L))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s\u003Ce;s++){var l=t[s],u=[l.getMaxTime()/1e3+\\\"s\\\"],h=E_(l.getClip().easing),c=l.getDelay(),h=(u.push(h||\\\"linear\\\"),c&&u.push(c/1e3+\\\"s\\\"),l.getLoop()&&u.push(\\\"infinite\\\"),u.join(\\\" \\\"));a[h]=a[h]||[h,[]],a[h][1].push(l)}function p(t){var e,n=t[1],i=n.length,o={},r={},a={};function s(t,e,n){for(var i=t.getTracks(),o=t.getMaxTime(),r=0;r\u003Ci.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u\u003Cs.length;u++){var h=s[u],c=Math.round(h.time/o*100)+\\\"%\\\",p=E_(h.easing),d=h.rawValue;(X(d)||j(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][\\\"animation-timing-function\\\"]=p)}}}}for(var l,u,h=0;h\u003Ci;h++)(v=(m=n[h]).targetName)?\\\"shape\\\"===v&&s(m,r):P||s(m,o);for(S in o){var c={},p=(vo(c,A),Z(c,o[S]),hi(c)),d=o[S][\\\"animation-timing-function\\\"];a[S]=p?{transform:p}:{},l=a[S],u=p=void 0,u=c.originY,((p=c.originX)||u)&&(l[O_]=p+\\\"px \\\"+u+\\\"px\\\"),d&&(a[S][\\\"animation-timing-function\\\"]=d)}var f,g,y,m,v,x=!0;for(S in r){a[S]=a[S]||{};var _=!e,d=r[S][\\\"animation-timing-function\\\"],b=(e=_?new ss:e).len(),w=(e.reset(),a[S].d=(g=r[S],y=e,w=void 0,w=Z({},(f=A).shape),Z(w,g),f.buildPath(y,w),(w=new x_).reset(ui(f)),y.rebuildPath(w,1),w.generateStr(),w.getStr()),e.len());if(!_&&b!==w){x=!1;break}d&&(a[S][\\\"animation-timing-function\\\"]=d)}if(!x)for(var S in a)delete a[S].d;if(!P)for(h=0;h\u003Ci;h++)\\\"style\\\"===(v=(m=n[h]).targetName)&&s(m,a,function(t){return R_[t]});for(var M,I=W(a),T=!0,h=1;h\u003CI.length;h++){var C=I[h-1],D=I[h];if(a[C][O_]!==a[D][O_]){T=!1;break}M=a[C][O_]}if(T&&M){for(var S in a)a[S][O_]&&delete a[S][O_];k[O_]=M}if(pt(I,function(t){return 0\u003CW(a[t]).length}).length)return N_(a,L)+\\\" \\\"+t[0]+\\\" both\\\"}for(i in a)(o=p(a[i]))&&n.push(o);n.length&&(r=L.zrId+\\\"-cls-\\\"+L.cssClassIdx++,L.cssNodes[\\\".\\\"+r]={animation:n.join(\\\",\\\")},k[\\\"class\\\"]=r)}var V_=Math.round;function B_(t){return t&&X(t.src)}function F_(t){return t&&A(t.toDataURL)}function G_(C,D,A,k){var t=function(t,e){var n,i,o,r,a,s,l,u,h,c=\\\"fill\\\"===t||\\\"stroke\\\"===t;if(c&&e&&(\\\"linear\\\"===e.type||\\\"radial\\\"===e.type)){var p,d=C,f=t,g=k,y={gradientUnits:(M=D[f]).global?\\\"userSpaceOnUse\\\":\\\"objectBoundingBox\\\"};if(ai(M))p=\\\"linearGradient\\\",y.x1=M.x,y.y1=M.y,y.x2=M.x2,y.y2=M.y2;else{if(!si(M))return;p=\\\"radialGradient\\\",y.cx=P(M.x,.5),y.cy=P(M.y,.5),y.r=P(M.r,.5)}for(var m=M.colorStops,v=[],x=0,_=m.length;x\u003C_;++x){var b=100*ii(m[x].offset)+\\\"%\\\",w=Qn(m[x].color),S=w.color,w=w.opacity,b={offset:b};b[\\\"stop-color\\\"]=S,w\u003C1&&(b[\\\"stop-opacity\\\"]=w),v.push(D_(\\\"stop\\\",x+\\\"\\\",b))}var M=A_(D_(p,\\\"\\\",y,v)),I=g.gradientCache,T=I[M];T||(T=g.zrId+\\\"-g\\\"+g.gradientIdx++,I[M]=T,y.id=T,g.defs[T]=D_(p,T,y,v)),d[f]=li(T)}else c&&(ri(g=e)||g&&g.svgElement)?(f=C,d=t,i=k,M=(n=A).style[d],I={patternUnits:\\\"userSpaceOnUse\\\"},ri(M)?(r=M.imageWidth,a=M.imageHeight,h=void 0,X(u=M.image)?h=u:B_(u)?h=u.src:F_(u)&&(h=u.toDataURL()),\\\"undefined\\\"==typeof Image?(Tt(r,u=\\\"Image width/height must been given explictly in svg-ssr renderer.\\\"),Tt(a,u)):null!=r&&null!=a||(s=function(t,e){var n,i,o;t&&(n=t.elm,i=t.attrs.width=r||e.width,o=t.attrs.height=a||e.height,n)&&(n.setAttribute(\\\"width\\\",i),n.setAttribute(\\\"height\\\",o))},(u=la(h,null,n,function(t){s(l,t),s(o,t)}))&&u.width&&u.height&&(r=r||u.width,a=a||u.height)),o=D_(\\\"image\\\",\\\"img\\\",{href:h,width:r,height:a}),I.width=r,I.height=a):M.svgElement&&(o=L(M.svgElement),I.width=M.svgWidth,I.height=M.svgHeight),o&&(I.patternTransform=hi(M),u=A_(l=D_(\\\"pattern\\\",\\\"\\\",I,[o])),(M=(h=i.patternCache)[u])||(M=i.zrId+\\\"-p\\\"+i.patternIdx++,h[u]=M,I.id=M,l=i.defs[M]=D_(\\\"pattern\\\",M,I,[o])),f[d]=li(M))):C[t]=e},e=D,n=A,i=!1,o=null==e.opacity?1:e.opacity;if(n instanceof Ps)t(\\\"opacity\\\",o);else if(null!=(r=e.fill)&&r!==__?(t(\\\"fill\\\",(r=Qn(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(i||r\u003C1)&&t(\\\"fill-opacity\\\",r)):t(\\\"fill\\\",__),null!=(r=e.stroke)&&r!==__){var r=Qn(e.stroke),a=(t(\\\"stroke\\\",r.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!i&&1==a||t(\\\"stroke-width\\\",a),(i||o)&&t(\\\"paint-order\\\",o?\\\"stroke\\\":\\\"fill\\\"),(i||r\u003C1)&&t(\\\"stroke-opacity\\\",r),e.lineDash?(o=(a=Am(n))[0],r=a[1],o&&(r=b_(r||0),t(\\\"stroke-dasharray\\\",o.join(\\\",\\\")),r||i)&&t(\\\"stroke-dashoffset\\\",r)):i&&t(\\\"stroke-dasharray\\\",__);for(var s=0;s\u003CS_.length;s++){var l=S_[s];(i||e[l]!==ws[l])&&(l=e[l]||ws[l])&&t(M_[s],l)}}else i&&t(\\\"stroke\\\",__);var n=A,u=C,h=k;if((a=n.style)&&(a.shadowBlur||a.shadowOffsetX||a.shadowOffsetY)){o=n.style,r=n.getGlobalScale();o=[o.shadowColor,(o.shadowBlur||0).toFixed(2),(o.shadowOffsetX||0).toFixed(2),(o.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(\\\",\\\"),r=h.shadowCache;if(!(m=r[o])){var c=n.getGlobalScale(),p=c[0],c=c[1];if(!p||!c)return;var d=a.shadowOffsetX||0,f=a.shadowOffsetY||0,g=a.shadowBlur,a=Qn(a.shadowColor),y=a.opacity,a=a.color,g=g/2/p+\\\" \\\"+g/2/c,m=h.zrId+\\\"-s\\\"+h.shadowIdx++;h.defs[m]=D_(\\\"filter\\\",m,{id:m,x:\\\"-100%\\\",y:\\\"-100%\\\",width:\\\"300%\\\",height:\\\"300%\\\"},[D_(\\\"feDropShadow\\\",\\\"\\\",{dx:d/p,dy:f/c,stdDeviation:g,\\\"flood-color\\\":a,\\\"flood-opacity\\\":y})]),r[o]=m}u.filter=li(m)}}function W_(t){return ei(t[0]-1)&&ei(t[1])&&ei(t[2])&&ei(t[3]-1)}function H_(t,e,n){var i;!e||ei(e[4])&&ei(e[5])&&W_(e)||(i=n?10:1e4,t.transform=W_(e)?\\\"translate(\\\"+V_(e[4]*i)/i+\\\" \\\"+V_(e[5]*i)/i+\\\")\\\":\\\"matrix(\\\"+ni((n=e)[0])+\\\",\\\"+ni(n[1])+\\\",\\\"+ni(n[2])+\\\",\\\"+ni(n[3])+\\\",\\\"+ii(n[4])+\\\",\\\"+ii(n[5])+\\\")\\\")}function Y_(t,e,n){for(var i=t.points,o=[],r=0;r\u003Ci.length;r++)o.push(V_(i[r][0]*n)/n),o.push(V_(i[r][1]*n)/n);e.points=o.join(\\\" \\\")}function U_(t){return!t.smooth}var X_,Z_={circle:[(X_=Y([\\\"cx\\\",\\\"cy\\\",\\\"r\\\"],function(t){return\\\"string\\\"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i\u003CX_.length;i++){var o=X_[i],r=t[o[0]];null!=r&&(e[o[1]]=V_(r*n)/n)}})],polyline:[Y_,U_],polygon:[Y_,U_]};function j_(n,t){var e,i,o,r=n.style,a=n.shape,s=Z_[n.type],l={},u=t.animation,h=\\\"path\\\",c=n.style.strokePercent,p=t.compress&&ui(n)||4;return!s||t.willUpdate||s[1]&&!s[1](a)||u&&function(){for(var t=n.animators,e=0;e\u003Ct.length;e++)if(\\\"shape\\\"===t[e].targetName)return 1}()||c\u003C1?(n.path||n.createPathProxy(),u=n.path,n.shapeChanged()&&(u.beginPath(),n.buildPath(u,n.shape),n.pathUpdated()),e=u.getVersion(),o=(i=n).__svgPathBuilder,i.__svgPathVersion===e&&o&&c===i.__svgPathStrokePercent||((o=o||(i.__svgPathBuilder=new x_)).reset(p),u.rebuildPath(o,c),o.generateStr(),i.__svgPathVersion=e,i.__svgPathStrokePercent=c),l.d=o.getStr()):(h=n.type,u=Math.pow(10,p),s[0](a,l,u)),H_(l,n.transform),G_(l,r,n,t),t.animation&&z_(n,l,t),D_(h,n.id+\\\"\\\",l)}function q_(t,e){{if(t instanceof Q)return j_(t,e);if(t instanceof Ps){var n=t,i=e,o=n.style,r;if((r=o.image)&&!X(r)&&(B_(r)?r=r.src:F_(r)&&(r=r.toDataURL())),r)return s=o.x||0,l=o.y||0,r={href:r,width:o.width,height:o.height},s&&(r.x=s),l&&(r.y=l),H_(r,n.transform),G_(r,o,n,i),i.animation&&z_(n,r,i),D_(\\\"image\\\",n.id+\\\"\\\",r)}else if(t instanceof Ts){n=e;var a,s=(i=t).style,l=s.text;if(null!=l&&(l+=\\\"\\\"),l&&!isNaN(s.x)&&!isNaN(s.y)){var o=s.font||tt,r=s.x||0,u=(t=s.y||0,e=No(o),\\\"top\\\"===(a=s.textBaseline)?t+=e/2:\\\"bottom\\\"===a&&(t-=e/2),t),h={\\\"dominant-baseline\\\":\\\"central\\\",\\\"text-anchor\\\":oi[s.textAlign]||s.textAlign};if($s(s)){var c=\\\"\\\",p=s.fontStyle,d=qs(s.fontSize);if(!parseFloat(d))return;var f=s.fontFamily||\\\"sans-serif\\\",g=s.fontWeight;c+=\\\"font-size:\\\"+d+\\\";font-family:\\\"+f+\\\";\\\",p&&\\\"normal\\\"!==p&&(c+=\\\"font-style:\\\"+p+\\\";\\\"),g&&\\\"normal\\\"!==g&&(c+=\\\"font-weight:\\\"+g+\\\";\\\"),h.style=c}else h.style=\\\"font: \\\"+o;return l.match(/\\\\s/)&&(h[\\\"xml:space\\\"]=\\\"preserve\\\"),r&&(h.x=r),u&&(h.y=u),H_(h,i.transform),G_(h,s,i,n),n.animation&&z_(i,h,n),D_(\\\"text\\\",i.id+\\\"\\\",h,void 0,l)}}}}function K_(t){return document.createTextNode(t)}function $_(t,e,n){t.insertBefore(e,n)}function J_(t,e){t.removeChild(e)}function Q_(t,e){t.appendChild(e)}function tb(t){return t.parentNode}function eb(t){return t.nextSibling}function nb(t,e){t.textContent=e}var ib=D_(\\\"\\\",\\\"\\\");function ob(t){return void 0===t}function rb(t){return void 0!==t}function ab(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function sb(t){var e,n=t.children,i=t.tag;if(rb(i)){var o=t.elm=C_(i);if(hb(ib,t),U(n))for(e=0;e\u003Cn.length;++e){var r=n[e];null!=r&&Q_(o,sb(r))}else rb(t.text)&&!R(t.text)&&Q_(o,K_(t.text))}else t.elm=K_(t.text);return t.elm}function lb(t,e,n,i,o){for(;i\u003C=o;++i){var r=n[i];null!=r&&$_(t,sb(r),e)}}function ub(t,e,n,i){for(;n\u003C=i;++n){var o=e[n];null!=o&&(rb(o.tag)?J_(tb(o.elm),o.elm):J_(t,o.elm))}}function hb(t,e){var n,i=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,\\\"\\\"):!1===a?i.removeAttribute(n):120!==n.charCodeAt(0)?i.setAttribute(n,a):\\\"xmlns:xlink\\\"===n||\\\"xmlns\\\"===n?i.setAttributeNS(\\\"http://www.w3.org/2000/xmlns/\\\",n,a):58===n.charCodeAt(3)?i.setAttributeNS(\\\"http://www.w3.org/XML/1998/namespace\\\",n,a):58===n.charCodeAt(5)?i.setAttributeNS(T_,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function cb(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;if(t!==e)if(hb(t,e),ob(e.text))if(rb(i)&&rb(o)){if(i!==o){for(var r,a,s,l=n,u=i,h=o,c=0,p=0,d=u.length-1,f=u[0],g=u[d],y=h.length-1,m=h[0],v=h[y];c\u003C=d&&p\u003C=y;)null==f?f=u[++c]:null==g?g=u[--d]:null==m?m=h[++p]:null==v?v=h[--y]:ab(f,m)?(cb(f,m),f=u[++c],m=h[++p]):ab(g,v)?(cb(g,v),g=u[--d],v=h[--y]):ab(f,v)?(cb(f,v),$_(l,f.elm,eb(g.elm)),f=u[++c],v=h[--y]):m=(ab(g,m)?(cb(g,m),$_(l,g.elm,f.elm),g=u[--d]):(ob(r)&&(r=function(t,e,n){for(var i={},o=e;o\u003C=n;++o){var r=t[o].key;void 0!==r&&(i[r]=o)}return i}(u,c,d)),ob(a=r[m.key])||(s=u[a]).tag!==m.tag?$_(l,sb(m),f.elm):(cb(s,m),u[a]=void 0,$_(l,s.elm,f.elm))),h[++p]);(c\u003C=d||p\u003C=y)&&(d\u003Cc?lb(l,null==h[y+1]?null:h[y+1].elm,h,p,y):ub(l,u,c,d))}}else rb(o)?(rb(t.text)&&nb(n,\\\"\\\"),lb(n,null,o,0,o.length-1)):rb(i)?ub(n,i,0,i.length-1):rb(t.text)&&nb(n,\\\"\\\");else t.text!==e.text&&(rb(i)&&ub(n,i,0,i.length-1),nb(n,e.text))}var pb=0,db=(fb.prototype.getType=function(){return this.type},fb.prototype.getViewportRoot=function(){return this._viewport},fb.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},fb.prototype.getSvgDom=function(){return this._svgDom},fb.prototype.refresh=function(){var t,e,n,i,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style=\\\"position:absolute;left:0;top:0;user-select:none\\\",ab(e=this._oldVNode,n=t)?cb(e,n):(o=tb(i=e.elm),sb(n),null!==o&&($_(o,n.elm,eb(i)),ub(o,[e],0,0))),this._oldVNode=t)},fb.prototype.renderOneToVNode=function(t){return q_(t,k_(this._id))},fb.prototype.renderToVNode=function(t){t=t||{};var n,o,r,a,s,e=this.storage.getDisplayList(!0),i=this._backgroundColor,l=this._width,u=this._height,h=k_(this._id),c=(h.animation=t.animation,h.willUpdate=t.willUpdate,h.compress=t.compress,[]),p=(i&&\\\"none\\\"!==i?(p=(i=Qn(i)).color,i=i.opacity,this._bgVNode=D_(\\\"rect\\\",\\\"bg\\\",{width:l,height:u,x:\\\"0\\\",y:\\\"0\\\",id:\\\"0\\\",fill:p,\\\"fill-opacity\\\":i}),c.push(this._bgVNode)):this._bgVNode=null,t.compress?null:this._mainVNode=D_(\\\"g\\\",\\\"main\\\",{},[])),i=(this._paintList(e,h,p?p.children:c),p&&c.push(p),Y(W(h.defs),function(t){return h.defs[t]}));return i.length&&c.push(D_(\\\"defs\\\",\\\"defs\\\",{},i)),t.animation&&(n=h.cssNodes,o=h.cssAnims,a=\\\" {\\\"+(r={newline:!0}.newline?\\\"\\\\n\\\":\\\"\\\"),s=r+\\\"}\\\",e=Y(W(n),function(e){return e+a+Y(W(n[e]),function(t){return t+\\\":\\\"+n[e][t]+\\\";\\\"}).join(r)+s}).join(r),p=Y(W(o),function(i){return\\\"@keyframes \\\"+i+a+Y(W(o[i]),function(n){return n+a+Y(W(o[i][n]),function(t){var e=o[i][n][t];return t+\\\":\\\"+(e=\\\"d\\\"===t?'path(\\\"'+e+'\\\")':e)+\\\";\\\"}).join(r)+s}).join(r)+s}).join(r),i=e||p?[\\\"\u003C![CDATA[\\\",e,p,\\\"]]>\\\"].join(r):\\\"\\\")&&(e=D_(\\\"style\\\",\\\"stl\\\",{},[],i),c.push(e)),L_(l,u,c,t.useViewBox)},fb.prototype.renderToString=function(t){return A_(this.renderToVNode({animation:P((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:P(t.useViewBox,!0)}),{newline:!0})},fb.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e,n,i=this._bgVNode;i&&i.elm&&(e=(n=Qn(t)).color,n=n.opacity,i.elm.setAttribute(\\\"fill\\\",e),n\u003C1)&&i.elm.setAttribute(\\\"fill-opacity\\\",n)},fb.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},fb.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f\u003Ch;f++){var g=t[f];if(!g.invisible){for(var y=g.__clipPaths,m=y&&y.length||0,v=M&&M.length||0,x=void 0,x=Math.max(m-1,v-1);0\u003C=x&&(!y||!M||y[x]!==M[x]);x--);for(var _=v-1;x\u003C_;_--)i=c[--p-1];for(var b=x+1;b\u003Cm;b++){var w={},S=(o=y[b],r=w,u=l=S=s=void 0,S=(a=e).clipPathCache,l=a.defs,(u=S[o.id])||(s={id:u=a.zrId+\\\"-c\\\"+a.clipPathIdx++},l[S[o.id]=u]=D_(\\\"clipPath\\\",u,s,[j_(o,a)])),r[\\\"clip-path\\\"]=li(u),D_(\\\"g\\\",\\\"clip-g-\\\"+d++,w,[]));(i?i.children:n).push(S),i=c[p++]=S}var M=y,v=q_(g,e);v&&(i?i.children:n).push(v)}}},fb.prototype.resize=function(t,e){var n=this._opts,i=this.root,o=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&o&&(o.style.display=\\\"none\\\",t=Dm(i,0,n),e=Dm(i,1,n),o.style.display=\\\"\\\"),(this._width!==t||this._height!==e)&&(this._width=t,this._height=e,o&&((i=o.style).width=t+\\\"px\\\",i.height=e+\\\"px\\\"),n=this._svgDom)&&(n.setAttribute(\\\"width\\\",t),n.setAttribute(\\\"height\\\",e))},fb.prototype.getWidth=function(){return this._width},fb.prototype.getHeight=function(){return this._height},fb.prototype.dispose=function(){this.root&&(this.root.innerHTML=\\\"\\\"),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},fb.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},fb.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n=\\\"data:image/svg+xml;\\\";return t?(e=ci(e))&&n+\\\"base64,\\\"+e:n+\\\"charset=UTF-8,\\\"+e},fb);function fb(t,e,n){var i,o;this.type=\\\"svg\\\",this.refreshHover=gb(),this.configLayer=gb(),this.storage=e,this._opts=n=Z({},n),this.root=t,this._id=\\\"zr\\\"+pb++,this._oldVNode=L_(n.width,n.height),t&&!n.ssr&&((i=this._viewport=document.createElement(\\\"div\\\")).style.cssText=\\\"position:relative;overflow:hidden\\\",o=this._svgDom=this._oldVNode.elm=C_(\\\"svg\\\"),hb(null,this._oldVNode),i.appendChild(o),t.appendChild(i)),this.resize(n.width,n.height)}function gb(){return function(){}}function yb(t,e,n){var i=J.createCanvas(),o=e.getWidth(),r=e.getHeight(),a=i.style;return a&&(a.position=\\\"absolute\\\",a.left=\\\"0\\\",a.top=\\\"0\\\",a.width=o+\\\"px\\\",a.height=r+\\\"px\\\",i.setAttribute(\\\"data-zr-dom-id\\\",t)),i.width=o*n,i.height=r*n,i}u(_b,mb=se),_b.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},_b.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},_b.prototype.initContext=function(){this.ctx=this.dom.getContext(\\\"2d\\\"),this.ctx.dpr=this.dpr},_b.prototype.setUnpainted=function(){this.__firstTimePaint=!0},_b.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=yb(\\\"back-\\\"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext(\\\"2d\\\"),1!==t&&this.ctxBack.scale(t,t)},_b.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,l=[],u=this.maxRepaintRectCount,h=!1,c=new B(0,0,0,0);function r(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new B(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,o=0,r=0;r\u003Cl.length;++r){var a=l[r];if(a.intersect(t)){var s=new B(0,0,0,0);s.copy(a),s.union(t),l[r]=s,n=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)\u003Ci)&&(i=a,o=r)}h&&(l[o].union(t),n=!0),n||((e=new B(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var a,s=this.__startIndex;s\u003Cthis.__endIndex;++s)(p=t[s])&&(f=p.shouldBePainted(n,i,!0,!0),(d=p.__isRendered&&(1&p.__dirty||!f)?p.getPrevPaintRect():null)&&r(d),a=f&&(1&p.__dirty||!p.__isRendered)?p.getPaintRect():null)&&r(a);for(s=this.__prevStartIndex;s\u003Cthis.__prevEndIndex;++s){var p,d,f=(p=e[s]).shouldBePainted(n,i,!0,!0);!p||f&&p.__zr||!p.__isRendered||(d=p.getPrevPaintRect())&&r(d)}do{for(o=!1,s=0;s\u003Cl.length;)if(l[s].isZero())l.splice(s,1);else{for(var g=s+1;g\u003Cl.length;)l[s].intersect(l[g])?(o=!0,l[s].union(l[g]),l.splice(g,1)):g++;s++}}while(o);return this._paintRects=l},_b.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},_b.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+\\\"px\\\",o.height=e+\\\"px\\\"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},_b.prototype.clear=function(t,r,e){var n=this.dom,a=this.ctx,i=n.width,o=n.height,s=(r=r||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=\\\"copy\\\",this.ctxBack.drawImage(n,0,0,i/u,o/u)),this.domBack);function p(t,e,n,i){var o;a.clearRect(t,e,n,i),r&&\\\"transparent\\\"!==r&&(o=void 0,vt(r)?(o=r.__canvasGradient||Tm(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o):xt(r)&&(o=Em(a,r,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,o):e.length&<(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var mb,vb=_b,xb=314159;function _b(t,e,n){var i,o=mb.call(this)||this,r=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||$i,\\\"string\\\"==typeof t?i=yb(t,e,n):R(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return r&&(Nt(i),i.onselectstart=function(){return!1},r.padding=\\\"0\\\",r.margin=\\\"0\\\",r.borderWidth=\\\"0\\\"),o.painter=e,o.dpr=n,o}wb.prototype.getType=function(){return\\\"canvas\\\"},wb.prototype.isSingleCanvas=function(){return this._singleCanvas},wb.prototype.getViewportRoot=function(){return this._domRoot},wb.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},wb.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var o=0;o\u003Ci.length;o++){var r,a=i[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},wb.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},wb.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r\u003Ce;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Um(i,a,o,r===e-1))}i&&i.restore()}},wb.prototype.getHoverLayer=function(){return this.getLayer(1e5)},wb.prototype.paintOne=function(t,e){Ym(t,e)},wb.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,qe(function(){a._paintList(t,e,n,i)})))},wb.prototype._compositeManually=function(){var e=this.getLayer(xb).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},wb.prototype._doPaintList=function(f,g,y){for(var m=this,v=[],x=this._opts.useDirtyRect,t=0;t\u003Cthis._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||y)&&v.push(e)}for(var _=!0,b=!1,w=this,n=0;n\u003Cv.length;n++)!function(t){var i,e,o=v[t],r=o.ctx,n=x&&o.createRepaintRects(f,g,w._width,w._height),a=y?o.__startIndex:o.__drawIndex,s=!y&&o.incremental&&Date.now,l=s&&Date.now(),u=o.zlevel===w._zlevelList[0]?w._backgroundColor:null,h=(o.__startIndex!==o.__endIndex&&(a!==o.__startIndex||(e=f[a]).incremental&&e.notClear&&!y)||o.clear(!1,u,n),-1===a&&(console.error(\\\"For some unknown reason. drawIndex is -1\\\"),a=o.__startIndex),function(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:m._width,viewHeight:m._height};for(i=a;i\u003Co.__endIndex;i++){var n=f[i];if(n.__inHover&&(b=!0),m._doPaintEl(n,o,x,t,e,i===o.__endIndex-1),s&&15\u003CDate.now()-l)break}e.prevElClipPaths&&r.restore()});if(n)if(0===n.length)i=o.__endIndex;else for(var c=w.dpr,p=0;p\u003Cn.length;++p){var d=n[p];r.save(),r.beginPath(),r.rect(d.x*c,d.y*c,d.width*c,d.height*c),r.clip(),h(d),r.restore()}else r.save(),h(),r.restore();o.__drawIndex=i,o.__drawIndex\u003Co.__endIndex&&(_=!1)}(n);return S.wxa&<(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:b}},wb.prototype._doPaintEl=function(t,e,n,i,o,r){var a,s=e.ctx;n?(a=t.getPaintRect(),(!i||a&&a.intersect(i))&&(Um(s,t,o,r),t.setPrevPaintRect(a))):Um(s,t,o,r)},wb.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=xb);var n=this._layers[t];return n||((n=new vb(\\\"zr_\\\"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?v(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&v(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},wb.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,o=i.length,r=this._domRoot,a=null,s=-1;if(!n[t]&&e&&(e.__builtin__||\\\"function\\\"==typeof e.resize&&\\\"function\\\"==typeof e.refresh)){if(0\u003Co&&t>i[0]){for(s=0;s\u003Co-1&&!(i[s]\u003Ct&&i[s+1]>t);s++);a=n[i[s]]}i.splice(s+1,0,t),(n[t]=e).virtual||(a?(n=a.dom).nextSibling?r.insertBefore(e.dom,n.nextSibling):r.appendChild(e.dom):r.firstChild?r.insertBefore(e.dom,r.firstChild):r.appendChild(e.dom)),e.__painter=this}},wb.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i\u003Cn.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},wb.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i\u003Cn.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},wb.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i\u003Cn.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},wb.prototype.getLayers=function(){return this._layers},wb.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n\u003Ct.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,o=null,r=0,a=0;a\u003Ct.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=l,r=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,r=1):u=this.getLayer(l+(0\u003Cr?.01:0),this._needsManuallyCompositing),u.__builtin__||ot(\\\"ZLevel \\\"+l+\\\" has been used by unkown layer \\\"+u.id),u!==o&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex\u003C0&&(u.__drawIndex=a)}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&0\u003Ct.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex\u003C0&&(t.__drawIndex=t.__startIndex)})},wb.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},wb.prototype._clearLayer=function(t){t.clear()},wb.prototype.setBackgroundColor=function(t){this._backgroundColor=t,lt(this._layers,function(t){t.setUnpainted()})},wb.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?v(n[t],e,!0):n[t]=e;for(var i=0;i\u003Cthis._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||v(this._layers[o],n[t],!0)}}},wb.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(G(n,t),1))},wb.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display=\\\"none\\\",this._opts),o=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Dm(o,0,i),e=Dm(o,1,i),n.style.display=\\\"\\\",this._width!==t||e!==this._height){for(var r in n.style.width=t+\\\"px\\\",n.style.height=e+\\\"px\\\",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(xb).resize(t,e)}return this},wb.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},wb.prototype.dispose=function(){this.root.innerHTML=\\\"\\\",this.root=this.storage=this._domRoot=this._layers=null},wb.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new vb(\\\"image\\\",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio\u003C=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s\u003Cl;s++){var u=a[s];Um(n,u,r,s===l-1)}return e.dom},wb.prototype.getWidth=function(){return this._width},wb.prototype.getHeight=function(){return this._height};var bb=wb;function wb(t,e,n,i){this.type=\\\"canvas\\\",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=\\\"canvas\\\";var o,r,a=!t.nodeName||\\\"CANVAS\\\"===t.nodeName.toUpperCase(),s=(this._opts=n=Z({},n||{}),this.dpr=n.devicePixelRatio||$i,this._singleCanvas=a,(this.root=t).style&&(Nt(t),t.innerHTML=\\\"\\\"),this.storage=e,this._zlevelList),l=(this._prevDisplayList=[],this._layers);a?(o=(a=t).width,r=a.height,null!=n.width&&(o=n.width),null!=n.height&&(r=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=r*this.dpr,this._width=o,this._height=r,(o=new vb(a,this,this.dpr)).__builtin__=!0,o.initContext(),(l[314159]=o).zlevel=xb,s.push(xb),this._domRoot=t):(this._width=Dm(t,0,n),this._height=Dm(t,1,n),a=this._domRoot=(e=this._width,n=this._height,(r=document.createElement(\\\"div\\\")).style.cssText=[\\\"position:relative\\\",\\\"width:\\\"+e+\\\"px\\\",\\\"height:\\\"+n+\\\"px\\\",\\\"padding:0\\\",\\\"margin:0\\\",\\\"border-width:0\\\"].join(\\\";\\\")+\\\";\\\",r),t.appendChild(a))}u(Ib,Sb=ry),Ib.prototype.getInitialData=function(t){return jv(null,this,{useEncodeDefaulter:!0})},Ib.prototype.getLegendIcon=function(t){var e=new K,n=Sm(\\\"line\\\",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual(\\\"symbol\\\")),i=this.getData().getVisual(\\\"symbolRotate\\\"),n=\\\"none\\\"===n?\\\"circle\\\":n,o=.8*t.itemHeight,o=Sm(n,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),i=(e.add(o),o.setStyle(t.itemStyle),\\\"inherit\\\"===t.iconRotate?i:t.iconRotate||0);return o.rotation=i*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1\u003Cn.indexOf(\\\"empty\\\")&&(o.style.stroke=o.style.fill,o.style.fill=\\\"#fff\\\",o.style.lineWidth=2),e},Ib.type=\\\"series.line\\\",Ib.dependencies=[\\\"grid\\\",\\\"polar\\\"],Ib.defaultOption={z:3,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,clip:!0,label:{position:\\\"top\\\"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:\\\"solid\\\"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:\\\"emptyCircle\\\",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:\\\"auto\\\",connectNulls:!1,sampling:\\\"none\\\",animationEasing:\\\"linear\\\",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:\\\"clone\\\"},triggerLineEvent:!1};var Sb,Mb=Ib;function Ib(){var t=null!==Sb&&Sb.apply(this,arguments)||this;return t.type=Ib.type,t.hasSymbolVisual=!0,t}function Tb(t,e){var n,i=t.mapDimensionsAll(\\\"defaultedLabel\\\"),o=i.length;if(1===o)return null!=(n=Yf(t,e,i[0]))?n+\\\"\\\":null;if(o){for(var r=[],a=0;a\u003Ci.length;a++)r.push(Yf(t,e,i[a]));return r.join(\\\" \\\")}}function Cb(t,e){var n=t.mapDimensionsAll(\\\"defaultedLabel\\\");if(!U(e))return e+\\\"\\\";for(var i=[],o=0;o\u003Cn.length;o++){var r=t.getDimensionIndex(n[o]);0\u003C=r&&i.push(e[r])}return i.join(\\\" \\\")}u(kb,Db=K),kb.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();var r=Sm(t,-1,-1,2,2,null,o);r.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),r.drift=Lb,this._symbolType=t,this.add(r)},kb.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},kb.prototype.getSymbolType=function(){return this._symbolType},kb.prototype.getSymbolPath=function(){return this.childAt(0)},kb.prototype.highlight=function(){Rl(this.childAt(0))},kb.prototype.downplay=function(){Nl(this.childAt(0))},kb.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},kb.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?\\\"move\\\":e.cursor},kb.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\",l=t.hostModel,u=kb.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,\\\"symbolKeepAspect\\\"),this._createSymbol(s,t,e,u,o)):((a=this.childAt(0)).silent=!1,r={scaleX:u[0]/2,scaleY:u[1]/2},c?a.attr(r):k(a,r,l,e),qh(a)),this._updateCommon(t,e,u,n,i),h&&(a=this.childAt(0),c||(r={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:a.style.opacity}},a.scaleX=a.scaleY=0,a.style.opacity=0,Yh(a,r,l,e))),c&&this.childAt(0).stopAnimation(\\\"leave\\\")},kb.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,m=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(r=(g=(y=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel(\\\"emphasis\\\")).getModel(\\\"itemStyle\\\").getItemStyle(),a=y.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),s=y.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),l=g.get(\\\"focus\\\"),u=g.get(\\\"blurScope\\\"),h=g.get(\\\"disabled\\\"),c=Cc(y),p=g.getShallow(\\\"scale\\\"),m=y.getShallow(\\\"cursor\\\")),e.getItemVisual(t,\\\"symbolRotate\\\")),y=(d.attr(\\\"rotation\\\",(g||0)*Math.PI/180||0),Im(e.getItemVisual(t,\\\"symbolOffset\\\"),n)),g=(y&&(d.x=y[0],d.y=y[1]),m&&d.attr(\\\"cursor\\\",m),e.getItemVisual(t,\\\"style\\\")),y=g.fill,m=(d instanceof Ps?(m=d.style,d.useStyle(Z({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},g))):(d.__isEmptyBrush?d.useStyle(Z({},g)):d.useStyle(g),d.style.decal=null,d.setColor(y,o&&o.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,\\\"liftZ\\\")),v=this._z2,x=(null!=m?null==v&&(this._z2=d.z2,d.z2+=m):null!=v&&(d.z2=v,this._z2=null),o&&o.useNameLabel),m=(Tc(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return x?e.getName(t):Tb(e,t)},inheritColor:y,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,d.ensureState(\\\"emphasis\\\"));m.style=r,d.ensureState(\\\"select\\\").style=a,d.ensureState(\\\"blur\\\").style=s,p&&(v=Math.max(j(p)?p:1.1,3/this._sizeY),m.scaleX=this._sizeX*v,m.scaleY=this._sizeY*v),this.setSymbolScale(1),Zl(this,l,u,h)},kb.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},kb.prototype.fadeOut=function(t,e,n){var i,o=this.childAt(0),r=$(this).dataIndex,a=n&&n.animation;this.silent=o.silent=!0,n&&n.fadeLabel?(i=o.getTextContent())&&Xh(i,{style:{opacity:0}},e,{dataIndex:r,removeOpt:a,cb:function(){o.removeTextContent()}}):o.removeTextContent(),Xh(o,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:a})},kb.getSymbolSize=function(t,e){return Mm(t.getItemVisual(e,\\\"symbolSize\\\"))};var Db,Ab=kb;function kb(t,e,n,i){var o=Db.call(this)||this;return o.updateData(t,e,n,i),o}function Lb(t,e){this.parent.drift(t,e)}function Pb(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&\\\"none\\\"!==t.getItemVisual(n,\\\"symbol\\\")}function Ob(t){return(t=null==t||R(t)?t:{isIgnore:t})||{}}function Rb(t){var e=t.hostModel,n=e.getModel(\\\"emphasis\\\");return{emphasisItemStyle:n.getModel(\\\"itemStyle\\\").getItemStyle(),blurItemStyle:e.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),selectItemStyle:e.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),focus:n.get(\\\"focus\\\"),blurScope:n.get(\\\"blurScope\\\"),emphasisDisabled:n.get(\\\"disabled\\\"),hoverScale:n.get(\\\"scale\\\"),labelStatesModels:Cc(e),cursorStyle:e.get(\\\"cursor\\\")}}Eb.prototype.updateData=function(a,s){this._progressiveEls=null,s=Ob(s);var l=this.group,u=a.hostModel,h=this._data,c=this._SymbolCtor,p=s.disableAnimation,d=Rb(a),f={disableAnimation:p},g=s.getSymbolPoint||function(t){return a.getItemLayout(t)};h||l.removeAll(),a.diff(h).add(function(t){var e,n=g(t);Pb(a,n,t,s)&&((e=new c(a,t,d,f)).setPosition(n),a.setItemGraphicEl(t,e),l.add(e))}).update(function(t,e){var n,i,o=h.getItemGraphicEl(e),r=g(t);Pb(a,r,t,s)?(n=a.getItemVisual(t,\\\"symbol\\\")||\\\"circle\\\",i=o&&o.getSymbolType&&o.getSymbolType(),!o||i&&i!==n?(l.remove(o),(o=new c(a,t,d,f)).setPosition(r)):(o.updateData(a,t,d,f),i={x:r[0],y:r[1]},p?o.attr(i):k(o,i,u)),l.add(o),a.setItemGraphicEl(t,o)):l.remove(o)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&e.fadeOut(function(){l.remove(e)},u)}).execute(),this._getSymbolPoint=g,this._data=a},Eb.prototype.updateLayout=function(){var i=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){var n=i._getSymbolPoint(e);t.setPosition(n),t.markRedraw()})},Eb.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Rb(t),this._data=null,this.group.removeAll()},Eb.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}this._progressiveEls=[],n=Ob(n);for(var o=t.start;o\u003Ct.end;o++){var r,a=e.getItemLayout(o);Pb(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},Eb.prototype.eachRendered=function(t){bc(this._progressiveEls||this.group,t)},Eb.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var Nb=Eb;function Eb(t){this.group=new K,this._SymbolCtor=t||Ab}function zb(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=(n=n,a=0,r=o.scale.getExtent(),\\\"start\\\"===n?a=r[0]:\\\"end\\\"===n?a=r[1]:j(n)&&!isNaN(n)?a=n:0\u003Cr[0]?a=r[0]:r[1]\u003C0&&(a=r[1]),a),a=i.dim,i=o.dim,o=e.mapDimension(i),s=e.mapDimension(a),l=\\\"x\\\"===i||\\\"radius\\\"===i?1:0,u=Y(t.dimensions,function(t){return e.mapDimension(t)}),h=!1,c=e.getCalculationInfo(\\\"stackResultDimension\\\");return Xv(e,u[0])&&(h=!0,u[0]=c),Xv(e,u[1])&&(h=!0,u[1]=c),{dataDimsForPoint:u,valueStart:r,valueAxisDim:i,baseAxisDim:a,stacked:!!h,valueDim:o,baseDim:s,baseDataOffset:l,stackedOverDimension:e.getCalculationInfo(\\\"stackedOverDimension\\\")}}function Vb(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo(\\\"stackedOverDimension\\\"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var Bb=Math.min,Fb=Math.max;function Gb(t,e){return isNaN(t)||isNaN(e)}function Wb(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d=n,f=0;f\u003Ci;f++){var g=e[2*d],y=e[2*d+1];if(o\u003C=d||d\u003C0)break;if(Gb(g,y)){if(l){d+=r;continue}break}if(d===n)t[0\u003Cr?\\\"moveTo\\\":\\\"lineTo\\\"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v\u003C.5){d+=r;continue}if(0\u003Ca){for(var x=d+r,_=e[2*x],b=e[2*x+1];_===g&&b===y&&f\u003Ci;)f++,d+=r,_=e[2*(x+=r)],b=e[2*x+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;Gb(_,b)&&w\u003Ci;)w++,_=e[2*(x+=r)],b=e[2*x+1];var S,M,I,T,C,D,A,k,L,m=0,v=0,P=void 0,O=void 0;i\u003C=w||Gb(_,b)?(A=g,k=y):(m=_-u,v=b-h,S=g-u,M=_-g,I=y-h,T=b-y,D=C=void 0,O=\\\"x\\\"===s?(A=g-(L=0\u003Cm?1:-1)*(C=Math.abs(S))*a,k=y,P=g+L*(D=Math.abs(M))*a,y):\\\"y\\\"===s?(A=g,k=y-(L=0\u003Cv?1:-1)*(C=Math.abs(I))*a,P=g,y+L*(D=Math.abs(T))*a):(C=Math.sqrt(S*S+I*I),A=g-m*a*(1-(S=(D=Math.sqrt(M*M+T*T))/(D+C))),k=y-v*a*(1-S),O=y+v*a*S,P=Bb(P=g+m*a*S,Fb(_,g)),O=Bb(O,Fb(b,y)),P=Fb(P,Bb(_,g)),k=y-(v=(O=Fb(O,Bb(b,y)))-y)*C/D,A=Bb(A=g-(m=P-g)*C/D,Fb(u,g)),k=Bb(k,Fb(h,y)),P=g+(m=g-(A=Fb(A,Bb(u,g))))*D/C,y+(v=y-(k=Fb(k,Bb(h,y))))*D/C)),t.bezierCurveTo(c,p,A,k,g,y),c=P,p=O}else t.lineTo(g,y)}u=g,h=y,d+=r}return f}var Hb,Yb,Ub,Xb=function(){this.smooth=0,this.smoothConstraint=!0},Zb=(u(Jb,Ub=Q),Jb.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},Jb.prototype.getDefaultShape=function(){return new Xb},Jb.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0\u003Co&&Gb(n[2*o-2],n[2*o-1]);o--);for(;i\u003Co&&Gb(n[2*i],n[2*i+1]);i++);}for(;i\u003Co;)i+=Wb(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Jb.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=ss.CMD,a=\\\"x\\\"===e,s=[],l=0;l\u003Co.length;){var u,h=void 0,c=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var p,h=o[l++],c=o[l++];if((u=a?(t-n)/(h-n):(t-i)/(c-i))\u003C=1&&0\u003C=u)return p=a?(c-i)*u+i:(h-n)*u+n,a?[t,p]:[p,t];n=h,i=c;break;case r.C:h=o[l++],c=o[l++];var d=o[l++],f=o[l++],g=o[l++],y=o[l++],m=a?pn(n,h,d,g,t,s):pn(i,c,f,y,t,s);if(0\u003Cm)for(var v=0;v\u003Cm;v++){var x=s[v];if(x\u003C=1&&0\u003C=x)return p=a?hn(i,c,f,y,x):hn(n,h,d,g,x),a?[t,p]:[p,t]}n=g,i=y}}},Jb),jb=(u($b,Yb=Xb),$b),qb=(u(Kb,Hb=Q),Kb.prototype.getDefaultShape=function(){return new jb},Kb.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0\u003Cr&&Gb(n[2*r-2],n[2*r-1]);r--);for(;o\u003Cr&&Gb(n[2*o],n[2*o+1]);o++);}for(;o\u003Cr;){var s=Wb(t,n,o,r,r,1,e.smooth,a,e.connectNulls);Wb(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},Kb);function Kb(t){var e=Hb.call(this,t)||this;return e.type=\\\"ec-polygon\\\",e}function $b(){return null!==Yb&&Yb.apply(this,arguments)||this}function Jb(t){var e=Ub.call(this,t)||this;return e.type=\\\"ec-polyline\\\",e}function Qb(t,e,n,i,o){var r,a=t.getArea(),s=a.x,l=a.y,u=a.width,a=a.height,h=n.get([\\\"lineStyle\\\",\\\"width\\\"])||2,c=(s-=h/2,l-=h/2,u+=h,a+=h,s=Math.floor(s),u=Math.round(u),new E({shape:{x:s,y:l,width:u,height:a}}));return e&&(r=(h=t.getBaseAxis()).isHorizontal(),h=h.inverse,r?(h&&(c.shape.x+=u),c.shape.width=0):(h||(c.shape.y+=a),c.shape.height=0),r=A(o)?function(t){o(t,c)}:null,Yh(c,{shape:{width:u,height:a,x:s,y:l}},n,null,i,r)),c}function tw(t,e,n){var i=t.getArea(),o=or(i.r0,1),r=or(i.r,1),a=new Xu({shape:{cx:or(t.cx,1),cy:or(t.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&(\\\"angle\\\"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,Yh(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function ew(t,e,n,i,o){return t?\\\"polar\\\"===t.type?tw(t,e,n):\\\"cartesian2d\\\"===t.type?Qb(t,e,n,i,o):null:null}function nw(t,e){return t.type===e}function iw(t,e){if(t.length===e.length){for(var n=0;n\u003Ct.length;n++)if(t[n]!==e[n])return;return 1}}function ow(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r\u003Ct.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function rw(t,e){var n=ow(t),i=n[0],n=n[1],o=ow(e),r=o[0],o=o[1];return Math.max(Math.abs(i[0]-r[0]),Math.abs(i[1]-r[1]),Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]))}function aw(t){return j(t)?t:t?.5:0}function sw(t,e,n,i){var o=e.getBaseAxis(),r=\\\"x\\\"===o.dim||\\\"radius\\\"===o.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s\u003Ct.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||c.push(t[s],t[s+1]);t=c}for(s=0;s\u003Ct.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case\\\"end\\\":l[r]=h[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case\\\"middle\\\":var p=[];l[r]=p[r]=(u[r]+h[r])/2,l[1-r]=u[1-r],p[1-r]=h[1-r],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[r]=u[r],l[1-r]=h[1-r],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function lw(t,e){return[t[2*e],t[2*e+1]]}function uw(t){if(t.get([\\\"endLabel\\\",\\\"show\\\"]))return 1;for(var e=0;e\u003Cul.length;e++)if(t.get([ul[e],\\\"endLabel\\\",\\\"show\\\"]))return 1}function hw(n,i,e,t){var o,r,a,s,l,u,h,c,p;return nw(i,\\\"cartesian2d\\\")?(o=t.getModel(\\\"endLabel\\\"),r=o.get(\\\"valueAnimation\\\"),a=t.getData(),s={lastFrameIndex:0},l=uw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,u=i.getBaseAxis().isHorizontal(),h=Qb(i,e,t,function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l),t.get(\\\"clip\\\",!0)||(c=h.shape,p=Math.max(c.width,c.height),u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)),l&&l(1,h),h):tw(i,e,t)}u(dw,cw=xy),dw.prototype.init=function(){var t=new K,e=new Nb;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},dw.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,r=this.group,a=t.getData(),s=t.getModel(\\\"lineStyle\\\"),l=t.getModel(\\\"areaStyle\\\"),u=a.getLayout(\\\"points\\\")||[],h=\\\"polar\\\"===o.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,y=t.get(\\\"animation\\\"),m=!l.isEmpty(),v=l.get(\\\"origin\\\"),x=zb(o,a,v),x=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=m1(2*i),r=0;r\u003Ci;r++){var a=Vb(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,x),_=t.get(\\\"showSymbol\\\"),b=t.get(\\\"connectNulls\\\"),w=_&&!h&&function(t,e,n){var i=t.get(\\\"showAllSymbol\\\"),o=\\\"auto\\\"===i;if(!i||o){var r,a,s=n.getAxesByScale(\\\"ordinal\\\")[0];if(s&&(!o||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a\u003Co;a+=r)if(1.5*Ab.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(s,e)))return r=e.mapDimension(s.dim),a={},lt(s.getViewLabels(),function(t){var e=s.scale.getRawOrdinalNumber(t.tickValue);a[e]=1}),function(t){return!a.hasOwnProperty(e.get(r,t))}}}(t,a,o),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),_||p.remove(),r.add(g);var M=!h&&t.get(\\\"step\\\"),I=(o&&o.getArea&&t.get(\\\"clip\\\",!0)&&(null!=(T=o.getArea()).width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T,function(t,e,n){var i=t.getVisual(\\\"visualMeta\\\");if(i&&i.length&&t.count()&&\\\"cartesian2d\\\"===e.type){for(var o,r,a=i.length-1;0\u003C=a;a--){var s=t.getDimensionInfo(i[a].dimension);if(\\\"x\\\"===(o=s&&s.coordDim)||\\\"y\\\"===o){r=i[a];break}}if(r){var l=e.getAxis(o),u=Y(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=r.outerColors.slice(),p=(h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Xn((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s\u003Cr;s++){var l=t[s],u=l.coord;if(u\u003C0)n=l;else{if(e\u003Cu){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(u,\\\"x\\\"===o?n.getWidth():n.getHeight())),d=p.length;if(!d&&h)return u[0].coord\u003C0?c[1]||u[h-1].color:c[0]||u[0].color;var f=p[0].coord-10,h=p[d-1].coord+10,g=h-f;if(g\u003C.001)return\\\"transparent\\\";lt(p,function(t){t.offset=(t.coord-f)/g}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||\\\"transparent\\\"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||\\\"transparent\\\"});u=new Ch(0,0,0,0,p,!0);return u[o]=f,u[o+\\\"2\\\"]=h,u}}}(a,o,n)||a.getVisual(\\\"style\\\")[a.getVisual(\\\"drawType\\\")]),c=(d&&c.type===o.type&&M===this._step?(m&&!f?f=this._newPolygon(u,x):f&&!m&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,Up(I)),(c=g.getClipPath())?Yh(c,{shape:hw(this,o,!1,t).shape},t):g.setClipPath(hw(this,o,!0,t)),_&&p.updateData(a,{isIgnore:w,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),iw(this._stackedOnPoints,x)&&iw(this._points,u)||(y?this._doUpdateAnimation(a,x,o,n,M,v,b):(M&&(u=sw(u,o,M,b),x=x&&sw(x,o,M,b)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:x})))):(_&&p.updateData(a,{isIgnore:w,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,o,T),M&&(u=sw(u,o,M,b),x=x&&sw(x,o,M,b)),d=this._newPolyline(u),m&&(f=this._newPolygon(u,x)),h||this._initOrUpdateEndLabel(t,o,Up(I)),g.setClipPath(hw(this,o,!0,t))),t.getModel(\\\"emphasis\\\")),_=c.get(\\\"focus\\\"),w=c.get(\\\"blurScope\\\"),p=c.get(\\\"disabled\\\"),y=(d.useStyle(H(s.getLineStyle(),{fill:\\\"none\\\",stroke:I,lineJoin:\\\"bevel\\\"})),$l(d,t,\\\"lineStyle\\\"),0\u003Cd.style.lineWidth&&\\\"bolder\\\"===t.get([\\\"emphasis\\\",\\\"lineStyle\\\",\\\"width\\\"])&&(d.getState(\\\"emphasis\\\").style.lineWidth=+d.style.lineWidth+1),$(d).seriesIndex=t.seriesIndex,Zl(d,_,w,p),aw(t.get(\\\"smooth\\\"))),T=t.get(\\\"smoothMonotone\\\"),C=(d.setShape({smooth:y,smoothMonotone:T,connectNulls:b}),f&&(m=a.getCalculationInfo(\\\"stackedOnSeries\\\"),h=0,f.useStyle(H(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:\\\"bevel\\\",decal:a.getVisual(\\\"style\\\").decal})),m&&(h=aw(m.get(\\\"smooth\\\"))),f.setShape({smooth:y,stackedOnSmooth:h,smoothMonotone:T,connectNulls:b}),$l(f,t,\\\"areaStyle\\\"),$(f).seriesIndex=t.seriesIndex,Zl(f,_,w,p)),function(t){i._changePolyState(t)});a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=C)}),this._polyline.onHoverStateChange=C,this._data=a,this._coordSys=o,this._stackedOnPoints=x,this._points=u,this._step=M,this._valueOrigin=v,t.get(\\\"triggerLineEvent\\\")&&(this.packEventData(t,d),f)&&this.packEventData(t,f)},dw.prototype.packEventData=function(t,e){$(e).eventData={componentType:\\\"series\\\",componentSubType:\\\"line\\\",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:\\\"line\\\"}},dw.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Vr(o,i);if(this._changePolyState(\\\"emphasis\\\"),!(r instanceof Array)&&null!=r&&0\u003C=r){var a=o.getLayout(\\\"points\\\"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],a=a[2*r+1];if(isNaN(l)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,a))return;var u=t.get(\\\"zlevel\\\"),h=t.get(\\\"z\\\"),l=((s=new Ab(o,r)).x=l,s.y=a,s.setZ(u,h),s.getSymbolPath().getTextContent());l&&(l.zlevel=u,l.z=h,l.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else xy.prototype.highlight.call(this,t,e,n,i)},dw.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Vr(r,i);this._changePolyState(\\\"normal\\\"),null!=a&&0\u003C=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):xy.prototype.downplay.call(this,t,e,n,i)},dw.prototype._changePolyState=function(t){var e=this._polygon;Al(this._polyline,t),e&&Al(e,t)},dw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Zb({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},dw.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qb({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},dw.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse,e=(\\\"cartesian2d\\\"===l.type?(h=e.isHorizontal(),c=!1):\\\"polar\\\"===l.type&&(h=\\\"angle\\\"===e.dim,c=!0),t.hostModel),d=e.get(\\\"animationDuration\\\"),f=(A(d)&&(d=d(null)),e.get(\\\"animationDelay\\\")||0),g=A(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(o=[t.x,t.y],r=a=n=void 0,u&&(r=c?(i=u,o=l.pointToCoord(o),h?(n=i.startAngle,a=i.endAngle,-o[1]/180*Math.PI):(n=i.r0,a=i.r,o[0])):h?(n=u.x,a=u.x+u.width,t.x):(n=u.y+u.height,a=u.y,t.y)),i=a===n?0:(r-n)/(a-n),p&&(i=1-i),o=A(f)?f(e):d*i+g,a=(r=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:o}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:o}),r.disableLabelAnimation=!0)})},dw.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a,s=t.getModel(\\\"endLabel\\\");uw(t)?(i=t.getData(),o=this._polyline,(r=i.getLayout(\\\"points\\\"))?(this._endLabel||((this._endLabel=new z({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0\u003C=(r=function(t){for(var e,n,i=t.length/2;0\u003Ci&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(r))&&(Tc(o,Cc(t,\\\"endLabel\\\"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){return null!=n?Cb(i,n):Tb(i,t)},enableTextSetter:!0},(n=s,r=e.getBaseAxis(),s=r.isHorizontal(),r=r.inverse,a=s?r?\\\"right\\\":\\\"left\\\":\\\"center\\\",s=s?\\\"middle\\\":r?\\\"top\\\":\\\"bottom\\\",{normal:{align:n.get(\\\"align\\\")||a,verticalAlign:n.get(\\\"verticalAlign\\\")||s}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},dw.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f,g,y,m,v,x,_=this._endLabel,b=this._polyline;_&&(t\u003C1&&null==i.originalX&&(i.originalX=_.x,i.originalY=_.y),s=n.getLayout(\\\"points\\\"),m=(l=n.hostModel).get(\\\"connectNulls\\\"),u=r.get(\\\"precision\\\"),c=r.get(\\\"distance\\\")||0,d=(g=a.getBaseAxis()).isHorizontal(),g=g.inverse,v=e.shape,v=g?d?v.x:v.y+v.height:d?v.x+v.width:v.y,h=(d?c:0)*(g?-1:1),c=(d?0:-c)*(g?-1:1),p=d?\\\"x\\\":\\\"y\\\",g=void 0,1\u003C=(y=(f=(d=function(t,e){for(var n,i,o=t.length/2,r=\\\"x\\\"==p?0:1,a=0,s=-1,l=0;l\u003Co;l++)if(i=t[2*l+r],!isNaN(i)&&!isNaN(t[2*l+1-r])){if(0!==l){if(n\u003C=e&&e\u003C=i||e\u003C=n&&i\u003C=e){s=l;break}a=l}n=i}return{range:[a,s],t:(e-n)/(i-n)}}(s,v)).range)[1]-f[0])?(1\u003Cy&&!m?(x=lw(s,f[0]),_.attr({x:x[0]+h,y:x[1]+c}),o&&(g=l.getRawValue(f[0]))):((x=b.getPointOn(v,p))&&_.attr({x:x[0]+h,y:x[1]+c}),y=l.getRawValue(f[0]),m=l.getRawValue(f[1]),o&&(g=Zr(n,u,y,m,d.t))),i.lastFrameIndex=f[0]):(x=lw(s,v=1===t||0\u003Ci.lastFrameIndex?f[0]:0),o&&(g=l.getRawValue(v)),_.attr({x:x[0]+h,y:x[1]+c})),o)&&Nc(_).setLabelText(g)},dw.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:\\\"+\\\",idx:t})}).update(function(t,e){a.push({cmd:\\\"=\\\",idx:e,idx1:t})}).remove(function(t){a.push({cmd:\\\"-\\\",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=zb(o,e,r),y=t.getLayout(\\\"points\\\")||[],m=e.getLayout(\\\"points\\\")||[],v=0;v\u003Cs.length;v++){var x=s[v],_=!0,b=void 0;switch(x.cmd){case\\\"=\\\":var w=2*x.idx,b=2*x.idx1,S=y[w],M=y[1+w],I=m[b],T=m[b+1];(isNaN(S)||isNaN(M))&&(S=I,M=T),l.push(S,M),u.push(I,T),h.push(n[w],n[1+w]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(x.idx1));break;case\\\"+\\\":S=x.idx,M=g.dataDimsForPoint,I=o.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),T=(b=2*S,l.push(I[0],I[1]),u.push(m[b],m[b+1]),Vb(g,o,e,S));h.push(T[0],T[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case\\\"-\\\":_=!1}_&&(p.push(x),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var C=l.length,D=m1(C),A=m1(C),k=m1(C),L=m1(C),P=[],v=0;v\u003Cd.length;v++){var O=d[v],R=2*v,N=2*O;D[R]=l[N],D[1+R]=l[1+N],A[R]=u[N],A[1+R]=u[1+N],k[R]=h[N],k[1+R]=h[1+N],L[R]=c[N],L[1+R]=c[1+N],P[v]=p[O]}return{current:D,next:A,stackedOnCurrent:k,stackedOnNext:L,status:P}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),c=h.current,p=h.stackedOnCurrent,d=h.next,f=h.stackedOnNext;if(o&&(c=sw(h.current,n,o,a),p=sw(h.stackedOnCurrent,n,o,a),d=sw(h.next,n,o,a),f=sw(h.stackedOnNext,n,o,a)),3e3\u003Crw(c,d)||l&&3e3\u003Crw(p,f))s.stopAnimation(),s.setShape({points:d}),l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f}));else{s.shape.__points=h.current,s.shape.points=c;d={shape:{points:d}};h.current!==c&&(d.shape.__points=h.next),s.stopAnimation(),k(s,d,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),k(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points);for(var g,y=[],m=h.status,v=0;v\u003Cm.length;v++)\\\"=\\\"===m[v].cmd&&(g=t.getItemGraphicEl(m[v].idx1))&&y.push({el:g,ptIdx:v});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e\u003Cy.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},dw.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},dw.type=\\\"line\\\";var cw,pw=dw;function dw(){return null!==cw&&cw.apply(this,arguments)||this}function fw(t,o){return{seriesType:t,plan:yy(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,i=t.pipelineContext,g=o||i.large;if(f)return i=Y(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=i.length,e=n.getCalculationInfo(\\\"stackResultDimension\\\"),Xv(n,i[0])&&(i[0]=e),Xv(n,i[1])&&(i[1]=e),c=n.getStore(),p=n.getDimensionIndex(i[0]),d=n.getDimensionIndex(i[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&m1(n*h),o=[],r=[],a=t.start,s=0;a\u003Ct.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,r)):(o[0]=c.get(p,a),o[1]=c.get(d,a),f.dataToPoint(o,null,r)),g?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout(\\\"points\\\",i)}}}}}var gw={average:function(t){for(var e=0,n=0,i=0;i\u003Ct.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n\u003Ct.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n\u003Ct.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n\u003Ct.length;n++)t[n]\u003Ce&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},yw=function(t){return Math.round(t.length/2)};function mw(t){return{seriesType:t,reset:function(t,e,n){var i,o,r=t.getData(),a=t.get(\\\"sampling\\\"),s=t.coordinateSystem,l=r.count();10\u003Cl&&\\\"cartesian2d\\\"===s.type&&a&&(i=s.getBaseAxis(),s=s.getOtherAxis(i),i=i.getExtent(),o=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(o||1),o=Math.round(l/i),isFinite(o))&&1\u003Co&&(\\\"lttb\\\"===a&&t.setData(r.lttbDownSample(r.mapDimension(s.dim),1/o)),l=void 0,X(a)?l=gw[a]:A(a)&&(l=a),l)&&t.setData(r.downSample(r.mapDimension(s.dim),1/o,l,yw))}}}u(xw,vw=ry),xw.prototype.getInitialData=function(t,e){return jv(null,this,{useEncodeDefaulter:!0})},xw.prototype.getMarkerPosition=function(t){var e,n,i,o=this.coordinateSystem;return o&&o.clampData?(e=o.dataToPoint(o.clampData(t)),n=(i=this.getData()).getLayout(\\\"offset\\\"),i=i.getLayout(\\\"size\\\"),e[o.getBaseAxis().isHorizontal()?0:1]+=n+i/2,e):[NaN,NaN]},xw.type=\\\"series.__base_bar__\\\",xw.defaultOption={z:2,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\\\"mod\\\"};var vw,ym=xw;function xw(){var t=null!==vw&&vw.apply(this,arguments)||this;return t.type=xw.type,t}ry.registerClass(ym);u(Tw,bw=ym),Tw.prototype.getInitialData=function(){return jv(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(\\\"realtimeSort\\\",!0)||null})},Tw.prototype.getProgressive=function(){return!!this.get(\\\"large\\\")&&this.get(\\\"progressive\\\")},Tw.prototype.getProgressiveThreshold=function(){var t=this.get(\\\"progressiveThreshold\\\"),e=this.get(\\\"largeThreshold\\\");return t=t\u003Ce?e:t},Tw.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Tw.type=\\\"series.bar\\\",Tw.dependencies=[\\\"grid\\\",\\\"polar\\\"],Tw.defaultOption=np(ym.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:\\\"rgba(180, 180, 180, 0.2)\\\",borderColor:null,borderWidth:0,borderType:\\\"solid\\\",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:\\\"#212121\\\"}},realtimeSort:!1});var _w,bw,ww=Tw,Sw=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Mw=(u(Iw,_w=Q),Iw.prototype.getDefaultShape=function(){return new Sw},Iw.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-l\u003Cc:l-u\u003Cc,c=(p||(l=u-(h?c:-c)),Math.cos(l)),d=Math.sin(l),f=Math.cos(u),g=Math.sin(u);p?(t.moveTo(c*o+n,d*o+i),t.arc(c*s+n,d*s+i,a,-Math.PI+l,l,!h)):t.moveTo(c*r+n,d*r+i),t.arc(n,i,r,l,u,!h),t.arc(f*s+n,g*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==o&&t.arc(n,i,o,u,l,h)},Iw);function Iw(t){var e=_w.call(this,t)||this;return e.type=\\\"sausage\\\",e}function Tw(){var t=null!==bw&&bw.apply(this,arguments)||this;return t.type=Tw.type,t}function Cw(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Dw(t,e,n){return e*Math.cos(t)*(n?1:-1)}var Aw,kw=Math.max,Lw=Math.min,Pw=(u(Nw,Aw=xy),Nw.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get(\\\"coordinateSystem\\\");\\\"cartesian2d\\\"!==o&&\\\"polar\\\"!==o||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},Nw.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},Nw.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},Nw.prototype.eachRendered=function(t){bc(this._progressiveEls||this.group,t)},Nw.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},Nw.prototype._renderNormal=function(s,t,e,n){var l,i,o,r,a,u=this.group,h=s.getData(),c=this._data,p=s.coordinateSystem,d=p.getBaseAxis(),f=(\\\"cartesian2d\\\"===p.type?l=d.isHorizontal():\\\"polar\\\"===p.type&&(l=\\\"angle\\\"===d.dim),s.isAnimationEnabled()?s:null),g=function(t){var e=s.get(\\\"realtimeSort\\\",!0),n=t.getBaseAxis();if(e&&\\\"category\\\"===n.type&&\\\"cartesian2d\\\"===t.type)return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}(p),y=(g&&this._enableRealtimeSort(g,h,e),s.get(\\\"clip\\\",!0)||g),m=(e=h,a=(i=p).getArea&&i.getArea(),!nw(i,\\\"cartesian2d\\\")||\\\"category\\\"===(o=i.getBaseAxis()).type&&o.onBand||(r=e.getLayout(\\\"bandWidth\\\"),o.isHorizontal()?(a.x-=r,a.width+=2*r):(a.y-=r,a.height+=2*r)),a),v=(u.removeClipPath(),s.get(\\\"roundCap\\\",!0)),x=s.get(\\\"showBackground\\\",!0),_=s.getModel(\\\"backgroundStyle\\\"),b=_.get(\\\"borderRadius\\\")||0,w=[],S=this._backgroundEls,M=n&&n.isInitSort,I=n&&\\\"changeAxisOrder\\\"===n.type;function T(t){var e,n=Gw[p.type](h,t),n=(e=l,new(\\\"polar\\\"===p.type?Xu:E)({shape:Kw(e,n,p),silent:!0,z2:0}));return n.useStyle(_.getItemStyle()),\\\"cartesian2d\\\"===p.type&&n.setShape(\\\"r\\\",b),w[t]=n}h.diff(c).add(function(t){var e,n,i=h.getItemModel(t),o=Gw[p.type](h,t,i);x&&T(t),h.hasValue(t)&&Fw[p.type](o)&&(e=!1,y&&(e=Ow[p.type](m,o)),n=Rw[p.type](s,h,t,o,l,f,d.model,!1,v),g&&(n.forceLabelAnimation=!0),Hw(n,h,t,i,o,s,l,\\\"polar\\\"===p.type),M?n.attr({shape:o}):g?Ew(g,f,n,o,t,l,!1,!1):Yh(n,{shape:o},s,t),h.setItemGraphicEl(t,n),u.add(n),n.ignore=e)}).update(function(t,e){var n,i,o=h.getItemModel(t),r=Gw[p.type](h,t,o),a=(x&&(a=void 0,0===S.length?a=T(e):((a=S[e]).useStyle(_.getItemStyle()),\\\"cartesian2d\\\"===p.type&&a.setShape(\\\"r\\\",b),w[t]=a),n=Gw[p.type](h,t),k(a,{shape:Kw(l,n,p)},f,t)),c.getItemGraphicEl(e));h.hasValue(t)&&Fw[p.type](r)?(n=!1,y&&(n=Ow[p.type](m,r))&&u.remove(a),a?qh(a):a=Rw[p.type](s,h,t,r,l,f,d.model,!!a,v),g&&(a.forceLabelAnimation=!0),I?(i=a.getTextContent())&&null!=(i=Nc(i)).prevValue&&(i.prevValue=i.value):Hw(a,h,t,o,r,s,l,\\\"polar\\\"===p.type),M?a.attr({shape:r}):g?Ew(g,f,a,r,t,l,!0,I):k(a,{shape:r},s,t,null),h.setItemGraphicEl(t,a),a.ignore=n,u.add(a)):u.remove(a)}).remove(function(t){var e=c.getItemGraphicEl(t);e&&jh(e,s,t)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new K);C.removeAll();for(var D=0;D\u003Cw.length;++D)C.add(w[D]);u.add(C),this._backgroundEls=w,this._data=h},Nw.prototype._renderLarge=function(t,e,n){this._clear(),jw(t,this.group),this._updateLargeClip(t)},Nw.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),jw(e,this.group,this._progressiveEls,!0)},Nw.prototype._updateLargeClip=function(t){var e=t.get(\\\"clip\\\",!0)&&ew(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},Nw.prototype._enableRealtimeSort=function(t,n,e){var i,o,r=this;n.count()&&(i=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(n,t,e),this._isFirstFrame=!1):(o=function(t){var e=n.getItemGraphicEl(t),e=e&&e.shape;return e&&Math.abs(i.isHorizontal()?e.height:e.width)||0},this._onRendered=function(){r._updateSortWithinSameData(n,o,i,e)},e.getZr().on(\\\"rendered\\\",this._onRendered)))},Nw.prototype._dataSort=function(t,e,i){var o=[];return t.each(t.mapDimension(e.dim),function(t,e){var n=null==(n=i(e))?NaN:n;o.push({dataIndex:e,mappedValue:n,ordinalNumber:t})}),o.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:Y(o,function(t){return t.ordinalNumber})}},Nw.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a\u003Cs;++a){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(a)),l=l\u003C0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(r\u003Cl)return!0;r=l}return!1},Nw.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),o=Math.max(0,i[0]),r=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o\u003C=r;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},Nw.prototype._updateSortWithinSameData=function(t,e,n,i){var o;this._isOrderChangedWithinSameData(t,e,n)&&(o=this._dataSort(t,n,e),this._isOrderDifferentInView(o,n))&&(this._removeOnRenderedListener(i),i.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:n.dim+\\\"Axis\\\",axisId:n.index,sortInfo:o}))},Nw.prototype._dispatchInitSort=function(e,n,t){var i=n.baseAxis,o=this._dataSort(e,i,function(t){return e.get(e.mapDimension(n.otherAxis.dim),t)});t.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:i.dim+\\\"Axis\\\",isInitSort:!0,axisId:i.index,sortInfo:o})},Nw.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},Nw.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},Nw.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off(\\\"rendered\\\",this._onRendered),this._onRendered=null)},Nw.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){jh(t,e,$(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},Nw.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},Nw.type=\\\"bar\\\",Nw),Ow={cartesian2d:function(t,e){var n=e.width\u003C0?-1:1,i=e.height\u003C0?-1:1,o=(n\u003C0&&(e.x+=e.width,e.width=-e.width),i\u003C0&&(e.y+=e.height,e.height=-e.height),t.x+t.width),r=t.y+t.height,a=kw(e.x,t.x),s=Lw(e.x+e.width,o),l=kw(e.y,t.y),u=Lw(e.y+e.height,r),h=s\u003Ca,c=u\u003Cl;return e.x=h&&o\u003Ca?s:a,e.y=c&&r\u003Cl?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n\u003C0&&(e.x+=e.width,e.width=-e.width),i\u003C0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n,i=e.r0\u003C=e.r?1:-1,o=(i\u003C0&&(n=e.r,e.r=e.r0,e.r0=n),Lw(e.r,t.r)),r=kw(e.r0,t.r0),o=(e.r=o)-(e.r0=r)\u003C0;return i\u003C0&&(n=e.r,e.r=e.r0,e.r0=n),o}},Rw={cartesian2d:function(t,e,n,i,o,r,a,s,l){var u=new E({shape:Z({},i),z2:1});return u.__dataIndex=n,u.name=\\\"item\\\",r&&(u.shape[o?\\\"height\\\":\\\"width\\\"]=0),u},polar:function(t,e,n,i,o,r,a,s,l){var u=!o&&l?Mw:Xu,h=new u({shape:i,z2:1});h.name=\\\"item\\\";var b,w,c=Ww(o);return h.calculateTextPosition=(b=c,w=u===Mw,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return zo(t,e,n);var i=b(i),o=null!=e.distance?e.distance:5,r=this.shape,a=r.cx,s=r.cy,l=r.r,u=r.r0,h=(l+u)/2,c=r.startAngle,p=r.endAngle,d=(c+p)/2,f=w?Math.abs(l-u)/2:0,g=Math.cos,y=Math.sin,m=a+l*g(c),v=s+l*y(c),x=\\\"left\\\",_=\\\"top\\\";switch(i){case\\\"startArc\\\":m=a+(u-o)*g(d),v=s+(u-o)*y(d),x=\\\"center\\\",_=\\\"top\\\";break;case\\\"insideStartArc\\\":m=a+(u+o)*g(d),v=s+(u+o)*y(d),x=\\\"center\\\",_=\\\"bottom\\\";break;case\\\"startAngle\\\":m=a+h*g(c)+Cw(c,o+f,!1),v=s+h*y(c)+Dw(c,o+f,!1),x=\\\"right\\\",_=\\\"middle\\\";break;case\\\"insideStartAngle\\\":m=a+h*g(c)+Cw(c,f-o,!1),v=s+h*y(c)+Dw(c,f-o,!1),x=\\\"left\\\",_=\\\"middle\\\";break;case\\\"middle\\\":m=a+h*g(d),v=s+h*y(d),x=\\\"center\\\",_=\\\"middle\\\";break;case\\\"endArc\\\":m=a+(l+o)*g(d),v=s+(l+o)*y(d),x=\\\"center\\\",_=\\\"bottom\\\";break;case\\\"insideEndArc\\\":m=a+(l-o)*g(d),v=s+(l-o)*y(d),x=\\\"center\\\",_=\\\"top\\\";break;case\\\"endAngle\\\":m=a+h*g(p)+Cw(p,o+f,!0),v=s+h*y(p)+Dw(p,o+f,!0),x=\\\"left\\\",_=\\\"middle\\\";break;case\\\"insideEndAngle\\\":m=a+h*g(p)+Cw(p,f-o,!0),v=s+h*y(p)+Dw(p,f-o,!0),x=\\\"right\\\",_=\\\"middle\\\";break;default:return zo(t,e,n)}return(t=t||{}).x=m,t.y=v,t.align=x,t.verticalAlign=_,t}),r&&(c={},h.shape[u=o?\\\"r\\\":\\\"endAngle\\\"]=o?0:i.startAngle,c[u]=i[u],(s?k:Yh)(h,{shape:c},r)),h}};function Nw(){var t=Aw.call(this)||this;return t.type=Nw.type,t._isFirstFrame=!0,t}function Ew(t,e,n,i,o,r,a,s){var l,u=r?(l={x:i.x,width:i.width},{y:i.y,height:i.height}):(l={y:i.y,height:i.height},{x:i.x,width:i.width});s||(a?k:Yh)(n,{shape:u},e,o,null),(a?k:Yh)(n,{shape:l},e?t.baseAxis.model:null,o)}function zw(t,e){for(var n=0;n\u003Ce.length;n++)if(!isFinite(t[e[n]]))return 1}var Vw=[\\\"x\\\",\\\"y\\\",\\\"width\\\",\\\"height\\\"],Bw=[\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"startAngle\\\",\\\"endAngle\\\"],Fw={cartesian2d:function(t){return!zw(t,Vw)},polar:function(t){return!zw(t,Bw)}},Gw={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),o=n&&(e=i,o=(t=n).get([\\\"itemStyle\\\",\\\"borderColor\\\"]))&&\\\"none\\\"!==o?(o=t.get([\\\"itemStyle\\\",\\\"borderWidth\\\"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height),Math.min(o,r,a)):0,r=0\u003Ci.width?1:-1,a=0\u003Ci.height?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function Ww(t){return e=t?\\\"Arc\\\":\\\"Angle\\\",function(t){switch(t){case\\\"start\\\":case\\\"insideStart\\\":case\\\"end\\\":case\\\"insideEnd\\\":return t+e;default:return t}};var e}function Hw(t,e,n,i,o,r,a,s){var l,u=e.getItemVisual(n,\\\"style\\\"),h=(s||t.setShape(\\\"r\\\",i.get([\\\"itemStyle\\\",\\\"borderRadius\\\"])||0),t.useStyle(u),i.getShallow(\\\"cursor\\\")),h=(h&&t.attr(\\\"cursor\\\",h),s?a?o.r>=o.r0?\\\"endArc\\\":\\\"startArc\\\":o.endAngle>=o.startAngle?\\\"endAngle\\\":\\\"startAngle\\\":a?0\u003C=o.height?\\\"bottom\\\":\\\"top\\\":0\u003C=o.width?\\\"right\\\":\\\"left\\\"),c=Cc(i),u=(Tc(t,c,{labelFetcher:r,labelDataIndex:n,defaultText:Tb(r.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:h}),t.getTextContent()),h=(s&&u&&(l=i.get([\\\"label\\\",\\\"position\\\"]),t.textConfig.inside=\\\"middle\\\"===l||null,function(t,e,n,i){if(j(i))t.setTextConfig({rotation:i});else if(U(e))t.setTextConfig({rotation:0});else{var o,r=t.shape,a=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(a+s)/2,r=n(e);switch(r){case\\\"startArc\\\":case\\\"insideStartArc\\\":case\\\"middle\\\":case\\\"insideEndArc\\\":case\\\"endArc\\\":o=l;break;case\\\"startAngle\\\":case\\\"insideStartAngle\\\":o=a;break;case\\\"endAngle\\\":case\\\"insideEndAngle\\\":o=s;break;default:return t.setTextConfig({rotation:0})}var u=1.5*Math.PI-o;\\\"middle\\\"===r&&u>Math.PI/2&&u\u003C1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}(t,\\\"outside\\\"===l?h:l,Ww(a),i.get([\\\"label\\\",\\\"rotate\\\"]))),Ec(u,c,r.getRawValue(n),function(t){return Cb(e,t)}),i.getModel([\\\"emphasis\\\"]));Zl(t,h.get(\\\"focus\\\"),h.get(\\\"blurScope\\\"),h.get(\\\"disabled\\\")),$l(t,i),null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill=\\\"none\\\",t.style.stroke=\\\"none\\\",lt(t.states,function(t){t.style&&(t.style.fill=t.style.stroke=\\\"none\\\")}))}var Yw,Uw=function(){},Xw=(u(Zw,Yw=Q),Zw.prototype.getDefaultShape=function(){return new Uw},Zw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l\u003Cn.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],t.rect(r[0],r[1],a[0],a[1])},Zw);function Zw(t){var e=Yw.call(this,t)||this;return e.type=\\\"largeBar\\\",e}function jw(t,e,n,i){var o=t.getData(),r=o.getLayout(\\\"valueAxisHorizontal\\\")?1:0,a=o.getLayout(\\\"largeDataIndices\\\"),s=o.getLayout(\\\"size\\\"),l=t.getModel(\\\"backgroundStyle\\\"),u=o.getLayout(\\\"largeBackgroundPoints\\\"),l=(u&&((u=new Xw({shape:{points:u},incremental:!!i,silent:!0,z2:0})).baseDimIdx=r,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n)&&n.push(u),new Xw({shape:{points:o.getLayout(\\\"largePoints\\\")},incremental:!!i,z2:1}));l.baseDimIdx=r,l.largeDataIndices=a,l.barWidth=s,e.add(l),l.useStyle(o.getVisual(\\\"style\\\")),$(l).seriesIndex=t.seriesIndex,t.get(\\\"silent\\\")||(l.on(\\\"mousedown\\\",qw),l.on(\\\"mousemove\\\",qw)),n&&n.push(l)}var qw=Ay(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,o=1-i,r=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=r.length/3;h\u003Cc;h++){var p=3*h;if(l[i]=u,l[o]=r[2+p],s[i]=r[p+i],s[o]=r[p+o],l[o]\u003C0&&(s[o]+=l[o],l[o]=-l[o]),s[0]\u003C=e&&e\u003C=s[0]+l[0]&&s[1]\u003C=n&&n\u003C=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);$(this).dataIndex=0\u003C=e?e:null},30,!1);function Kw(t,e,n){var i,o;return nw(n,\\\"cartesian2d\\\")?(o=e,i=n.getArea(),{x:(t?o:i).x,y:(t?i:o).y,width:(t?o:i).width,height:(t?i:o).height}):(o=e,{cx:(i=n.getArea()).cx,cy:i.cy,r0:(t?i:o).r0,r:(t?i:o).r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI})}var $w=2*Math.PI,Jw=Math.PI/180;function Qw(t,e){return Jp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function tS(t,e){var n=Qw(t,e),i=t.get(\\\"center\\\"),o=t.get(\\\"radius\\\"),r=(U(o)||(o=[0,o]),U(i)||(i=[i,i]),F(n.width,e.getWidth())),a=F(n.height,e.getHeight()),s=Math.min(r,a);return{cx:F(i[0],r)+n.x,cy:F(i[1],a)+n.y,r0:F(o[0],s/2),r:F(o[1],s/2)}}function eS(t,e,S){e.eachSeriesByType(t,function(t){var i,o=t.getData(),e=o.mapDimension(\\\"value\\\"),n=Qw(t,S),r=tS(t,S),a=r.cx,s=r.cy,l=r.r,u=r.r0,h=-t.get(\\\"startAngle\\\")*Jw,c=t.get(\\\"minAngle\\\")*Jw,p=0,d=(o.each(e,function(t){isNaN(t)||p++}),o.getSum(e)),f=Math.PI/(d||p)*2,g=t.get(\\\"clockwise\\\"),y=t.get(\\\"roseType\\\"),m=t.get(\\\"stillShowZeroSum\\\"),v=o.getDataExtent(e),x=(v[0]=0,$w),_=0,b=h,w=g?1:-1;o.setLayout({viewRect:n,r:l}),o.each(e,function(t,e){var n,i;isNaN(t)?o.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:y?NaN:l}):((n=\\\"area\\\"!==y?0===d&&m?f:t*f:$w/p)\u003Cc?x-=n=c:_+=t,i=b+w*n,o.setItemLayout(e,{angle:n,startAngle:b,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:y?ir(t,v,[u,l]):l}),b=i)}),x\u003C$w&&p&&(x\u003C=.001?(i=$w/p,o.each(e,function(t,e){var n;isNaN(t)||((n=o.getItemLayout(e)).angle=i,n.startAngle=h+w*e*i,n.endAngle=h+w*(e+1)*i)})):(f=x/_,b=h,o.each(e,function(t,e){var n,i;isNaN(t)||(i=(n=o.getItemLayout(e)).angle===c?c:t*f,n.startAngle=b,n.endAngle=b+w*i,b+=w*i)})))})}function nS(t){return{seriesType:t,reset:function(t,e){var i,o=e.findComponents({mainType:\\\"legend\\\"});o&&o.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;n\u003Co.length;n++)if(!o[n].isSelected(e))return!1;return!0})}}}var iS=Math.PI/180;function oS(t,s,l,u,h,e,n,i,o,r){if(!(t.length\u003C2)){for(var a,c=t.length,p=0;p\u003Cc;p++)\\\"outer\\\"===t[p].position&&\\\"labelLine\\\"===t[p].labelAlignTo&&(a=t[p].label.x-r,t[p].linePoints[1][0]+=a,t[p].label.x=r);if(n_(t,o,o+n)){for(var d,f,g,y,m,v=t,x={list:[],maxY:0},_={list:[],maxY:0},b=0;b\u003Cv.length;b++)\\\"none\\\"===v[b].labelAlignTo&&(f=(d=v[b]).label.y>l?_:x,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)\u003Cy?Math.sqrt(g*g/(1-m*m/y/y)):y,f.rB=m,f.maxY=g),f.list.push(d));w(x),w(_)}}function w(t){for(var e=t.rB,n=e*e,i=0;i\u003Ct.list.length;i++){var o=t.list[i],r=Math.abs(o.label.y-l),a=u+o.len,a=a*a,r=Math.sqrt((1-Math.abs(r*r/n))*a),a=s+(r+o.len2)*h,r=a-o.label.x;rS(o,o.targetTextWidth-r*h,!0),o.label.x=a}}}function rS(t,e,n){var i,o,r,a,s,l,u;void 0===n&&(n=!1),null==t.labelStyleWidth&&(a=(i=t.label).style,o=t.rect,s=a.backgroundColor,l=(l=a.padding)?l[1]+l[3]:0,a=a.overflow,e\u003C(u=o.width+(s?0:l))||n)&&(r=o.height,a&&a.match(\\\"break\\\")?(i.setStyle(\\\"backgroundColor\\\",null),i.setStyle(\\\"width\\\",e-l),a=i.getBoundingRect(),i.setStyle(\\\"width\\\",Math.ceil(a.width)),i.setStyle(\\\"backgroundColor\\\",s)):(a=e-l,s=!(e\u003Cu)&&(!n||a>t.unconstrainedWidth)?null:a,i.setStyle(\\\"width\\\",s)),l=i.getBoundingRect(),o.width=l.width,u=(i.style.margin||0)+2.1,o.height=l.height+u,o.y-=(o.height-r)/2)}function aS(t){return\\\"center\\\"===t.position}function sS(t){var M,I,T=t.getData(),C=[],D=!1,E=(t.get(\\\"minShowLabelAngle\\\")||0)*iS,e=T.getLayout(\\\"viewRect\\\"),A=T.getLayout(\\\"r\\\"),k=e.width,L=e.x,z=e.y,e=e.height;function P(t){t.ignore=!0}if(T.each(function(t){var e,n,i,o,r,a,s,l,u,h,c,p=T.getItemGraphicEl(t),d=p.shape,f=p.getTextContent(),g=p.getTextGuideLine(),y=T.getItemModel(t),m=y.getModel(\\\"label\\\"),v=m.get(\\\"position\\\")||y.get([\\\"emphasis\\\",\\\"label\\\",\\\"position\\\"]),x=m.get(\\\"distanceToLabelLine\\\"),_=m.get(\\\"alignTo\\\"),b=F(m.get(\\\"edgeDistance\\\"),k),w=m.get(\\\"bleedMargin\\\"),y=y.getModel(\\\"labelLine\\\"),S=F(y.get(\\\"length\\\"),k);e=F(y.get(\\\"length2\\\"),k),Math.abs(d.endAngle-d.startAngle)\u003CE?(lt(f.states,P),f.ignore=!0):function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(f)&&(c=(d.startAngle+d.endAngle)/2,n=Math.cos(c),i=Math.sin(c),M=d.cx,I=d.cy,o=\\\"inside\\\"===v||\\\"inner\\\"===v,l=\\\"center\\\"===v?(r=d.cx,a=d.cy,\\\"center\\\"):(r=(l=(o?(d.r+d.r0)/2*n:d.r*n)+M)+3*n,a=(u=(o?(d.r+d.r0)/2*i:d.r*i)+I)+3*i,o||(s=l+n*(S+A-d.r),d=u+i*(S+A-d.r),h=s+(n\u003C0?-1:1)*e,r=\\\"edge\\\"===_?n\u003C0?L+b:L+k-b:h+(n\u003C0?-x:x),s=[[l,u],[s,a=d],[h,d]]),o?\\\"center\\\":\\\"edge\\\"===_?0\u003Cn?\\\"right\\\":\\\"left\\\":0\u003Cn?\\\"left\\\":\\\"right\\\"),u=Math.PI,h=0,j(d=m.get(\\\"rotate\\\"))?h=d*(u/180):\\\"center\\\"===v?h=0:\\\"radial\\\"===d||!0===d?h=n\u003C0?-c+u:-c:\\\"tangential\\\"===d&&\\\"outside\\\"!==v&&\\\"outer\\\"!==v&&((m=Math.atan2(n,i))\u003C0&&(m=2*u+m),h=(m=0\u003Ci?u+m:m)-u),D=!!h,f.x=r,f.y=a,f.rotation=h,f.setStyle({verticalAlign:\\\"middle\\\"}),o?(f.setStyle({align:l}),(c=f.states.select)&&(c.x+=f.x,c.y+=f.y)):((d=f.getBoundingRect().clone()).applyTransform(f.getComputedTransform()),m=(f.style.margin||0)+2.1,d.y-=m/2,d.height+=m,C.push({label:f,labelLine:g,position:v,len:S,len2:e,minTurnAngle:y.get(\\\"minTurnAngle\\\"),maxSurfaceAngle:y.get(\\\"maxSurfaceAngle\\\"),surfaceNormal:new V(n,i),linePoints:s,textAlign:l,labelDistance:x,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:d,unconstrainedWidth:d.width,labelStyleWidth:f.style.width})),p.setTextConfig({inside:o}))}),!D&&t.get(\\\"avoidLabelOverlap\\\")){for(var n=C,i=M,o=(t=I,A),r=k,a=e,s=L,l=z,u,h,c,p,d=[],f=[],g=Number.MAX_VALUE,y=-Number.MAX_VALUE,m=0;m\u003Cn.length;m++){var v=n[m].label;aS(n[m])||(v.x\u003Ci?(g=Math.min(g,v.x),d):(y=Math.max(y,v.x),f)).push(n[m])}for(m=0;m\u003Cn.length;m++)if(!aS(u=n[m])&&u.linePoints){if(null!=u.labelStyleWidth)continue;var v=u.label,x=u.linePoints,_=\\\"edge\\\"===u.labelAlignTo?v.x\u003Ci?x[2][0]-u.labelDistance-s-u.edgeDistance:s+r-u.edgeDistance-x[2][0]-u.labelDistance:\\\"labelLine\\\"===u.labelAlignTo?v.x\u003Ci?g-s-u.bleedMargin:s+r-y-u.bleedMargin:v.x\u003Ci?v.x-s-u.bleedMargin:s+r-v.x-u.bleedMargin;u.targetTextWidth=_,rS(u,_)}for(oS(f,i,t,o,1,0,a,0,l,y),oS(d,i,t,o,-1,0,a,0,l,g),m=0;m\u003Cn.length;m++)!aS(u=n[m])&&u.linePoints&&(v=u.label,x=u.linePoints,h=\\\"edge\\\"===u.labelAlignTo,c=(c=v.style.padding)?c[1]+c[3]:0,c=v.style.backgroundColor?0:c,c=u.rect.width+c,p=x[1][0]-x[2][0],h?v.x\u003Ci?x[2][0]=s+u.edgeDistance+c+u.labelDistance:x[2][0]=s+r-u.edgeDistance-c-u.labelDistance:(v.x\u003Ci?x[2][0]=v.x+u.labelDistance:x[2][0]=v.x-u.labelDistance,x[1][0]=x[2][0]+p),x[1][1]=x[2][1]=v.y)}for(var b=0;b\u003CC.length;b++){var w,S=C[b],O=S.label,R=S.labelLine,N=isNaN(O.x)||isNaN(O.y);O&&(O.setStyle({align:S.textAlign}),N&&(lt(O.states,P),O.ignore=!0),w=O.states.select)&&(w.x+=O.x,w.y+=O.y),R&&(w=S.linePoints,N||!w?(lt(R.states,P),R.ignore=!0):(qx(w,S.minTurnAngle),function(t,e,n){if(n\u003C=180&&0\u003Cn){n=n/180*Math.PI,Gx.fromArray(t[0]),Wx.fromArray(t[1]),Hx.fromArray(t[2]),V.sub(Yx,Wx,Gx),V.sub(Ux,Hx,Wx);var i=Yx.len(),o=Ux.len();if(!(i\u003C.001||o\u003C.001)&&(Yx.scale(1/i),Ux.scale(1/o),Yx.dot(e)\u003CMath.cos(n))){var i=zx(Wx.x,Wx.y,Hx.x,Hx.y,Gx.x,Gx.y,Zx,!1),o=(jx.fromArray(Zx),Math.PI/2),r=o+Math.acos(Ux.dot(e))-n;if(o\u003C=r)V.copy(jx,Hx);else{jx.scaleAndAdd(Ux,i/Math.tan(Math.PI/2-r));o=Hx.x!==Wx.x?(jx.x-Wx.x)/(Hx.x-Wx.x):(jx.y-Wx.y)/(Hx.y-Wx.y);if(isNaN(o))return;o\u003C0?V.copy(jx,Wx):1\u003Co&&V.copy(jx,Hx)}jx.toArray(t[1])}}}(w,S.surfaceNormal,S.maxSurfaceAngle),R.setShape({points:w}),O.__hostTarget.textGuideLineConfig={anchor:new V(w[0][0],w[0][1])}))}}function lS(t,e,n){var i=t.get(\\\"borderRadius\\\");if(null==i)return n?{cornerRadius:0}:null;U(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Y(i,function(t){return Eo(t,o)})}}u(fS,hS=Xu),fS.prototype.updateData=function(t,e,n,i){var o,r,a=this,s=t.hostModel,l=t.getItemModel(e),u=l.getModel(\\\"emphasis\\\"),h=t.getItemLayout(e),c=Z(lS(l.getModel(\\\"itemStyle\\\"),h,!0),h);isNaN(c.startAngle)?a.setShape(c):(i?(a.setShape(c),r=s.getShallow(\\\"animationType\\\"),s.ecModel.ssr?(Yh(a,{scaleX:0,scaleY:0},s,{dataIndex:e,isFrom:!0}),a.originX=c.cx,a.originY=c.cy):\\\"scale\\\"===r?(a.shape.r=h.r0,Yh(a,{shape:{r:h.r}},s,e)):null!=n?(a.setShape({startAngle:n,endAngle:n}),Yh(a,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},s,e)):(a.shape.endAngle=h.startAngle,k(a,{shape:{endAngle:h.endAngle}},s,e))):(qh(a),k(a,{shape:c},s,e)),a.useStyle(t.getItemVisual(e,\\\"style\\\")),$l(a,l),r=(h.startAngle+h.endAngle)/2,c=s.get(\\\"selectedOffset\\\"),o=Math.cos(r)*c,r=Math.sin(r)*c,(c=l.getShallow(\\\"cursor\\\"))&&a.attr(\\\"cursor\\\",c),this._updateLabel(s,t,e),a.ensureState(\\\"emphasis\\\").shape=Z({r:h.r+(u.get(\\\"scale\\\")&&u.get(\\\"scaleSize\\\")||0)},lS(u.getModel(\\\"itemStyle\\\"),h)),Z(a.ensureState(\\\"select\\\"),{x:o,y:r,shape:lS(l.getModel([\\\"select\\\",\\\"itemStyle\\\"]),h)}),Z(a.ensureState(\\\"blur\\\"),{shape:lS(l.getModel([\\\"blur\\\",\\\"itemStyle\\\"]),h)}),c=a.getTextGuideLine(),s=a.getTextContent(),c&&Z(c.ensureState(\\\"select\\\"),{x:o,y:r}),Z(s.ensureState(\\\"select\\\"),{x:o,y:r}),Zl(this,u.get(\\\"focus\\\"),u.get(\\\"blurScope\\\"),u.get(\\\"disabled\\\")))},fS.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),o=i.getModel(\\\"labelLine\\\"),r=e.getItemVisual(n,\\\"style\\\"),a=r&&r.fill,r=r&&r.opacity,s=(Tc(this,Cc(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:r,defaultText:t.getFormattedLabel(n,\\\"normal\\\")||e.getName(n)}),this.getTextContent()),s=(this.setTextConfig({position:null,rotation:null}),s.attr({z2:10}),t.get([\\\"label\\\",\\\"position\\\"]));\\\"outside\\\"!==s&&\\\"outer\\\"!==s?this.removeTextGuideLine():(this.getTextGuideLine()||(s=new rh,this.setTextGuideLine(s)),Jx(this,Qx(i),{stroke:a,opacity:St(o.get([\\\"lineStyle\\\",\\\"opacity\\\"]),r,1)}))};var uS,hS,cS=fS,pS=(u(dS,uS=xy),dS.prototype.render=function(e,t,n,i){var o,r,a=e.getData(),s=this._data,l=this.group;if(!s&&0\u003Ca.count()){for(var u=a.getItemLayout(0),h=1;isNaN(u&&u.startAngle)&&h\u003Ca.count();++h)u=a.getItemLayout(h);u&&(o=u.startAngle)}this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===a.count()&&e.get(\\\"showEmptyCircle\\\")&&((r=new Xu({shape:tS(e,n)})).useStyle(e.getModel(\\\"emptyCircleStyle\\\").getItemStyle()),this._emptyCircleSector=r,l.add(r)),a.diff(s).add(function(t){var e=new cS(a,t,o);a.setItemGraphicEl(t,e),l.add(e)}).update(function(t,e){var n=s.getItemGraphicEl(e);n.updateData(a,t,o),n.off(\\\"click\\\"),l.add(n),a.setItemGraphicEl(t,n)}).remove(function(t){jh(s.getItemGraphicEl(t),e,t)}).execute(),sS(e),\\\"expansion\\\"!==e.get(\\\"animationTypeUpdate\\\")&&(this._data=a)},dS.prototype.dispose=function(){},dS.prototype.containPoint=function(t,e){var n,i,o=e.getData().getItemLayout(0);if(o)return i=t[0]-o.cx,n=t[1]-o.cy,(i=Math.sqrt(i*i+n*n))\u003C=o.r&&i>=o.r0},dS.type=\\\"pie\\\",dS);function dS(){var t=null!==uS&&uS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function fS(t,e,n){var i=hS.call(this)||this,o=(i.z2=2,new z);return i.setTextContent(o),i.updateData(t,e,n,!0),i}function gS(t,e,n){e=U(e)?{coordDimensions:e}:Z({encodeDefine:t.getEncode()},e);var i=t.getSource(),o=Gv(i,e).dimensions,o=new Fv(o,t);return o.initData(i,n),o}_S.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},_S.prototype.containName=function(t){return 0\u003C=this._getRawData().indexOfName(t)},_S.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},_S.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var yS,mS=_S,vS=(u(xS,yS=ry),xS.prototype.init=function(t){yS.prototype.init.apply(this,arguments),this.legendVisualProvider=new mS(I(this.getData,this),I(this.getRawData,this)),this._defaultLabelLine(t)},xS.prototype.mergeOption=function(){yS.prototype.mergeOption.apply(this,arguments)},xS.prototype.getInitialData=function(){return gS(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:D(Td,this)})},xS.prototype.getDataParams=function(t){var e=this.getData(),n=yS.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension(\\\"value\\\"),function(t){i.push(t)}),n.percent=ur(i,t,e.hostModel.get(\\\"percentPrecision\\\")),n.$vars.push(\\\"percent\\\"),n},xS.prototype._defaultLabelLine=function(t){Ar(t,\\\"labelLine\\\",[\\\"show\\\"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},xS.type=\\\"series.pie\\\",xS.defaultOption={z:2,legendHoverLink:!0,colorBy:\\\"data\\\",center:[\\\"50%\\\",\\\"50%\\\"],radius:[0,\\\"75%\\\"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:\\\"truncate\\\",position:\\\"outer\\\",alignTo:\\\"none\\\",edgeDistance:\\\"25%\\\",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:\\\"solid\\\"}},itemStyle:{borderWidth:1,borderJoin:\\\"round\\\"},showEmptyCircle:!0,emptyCircleStyle:{color:\\\"lightgray\\\",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:\\\"expansion\\\",animationDuration:1e3,animationTypeUpdate:\\\"transition\\\",animationEasingUpdate:\\\"cubicInOut\\\",animationDurationUpdate:500,animationEasing:\\\"cubicInOut\\\"},xS);function xS(){return null!==yS&&yS.apply(this,arguments)||this}function _S(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}u(VS,IS=ry),VS.prototype.getInitialData=function(t,e){return jv(null,this,{useEncodeDefaulter:!0})},VS.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get(\\\"progressive\\\"):t},VS.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get(\\\"progressiveThreshold\\\"):t},VS.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},VS.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:\\\"\\\"},VS.type=\\\"series.scatter\\\",VS.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],VS.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:\\\"#212121\\\"}},universalTransition:{divideShape:\\\"clone\\\"}};var bS,wS,SS,MS,IS,TS=VS,CS=function(){},DS=(u(zS,MS=Q),zS.prototype.getDefaultShape=function(){return new CS},zS.prototype.reset=function(){this.notClear=!1,this._off=0},zS.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,s=t.getContext?t.getContext():t,l=s&&o[0]\u003C4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n\u003Ci.length;){var h=i[n++],c=i[n++];isNaN(h)||isNaN(c)||u&&!u.contain(h,c)||(a.x=h-o[0]/2,a.y=c-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},zS.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,o=this._ctx,r=this.softClipShape;if(o){for(t=this._off;t\u003Cn.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},zS.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,n=n.size,o=Math.max(n[0],4),r=Math.max(n[1],4),a=i.length/2-1;0\u003C=a;a--){var s=2*a,l=i[s]-o/2,s=i[1+s]-r/2;if(l\u003C=t&&s\u003C=e&&t\u003C=l+o&&e\u003C=s+r)return a}return-1},zS.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?0\u003C=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},zS.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,e=e.size,i=e[0],e=e[1],o=1/0,r=1/0,a=-1/0,s=-1/0,l=0;l\u003Cn.length;)var u=n[l++],h=n[l++],o=Math.min(u,o),a=Math.max(u,a),r=Math.min(h,r),s=Math.max(h,s);t=this._rect=new B(o-i/2,r-e/2,a-o+i,s-r+e)}return t},zS),AS=(ES.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout(\\\"points\\\")}),this._setCommon(n,t,e)},ES.prototype.updateLayout=function(t){var i=t.getLayout(\\\"points\\\");this.group.eachChild(function(t){var e,n;null!=t.startIndex&&(e=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2,i=new Float32Array(i.buffer,n,e)),t.setShape(\\\"points\\\",i),t.reset()})},ES.prototype.incrementalPrepareUpdate=function(t){this._clear()},ES.prototype.incrementalUpdate=function(t,e,n){var i,o,r=this._newAdded[0],a=e.getLayout(\\\"points\\\"),s=r&&r.shape.points;s&&s.length\u003C2e4?(i=s.length,(o=new Float32Array(i+a.length)).set(s),o.set(a,i),r.endIndex=t.end,r.setShape({points:o})):(this._newAdded=[],(s=this._create()).startIndex=t.start,s.endIndex=t.end,s.incremental=!0,s.setShape({points:a}),this._setCommon(s,e,n))},ES.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},ES.prototype._create=function(){var t=new DS({cursor:\\\"default\\\"});return this.group.add(t),this._newAdded.push(t),t},ES.prototype._setCommon=function(n,t,e){var i=t.hostModel,o=(e=e||{},t.getVisual(\\\"symbolSize\\\")),o=(n.setShape(\\\"size\\\",o instanceof Array?o:[o,o]),n.softClipShape=e.clipShape||null,n.symbolProxy=Sm(t.getVisual(\\\"symbol\\\"),0,0,0,0),n.setColor=n.symbolProxy.setColor,n.shape.size[0]\u003C4),o=(n.useStyle(i.getModel(\\\"itemStyle\\\").getItemStyle(o?[\\\"color\\\",\\\"shadowBlur\\\",\\\"shadowColor\\\"]:[\\\"color\\\"])),t.getVisual(\\\"style\\\")),o=o&&o.fill,r=(o&&n.setColor(o),$(n));r.seriesIndex=i.seriesIndex,n.on(\\\"mousemove\\\",function(t){r.dataIndex=null;var e=n.hoverDataIdx;0\u003C=e&&(r.dataIndex=e+(n.startIndex||0))})},ES.prototype.remove=function(){this._clear()},ES.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},ES),kS=(u(NS,SS=xy),NS.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},NS.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},NS.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},NS.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4\u003Ci.count())return{update:!0};var o=fw(\\\"\\\").reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},NS.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},NS.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get(\\\"clip\\\",!0)?e:null},NS.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=new(i?AS:Nb),this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},NS.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},NS.prototype.dispose=function(){},NS.type=\\\"scatter\\\",NS),LS=(u(RS,wS=m),RS.type=\\\"grid\\\",RS.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\"],RS.layoutMode=\\\"box\\\",RS.defaultOption={show:!1,z:0,left:\\\"10%\\\",top:60,right:\\\"10%\\\",bottom:70,containLabel:!1,backgroundColor:\\\"rgba(0,0,0,0)\\\",borderWidth:1,borderColor:\\\"#ccc\\\"},RS),PS=(u(OS,bS=m),OS.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"grid\\\",Wr).models[0]},OS.type=\\\"cartesian2dAxis\\\",OS);function OS(){return null!==bS&&bS.apply(this,arguments)||this}function RS(){return null!==wS&&wS.apply(this,arguments)||this}function NS(){var t=null!==SS&&SS.apply(this,arguments)||this;return t.type=NS.type,t}function ES(){this.group=new K}function zS(t){var e=MS.call(this,t)||this;return e._off=0,e.hoverDataIdx=-1,e}function VS(){var t=null!==IS&&IS.apply(this,arguments)||this;return t.type=VS.type,t.hasSymbolVisual=!0,t}ut(PS,ox);var hd={show:!0,z:0,inverse:!1,name:\\\"\\\",nameLocation:\\\"end\\\",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:\\\"...\\\",placeholder:\\\".\\\"},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:\\\"#6E7079\\\",width:1,type:\\\"solid\\\"},symbol:[\\\"none\\\",\\\"none\\\"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:[\\\"#E0E6F1\\\"],width:1,type:\\\"solid\\\"}},splitArea:{show:!1,areaStyle:{color:[\\\"rgba(250,250,250,0.2)\\\",\\\"rgba(210,219,238,0.2)\\\"]}}},e=v({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\\\"auto\\\"},axisLabel:{interval:\\\"auto\\\"}},hd),hd=v({boundaryGap:[0,0],axisLine:{show:\\\"auto\\\"},axisTick:{show:\\\"auto\\\"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:\\\"#F4F7FD\\\",width:1}}},hd),BS={category:e,value:hd,time:v({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:\\\"bold\\\"}}},splitLine:{show:!1}},hd),log:H({logBase:10},hd)},FS={value:1,category:1,time:1,log:1};function GS(r,a,s,l){lt(FS,function(t,o){var e,n=v(v({},BS[o],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=td(this),i=n?nd(t):{};v(t,e.getTheme().get(o+\\\"Axis\\\")),v(t,this.getDefaultOption()),t.type=WS(t),n&&ed(t,i,n)},i.prototype.optionUpdated=function(){\\\"category\\\"===this.option.type&&(this.__ordinalMeta=Jv.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if(\\\"category\\\"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=a+\\\"Axis.\\\"+o,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+\\\"Axis.\\\"+o,t}r.registerComponentModel(n)}),r.registerSubTypeDefaulter(a+\\\"Axis\\\",WS)}function WS(t){return t.type||(t.data?\\\"category\\\":\\\"value\\\")}YS.prototype.getAxis=function(t){return this._axes[t]},YS.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},YS.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),pt(this.getAxes(),function(t){return t.scale.type===e})},YS.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var HS=[\\\"x\\\",\\\"y\\\"];function YS(t){this.type=\\\"cartesian\\\",this._dimList=[],this._axes={},this.name=t||\\\"\\\"}function US(t){return\\\"interval\\\"===t.type||\\\"time\\\"===t.type}u($S,ZS=YS),$S.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis(\\\"x\\\").scale,r=this.getAxis(\\\"y\\\").scale;US(o)&&US(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=ao([],i))},$S.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAxis(\\\"x\\\")},$S.prototype.containPoint=function(t){var e=this.getAxis(\\\"x\\\"),n=this.getAxis(\\\"y\\\");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},$S.prototype.containData=function(t){return this.getAxis(\\\"x\\\").containData(t[0])&&this.getAxis(\\\"y\\\").containData(t[1])},$S.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o,r=t[0],a=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=a&&isFinite(a)?ee(n,t,this._transform):(i=this.getAxis(\\\"x\\\"),o=this.getAxis(\\\"y\\\"),n[0]=i.toGlobalCoord(i.dataToCoord(r,e)),n[1]=o.toGlobalCoord(o.dataToCoord(a,e)),n)},$S.prototype.clampData=function(t,e){var n=this.getAxis(\\\"x\\\").scale,i=this.getAxis(\\\"y\\\").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},$S.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?ee(o,t,this._invTransform):(n=this.getAxis(\\\"x\\\"),i=this.getAxis(\\\"y\\\"),o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o)},$S.prototype.getOtherAxis=function(t){return this.getAxis(\\\"x\\\"===t.dim?\\\"y\\\":\\\"x\\\")},$S.prototype.getArea=function(){var t=this.getAxis(\\\"x\\\").getGlobalExtent(),e=this.getAxis(\\\"y\\\").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new B(n,i,t,e)};var XS,ZS,jS=$S,qS=(u(KS,XS=Xc),KS.prototype.isHorizontal=function(){var t=this.position;return\\\"top\\\"===t||\\\"bottom\\\"===t},KS.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},KS.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[\\\"x\\\"===this.dim?0:1]),e)},KS.prototype.setCategorySortInfo=function(t){if(\\\"category\\\"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},KS);function KS(t,e,n,i,o){var r=XS.call(this,t,e,n)||this;return r.index=0,r.type=i||\\\"value\\\",r.position=o||\\\"bottom\\\",r}function $S(){var t=null!==ZS&&ZS.apply(this,arguments)||this;return t.type=\\\"cartesian2d\\\",t.dimensions=HS,t}function JS(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?\\\"onZero\\\":s,o=o.dim,i=i.getRect(),i=[i.x,i.x+i.width,i.y,i.y+i.height],u={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get(\\\"offset\\\")||0,h=\\\"x\\\"===o?[i[2]-h,i[3]+h]:[i[0]-h,i[1]+h],c=(a&&(c=a.toGlobalCoord(a.dataToCoord(0)),h[u.onZero]=Math.max(Math.min(c,h[1]),h[0])),r.position=[\\\"y\\\"===o?h[u[l]]:i[0],\\\"x\\\"===o?h[u[l]]:i[3]],r.rotation=Math.PI/2*(\\\"x\\\"===o?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?h[u[s]]-h[u.onZero]:0,e.get([\\\"axisTick\\\",\\\"inside\\\"])&&(r.tickDirection=-r.tickDirection),wt(n.labelInside,e.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(r.labelDirection=-r.labelDirection),e.get([\\\"axisLabel\\\",\\\"rotate\\\"]));return r.labelRotate=\\\"top\\\"===l?-c:c,r.z2=1,r}function QS(t){return\\\"cartesian2d\\\"===t.get(\\\"coordinateSystem\\\")}function tM(i){var o={xAxisModel:null,yAxisModel:null};return lt(o,function(t,e){var n=e.replace(/Model$/,\\\"\\\"),n=i.getReferringComponents(n,Wr).models[0];o[e]=n}),o}var eM=Math.log;function nM(t,e,n){var i=d1.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,s=i.getInterval.call(n),l=K1(t,e),u=l.extent,h=l.fixMin,l=l.fixMax,c=(\\\"log\\\"===t.type&&(c=eM(t.base),u=[eM(u[0])/c,eM(u[1])/c]),t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:l}),i.getExtent.call(t)),p=(h&&(u[0]=c[0]),l&&(u[1]=c[1]),i.getInterval.call(t)),d=u[0],f=u[1];if(h&&l)p=(f-d)/a;else if(h)for(f=u[0]+p*a;f\u003Cu[1]&&isFinite(f)&&isFinite(u[1]);)p=n1(p),f=u[0]+p*a;else if(l)for(d=u[1]-p*a;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=n1(p),d=u[1]-p*a;else{c=(p=t.getTicks().length-1>a?n1(p):p)*a;(d=or((f=Math.ceil(u[1]/p)*p)-c))\u003C0&&0\u003C=u[0]?(d=0,f=or(c)):0\u003Cf&&u[1]\u003C=0&&(f=0,d=-or(c))}h=(o[0].value-r[0].value)/s,l=(o[a].value-r[a].value)/s;i.setExtent.call(t,d+p*h,f+p*l),i.setInterval.call(t,p),(h||l)&&i.setNiceExtent.call(t,d+p,f-p)}oM.prototype.getRect=function(){return this._rect},oM.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=W(t),i=n.length;if(i){for(var o=[],r=i-1;0\u003C=r;r--){var a=t[+n[r]],s=a.model,l=a.scale;e1(l)&&s.get(\\\"alignTicks\\\")&&null==s.get(\\\"interval\\\")?o.push(a):($1(l,s),e1(l)&&(e=a))}o.length&&(e||$1((e=o.pop()).scale,e.model),lt(o,function(t){nM(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};lt(n.x,function(t){aM(n,\\\"y\\\",t,o)}),lt(n.y,function(t){aM(n,\\\"x\\\",t,o)}),this.resize(this.model,e)},oM.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),o=!n&&t.get(\\\"containLabel\\\"),a=Jp(i,{width:e.getWidth(),height:e.getHeight()}),r=(this._rect=a,this._axesList);function s(){lt(r,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),t=t,e=i?a.x:a.y,r=t.getExtent(),n=r[0]+r[1],t.toGlobalCoord=\\\"x\\\"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=\\\"x\\\"===t.dim?function(t){return t-e}:function(t){return n-t+e}})}s(),o&&(lt(r,function(t){var e,n,i;t.model.get([\\\"axisLabel\\\",\\\"inside\\\"])||(e=function(t){var e,n,i,o,r=t.model,a=t.scale;if(r.get([\\\"axisLabel\\\",\\\"show\\\"])&&!a.isBlank()){var s,l,u=a.getExtent(),h=a instanceof u1?a.count():(s=a.getTicks()).length,c=t.getLabelModel(),p=Q1(t),d=1;40\u003Ch&&(d=Math.ceil(h/40));for(var f=0;f\u003Ch;f+=d){var g=p(s?s[f]:{value:u[0]+f},f),y=(e=c.getTextRect(g),n=c.get(\\\"rotate\\\")||0,i=o=y=i=g=void 0,g=n*Math.PI/180,i=e.width,y=e.height,o=i*Math.abs(Math.cos(g))+Math.abs(y*Math.sin(g)),i=i*Math.abs(Math.sin(g))+Math.abs(y*Math.cos(g)),new B(e.x,e.y,o,i));l?l.union(y):l=y}return l}}(t))&&(n=t.isHorizontal()?\\\"height\\\":\\\"width\\\",i=t.model.get([\\\"axisLabel\\\",\\\"margin\\\"]),a[n]-=e[n]+i,\\\"top\\\"===t.position?a.y+=e.height+i:\\\"left\\\"===t.position&&(a.x+=e.width+i))}),s()),lt(this._coordsList,function(t){t.calcAffineTransform()})},oM.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},oM.prototype.getAxes=function(){return this._axesList.slice()},oM.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap[\\\"x\\\"+t+\\\"y\\\"+e];R(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n\u003Ci.length;n++)if(i[n].getAxis(\\\"x\\\").index===t||i[n].getAxis(\\\"y\\\").index===e)return i[n]},oM.prototype.getCartesians=function(){return this._coordsList.slice()},oM.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},oM.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},oM.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents(\\\"xAxis\\\",Wr).models[0],r=t.yAxisModel||i&&i.getReferringComponents(\\\"yAxis\\\",Wr).models[0],a=t.gridModel,s=this._coordsList;return i?G(s,e=i.coordinateSystem)\u003C0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis(\\\"x\\\",o.componentIndex):r?n=this.getAxis(\\\"y\\\",r.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},oM.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},oM.prototype._initCartesian=function(a,t,e){var s=this,r=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};function n(o){return function(t,e){var n,i;rM(t,a)&&(n=t.get(\\\"position\\\"),\\\"x\\\"===o?\\\"top\\\"!==n&&\\\"bottom\\\"!==n&&(n=l.bottom?\\\"top\\\":\\\"bottom\\\"):\\\"left\\\"!==n&&\\\"right\\\"!==n&&(n=l.left?\\\"right\\\":\\\"left\\\"),l[n]=!0,i=\\\"category\\\"===(n=new qS(o,J1(t),[0,0],t.get(\\\"type\\\"),n)).type,n.onBand=i&&t.get(\\\"boundaryGap\\\"),n.inverse=t.get(\\\"inverse\\\"),(t.axis=n).model=t,n.grid=r,n.index=e,r._axesList.push(n),u[o][e]=n,h[o]++)}}t.eachComponent(\\\"xAxis\\\",n(\\\"x\\\"),this),t.eachComponent(\\\"yAxis\\\",n(\\\"y\\\"),this),h.x&&h.y?lt((this._axesMap=u).x,function(o,r){lt(u.y,function(t,e){var n=\\\"x\\\"+r+\\\"y\\\"+e,i=new jS(n);i.master=s,i.model=a,s._coordsMap[n]=i,s._coordsList.push(i),i.addAxis(o),i.addAxis(t)})}):(this._axesMap={},this._axesList=[])},oM.prototype._updateScale=function(t,o){function r(e,n){lt(ix(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}lt(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),\\\"category\\\"===t.type&&(e=t.model.get(\\\"categorySortInfo\\\"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n,i;QS(t)&&(i=(e=tM(t)).xAxisModel,e=e.yAxisModel,rM(i,o))&&rM(e,o)&&(i=this.getCartesian(i.componentIndex,e.componentIndex),e=t.getData(),n=i.getAxis(\\\"x\\\"),i=i.getAxis(\\\"y\\\"),r(e,n),r(e,i))},this)},oM.prototype.getTooltipAxes=function(i){var o=[],r=[];return lt(this.getCartesians(),function(t){var e=null!=i&&\\\"auto\\\"!==i?t.getAxis(i):t.getBaseAxis(),n=t.getOtherAxis(e);G(o,e)\u003C0&&o.push(e),G(r,n)\u003C0&&r.push(n)}),{baseAxes:o,otherAxes:r}},oM.create=function(i,o){var r=[];return i.eachComponent(\\\"grid\\\",function(t,e){var n=new oM(t,i,o);n.name=\\\"grid_\\\"+e,n.resize(t,o,!0),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e,n,i;QS(t)&&(e=(n=tM(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},oM.dimensions=HS;var iM=oM;function oM(t,e,n){this.type=\\\"grid\\\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=HS,this._initCartesian(t,e,n),this.model=t}function rM(t,e){return t.getCoordSysModel()===e}function aM(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],a=n.model,s=a.get([\\\"axisLine\\\",\\\"onZero\\\"]),a=a.get([\\\"axisLine\\\",\\\"onZeroAxisIndex\\\"]);if(s){if(null!=a)sM(r[a])&&(o=r[a]);else for(var l in r)if(r.hasOwnProperty(l)&&sM(r[l])&&!i[u(r[l])]){o=r[l];break}o&&(i[u(o)]=!0)}function u(t){return t.dim+\\\"_\\\"+t.index}}function sM(t){return t&&\\\"category\\\"!==t.type&&\\\"time\\\"!==t.type&&(e=t.scale.getExtent(),n=e[0],e=e[1],!(0\u003Cn&&0\u003Ce||n\u003C0&&e\u003C0));var e,n}var lM=Math.PI,uM=(cM.prototype.hasBuilder=function(t){return!!hM[t]},cM.prototype.add=function(t){hM[t](this.opt,this.axisModel,this.group,this._transformGroup)},cM.prototype.getGroup=function(){return this.group},cM.innerTextLayout=function(t,e,n){var i,o=cr(e-t),r=pr(o)?(i=0\u003Cn?\\\"top\\\":\\\"bottom\\\",\\\"center\\\"):pr(o-lM)?(i=0\u003Cn?\\\"bottom\\\":\\\"top\\\",\\\"center\\\"):(i=\\\"middle\\\",0\u003Co&&o\u003ClM?0\u003Cn?\\\"right\\\":\\\"left\\\":0\u003Cn?\\\"left\\\":\\\"right\\\");return{rotation:o,textAlign:r,textVerticalAlign:i}},cM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+\\\"Index\\\"]=t.componentIndex,e},cM.isLabelSilent=function(t){var e=t.get(\\\"tooltip\\\");return t.get(\\\"silent\\\")||!(t.get(\\\"triggerEvent\\\")||e&&e.show)},cM),hM={axisLine:function(o,t,r,e){var a,s,l,n,i,u,h,c=t.get([\\\"axisLine\\\",\\\"show\\\"]);(c=\\\"auto\\\"===c&&o.handleAutoShown?o.handleAutoShown(\\\"axisLine\\\"):c)&&(c=t.axis.getExtent(),n=e.transform,a=[c[0],0],c=[c[1],0],n&&(ee(a,a,n),ee(c,c,n)),s=Z({lineCap:\\\"round\\\"},t.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]).getLineStyle()),(n=new hh({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:c[0],y2:c[1]},style:s,strokeContainThreshold:o.strokeContainThreshold||5,silent:!0,z2:1})).anid=\\\"line\\\",r.add(n),null!=(l=t.get([\\\"axisLine\\\",\\\"symbol\\\"])))&&(n=t.get([\\\"axisLine\\\",\\\"symbolSize\\\"]),X(l)&&(l=[l,l]),(X(n)||j(n))&&(n=[n,n]),i=Im(t.get([\\\"axisLine\\\",\\\"symbolOffset\\\"])||0,n),u=n[0],h=n[1],lt([{rotate:o.rotation+Math.PI/2,offset:i[0],r:0},{rotate:o.rotation-Math.PI/2,offset:i[1],r:Math.sqrt((a[0]-c[0])*(a[0]-c[0])+(a[1]-c[1])*(a[1]-c[1]))}],function(t,e){var n,i;\\\"none\\\"!==l[e]&&null!=l[e]&&(n=Sm(l[e],-u/2,-h/2,u,h,s.stroke,!0),i=t.r+t.offset,n.attr({rotation:t.rotate,x:a[0]+i*Math.cos(o.rotation),y:a[1]-i*Math.sin(o.rotation),silent:!0,z2:11}),r.add(n))}))},axisTickLabel:function(t,e,n,i){var o,r,a,s,l,u,h,c,p,d=function(t,e,n,i){var o=n.axis,r=n.getModel(\\\"axisTick\\\"),a=r.get(\\\"show\\\");if((a=\\\"auto\\\"===a&&i.handleAutoShown?i.handleAutoShown(\\\"axisTick\\\"):a)&&!o.scale.isBlank()){for(var a=r.getModel(\\\"lineStyle\\\"),r=i.tickDirection*r.get(\\\"length\\\"),s=gM(o.getTicksCoords(),e.transform,r,H(a.getLineStyle(),{stroke:n.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])}),\\\"ticks\\\"),l=0;l\u003Cs.length;l++)t.add(s[l]);return s}}(n,i,e,t),f=function(l,u,h,c){var p,d,t,e,f,g,y,m,v,x=h.axis;if(wt(c.axisLabelShow,h.get([\\\"axisLabel\\\",\\\"show\\\"]))&&!x.scale.isBlank())return p=h.getModel(\\\"axisLabel\\\"),d=p.get(\\\"margin\\\"),t=x.getViewLabels(),e=(wt(c.labelRotate,p.get(\\\"rotate\\\"))||0)*lM/180,f=uM.innerTextLayout(c.rotation,e,c.labelDirection),g=h.getCategories&&h.getCategories(!0),y=[],m=uM.isLabelSilent(h),v=h.get(\\\"triggerEvent\\\"),lt(t,function(t,e){var n=\\\"ordinal\\\"===x.scale.type?x.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,o=t.rawLabel,r=p,a=(r=g&&g[n]&&R(a=g[n])&&a.textStyle?new qc(a.textStyle,p,h.ecModel):r).getTextColor()||h.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),s=x.dataToCoord(n),s=new z({x:s,y:c.labelOffset+c.labelDirection*d,rotation:f.rotation,silent:m,z2:10+(t.level||0),style:Dc(r,{text:i,align:r.getShallow(\\\"align\\\",!0)||f.textAlign,verticalAlign:r.getShallow(\\\"verticalAlign\\\",!0)||r.getShallow(\\\"baseline\\\",!0)||f.textVerticalAlign,fill:A(a)?a(\\\"category\\\"===x.type?o:\\\"value\\\"===x.type?n+\\\"\\\":n,e):a})});s.anid=\\\"label_\\\"+n,v&&((i=uM.makeAxisEventDataBase(h)).targetType=\\\"axisLabel\\\",i.value=o,i.tickIndex=e,\\\"category\\\"===x.type&&(i.dataIndex=n),$(s).eventData=i),u.add(s),s.updateTransform(),y.push(s),l.add(s),s.decomposeTransform()}),y}(n,i,e,t),g=(v=f,o=d,nx((m=e).axis)||(d=m.get([\\\"axisLabel\\\",\\\"showMinLabel\\\"]),r=m.get([\\\"axisLabel\\\",\\\"showMaxLabel\\\"]),a=(v=v||[])[0],x=v[1],s=v[v.length-1],l=v[v.length-2],u=(o=o||[])[0],h=o[1],c=o[o.length-1],p=o[o.length-2],!1===d?(pM(a),pM(u)):dM(a,x)&&(d?(pM(x),pM(h)):(pM(a),pM(u))),!1===r?(pM(s),pM(c)):dM(l,s)&&(r?(pM(l),pM(p)):(pM(s),pM(c)))),n),y=i,m=e,v=t.tickDirection,d=m.axis,x=m.getModel(\\\"minorTick\\\");if(x.get(\\\"show\\\")&&!d.scale.isBlank()){var _=d.getMinorTicksCoords();if(_.length)for(var d=x.getModel(\\\"lineStyle\\\"),b=v*x.get(\\\"length\\\"),w=H(d.getLineStyle(),H(m.getModel(\\\"axisTick\\\").getLineStyle(),{stroke:m.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])})),S=0;S\u003C_.length;S++)for(var M=gM(_[S],y.transform,b,w,\\\"minorticks_\\\"+S),I=0;I\u003CM.length;I++)g.add(M[I])}e.get([\\\"axisLabel\\\",\\\"hideOverlap\\\"])&&i_(t_(Y(f,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var o,r,a,s,l,u,h,c,p,d=wt(t.axisName,e.get(\\\"name\\\"));d&&(s=e.get(\\\"nameLocation\\\"),c=t.nameDirection,r=e.getModel(\\\"nameTextStyle\\\"),p=e.get(\\\"nameGap\\\")||0,l=(a=e.axis.getExtent())[0]>a[1]?-1:1,l=[\\\"start\\\"===s?a[0]-l*p:\\\"end\\\"===s?a[1]+l*p:(a[0]+a[1])/2,fM(s)?t.labelOffset+c*p:0],null!=(p=e.get(\\\"nameRotate\\\"))&&(p=p*lM/180),fM(s)?o=uM.innerTextLayout(t.rotation,null!=p?p:t.rotation,c):(u=t.rotation,c=cr((p||0)-u),p=a[0]>a[1],p=\\\"start\\\"===s&&!p||\\\"start\\\"!==s&&p,p=pr(c-lM/2)?(h=p?\\\"bottom\\\":\\\"top\\\",\\\"center\\\"):pr(c-1.5*lM)?(h=p?\\\"top\\\":\\\"bottom\\\",\\\"center\\\"):(h=\\\"middle\\\",c\u003C1.5*lM&&lM/2\u003Cc?p?\\\"left\\\":\\\"right\\\":p?\\\"right\\\":\\\"left\\\"),o={rotation:c,textAlign:p,textVerticalAlign:h},null==(h=t.axisNameAvailableWidth)||(h=Math.abs(h/Math.sin(o.rotation)),isFinite(h))||(h=null)),a=r.getFont(),c=(s=e.get(\\\"nameTruncate\\\",!0)||{}).ellipsis,p=wt(t.nameTruncateMaxWidth,s.maxWidth,h),xc({el:s=new z({x:l[0],y:l[1],rotation:o.rotation,silent:uM.isLabelSilent(e),style:Dc(r,{text:d,font:a,overflow:\\\"truncate\\\",width:p,ellipsis:c,fill:r.getTextColor()||e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),align:r.get(\\\"align\\\")||o.textAlign,verticalAlign:r.get(\\\"verticalAlign\\\")||o.textVerticalAlign}),z2:1}),componentModel:e,itemName:d}),s.__fullText=d,s.anid=\\\"name\\\",e.get(\\\"triggerEvent\\\")&&((l=uM.makeAxisEventDataBase(e)).targetType=\\\"axisName\\\",l.name=d,$(s).eventData=l),i.add(s),s.updateTransform(),n.add(s),s.decomposeTransform())}};function cM(t,e){this.group=new K,this.opt=e,this.axisModel=t,H(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new K({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}function pM(t){t&&(t.ignore=!0)}function dM(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return oo(n=to([]),n,-t.rotation),i.applyTransform(no([],n,t.getLocalTransform())),o.applyTransform(no([],n,e.getLocalTransform())),i.intersect(o)}function fM(t){return\\\"middle\\\"===t||\\\"center\\\"===t}function gM(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l\u003Ct.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(ee(a,a,e),ee(s,s,e)),new hh({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));u.anid=o+\\\"_\\\"+t[l].tickValue,r.push(u)}return r}function yM(t,e){var o,y,m,r,v,x,_,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return y=n,e=e,r=(m=t).getComponent(\\\"tooltip\\\"),v=m.getComponent(\\\"axisPointer\\\"),x=v.get(\\\"link\\\",!0)||[],_=[],lt(e.getCoordinateSystems(),function(d){var f,g,t,e,n;function i(t,e,r){var n,i,o,a,s,l,u,h,c=r.model.getModel(\\\"axisPointer\\\",v),p=c.get(\\\"show\\\");p&&(\\\"auto\\\"!==p||t||xM(c))&&(null==e&&(e=c.get(\\\"triggerTooltip\\\")),p=(c=t?(i=r,o=v,a=m,t=t,s=e,u=g.getModel(\\\"axisPointer\\\"),h={},lt([\\\"type\\\",\\\"snap\\\",\\\"lineStyle\\\",\\\"shadowStyle\\\",\\\"label\\\",\\\"animation\\\",\\\"animationDurationUpdate\\\",\\\"animationEasingUpdate\\\",\\\"z\\\"],function(t){h[t]=L(u.get(t))}),h.snap=\\\"category\\\"!==i.type&&!!s,\\\"cross\\\"===u.get(\\\"type\\\")&&(h.type=\\\"line\\\"),null==(p=h.label||(h.label={})).show&&(p.show=!1),\\\"cross\\\"===t&&(l=u.get([\\\"label\\\",\\\"show\\\"]),p.show=null==l||l,s||(l=h.lineStyle=u.get(\\\"crossStyle\\\"))&&H(p,l.textStyle)),i.model.getModel(\\\"axisPointer\\\",new qc(h,o,a))):c).get(\\\"snap\\\"),l=_M(r.model),n=e||p||\\\"category\\\"===r.type,p=y.axesInfo[l]={key:l,axis:r,coordSys:d,axisPointerModel:c,triggerTooltip:e,involveSeries:n,snap:p,useHandle:xM(c),seriesModels:[],linkGroup:null},f[l]=p,y.seriesInvolved=y.seriesInvolved||n,null!=(c=function(t){for(var e=r.model,n=r.dim,i=0;i\u003Ct.length;i++){var o=t[i]||{};if(mM(o[n+\\\"AxisId\\\"],e.id)||mM(o[n+\\\"AxisIndex\\\"],e.componentIndex)||mM(o[n+\\\"AxisName\\\"],e.name))return i}}(x)))&&((n=_[c]||(_[c]={axesInfo:{}})).axesInfo[l]=p,n.mapper=x[c].mapper,p.linkGroup=n)}d.axisPointerEnabled&&(t=_M(d.model),f=y.coordSysAxesInfo[t]={},g=(y.coordSysMap[t]=d).model.getModel(\\\"tooltip\\\",r),lt(d.getAxes(),D(i,!1,null)),d.getTooltipAxes)&&r&&g.get(\\\"show\\\")&&(t=\\\"axis\\\"===g.get(\\\"trigger\\\"),e=\\\"cross\\\"===g.get([\\\"axisPointer\\\",\\\"type\\\"]),n=d.getTooltipAxes(g.get([\\\"axisPointer\\\",\\\"axis\\\"])),(t||e)&<(n.baseAxes,D(i,!e||\\\"cross\\\",t)),e)&<(n.otherAxes,D(i,\\\"cross\\\",!1))}),n.seriesInvolved&&(o=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get([\\\"tooltip\\\",\\\"trigger\\\"],!0),e=n.get([\\\"tooltip\\\",\\\"show\\\"],!0);i&&\\\"none\\\"!==t&&!1!==t&&\\\"item\\\"!==t&&!1!==e&&!1!==n.get([\\\"axisPointer\\\",\\\"show\\\"],!0)&<(o.coordSysAxesInfo[_M(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function mM(t,e){return\\\"all\\\"===t||U(t)&&0\u003C=G(t,e)||t===e}function vM(t){var e=(t.ecModel.getComponent(\\\"axisPointer\\\")||{}).coordSysAxesInfo;return e&&e.axesInfo[_M(t)]}function xM(t){return!!t.get([\\\"handle\\\",\\\"show\\\"])}function _M(t){return t.type+\\\"||\\\"+t.id}var bM,wM={},SM=(u(IM,bM=fy),IM.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(u=vM(t))&&(s=u.axisPointerModel,o=u.axis.scale,r=s.option,l=s.get(\\\"status\\\"),null!=(a=s.get(\\\"value\\\"))&&(a=o.parse(a)),s=xM(s),null==l&&(r.status=s?\\\"show\\\":\\\"hide\\\"),(l=o.getExtent().slice())[0]>l[1]&&l.reverse(),(a=null==a||a>l[1]?l[1]:a)\u003Cl[0]&&(a=l[0]),r.value=a,s)&&(r.status=u.axis.scale.isBlank()?\\\"hide\\\":\\\"show\\\"),bM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},IM.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},IM.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},IM.prototype.dispose=function(t,e){this._disposeAxisPointer(e),bM.prototype.dispose.apply(this,arguments)},IM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=IM.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=vM(t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},IM.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},IM.registerAxisPointerClass=function(t,e){wM[t]=e},IM.getAxisPointerClass=function(t){return t&&wM[t]},IM.type=\\\"axis\\\",IM),MM=i();function IM(){var t=null!==bM&&bM.apply(this,arguments)||this;return t.type=IM.type,t}function TM(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel(\\\"splitArea\\\"),a=r.getModel(\\\"areaStyle\\\"),s=a.get(\\\"color\\\"),l=i.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:r,clamp:!0});if(u.length){var h=s.length,c=MM(t).splitAreaColors,p=N(),d=0;if(c)for(var f=0;f\u003Cu.length;f++){var g=c.get(u[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=o.toGlobalCoord(u[0].coord),m=a.getAreaStyle(),s=U(s)?s:[s],f=1;f\u003Cu.length;f++){var v=o.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0,y=o.isHorizontal()?(x=y,_=l.y,w=l.height,x+(b=v-x)):(x=l.x,_=y,b=l.width,_+(w=v-_)),v=u[f-1].tickValue;null!=v&&p.set(v,d),e.add(new E({anid:null!=v?\\\"area_\\\"+v:null,shape:{x:x,y:_,width:b,height:w},style:H({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}MM(t).splitAreaColors=p}}}function CM(t){MM(t).splitAreaColors=null}var DM,AM,kM,LM,PM=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],OM=[\\\"splitArea\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\"],e=(u(WM,LM=SM),WM.prototype.render=function(i,t,e,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new K,this.group.add(this._axisGroup),i.get(\\\"show\\\")&&(r=JS(o=i.getCoordSysModel(),i),r=new uM(i,Z({handleAutoShown:function(t){for(var e=o.coordinateSystem.getCartesians(),n=0;n\u003Ce.length;n++)if(e1(e[n].getOtherAxis(i.axis).scale))return!0;return!1}},r)),lt(PM,r.add,r),this._axisGroup.add(r.getGroup()),lt(OM,function(t){i.get([t,\\\"show\\\"])&&RM[t](this,this._axisGroup,i,o)},this),n&&\\\"changeAxisOrder\\\"===n.type&&n.isInitSort||dc(a,this._axisGroup,i),LM.prototype.render.call(this,i,t,e,n))},WM.prototype.remove=function(){CM(this)},WM.type=\\\"cartesianAxis\\\",WM),RM={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var r=n.getModel(\\\"splitLine\\\"),a=r.getModel(\\\"lineStyle\\\"),s=U(s=a.get(\\\"color\\\"))?s:[s],l=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=0,c=o.getTicksCoords({tickModel:r}),p=[],d=[],f=a.getLineStyle(),g=0;g\u003Cc.length;g++){var y=o.toGlobalCoord(c[g].coord),y=(u?(p[0]=y,p[1]=l.y,d[0]=y,d[1]=l.y+l.height):(p[0]=l.x,p[1]=y,d[0]=l.x+l.width,d[1]=y),h++%s.length),m=c[g].tickValue;e.add(new hh({anid:null!=m?\\\"line_\\\"+c[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:H({stroke:s[y]},f),silent:!0}))}},minorSplitLine:function(t,e,n,i){var o=n.axis,r=n.getModel(\\\"minorSplitLine\\\").getModel(\\\"lineStyle\\\"),a=i.coordinateSystem.getRect(),s=o.isHorizontal(),l=o.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=r.getLineStyle(),p=0;p\u003Cl.length;p++)for(var d=0;d\u003Cl[p].length;d++){var f=o.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f),e.add(new hh({anid:\\\"minor_line_\\\"+l[p][d].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0}))}},splitArea:function(t,e,n,i){TM(t,e,n,i)}},NM=(u(GM,kM=e),GM.type=\\\"xAxis\\\",GM),EM=(u(FM,AM=e),FM.type=\\\"yAxis\\\",FM),zM=(u(BM,DM=fy),BM.prototype.render=function(t,e){this.group.removeAll(),t.get(\\\"show\\\")&&this.group.add(new E({shape:t.coordinateSystem.getRect(),style:H({fill:t.get(\\\"backgroundColor\\\")},t.getItemStyle()),silent:!0,z2:-1}))},BM.type=\\\"grid\\\",BM),VM={offset:0};function BM(){var t=null!==DM&&DM.apply(this,arguments)||this;return t.type=\\\"grid\\\",t}function FM(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type=NM.type,t}function GM(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=GM.type,t}function WM(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=WM.type,t.axisPointerClass=\\\"CartesianAxisPointer\\\",t}function HM(t){t.registerComponentView(zM),t.registerComponentModel(LS),t.registerCoordinateSystem(\\\"cartesian2d\\\",iM),GS(t,\\\"x\\\",PS,VM),GS(t,\\\"y\\\",PS,VM),t.registerComponentView(NM),t.registerComponentView(EM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function YM(t){t.eachSeriesByType(\\\"radar\\\",function(t){var e,n=t.getData(),o=[],r=t.coordinateSystem;r&&(lt(e=r.getIndicatorAxes(),function(t,i){n.each(n.mapDimension(e[i].dim),function(t,e){o[e]=o[e]||[];var n=r.dataToPoint(t,i);o[e][i]=UM(n)?n:XM(r)})}),n.each(function(t){var e=dt(o[t],UM)||XM(r);o[t].push(e.slice()),n.setItemLayout(t,o[t])}))})}function UM(t){return!isNaN(t[0])&&!isNaN(t[1])}function XM(t){return[t.cx,t.cy]}function ZM(n){var i,t=n.polar;t&&(U(t)||(t=[t]),i=[],lt(t,function(t,e){(t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],U(n.radar)||(n.radar=[n.radar]),n.radar):i).push(t)}),n.polar=i),lt(n.series,function(t){t&&\\\"radar\\\"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}u(QM,qM=xy),QM.prototype.render=function(l,t,e){var n=l.coordinateSystem,h=this.group,c=l.getData(),s=this._data;function u(t,e,n,i,o,r){n.removeAll();for(var a=0;a\u003Ce.length-1;a++){var s=function(t,e){var n,i,o=t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\";if(\\\"none\\\"!==o)return n=Mm(t.getItemVisual(e,\\\"symbolSize\\\")),o=Sm(o,-1,-1,2,2),i=t.getItemVisual(e,\\\"symbolRotate\\\")||0,o.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:i*Math.PI/180||0}),o}(i,o);s&&(t[s.__dimIdx=a]?(s.setPosition(t[a]),wc[r?\\\"initProps\\\":\\\"updateProps\\\"](s,{x:e[a][0],y:e[a][1]},l,o)):s.setPosition(e[a]),n.add(s))}}function a(t){return Y(t,function(t){return[n.cx,n.cy]})}c.diff(s).add(function(t){var e,n,i,o,r=c.getItemLayout(t);r&&(e=new eh,n=new rh,i={shape:{points:r}},e.shape.points=a(r),n.shape.points=a(r),Yh(e,i,l,t),Yh(n,i,l,t),i=new K,o=new K,i.add(n),i.add(e),i.add(o),u(n.shape.points,r,o,c,t,!0),c.setItemGraphicEl(t,i))}).update(function(t,e){var n=s.getItemGraphicEl(e),i=n.childAt(0),o=n.childAt(1),r=n.childAt(2),a={shape:{points:c.getItemLayout(t)}};a.shape.points&&(u(i.shape.points,a.shape.points,r,c,t,!1),qh(o),qh(i),k(i,a,l),k(o,a,l),c.setItemGraphicEl(t,n))}).remove(function(t){h.remove(s.getItemGraphicEl(t))}).execute(),c.eachItemGraphicEl(function(t,n){var i=c.getItemModel(n),e=t.childAt(0),o=t.childAt(1),r=t.childAt(2),a=c.getItemVisual(n,\\\"style\\\"),s=a.fill,e=(h.add(t),e.useStyle(H(i.getModel(\\\"lineStyle\\\").getLineStyle(),{fill:\\\"none\\\",stroke:s})),$l(e,i,\\\"lineStyle\\\"),$l(o,i,\\\"areaStyle\\\"),i.getModel(\\\"areaStyle\\\")),l=e.isEmpty()&&e.parentModel.isEmpty(),e=(o.ignore=l,lt([\\\"emphasis\\\",\\\"select\\\",\\\"blur\\\"],function(t){var e=i.getModel([t,\\\"areaStyle\\\"]),e=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=e&&l}),o.useStyle(H(e.getAreaStyle(),{fill:s,opacity:.7,decal:a.decal})),i.getModel(\\\"emphasis\\\")),u=e.getModel(\\\"itemStyle\\\").getItemStyle();r.eachChild(function(t){t instanceof Ps?(e=t.style,t.useStyle(Z({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},a))):(t.useStyle(a),t.setColor(s),t.style.strokeNoScale=!0),t.ensureState(\\\"emphasis\\\").style=L(u);var e=c.getStore().get(c.getDimensionIndex(t.__dimIdx),n);null!=e&&!isNaN(e)||(e=\\\"\\\"),Tc(t,Cc(i),{labelFetcher:c.hostModel,labelDataIndex:n,labelDimIndex:t.__dimIdx,defaultText:e,inheritColor:s,defaultOpacity:a.opacity})}),Zl(t,e.get(\\\"focus\\\"),e.get(\\\"blurScope\\\"),e.get(\\\"disabled\\\"))}),this._data=c},QM.prototype.remove=function(){this.group.removeAll(),this._data=null},QM.type=\\\"radar\\\";var jM,qM,KM=QM,$M=(u(JM,jM=ry),JM.prototype.init=function(t){jM.prototype.init.apply(this,arguments),this.legendVisualProvider=new mS(I(this.getData,this),I(this.getRawData,this))},JM.prototype.getInitialData=function(t,e){return gS(this,{generateCoord:\\\"indicator_\\\",generateCoordCount:1/0})},JM.prototype.formatTooltip=function(n,t,e){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(n),r=\\\"\\\"===r?this.name:r,a=$g(this,n);return Hg(\\\"section\\\",{header:r,sortBlocks:!0,blocks:Y(o,function(t){var e=i.get(i.mapDimension(t.dim),n);return Hg(\\\"nameValue\\\",{markerType:\\\"subItem\\\",markerColor:a,name:t.name,value:e,sortParam:e})})})},JM.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(Y(n.dimensions,function(t){return e.mapDimension(t)}),t),o=0,r=i.length;o\u003Cr;o++){var a;if(!isNaN(i[o]))return a=n.getIndicatorAxes(),n.coordToPoint(a[o].dataToCoord(i[o]),o)}},JM.type=\\\"series.radar\\\",JM.dependencies=[\\\"radar\\\"],JM.defaultOption={z:2,colorBy:\\\"data\\\",coordinateSystem:\\\"radar\\\",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:\\\"solid\\\",join:\\\"round\\\"},label:{position:\\\"top\\\"},symbolSize:8},JM),hd=BS.value;function JM(){var t=null!==jM&&jM.apply(this,arguments)||this;return t.type=JM.type,t.hasSymbolVisual=!0,t}function QM(){var t=null!==qM&&qM.apply(this,arguments)||this;return t.type=QM.type,t}function tI(t,e){return H({show:e},t)}u(pI,iI=m),pI.prototype.optionUpdated=function(){var i=this.get(\\\"boundaryGap\\\"),o=this.get(\\\"splitNumber\\\"),r=this.get(\\\"scale\\\"),a=this.get(\\\"axisLine\\\"),s=this.get(\\\"axisTick\\\"),l=this.get(\\\"axisLabel\\\"),u=this.get(\\\"axisName\\\"),h=this.get([\\\"axisName\\\",\\\"show\\\"]),c=this.get([\\\"axisName\\\",\\\"formatter\\\"]),p=this.get(\\\"axisNameGap\\\"),d=this.get(\\\"triggerEvent\\\"),t=Y(this.get(\\\"indicator\\\")||[],function(t){null!=t.max&&0\u003Ct.max&&!t.min?t.min=0:null!=t.min&&t.min\u003C0&&!t.max&&(t.max=0);var e=u,e=(null!=t.color&&(e=H({color:t.color},u)),v(L(t),{boundaryGap:i,splitNumber:o,scale:r,axisLine:a,axisTick:s,axisLabel:l,name:t.text,showName:h,nameLocation:\\\"end\\\",nameGap:p,nameTextStyle:e,triggerEvent:d},!1)),n=(h||(e.name=\\\"\\\"),X(c)?(n=e.name,e.name=c.replace(\\\"{value}\\\",null!=n?n:\\\"\\\")):A(c)&&(e.name=c(e.name,e)),new qc(e,null,this.ecModel));return ut(n,ox.prototype),n.mainType=\\\"radar\\\",n.componentIndex=this.componentIndex,n},this);this._indicatorModels=t},pI.prototype.getIndicatorModels=function(){return this._indicatorModels},pI.type=\\\"radar\\\",pI.defaultOption={z:0,center:[\\\"50%\\\",\\\"50%\\\"],radius:\\\"75%\\\",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:\\\"polygon\\\",axisLine:v({lineStyle:{color:\\\"#bbb\\\"}},hd.axisLine),axisLabel:tI(hd.axisLabel,!1),axisTick:tI(hd.axisTick,!1),splitLine:tI(hd.splitLine,!0),splitArea:tI(hd.splitArea,!0),indicator:[]};var eI,nI,iI,oI=pI,rI=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],aI=(u(cI,nI=fy),cI.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},cI.prototype._buildAxes=function(t){var n=t.coordinateSystem;lt(Y(n.getIndicatorAxes(),function(t){var e=t.model.get(\\\"showName\\\")?t.name:\\\"\\\";return new uM(t.model,{axisName:e,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){lt(rI,t.add,t),this.group.add(t.getGroup())},this)},cI.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,e=i.getIndicatorAxes();if(e.length){var n=t.get(\\\"shape\\\"),o=t.getModel(\\\"splitLine\\\"),r=t.getModel(\\\"splitArea\\\"),a=o.getModel(\\\"lineStyle\\\"),s=r.getModel(\\\"areaStyle\\\"),l=o.get(\\\"show\\\"),u=r.get(\\\"show\\\"),o=a.get(\\\"color\\\"),r=s.get(\\\"color\\\"),h=U(o)?o:[o],c=U(r)?r:[r],p=[],d=[];if(\\\"circle\\\"===n)for(var f=e[0].getTicksCoords(),g=i.cx,y=i.cy,m=0;m\u003Cf.length;m++)l&&p[I(p,h,m)].push(new Tu({shape:{cx:g,cy:y,r:f[m].coord}})),u&&m\u003Cf.length-1&&d[I(d,c,m)].push(new Ku({shape:{cx:g,cy:y,r0:f[m].coord,r:f[m+1].coord}}));else for(var v,x=Y(e,function(t,e){var n=t.getTicksCoords();return v=null==v?n.length-1:Math.min(n.length-1,v),Y(n,function(t){return i.coordToPoint(t.coord,e)})}),_=[],m=0;m\u003C=v;m++){for(var b=[],w=0;w\u003Ce.length;w++)b.push(x[w][m]);b[0]&&b.push(b[0].slice()),l&&p[I(p,h,m)].push(new rh({shape:{points:b}})),u&&_&&d[I(d,c,m-1)].push(new eh({shape:{points:b.concat(_)}})),_=b.slice().reverse()}var S=a.getLineStyle(),M=s.getAreaStyle();lt(d,function(t,e){this.group.add(ac(t,{style:H({stroke:\\\"none\\\",fill:c[e%c.length]},M),silent:!0}))},this),lt(p,function(t,e){this.group.add(ac(t,{style:H({fill:\\\"none\\\",stroke:h[e%h.length]},S),silent:!0}))},this)}function I(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},cI.type=\\\"radar\\\",cI),sI=(u(hI,eI=Xc),hI),lI=(uI.prototype.getIndicatorAxes=function(){return this._indicatorAxes},uI.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},uI.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},uI.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var o,r=Math.atan2(-n,e),a=1/0,s=-1,l=0;l\u003Cthis._indicatorAxes.length;l++){var u=this._indicatorAxes[l],h=Math.abs(r-u.angle);h\u003Ca&&(o=u,s=l,a=h)}return[s,+(o&&o.coordToData(i))]},uI.prototype.resize=function(t,e){var n=t.get(\\\"center\\\"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o)/2,i=(this.cx=F(n[0],i),this.cy=F(n[1],o),this.startAngle=t.get(\\\"startAngle\\\")*Math.PI/180,t.get(\\\"radius\\\"));(X(i)||j(i))&&(i=[0,i]),this.r0=F(i[0],r),this.r=F(i[1],r),lt(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length,n=Math.atan2(Math.sin(n),Math.cos(n));t.angle=n},this)},uI.prototype.update=function(i,t){var o=this._indicatorAxes,r=this._model,e=(lt(o,function(t){t.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType(\\\"radar\\\",function(t,e){var n;\\\"radar\\\"===t.get(\\\"coordinateSystem\\\")&&i.getComponent(\\\"radar\\\",t.get(\\\"radarIndex\\\"))===r&&(n=t.getData(),lt(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this),r.get(\\\"splitNumber\\\")),n=new d1;n.setExtent(0,e),n.setInterval(1),lt(o,function(t,e){nM(t.scale,t.model,n)})},uI.prototype.convertToPixel=function(t,e,n){return console.warn(\\\"Not implemented.\\\"),null},uI.prototype.convertFromPixel=function(t,e,n){return console.warn(\\\"Not implemented.\\\"),null},uI.prototype.containPoint=function(t){return console.warn(\\\"Not implemented.\\\"),!1},uI.create=function(t,n){var i=[];return t.eachComponent(\\\"radar\\\",function(t){var e=new uI(t,0,n);i.push(e),t.coordinateSystem=e}),t.eachSeriesByType(\\\"radar\\\",function(t){\\\"radar\\\"===t.get(\\\"coordinateSystem\\\")&&(t.coordinateSystem=i[t.get(\\\"radarIndex\\\")||0])}),i},uI.dimensions=[],uI);function uI(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Y(t.getIndicatorModels(),function(t,e){var n=\\\"indicator_\\\"+e,i=new sI(n,new d1);return i.name=t.get(\\\"name\\\"),(i.model=t).axis=i,this.dimensions.push(n),i},this),this.resize(t,n)}function hI(t,e,n){var i=eI.call(this,t,e,n)||this;return i.type=\\\"value\\\",i.angle=0,i.name=\\\"\\\",i}function cI(){var t=null!==nI&&nI.apply(this,arguments)||this;return t.type=cI.type,t}function pI(){var t=null!==iI&&iI.apply(this,arguments)||this;return t.type=pI.type,t}function dI(t){t.registerCoordinateSystem(\\\"radar\\\",lI),t.registerComponentModel(oI),t.registerComponentView(aI),t.registerVisual({seriesType:\\\"radar\\\",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,\\\"legendIcon\\\",\\\"roundRect\\\")}),e.setVisual(\\\"legendIcon\\\",\\\"roundRect\\\")}})}var fI=\\\"\\\\0_ec_interaction_mutex\\\";function gI(t,e){return yI(t)[e]}function yI(t){return t[fI]||(t[fI]={})}nv({type:\\\"takeGlobalCursor\\\",event:\\\"globalCursorTaken\\\",update:\\\"update\\\"},Et);u(xI,mI=se),xI.prototype.isDragging=function(){return this._dragging},xI.prototype.isPinching=function(){return this._pinching},xI.prototype.setPointerChecker=function(t){this.pointerChecker=t},xI.prototype.dispose=function(){this.disable()},xI.prototype._mousedownHandler=function(t){var e,n;Ie(t)||t.target&&t.target.draggable||(e=t.offsetX,n=t.offsetY,this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0))},xI.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&wI(\\\"moveOnMouseMove\\\",t,this._opt)&&\\\"pinch\\\"!==t.gestureEvent&&!gI(this._zr,\\\"globalPan\\\")&&(e=t.offsetX,n=t.offsetY,r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Me(t.event),bI(this,\\\"pan\\\",\\\"moveOnMouseMove\\\",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},xI.prototype._mouseupHandler=function(t){Ie(t)||(this._dragging=!1)},xI.prototype._mousewheelHandler=function(t){var e=wI(\\\"zoomOnMouseWheel\\\",t,this._opt),n=wI(\\\"moveOnMouseWheel\\\",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(e=3\u003Co?1.4:1\u003Co?1.2:1.1,_I(this,\\\"zoom\\\",\\\"zoomOnMouseWheel\\\",t,{scale:0\u003Ci?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&_I(this,\\\"scrollMove\\\",\\\"moveOnMouseWheel\\\",t,{scrollDelta:(0\u003Ci?1:-1)*(3\u003C(o=Math.abs(i))?.4:1\u003Co?.15:.05),originX:r,originY:a,isAvailableBehavior:null})},xI.prototype._pinchHandler=function(t){gI(this._zr,\\\"globalPan\\\")||_I(this,\\\"zoom\\\",null,t,{scale:1\u003Ct.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var mI,vI=xI;function xI(n){var t=mI.call(this)||this,i=(t._zr=n,I(t._mousedownHandler,t)),o=I(t._mousemoveHandler,t),r=I(t._mouseupHandler,t),a=I(t._mousewheelHandler,t),s=I(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=H(L(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&\\\"move\\\"!==t&&\\\"pan\\\"!==t||(n.on(\\\"mousedown\\\",i),n.on(\\\"mousemove\\\",o),n.on(\\\"mouseup\\\",r)),!0!==t&&\\\"scale\\\"!==t&&\\\"zoom\\\"!==t||(n.on(\\\"mousewheel\\\",a),n.on(\\\"pinch\\\",s))},t.disable=function(){n.off(\\\"mousedown\\\",i),n.off(\\\"mousemove\\\",o),n.off(\\\"mouseup\\\",r),n.off(\\\"mousewheel\\\",a),n.off(\\\"pinch\\\",s)},t}function _I(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Me(i.event),bI(t,e,n,i,o))}function bI(t,e,n,i,o){o.isAvailableBehavior=I(wI,null,n,i),t.trigger(e,o)}function wI(t,e,n){var i=n[t];return!t||i&&(!X(i)||e.event[i+\\\"Key\\\"])}function SI(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function MI(t,e,n,i){var o,r=t.target,a=t.zoomLimit,s=t.zoom=t.zoom||1,a=(s*=e,a&&(o=a.min||0,a=a.max||1/0,s=Math.max(Math.min(a,s),o)),s/t.zoom);t.zoom=s,r.x-=(n-r.x)*(a-1),r.y-=(i-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a,r.dirty()}var II,TI={axisPointer:1,tooltip:1,brush:1};function CI(t,e,n){var i=e.getComponentByElement(t.topTarget),o=i&&i.coordinateSystem;return i&&i!==n&&!TI.hasOwnProperty(i.mainType)&&o&&o.model!==n}function DI(t){var e=t=X(t)?(new DOMParser).parseFromString(t,\\\"text/xml\\\"):t;for(9===e.nodeType&&(e=e.firstChild);\\\"svg\\\"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var AI={fill:\\\"fill\\\",stroke:\\\"stroke\\\",\\\"stroke-width\\\":\\\"lineWidth\\\",opacity:\\\"opacity\\\",\\\"fill-opacity\\\":\\\"fillOpacity\\\",\\\"stroke-opacity\\\":\\\"strokeOpacity\\\",\\\"stroke-dasharray\\\":\\\"lineDash\\\",\\\"stroke-dashoffset\\\":\\\"lineDashOffset\\\",\\\"stroke-linecap\\\":\\\"lineCap\\\",\\\"stroke-linejoin\\\":\\\"lineJoin\\\",\\\"stroke-miterlimit\\\":\\\"miterLimit\\\",\\\"font-family\\\":\\\"fontFamily\\\",\\\"font-size\\\":\\\"fontSize\\\",\\\"font-style\\\":\\\"fontStyle\\\",\\\"font-weight\\\":\\\"fontWeight\\\",\\\"text-anchor\\\":\\\"textAlign\\\",visibility:\\\"visibility\\\",display:\\\"display\\\"},kI=W(AI),LI={\\\"alignment-baseline\\\":\\\"textBaseline\\\",\\\"stop-color\\\":\\\"stopColor\\\"},PI=W(LI),OI=(NI.prototype.parse=function(t,e){e=e||{};var n=DI(t),i=(this._defsUsePending=[],new K),o=(this._root=i,[]),r=n.getAttribute(\\\"viewBox\\\")||\\\"\\\",a=parseFloat(n.getAttribute(\\\"width\\\")||e.width),s=parseFloat(n.getAttribute(\\\"height\\\")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),FI(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,o,null,!1,!1),h=h.nextSibling;for(var c=this._defs,p=this._defsUsePending,d=0;d\u003Cp.length;d++){var f=p[d];f[0].style[f[1]]=c[f[2]]}return this._defsUsePending=[],(l=r&&4\u003C=(n=YI(r)).length?{x:parseFloat(n[0]||0),y:parseFloat(n[1]||0),width:parseFloat(n[2]),height:parseFloat(n[3])}:l)&&null!=a&&null!=s&&(u=qI(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)&&(r=i,(i=new K).add(r),r.scaleX=r.scaleY=u.scale,r.x=u.x,r.y=u.y),e.ignoreRootClip||null==a||null==s||i.setClipPath(new E({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:o}},NI.prototype._parseNode=function(t,e,n,i,o,r){var a,s,l=t.nodeName.toLowerCase(),u=i;if(\\\"defs\\\"===l&&(o=!0),\\\"text\\\"===l&&(r=!0),\\\"defs\\\"===l||\\\"switch\\\"===l?a=e:(o||(s=II[l])&&q(II,l)&&(a=s.call(this,t,e),(s=t.getAttribute(\\\"name\\\"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:l,el:a}),\\\"g\\\"===l&&(u=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a}),e.add(a)),(s=RI[l])&&q(RI,l)&&(l=s.call(this,t),s=t.getAttribute(\\\"id\\\"))&&(this._defs[s]=l)),a&&a.isGroup)for(var h=t.firstChild;h;)1===h.nodeType?this._parseNode(h,a,n,u,o,r):3===h.nodeType&&r&&this._parseText(h,a),h=h.nextSibling},NI.prototype._parseText=function(t,e){var n,i=new Ts({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),o=(VI(e,i),FI(t,i,this._defsUsePending,!1,!1),t=i,(o=(n=e).__selfStyle)&&(!(r=o=o.textBaseline)||\\\"auto\\\"===o||\\\"baseline\\\"===o?r=\\\"alphabetic\\\":\\\"before-edge\\\"===o||\\\"text-before-edge\\\"===o?r=\\\"top\\\":\\\"after-edge\\\"===o||\\\"text-after-edge\\\"===o?r=\\\"bottom\\\":\\\"central\\\"!==o&&\\\"mathematical\\\"!==o||(r=\\\"middle\\\"),t.style.textBaseline=r),(o=n.__inheritedStyle)&&(r=o.textAlign)&&(t.style.textAlign=\\\"middle\\\"===r?\\\"center\\\":r),i.style),r=o.fontSize,a=(r&&r\u003C9&&(o.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9),(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+\\\"px\\\",o.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\")),o=(o.font=a,i.getBoundingRect());return this._textX+=o.width,e.add(i),i},NI.internalField=void(II={g:function(t,e){var n=new K;return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new E;return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute(\\\"x\\\")||\\\"0\\\"),y:parseFloat(t.getAttribute(\\\"y\\\")||\\\"0\\\"),width:parseFloat(t.getAttribute(\\\"width\\\")||\\\"0\\\"),height:parseFloat(t.getAttribute(\\\"height\\\")||\\\"0\\\")}),n.silent=!0,n},circle:function(t,e){var n=new Tu;return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute(\\\"cx\\\")||\\\"0\\\"),cy:parseFloat(t.getAttribute(\\\"cy\\\")||\\\"0\\\"),r:parseFloat(t.getAttribute(\\\"r\\\")||\\\"0\\\")}),n.silent=!0,n},line:function(t,e){var n=new hh;return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute(\\\"x1\\\")||\\\"0\\\"),y1:parseFloat(t.getAttribute(\\\"y1\\\")||\\\"0\\\"),x2:parseFloat(t.getAttribute(\\\"x2\\\")||\\\"0\\\"),y2:parseFloat(t.getAttribute(\\\"y2\\\")||\\\"0\\\")}),n.silent=!0,n},ellipse:function(t,e){var n=new ku;return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute(\\\"cx\\\")||\\\"0\\\"),cy:parseFloat(t.getAttribute(\\\"cy\\\")||\\\"0\\\"),rx:parseFloat(t.getAttribute(\\\"rx\\\")||\\\"0\\\"),ry:parseFloat(t.getAttribute(\\\"ry\\\")||\\\"0\\\")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute(\\\"points\\\"),i=(i&&(n=BI(i)),new eh({shape:{points:n||[]},silent:!0}));return VI(e,i),FI(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute(\\\"points\\\"),i=(i&&(n=BI(i)),new rh({shape:{points:n||[]},silent:!0}));return VI(e,i),FI(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Ps;return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute(\\\"xlink:href\\\")||t.getAttribute(\\\"href\\\"),x:+t.getAttribute(\\\"x\\\"),y:+t.getAttribute(\\\"y\\\"),width:+t.getAttribute(\\\"width\\\"),height:+t.getAttribute(\\\"height\\\")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute(\\\"x\\\")||\\\"0\\\",i=t.getAttribute(\\\"y\\\")||\\\"0\\\",o=t.getAttribute(\\\"dx\\\")||\\\"0\\\",r=t.getAttribute(\\\"dy\\\")||\\\"0\\\",n=(this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r),new K);return VI(e,n),FI(t,n,this._defsUsePending,!1,!0),n},tspan:function(t,e){var n=t.getAttribute(\\\"x\\\"),i=t.getAttribute(\\\"y\\\"),n=(null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i)),t.getAttribute(\\\"dx\\\")||\\\"0\\\"),i=t.getAttribute(\\\"dy\\\")||\\\"0\\\",o=new K;return VI(e,o),FI(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=wu(t.getAttribute(\\\"d\\\")||\\\"\\\");return VI(e,n),FI(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),NI),RI={lineargradient:function(t){var e=parseInt(t.getAttribute(\\\"x1\\\")||\\\"0\\\",10),n=parseInt(t.getAttribute(\\\"y1\\\")||\\\"0\\\",10),i=parseInt(t.getAttribute(\\\"x2\\\")||\\\"10\\\",10),o=parseInt(t.getAttribute(\\\"y2\\\")||\\\"0\\\",10),e=new Ch(e,n,i,o);return EI(t,e),zI(t,e),e},radialgradient:function(t){var e=parseInt(t.getAttribute(\\\"cx\\\")||\\\"0\\\",10),n=parseInt(t.getAttribute(\\\"cy\\\")||\\\"0\\\",10),i=parseInt(t.getAttribute(\\\"r\\\")||\\\"0\\\",10),e=new Dh(e,n,i);return EI(t,e),zI(t,e),e}};function NI(){this._defs={},this._root=null}function EI(t,e){\\\"userSpaceOnUse\\\"===t.getAttribute(\\\"gradientUnits\\\")&&(e.global=!0)}function zI(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&\\\"stop\\\"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute(\\\"offset\\\"))&&0\u003Ci.indexOf(\\\"%\\\")?parseInt(i,10)/100:i?parseFloat(i):0,jI(o,i={},i),i=i.stopColor||o.getAttribute(\\\"stop-color\\\")||\\\"#000000\\\",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function VI(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),H(e.__inheritedStyle,t.__inheritedStyle))}function BI(t){for(var e=YI(t),n=[],i=0;i\u003Ce.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function FI(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};if(1===t.nodeType){if(l=t.getAttribute(\\\"transform\\\")){var l=l.replace(/,/g,\\\" \\\"),u=[],h=null;l.replace(UI,function(t,e,n){return u.push(e,n),\\\"\\\"});for(var c=u.length-1;0\u003Cc;c-=2){var p=u[c-1],d=YI(u[c]),h=h||[1,0,0,1,0,0];switch(p){case\\\"translate\\\":io(h,h,[parseFloat(d[0]),parseFloat(d[1]||\\\"0\\\")]);break;case\\\"scale\\\":ro(h,h,[parseFloat(d[0]),parseFloat(d[1]||d[0])]);break;case\\\"rotate\\\":oo(h,h,-parseFloat(d[0])*XI);break;case\\\"skewX\\\":no(h,[1,0,Math.tan(parseFloat(d[0])*XI),1,0,0],h);break;case\\\"skewY\\\":no(h,[1,Math.tan(parseFloat(d[0])*XI),0,1,0,0],h);break;case\\\"matrix\\\":h[0]=parseFloat(d[0]),h[1]=parseFloat(d[1]),h[2]=parseFloat(d[2]),h[3]=parseFloat(d[3]),h[4]=parseFloat(d[4]),h[5]=parseFloat(d[5])}}e.setLocalTransform(h)}if(jI(t,a,s),!i){for(var f=t,g=a,y=s,m=0;m\u003CkI.length;m++){var v=kI[m];null!=(x=f.getAttribute(v))&&(g[AI[v]]=x)}for(m=0;m\u003CPI.length;m++){var x,v=PI[m];null!=(x=f.getAttribute(v))&&(y[LI[v]]=x)}}}r.style=r.style||{},null!=a.fill&&(r.style.fill=WI(r,\\\"fill\\\",a.fill,n)),null!=a.stroke&&(r.style.stroke=WI(r,\\\"stroke\\\",a.stroke,n)),lt([\\\"lineWidth\\\",\\\"opacity\\\",\\\"fillOpacity\\\",\\\"strokeOpacity\\\",\\\"miterLimit\\\",\\\"fontSize\\\"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),lt([\\\"lineDashOffset\\\",\\\"lineCap\\\",\\\"lineJoin\\\",\\\"fontWeight\\\",\\\"fontFamily\\\",\\\"fontStyle\\\",\\\"textAlign\\\"],function(t){null!=a[t]&&(r.style[t]=a[t])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=Y(YI(a.lineDash),function(t){return parseFloat(t)})),\\\"hidden\\\"!==a.visibility&&\\\"collapse\\\"!==a.visibility||(r.invisible=!0),\\\"none\\\"===a.display&&(r.ignore=!0)}var GI=/^url\\\\(\\\\s*#(.*?)\\\\)/;function WI(t,e,n,i){var o=n&&n.match(GI);if(!o)return n=\\\"none\\\"===n?null:n;o=Ct(o[1]);i.push([t,e,o])}var HI=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g;function YI(t){return t.match(HI)||[]}var UI=/(translate|scale|rotate|skewX|skewY|matrix)\\\\(([\\\\-\\\\s0-9\\\\.eE,]*)\\\\)/g,XI=Math.PI/180,ZI=/([^\\\\s:;]+)\\\\s*:\\\\s*([^:;]+)/g;function jI(t,e,n){var i,o=t.getAttribute(\\\"style\\\");if(o)for(ZI.lastIndex=0;null!=(i=ZI.exec(o));){var r=i[1],a=q(AI,r)?AI[r]:null,a=(a&&(e[a]=i[2]),q(LI,r)?LI[r]:null);a&&(n[a]=i[2])}}function qI(t,e){var n=e.width/t.width,i=e.height/t.height,n=Math.min(n,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}var KI=N([\\\"rect\\\",\\\"circle\\\",\\\"line\\\",\\\"ellipse\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"path\\\",\\\"text\\\",\\\"tspan\\\",\\\"g\\\"]),$I=(JI.prototype.load=function(){var t,e,n,i,o;return this._firstGraphic||(t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone(),n=t.named,i=[],o=N(),lt(n,function(t){var e;null==t.namedFrom&&(e=new yx(t.name,t.el),i.push(e),o.set(t.name,e))}),e=(t={regions:i,regionsMap:o}).regionsMap,this._regions=t.regions,this._regionsMap=e),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},JI.prototype._buildGraphic=function(t){var e,n;try{Tt(null!=(n=(e=t&&(s=t,l={ignoreViewBox:!0,ignoreRootClip:!0},(new OI).parse(s,l))||{}).root))}catch(t){throw new Error(\\\"Invalid svg format\\\\n\\\"+t.message)}var i,o,r,a,s=new K,l=(s.add(n),s.isGeoSVGGraphicRoot=!0,e.width),u=e.height,h=e.viewBoxRect,c=this._boundingRect,p=(c||(a=r=o=i=void 0,null!=l?(i=0,r=l):h&&(i=h.x,r=h.width),null!=u?(o=0,a=u):h&&(o=h.y,a=h.height),null!=i&&null!=o||(l=n.getBoundingRect(),null==i&&(i=l.x,r=l.width),null==o&&(o=l.y,a=l.height)),c=this._boundingRect=new B(i,o,r,a)),h&&(u=qI(h,c),n.scaleX=n.scaleY=u.scale,n.x=u.x,n.y=u.y),s.setClipPath(new E({shape:c.plain()})),[]);return lt(e.named,function(t){var e;null!=KI.get(t.svgNodeTagLower)&&(p.push(t),(e=t.el).silent=!1,e.isGroup)&&e.traverse(function(t){t.silent=!1})}),{root:s,boundingRect:c,named:p}},JI.prototype.useGraphic=function(t){var e,n=this._usedGraphicMap;return n.get(t)||(e=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,e),e)},JI.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},JI);function JI(t,e){this.type=\\\"geoSVG\\\",this._usedGraphicMap=N(),this._freedGraphics=[],this._mapName=t,this._parsedXML=DI(e)}for(var QI=[126,25],t2=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],e2=0;e2\u003Ct2.length;e2++)for(var n2=0;n2\u003Ct2[e2].length;n2++)t2[e2][n2][0]/=10.5,t2[e2][n2][1]/=-14,t2[e2][n2][0]+=QI[0],t2[e2][n2][1]+=QI[1];var i2={\\\"南海诸岛\\\":[32,80],\\\"广东\\\":[0,-10],\\\"香港\\\":[10,5],\\\"澳门\\\":[-10,10],\\\"天津\\\":[5,5]},o2=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],r2=(a2.prototype.load=function(n,t){var e,i=this._parsedMap.get(t=t||\\\"name\\\"),o=(i||(e=this._parseToRegions(t),i=this._parsedMap.set(t,{regions:e,boundingRect:function(t){for(var e,n=0;n\u003Ct.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(e)})),N()),r=[];return lt(i.regions,function(t){var e=t.name;n&&q(n,e)&&(t=t.cloneShallow(e=n[e])),r.push(t),o.set(e,t)}),{regions:r,boundingRect:i.boundingRect||new B(0,0,0,0),regionsMap:o}},a2.prototype._parseToRegions=function(t){var e,r=this._mapName,n=this._geoJSON;try{e=n?Sx(n,t):[]}catch(t){throw new Error(\\\"Invalid geoJson format\\\\n\\\"+t.message)}return function(t){if(\\\"china\\\"===r){for(var e=0;e\u003Ct.length;e++)if(\\\"南海诸岛\\\"===t[e].name)return;t.push(new gx(\\\"南海诸岛\\\",Y(t2,function(t){return{type:\\\"polygon\\\",exterior:t}}),QI))}}(e),lt(e,function(t){var e,n,i=t.name,o=(e=t,\\\"china\\\"===r&&(o=i2[e.name])&&((n=e.getCenter())[0]+=o[0]/10.5,n[1]+=-o[1]/14,e.setCenter(n)),e=t,\\\"china\\\"===r&&\\\"台湾\\\"===e.name&&e.geometries.push({type:\\\"polygon\\\",exterior:o2[0]}),this._specialAreas&&this._specialAreas[i]);o&&t.transformTo(o.left,o.top,o.width,o.height)},this),e},a2.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},a2);function a2(t,e,n){var i;this.type=\\\"geoJSON\\\",this._parsedMap=N(),this._mapName=t,this._specialAreas=n,this._geoJSON=X(i=e)?\\\"undefined\\\"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function(\\\"return (\\\"+i+\\\");\\\")():i}var s2=N(),l2=function(t,e,n){var i=e.svg?new $I(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new r2(t,i,n));s2.set(t,i)},u2=function(t){return s2.get(t)},h2=function(t,e,n){var i=s2.get(t);if(i)return i.load(e,n)},e=[\\\"rect\\\",\\\"circle\\\",\\\"line\\\",\\\"ellipse\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"path\\\"],c2=N(e),p2=N(e.concat([\\\"g\\\"])),d2=N(e.concat([\\\"g\\\"])),f2=i();function g2(t){var e=t.getItemStyle(),n=t.get(\\\"areaColor\\\");return null!=n&&(e.fill=n),e}function y2(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}v2.prototype.draw=function(e,t,n,i,o){var r=\\\"geo\\\"===e.mainType,a=e.getData&&e.getData(),s=(r&&t.eachComponent({mainType:\\\"series\\\",subType:\\\"map\\\"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}),e.coordinateSystem),l=this._regionsGroup,u=this.group,h=s.getTransformInfo(),c=h.raw,h=h.roam,u=(!l.childAt(0)||o?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):k(u,h,e),a&&a.getVisual(\\\"visualMeta\\\")&&0\u003Ca.getVisual(\\\"visualMeta\\\").length),h={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:u,isGeo:r,transformInfoRaw:c};\\\"geoJSON\\\"===s.resourceType?this._buildGeoJSON(h):\\\"geoSVG\\\"===s.resourceType&&this._buildSVG(h),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},v2.prototype._buildGeoJSON=function(h){var c=this._regionsGroupByName=N(),p=N(),d=this._regionsGroup,n=h.transformInfoRaw,f=h.mapOrGeoModel,g=h.data,y=h.geo.projection,m=y&&y.stream;function v(t,e){return(t=e?e(t):t)&&[t[0]*n.scaleX+n.x,t[1]*n.scaleY+n.y]}function x(t){return{shape:{points:function(t){for(var e=[],n=!m&&y&&y.project,i=0;i\u003Ct.length;++i){var o=v(t[i],n);o&&e.push(o)}return e}(t)}}}d.removeAll(),lt(h.geo.regions,function(t){var i=t.name,o=c.get(i),e=p.get(i)||{},r=e.dataIdx,a=e.regionModel,n=(o||(o=c.set(i,new K),d.add(o),r=g?g.indexOfName(i):null,a=h.isGeo?f.getRegionModel(i):g?g.getItemModel(r):null,p.set(i,{dataIdx:r,regionModel:a})),[]),s=[],l=(lt(t.geometries,function(t){var e;\\\"polygon\\\"===t.type?(e=[t.exterior].concat(t.interiors||[]),lt(e=m?M2(e,m):e,function(t){n.push(new eh(x(t)))})):(e=t.points,lt(e=m?M2(e,m,!0):e,function(t){s.push(new rh(x(t)))}))}),v(t.getCenter(),y&&y.project));function u(t,e){var n;t.length&&(n=new Th({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}}),o.add(n),x2(h,n,r,a),_2(h,n,i,a,f,r,l),e)&&(y2(n),lt(n.states,y2))}u(n),u(s,!0)}),c.each(function(t,e){var n=p.get(e),i=n.dataIdx,n=n.regionModel;b2(h,t,e,n,f,i),w2(h,t,e,n,f),S2(h,t,e,n,f)},this)},v2.prototype._buildSVG=function(s){var t=s.geo.map,e=s.transformInfoRaw,l=(this._svgGroup.x=e.x,this._svgGroup.y=e.y,this._svgGroup.scaleX=e.scaleX,this._svgGroup.scaleY=e.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t)),this._svgDispatcherMap=N()),u=!1;lt(this._svgGraphicRecord.named,function(t){var e=t.name,n=s.mapOrGeoModel,i=s.data,o=t.svgNodeTagLower,r=t.el,i=i?i.indexOfName(e):null,a=n.getRegionModel(e);null!=c2.get(o)&&r instanceof Ca&&x2(s,r,i,a),r instanceof Ca&&(r.culling=!0),r.z2EmphasisLift=0,t.namedFrom||(null!=d2.get(o)&&_2(s,r,e,a,n,i,null),b2(s,r,e,a,n,i),w2(s,r,e,a,n),null!=p2.get(o)&&(\\\"self\\\"===S2(s,r,e,a,n)&&(u=!0),(l.get(e)||l.set(e,[])).push(r)))},this),this._enableBlurEntireSVG(u,s)},v2.prototype._enableBlurEntireSVG=function(t,e){var n;t&&e.isGeo&&(n=e.mapOrGeoModel.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle().opacity,this._svgGraphicRecord.root.traverse(function(t){var e;t.isGroup||(Ll(t),null==(e=t.ensureState(\\\"blur\\\").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState(\\\"emphasis\\\"))}))},v2.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},v2.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if(\\\"geoJSON\\\"===n.resourceType){var i=this._regionsGroupByName;if(i)return(i=i.get(t))?[i]:[]}else if(\\\"geoSVG\\\"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},v2.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},v2.prototype._useSVG=function(t){var e=u2(t);e&&\\\"geoSVG\\\"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},v2.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=u2(t))&&\\\"geoSVG\\\"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},v2.prototype._updateController=function(i,t,o){var r=i.coordinateSystem,e=this._controller,n=this._controllerHost,a=(n.zoomLimit=i.get(\\\"scaleLimit\\\"),n.zoom=r.getZoom(),e.enable(i.get(\\\"roam\\\")||!1),i.mainType);function s(){var t={type:\\\"geoRoam\\\",componentType:a};return t[a+\\\"Id\\\"]=i.id,t}e.off(\\\"pan\\\").on(\\\"pan\\\",function(t){this._mouseDownFlag=!1,SI(n,t.dx,t.dy),o.dispatchAction(Z(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))},this),e.off(\\\"zoom\\\").on(\\\"zoom\\\",function(t){this._mouseDownFlag=!1,MI(n,t.scale,t.originX,t.originY),o.dispatchAction(Z(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))},this),e.setPointerChecker(function(t,e,n){return r.containPoint([e,n])&&!CI(t,o,i)})},v2.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=f2(e).ignore)})},v2.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off(\\\"mousedown\\\"),e.off(\\\"click\\\"),t.get(\\\"selectedMode\\\")&&(e.on(\\\"mousedown\\\",function(){o._mouseDownFlag=!0}),e.on(\\\"click\\\",function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))};var m2=v2;function v2(t){var e=new K;this.uid=ep(\\\"ec_map_draw\\\"),this._controller=new vI(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new K),e.add(this._svgGroup=new K)}function x2(t,e,n,i){var o,r=i.getModel(\\\"itemStyle\\\"),a=i.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),s=i.getModel([\\\"blur\\\",\\\"itemStyle\\\"]),l=i.getModel([\\\"select\\\",\\\"itemStyle\\\"]),r=g2(r),a=g2(a),l=g2(l),s=g2(s),u=t.data;u&&(o=u.getItemVisual(n,\\\"style\\\"),u=u.getItemVisual(n,\\\"decal\\\"),t.isVisualEncodedByVisualMap&&o.fill&&(r.fill=o.fill),u)&&(r.decal=qm(u,t.api)),e.setStyle(r),e.style.strokeNoScale=!0,e.ensureState(\\\"emphasis\\\").style=a,e.ensureState(\\\"select\\\").style=l,e.ensureState(\\\"blur\\\").style=s,Ll(e)}function _2(t,e,n,i,o,r,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension(\\\"value\\\"),r)),h=s&&s.getItemLayout(r);l||u||h&&h.showLabel?(u=l?n:r,h=!s||0\u003C=r?o:void 0,l=a?{normal:{align:\\\"center\\\",verticalAlign:\\\"middle\\\"}}:null,Tc(e,Cc(i),{labelFetcher:h,labelDataIndex:u,defaultText:n},l),(s=e.getTextContent())&&(f2(s).ignore=s.ignore,e.textConfig)&&a&&(h=e.getBoundingRect().clone(),e.textConfig.layoutRect=h,e.textConfig.position=[(a[0]-h.x)/h.width*100+\\\"%\\\",(a[1]-h.y)/h.height*100+\\\"%\\\"]),e.disableLabelAnimation=!0):(e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null)}function b2(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):$(e).eventData={componentType:\\\"geo\\\",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function w2(t,e,n,i,o){t.data||xc({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get(\\\"tooltip\\\")})}function S2(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get(\\\"selectedMode\\\");var r=i.getModel(\\\"emphasis\\\"),a=r.get(\\\"focus\\\");return Zl(e,a,r.get(\\\"blurScope\\\"),r.get(\\\"disabled\\\")),t.isGeo&&(i=o,t=n,(r=$(e)).componentMainType=i.mainType,r.componentIndex=i.componentIndex,r.componentHighDownName=t),a}function M2(t,e,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),lt(t,function(t){s.lineStart();for(var e=0;e\u003Ct.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()}),n||s.polygonEnd(),o}u(k2,T2=xy),k2.prototype.render=function(t,e,n,i){var o,r;i&&\\\"mapToggleSelect\\\"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel())||(this._mapDraw&&i&&\\\"geoRoam\\\"===i.type&&this._mapDraw.resetForLabelLayout(),i&&\\\"geoRoam\\\"===i.type&&\\\"series\\\"===i.componentType&&i.seriesId===t.id?(r=this._mapDraw)&&o.add(r.group):t.needsDrawMap?(r=this._mapDraw||new m2(n),o.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get(\\\"showLegendSymbol\\\")&&e.getComponent(\\\"legend\\\")&&this._renderSymbols(t,e,n))},k2.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},k2.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},k2.prototype._renderSymbols=function(l,t,e){var u=l.originalData,h=this.group;u.each(u.mapDimension(\\\"value\\\"),function(t,e){var n,i,o,r,a,s;isNaN(t)||(i=u.getItemLayout(e))&&i.point&&(s=i.point,i=i.offset,n=new Tu({style:{fill:l.getData().getVisual(\\\"style\\\").fill},shape:{cx:s[0]+9*i,cy:s[1],r:3},silent:!0,z2:8+(i?0:11)}),i||(s=l.mainSeries.getData(),i=u.getName(e),o=s.indexOfName(i),a=(r=u.getItemModel(e)).getModel(\\\"label\\\"),s=s.getItemGraphicEl(o),Tc(n,Cc(r),{labelFetcher:{getFormattedLabel:function(t,e){return l.getFormattedLabel(o,e)}},defaultText:i}),n.disableLabelAnimation=!0,a.get(\\\"position\\\")||n.setTextConfig({position:\\\"bottom\\\"}),s.onHoverStateChange=function(t){Al(n,t)}),h.add(n))})},k2.type=\\\"map\\\";var I2,T2,C2=k2,D2=(u(A2,I2=ry),A2.prototype.getInitialData=function(t){for(var e=gS(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:D(Td,this)}),n=N(),i=[],o=0,r=e.count();o\u003Cr;o++){var a=e.getName(o);n.set(a,!0)}return lt(h2(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(t){var e=t.name;n.get(e)||i.push(e)}),e.appendValues([],i),e},A2.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent(\\\"geo\\\",t):null},A2.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},A2.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension(\\\"value\\\"),t)},A2.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},A2.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),r=i.getName(t),a=this.seriesGroup,s=[],l=0;l\u003Ca.length;l++){var u=a[l].originalData.indexOfName(r),h=i.mapDimension(\\\"value\\\");isNaN(a[l].originalData.get(h,u))||s.push(a[l].name)}return Hg(\\\"section\\\",{header:s.join(\\\", \\\"),noHeader:!s.length,blocks:[Hg(\\\"nameValue\\\",{name:r,value:o})]})},A2.prototype.setZoom=function(t){this.option.zoom=t},A2.prototype.setCenter=function(t){this.option.center=t},A2.prototype.getLegendIcon=function(t){var e=t.icon||\\\"roundRect\\\",n=Sm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke=\\\"none\\\",-1\u003Ce.indexOf(\\\"empty\\\")&&(n.style.stroke=n.style.fill,n.style.fill=\\\"#fff\\\",n.style.lineWidth=2),n},A2.type=\\\"series.map\\\",A2.dependencies=[\\\"geo\\\"],A2.layoutMode=\\\"box\\\",A2.defaultOption={z:2,coordinateSystem:\\\"geo\\\",map:\\\"\\\",left:\\\"center\\\",top:\\\"center\\\",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:\\\"#000\\\"},itemStyle:{borderWidth:.5,borderColor:\\\"#444\\\",areaColor:\\\"#eee\\\"},emphasis:{label:{show:!0,color:\\\"rgb(100,0,0)\\\"},itemStyle:{areaColor:\\\"rgba(255,215,0,0.8)\\\"}},select:{label:{show:!0,color:\\\"rgb(100,0,0)\\\"},itemStyle:{color:\\\"rgba(255,215,0,0.8)\\\"}},nameProperty:\\\"name\\\"},A2);function A2(){var t=null!==I2&&I2.apply(this,arguments)||this;return t.type=A2.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(t){var e,n;if(null!=t)return n=this.getData().getName(t),(n=(e=this.coordinateSystem).getRegion(n))&&e.dataToPoint(n.getCenter())},t}function k2(){var t=null!==T2&&T2.apply(this,arguments)||this;return t.type=k2.type,t}function L2(t){var n={};t.eachSeriesByType(\\\"map\\\",function(t){var e=t.getHostGeoModel(),e=e?\\\"o\\\"+e.id:\\\"i\\\"+t.getMapType();(n[e]=n[e]||[]).push(t)}),lt(n,function(t,e){l=Y(t,function(t){return t.getData()}),u=t[0].get(\\\"mapValueCalculation\\\"),h={},lt(l,function(i){i.each(i.mapDimension(\\\"value\\\"),function(t,e){var n=\\\"ec-\\\"+i.getName(e);h[n]=h[n]||[],isNaN(t)||h[n].push(t)})});for(var l,u,h,n=l[0].map(l[0].mapDimension(\\\"value\\\"),function(t,e){for(var n=\\\"ec-\\\"+l[0].getName(e),i=0,o=1/0,r=-1/0,a=h[n].length,s=0;s\u003Ca;s++)o=Math.min(o,h[n][s]),r=Math.max(r,h[n][s]),i+=h[n][s];return 0===a?NaN:\\\"min\\\"===u?o:\\\"max\\\"===u?r:\\\"average\\\"===u?i/a:i}),i=0;i\u003Ct.length;i++)t[i].originalData=t[i].getData();for(i=0;i\u003Ct.length;i++)(t[i].seriesGroup=t)[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function P2(n){var o={};n.eachSeriesByType(\\\"map\\\",function(t){var s,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(s={},lt(t.seriesGroup,function(t){var r=t.coordinateSystem,a=t.originalData;t.get(\\\"showLegendSymbol\\\")&&n.getComponent(\\\"legend\\\")&&a.each(a.mapDimension(\\\"value\\\"),function(t,e){var n,i=a.getName(e),o=r.getRegion(i);o&&!isNaN(t)&&(n=s[i]||0,o=r.dataToPoint(o.getCenter()),s[i]=n+1,a.setItemLayout(e,{point:o,offset:n}))})}),(i=t.getData()).each(function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!s[e],i.setItemLayout(t,n)}),o[e]=!0)})}var O2,R2=ee,N2=(u(E2,O2=go),E2.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new B(t,e,n,i),this._rect},E2.prototype.getBoundingRect=function(){return this._rect},E2.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new B(t,e,n,i)},E2.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable,o=(r.transform=o.calculateTransform(new B(t,e,n,i)),r.parent);r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},E2.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},E2.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min)&&(t=Math.max(e.min,t)),this._zoom=t,this._updateCenterAndZoom()},E2.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},E2.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},E2.prototype.getZoom=function(){return this._zoom||1},E2.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},E2.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=ee([],i,t),n=ee([],n,t);e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},E2.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),eo(this.transform||(this.transform=[]),e.transform||[1,0,0,1,0,0]),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ao(this.invTransform,this.transform),this.decomposeTransform()},E2.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new go;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},E2.prototype.getViewRect=function(){return this._viewRect},E2.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},E2.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?R2(n,t,i):Ft(n,t)},E2.prototype.pointToData=function(t){var e=this.invTransform;return e?R2([],t,e):[t[0],t[1]]},E2.prototype.convertToPixel=function(t,e,n){var i=z2(e);return i===this?i.dataToPoint(n):null},E2.prototype.convertFromPixel=function(t,e,n){var i=z2(e);return i===this?i.pointToData(n):null},E2.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},E2.dimensions=[\\\"x\\\",\\\"y\\\"],E2);function E2(t){var e=O2.call(this)||this;return e.type=\\\"view\\\",e.dimensions=[\\\"x\\\",\\\"y\\\"],e._roamTransformable=new go,e._rawTransformable=new go,e.name=t,e}function z2(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var V2,B2={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},F2=[\\\"lng\\\",\\\"lat\\\"],G2=(u(W2,V2=N2),W2.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute,o=o.clone(),a=(r&&(o.y=-o.y-o.height),this._rawTransformable),o=(a.transform=o.calculateTransform(new B(t,e,n,i)),a.parent);a.parent=null,a.decomposeTransform(),a.parent=o,r&&(a.scaleY=-a.scaleY),this._updateTransform()},W2.prototype.getRegion=function(t){return this._regionsMap.get(t)},W2.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n\u003Ce.length;n++){var i=e[n];if(\\\"geoJSON\\\"===i.type&&i.contain(t))return e[n]}},W2.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},W2.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},W2.prototype.dataToPoint=function(t,e,n){var i;if(t=X(t)?this.getGeoCoord(t):t)return(t=(i=this.projection)?i.project(t):t)&&this.projectedToPoint(t)},W2.prototype.pointToData=function(t){var e=this.projection;return(t=e?e.unproject(t):t)&&this.pointToProjected(t)},W2.prototype.pointToProjected=function(t){return V2.prototype.pointToData.call(this,t)},W2.prototype.projectedToPoint=function(t,e,n){return V2.prototype.dataToPoint.call(this,t,e,n)},W2.prototype.convertToPixel=function(t,e,n){var i=H2(e);return i===this?i.dataToPoint(n):null},W2.prototype.convertFromPixel=function(t,e,n){var i=H2(e);return i===this?i.pointToData(n):null},W2);function W2(t,e,n){var i=V2.call(this,t)||this;i.dimensions=F2,i.type=\\\"geo\\\",i._nameCoordMap=N(),i.map=e;var o,r=n.projection,a=h2(e,n.nameMap,n.nameProperty),s=u2(e),l=(i.resourceType=s?s.type:null,i.regions=a.regions),s=B2[s.type];if(i._regionsMap=a.regionsMap,i.regions=a.regions,i.projection=r)for(var u=0;u\u003Cl.length;u++){var h=l[u].getBoundingRect(r);(o=o||h.clone()).union(h)}else o=a.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=r?1:P(n.aspectScale,s.aspectScale),i._invertLongitute=!r&&s.invertLongitute,i}function H2(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(\\\"geo\\\",Wr).models[0]||{}).coordinateSystem:null}function Y2(t,e){var l,u,h,n=t.get(\\\"boundingCoords\\\");null!=n&&(u=n[0],h=n[1],isFinite(u[0]))&&isFinite(u[1])&&isFinite(h[0])&&isFinite(h[1])&&((l=this.projection)&&(n=u[0],c=u[1],s=h[0],a=h[1],u=[1/0,1/0],h=[-1/0,-1/0],(p=function(t,e,n,i){for(var o=n-t,r=i-e,a=0;a\u003C=100;a++){var s=a/100,s=l.project([t+o*s,e+r*s]);ne(u,u,s),ie(h,h,s)}})(n,c,s,c),p(s,c,s,a),p(s,a,n,a),p(n,a,s,c)),this.setBoundingRect(u[0],u[1],h[0]-u[0],h[1]-u[1]));var i,o,r,n=this.getBoundingRect(),a=t.get(\\\"layoutCenter\\\"),s=t.get(\\\"layoutSize\\\"),c=e.getWidth(),p=e.getHeight(),n=n.width/n.height*this.aspectScale,d=!1;a&&s&&(i=[F(a[0],c),F(a[1],p)],o=F(s,Math.min(c,p)),isNaN(i[0])||isNaN(i[1])||isNaN(o)||(d=!0)),d?(r={},1\u003Cn?(r.width=o,r.height=o/n):(r.height=o,r.width=o*n),r.y=i[1]-r.height/2,r.x=i[0]-r.width/2):((a=t.getBoxLayoutParams()).aspect=n,r=Jp(a,{width:c,height:p})),this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(t.get(\\\"center\\\")),this.setZoom(t.get(\\\"zoom\\\"))}ut(G2,N2);q2.prototype.create=function(t,o){var r=[];function a(t){return{nameProperty:t.get(\\\"nameProperty\\\"),aspectScale:t.get(\\\"aspectScale\\\"),projection:t.get(\\\"projection\\\")}}t.eachComponent(\\\"geo\\\",function(t,e){var n=t.get(\\\"map\\\"),n=new G2(n+e,n,Z({nameMap:t.get(\\\"nameMap\\\")},a(t)));n.zoomLimit=t.get(\\\"scaleLimit\\\"),r.push(n),(t.coordinateSystem=n).model=t,n.resize=Y2,n.resize(t,o)}),t.eachSeries(function(t){var e;\\\"geo\\\"===t.get(\\\"coordinateSystem\\\")&&(e=t.get(\\\"geoIndex\\\")||0,t.coordinateSystem=r[e])});var n={};return t.eachSeriesByType(\\\"map\\\",function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),n[e]=n[e]||[],n[e].push(t))}),lt(n,function(t,e){var n=Y(t,function(t){return t.get(\\\"nameMap\\\")}),i=new G2(e,e,Z({nameMap:rt(n)},a(t[0])));i.zoomLimit=wt.apply(null,Y(t,function(t){return t.get(\\\"scaleLimit\\\")})),r.push(i),i.resize=Y2,i.resize(t[0],o),lt(t,function(t){var n;t.coordinateSystem=i,n=i,lt(t.get(\\\"geoCoord\\\"),function(t,e){n.addGeoCoord(e,t)})})}),r},q2.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=N(),a=0;a\u003Co.length;a++)r.set(o[a].name,o[a]);return lt(h2(e,n,i).regions,function(t){var e=t.name;r.get(e)||o.push({name:e})}),o};var U2,X2=new q2,Z2=(u(j2,U2=m),j2.prototype.init=function(t,e,n){var i=u2(t.map);!i||\\\"geoJSON\\\"!==i.type||\\\"color\\\"in(i=t.itemStyle=t.itemStyle||{})||(i.color=\\\"#eee\\\"),this.mergeDefaultAndTheme(t,n),Ar(t,\\\"label\\\",[\\\"show\\\"])},j2.prototype.optionUpdated=function(){var i=this,t=this.option,o=(t.regions=X2.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty),{});this._optionModelMap=ct(t.regions||[],function(t,e){var n=e.name;return n&&(t.set(n,new qc(e,i,i.ecModel)),e.selected)&&(o[n]=!0),t},N()),t.selectedMap||(t.selectedMap=o)},j2.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new qc(null,this,this.ecModel)},j2.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),n=\\\"normal\\\"===e?n.get([\\\"label\\\",\\\"formatter\\\"]):n.get([\\\"emphasis\\\",\\\"label\\\",\\\"formatter\\\"]),i={name:t};return A(n)?(i.status=e,n(i)):X(n)?n.replace(\\\"{a}\\\",null!=t?t:\\\"\\\"):void 0},j2.prototype.setZoom=function(t){this.option.zoom=t},j2.prototype.setCenter=function(t){this.option.center=t},j2.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&(\\\"multiple\\\"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},j2.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},j2.prototype.toggleSelected=function(t){this[this.isSelected(t)?\\\"unSelect\\\":\\\"select\\\"](t)},j2.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},j2.type=\\\"geo\\\",j2.layoutMode=\\\"box\\\",j2.defaultOption={z:0,show:!0,left:\\\"center\\\",top:\\\"center\\\",aspectScale:null,silent:!1,map:\\\"\\\",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:\\\"#000\\\"},itemStyle:{borderWidth:.5,borderColor:\\\"#444\\\"},emphasis:{label:{show:!0,color:\\\"rgb(100,0,0)\\\"},itemStyle:{color:\\\"rgba(255,215,0,0.8)\\\"}},select:{label:{show:!0,color:\\\"rgb(100,0,0)\\\"},itemStyle:{color:\\\"rgba(255,215,0,0.8)\\\"}},regions:[]},j2);function j2(){var t=null!==U2&&U2.apply(this,arguments)||this;return t.type=j2.type,t}function q2(){this.dimensions=F2}function K2(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function $2(t,e,n){var i,o,r=t.getZoom(),a=t.getCenter(),s=e.zoom,a=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(K2(t,a))),null!=s&&(n&&(o=n.min||0,i=n.max||1/0,s=Math.max(Math.min(r*s,i),o)/r),t.scaleX*=s,t.scaleY*=s,i=(e.originX-t.x)*(s-1),o=(e.originY-t.y)*(s-1),t.x-=i,t.y-=o,t.updateTransform(),t.setCenter(K2(t,a)),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}u(tT,J2=fy),tT.prototype.init=function(t,e){this._api=e},tT.prototype.render=function(t,e,n,i){var o;(this._model=t).get(\\\"show\\\")?(this._mapDraw||(this._mapDraw=new m2(n)),(o=this._mapDraw).draw(t,e,n,this,i),o.group.on(\\\"click\\\",this._handleRegionClick,this),o.group.silent=t.get(\\\"silent\\\"),this.group.add(o.group),this.updateSelectStatus(t,e,n)):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null)},tT.prototype._handleRegionClick=function(t){var e;hm(t.target,function(t){return null!=(e=$(t).eventData)},!0),e&&this._api.dispatchAction({type:\\\"geoToggleSelect\\\",geoId:this._model.id,name:e.name})},tT.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse(function(t){var e=$(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},tT.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},tT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},tT.type=\\\"geo\\\";var J2,Q2=tT;function tT(){var t=null!==J2&&J2.apply(this,arguments)||this;return t.type=tT.type,t.focusBlurEnabled=!0,t}function eT(t,e,n){l2(t,e,n)}function nT(e){function t(r,t){t.update=\\\"geo:updateSelectStatus\\\",e.registerAction(t,function(t,e){var i={},o=[];return e.eachComponent({mainType:\\\"geo\\\",query:t},function(e){e[r](t.name),lt(e.coordinateSystem.regions,function(t){i[t.name]=e.isSelected(t.name)||!1});var n=[];lt(i,function(t,e){i[e]&&n.push(e)}),o.push({geoIndex:e.componentIndex,name:n})}),{selected:i,allSelected:o,name:t.name}})}e.registerCoordinateSystem(\\\"geo\\\",X2),e.registerComponentModel(Z2),e.registerComponentView(Q2),e.registerImpl(\\\"registerMap\\\",eT),e.registerImpl(\\\"getMap\\\",function(t){return(e=s2.get(t))&&\\\"geoJSON\\\"===e.type&&e.getMapForUser();var e}),t(\\\"toggleSelected\\\",{type:\\\"geoToggleSelect\\\",event:\\\"geoselectchanged\\\"}),t(\\\"select\\\",{type:\\\"geoSelect\\\",event:\\\"geoselected\\\"}),t(\\\"unSelect\\\",{type:\\\"geoUnSelect\\\",event:\\\"geounselected\\\"}),e.registerAction({type:\\\"geoRoam\\\",event:\\\"geoRoam\\\",update:\\\"updateTransform\\\"},function(i,t){var o=i.componentType||\\\"series\\\";t.eachComponent({mainType:o,query:i},function(t){var e,n=t.coordinateSystem;\\\"geo\\\"===n.type&&(e=$2(n,i,t.get(\\\"scaleLimit\\\")),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),\\\"series\\\"===o)&<(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)})})})}function iT(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,y=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){for(var o=t.children,r=o.length,a=0,s=0;0\u003C=--r;){var l=o[r];l.hierNode.prelim+=a,l.hierNode.modifier+=a,s+=l.hierNode.change,a+=l.hierNode.shift+s}n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;y?(t.hierNode.prelim=y.hierNode.prelim+e(t,y),t.hierNode.modifier=t.hierNode.prelim-n):t.hierNode.prelim=n}else y&&(t.hierNode.prelim=y.hierNode.prelim+e(t,y));t.parentNode.hierNode.defaultAncestor=function(t,e,n){if(y){for(var i=t,o=t,r=o.parentNode.children[0],a=y,s=i.hierNode.modifier,l=o.hierNode.modifier,u=r.hierNode.modifier,h=a.hierNode.modifier;a=sT(a),o=lT(o),a&&o;){i=sT(i),r=lT(r),i.hierNode.ancestor=t;var c=a.hierNode.prelim+h-o.hierNode.prelim-l+n(a,o);0\u003Cc&&(g=e,f=(f=a).hierNode.ancestor.parentNode===t.parentNode?f.hierNode.ancestor:g,d=void 0,d=(g=c)/((p=t).hierNode.i-f.hierNode.i),p.hierNode.change-=d,p.hierNode.shift+=g,p.hierNode.modifier+=g,p.hierNode.prelim+=g,f.hierNode.change+=d,l+=c,s+=c),h+=a.hierNode.modifier,l+=o.hierNode.modifier,s+=i.hierNode.modifier,u+=r.hierNode.modifier}a&&!sT(i)&&(i.hierNode.thread=a,i.hierNode.modifier+=h-s),o&&!lT(r)&&(r.hierNode.thread=o,r.hierNode.modifier+=l-u,e=t)}var p,d,f,g;return e}(t,t.parentNode.hierNode.defaultAncestor||i[0],e)}function oT(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function rT(t){return arguments.length?t:uT}function aT(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function sT(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function lT(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function uT(t,e){return t.parentNode===e.parentNode?1:2}var hT,cT,pT=function(){this.parentPoint=[],this.childPoints=[]},dT=(u(yT,cT=Q),yT.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},yT.prototype.getDefaultShape=function(){return new pT},yT.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)t.moveTo(o[0],o[1]),t.lineTo(r[0],r[1]);else{var s=e.orient,l=\\\"TB\\\"===s||\\\"BT\\\"===s?0:1,s=1-l,u=F(e.forkPosition,1),h=[];h[l]=o[l],h[s]=o[s]+(a[s]-o[s])*u,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(r[0],r[1]),h[l]=r[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var c=1;c\u003Ci-1;c++){var p=n[c];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}}},yT),fT=(u(gT,hT=xy),gT.prototype.init=function(t,e){this._controller=new vI(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},gT.prototype.render=function(i,t,n){var o=i.getData(),e=i.layoutInfo,r=this._mainGroup,a=(\\\"radial\\\"===i.get(\\\"layout\\\")?(r.x=e.x+e.width/2,r.y=e.y+e.height/2):(r.x=e.x,r.y=e.y),this._updateViewCoordSys(i),this._updateController(i,t,n),this._data);o.diff(a).add(function(t){mT(o,t)&&vT(o,t,null,r,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);mT(o,t)?vT(o,t,n,r,i):n&&bT(a,e,n,r,i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&bT(a,t,e,r,i)}).execute(),this._nodeScaleRatio=i.get(\\\"nodeScaleRatio\\\"),this._updateNodeAndLinkScale(i),!0===i.get(\\\"expandAndCollapse\\\")&&o.eachItemGraphicEl(function(t,e){t.off(\\\"click\\\").on(\\\"click\\\",function(){n.dispatchAction({type:\\\"treeExpandAndCollapse\\\",seriesId:i.id,dataIndex:e})})}),this._data=o},gT.prototype._updateViewCoordSys=function(t){var n=t.getData(),i=[],e=(n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}),[]),o=[],r=(Ba(i,e,o),this._min),a=this._max,r=(o[0]-e[0]==0&&(e[0]=r?r[0]:e[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-e[1]==0&&(e[1]=r?r[1]:e[1]-1,o[1]=a?a[1]:o[1]+1),t.coordinateSystem=new N2);r.zoomLimit=t.get(\\\"scaleLimit\\\"),r.setBoundingRect(e[0],e[1],o[0]-e[0],o[1]-e[1]),r.setCenter(t.get(\\\"center\\\")),r.setZoom(t.get(\\\"zoom\\\")),this.group.attr({x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}),this._min=e,this._max=o},gT.prototype._updateController=function(o,t,r){var e=this,n=this._controller,i=this._controllerHost,a=this.group;n.setPointerChecker(function(t,e,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(e,n)&&!CI(t,r,o)}),n.enable(o.get(\\\"roam\\\")),i.zoomLimit=o.get(\\\"scaleLimit\\\"),i.zoom=o.coordinateSystem.getZoom(),n.off(\\\"pan\\\").off(\\\"zoom\\\").on(\\\"pan\\\",function(t){SI(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:\\\"treeRoam\\\",dx:t.dx,dy:t.dy})}).on(\\\"zoom\\\",function(t){MI(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:o.id,type:\\\"treeRoam\\\",zoom:t.scale,originX:t.originX,originY:t.originY}),e._updateNodeAndLinkScale(o),r.updateLabelLayout()})},gT.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},gT.prototype._getNodeGlobalScale=function(t){var e,n,i=t.coordinateSystem;return\\\"view\\\"!==i.type?1:(e=this._nodeScaleRatio,n=i.scaleX||1,((i.getZoom()-1)*e+1)/n)},gT.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},gT.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},gT.type=\\\"tree\\\",gT);function gT(){var t=null!==hT&&hT.apply(this,arguments)||this;return t.type=gT.type,t._mainGroup=new K,t}function yT(t){return cT.call(this,t)||this}function mT(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function vT(n,t,i,e,o){var r=!i,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual(\\\"style\\\").fill,l=!1===a.isExpand&&0!==a.children.length?l:\\\"#fff\\\",u=n.tree.root,h=a.parentNode!==u&&a.parentNode||a,c=n.getItemGraphicEl(h.dataIndex),h=h.getLayout(),c=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=a.getLayout(),r=(r?((i=new Ab(n,t,null,{symbolInnerColor:l,useNameLabel:!0})).x=c.x,i.y=c.y):i.updateData(n,t,null,{symbolInnerColor:l,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=p.rawX,i.__radialRawY=p.rawY,e.add(i),n.setItemGraphicEl(t,i),i.__oldX=i.x,i.__oldY=i.y,k(i,{x:p.x,y:p.y},o),i.getSymbolPath()),d=(\\\"radial\\\"===o.get(\\\"layout\\\")&&(b=(l=u.children[0]).getLayout(),d=l.children.length,w=_=void 0,p.x===b.x&&!0===a.isExpand?(x=(l.children[0].getLayout().x+l.children[d-1].getLayout().x)/2,d=(l.children[0].getLayout().y+l.children[d-1].getLayout().y)/2,(_=Math.atan2(d-b.y,x-b.x))\u003C0&&(_=2*Math.PI+_),(w=x\u003Cb.x)&&(_-=Math.PI)):((_=Math.atan2(p.y-b.y,p.x-b.x))\u003C0&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=p.x\u003Cb.x)&&(_-=Math.PI):(w=p.x>b.x)||(_-=Math.PI)),l=w?\\\"left\\\":\\\"right\\\",b=(x=(d=s.getModel(\\\"label\\\")).get(\\\"rotate\\\"))*(Math.PI/180),w=r.getTextContent())&&(r.setTextConfig({position:d.get(\\\"position\\\")||l,rotation:null==x?-_:b,origin:\\\"center\\\"}),w.setStyle(\\\"verticalAlign\\\",\\\"middle\\\")),s.get([\\\"emphasis\\\",\\\"focus\\\"])),l=\\\"ancestor\\\"===d?a.getAncestorsIndices():\\\"descendant\\\"===d?a.getDescendantIndices():null,t=(l&&($(i).focus=l),o),o=a,f=u,g=i,y=c,m=h,v=p,x=o.getModel(),_=t.get(\\\"edgeShape\\\"),b=t.get(\\\"layout\\\"),r=t.getOrient(),w=t.get([\\\"lineStyle\\\",\\\"curveness\\\"]),s=t.get(\\\"edgeForkPosition\\\"),d=x.getModel(\\\"lineStyle\\\").getLineStyle(),l=g.__edge;if(\\\"curve\\\"===_)o.parentNode&&o.parentNode!==f&&k(l=l||(g.__edge=new yh({shape:wT(b,r,w,y,y)})),{shape:wT(b,r,w,m,v)},t);else if(\\\"polyline\\\"===_&&\\\"orthogonal\\\"===b&&o!==f&&o.children&&0!==o.children.length&&!0===o.isExpand){for(var S=o.children,M=[],I=0;I\u003CS.length;I++){var T=S[I].getLayout();M.push([T.x,T.y])}k(l=l||(g.__edge=new dT({shape:{parentPoint:[v.x,v.y],childPoints:[[v.x,v.y]],orient:r,forkPosition:s}})),{shape:{parentPoint:[v.x,v.y],childPoints:M}},t)}l&&(l.useStyle(H({strokeNoScale:!0,fill:null},d)),$l(l,x,\\\"lineStyle\\\"),Ll(l),e.add(l)),i.__edge&&(i.onHoverStateChange=function(t){var e;\\\"blur\\\"===t||(e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&1===e.hoverState||Al(i.__edge,t)})}function xT(t,e,n,i,o){var r,a,s,l=_T(e.tree.root,t),u=l.source,l=l.sourceLayout,h=e.getItemGraphicEl(t.dataIndex);h&&(a=e.getItemGraphicEl(u.dataIndex).__edge,r=h.__edge||(!1===u.isExpand||1===u.children.length?a:void 0),h=i.get(\\\"edgeShape\\\"),u=i.get(\\\"layout\\\"),a=i.get(\\\"orient\\\"),s=i.get([\\\"lineStyle\\\",\\\"curveness\\\"]),r)&&(\\\"curve\\\"===h?Xh(r,{shape:wT(u,a,s,l,l),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):\\\"polyline\\\"===h&&\\\"orthogonal\\\"===i.get(\\\"layout\\\")&&Xh(r,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function _T(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function bT(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=_T(e.tree.root,r).sourceLayout,s={duration:o.get(\\\"animationDurationUpdate\\\"),easing:o.get(\\\"animationEasingUpdate\\\")};Xh(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach(function(t){xT(t,e,i,o,s)}),xT(r,e,i,o,s)}function wT(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g,y;return\\\"radial\\\"===t?(u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,d=aT(u,h),f=aT(u,h+(p-h)*n),g=aT(c,p+(h-p)*n),y=aT(c,p),{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}):(u=i.x,h=i.y,c=o.x,p=o.y,\\\"LR\\\"!==e&&\\\"RL\\\"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),\\\"TB\\\"!==e&&\\\"BT\\\"!==e||(r=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}var ST=i();function MT(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:\\\"data\\\"}),n.datas=n.mainData=null,kT(i,t,n),lt(t,function(e){lt(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,D(IT,n))})}),i.wrapMethod(\\\"cloneShallow\\\",D(CT,n)),lt(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,D(TT,n))}),Tt(t[i.dataType]===i)}function IT(t,e){var n;return ST(this).mainData===this?kT((n=Z({},ST(this).datas))[this.dataType]=e,n,t):LT(e,this.dataType,ST(this).mainData,t),e}function TT(t,e){return t.struct&&t.struct.update(),e}function CT(n,i){return lt(ST(i).datas,function(t,e){t!==i&<(t.cloneShallow(),e,i,n)}),i}function DT(t){var e=ST(this).mainData;return null==t||null==e?e:ST(e).datas[t]}function AT(){var e=ST(this).mainData;return null==e?[{data:e}]:Y(W(ST(e).datas),function(t){return{type:t,data:ST(e).datas[t]}})}function kT(n,t,i){ST(n).datas={},lt(t,function(t,e){LT(t,e,n,i)})}function LT(t,e,n,i){ST(n).datas[e]=t,ST(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=DT,t.getLinkedDataAll=AT}NT.prototype.isRemoved=function(){return this.dataIndex\u003C0},NT.prototype.eachNode=function(t,e,n){A(t)&&(n=e,e=t,t=null);var i,o=(t=X(t=t||{})?{order:t}:t).order||\\\"preorder\\\",r=this[t.attr||\\\"children\\\"];\\\"preorder\\\"===o&&(i=e.call(n,this));for(var a=0;!i&&a\u003Cr.length;a++)r[a].eachNode(t,e,n);\\\"postorder\\\"===o&&e.call(n,this)},NT.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n\u003Cthis.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},NT.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e\u003Ci;e++){var o=n[e].getNodeById(t);if(o)return o}},NT.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e\u003Ci;e++){var o=n[e].contains(t);if(o)return o}},NT.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},NT.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},NT.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},NT.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||\\\"value\\\"),this.dataIndex)},NT.prototype.setLayout=function(t,e){0\u003C=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},NT.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},NT.prototype.getModel=function(t){if(!(this.dataIndex\u003C0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},NT.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},NT.prototype.setVisual=function(t,e){0\u003C=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},NT.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},NT.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},NT.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},NT.prototype.getChildIndex=function(){if(this.parentNode)for(var t=this.parentNode.children,e=0;e\u003Ct.length;++e)if(t[e]===this)return e;return-1},NT.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},NT.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)};var PT=NT,OT=(RT.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},RT.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},RT.prototype.getNodeById=function(t){return this.root.getNodeById(t)},RT.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n\u003Ci;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n\u003Ci;n++)e[t.getRawIndex(n)].dataIndex=n},RT.prototype.clearLayouts=function(){this.data.clearItemLayouts()},RT.createTree=function(t,e,n){var s=new RT(e),l=[],u=1,i=(!function RT(t,e){var n,i=t.value,o=(u=Math.max(u,U(i)?i.length:1),l.push(t),new PT(Nr(t.name,\\\"\\\"),s)),r=(e?(n=o,i=(e=e).children,n.parentNode!==e&&(i.push(n),n.parentNode=e)):s.root=o,s._nodes.push(o),t.children);if(r)for(var a=0;a\u003Cr.length;a++)RT(r[a],o)}(t),s.root.updateDepthAndHeight(0),Gv(l,{coordDimensions:[\\\"value\\\"],dimensionsCount:u}).dimensions),i=new Fv(i,e);return i.initData(l),n&&n(i),MT({mainData:i,struct:s,structAttr:\\\"tree\\\"}),s.update(),s},RT);function RT(t){this.type=\\\"tree\\\",this._nodes=[],this.hostModel=t}function NT(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||\\\"\\\",this.hostTree=e}function ET(t,e,n){var i,o,r;if(t&&0\u003C=G(e,t.type))return i=n.getData().tree.root,(o=X(o=t.targetNode)?i.getNodeById(o):o)&&i.contains(o)||null!=(r=t.targetNodeId)&&(o=i.getNodeById(r))?{node:o}:void 0}function zT(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function VT(t,e){return 0\u003C=G(zT(t),e)}function BT(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}u(WT,FT=ry),WT.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new qc(n,this,this.ecModel),o=OT.createTree(e,this,function(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=o.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t})}),r=0,a=(o.eachNode(\\\"preorder\\\",function(t){t.depth>r&&(r=t.depth)}),t.expandAndCollapse&&0\u003C=t.initialTreeDepth?t.initialTreeDepth:r);return o.root.eachNode(\\\"preorder\\\",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth\u003C=a}),o.data},WT.prototype.getOrient=function(){var t=this.get(\\\"orient\\\");return\\\"horizontal\\\"===t?t=\\\"LR\\\":\\\"vertical\\\"===t&&(t=\\\"TB\\\"),t},WT.prototype.setZoom=function(t){this.option.zoom=t},WT.prototype.setCenter=function(t){this.option.center=t},WT.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),i=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+\\\".\\\"+a,r=r.parentNode;return Hg(\\\"nameValue\\\",{name:a,value:i,noValue:isNaN(i)||null==i})},WT.prototype.getDataParams=function(t){var e=FT.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=BT(n,this),e.collapsed=!n.isExpand,e},WT.type=\\\"series.tree\\\",WT.layoutMode=\\\"box\\\",WT.defaultOption={z:2,coordinateSystem:\\\"view\\\",left:\\\"12%\\\",top:\\\"12%\\\",right:\\\"12%\\\",bottom:\\\"12%\\\",layout:\\\"orthogonal\\\",edgeShape:\\\"curve\\\",edgeForkPosition:\\\"50%\\\",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:\\\"LR\\\",symbol:\\\"emptyCircle\\\",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:\\\"#ccc\\\",width:1.5,curveness:.5},itemStyle:{color:\\\"lightsteelblue\\\",borderWidth:1.5},label:{show:!0},animationEasing:\\\"linear\\\",animationDuration:700,animationDurationUpdate:500};var FT,GT=WT;function WT(){var t=null!==FT&&FT.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function HT(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0\u003C=r;r--)i.push(o[r])}}function YT(t,k){t.eachSeriesByType(\\\"tree\\\",function(t){e=k;var e,n=Jp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),i=(t.layoutInfo=n,t.get(\\\"layout\\\")),o=0,r=0,a=null,a=\\\"radial\\\"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,rT(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=n.width,r=n.height,rT()),s=(n=t.getData().tree.root).children[0];if(s){var l=n;l.hierNode={defaultAncestor:null,ancestor:l,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var u,h,c=[l];u=c.pop();)if(h=u.children,u.isExpand&&h.length)for(var p=h.length-1;0\u003C=p;p--){var d=h[p];d.hierNode={defaultAncestor:null,ancestor:d,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},c.push(d)}for(var f,g=iT,y=a,m=[s],v=[];f=m.pop();)if(v.push(f),f.isExpand){var x=f.children;if(x.length)for(var _=0;_\u003Cx.length;_++)m.push(x[_])}for(;f=v.pop();)g(f,y);n.hierNode.modifier=-s.hierNode.prelim,HT(s,oT);var b,w=s,S=s,M=s,l=(HT(s,function(t){var e=t.getLayout().x;e\u003Cw.getLayout().x&&(w=t),e>S.getLayout().x&&(S=t),t.depth>M.depth&&(M=t)}),w===S?1:a(w,S)/2),I=l-w.getLayout().x,T=0,C=0,D=0,A=0;\\\"radial\\\"===i?(T=o/(S.getLayout().x+l+I),C=r/(M.depth-1||1),HT(s,function(t){D=(t.getLayout().x+I)*T,A=(t.depth-1)*C;var e=aT(D,A);t.setLayout({x:e.x,y:e.y,rawX:D,rawY:A},!0)})):\\\"RL\\\"===(b=t.getOrient())||\\\"LR\\\"===b?(C=r/(S.getLayout().x+l+I),T=o/(M.depth-1||1),HT(s,function(t){A=(t.getLayout().x+I)*C,D=\\\"LR\\\"===b?(t.depth-1)*T:o-(t.depth-1)*T,t.setLayout({x:D,y:A},!0)})):\\\"TB\\\"!==b&&\\\"BT\\\"!==b||(T=o/(S.getLayout().x+l+I),C=r/(M.depth-1||1),HT(s,function(t){D=(t.getLayout().x+I)*T,A=\\\"TB\\\"===b?(t.depth-1)*C:r-(t.depth-1)*C,t.setLayout({x:D,y:A},!0)}))}})}function UT(t){t.eachSeriesByType(\\\"tree\\\",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel(\\\"itemStyle\\\").getItemStyle();Z(n.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\"),e)})})}var XT=[\\\"treemapZoomToNode\\\",\\\"treemapRender\\\",\\\"treemapMove\\\"];function ZT(i){var t=i.getData().tree,o={};t.eachNode(function(t){for(var e=t;e&&1\u003Ce.depth;)e=e.parentNode;var n=Vd(i.ecModel,e.name||e.dataIndex+\\\"\\\",o);t.setVisual(\\\"decal\\\",n)})}u(KT,jT=ry),KT.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function l(t){var n=0;lt(t.children,function(t){l(t);var e=t.value;U(e)&&(e=e[0]),n+=e});var e=t.value;U(e)&&(e=e[0]),null!=e&&!isNaN(e)||(e=n),e\u003C0&&(e=0),U(t.value)?t.value[0]=e:t.value=e}(n),t.levels||[]),o=this.designatedVisualItemStyle={},r=new qc({itemStyle:o},this,e),a=Y((t.levels=function(t,e){var o,r,n,i=Dr(e.get(\\\"color\\\")),a=Dr(e.get([\\\"aria\\\",\\\"decal\\\",\\\"decals\\\"]));if(i)return lt(t=t||[],function(t){var e=new qc(t),n=e.get(\\\"color\\\"),i=e.get(\\\"decal\\\");(e.get([\\\"itemStyle\\\",\\\"color\\\"])||n&&\\\"none\\\"!==n)&&(o=!0),(e.get([\\\"itemStyle\\\",\\\"decal\\\"])||i&&\\\"none\\\"!==i)&&(r=!0)}),n=t[0]||(t[0]={}),o||(n.color=i.slice()),!r&&a&&(n.decal=a.slice()),t}(i,e))||[],function(t){return new qc(t,r,e)},this),s=OT.createTree(n,this,function(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=s.getNodeByDataIndex(e),n=n?a[n.depth]:null;return t.parentModel=n||r,t})});return s.data},KT.prototype.optionUpdated=function(){this.resetViewRoot()},KT.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return Hg(\\\"nameValue\\\",{name:i.getName(t),value:o})},KT.prototype.getDataParams=function(t){var e=jT.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=BT(n,this),e.treePathInfo=e.treeAncestors,e},KT.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Z(this.layoutInfo,t)},KT.prototype.mapIdToIndex=function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=N(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},KT.prototype.getViewRoot=function(){return this._viewRoot},KT.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},KT.prototype.enableAriaDecal=function(){ZT(this)},KT.type=\\\"series.treemap\\\",KT.layoutMode=\\\"box\\\",KT.defaultOption={progressive:0,left:\\\"center\\\",top:\\\"middle\\\",width:\\\"80%\\\",height:\\\"80%\\\",sort:!0,clipWindow:\\\"origin\\\",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:\\\"▶\\\",zoomToNodeRatio:.1024,roam:!0,nodeClick:\\\"zoomToNode\\\",animation:!0,animationDurationUpdate:900,animationEasing:\\\"quinticInOut\\\",breadcrumb:{show:!0,height:22,left:\\\"center\\\",top:\\\"bottom\\\",emptyItemWidth:25,itemStyle:{color:\\\"rgba(0,0,0,0.7)\\\",textStyle:{color:\\\"#fff\\\"}}},label:{show:!0,distance:0,padding:5,position:\\\"inside\\\",color:\\\"#fff\\\",overflow:\\\"truncate\\\"},upperLabel:{show:!1,position:[0,\\\"50%\\\"],height:20,overflow:\\\"truncate\\\",verticalAlign:\\\"middle\\\"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:\\\"#fff\\\",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,\\\"50%\\\"],overflow:\\\"truncate\\\",verticalAlign:\\\"middle\\\"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:\\\"index\\\",visibleMin:10,childrenVisibleMin:null,levels:[]};var jT,qT=KT;function KT(){var t=null!==jT&&jT.apply(this,arguments)||this;return t.type=KT.type,t.preventUsingHoverLayer=!0,t}JT.prototype.render=function(t,e,n,i){var o,r,a=t.getModel(\\\"breadcrumb\\\"),s=this.group;s.removeAll(),a.get(\\\"show\\\")&&n&&(r=(o=a.getModel(\\\"itemStyle\\\")).getModel(\\\"textStyle\\\"),a={pos:{left:a.get(\\\"left\\\"),right:a.get(\\\"right\\\"),top:a.get(\\\"top\\\"),bottom:a.get(\\\"bottom\\\")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get(\\\"emptyItemWidth\\\"),totalWidth:0,renderList:[]},this._prepare(n,a,r),this._renderContent(t,a,o,r,i),Qp(s,a.pos,a.box))},JT.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Nr(i.getModel().get(\\\"name\\\"),\\\"\\\"),r=n.getTextRect(o),r=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:i,text:o,width:r})}},JT.prototype._renderContent=function(t,e,n,i,o){for(var r,a,s,l,u,h,c,p,d,f,g,y,m=0,v=e.emptyItemWidth,x=t.get([\\\"breadcrumb\\\",\\\"height\\\"]),_=(r=e.pos,a=(s=e.box).width,s=s.height,l=F(r.left,a),u=F(r.top,s),h=F(r.right,a),c=F(r.bottom,s),(isNaN(l)||isNaN(parseFloat(r.left)))&&(l=0),(isNaN(h)||isNaN(parseFloat(r.right)))&&(h=a),(isNaN(u)||isNaN(parseFloat(r.top)))&&(u=0),(isNaN(c)||isNaN(parseFloat(r.bottom)))&&(c=s),a=Ep(0),{width:Math.max(h-l-a[1]-a[3],0),height:Math.max(c-u-a[0]-a[2],0)}),b=e.totalWidth,w=e.renderList,S=w.length-1;0\u003C=S;S--){var M=w[S],I=M.node,T=M.width,M=M.text,C=(_.width\u003Cb&&(b-=T-v,T=v,M=null),new eh({shape:{points:(p=m,d=0,f=T,g=x,y=S===w.length-1,C=void 0,C=[[y?p:p-5,d],[p+f,d],[p+f,d+g],[y?p:p-5,d+g]],0===S||C.splice(2,0,[p+f+5,d+g/2]),y||C.push([p,d+g/2]),C)},style:H(n.getItemStyle(),{lineJoin:\\\"bevel\\\"}),textContent:new z({style:{text:M,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:\\\"inside\\\"},z2:1e5,onclick:D(o,I)}));C.disableLabelAnimation=!0,this.group.add(C),f=t,y=I,$(C).eventData={componentType:\\\"series\\\",componentSubType:\\\"treemap\\\",componentIndex:f.componentIndex,seriesIndex:f.seriesIndex,seriesName:f.name,seriesType:\\\"treemap\\\",selfType:\\\"breadcrumb\\\",nodeData:{dataIndex:y&&y.dataIndex,name:y&&y.name},treePathInfo:y&&BT(y,f)},m+=T+8}},JT.prototype.remove=function(){this.group.removeAll()};var $T=JT;function JT(t){this.group=new K,t.add(this.group)}tC.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},tC.prototype.finished=function(t){return this._finishedCallback=t,this},tC.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e\u003C=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback)&&t._finishedCallback()},i=0,o=this._storage.length;i\u003Co;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this};var QT=tC;function tC(){this._storage=[],this._elExistsMap={}}var eC,nC=K,iC=E,oC=\\\"upperLabel\\\",rC=ia([[\\\"fill\\\",\\\"color\\\"],[\\\"stroke\\\",\\\"strokeColor\\\"],[\\\"lineWidth\\\",\\\"strokeWidth\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"]]),aC=function(t){var e=rC(t);return e.stroke=e.fill=e.lineWidth=null,e},sC=i(),lC=(u(uC,eC=xy),uC.prototype.render=function(t,e,n,i){var o,r,a,s,l,u,h;G(e.findComponents({mainType:\\\"series\\\",subType:\\\"treemap\\\",query:i}),t)\u003C0||(this.seriesModel=t,this.api=n,this.ecModel=e,o=ET(i,[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],t),r=i&&i.type,l=t.layoutInfo,a=!this._oldTree,s=this._storage,s=\\\"treemapRootToNode\\\"===r&&o&&s?{rootNodeGroup:s.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,l=this._giveContainerGroup(l),u=t.get(\\\"animation\\\"),h=this._doRender(l,t,s),!u||a||r&&\\\"treemapZoomToNode\\\"!==r&&\\\"treemapRootToNode\\\"!==r?h.renderFinally():this._doAnimation(l,h,t,s),this._resetController(n),this._renderBreadcrumb(t,n,o))},uC.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new nC,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},uC.prototype._doRender=function(h,G,W){var t=G.getData().tree,e=this._oldTree,H={nodeGroup:[],background:[],content:[]},Y={nodeGroup:[],background:[],content:[]},U=this._storage,X=[];function c(t,e,n,E){var u=G,z=Y,c=U,p=W,d=H,V=X,f=t,t=e,e=n,n=E;if(f){var h=f.getLayout(),i=u.getData(),g=f.getModel();if(i.setItemGraphicEl(f.dataIndex,null),h&&h.isInView){var o=h.width,r=h.height,a=h.borderWidth,y=h.invisible,m=f.getRawIndex(),v=t&&t.getRawIndex(),s=f.viewChildren,l=h.upperHeight,s=s&&s.length,x=g.getModel(\\\"itemStyle\\\"),_=g.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),b=g.getModel([\\\"blur\\\",\\\"itemStyle\\\"]),w=g.getModel([\\\"select\\\",\\\"itemStyle\\\"]),S=x.get(\\\"borderRadius\\\")||0,M=N(\\\"nodeGroup\\\",nC);if(M){if(e.add(M),M.x=h.x||0,M.y=h.y||0,M.markRedraw(),sC(M).nodeWidth=o,sC(M).nodeHeight=r,!h.isAboveViewRoot){var I=N(\\\"background\\\",iC,n,20);if(I){t=M;e=I;var T=s&&h.upperLabelHeight;var C=$(e);C.dataIndex=f.dataIndex,C.seriesIndex=u.seriesIndex,e.setShape({x:0,y:0,width:o,height:r,r:S}),(y?R:(e.invisible=!1,C=f.getVisual(\\\"style\\\"),D=C.stroke,(k=aC(x)).fill=D,(L=rC(_)).fill=_.get(\\\"borderColor\\\"),(P=rC(b)).fill=b.get(\\\"borderColor\\\"),(O=rC(w)).fill=w.get(\\\"borderColor\\\"),T?(A=o-2*a,B(e,D,C.opacity,{x:a,y:0,width:A,height:l})):e.removeTextContent(),e.setStyle(k),e.ensureState(\\\"emphasis\\\").style=L,e.ensureState(\\\"blur\\\").style=P,e.ensureState(\\\"select\\\").style=O,Ll))(e);t.add(e)}var D=g.getModel(\\\"emphasis\\\"),C=D.get(\\\"focus\\\"),A=D.get(\\\"blurScope\\\"),l=D.get(\\\"disabled\\\"),k=\\\"ancestor\\\"===C?f.getAncestorsIndices():\\\"descendant\\\"===C?f.getDescendantIndices():C;if(s)Ql(M)&&Jl(M,!1),I&&(Jl(I,!l),i.setItemGraphicEl(f.dataIndex,I),jl(I,k,A));else{var L=N(\\\"content\\\",iC,n,30);if(L){T=M;e=L;var P=$(e),P=(P.dataIndex=f.dataIndex,P.seriesIndex=u.seriesIndex,Math.max(o-2*a,0)),O=Math.max(r-2*a,0);e.culling=!0,e.setShape({x:a,y:a,width:P,height:O,r:S}),(y?R:(e.invisible=!1,P=f.getVisual(\\\"style\\\"),O=P.fill,s=aC(x),s.fill=O,s.decal=P.decal,o=rC(_),r=rC(b),a=rC(w),B(e,O,P.opacity,null),e.setStyle(s),e.ensureState(\\\"emphasis\\\").style=o,e.ensureState(\\\"blur\\\").style=r,e.ensureState(\\\"select\\\").style=a,Ll))(e);T.add(e)}I.disableMorphing=!0,I&&Ql(I)&&Jl(I,!1),Jl(M,!l),i.setItemGraphicEl(f.dataIndex,M),jl(M,k,A)}}return M}}}function R(t){t.invisible||V.push(t)}function B(n,t,e,i){var o,r,a=g.getModel(i?oC:\\\"label\\\"),s=Nr(g.get(\\\"name\\\"),null),a=a.getShallow(\\\"show\\\"),l=(Tc(n,Cc(g,i?oC:\\\"label\\\"),{defaultText:a?s:null,inheritColor:t,defaultOpacity:e,labelFetcher:u,labelDataIndex:f.dataIndex}),n.getTextContent());l&&(o=l.style,r=It(o.padding||0),i&&(n.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var t=Math.max((i||n.shape).width-r[1]-r[3],0),e=Math.max((i||n.shape).height-r[0]-r[2],0);o.width===t&&o.height===e||l.setStyle({width:t,height:e})},o.truncateMinChar=2,o.lineOverflow=\\\"truncate\\\",F(o,i,h),F((a=l.getState(\\\"emphasis\\\"))?a.style:null,i,h))}function F(t,e,n){var i,o=t?t.text:null;!e&&n.isLeafRoot&&null!=o&&(i=u.get(\\\"drillDownIcon\\\",!0),t.text=i?i+\\\" \\\"+o:o)}function N(t,e,n,i){var o,r,a=null!=v&&c[t][v],s=d[t];{var l,u,s,h;a?(c[t][v]=null,l=a,u=s[m]={},l instanceof nC?(u.oldX=l.x,u.oldY=l.y):u.oldShape=Z({},l.shape)):y||((a=new e)instanceof Ca&&(a.z2=100*n+i),e=a,u=(l=s)[m]={},s=f.parentNode,h=e instanceof K,!s||p&&\\\"drillDown\\\"!==p.direction||(r=o=0,s=d.background[s.getRawIndex()],!p&&s&&s.oldShape&&(o=s.oldShape.width,r=s.oldShape.height),h?(u.oldX=0,u.oldY=r):u.oldShape={x:o,y:r,width:0,height:0}),u.fadein=!h)}return z[t][m]=a}}!function h(r,a,s,l,u){function t(t){return t.getId()}function n(t,e){var n=null!=t?r[t]:null,i=null!=e?a[e]:null,o=c(n,i,s,u);o&&h(n&&n.viewChildren||[],i&&i.viewChildren||[],o,l,u+1)}l?lt(a=r,function(t,e){t.isRemoved()||n(e,e)}):new fv(a,r,t,t).add(n).update(n).remove(D(n,null)).execute()}(t.root?[t.root]:[],e&&e.root?[e.root]:[],h,t===e||!e,0);i={nodeGroup:[],background:[],content:[]},U&<(U,function(t,e){var n=i[e];lt(t,function(t){t&&(n.push(t),sC(t).willDelete=!0)})});var i,n=i;return this._oldTree=t,this._storage=Y,{lastsForAnimation:H,willDeleteEls:n,renderFinally:function(){lt(n,function(t){lt(t,function(t){t.parent&&t.parent.remove(t)})}),lt(X,function(t){t.invisible=!0,t.dirty()})}}},uC.prototype._doAnimation=function(t,r,e,a){var n=e.get(\\\"animationDurationUpdate\\\"),i=e.get(\\\"animationEasing\\\"),s=(A(n)?0:n)||0,l=(A(i)?null:i)||\\\"cubicOut\\\",u=new QT;lt(r.willDeleteEls,function(t,r){lt(t,function(t,e){var n,i,o;!t.invisible&&(n=t.parent,o=sC(n),o=a&&\\\"drillDown\\\"===a.direction?n===a.rootNodeGroup?{shape:{x:0,y:0,width:o.nodeWidth,height:o.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(i=n=0,o.willDelete||(n=o.nodeWidth/2,i=o.nodeHeight/2),\\\"nodeGroup\\\"===r?{x:n,y:i,style:{opacity:0}}:{shape:{x:n,y:i,width:0,height:0},style:{opacity:0}}))&&u.add(t,o,s,0,l)})}),lt(this._storage,function(t,o){lt(t,function(t,e){var n=r.lastsForAnimation[o][e],i={};n&&(t instanceof K?null!=n.oldX&&(i.x=t.x,i.y=t.y,t.x=n.oldX,t.y=n.oldY):(n.oldShape&&(i.shape=Z({},t.shape),t.setShape(n.oldShape)),n.fadein?(t.setStyle(\\\"opacity\\\",0),i.style={opacity:1}):1!==t.style.opacity&&(i.style={opacity:1})),u.add(t,i,s,0,l))})},this),this._state=\\\"animating\\\",u.finished(I(function(){this._state=\\\"ready\\\",r.renderFinally()},this)).start()},uC.prototype._resetController=function(t){var e=this._controller,i=(e||((e=this._controller=new vI(t.getZr())).enable(this.seriesModel.get(\\\"roam\\\")),e.on(\\\"pan\\\",I(this._onPan,this)),e.on(\\\"zoom\\\",I(this._onZoom,this))),new B(0,0,t.getWidth(),t.getHeight()));e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},uC.prototype._clearController=function(){var t=this._controller;t&&t.dispose()},uC.prototype._onPan=function(t){var e;\\\"animating\\\"!==this._state&&(3\u003CMath.abs(t.dx)||3\u003CMath.abs(t.dy))&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&this.api.dispatchAction({type:\\\"treemapMove\\\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x+t.dx,y:e.y+t.dy,width:e.width,height:e.height}})},uC.prototype._onZoom=function(t){var e,n,i,o=t.originX,r=t.originY;\\\"animating\\\"!==this._state&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&(e=new B(e.x,e.y,e.width,e.height),io(i=[1,0,0,1,0,0],i,[-(o-=(n=this.seriesModel.layoutInfo).x),-(r-=n.y)]),ro(i,i,[t.scale,t.scale]),io(i,i,[o,r]),e.applyTransform(i),this.api.dispatchAction({type:\\\"treemapRender\\\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x,y:e.y,width:e.width,height:e.height}}))},uC.prototype._initEvents=function(t){var o=this;t.on(\\\"click\\\",function(t){var e,n,i;\\\"ready\\\"===o._state&&(n=o.seriesModel.get(\\\"nodeClick\\\",!0))&&(e=o.findTarget(t.offsetX,t.offsetY))&&((i=e.node).getLayout().isLeafRoot?o._rootToNode(e):\\\"zoomToNode\\\"===n?o._zoomToNode(e):\\\"link\\\"===n&&(n=(e=i.hostTree.data.getItemModel(i.dataIndex)).get(\\\"link\\\",!0),i=e.get(\\\"target\\\",!0)||\\\"blank\\\",n)&&Xp(n,i))},this)},uC.prototype._renderBreadcrumb=function(e,t,n){var i=this;n=(n=n||(null!=e.get(\\\"leafDepth\\\",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2)))||{node:e.getData().tree.root},(this._breadcrumb||(this._breadcrumb=new $T(this.group))).render(e,t,n.node,function(t){\\\"animating\\\"!==i._state&&(VT(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},uC.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state=\\\"ready\\\",this._breadcrumb&&this._breadcrumb.remove()},uC.prototype.dispose=function(){this._clearController()},uC.prototype._zoomToNode=function(t){this.api.dispatchAction({type:\\\"treemapZoomToNode\\\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},uC.prototype._rootToNode=function(t){this.api.dispatchAction({type:\\\"treemapRootToNode\\\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},uC.prototype.findTarget=function(i,o){var r;return this.seriesModel.getViewRoot().eachNode({attr:\\\"viewChildren\\\",order:\\\"preorder\\\"},function(t){var e=this._storage.background[t.getRawIndex()];if(e){var n=e.transformCoordToLocal(i,o),e=e.shape;if(!(e.x\u003C=n[0]&&n[0]\u003C=e.x+e.width&&e.y\u003C=n[1]&&n[1]\u003C=e.y+e.height))return!1;r={node:t,offsetX:n[0],offsetY:n[1]}}},this),r},uC.type=\\\"treemap\\\",uC);function uC(){var t=null!==eC&&eC.apply(this,arguments)||this;return t.type=uC.type,t._state=\\\"ready\\\",t._storage={nodeGroup:[],background:[],content:[]},t}var hC=lt,cC=R,pC=-1,dC=(fC.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},fC.prototype.getNormalizer=function(){return I(this._normalizeData,this)},fC.listVisualTypes=function(){return W(fC.visualHandlers)},fC.isValidType=function(t){return fC.visualHandlers.hasOwnProperty(t)},fC.eachVisual=function(t,e,n){R(t)?lt(t,e,n):e.call(n,t)},fC.mapVisual=function(t,i,o){var r,a=U(t)?[]:R(t)?{}:(r=!0,null);return fC.eachVisual(t,function(t,e){var n=i.call(o,t,e);r?a=n:a[e]=n}),a},fC.retrieveVisuals=function(n){var i,o={};return n&&hC(fC.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},fC.prepareVisualTypes=function(t){if(U(t))t=t.slice();else{if(!cC(t))return[];var n=[];hC(t,function(t,e){n.push(e)}),t=n}return t.sort(function(t,e){return\\\"color\\\"===e&&\\\"color\\\"!==t&&0===t.indexOf(\\\"color\\\")?1:-1}),t},fC.dependsOn=function(t,e){return\\\"color\\\"===e?!(!t||0!==t.indexOf(e)):t===e},fC.findPieceIndex=function(i,t,e){for(var o,r=1/0,n=0,a=t.length;n\u003Ca;n++){var s=t[n].value;if(null!=s){if(s===i||X(s)&&s===i+\\\"\\\")return n;e&&h(s,n)}}for(n=0,a=t.length;n\u003Ca;n++){var l=t[n],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(IC(l[1],i,u[1]))return n}else if(u[1]===1/0){if(IC(l[0],u[0],i))return n}else if(IC(l[0],u[0],i)&&IC(l[1],i,u[1]))return n;e&&h(u[0],n),e&&h(u[1],n)}}if(e)return i===1/0?t.length-1:i===-1/0?0:o;function h(t,e){var n=Math.abs(t-i);n\u003Cr&&(r=n,o=e)}},fC.visualHandlers={color:{applyVisual:vC(\\\"color\\\"),getColorMapper:function(){var o=this.option;return I(\\\"category\\\"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),xC.call(this,t)}:function(t,e,n){var i=!!n;return n=Un(t=e?t:this._normalizeData(t),o.parsedVisual,n),i?n:qn(n,\\\"rgba\\\")},this)},_normalizedToVisual:{linear:function(t){return qn(Un(t,this.option.parsedVisual),\\\"rgba\\\")},category:xC,piecewise:function(t,e){var n=wC.call(this,e);return n=null==n?qn(Un(t,this.option.parsedVisual),\\\"rgba\\\"):n},fixed:_C}},colorHue:yC(function(t,e){return Zn(t,e)}),colorSaturation:yC(function(t,e){return Zn(t,null,e)}),colorLightness:yC(function(t,e){return Zn(t,null,null,e)}),colorAlpha:yC(jn),decal:{applyVisual:vC(\\\"decal\\\"),_normalizedToVisual:{linear:null,category:xC,piecewise:null,fixed:null}},opacity:{applyVisual:vC(\\\"opacity\\\"),_normalizedToVisual:bC([0,1])},liftZ:{applyVisual:vC(\\\"liftZ\\\"),_normalizedToVisual:{linear:_C,category:_C,piecewise:_C,fixed:_C}},symbol:{applyVisual:function(t,e,n){n(\\\"symbol\\\",this.mapValueToVisual(t))},_normalizedToVisual:{linear:mC,category:xC,piecewise:function(t,e){var n=wC.call(this,e);return n=null==n?mC.call(this,t):n},fixed:_C}},symbolSize:{applyVisual:vC(\\\"symbolSize\\\"),_normalizedToVisual:bC([0,1])}},fC);function fC(t){var n,e=t.mappingMethod,i=t.type,o=this.option=L(t),i=(this.type=i,this.mappingMethod=e,this._normalizeData=MC[e],fC.visualHandlers[i]);if(this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],\\\"piecewise\\\"===e)gC(o),i=(n=o).pieceList,n.hasSpecialVisual=!1,lt(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)});else if(\\\"category\\\"===e)if(o.categories){var r,a=(t=o).categories,s=t.categoryMap={},l=t.visual;hC(a,function(t,e){s[t]=e}),U(l)||(r=[],R(l)?hC(l,function(t,e){var n=s[e];r[null!=n?n:pC]=t}):r[-1]=l,l=SC(t,r));for(var u=a.length-1;0\u003C=u;u--)null==l[u]&&(delete s[a[u]],a.pop())}else gC(o,!0);else Tt(\\\"linear\\\"!==e||o.dataExtent),gC(o)}function gC(t,e){var n=t.visual,i=[];R(n)?hC(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),SC(t,i)}function yC(o){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n(\\\"color\\\",o(e(\\\"color\\\"),i))},_normalizedToVisual:bC([0,1])}}function mC(t){var e=this.option.visual;return e[Math.round(ir(t,[0,1],[0,e.length-1],!0))]||{}}function vC(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function xC(t){var e=this.option.visual;return e[this.option.loop&&t!==pC?t%e.length:t]}function _C(){return this.option.visual[0]}function bC(i){return{linear:function(t){return ir(t,i,this.option.visual,!0)},category:xC,piecewise:function(t,e){var n=wC.call(this,e);return n=null==n?ir(t,i,this.option.visual,!0):n},fixed:_C}}function wC(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){e=n[dC.findPieceIndex(t,n)];if(e&&e.visual)return e.visual[this.type]}}function SC(t,e){return t.visual=e,\\\"color\\\"===t.type&&(t.parsedVisual=Y(e,function(t){return Wn(t)||[0,0,0,1]})),e}var MC={linear:function(t){return ir(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=dC.findPieceIndex(t,e,!0);if(null!=n)return ir(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?pC:e},fixed:Et};function IC(t,e,n){return t?e\u003C=n:e\u003Cn}var TC=i(),CC={seriesType:\\\"treemap\\\",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function p(t,e,i,o){var r=t.getModel(),n=t.getLayout(),a=t.hostTree.data;{var s,l,u,h,c;n&&!n.invisible&&n.isInView&&(h=r.getModel(\\\"itemStyle\\\"),l=function(n,i,t){var o=Z({},i),r=t.designatedVisualItemStyle;return lt([\\\"color\\\",\\\"colorAlpha\\\",\\\"colorSaturation\\\"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}(h,e,o),a=a.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\"),u=h.get(\\\"borderColor\\\"),null!=(h=h.get(\\\"borderColorSaturation\\\"))&&(u=function(t,e){return null!=e?Zn(e,null,null,t):null}(h,s=DC(l))),a.stroke=u,(h=t.viewChildren)&&h.length?(c=function(t,e,n,i){if(i&&i.length){var o,r,a,s=kC(t,\\\"color\\\")||null!=n.color&&\\\"none\\\"!==n.color&&(kC(t,\\\"colorAlpha\\\")||kC(t,\\\"colorSaturation\\\"));if(s)return o=t.get(\\\"visualMin\\\"),r=t.get(\\\"visualMax\\\"),a=e.dataExtent.slice(),null!=o&&o\u003Ca[0]&&(a[0]=o),null!=r&&r>a[1]&&(a[1]=r),o=t.get(\\\"colorMappingBy\\\"),\\\"color\\\"!==(r={type:s.name,dataExtent:a,visual:s.range}).type||\\\"index\\\"!==o&&\\\"id\\\"!==o?r.mappingMethod=\\\"linear\\\":(r.mappingMethod=\\\"category\\\",r.loop=!0),a=new dC(r),TC(a).drColorMappingBy=o,a}}(r,n,l,h),lt(h,function(t,e){var n;(t.depth>=i.length||t===i[t.depth])&&(n=function(t,e,n,i,o,r){var a,s,l=Z({},e);return o&&(a=o.type,s=\\\"color\\\"===a&&TC(o).drColorMappingBy,s=\\\"index\\\"===s?i:\\\"id\\\"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get(\\\"visualDimension\\\")),l[a]=o.mapValueToVisual(s)),l}(r,l,t,e,c,o),p(t,n,i,o))})):(s=DC(l),a.fill=s))}}(e,{},t.getViewRoot().getAncestors(),t)}};function DC(t){var e,n,i=AC(t,\\\"color\\\");if(i)return e=AC(t,\\\"colorAlpha\\\"),(n=AC(t,\\\"colorSaturation\\\"))&&(i=Zn(i,null,null,n)),e?jn(i,e):i}function AC(t,e){var n=t[e];if(null!=n&&\\\"none\\\"!==n)return n}function kC(t,e){var n=t.get(e);return U(n)&&n.length?{name:e,range:n}:null}var LC=Math.max,PC=Math.min,OC=wt,RC=lt,NC=[\\\"itemStyle\\\",\\\"borderWidth\\\"],EC=[\\\"itemStyle\\\",\\\"gapWidth\\\"],zC=[\\\"upperLabel\\\",\\\"show\\\"],VC=[\\\"upperLabel\\\",\\\"height\\\"],BC={seriesType:\\\"treemap\\\",reset:function(d,t,e,n){var i,o=e.getWidth(),r=e.getHeight(),a=d.option,s=Jp(d.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=a.size||[],u=F(OC(s.width,l[0]),o),l=F(OC(s.height,l[1]),r),h=n&&n.type,f=ET(n,[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],d),c=\\\"treemapRender\\\"===h||\\\"treemapMove\\\"===h?n.rootRect:null,g=d.getViewRoot(),p=zT(g),u=(\\\"treemapMove\\\"!==h&&(h=\\\"treemapZoomToNode\\\"===h?function(t,e){var n,i=(f||{}).node,o=[t,e];if(!i||i===g)return o;for(var r=t*e,a=r*d.option.zoomToNodeRatio;n=i.parentNode;){for(var s=0,l=n.children,u=0,h=l.length;u\u003Ch;u++)s+=l[u].getValue();var c=i.getValue();if(0===c)return o;a*=s/c;var c=n.getModel(),p=c.get(NC);(a+=4*p*p+(3*p+Math.max(p,WC(c)))*Math.pow(a,.5))>hr&&(a=hr),i=n}a\u003Cr&&(a=r);r=Math.pow(a/r,.5);return[t*r,e*r]}(u,l):c?[c.width,c.height]:[u,l],u=a.sort,l={squareRatio:a.squareRatio,sort:u=u&&\\\"asc\\\"!==u&&\\\"desc\\\"!==u?\\\"desc\\\":u,leafDepth:a.leafDepth},g.hostTree.clearLayouts(),i={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]},g.setLayout(i),function b(t,e,n,i){var o;if(!t.isRemoved()){var r=t.getLayout(),a=(o=r.width,r=r.height,t.getModel()),s=a.get(NC),l=a.get(EC)/2,u=WC(a),h=Math.max(s,u),c=s-l,p=h-l,s=(t.setLayout({borderWidth:s,upperHeight:h,upperLabelHeight:u},!0),(o=LC(o-2*c,0))*(r=LC(r-c-p,0))),d=function(t,e,n,i,o,r){var a=t.children||[],s=i.sort,l=(\\\"asc\\\"!==s&&\\\"desc\\\"!==s&&(s=null),null!=i.leafDepth&&i.leafDepth\u003C=r);if(o&&!l)return t.viewChildren=[];var i=a=pt(a,function(t){return!t.isRemoved()}),u=s,h=(u&&i.sort(function(t,e){var n=\\\"asc\\\"===u?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?\\\"asc\\\"===u?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n}),function(t,e,n){for(var i=0,o=0,r=e.length;o\u003Cr;o++)i+=e[o].getValue();var a,s=t.get(\\\"visualDimension\\\");return e&&e.length?\\\"value\\\"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],\\\"asc\\\"===n&&a.reverse()):(a=[1/0,-1/0],RC(e,function(t){var e=t.getValue(s);e\u003Ca[0]&&(a[0]=e),e>a[1]&&(a[1]=e)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s));if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,n,i,o){if(i){for(var r=t.get(\\\"visibleMin\\\"),a=o.length,s=a,l=a-1;0\u003C=l;l--){var u=o[\\\"asc\\\"===i?a-l-1:l].getValue();u/n*e\u003Cr&&(s=l,n-=u)}\\\"asc\\\"===i?o.splice(0,a-s):o.splice(s,a-s)}return n}(e,n,h.sum,s,a),0===h.sum)return t.viewChildren=[];for(var c=0,p=a.length;c\u003Cp;c++){var d=a[c].getValue()/h.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:h.dataExtent},!0),a}(t,a,s,e,n,i);if(d.length){for(var f={x:c,y:p,width:o,height:r},g=PC(o,r),y=1/0,m=[],v=m.area=0,x=d.length;v\u003Cx;){var _=d[v],_=(m.push(_),m.area+=_.getLayout().area,FC(m,g,e.squareRatio));y=_\u003C=y?(v++,_):(m.area-=m.pop().getLayout().area,GC(m,g,f,l,!1),g=PC(f.width,f.height),1/(m.length=m.area=0))}for(m.length&&GC(m,g,f,l,!0),n||null!=(h=a.get(\\\"childrenVisibleMin\\\"))&&s\u003Ch&&(n=!0),v=0,x=d.length;v\u003Cx;v++)b(d[v],e,n,i+1)}}}(g,l,!1,0),i=g.getLayout(),RC(p,function(t,e){var n=(p[e+1]||g).getValue();t.setLayout(Z({dataExtent:[n,n],borderWidth:0,upperHeight:0},i))})),d.getData().tree.root);u.setLayout(function(t){if(c)return{x:c.x,y:c.y};var e={x:0,y:0};if(!f)return e;var n=f.node,i=n.getLayout();if(!i)return e;for(var o=[i.width/2,i.height/2],r=n;r;){var a=r.getLayout();o[0]+=a.x,o[1]+=a.y,r=r.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}(s),!0),d.setLayoutInfo(s),function y(t,e,n,i,o){var r=t.getLayout(),a=n[o],s=a&&a===t;{var l;a&&!s||o===n.length&&t!==i||(t.setLayout({isInView:!0,invisible:!s&&!e.intersect(r),isAboveViewRoot:s},!0),l=new B(e.x-r.x,e.y-r.y,e.width,e.height),RC(t.viewChildren||[],function(t){y(t,l,n,i,o+1)}))}}(u,new B(-s.x,-s.y,o,r),p,g,0)}};function FC(t,e,n){for(var i,o=0,r=1/0,a=0,s=t.length;a\u003Cs;a++)(i=t[a].getLayout().area)&&(i\u003Cr&&(r=i),o\u003Ci)&&(o=i);var l=t.area*t.area,u=e*e*n;return l?LC(u*o/l,l/(u*r)):1/0}function GC(t,e,n,i,o){var r=e===n.width?0:1,a=1-r,s=[\\\"x\\\",\\\"y\\\"],l=[\\\"width\\\",\\\"height\\\"],u=n[s[r]],h=e?t.area/e:0;(o||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;c\u003Cp;c++){var d=t[c],f={},g=h?d.getLayout().area/h:0,y=f[l[a]]=LC(h-2*i,0),m=n[s[r]]+n[l[r]]-u,m=c===p-1||m\u003Cg?m:g,g=f[l[r]]=LC(m-2*i,0);f[s[a]]=n[s[a]]+PC(i,y/2),f[s[r]]=u+PC(i,g/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function WC(t){return t.get(zC)?t.get(VC):0}function HC(t){var r=t.findComponents({mainType:\\\"legend\\\"});r&&r.length&&t.eachSeriesByType(\\\"graph\\\",function(t){var e=t.getCategoriesData(),i=t.getGraph().data,o=e.mapArray(e.getName);i.filterSelf(function(t){var e=i.getItemModel(t).getShallow(\\\"category\\\");if(null!=e){j(e)&&(e=o[e]);for(var n=0;n\u003Cr.length;n++)if(!r[n].isSelected(e))return!1}return!0})})}function YC(t){var h={};t.eachSeriesByType(\\\"graph\\\",function(s){var l=s.getCategoriesData(),r=s.getData(),u={};l.each(function(t){var e=l.getName(t),n=(u[\\\"ec-\\\"+e]=t,l.getItemModel(t)),i=n.getModel(\\\"itemStyle\\\").getItemStyle();i.fill||(i.fill=s.getColorFromPalette(e,h)),l.setItemVisual(t,\\\"style\\\",i);for(var o=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolKeepAspect\\\"],r=0;r\u003Co.length;r++){var a=n.getShallow(o[r],!0);null!=a&&l.setItemVisual(t,o[r],a)}}),l.count()&&r.each(function(t){var e=r.getItemModel(t).getShallow(\\\"category\\\");if(null!=e){X(e)&&(e=u[\\\"ec-\\\"+e]);var n=l.getItemVisual(e,\\\"style\\\");Z(r.ensureUniqueItemVisual(t,\\\"style\\\"),n);for(var i=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolKeepAspect\\\"],o=0;o\u003Ci.length;o++)r.setItemVisual(t,i[o],l.getItemVisual(e,i[o]))}})})}function UC(t){return t=t instanceof Array?t:[t,t]}function XC(t){t.eachSeriesByType(\\\"graph\\\",function(t){var s=t.getGraph(),l=t.getEdgeData(),e=UC(t.get(\\\"edgeSymbol\\\")),n=UC(t.get(\\\"edgeSymbolSize\\\"));l.setVisual(\\\"fromSymbol\\\",e&&e[0]),l.setVisual(\\\"toSymbol\\\",e&&e[1]),l.setVisual(\\\"fromSymbolSize\\\",n&&n[0]),l.setVisual(\\\"toSymbolSize\\\",n&&n[1]),l.setVisual(\\\"style\\\",t.getModel(\\\"lineStyle\\\").getLineStyle()),l.each(function(t){var e=l.getItemModel(t),n=s.getEdgeByIndex(t),i=UC(e.getShallow(\\\"symbol\\\",!0)),o=UC(e.getShallow(\\\"symbolSize\\\",!0)),e=e.getModel(\\\"lineStyle\\\").getLineStyle(),r=l.ensureUniqueItemVisual(t,\\\"style\\\");switch(Z(r,e),r.stroke){case\\\"source\\\":var a=n.node1.getVisual(\\\"style\\\");r.stroke=a&&a.fill;break;case\\\"target\\\":a=n.node2.getVisual(\\\"style\\\"),r.stroke=a&&a.fill}i[0]&&n.setVisual(\\\"fromSymbol\\\",i[0]),i[1]&&n.setVisual(\\\"toSymbol\\\",i[1]),o[0]&&n.setVisual(\\\"fromSymbolSize\\\",o[0]),o[1]&&n.setVisual(\\\"toSymbolSize\\\",o[1])})})}var ZC=function(t){return t.get(\\\"autoCurveness\\\")||null},jC=function(t,e){var n=ZC(t),i=20,o=[];if(j(n))i=n;else if(U(n))return void(t.__curvenessList=n);for(var r=(i=i\u003Ce?e:i)%2?i+2:i+3,o=[],a=0;a\u003Cr;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=o},qC=function(t,e,n){var i=[t.id,t.dataIndex].join(\\\".\\\"),o=[e.id,e.dataIndex].join(\\\".\\\");return[n.uid,i,o].join(\\\"--\\\\x3e\\\")},KC=function(t){var e=t.split(\\\"--\\\\x3e\\\");return[e[0],e[2],e[1]].join(\\\"--\\\\x3e\\\")},$C=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function JC(t,e,n,i){var o=ZC(e),r=U(o);if(!o)return null;h=e,p=qC(t.node1,t.node2,h);var a=h.__edgeMap[p];if(!a)return null;for(var s=-1,l=0;l\u003Ca.length;l++)if(a[l]===n){s=l;break}h=e;var u,h,c,p=$C(qC((u=t).node1,u.node2,h),h)+$C(qC(u.node2,u.node1,h),h),d=(jC(e,p),t.lineStyle=t.lineStyle||{},qC(t.node1,t.node2,e)),f=e.__curvenessList,p=r||p%2?0:1;return a.isForward?f[p+s]:(d=KC(d),c=f[s+(d=$C(d,e))+p],i?!r||o&&0===o[0]?(d+p)%2?c:-c:((d%2?0:1)+p)%2?c:-c:f[s+d+p])}function QC(t){var e=t.coordinateSystem;e&&\\\"view\\\"!==e.type||((e=t.getGraph()).eachNode(function(t){var e=t.getModel();t.setLayout([+e.get(\\\"x\\\"),+e.get(\\\"y\\\")])}),tD(e,t))}function tD(t,a){t.eachEdge(function(t,e){var n=St(t.getModel().get([\\\"lineStyle\\\",\\\"curveness\\\"]),-JC(t,a,e,!0),0),i=Gt(t.node1.getLayout()),o=Gt(t.node2.getLayout()),r=[i,o];+n&&r.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(r)})}function eD(t,e){t.eachSeriesByType(\\\"graph\\\",function(t){var e=t.get(\\\"layout\\\"),n=t.coordinateSystem;if(n&&\\\"view\\\"!==n.type){var i=t.getData(),o=[];lt(n.dimensions,function(t){o=o.concat(i.mapDimensionsAll(t))});for(var r=0;r\u003Ci.count();r++){for(var a=[],s=!1,l=0;l\u003Co.length;l++){var u=i.get(o[l],r);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}tD(i.graph,t)}else e&&\\\"none\\\"!==e||QC(t)})}function nD(t){var e,n,i=t.coordinateSystem;return\\\"view\\\"!==i.type?1:(e=t.option.nodeScaleRatio,n=i.scaleX,((i.getZoom()-1)*e+1)/n)}function iD(t){var e=t.getVisual(\\\"symbolSize\\\");return+(e=e instanceof Array?(e[0]+e[1])/2:e)}var oD=Math.PI,rD=[];function aD(l,t){var e,n,u,h,i,o=l.coordinateSystem;o&&\\\"view\\\"!==o.type||(o=o.getBoundingRect(),n=(e=l.getData()).graph,u=o.width/2+o.x,h=o.height/2+o.y,o=Math.min(o.width,o.height)/2,i=e.count(),e.setLayout({cx:u,cy:h}),i&&(sD[t](l,n,e,o,u,h,i),n.eachEdge(function(t,e){var n,i=St(t.getModel().get([\\\"lineStyle\\\",\\\"curveness\\\"]),JC(t,l,e),0),o=Gt(t.node1.getLayout()),r=Gt(t.node2.getLayout()),a=(o[0]+r[0])/2,s=(o[1]+r[1])/2;+i&&(n=[u*(i*=3)+a*(1-i),h*i+s*(1-i)]),t.setLayout([o,r,n])})))}var sD={value:function(t,e,n,i,o,r,a){var s=0,l=n.getSum(\\\"value\\\"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue(\\\"value\\\"),e=u*(l?e:1)/2;s+=e,t.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=e})},symbolSize:function(t,e,n,i,o,r,a){var s=0,l=(rD.length=a,nD(t)),u=(e.eachNode(function(t){var e=iD(t),e=((e=isNaN(e)?2:e)\u003C0&&(e=0),e*=l,Math.asin(e/2/i));isNaN(e)&&(e=oD/2),rD[t.dataIndex]=e,s+=2*e}),(2*oD-s)/a/2),h=0;e.eachNode(function(t){var e=u+rD[t.dataIndex];h+=e,t.setLayout([i*Math.cos(h)+o,i*Math.sin(h)+r]),h+=e})}};function lD(t){t.eachSeriesByType(\\\"graph\\\",function(t){\\\"circular\\\"===t.get(\\\"layout\\\")&&aD(t,\\\"symbolSize\\\")})}var uD=Yt;function hD(t){t.eachSeriesByType(\\\"graph\\\",function(a){var h,c,p,t,o,s,r,l,u,e,n,i,d=a.coordinateSystem;d&&\\\"view\\\"!==d.type||(\\\"force\\\"===a.get(\\\"layout\\\")?(h=a.preservedPoints||{},c=a.getGraph(),p=c.data,i=c.edgeData,e=(t=a.getModel(\\\"force\\\")).get(\\\"initLayout\\\"),a.preservedPoints?p.each(function(t){var e=p.getId(t);p.setItemLayout(t,h[e]||[NaN,NaN])}):e&&\\\"none\\\"!==e?\\\"circular\\\"===e&&aD(a,\\\"value\\\"):QC(a),o=p.getDataExtent(\\\"value\\\"),s=i.getDataExtent(\\\"value\\\"),e=t.get(\\\"repulsion\\\"),n=t.get(\\\"edgeLength\\\"),r=U(e)?e:[e,e],l=[(l=U(n)?n:[n,n])[1],l[0]],u=p.mapArray(\\\"value\\\",function(t,e){var n=p.getItemLayout(e),i=ir(t,o,r);return{w:i=isNaN(i)?(r[0]+r[1])/2:i,rep:i,fixed:p.getItemModel(e).get(\\\"fixed\\\"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),e=i.mapArray(\\\"value\\\",function(t,e){var n=c.getEdgeByIndex(e),i=ir(t,s,l),o=(isNaN(i)&&(i=(l[0]+l[1])/2),n.getModel()),r=St(n.getModel().get([\\\"lineStyle\\\",\\\"curveness\\\"]),-JC(n,a,e,!0),0);return{n1:u[n.node1.dataIndex],n2:u[n.node2.dataIndex],d:i,curveness:r,ignoreForceLayout:o.get(\\\"ignoreForceLayout\\\")}}),n=d.getBoundingRect(),(i=function(t,e,n){for(var d=t,f=e,i=n.rect,o=i.width,r=i.height,g=[i.x+o/2,i.y+r/2],y=null==n.gravity?.1:n.gravity,a=0;a\u003Cd.length;a++){var s=d[a];s.p||(s.p=Bt(o*(Math.random()-.5)+g[0],r*(Math.random()-.5)+g[1])),s.pp=Gt(s.p),s.edges=null}var m,v,l=null==n.friction?.6:n.friction,x=l;return{warmUp:function(){x=.8*l},setFixed:function(t){d[t].fixed=!0},setUnfixed:function(t){d[t].fixed=!1},beforeStep:function(t){m=t},afterStep:function(t){v=t},step:function(t){m&&m(d,f);for(var e=[],n=d.length,i=0;i\u003Cf.length;i++){var o,r=f[i];r.ignoreForceLayout||(a=r.n1,Ut(e,(l=r.n2).p,a.p),o=Xt(e)-r.d,r=l.w/(a.w+l.w),isNaN(r)&&(r=0),qt(e,e),a.fixed||uD(a.p,a.p,e,r*o*x),l.fixed)||uD(l.p,l.p,e,-(1-r)*o*x)}for(i=0;i\u003Cn;i++)(h=d[i]).fixed||(Ut(e,g,h.p),uD(h.p,h.p,e,y*x));for(i=0;i\u003Cn;i++)for(var a=d[i],s=i+1;s\u003Cn;s++){Ut(e,(l=d[s]).p,a.p),0===(o=Xt(e))&&(Wt(e,Math.random()-.5,Math.random()-.5),o=1);var l,u=(a.rep+l.rep)/o/o;a.fixed||uD(a.pp,a.pp,e,u),l.fixed||uD(l.pp,l.pp,e,-u)}for(var h,c=[],i=0;i\u003Cn;i++)(h=d[i]).fixed||(Ut(c,h.p,h.pp),uD(h.p,h.p,c,x),Ft(h.pp,h.p));var p=(x*=.992)\u003C.01;v&&v(d,f,p),t&&t(p)}}}(u,e,{rect:n,gravity:t.get(\\\"gravity\\\"),friction:t.get(\\\"friction\\\")})).beforeStep(function(t,e){for(var n=0,i=t.length;n\u003Ci;n++)t[n].fixed&&Ft(t[n].p,c.getNodeByIndex(n).getLayout())}),i.afterStep(function(t,e,n){for(var i=0,o=t.length;i\u003Co;i++)t[i].fixed||c.getNodeByIndex(i).setLayout(t[i].p),h[p.getId(i)]=t[i].p;for(i=0,o=e.length;i\u003Co;i++){var r=e[i],a=c.getEdgeByIndex(i),s=r.n1.p,l=r.n2.p,u=a.getLayout();(u=u?u.slice():[])[0]=u[0]||[],u[1]=u[1]||[],Ft(u[0],s),Ft(u[1],l),+r.curveness&&(u[2]=[(s[0]+l[0])/2-(s[1]-l[1])*r.curveness,(s[1]+l[1])/2-(l[0]-s[0])*r.curveness]),a.setLayout(u)}}),a.forceLayout=i,a.preservedPoints=h,i.step()):a.forceLayout=null)})}function cD(t,c){var p=[];return t.eachSeriesByType(\\\"graph\\\",function(t){var n,e,i,o,r,a,s,l,u,h=t.get(\\\"coordinateSystem\\\");h&&\\\"view\\\"!==h||(h=[],o=[],Ba((n=t.getData()).mapArray(function(t){var e=n.getItemModel(t);return[+e.get(\\\"x\\\"),+e.get(\\\"y\\\")]}),h,o),o[0]-h[0]==0&&(o[0]+=1,--h[0]),o[1]-h[1]==0&&(o[1]+=1,--h[1]),i=(o[0]-h[0])/(o[1]-h[1]),l=c,u=i,e=Jp(Z(t.getBoxLayoutParams(),{aspect:u}),{width:l.getWidth(),height:l.getHeight()}),isNaN(i)&&(h=[e.x,e.y],o=[e.x+e.width,e.y+e.height]),i=o[0]-h[0],o=o[1]-h[1],r=e.width,a=e.height,(s=t.coordinateSystem=new N2).zoomLimit=t.get(\\\"scaleLimit\\\"),s.setBoundingRect(h[0],h[1],i,o),s.setViewRect(e.x,e.y,r,a),s.setCenter(t.get(\\\"center\\\")),s.setZoom(t.get(\\\"zoom\\\")),p.push(s))}),p}var pD,dD=hh.prototype,fD=yh.prototype,gD=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function yD(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(function(){return null!==pD&&pD.apply(this,arguments)||this},pD=gD);u(_D,mD=Q),_D.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},_D.prototype.getDefaultShape=function(){return new gD},_D.prototype.buildPath=function(t,e){(yD(e)?dD:fD).buildPath.call(this,t,e)},_D.prototype.pointAt=function(t){return(yD(this.shape)?dD:fD).pointAt.call(this,t)},_D.prototype.tangentAt=function(t){var e=this.shape,e=yD(e)?[e.x2-e.x1,e.y2-e.y1]:fD.tangentAt.call(this,t);return qt(e,e)};var mD,vD=_D,xD=[\\\"fromSymbol\\\",\\\"toSymbol\\\"];function _D(t){var e=mD.call(this,t)||this;return e.type=\\\"ec-line\\\",e}function bD(t){return\\\"_\\\"+t+\\\"Type\\\"}function wD(t,e,n){var i,o,r,a,s=e.getItemVisual(n,t);if(s&&\\\"none\\\"!==s)return a=e.getItemVisual(n,t+\\\"Size\\\"),i=e.getItemVisual(n,t+\\\"Rotate\\\"),r=e.getItemVisual(n,t+\\\"Offset\\\"),o=e.getItemVisual(n,t+\\\"KeepAspect\\\"),a=Im(r||0,r=Mm(a)),(s=Sm(s,-r[0]/2+a[0],-r[1]/2+a[1],r[0],r[1],null,o)).__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,s.name=t,s}function SD(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}u(DD,MD=K),DD.prototype._createLine=function(n,i,t){var e,o,r=n.hostModel;e=n.getItemLayout(i),SD((o=new vD({name:\\\"line\\\",subPixelOptimize:!0})).shape,e);o.shape.percent=0,Yh(o,{shape:{percent:1}},r,i),this.add(o),lt(xD,function(t){var e=wD(t,n,i);this.add(e),this[bD(t)]=n.getItemVisual(i,t)},this),this._updateCommonStl(n,i,t)},DD.prototype.updateData=function(o,r,t){var e=o.hostModel,n=this.childOfName(\\\"line\\\"),i=o.getItemLayout(r),a={shape:{}};SD(a.shape,i),k(n,a,e,r),lt(xD,function(t){var e,n=o.getItemVisual(r,t),i=bD(t);this[i]!==n&&(this.remove(this.childOfName(t)),e=wD(t,o,r),this.add(e)),this[i]=n},this),this._updateCommonStl(o,r,t)},DD.prototype.getLinePath=function(){return this.childAt(0)},DD.prototype._updateCommonStl=function(n,t,e){var i=n.hostModel,r=this.childOfName(\\\"line\\\"),o=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels,u=e&&e.emphasisDisabled,h=e&&e.focus,c=e&&e.blurScope,p=(e&&!n.hasItemOption||(o=(f=(g=n.getItemModel(t)).getModel(\\\"emphasis\\\")).getModel(\\\"lineStyle\\\").getLineStyle(),a=g.getModel([\\\"blur\\\",\\\"lineStyle\\\"]).getLineStyle(),s=g.getModel([\\\"select\\\",\\\"lineStyle\\\"]).getLineStyle(),u=f.get(\\\"disabled\\\"),h=f.get(\\\"focus\\\"),c=f.get(\\\"blurScope\\\"),l=Cc(g)),n.getItemVisual(t,\\\"style\\\")),d=p.stroke,f=(r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState(\\\"emphasis\\\").style=o,r.ensureState(\\\"blur\\\").style=a,r.ensureState(\\\"select\\\").style=s,lt(xD,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n\u003Cul.length;n++){var i=ul[n],o=r.getState(i);o&&(o=o.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=o.stroke&&(i[e.__isEmptyBrush?\\\"stroke\\\":\\\"fill\\\"]=o.stroke),null!=o.opacity)&&(i.opacity=o.opacity)}e.markRedraw()}},this),i.getRawValue(t)),g=(Tc(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:d||\\\"#000\\\",defaultOpacity:p.opacity,defaultText:(null==f?n.getName(t):isFinite(f)?or(f):f)+\\\"\\\"}),this.getTextContent());g&&(o=l.normal,g.__align=g.style.align,g.__verticalAlign=g.style.verticalAlign,g.__position=o.get(\\\"position\\\")||\\\"middle\\\",U(a=o.get(\\\"distance\\\"))||(a=[a,a]),g.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),Zl(this,h,c,u)},DD.prototype.highlight=function(){Rl(this)},DD.prototype.downplay=function(){Nl(this)},DD.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},DD.prototype.setLinePoints=function(t){var e=this.childOfName(\\\"line\\\");SD(e.shape,t),e.dirty()},DD.prototype.beforeUpdate=function(){var t=this.childOfName(\\\"fromSymbol\\\"),e=this.childOfName(\\\"toSymbol\\\"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var r=this.childOfName(\\\"line\\\");if(this.__dirty||r.__dirty){var a=r.shape.percent,s=r.pointAt(0),l=r.pointAt(a),u=Ut([],l,s);if(qt(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,t=n.__labelDistance,p=t[0]*i,d=t[1]*i,e=a/2,f=r.tangentAt(e),t=[f[1],-f[0]],g=r.pointAt(e),y=(0\u003Ct[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]\u003C0?-1:1),m=(\\\"start\\\"!==n.__position&&\\\"end\\\"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]\u003Cs[0]&&(a=Math.PI+a),n.rotation=a),void 0);switch(n.__position){case\\\"insideStartTop\\\":case\\\"insideMiddleTop\\\":case\\\"insideEndTop\\\":case\\\"middle\\\":m=-d,c=\\\"bottom\\\";break;case\\\"insideStartBottom\\\":case\\\"insideMiddleBottom\\\":case\\\"insideEndBottom\\\":m=d,c=\\\"top\\\";break;default:m=0,c=\\\"middle\\\"}switch(n.__position){case\\\"end\\\":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],h=.8\u003Cu[0]?\\\"left\\\":u[0]\u003C-.8?\\\"right\\\":\\\"center\\\",c=.8\u003Cu[1]?\\\"top\\\":u[1]\u003C-.8?\\\"bottom\\\":\\\"middle\\\";break;case\\\"start\\\":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],h=.8\u003Cu[0]?\\\"right\\\":u[0]\u003C-.8?\\\"left\\\":\\\"center\\\",c=.8\u003Cu[1]?\\\"bottom\\\":u[1]\u003C-.8?\\\"top\\\":\\\"middle\\\";break;case\\\"insideStartTop\\\":case\\\"insideStart\\\":case\\\"insideStartBottom\\\":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]\u003C0?\\\"right\\\":\\\"left\\\",n.originX=-p*y,n.originY=-m;break;case\\\"insideMiddleTop\\\":case\\\"insideMiddle\\\":case\\\"insideMiddleBottom\\\":case\\\"middle\\\":n.x=g[0],n.y=g[1]+m,h=\\\"center\\\",n.originY=-m;break;case\\\"insideEndTop\\\":case\\\"insideEnd\\\":case\\\"insideEndBottom\\\":n.x=-p*y+l[0],n.y=l[1]+m,h=0\u003C=f[0]?\\\"right\\\":\\\"left\\\",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr(\\\"rotation\\\",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr(\\\"rotation\\\",i)}};var MD,ID=DD,TD=(CD.prototype.updateData=function(n){var i=this,e=(this._progressiveEls=null,this.group),o=this._lineData,r=(this._lineData=n,o||e.removeAll(),AD(n));n.diff(o).add(function(t){i._doAdd(n,t,r)}).update(function(t,e){i._doUpdate(o,n,e,t,r)}).remove(function(t){e.remove(o.getItemGraphicEl(t))}).execute()},CD.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},CD.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=AD(t),this._lineData=null,this.group.removeAll()},CD.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||t.animators&&0\u003Ct.animators.length||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}this._progressiveEls=[];for(var i,o=t.start;o\u003Ct.end;o++)LD(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i),this._progressiveEls.push(i))},CD.prototype.remove=function(){this.group.removeAll()},CD.prototype.eachRendered=function(t){bc(this._progressiveEls||this.group,t)},CD.prototype._doAdd=function(t,e,n){var i;LD(t.getItemLayout(e))&&(i=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,i),this.group.add(i))},CD.prototype._doUpdate=function(t,e,n,i,o){var r=t.getItemGraphicEl(n);LD(e.getItemLayout(i))?(r?r.updateData(e,i,o):r=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,r),this.group.add(r)):this.group.remove(r)},CD);function CD(t){this.group=new K,this._LineCtor=t||ID}function DD(t,e,n){var i=MD.call(this)||this;return i._createLine(t,e,n),i}function AD(t){var e=t.hostModel,n=e.getModel(\\\"emphasis\\\");return{lineStyle:e.getModel(\\\"lineStyle\\\").getLineStyle(),emphasisLineStyle:n.getModel([\\\"lineStyle\\\"]).getLineStyle(),blurLineStyle:e.getModel([\\\"blur\\\",\\\"lineStyle\\\"]).getLineStyle(),selectLineStyle:e.getModel([\\\"select\\\",\\\"lineStyle\\\"]).getLineStyle(),emphasisDisabled:n.get(\\\"disabled\\\"),blurScope:n.get(\\\"blurScope\\\"),focus:n.get(\\\"focus\\\"),labelStatesModels:Cc(e)}}function kD(t){return isNaN(t[0])||isNaN(t[1])}function LD(t){return t&&!kD(t[0])&&!kD(t[1])}var PD=[],OD=[],RD=[],ND=yn,ED=Qt,zD=Math.abs;function VD(t,e,n){for(var i,o=t[0],r=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;h\u003C=.9;h+=.1)PD[0]=ND(o[0],r[0],a[0],h),PD[1]=ND(o[1],r[1],a[1],h),(d=zD(ED(PD,e)-l))\u003Cs&&(s=d,i=h);for(var c=0;c\u003C32;c++){var p=i+u,d=(OD[0]=ND(o[0],r[0],a[0],i),OD[1]=ND(o[1],r[1],a[1],i),RD[0]=ND(o[0],r[0],a[0],p),RD[1]=ND(o[1],r[1],a[1],p),ED(OD,e)-l);if(zD(d)\u003C.01)break;p=ED(RD,e)-l;u/=2,d\u003C0?0\u003C=p?i+=u:i-=u:0\u003C=p?i-=u:i+=u}return i}function BD(t,l){var u=[],h=xn,c=[[],[],[]],p=[[],[]],d=[];l/=2,t.eachEdge(function(t,e){var n,i,o=t.getLayout(),r=t.getVisual(\\\"fromSymbol\\\"),a=t.getVisual(\\\"toSymbol\\\"),s=(o.__original||(o.__original=[Gt(o[0]),Gt(o[1])],o[2]&&o.__original.push(Gt(o[2]))),o.__original);null!=o[2]?(Ft(c[0],s[0]),Ft(c[1],s[2]),Ft(c[2],s[1]),r&&\\\"none\\\"!==r&&(n=iD(t.node1),i=VD(c,s[0],n*l),h(c[0][0],c[1][0],c[2][0],i,u),c[0][0]=u[3],c[1][0]=u[4],h(c[0][1],c[1][1],c[2][1],i,u),c[0][1]=u[3],c[1][1]=u[4]),a&&\\\"none\\\"!==a&&(n=iD(t.node2),i=VD(c,s[1],n*l),h(c[0][0],c[1][0],c[2][0],i,u),c[1][0]=u[1],c[2][0]=u[2],h(c[0][1],c[1][1],c[2][1],i,u),c[1][1]=u[1],c[2][1]=u[2]),Ft(o[0],c[0]),Ft(o[1],c[2]),Ft(o[2],c[1])):(Ft(p[0],s[0]),Ft(p[1],s[1]),Ut(d,p[1],p[0]),qt(d,d),r&&\\\"none\\\"!==r&&(n=iD(t.node1),Yt(p[0],p[0],d,n*l)),a&&\\\"none\\\"!==a&&(n=iD(t.node2),Yt(p[1],p[1],d,-n*l)),Ft(o[0],p[0]),Ft(o[1],p[1]))})}function FD(t){return\\\"view\\\"===t.type}u(HD,GD=xy),HD.prototype.init=function(t,e){var n=new Nb,i=new TD,o=this.group;this._controller=new vI(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},HD.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=(this._model=t,this._symbolDraw),a=this._lineDraw,s=this.group,l=(FD(i)&&(i={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},this._firstRender?s.attr(i):k(s,i,t)),BD(t.getGraph(),nD(t)),t.getData()),s=(o.updateData(l),t.getEdgeData()),u=(a.updateData(s),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout),t.forceLayout),h=t.get([\\\"force\\\",\\\"layoutAnimation\\\"]),c=(u&&this._startForceLayoutIteration(u,h),l.graph.eachNode(function(t){var e,n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();i&&(i.off(\\\"drag\\\").off(\\\"dragend\\\"),(e=o.get(\\\"draggable\\\"))&&i.on(\\\"drag\\\",function(){u&&(u.warmUp(),r._layouting||r._startForceLayoutIteration(u,h),u.setFixed(n),l.setItemLayout(n,[i.x,i.y]))}).on(\\\"dragend\\\",function(){u&&u.setUnfixed(n)}),i.setDraggable(e&&!!u),\\\"adjacency\\\"===o.get([\\\"emphasis\\\",\\\"focus\\\"]))&&($(i).focus=t.getAdjacentDataIndices())}),l.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get([\\\"emphasis\\\",\\\"focus\\\"]);e&&\\\"adjacency\\\"===n&&($(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}),\\\"circular\\\"===t.get(\\\"layout\\\")&&t.get([\\\"circular\\\",\\\"rotateLabel\\\"])),p=l.getLayout(\\\"cx\\\"),d=l.getLayout(\\\"cy\\\");l.eachItemGraphicEl(function(t,e){var n,i,o=l.getItemModel(e).get([\\\"label\\\",\\\"rotate\\\"])||0,r=t.getSymbolPath();c?(i=l.getItemLayout(e),(n=Math.atan2(i[1]-d,i[0]-p))\u003C0&&(n=2*Math.PI+n),(i=i[0]\u003Cp)&&(n-=Math.PI),r.setTextConfig({rotation:-n,position:n=i?\\\"left\\\":\\\"right\\\",origin:\\\"center\\\"}),Z((i=r.ensureState(\\\"emphasis\\\")).textConfig||(i.textConfig={}),{position:n})):r.setTextConfig({rotation:o*=Math.PI/180})}),this._firstRender=!1},HD.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},HD.prototype._startForceLayoutIteration=function(t,e){var n=this;!function p(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(p,16):p())})}()},HD.prototype._updateController=function(o,t,r){var e=this,n=this._controller,i=this._controllerHost,a=this.group;n.setPointerChecker(function(t,e,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(e,n)&&!CI(t,r,o)}),FD(o.coordinateSystem)?(n.enable(o.get(\\\"roam\\\")),i.zoomLimit=o.get(\\\"scaleLimit\\\"),i.zoom=o.coordinateSystem.getZoom(),n.off(\\\"pan\\\").off(\\\"zoom\\\").on(\\\"pan\\\",function(t){SI(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:\\\"graphRoam\\\",dx:t.dx,dy:t.dy})}).on(\\\"zoom\\\",function(t){MI(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:o.id,type:\\\"graphRoam\\\",zoom:t.scale,originX:t.originX,originY:t.originY}),e._updateNodeAndLinkScale(),BD(o.getGraph(),nD(o)),e._lineDraw.updateLayout(),r.updateLabelLayout()})):n.disable()},HD.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=nD(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},HD.prototype.updateLayout=function(t){BD(t.getGraph(),nD(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},HD.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},HD.type=\\\"graph\\\";var GD,WD=HD;function HD(){var t=null!==GD&&GD.apply(this,arguments)||this;return t.type=HD.type,t}function YD(t){return\\\"_EC_\\\"+t}KD.prototype.isDirected=function(){return this._directed},KD.prototype.addNode=function(t,e){var n,i=this._nodesMap;if(!i[YD(t=null==t?\\\"\\\"+e:\\\"\\\"+t)])return((n=new XD(t,e)).hostGraph=this).nodes.push(n),i[YD(t)]=n},KD.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},KD.prototype.getNodeById=function(t){return this._nodesMap[YD(t)]},KD.prototype.addEdge=function(t,e,n){var i,o=this._nodesMap,r=this._edgesMap;if(j(t)&&(t=this.nodes[t]),j(e)&&(e=this.nodes[e]),t instanceof XD||(t=o[YD(t)]),e instanceof XD||(e=o[YD(e)]),t&&e)return o=t.id+\\\"-\\\"+e.id,((i=new ZD(t,e,n)).hostGraph=this)._directed&&(t.outEdges.push(i),e.inEdges.push(i)),t.edges.push(i),t!==e&&e.edges.push(i),this.edges.push(i),r[o]=i},KD.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},KD.prototype.getEdge=function(t,e){t instanceof XD&&(t=t.id),e instanceof XD&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+\\\"-\\\"+e]:n[t+\\\"-\\\"+e]||n[e+\\\"-\\\"+t]},KD.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o\u003Ci;o++)0\u003C=n[o].dataIndex&&t.call(e,n[o],o)},KD.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o\u003Ci;o++)0\u003C=n[o].dataIndex&&0\u003C=n[o].node1.dataIndex&&0\u003C=n[o].node2.dataIndex&&t.call(e,n[o],o)},KD.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof XD?e:this._nodesMap[YD(e)]){for(var o=\\\"out\\\"===n?\\\"outEdges\\\":\\\"in\\\"===n?\\\"inEdges\\\":\\\"edges\\\",r=0;r\u003Cthis.nodes.length;r++)this.nodes[r].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;)for(var s=a.shift(),l=s[o],r=0;r\u003Cl.length;r++){var u=l[r],u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}},KD.prototype.update=function(){for(var t=this.data,n=this.edgeData,e=this.nodes,i=this.edges,o=0,r=e.length;o\u003Cr;o++)e[o].dataIndex=-1;for(o=0,r=t.count();o\u003Cr;o++)e[t.getRawIndex(o)].dataIndex=o;for(n.filterSelf(function(t){var e=i[n.getRawIndex(t)];return 0\u003C=e.node1.dataIndex&&0\u003C=e.node2.dataIndex}),o=0,r=i.length;o\u003Cr;o++)i[o].dataIndex=-1;for(o=0,r=n.count();o\u003Cr;o++)i[n.getRawIndex(o)].dataIndex=o},KD.prototype.clone=function(){for(var t=new KD(this._directed),e=this.nodes,n=this.edges,i=0;i\u003Ce.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i\u003Cn.length;i++){var o=n[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t};var UD=KD,XD=(qD.prototype.degree=function(){return this.edges.length},qD.prototype.inDegree=function(){return this.inEdges.length},qD.prototype.outDegree=function(){return this.outEdges.length},qD.prototype.getModel=function(t){if(!(this.dataIndex\u003C0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},qD.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e\u003Cthis.edges.length;e++){var n=this.edges[e];n.dataIndex\u003C0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},qD),ZD=(jD.prototype.getModel=function(t){if(!(this.dataIndex\u003C0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},jD.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},jD);function jD(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function qD(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?\\\"\\\":t,this.dataIndex=null==e?-1:e}function KD(t){this.type=\\\"graph\\\",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}function $D(n,i){return{getValue:function(t){var e=this[n][i];return e.getStore().get(e.getDimensionIndex(t||\\\"value\\\"),this.dataIndex)},setVisual:function(t,e){0\u003C=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t){return this[n][i].getItemVisual(this.dataIndex,t)},setLayout:function(t,e){0\u003C=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}function JD(t,e,n,i,o){for(var r=new UD(i),a=0;a\u003Ct.length;a++)r.addNode(wt(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a\u003Ce.length;a++){var h=e[a],c=h.source,p=h.target;r.addEdge(c,p,u)&&(l.push(h),s.push(wt(Nr(h.id,null),c+\\\" > \\\"+p)),u++)}var d,f=n.get(\\\"coordinateSystem\\\"),f=(\\\"cartesian2d\\\"===f||\\\"polar\\\"===f?d=jv(t,n):(G(f=(f=qd.get(f))&&f.dimensions||[],\\\"value\\\")\u003C0&&f.concat([\\\"value\\\"]),f=Gv(t,{coordDimensions:f,encodeDefine:n.getEncode()}).dimensions,(d=new Fv(f,n)).initData(t)),new Fv([\\\"value\\\"],n));return f.initData(l,s),o&&o(d,f),MT({mainData:d,struct:r,structAttr:\\\"graph\\\",datas:{node:d,edge:f},datasAttr:{node:\\\"data\\\",edge:\\\"edgeData\\\"}}),r.update(),r}ut(XD,$D(\\\"hostGraph\\\",\\\"data\\\")),ut(ZD,$D(\\\"hostGraph\\\",\\\"edgeData\\\"));u(nA,QD=ry),nA.prototype.init=function(t){QD.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new mS(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},nA.prototype.mergeOption=function(t){QD.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},nA.prototype.mergeDefaultAndTheme=function(t){QD.prototype.mergeDefaultAndTheme.apply(this,arguments),Ar(t,\\\"edgeLabel\\\",[\\\"show\\\"])},nA.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n)return ZC(this)&&(this.__curvenessList=[],this.__edgeMap={},jC(this)),lt((i=JD(i,n,this,!0,function(t,e){t.wrapMethod(\\\"getItemModel\\\",function(t){var e=r._categoriesModels[t.getShallow(\\\"category\\\")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var i=qc.prototype.getModel;function n(t,e){var n=i.call(this,t,e);return n.resolveParentPath=o,n}function o(t){var e;return!t||\\\"label\\\"!==t[0]&&\\\"label\\\"!==t[1]?t:(e=t.slice(),\\\"label\\\"===t[0]?e[0]=\\\"edgeLabel\\\":\\\"label\\\"===t[1]&&(e[1]=\\\"edgeLabel\\\"),e)}e.wrapMethod(\\\"getItemModel\\\",function(t){return t.resolveParentPath=o,t.getModel=n,t})})).edges,function(t){var e,n,i,o,r,a;e=t.node1,n=t.node2,i=this,t=t.dataIndex,ZC(i)&&(o=qC(e,n,i),a=(r=i.__edgeMap)[KC(o)],r[o]&&!a?r[o].isForward=!0:a&&r[o]&&(a.isForward=!0,r[o].isForward=!1),r[o]=r[o]||[],r[o].push(t))},this),i.data},nA.prototype.getGraph=function(){return this.getData().graph},nA.prototype.getEdgeData=function(){return this.getGraph().edgeData},nA.prototype.getCategoriesData=function(){return this._categoriesData},nA.prototype.formatTooltip=function(t,e,n){var i,o,r,a;return\\\"edge\\\"===n?(a=this.getData(),i=this.getDataParams(t,n),r=a.graph.getEdgeByIndex(t),o=a.getName(r.node1.dataIndex),r=a.getName(r.node2.dataIndex),a=[],null!=o&&a.push(o),null!=r&&a.push(r),Hg(\\\"nameValue\\\",{name:a.join(\\\" > \\\"),value:i.value,noValue:null==i.value})):ey({series:this,dataIndex:t,multipleSeries:e})},nA.prototype._updateCategoriesData=function(){var t=Y(this.option.categories||[],function(t){return null!=t.value?t:Z({value:0},t)}),e=new Fv([\\\"value\\\"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},nA.prototype.setZoom=function(t){this.option.zoom=t},nA.prototype.setCenter=function(t){this.option.center=t},nA.prototype.isAnimationEnabled=function(){return QD.prototype.isAnimationEnabled.call(this)&&!(\\\"force\\\"===this.get(\\\"layout\\\")&&this.get([\\\"force\\\",\\\"layoutAnimation\\\"]))},nA.type=\\\"series.graph\\\",nA.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],nA.defaultOption={z:2,coordinateSystem:\\\"view\\\",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:\\\"center\\\",top:\\\"center\\\",symbol:\\\"circle\\\",symbolSize:10,edgeSymbol:[\\\"none\\\",\\\"none\\\"],edgeSymbolSize:10,edgeLabel:{position:\\\"middle\\\",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:\\\"{b}\\\"},itemStyle:{},lineStyle:{color:\\\"#aaa\\\",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:\\\"#212121\\\"}}};var QD,tA=nA,eA={type:\\\"graphRoam\\\",event:\\\"graphRoam\\\",update:\\\"none\\\"};function nA(){var t=null!==QD&&QD.apply(this,arguments)||this;return t.type=nA.type,t.hasSymbolVisual=!0,t}var iA,oA=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},rA=(u(aA,iA=Q),aA.prototype.getDefaultShape=function(){return new oA},aA.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3\u003C=r?1:2),l=e.y-i(a)*r*(o/3\u003C=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)},aA);function aA(t){var e=iA.call(this,t)||this;return e.type=\\\"pointer\\\",e}function sA(t,e){var n=null==t?\\\"\\\":t+\\\"\\\";return e&&(X(e)?n=e.replace(\\\"{value}\\\",n):A(e)&&(n=e(t))),n}u(dA,uA=xy),dA.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),l=(o=n,r=(i=t).get(\\\"center\\\"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:F(r[0],o.getWidth()),cy:F(r[1],o.getHeight()),r:F(i.get(\\\"radius\\\"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},dA.prototype.dispose=function(){},dA.prototype._renderMain=function(t,e,n,i,o){var r=this.group,a=t.get(\\\"clockwise\\\"),s=-t.get(\\\"startAngle\\\")/180*Math.PI,l=-t.get(\\\"endAngle\\\")/180*Math.PI,u=t.getModel(\\\"axisLine\\\"),h=u.get(\\\"roundCap\\\")?Mw:Xu,c=u.get(\\\"show\\\"),p=u.getModel(\\\"lineStyle\\\"),d=p.get(\\\"width\\\"),u=[s,l];as(u,!a);for(var f=(l=u[1])-(s=u[0]),g=s,y=0;c&&y\u003Ci.length;y++){var m=new h({shape:{startAngle:g,endAngle:l=s+f*Math.min(Math.max(i[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-d,r:o.r},silent:!0});m.setStyle({fill:i[y][1]}),m.setStyle(p.getLineStyle([\\\"color\\\",\\\"width\\\"])),r.add(m),g=l}u=function(t){if(t\u003C=0)return i[0][1];for(var e=0;e\u003Ci.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])\u003Ct)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,u,o,s,l,a,d),this._renderTitleAndDetail(t,e,n,u,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,u,o,s,l,a,d)},dA.prototype._renderTicks=function(t,e,n,i,o,r,a,N,s){for(var l=this.group,u=o.cx,h=o.cy,c=o.r,p=+t.get(\\\"min\\\"),d=+t.get(\\\"max\\\"),f=t.getModel(\\\"splitLine\\\"),g=t.getModel(\\\"axisTick\\\"),y=t.getModel(\\\"axisLabel\\\"),m=t.get(\\\"splitNumber\\\"),v=g.get(\\\"splitNumber\\\"),x=F(f.get(\\\"length\\\"),c),_=F(g.get(\\\"length\\\"),c),b=r,w=(a-r)/m,S=w/v,M=f.getModel(\\\"lineStyle\\\").getLineStyle(),I=g.getModel(\\\"lineStyle\\\").getLineStyle(),T=f.get(\\\"distance\\\"),C=0;C\u003C=m;C++){var D,A,k=Math.cos(b),L=Math.sin(b);if(f.get(\\\"show\\\")&&(D=new hh({shape:{x1:k*(c-(P=T?T+s:s))+u,y1:L*(c-P)+h,x2:k*(c-x-P)+u,y2:L*(c-x-P)+h},style:M,silent:!0}),\\\"auto\\\"===M.stroke&&D.setStyle({stroke:i(C/m)}),l.add(D)),y.get(\\\"show\\\")&&(P=y.get(\\\"distance\\\")+T,D=sA(or(C/m*(d-p)+p),y.get(\\\"formatter\\\")),A=i(C/m),l.add(new z({style:Dc(y,{text:D,x:k*(c-x-P)+u,y:L*(c-x-P)+h,verticalAlign:L\u003C-.8?\\\"top\\\":.8\u003CL?\\\"bottom\\\":\\\"middle\\\",align:k\u003C-.4?\\\"left\\\":.4\u003Ck?\\\"right\\\":\\\"center\\\"},{inheritColor:A}),silent:!0}))),g.get(\\\"show\\\")&&C!==m){for(var P=(P=g.get(\\\"distance\\\"))?P+s:s,O=0;O\u003C=v;O++){k=Math.cos(b),L=Math.sin(b);var R=new hh({shape:{x1:k*(c-P)+u,y1:L*(c-P)+h,x2:k*(c-_-P)+u,y2:L*(c-_-P)+h},silent:!0,style:I});\\\"auto\\\"===I.stroke&&R.setStyle({stroke:i((C+O/v)/m)}),l.add(R),b+=S}b-=S}else b+=w}},dA.prototype._renderPointer=function(l,t,e,u,h,a,n,s,c){var r=this.group,p=this._data,d=this._progressEls,f=[],g=l.get([\\\"pointer\\\",\\\"show\\\"]),y=l.getModel(\\\"progress\\\"),m=y.get(\\\"show\\\"),v=l.getData(),x=v.mapDimension(\\\"value\\\"),i=+l.get(\\\"min\\\"),_=+l.get(\\\"max\\\"),b=[i,_],w=[a,n];function S(t,e){var n=v.getItemModel(t).getModel(\\\"pointer\\\"),i=F(n.get(\\\"width\\\"),h.r),o=F(n.get(\\\"length\\\"),h.r),r=l.get([\\\"pointer\\\",\\\"icon\\\"]),a=n.get(\\\"offsetCenter\\\"),s=F(a[0],h.r),a=F(a[1],h.r),n=n.get(\\\"keepAspect\\\");return(r=r?Sm(r,s-i/2,a-o,i,o,null,n):new rA({shape:{angle:-Math.PI/2,width:i,r:o,x:s,y:a}})).rotation=-(e+Math.PI/2),r.x=h.cx,r.y=h.cy,r}function M(t,e){var n=y.get(\\\"roundCap\\\")?Mw:Xu,i=y.get(\\\"overlap\\\"),o=i?y.get(\\\"width\\\"):c/v.count(),r=i?h.r-o:h.r-(t+1)*o,o=i?h.r:h.r-t*o,r=new n({shape:{startAngle:a,endAngle:e,cx:h.cx,cy:h.cy,clockwise:s,r0:r,r:o}});return i&&(r.z2=_-v.get(x,t)%_),r}(m||g)&&(v.diff(p).add(function(t){var e,n,i=v.get(x,t);g&&(Yh(e=S(t,a),{rotation:-((isNaN(+i)?w[0]:ir(i,b,w,!0))+Math.PI/2)},l),r.add(e),v.setItemGraphicEl(t,e)),m&&(e=M(t,a),n=y.get(\\\"clip\\\"),Yh(e,{shape:{endAngle:ir(i,b,w,n)}},l),r.add(e),ol(l.seriesIndex,v.dataType,t,e),f[t]=e)}).update(function(t,e){var n,i,o=v.get(x,t);g&&((n=S(t,i=(i=p.getItemGraphicEl(e))?i.rotation:a)).rotation=i,k(n,{rotation:-((isNaN(+o)?w[0]:ir(o,b,w,!0))+Math.PI/2)},l),r.add(n),v.setItemGraphicEl(t,n)),m&&(n=M(t,(i=d[e])?i.shape.endAngle:a),i=y.get(\\\"clip\\\"),k(n,{shape:{endAngle:ir(o,b,w,i)}},l),r.add(n),ol(l.seriesIndex,v.dataType,t,n),f[t]=n)}).execute(),v.each(function(t){var e,n,i,o,r=v.getItemModel(t),a=r.getModel(\\\"emphasis\\\"),s=a.get(\\\"focus\\\"),l=a.get(\\\"blurScope\\\"),a=a.get(\\\"disabled\\\");g&&(e=v.getItemGraphicEl(t),i=(n=v.getItemVisual(t,\\\"style\\\")).fill,e instanceof Ps?(o=e.style,e.useStyle(Z({image:o.image,x:o.x,y:o.y,width:o.width,height:o.height},n))):(e.useStyle(n),\\\"pointer\\\"!==e.type&&e.setColor(i)),e.setStyle(r.getModel([\\\"pointer\\\",\\\"itemStyle\\\"]).getItemStyle()),\\\"auto\\\"===e.style.fill&&e.setStyle(\\\"fill\\\",u(ir(v.get(x,t),b,[0,1],!0))),e.z2EmphasisLift=0,$l(e,r),Zl(e,s,l,a)),m&&((o=f[t]).useStyle(v.getItemVisual(t,\\\"style\\\")),o.setStyle(r.getModel([\\\"progress\\\",\\\"itemStyle\\\"]).getItemStyle()),o.z2EmphasisLift=0,$l(o,r),Zl(o,s,l,a))}),this._progressEls=f)},dA.prototype._renderAnchor=function(t,e){var n,i,o,r,a=t.getModel(\\\"anchor\\\");a.get(\\\"show\\\")&&(n=a.get(\\\"size\\\"),r=a.get(\\\"icon\\\"),i=a.get(\\\"offsetCenter\\\"),o=a.get(\\\"keepAspect\\\"),(r=Sm(r,e.cx-n/2+F(i[0],e.r),e.cy-n/2+F(i[1],e.r),n,n,null,o)).z2=a.get(\\\"showAbove\\\")?1:0,r.setStyle(a.getModel(\\\"itemStyle\\\").getItemStyle()),this.group.add(r))},dA.prototype._renderTitleAndDetail=function(c,t,e,p,d){var n=this,f=c.getData(),g=f.mapDimension(\\\"value\\\"),y=+c.get(\\\"min\\\"),m=+c.get(\\\"max\\\"),v=new K,x=[],_=[],b=c.isAnimationEnabled(),w=c.get([\\\"pointer\\\",\\\"showAbove\\\"]);f.diff(this._data).add(function(t){x[t]=new z({silent:!0}),_[t]=new z({silent:!0})}).update(function(t,e){x[t]=n._titleEls[e],_[t]=n._detailEls[e]}).execute(),f.each(function(t){var e,n,i,o,a,r=f.getItemModel(t),s=f.get(g,t),l=new K,u=p(ir(s,[y,m],[0,1],!0)),h=r.getModel(\\\"title\\\"),h=(h.get(\\\"show\\\")&&(e=h.get(\\\"offsetCenter\\\"),n=d.cx+F(e[0],d.r),e=d.cy+F(e[1],d.r),(o=x[t]).attr({z2:w?0:2,style:Dc(h,{x:n,y:e,text:f.getName(t),align:\\\"center\\\",verticalAlign:\\\"middle\\\"},{inheritColor:u})}),l.add(o)),r.getModel(\\\"detail\\\"));h.get(\\\"show\\\")&&(n=h.get(\\\"offsetCenter\\\"),e=d.cx+F(n[0],d.r),r=d.cy+F(n[1],d.r),n=F(h.get(\\\"width\\\"),d.r),i=F(h.get(\\\"height\\\"),d.r),u=c.get([\\\"progress\\\",\\\"show\\\"])?f.getItemVisual(t,\\\"style\\\").fill:u,o=_[t],a=h.get(\\\"formatter\\\"),o.attr({z2:w?0:2,style:Dc(h,{x:e,y:r,text:sA(s,a),width:isNaN(n)?null:n,height:isNaN(i)?null:i,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},{inheritColor:u})}),Ec(o,{normal:h},s,function(t){return sA(t,a)}),b&&zc(o,t,f,c,{getFormattedLabel:function(t,e,n,i,o,r){return sA(r?r.interpolatedValue:s,a)}}),l.add(o)),v.add(l)}),this.group.add(v),this._titleEls=x,this._detailEls=_},dA.type=\\\"gauge\\\";var lA,uA,hA=dA,cA=(u(pA,lA=ry),pA.prototype.getInitialData=function(t,e){return gS(this,[\\\"value\\\"])},pA.type=\\\"series.gauge\\\",pA.defaultOption={z:2,colorBy:\\\"data\\\",center:[\\\"50%\\\",\\\"50%\\\"],legendHoverLink:!0,radius:\\\"75%\\\",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,\\\"#E6EBF8\\\"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:\\\"#63677A\\\",width:3,type:\\\"solid\\\"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:\\\"#63677A\\\",width:1,type:\\\"solid\\\"}},axisLabel:{show:!0,distance:15,color:\\\"#464646\\\",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:\\\"60%\\\",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:\\\"circle\\\",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:\\\"#fff\\\",borderWidth:0,borderColor:\\\"#5470c6\\\"}},title:{show:!0,offsetCenter:[0,\\\"20%\\\"],color:\\\"#464646\\\",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:\\\"rgba(0,0,0,0)\\\",borderWidth:0,borderColor:\\\"#ccc\\\",width:100,height:null,padding:[5,10],offsetCenter:[0,\\\"40%\\\"],color:\\\"#464646\\\",fontSize:30,fontWeight:\\\"bold\\\",lineHeight:30,valueAnimation:!1}},pA);function pA(){var t=null!==lA&&lA.apply(this,arguments)||this;return t.type=pA.type,t.visualStyleAccessPath=\\\"itemStyle\\\",t}function dA(){var t=null!==uA&&uA.apply(this,arguments)||this;return t.type=dA.type,t}var fA,gA,yA,mA=[\\\"itemStyle\\\",\\\"opacity\\\"],vA=(u(SA,yA=eh),SA.prototype.updateData=function(t,e,n){var i=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e),a=o.getModel(\\\"emphasis\\\"),s=null==(s=o.get(mA))?1:s;n||qh(this),this.useStyle(t.getItemVisual(e,\\\"style\\\")),this.style.lineJoin=\\\"round\\\",n?(this.setShape({points:r.points}),this.style.opacity=0,Yh(this,{style:{opacity:s}},i,e)):k(this,{style:{opacity:s},shape:{points:r.points}},i,e),$l(this,o),this._updateLabel(t,e),Zl(this,a.get(\\\"focus\\\"),a.get(\\\"blurScope\\\"),a.get(\\\"disabled\\\"))},SA.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),o=t.hostModel,r=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,\\\"style\\\"),l=s.fill,s=(Tc(i,Cc(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l}),a.linePoints);n.setShape({points:s}),this.textGuideLineConfig={anchor:s?new V(s[0][0],s[0][1]):null},k(i,{style:{x:a.x,y:a.y}},o,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),Jx(this,Qx(r),{stroke:l})},SA),xA=(u(wA,gA=xy),wA.prototype.render=function(e,t,n){var i=e.getData(),o=this._data,r=this.group;i.diff(o).add(function(t){var e=new vA(i,t);i.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(i,t),r.add(n),i.setItemGraphicEl(t,n)}).remove(function(t){jh(o.getItemGraphicEl(t),e,t)}).execute(),this._data=i},wA.prototype.remove=function(){this.group.removeAll(),this._data=null},wA.prototype.dispose=function(){},wA.type=\\\"funnel\\\",wA),_A=(u(bA,fA=ry),bA.prototype.init=function(t){fA.prototype.init.apply(this,arguments),this.legendVisualProvider=new mS(I(this.getData,this),I(this.getRawData,this)),this._defaultLabelLine(t)},bA.prototype.getInitialData=function(t,e){return gS(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:D(Td,this)})},bA.prototype._defaultLabelLine=function(t){Ar(t,\\\"labelLine\\\",[\\\"show\\\"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},bA.prototype.getDataParams=function(t){var e=this.getData(),n=fA.prototype.getDataParams.call(this,t),i=e.mapDimension(\\\"value\\\"),o=e.getSum(i);return n.percent=o?+(e.get(i,t)/o*100).toFixed(2):0,n.$vars.push(\\\"percent\\\"),n},bA.type=\\\"series.funnel\\\",bA.defaultOption={z:2,legendHoverLink:!0,colorBy:\\\"data\\\",left:80,top:60,right:80,bottom:60,minSize:\\\"0%\\\",maxSize:\\\"100%\\\",sort:\\\"descending\\\",orient:\\\"vertical\\\",gap:0,funnelAlign:\\\"center\\\",label:{show:!0,position:\\\"outer\\\"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:\\\"#fff\\\",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:\\\"#212121\\\"}}},bA);function bA(){var t=null!==fA&&fA.apply(this,arguments)||this;return t.type=bA.type,t}function wA(){var t=null!==gA&&gA.apply(this,arguments)||this;return t.type=wA.type,t.ignoreLabelLineUpdate=!0,t}function SA(t,e){var n=yA.call(this)||this,i=n,o=new rh,r=new z;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}function MA(t,D){t.eachSeriesByType(\\\"funnel\\\",function(t){var e,a=t.getData(),s=a.mapDimension(\\\"value\\\"),n=t.get(\\\"sort\\\"),i=(e=D,Jp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})),l=t.get(\\\"orient\\\"),u=i.width,h=i.height,o=function(t,e){for(var n=t.mapDimension(\\\"value\\\"),i=t.mapArray(n,function(t){return t}),o=[],r=\\\"ascending\\\"===e,a=0,s=t.count();a\u003Cs;a++)o[a]=a;return A(e)?o.sort(e):\\\"none\\\"!==e&&o.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),o}(a,n),c=i.x,p=i.y,d=\\\"horizontal\\\"===l?[F(t.get(\\\"minSize\\\"),h),F(t.get(\\\"maxSize\\\"),h)]:[F(t.get(\\\"minSize\\\"),u),F(t.get(\\\"maxSize\\\"),u)],i=a.getDataExtent(s),f=t.get(\\\"min\\\"),g=t.get(\\\"max\\\"),y=(null==f&&(f=Math.min(i[0],0)),null==g&&(g=i[1]),t.get(\\\"funnelAlign\\\")),r=t.get(\\\"gap\\\"),m=((\\\"horizontal\\\"===l?u:h)-r*(a.count()-1))/a.count(),v=function(t,e){if(\\\"horizontal\\\"===l){var n=ir(a.get(s,t)||0,[f,g],d,!0),i=void 0;switch(y){case\\\"top\\\":i=p;break;case\\\"center\\\":i=p+(h-n)/2;break;case\\\"bottom\\\":i=p+(h-n)}return[[e,i],[e,i+n]]}var o,r=ir(a.get(s,t)||0,[f,g],d,!0);switch(y){case\\\"left\\\":o=c;break;case\\\"center\\\":o=c+(u-r)/2;break;case\\\"right\\\":o=c+u-r}return[[o,e],[o+r,e]]};\\\"ascending\\\"===n&&(m=-m,r=-r,\\\"horizontal\\\"===l?c+=u:p+=h,o=o.reverse());for(var x,_,b=0;b\u003Co.length;b++){var w,S,M,I=o[b],T=o[b+1],C=a.getItemModel(I);\\\"horizontal\\\"===l?(null==(M=C.get([\\\"itemStyle\\\",\\\"width\\\"]))?M=m:(M=F(M,u),\\\"ascending\\\"===n&&(M=-M)),w=v(I,c),S=v(T,c+M),c+=M+r):(null==(M=C.get([\\\"itemStyle\\\",\\\"height\\\"]))?M=m:(M=F(M,h),\\\"ascending\\\"===n&&(M=-M)),w=v(I,p),S=v(T,p+M),p+=M+r),a.setItemLayout(I,{points:w.concat(S.slice().reverse())})}_=(x=a).hostModel.get(\\\"orient\\\"),x.each(function(t){var e,n,i,o,r,a,s,l=x.getItemModel(t),u=l.getModel(\\\"label\\\").get(\\\"position\\\"),l=l.getModel(\\\"labelLine\\\"),h=x.getItemLayout(t),c=h.points,p=\\\"inner\\\"===u||\\\"inside\\\"===u||\\\"center\\\"===u||\\\"insideLeft\\\"===u||\\\"insideRight\\\"===u,u=p?(s=\\\"insideLeft\\\"===u?(e=(c[0][0]+c[3][0])/2+5,n=(c[0][1]+c[3][1])/2,\\\"left\\\"):\\\"insideRight\\\"===u?(e=(c[1][0]+c[2][0])/2-5,n=(c[1][1]+c[2][1])/2,\\\"right\\\"):(e=(c[0][0]+c[1][0]+c[2][0]+c[3][0])/4,n=(c[0][1]+c[1][1]+c[2][1]+c[3][1])/4,\\\"center\\\"),[[e,n],[e,n]]):(a=r=o=i=void 0,l=l.get(\\\"length\\\"),s=\\\"left\\\"===u?(i=(c[3][0]+c[0][0])/2,o=(c[3][1]+c[0][1])/2,e=(r=i-l)-5,\\\"right\\\"):\\\"right\\\"===u?(i=(c[1][0]+c[2][0])/2,o=(c[1][1]+c[2][1])/2,e=(r=i+l)+5,\\\"left\\\"):\\\"top\\\"===u?(i=(c[3][0]+c[0][0])/2,n=(a=(o=(c[3][1]+c[0][1])/2)-l)-5,\\\"center\\\"):\\\"bottom\\\"===u?(i=(c[1][0]+c[2][0])/2,n=(a=(o=(c[1][1]+c[2][1])/2)+l)+5,\\\"center\\\"):\\\"rightTop\\\"===u?(i=(\\\"horizontal\\\"===_?c[3]:c[1])[0],o=(\\\"horizontal\\\"===_?c[3]:c[1])[1],\\\"horizontal\\\"===_?(n=(a=o-l)-5,\\\"center\\\"):(e=(r=i+l)+5,\\\"top\\\")):\\\"rightBottom\\\"===u?(i=c[2][0],o=c[2][1],\\\"horizontal\\\"===_?(n=(a=o+l)+5,\\\"center\\\"):(e=(r=i+l)+5,\\\"bottom\\\")):\\\"leftTop\\\"===u?(i=c[0][0],o=(\\\"horizontal\\\"===_?c[0]:c[1])[1],\\\"horizontal\\\"===_?(n=(a=o-l)-5,\\\"center\\\"):(e=(r=i-l)-5,\\\"right\\\")):\\\"leftBottom\\\"===u?(i=(\\\"horizontal\\\"===_?c[1]:c[3])[0],o=(\\\"horizontal\\\"===_?c[1]:c[2])[1],\\\"horizontal\\\"===_?(n=(a=o+l)+5,\\\"center\\\"):(e=(r=i-l)-5,\\\"right\\\")):(i=(c[1][0]+c[2][0])/2,o=(c[1][1]+c[2][1])/2,\\\"horizontal\\\"===_?(n=(a=o+l)+5,\\\"center\\\"):(e=(r=i+l)+5,\\\"left\\\")),\\\"horizontal\\\"===_?e=r=i:n=a=o,[[i,o],[r,a]]);h.label={linePoints:u,x:e,y:n,verticalAlign:\\\"middle\\\",textAlign:s,inside:p}})})}u(CA,IA=xy),CA.prototype.init=function(){this.group.add(this._dataGroup)},CA.prototype.render=function(o,t,e,n){this._progressiveEls=null;var i,r,a,s,l=this._dataGroup,u=o.getData(),h=this._data,c=o.coordinateSystem,p=c.dimensions,d=kA(o);u.diff(h).add(function(t){LA(AA(u,l,t,p,c),u,t,d)}).update(function(t,e){var n=h.getItemGraphicEl(e),i=DA(u,t,p,c);u.setItemGraphicEl(t,n),k(n,{shape:{points:i}},o,t),qh(n),LA(n,u,t,d)}).remove(function(t){var e=h.getItemGraphicEl(t);l.remove(e)}).execute(),this._initialized||(this._initialized=!0,i=o,r=c.model,a=c.getRect(),s=new E({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),r=\\\"horizontal\\\"===r.get(\\\"layout\\\")?\\\"width\\\":\\\"height\\\",s.setShape(r,0),Yh(s,{shape:{width:a.width,height:a.height}},i,function(){setTimeout(function(){l.removeClipPath()})}),r=s,l.setClipPath(r)),this._data=u},CA.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},CA.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=kA(e),s=this._progressiveEls=[],l=t.start;l\u003Ct.end;l++){var u=AA(i,this._dataGroup,l,r,o);u.incremental=!0,LA(u,i,l,a),s.push(u)}},CA.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},CA.type=\\\"parallel\\\";var IA,TA=CA;function CA(){var t=null!==IA&&IA.apply(this,arguments)||this;return t.type=CA.type,t._dataGroup=new K,t._initialized=!1,t}function DA(t,e,n,i){for(var o=[],r=0;r\u003Cn.length;r++){var a=n[r],s=t.get(t.mapDimension(a),e),l=s;(\\\"category\\\"===i.getAxis(a).type?null==l:null==l||isNaN(l))||o.push(i.dataToPoint(s,a))}return o}function AA(t,e,n,i,o){var r=DA(t,n,i,o),r=new rh({shape:{points:r},z2:10});return e.add(r),t.setItemGraphicEl(n,r),r}function kA(t){var e=t.get(\\\"smooth\\\",!0);return{smooth:e=bt(e=_r(e=!0===e?.3:e))?0:e}}function LA(t,e,n,i){t.useStyle(e.getItemVisual(n,\\\"style\\\")),t.style.fill=null,t.setShape(\\\"smooth\\\",i.smooth);var o=e.getItemModel(n),r=o.getModel(\\\"emphasis\\\");$l(t,o,\\\"lineStyle\\\"),Zl(t,r.get(\\\"focus\\\"),r.get(\\\"blurScope\\\"),r.get(\\\"disabled\\\"))}u(RA,PA=ry),RA.prototype.getInitialData=function(t,e){return jv(null,this,{useEncodeDefaulter:I(NA,null,this)})},RA.prototype.getRawIndicesByActiveState=function(n){var t=this.coordinateSystem,i=this.getData(),o=[];return t.eachActiveState(i,function(t,e){n===t&&o.push(i.getRawIndex(e))}),o},RA.type=\\\"series.parallel\\\",RA.dependencies=[\\\"parallel\\\"],RA.defaultOption={z:2,coordinateSystem:\\\"parallel\\\",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:\\\"solid\\\"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:\\\"linear\\\"};var PA,OA=RA;function RA(){var t=null!==PA&&PA.apply(this,arguments)||this;return t.type=RA.type,t.visualStyleAccessPath=\\\"lineStyle\\\",t.visualDrawType=\\\"stroke\\\",t}function NA(t){var n,e=t.ecModel.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\"));if(e)return n={},lt(e.dimensions,function(t){var e=+t.replace(\\\"dim\\\",\\\"\\\");n[t]=e}),n}var EA=[\\\"lineStyle\\\",\\\"opacity\\\"],zA={seriesType:\\\"parallel\\\",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get([\\\"lineStyle\\\",\\\"opacity\\\"]),active:t.get(\\\"activeOpacity\\\"),inactive:t.get(\\\"inactiveOpacity\\\")};return{progress:function(t,o){n.eachActiveState(o,function(t,e){var n,i=r[t];\\\"normal\\\"===t&&o.hasItemOption&&null!=(n=o.getItemModel(e).get(EA,!0))&&(i=n),o.ensureUniqueItemVisual(e,\\\"style\\\").opacity=i},t.start,t.end)}}}};function VA(t){var n,e,i;(e=t).parallel||(i=!1,lt(e.series,function(t){t&&\\\"parallel\\\"===t.type&&(i=!0)}),i&&(e.parallel=[{}])),lt(Dr((n=t).parallelAxis),function(t){var e;R(t)&&(e=t.parallelIndex||0,e=Dr(n.parallel)[e])&&e.parallelAxisDefault&&v(t,e.parallelAxisDefault,!1)})}u(WA,BA=fy),WA.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},lt(GA,function(t,e){n.getZr().on(e,this._handlers[e]=I(t,this))},this)),ky(this,\\\"_throttledDispatchExpand\\\",t.get(\\\"axisExpandRate\\\"),\\\"fixRate\\\")},WA.prototype.dispose=function(t,n){Ly(this,\\\"_throttledDispatchExpand\\\"),lt(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},WA.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},WA.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Z({type:\\\"parallelAxisExpand\\\"},t))},WA.type=\\\"parallel\\\";var BA,FA=WA,GA={mousedown:function(t){HA(this,\\\"click\\\")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(HA(this,\\\"click\\\")&&e){var n=[t.offsetX,t.offsetY];if(5\u003CMath.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))return;e=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);\\\"none\\\"!==e.behavior&&this._dispatchExpand({axisExpandWindow:e.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){var e,n,i;!this._mouseDownPoint&&HA(this,\\\"mousemove\\\")&&(\\\"jump\\\"===(i=(n=(e=this._model).coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(e.get(\\\"axisExpandDebounce\\\")),this._throttledDispatchExpand(\\\"none\\\"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:\\\"jump\\\"===i?null:{duration:0}}))}};function WA(){var t=null!==BA&&BA.apply(this,arguments)||this;return t.type=WA.type,t}function HA(t,e){var n=t._model;return n.get(\\\"axisExpandable\\\")&&n.get(\\\"axisExpandTriggerOn\\\")===e}u(qA,UA=m),qA.prototype.init=function(){UA.prototype.init.apply(this,arguments),this.mergeOption({})},qA.prototype.mergeOption=function(t){var e=this.option;t&&v(e,t,!0),this._initDimensions()},qA.prototype.contains=function(t,e){var n=t.get(\\\"parallelIndex\\\");return null!=n&&e.getComponent(\\\"parallel\\\",n)===this},qA.prototype.setAxisExpand=function(e){lt([\\\"axisExpandable\\\",\\\"axisExpandCenter\\\",\\\"axisExpandCount\\\",\\\"axisExpandWidth\\\",\\\"axisExpandWindow\\\"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},qA.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[];lt(pt(this.ecModel.queryComponents({mainType:\\\"parallelAxis\\\"}),function(t){return(t.get(\\\"parallelIndex\\\")||0)===this.componentIndex},this),function(t){e.push(\\\"dim\\\"+t.get(\\\"dim\\\")),n.push(t.componentIndex)})},qA.type=\\\"parallel\\\",qA.dependencies=[\\\"parallelAxis\\\"],qA.layoutMode=\\\"box\\\",qA.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:\\\"horizontal\\\",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:\\\"click\\\",parallelAxisDefault:null};var YA,UA,XA=qA,ZA=(u(jA,YA=Xc),jA.prototype.isHorizontal=function(){return\\\"horizontal\\\"!==this.coordinateSystem.getModel().get(\\\"layout\\\")},jA);function jA(t,e,n,i,o){var r=YA.call(this,t,e,n)||this;return r.type=i||\\\"value\\\",r.axisIndex=o,r}function qA(){var t=null!==UA&&UA.apply(this,arguments)||this;return t.type=qA.type,t}function KA(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],a=(null!=o&&(o=JA(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),\\\"all\\\"===i&&(s=JA(s=Math.abs(e[1]-e[0]),[0,a]),o=r=JA(s,[o,r]),i=0),e[0]=JA(e[0],n),e[1]=JA(e[1],n),$A(e,i));e[i]+=t;var s=o||0,l=n.slice();return a.sign\u003C0?l[0]+=s:l[1]-=s,e[i]=JA(e[i],l),s=$A(e,i),null!=o&&(s.sign!==a.sign||s.span\u003Co)&&(e[1-i]=e[i]+a.sign*o),s=$A(e,i),null!=r&&s.span>r&&(e[1-i]=e[i]+s.sign*r),e}function $A(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:0\u003Cn||!(n\u003C0)&&e?-1:1}}function JA(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var QA=lt,tk=Math.min,ek=Math.max,nk=Math.floor,ik=Math.ceil,ok=or,rk=Math.PI,ak=(sk.prototype._init=function(t,r,e){var n=t.dimensions,a=t.parallelAxisIndex;QA(n,function(t,e){var n=a[e],i=r.getComponent(\\\"parallelAxis\\\",n),n=this._axesMap.set(t,new ZA(t,J1(i),[0,0],i.get(\\\"type\\\"),n)),o=\\\"category\\\"===n.type;n.onBand=o&&i.get(\\\"boundaryGap\\\"),n.inverse=i.get(\\\"inverse\\\"),(i.axis=n).model=i,n.coordinateSystem=i.coordinateSystem=this},this)},sk.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},sk.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o],o=t[o];return n\u003C=r&&r\u003C=n+e.axisLength&&i\u003C=o&&o\u003C=i+e.layoutLength},sk.prototype.getModel=function(){return this._model},sk.prototype._updateAxesFromSeries=function(e,i){i.eachSeries(function(t){var n;e.contains(t,i)&&(n=t.getData(),QA(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),$1(e.scale,e.model)},this))},this)},sk.prototype.resize=function(t,e){this._rect=Jp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},sk.prototype.getRect=function(){return this._rect},sk.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=[\\\"x\\\",\\\"y\\\"],i=[\\\"width\\\",\\\"height\\\"],o=t.get(\\\"layout\\\"),r=\\\"horizontal\\\"===o?0:1,a=e[i[r]],s=[0,a],l=this.dimensions.length,u=lk(t.get(\\\"axisExpandWidth\\\"),s),h=lk(t.get(\\\"axisExpandCount\\\")||0,[0,l]),c=t.get(\\\"axisExpandable\\\")&&3\u003Cl&&h\u003Cl&&1\u003Ch&&0\u003Cu&&0\u003Ca,p=t.get(\\\"axisExpandWindow\\\"),s=(p?(d=lk(p[1]-p[0],s),p[1]=p[0]+d):(d=lk(u*(h-1),s),(p=[u*(t.get(\\\"axisExpandCenter\\\")||nk(l/2))-d/2])[1]=p[0]+d),(a-d)/(l-h)),t=(s\u003C3&&(s=0),[nk(ok(p[0]/u,1))+1,ik(ok(p[1]/u,1))-1]),d=s/u*p[0];return{layout:o,pixelDimIndex:r,layoutBase:e[n[r]],layoutLength:a,axisBase:e[n[1-r]],axisLength:e[i[1-r]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:s,axisExpandWindow:p,axisCount:l,winInnerIndices:t,axisExpandWindow0Pos:d}},sk.prototype._layoutAxes=function(){var a=this._rect,t=this._axesMap,e=this.dimensions,s=this._makeLayoutInfo(),l=s.layout;t.each(function(t){var e=[0,s.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),QA(e,function(t,e){var n=(s.axisExpandable?function(t,e){var n,i,o=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t\u003Cl[0]?(n=t*s,i=s):t\u003C=l[1]?(n=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],u=r,h=!0):(n=o-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}:function(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}})(e,s),i={horizontal:{x:n.position,y:s.axisLength},vertical:{x:0,y:n.position}},i=[i[l].x+a.x,i[l].y+a.y],o={horizontal:rk/2,vertical:0}[l],r=[1,0,0,1,0,0];oo(r,r,o),io(r,r,i),this._axesLayout[t]={position:i,rotation:o,transform:r,axisNameAvailableWidth:n.axisNameAvailableWidth,axisLabelShow:n.axisLabelShow,nameTruncateMaxWidth:n.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},sk.prototype.getAxis=function(t){return this._axesMap.get(t)},sk.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},sk.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,r=this.dimensions,a=[],s=[];lt(r,function(t){a.push(e.mapDimension(t)),s.push(o.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u\u003Ci;u++){var h=void 0;if(l){for(var h=\\\"active\\\",c=e.getValues(a,u),p=0,d=r.length;p\u003Cd;p++)if(\\\"inactive\\\"===s[p].getActiveState(c[p])){h=\\\"inactive\\\";break}}else h=\\\"normal\\\";t(h,u)}},sk.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i\u003Co;i++)\\\"normal\\\"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},sk.prototype.axisCoordToPoint=function(t,e){return hc([t,0],this._axesLayout[e].transform)},sk.prototype.getAxisLayout=function(t){return L(this._axesLayout[t])},sk.prototype.getSlidedAxisExpandWindow=function(t){var e,n,i,o,r,a=this._makeLayoutInfo(),s=a.pixelDimIndex,l=a.axisExpandWindow.slice(),u=l[1]-l[0],h=[0,a.axisExpandWidth*(a.axisCount-1)];return this.containPoint(t)?(s=t[s]-a.layoutBase-a.axisExpandWindow0Pos,n=\\\"slide\\\",i=a.axisCollapseWidth,r=null!=(o=this._model.get(\\\"axisExpandSlideTriggerArea\\\"))[0],i?(r&&i&&s\u003Cu*o[0]?(n=\\\"jump\\\",e=s-u*o[2]):r&&i&&s>u*(1-o[0])?(n=\\\"jump\\\",e=s-u*(1-o[2])):0\u003C=(e=s-u*o[1])&&(e=s-u*(1-o[1]))\u003C=0&&(e=0),(e*=a.axisExpandWidth/i)?KA(e,l,h,\\\"all\\\"):n=\\\"none\\\"):(r=l[1]-l[0],(l=[ek(0,h[1]*s/r-r/2)])[1]=tk(h[1],l[0]+r),l[0]=l[1]-r),{axisExpandWindow:l,behavior:n}):{behavior:\\\"none\\\",axisExpandWindow:l}},sk);function sk(t,e,n){this.type=\\\"parallel\\\",this._axesMap=N(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function lk(t,e){return tk(ek(t,e[0]),e[1])}var uk,hk={create:function(i,o){var r=[];return i.eachComponent(\\\"parallel\\\",function(t,e){var n=new ak(t,i,o);n.name=\\\"parallel_\\\"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,r.push(n)}),i.eachSeries(function(t){var e;\\\"parallel\\\"===t.get(\\\"coordinateSystem\\\")&&(e=t.getReferringComponents(\\\"parallel\\\",Wr).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},ck=(u(pk,uk=m),pk.prototype.getAreaSelectStyle=function(){return ia([[\\\"fill\\\",\\\"color\\\"],[\\\"lineWidth\\\",\\\"borderWidth\\\"],[\\\"stroke\\\",\\\"borderColor\\\"],[\\\"width\\\",\\\"width\\\"],[\\\"opacity\\\",\\\"opacity\\\"]])(this.getModel(\\\"areaSelectStyle\\\"))},pk.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=L(t);if(e)for(var n=e.length-1;0\u003C=n;n--)rr(e[n])},pk.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return\\\"normal\\\";if(null!=t&&!isNaN(+t))if(1===e.length){var n=e[0];if(n[0]\u003C=t&&t\u003C=n[1])return\\\"active\\\"}else for(var i=0,o=e.length;i\u003Co;i++)if(e[i][0]\u003C=t&&t\u003C=e[i][1])return\\\"active\\\";return\\\"inactive\\\"},pk);function pk(){var t=null!==uk&&uk.apply(this,arguments)||this;return t.type=pk.type,t.activeIntervals=[],t}ut(ck,ox);var dk,fk=!0,gk=Math.min,yk=Math.max,mk=Math.pow,vk={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},xk={w:\\\"ew\\\",e:\\\"ew\\\",n:\\\"ns\\\",s:\\\"ns\\\",ne:\\\"nesw\\\",sw:\\\"nesw\\\",nw:\\\"nwse\\\",se:\\\"nwse\\\"},_k={brushStyle:{lineWidth:2,stroke:\\\"rgba(210,219,238,0.3)\\\",fill:\\\"#D2DBEE\\\"},transformable:!0,brushMode:\\\"single\\\",removeOnClick:!1},bk=0,wk=(u(Sk,dk=se),Sk.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},Sk.prototype._doEnableBrush=function(t){var e,n=this._zr;this._enableGlobalPan||(e=this._uid,yI(n).globalPan=e),lt(this._handlers,function(t,e){n.on(e,t)}),this._brushType=t.brushType,this._brushOption=v(L(_k),t,!0)},Sk.prototype._doDisableBrush=function(){var t,e,n=this._zr;t=this._uid,(e=yI(n)).globalPan===t&&(e.globalPan=null),lt(this._handlers,function(t,e){n.off(e,t)}),this._brushType=this._brushOption=null},Sk.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},lt(t,function(t){e[t.panelId]=L(t)})):this._panels=null,this},Sk.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},Sk.prototype.updateCovers=function(i){i=Y(i,function(t){return v(L(_k),t,!0)});var o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new fv(o,i,function(t,e){return n(t.__brushOption,e)},n).add(t).update(t).remove(function(t){o[t]!==s&&a.group.remove(o[t])}).execute(),this;function n(t,e){return(null!=t.id?t.id:\\\"\\\\0-brush-index-\\\"+e)+\\\"-\\\"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?r[t]=o[e]:(n=r[t]=null!=e?(o[e].__brushOption=n,o[e]):Ik(a,Mk(a,n)),Dk(a,n))}},Sk.prototype.unmount=function(){return this.enableBrush(!1),Pk(this),this._zr.remove(this.group),this},Sk.prototype.dispose=function(){this.unmount(),this.off()},Sk);function Sk(t){var e=dk.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new K,e._uid=\\\"brushController_\\\"+bk++,lt(Kk,function(t,e){this._handlers[e]=I(t,this)},e),e}function Mk(t,e){var n=Jk[e.brushType].createCover(t,e);return n.__brushOption=e,Ck(n,e),t.group.add(n),n}function Ik(t,e){var n=Ak(e);return n.endCreating&&(n.endCreating(t,e),Ck(e,e.__brushOption)),e}function Tk(t,e){var n=e.__brushOption;Ak(e).updateCoverShape(t,e,n.range,n)}function Ck(t,e){var n=e.z;null==n&&(n=1e4),t.traverse(function(t){t.z=n,t.z2=n})}function Dk(t,e){Ak(e).updateCommon(t,e),Tk(t,e)}function Ak(t){return Jk[t.__brushOption.brushType]}function kk(t,e,n){var i,o,r=t._panels;return r?(o=t._transform,lt(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i):fk}function Lk(t,e){var n,i=t._panels;return i&&null!=(n=e.__brushOption.panelId)?i[n]:fk}function Pk(e){var t=e._covers,n=t.length;return lt(t,function(t){e.group.remove(t)},e),t.length=0,n}function Ok(t,e){var n=Y(t._covers,function(t){var e=t.__brushOption,n=L(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger(\\\"brush\\\",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Rk(t){var e=t.length-1;return[t[0],t[e=e\u003C0?0:e]]}function Nk(e,n,t,i){var o=new K;return o.add(new E({name:\\\"main\\\",style:Bk(t),silent:!0,draggable:!0,cursor:\\\"move\\\",drift:D(Wk,e,n,o,[\\\"n\\\",\\\"s\\\",\\\"w\\\",\\\"e\\\"]),ondragend:D(Ok,n,{isEnd:!0})})),lt(i,function(t){o.add(new E({name:t.join(\\\"\\\"),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:D(Wk,e,n,o,t),ondragend:D(Ok,n,{isEnd:!0})}))}),o}function Ek(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=yk(o,6),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,h=n[0][1],c=n[1][1],p=h-r+o/2,d=c-r+o/2,h=h-a,c=c-s,f=h+o,o=c+o;Vk(t,e,\\\"main\\\",a,s,h,c),i.transformable&&(Vk(t,e,\\\"w\\\",l,u,r,o),Vk(t,e,\\\"e\\\",p,u,r,o),Vk(t,e,\\\"n\\\",l,u,f,r),Vk(t,e,\\\"s\\\",l,d,f,r),Vk(t,e,\\\"nw\\\",l,u,r,r),Vk(t,e,\\\"ne\\\",p,u,r,r),Vk(t,e,\\\"sw\\\",l,d,r,r),Vk(t,e,\\\"se\\\",p,d,r,r))}function zk(o,r){var t=r.__brushOption,a=t.transformable,e=r.childAt(0);e.useStyle(Bk(t)),e.attr({silent:!a,cursor:a?\\\"move\\\":\\\"default\\\"}),lt([[\\\"w\\\"],[\\\"e\\\"],[\\\"n\\\"],[\\\"s\\\"],[\\\"s\\\",\\\"e\\\"],[\\\"s\\\",\\\"w\\\"],[\\\"n\\\",\\\"e\\\"],[\\\"n\\\",\\\"w\\\"]],function(t){var e,n=r.childOfName(t.join(\\\"\\\")),i=1===t.length?Gk(o,t[0]):(\\\"e\\\"!==(i=[Gk(e=o,(t=t)[0]),Gk(e,t[1])])[0]&&\\\"w\\\"!==i[0]||i.reverse(),i.join(\\\"\\\"));n&&n.attr({silent:!a,invisible:!a,cursor:a?xk[i]+\\\"-resize\\\":null})})}function Vk(t,e,n,i,o,r,a){var s,l,u=e.childOfName(n);u&&u.setShape((n=Uk(t,e,[[i,o],[i+r,o+a]]),s=gk(n[0][0],n[1][0]),l=gk(n[0][1],n[1][1]),{x:s,y:l,width:yk(n[0][0],n[1][0])-s,height:yk(n[0][1],n[1][1])-l}))}function Bk(t){return H({strokeNoScale:!0},t.brushStyle)}function Fk(t,e,n,i){var o=[gk(t,n),gk(e,i)],r=[yk(t,n),yk(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function Gk(t,e){return{left:\\\"w\\\",right:\\\"e\\\",top:\\\"n\\\",bottom:\\\"s\\\"}[cc({w:\\\"left\\\",e:\\\"right\\\",n:\\\"top\\\",s:\\\"bottom\\\"}[e],uc(t.group))]}function Wk(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=Yk(e,o,r);lt(i,function(t){var e=vk[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(Fk(s[0][0],s[1][0],s[0][1],s[1][1])),Dk(e,n),Ok(e,{isEnd:!1})}function Hk(t,e,n,i){var o=e.__brushOption.range,r=Yk(t,n,i);lt(o,function(t){t[0]+=r[0],t[1]+=r[1]}),Dk(t,e),Ok(t,{isEnd:!1})}function Yk(t,e,n){var i=t.group,o=i.transformCoordToLocal(e,n),i=i.transformCoordToLocal(0,0);return[o[0]-i[0],o[1]-i[1]]}function Uk(t,e,n){var i=Lk(t,e);return i&&i!==fk?i.clipPath(n,t._transform):L(n)}function Xk(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Zk(t,e,n){return t.childOfName(\\\"main\\\").contain(e,n)}function jk(i,t,e,n){var o,r,a=i._creatingCover,s=i._creatingPanel,l=i._brushOption;return i._track.push(e.slice()),function(){var t,e,n=i._track;if(n.length)return e=n[n.length-1],n=n[0],t=e[0]-n[0],e=e[1]-n[1],6\u003Cmk(t*t+e*e,.5)}()||a?(s&&!a&&(\\\"single\\\"===l.brushMode&&Pk(i),(r=L(l)).brushType=qk(r.brushType,s),r.panelId=s===fk?null:s.panelId,a=i._creatingCover=Mk(i,r),i._covers.push(a)),a&&(r=Jk[qk(i._brushType,s)],a.__brushOption.range=r.getCreatingRange(Uk(i,a,i._track)),n&&(Ik(i,a),r.updateCommon(i,a)),Tk(i,a),o={isEnd:n})):n&&\\\"single\\\"===l.brushMode&&l.removeOnClick&&kk(i,t,e)&&Pk(i)&&(o={isEnd:n,removeOnClick:!0}),o}function qk(t,e){return\\\"auto\\\"===t?e.defaultBrushType:t}var Kk={mousedown:function(t){var e;this._dragging?$k(this,t):t.target&&t.target.draggable||(Xk(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=kk(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY,e=this.group.transformCoordToLocal(e,n);(function(t,e,n){if(t._brushType&&(l=e.offsetX,u=e.offsetY,i=t._zr,!(l\u003C0||l>i.getWidth()||u\u003C0||u>i.getHeight()))){var i=t._zr,o=t._covers,r=kk(t,e,n);if(!t._dragging)for(var a=0;a\u003Co.length;a++){var s=o[a].__brushOption;if(r&&(r===fk||s.panelId===r.panelId)&&Jk[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle(\\\"crosshair\\\")}var l,u,i})(this,t,e),this._dragging&&(Xk(t),n=jk(this,t,e,!1))&&Ok(this,n)},mouseup:function(t){$k(this,t)}};function $k(t,e){var n,i;t._dragging&&(Xk(e),n=e.offsetX,i=e.offsetY,n=t.group.transformCoordToLocal(n,i),i=jk(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i)&&Ok(t,i)}var Jk={lineX:Qk(0),lineY:Qk(1),rect:{createCover:function(t,e){function n(t){return t}return Nk({toRectRange:n,fromRectRange:n},t,e,[[\\\"w\\\"],[\\\"e\\\"],[\\\"n\\\"],[\\\"s\\\"],[\\\"s\\\",\\\"e\\\"],[\\\"s\\\",\\\"w\\\"],[\\\"n\\\",\\\"e\\\"],[\\\"n\\\",\\\"w\\\"]])},getCreatingRange:function(t){var e=Rk(t);return Fk(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Ek(t,e,n,i)},updateCommon:zk,contain:Zk},polygon:{createCover:function(t,e){var n=new K;return n.add(new rh({name:\\\"main\\\",style:Bk(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new eh({name:\\\"main\\\",draggable:!0,drift:D(Hk,t,e),ondragend:D(Ok,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:Uk(t,e,n)})},updateCommon:zk,contain:Zk}};function Qk(r){return{createCover:function(t,e){return Nk({toRectRange:function(t){var e=[t,[0,100]];return r&&e.reverse(),e},fromRectRange:function(t){return t[r]}},t,e,[[[\\\"w\\\"],[\\\"e\\\"]],[[\\\"n\\\"],[\\\"s\\\"]]][r])},getCreatingRange:function(t){var e=Rk(t);return[gk(e[0][r],e[1][r]),yk(e[0][r],e[1][r])]},updateCoverShape:function(t,e,n,i){var o=Lk(t,e),o=[n,o!==fk&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(r):[0,[(o=t._zr).getWidth(),o.getHeight()][1-r]]];r&&o.reverse(),Ek(t,e,o,i)},updateCommon:zk,contain:Zk}}function tL(e){return e=iL(e),function(t){return fc(t,e)}}function eL(i,o){return i=iL(i),function(t){var e=null!=o?o:t,n=e?i.width:i.height,e=e?i.x:i.y;return[e,e+(n||0)]}}function nL(t,n,i){var o=iL(t);return function(t,e){return o.contain(e[0],e[1])&&!CI(t,n,i)}}function iL(t){return B.create(t)}var oL,rL=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],aL=(u(sL,oL=fy),sL.prototype.init=function(t,e){oL.prototype.init.apply(this,arguments),(this._brushController=new wk(e.getZr())).on(\\\"brush\\\",I(this._onBrush,this))},sL.prototype.render=function(t,e,n,i){var o,r,a,s,l,u,h,c;h=t,c=e,i&&\\\"axisAreaSelect\\\"===i.type&&c.findComponents({mainType:\\\"parallelAxis\\\",query:i})[0]===h||(this.axisModel=t,this.api=n,this.group.removeAll(),o=this._axisGroup,this._axisGroup=new K,this.group.add(this._axisGroup),t.get(\\\"show\\\")&&(u=(r=e.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\"))).coordinateSystem,s=(a=t.getAreaSelectStyle()).width,l=t.axis.dim,l=Z({strokeContainThreshold:s},u.getAxisLayout(l)),u=new uM(t,l),lt(rL,u.add,u),this._axisGroup.add(u.getGroup()),this._refreshBrushController(l,a,t,r,s,n),dc(o,this._axisGroup,t)))},sL.prototype._refreshBrushController=function(t,e,n,i,o,r){var a,s=n.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),s=B.create({x:s[0],y:-o/2,width:l,height:o});s.x-=u,s.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:\\\"pl\\\",clipPath:tL(s),isTargetByCursor:nL(s,r,i),getLinearBrushOtherExtent:eL(s,0)}]).enableBrush({brushType:\\\"lineX\\\",brushStyle:e,removeOnClick:!0}).updateCovers((a=n.axis,Y(n.activeIntervals,function(t){return{brushType:\\\"lineX\\\",panelId:\\\"pl\\\",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}})))},sL.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,e=Y(e,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});!n.option.realtime!==t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:\\\"axisAreaSelect\\\",parallelAxisId:n.id,intervals:e})},sL.prototype.dispose=function(){this._brushController.dispose()},sL.type=\\\"parallelAxis\\\",sL);function sL(){var t=null!==oL&&oL.apply(this,arguments)||this;return t.type=sL.type,t}var lL={type:\\\"axisAreaSelect\\\",event:\\\"axisAreaSelected\\\"},uL={type:\\\"value\\\",areaSelectStyle:{width:20,borderWidth:1,borderColor:\\\"rgba(160,197,232)\\\",color:\\\"rgba(160,197,232)\\\",opacity:.3},realtime:!0,z:10};function hL(t){t.registerComponentView(FA),t.registerComponentModel(XA),t.registerCoordinateSystem(\\\"parallel\\\",hk),t.registerPreprocessor(VA),t.registerComponentModel(ck),t.registerComponentView(aL),GS(t,\\\"parallel\\\",ck,uL),(t=t).registerAction(lL,function(e,t){t.eachComponent({mainType:\\\"parallelAxis\\\",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction(\\\"parallelAxisExpand\\\",function(e,t){t.eachComponent({mainType:\\\"parallel\\\",query:e},function(t){t.setAxisExpand(e)})})}var cL,pL,dL=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},fL=(u(mL,pL=Q),mL.prototype.getDefaultShape=function(){return new dL},mL.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),\\\"vertical\\\"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},mL.prototype.highlight=function(){Rl(this)},mL.prototype.downplay=function(){Nl(this)},mL),gL=(u(yL,cL=xy),yL.prototype.render=function(b,t,i){var e,n,o=this,r=b.getGraph(),w=this.group,a=b.layoutInfo,S=a.width,M=a.height,s=b.getData(),I=b.getData(\\\"edge\\\"),T=b.get(\\\"orient\\\");this._model=b,w.removeAll(),w.x=a.x,w.y=a.y,r.eachEdge(function(t){var e=new fL,n=$(e);n.dataIndex=t.dataIndex,n.seriesIndex=b.seriesIndex,n.dataType=\\\"edge\\\";var i,o,r,a,s,l,u,n=t.getModel(),h=n.getModel(\\\"lineStyle\\\"),c=h.get(\\\"curveness\\\"),p=t.node1.getLayout(),d=t.node1.getModel(),f=d.get(\\\"localX\\\"),d=d.get(\\\"localY\\\"),g=t.node2.getLayout(),y=t.node2.getModel(),m=y.get(\\\"localX\\\"),y=y.get(\\\"localY\\\"),v=t.getLayout();switch(e.shape.extent=Math.max(1,v.dy),f=\\\"vertical\\\"===(e.shape.orient=T)?(i=(null!=f?f*S:p.x)+v.sy,o=(null!=d?d*M:p.y)+p.dy,r=(null!=m?m*S:g.x)+v.ty,s=i,l=o*(1-c)+(a=null!=y?y*M:g.y)*c,u=r,o*c+a*(1-c)):(i=(null!=f?f*S:p.x)+p.dx,o=(null!=d?d*M:p.y)+v.sy,s=i*(1-c)+(r=null!=m?m*S:g.x)*c,l=o,u=i*c+r*(1-c),a=(null!=y?y*M:g.y)+v.ty),e.setShape({x1:i,y1:o,x2:r,y2:a,cpx1:s,cpy1:l,cpx2:u,cpy2:f}),e.useStyle(h.getItemStyle()),e.style.fill){case\\\"source\\\":e.style.fill=t.node1.getVisual(\\\"color\\\"),e.style.decal=t.node1.getVisual(\\\"style\\\").decal;break;case\\\"target\\\":e.style.fill=t.node2.getVisual(\\\"color\\\"),e.style.decal=t.node2.getVisual(\\\"style\\\").decal;break;case\\\"gradient\\\":var x=t.node1.getVisual(\\\"color\\\"),_=t.node2.getVisual(\\\"color\\\");X(x)&&X(_)&&(e.style.fill=new Ch(0,0,+(\\\"horizontal\\\"===T),+(\\\"vertical\\\"===T),[{color:x,offset:0},{color:_,offset:1}]))}d=n.getModel(\\\"emphasis\\\"),$l(e,n,\\\"lineStyle\\\",function(t){return t.getItemStyle()}),w.add(e),I.setItemGraphicEl(t.dataIndex,e),p=d.get(\\\"focus\\\");Zl(e,\\\"adjacency\\\"===p?t.getAdjacentDataIndices():p,d.get(\\\"blurScope\\\"),d.get(\\\"disabled\\\")),$(e).dataType=\\\"edge\\\"}),r.eachNode(function(t){var e=t.getLayout(),n=t.getModel(),i=n.get(\\\"localX\\\"),o=n.get(\\\"localY\\\"),r=n.getModel(\\\"emphasis\\\"),i=new E({shape:{x:null!=i?i*S:e.x,y:null!=o?o*M:e.y,width:e.dx,height:e.dy},style:n.getModel(\\\"itemStyle\\\").getItemStyle(),z2:10}),o=(Tc(i,Cc(n),{labelFetcher:b,labelDataIndex:t.dataIndex,defaultText:t.id}),i.disableLabelAnimation=!0,i.setStyle(\\\"fill\\\",t.getVisual(\\\"color\\\")),i.setStyle(\\\"decal\\\",t.getVisual(\\\"style\\\").decal),$l(i,n),w.add(i),s.setItemGraphicEl(t.dataIndex,i),$(i).dataType=\\\"node\\\",r.get(\\\"focus\\\"));Zl(i,\\\"adjacency\\\"===o?t.getAdjacentDataIndices():o,r.get(\\\"blurScope\\\"),r.get(\\\"disabled\\\"))}),s.eachItemGraphicEl(function(t,n){s.getItemModel(n).get(\\\"draggable\\\")&&(t.drift=function(t,e){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=e,this.dirty(),i.dispatchAction({type:\\\"dragNode\\\",seriesId:b.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/S,localY:this.shape.y/M})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=\\\"move\\\")}),!this._data&&b.isAnimationEnabled()&&w.setClipPath((e=w.getBoundingRect(),n=b,Yh(a=new E({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}}),{shape:{width:e.width+20}},n,function(){w.removeClipPath()}),a)),this._data=b.getData()},yL.prototype.dispose=function(){},yL.type=\\\"sankey\\\",yL);function yL(){var t=null!==cL&&cL.apply(this,arguments)||this;return t.type=yL.type,t._focusAdjacencyDisabled=!1,t}function mL(t){return pL.call(this,t)||this}u(_L,vL=ry),_L.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a\u003Co.length;a++)null!=o[a].depth&&0\u003C=o[a].depth&&(r[o[a].depth]=new qc(o[a],this,e));if(i&&n)return JD(i,n,this,!0,function(t,e){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);return i&&(i=i.depth,i=n.levelModels[i])&&(t.parentModel=i),t}),e.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();return i&&(i=i.depth,i=n.levelModels[i])&&(t.parentModel=i),t})}).data},_L.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},_L.prototype.getGraph=function(){return this.getData().graph},_L.prototype.getEdgeData=function(){return this.getGraph().edgeData},_L.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}var o,r;return\\\"edge\\\"===n?(o=(r=this.getDataParams(t,n)).data,r=r.value,Hg(\\\"nameValue\\\",{name:o.source+\\\" -- \\\"+o.target,value:r,noValue:i(r)})):(o=this.getGraph().getNodeByIndex(t).getLayout().value,Hg(\\\"nameValue\\\",{name:null!=(r=this.getDataParams(t,n).data.name)?r+\\\"\\\":null,value:o,noValue:i(o)}))},_L.prototype.optionUpdated=function(){},_L.prototype.getDataParams=function(t,e){var n,i=vL.prototype.getDataParams.call(this,t,e);return null==i.value&&\\\"node\\\"===e&&(n=this.getGraph().getNodeByIndex(t).getLayout().value,i.value=n),i},_L.type=\\\"series.sankey\\\",_L.defaultOption={z:2,coordinateSystem:\\\"view\\\",left:\\\"5%\\\",top:\\\"5%\\\",right:\\\"20%\\\",bottom:\\\"5%\\\",orient:\\\"horizontal\\\",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:\\\"right\\\",fontSize:12},levels:[],nodeAlign:\\\"justify\\\",lineStyle:{color:\\\"#314656\\\",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:\\\"#212121\\\"}},animationEasing:\\\"linear\\\",animationDuration:1e3};var vL,xL=_L;function _L(){var t=null!==vL&&vL.apply(this,arguments)||this;return t.type=_L.type,t}function bL(t,st){t.eachSeriesByType(\\\"sankey\\\",function(t){for(var E=t.get(\\\"nodeWidth\\\"),z=t.get(\\\"nodeGap\\\"),e=(o=st,Jp(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})),V=(t.layoutInfo=e).width,e=e.height,n=t.getGraph(),i=n.nodes,n=n.edges,o=(lt(i,function(t){var e=kL(t.outEdges,AL),n=kL(t.inEdges,AL),i=t.getValue()||0,e=Math.max(e,n,i);t.setLayout({value:e},!0)}),i),B=n,F=E,G=z,W=V,H=e,Y=0!==pt(i,function(t){return 0===t.getLayout().value}).length?0:t.get(\\\"layoutIterations\\\"),r=t.get(\\\"orient\\\"),t=t.get(\\\"nodeAlign\\\"),a=o,U=B,s=F,F=W,l=H,u=r,h=[],c=[],p=[],d=[],f=0,g=0;g\u003CU.length;g++)h[g]=1;for(g=0;g\u003Ca.length;g++)c[g]=a[g].inEdges.length,0===c[g]&&p.push(a[g]);for(var y=-1;p.length;){for(var m=0;m\u003Cp.length;m++){var v=p[m],x=v.hostGraph.data.getRawDataItem(v.dataIndex),X=null!=x.depth&&0\u003C=x.depth;X&&x.depth>y&&(y=x.depth),v.setLayout({depth:X?x.depth:f},!0),\\\"vertical\\\"===u?v.setLayout({dy:s},!0):v.setLayout({dx:s},!0);for(var _=0;_\u003Cv.outEdges.length;_++){var b=v.outEdges[_],b=(h[U.indexOf(b)]=0,b.node2);0==--c[a.indexOf(b)]&&d.indexOf(b)\u003C0&&d.push(b)}}++f,p=d,d=[]}for(g=0;g\u003Ch.length;g++)if(1===h[g])throw new Error(\\\"Sankey is a DAG, the original data has cycle!\\\");var Z,j,q,n=f-1\u003Cy?y:f-1;if(t&&\\\"left\\\"!==t){var w=a,K=n;if(\\\"right\\\"===t){for(var S=[],M=w,$=0;M.length;){for(var I=0;I\u003CM.length;I++){var T=M[I];T.setLayout({skNodeHeight:$},!0);for(var C=0;C\u003CT.inEdges.length;C++){var J=T.inEdges[C];S.indexOf(J.node1)\u003C0&&S.push(J.node1)}}M=S,S=[],++$}lt(w,function(t){wL(t)||t.setLayout({depth:Math.max(0,K-t.getLayout().skNodeHeight)},!0)})}else\\\"justify\\\"===t&&(Z=K,lt(w,function(t){wL(t)||t.outEdges.length||t.setLayout({depth:Z},!0)}))}j=\\\"vertical\\\"===u?(l-s)/n:(F-s)/n,q=u,lt(a,function(t){var e=t.getLayout().depth*j;\\\"vertical\\\"===q?t.setLayout({y:e},!0):t.setLayout({x:e},!0)});var t=o,w=B,D=H,A=W,k=G,Q=Y,L=r;P=[],tt=\\\"vertical\\\"===L?\\\"y\\\":\\\"x\\\",(et=Xr(o,function(t){return t.getLayout()[tt]})).keys.sort(function(t,e){return t-e}),lt(et.keys,function(t){P.push(et.buckets.get(t))});var P,tt,et,nt,it,ot,rt,O,R=P;t=w,nt=D,it=A,ot=k,rt=L,O=1/0,lt(w=R,function(t){var e=t.length,n=0,e=(lt(t,function(t){n+=t.getLayout().value}),\\\"vertical\\\"===rt?(it-(e-1)*ot)/n:(nt-(e-1)*ot)/n);e\u003CO&&(O=e)}),lt(w,function(t){lt(t,function(t,e){var n=t.getLayout().value*O;\\\"vertical\\\"===rt?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),lt(t,function(t){var e=+t.getValue()*O;t.setLayout({dy:e},!0)}),SL(R,k,D,A,L);for(var N,at=1;0\u003CQ;Q--)(function(t,i,o){lt(t.slice().reverse(),function(t){lt(t,function(t){var e,n;t.outEdges.length&&(e=kL(t.outEdges,ML,o)/kL(t.outEdges,AL),isNaN(e)&&(e=(n=t.outEdges.length)?kL(t.outEdges,IL,o)/n:0),\\\"vertical\\\"===o?(n=t.getLayout().x+(e-DL(t,o))*i,t.setLayout({x:n},!0)):(n=t.getLayout().y+(e-DL(t,o))*i,t.setLayout({y:n},!0)))})})})(R,at*=.99,L),SL(R,k,D,A,L),function(t,i,o){lt(t,function(t){lt(t,function(t){var e,n;t.inEdges.length&&(e=kL(t.inEdges,TL,o)/kL(t.inEdges,AL),isNaN(e)&&(e=(n=t.inEdges.length)?kL(t.inEdges,CL,o)/n:0),\\\"vertical\\\"===o?(n=t.getLayout().x+(e-DL(t,o))*i,t.setLayout({x:n},!0)):(n=t.getLayout().y+(e-DL(t,o))*i,t.setLayout({y:n},!0)))})})}(R,at,L),SL(R,k,D,A,L);N=\\\"vertical\\\"===r?\\\"x\\\":\\\"y\\\",lt(l=o,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[N]-e.node2.getLayout()[N]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[N]-e.node1.getLayout()[N]})}),lt(l,function(t){var e=0,n=0;lt(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),lt(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}function wL(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&0\u003C=e.depth}function SL(t,l,u,h,c){var p=\\\"vertical\\\"===c?\\\"x\\\":\\\"y\\\";lt(t,function(t){var e,n,i;t.sort(function(t,e){return t.getLayout()[p]-e.getLayout()[p]});for(var o=0,r=t.length,a=\\\"vertical\\\"===c?\\\"dx\\\":\\\"dy\\\",s=0;s\u003Cr;s++)0\u003C(i=o-(n=t[s]).getLayout()[p])&&(e=n.getLayout()[p]+i,\\\"vertical\\\"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]+n.getLayout()[a]+l;if(0\u003C(i=o-l-(\\\"vertical\\\"===c?h:u)))for(e=n.getLayout()[p]-i,\\\"vertical\\\"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0),o=e,s=r-2;0\u003C=s;--s)0\u003C(i=(n=t[s]).getLayout()[p]+n.getLayout()[a]+l-o)&&(e=n.getLayout()[p]-i,\\\"vertical\\\"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]})}function ML(t,e){return DL(t.node2,e)*t.getValue()}function IL(t,e){return DL(t.node2,e)}function TL(t,e){return DL(t.node1,e)*t.getValue()}function CL(t,e){return DL(t.node1,e)}function DL(t,e){return\\\"vertical\\\"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function AL(t){return t.getValue()}function kL(t,e,n){for(var i=0,o=t.length,r=-1;++r\u003Co;){var a=+e(t[r],n);isNaN(a)||(i+=a)}return i}function LL(t){t.eachSeriesByType(\\\"sankey\\\",function(i){var o,r,t=i.getGraph().nodes;t.length&&(o=1/0,r=-1/0,lt(t,function(t){var e=t.getLayout().value;e\u003Co&&(o=e),r\u003Ce&&(r=e)}),lt(t,function(t){var e=new dC({type:\\\"color\\\",mappingMethod:\\\"linear\\\",dataExtent:[o,r],visual:i.get(\\\"color\\\")}).mapValueToVisual(t.getLayout().value),n=t.getModel().get([\\\"itemStyle\\\",\\\"color\\\"]);null!=n?(t.setVisual(\\\"color\\\",n),t.setVisual(\\\"style\\\",{fill:n})):(t.setVisual(\\\"color\\\",e),t.setVisual(\\\"style\\\",{fill:e}))}))})}NL.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent(\\\"xAxis\\\",this.get(\\\"xAxisIndex\\\")),r=e.getComponent(\\\"yAxis\\\",this.get(\\\"yAxisIndex\\\")),a=o.get(\\\"type\\\"),s=r.get(\\\"type\\\"),a=(\\\"category\\\"===a?(t.layout=\\\"horizontal\\\",n=o.getOrdinalMeta(),u=!0):\\\"category\\\"===s?(t.layout=\\\"vertical\\\",n=r.getOrdinalMeta(),u=!0):t.layout=t.layout||\\\"horizontal\\\",[\\\"x\\\",\\\"y\\\"]),s=\\\"horizontal\\\"===t.layout?0:1,l=this._baseAxisDim=a[s],a=a[1-s],o=[o,r],r=o[s].get(\\\"type\\\"),s=o[1-s].get(\\\"type\\\"),o=t.data,u=(o&&u&&(i=[],lt(o,function(t,e){var n;U(t)?(n=t.slice(),t.unshift(e)):U(t.value)?((n=Z({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,i.push(n)}),t.data=i),this.defaultValueDimensions),o=[{name:l,type:xv(r),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[\\\"base\\\"]},{name:a,type:xv(s),dimsDef:u.slice()}];return gS(this,{coordDimensions:o,dimensionsCount:u.length+1,encodeDefaulter:D(Id,o,this)})},NL.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+\\\"Axis\\\",this.get(t+\\\"AxisIndex\\\")).axis};var PL,hd=NL,OL=(u(RL,PL=ry),RL.type=\\\"series.boxplot\\\",RL.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"grid\\\"],RL.defaultOption={z:2,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:\\\"#fff\\\",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:\\\"rgba(0,0,0,0.2)\\\"}},animationDuration:800},RL);function RL(){var t=null!==PL&&PL.apply(this,arguments)||this;return t.type=RL.type,t.defaultValueDimensions=[{name:\\\"min\\\",defaultTooltip:!0},{name:\\\"Q1\\\",defaultTooltip:!0},{name:\\\"median\\\",defaultTooltip:!0},{name:\\\"Q3\\\",defaultTooltip:!0},{name:\\\"max\\\",defaultTooltip:!0}],t.visualDrawType=\\\"stroke\\\",t}function NL(){}ut(OL,hd,!0);u(WL,zL=xy),WL.prototype.render=function(t,e,n){var o=t.getData(),r=this.group,a=this._data,s=(this._data||r.removeAll(),\\\"horizontal\\\"===t.get(\\\"layout\\\")?1:0);o.diff(a).add(function(t){var e;o.hasValue(t)&&(e=HL(o.getItemLayout(t),o,t,s,!0),o.setItemGraphicEl(t,e),r.add(e))}).update(function(t,e){var n,i=a.getItemGraphicEl(e);o.hasValue(t)?(n=o.getItemLayout(t),i?(qh(i),YL(n,i,o,t)):i=HL(n,o,t,s),r.add(i),o.setItemGraphicEl(t,i)):r.remove(i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=o},WL.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},WL.type=\\\"boxplot\\\";var EL,zL,VL=WL,BL=function(){},FL=(u(GL,EL=Q),GL.prototype.getDefaultShape=function(){return new BL},GL.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i\u003C4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i\u003Cn.length;i++)t.moveTo(n[i][0],n[i][1]),t.lineTo(n[++i][0],n[i][1])},GL);function GL(t){var e=EL.call(this,t)||this;return e.type=\\\"boxplotBoxPath\\\",e}function WL(){var t=null!==zL&&zL.apply(this,arguments)||this;return t.type=WL.type,t}function HL(t,e,n,i,o){var r,a,s=t.ends,s=new FL({shape:{points:o?(r=i,a=t,Y(s,function(t){return(t=t.slice())[r]=a.initBaseline,t})):s}});return YL(t,s,e,n,o),s}function YL(t,e,n,i,o){var r=n.hostModel,r=((0,wc[o?\\\"initProps\\\":\\\"updateProps\\\"])(e,{shape:{points:t.ends}},r,i),e.useStyle(n.getItemVisual(i,\\\"style\\\")),e.style.strokeNoScale=!0,e.z2=100,n.getItemModel(i)),a=r.getModel(\\\"emphasis\\\");$l(e,r),Zl(e,a.get(\\\"focus\\\"),a.get(\\\"blurScope\\\"),a.get(\\\"disabled\\\"))}function UL(t,e){}var XL=lt;function ZL(t){var i,o;i=[],o=[],t.eachSeriesByType(\\\"boxplot\\\",function(t){var e=t.getBaseAxis(),n=G(o,e);n\u003C0&&(n=o.length,o[n]=e,i[n]={axis:e,seriesModels:[]}),i[n].seriesModels.push(t)}),XL(i,function(b){var t,e,n,i,o,r,a,s,l,u,h,c,p=b.seriesModels;p.length&&(i=(t=b).axis,o=t.seriesModels,r=o.length,a=t.boxWidthList=[],s=t.boxOffsetList=[],l=[],n=\\\"category\\\"===i.type?i.getBandWidth():(e=0,XL(o,function(t){e=Math.max(e,t.getData().count())}),i=i.getExtent(),Math.abs(i[1]-i[0])/e),XL(o,function(t){var e=t.get(\\\"boxWidth\\\");U(e)||(e=[e,e]),l.push([F(e[0],n)||0,F(e[1],n)||0])}),c=(h=((i=.8*n-2)-(u=i/r*.3)*(r-1))/r)/2-i/2,XL(o,function(t,e){s.push(c),c+=u+h,a.push(Math.min(Math.max(h,l[e][0]),l[e][1]))}),XL(p,function(t,e){var a=b.boxOffsetList[e],e=b.boxWidthList[e],s=t.coordinateSystem,l=t.getData(),r=e/2,u=\\\"horizontal\\\"===t.get(\\\"layout\\\")?0:1,h=1-u,n=[\\\"x\\\",\\\"y\\\"],i=l.mapDimension(n[u]),o=l.mapDimensionsAll(n[h]);if(!(null==i||o.length\u003C5))for(var c=0;c\u003Cl.count();c++){var p=l.get(i,c),d=v(p,o[2],c),f=v(p,o[0],c),g=v(p,o[1],c),y=v(p,o[3],c),p=v(p,o[4],c),m=[];x(m,g,!1),x(m,y,!0),m.push(f,g,p,y),_(m,f),_(m,p),_(m,d),l.setItemLayout(c,{initBaseline:d[h],ends:m})}function v(t,e,n){var i,o=l.get(e,n),r=[];return r[u]=t,r[h]=o,isNaN(t)||isNaN(o)?i=[NaN,NaN]:(i=s.dataToPoint(r))[u]+=a,i}function x(t,e,n){var i=e.slice(),o=e.slice();i[u]+=r,o[u]-=r,n?t.push(i,o):t.push(o,i)}function _(t,e){var n=e.slice(),i=e.slice();n[u]-=r,i[u]+=r,t.push(n,i)}}))})}var jL,qL,KL={type:\\\"echarts:boxplot\\\",transform:function(x){var t=x.upstream,t=(t.sourceFormat!==fd&&Mr(\\\"\\\"),function(t,e){for(var n=[],i=[],o=(e=x.config||{}).boundIQR,r=\\\"none\\\"===o||0===o,a=0;a\u003Ct.length;a++){var s=rr(t[a].slice()),l=vr(s,.25),u=vr(s,.5),h=vr(s,.75),c=s[0],p=s[s.length-1],d=(null==o?1.5:o)*(h-l),f=r?c:Math.max(c,l-d),g=r?p:Math.min(p,h+d),c=e.itemNameFormatter,y=A(c)?c({value:a}):X(c)?c.replace(\\\"{value}\\\",a+\\\"\\\"):a+\\\"\\\";n.push([y,f,l,u,h,g]);for(var m=0;m\u003Cs.length;m++){var v=s[m];(v\u003Cf||g\u003Cv)&&i.push([y,v])}}return{boxData:n,outliers:i}}(t.getRawData()));return[{dimensions:[\\\"ItemName\\\",\\\"Low\\\",\\\"Q1\\\",\\\"Q2\\\",\\\"Q3\\\",\\\"High\\\"],data:t.boxData},{data:t.outliers}]}},$L=[\\\"color\\\",\\\"borderColor\\\"],JL=(u(nP,qL=xy),nP.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},nP.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},nP.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},nP.prototype.eachRendered=function(t){bc(this._progressiveEls||this.group,t)},nP.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},nP.prototype._renderNormal=function(o){var r=o.getData(),a=this._data,s=this.group,l=r.getLayout(\\\"isSimpleBox\\\"),u=o.get(\\\"clip\\\",!0),t=o.coordinateSystem,h=t.getArea&&t.getArea();this._data||s.removeAll(),r.diff(a).add(function(t){var e,n;r.hasValue(t)&&(e=r.getItemLayout(t),u&&oP(h,e)||(Yh(n=iP(e,0,!0),{shape:{points:e.ends}},o,t),rP(n,r,t,l),s.add(n),r.setItemGraphicEl(t,n)))}).update(function(t,e){var n,i=a.getItemGraphicEl(e);!r.hasValue(t)||(n=r.getItemLayout(t),u&&oP(h,n))?s.remove(i):(i?(k(i,{shape:{points:n.ends}},o,t),qh(i)):i=iP(n),rP(i,r,t,l),s.add(i),r.setItemGraphicEl(t,i))}).remove(function(t){var e=a.getItemGraphicEl(t);e&&s.remove(e)}).execute(),this._data=r},nP.prototype._renderLarge=function(t){this._clear(),hP(t,this.group);var e=t.get(\\\"clip\\\",!0)?ew(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},nP.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),o=i.getLayout(\\\"isSimpleBox\\\");null!=(n=t.next());){var r=iP(i.getItemLayout(n));rP(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},nP.prototype._incrementalRenderLarge=function(t,e){hP(e,this.group,this._progressiveEls,!0)},nP.prototype.remove=function(t){this._clear()},nP.prototype._clear=function(){this.group.removeAll(),this._data=null},nP.type=\\\"candlestick\\\",nP),QL=function(){},tP=(u(eP,jL=Q),eP.prototype.getDefaultShape=function(){return new QL},eP.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},eP);function eP(t){var e=jL.call(this,t)||this;return e.type=\\\"normalCandlestickBox\\\",e}function nP(){var t=null!==qL&&qL.apply(this,arguments)||this;return t.type=nP.type,t}function iP(t,e,n){var i,o=t.ends;return new tP({shape:{points:n?(i=t,Y(o,function(t){return(t=t.slice())[1]=i.initBaseline,t})):o},z2:100})}function oP(t,e){for(var n=!0,i=0;i\u003Ce.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function rP(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,\\\"style\\\")),t.style.strokeNoScale=!0,t.__simpleBox=i,$l(t,o)}var aP,sP=function(){},lP=(u(uP,aP=Q),uP.prototype.getDefaultShape=function(){return new sP},uP.prototype.buildPath=function(t,e){for(var n,i=e.points,o=0;o\u003Ci.length;)this.__sign===i[o++]?(n=i[o++],t.moveTo(n,i[o++]),t.lineTo(n,i[o++])):o+=3},uP);function uP(t){var e=aP.call(this,t)||this;return e.type=\\\"largeCandlestickBox\\\",e}function hP(t,e,n,i){var o=t.getData().getLayout(\\\"largePoints\\\"),r=new lP({shape:{points:o},__sign:1}),o=(e.add(r),new lP({shape:{points:o},__sign:-1}));e.add(o),cP(1,r,t),cP(-1,o,t),i&&(r.incremental=!0,o.incremental=!0),n&&n.push(r,o)}function cP(t,e,n){var i=n.get([\\\"itemStyle\\\",0\u003Ct?\\\"borderColor\\\":\\\"borderColor0\\\"])||n.get([\\\"itemStyle\\\",0\u003Ct?\\\"color\\\":\\\"color0\\\"]),o=n.getModel(\\\"itemStyle\\\").getItemStyle($L);e.useStyle(o),e.style.fill=null,e.style.stroke=i}u(fP,pP=ry),fP.prototype.getShadowDim=function(){return\\\"open\\\"},fP.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},fP.type=\\\"series.candlestick\\\",fP.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"grid\\\"],fP.defaultOption={z:2,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:\\\"#eb5454\\\",color0:\\\"#47b262\\\",borderColor:\\\"#eb5454\\\",borderColor0:\\\"#47b262\\\",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:\\\"mod\\\",animationEasing:\\\"linear\\\",animationDuration:300};var pP,dP=fP;function fP(){var t=null!==pP&&pP.apply(this,arguments)||this;return t.type=fP.type,t.defaultValueDimensions=[{name:\\\"open\\\",defaultTooltip:!0},{name:\\\"close\\\",defaultTooltip:!0},{name:\\\"lowest\\\",defaultTooltip:!0},{name:\\\"highest\\\",defaultTooltip:!0}],t}function gP(t){t&&U(t.series)&<(t.series,function(t){R(t)&&\\\"k\\\"===t.type&&(t.type=\\\"candlestick\\\")})}ut(dP,hd,!0);var yP=[\\\"itemStyle\\\",\\\"borderColor\\\"],mP=[\\\"itemStyle\\\",\\\"borderColor0\\\"],vP=[\\\"itemStyle\\\",\\\"color\\\"],xP=[\\\"itemStyle\\\",\\\"color0\\\"],_P={seriesType:\\\"candlestick\\\",plan:yy(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),o=e.getItemLayout(n).sign,r=i.getItemStyle();r.fill=i.get(0\u003Co?vP:xP),r.stroke=i.get(0\u003Co?yP:mP)||r.fill,Z(e.ensureUniqueItemVisual(n,\\\"style\\\"),r)}}}}},bP={seriesType:\\\"candlestick\\\",plan:yy(),reset:function(t){var e,n,i,o,x=t.coordinateSystem,r=t.getData(),_=(n=r,s=\\\"category\\\"===(s=(e=t).getBaseAxis()).type?s.getBandWidth():(s=s.getExtent(),Math.abs(s[1]-s[0])/n.count()),i=F(P(e.get(\\\"barMaxWidth\\\"),s),s),o=F(P(e.get(\\\"barMinWidth\\\"),1),s),null!=(a=e.get(\\\"barWidth\\\"))?F(a,s):Math.max(Math.min(s/2,i),o)),a=[\\\"x\\\",\\\"y\\\"],b=r.getDimensionIndex(r.mapDimension(a[0])),s=Y(r.mapDimensionsAll(a[1]),r.getDimensionIndex,r),w=s[0],S=s[1],M=s[2],I=s[3];if(r.setLayout({candleWidth:_,isSimpleBox:_\u003C=1.3}),!(b\u003C0||s.length\u003C4))return{progress:t.pipelineContext.large?function(t,e){for(var n,i=m1(4*t.count),o=0,r=[],a=[],s=e.getStore();null!=(n=t.next());){var l=s.get(b,n),u=s.get(w,n),h=s.get(S,n),c=s.get(M,n),p=s.get(I,n);isNaN(l)||isNaN(c)||isNaN(p)?(i[o++]=NaN,o+=3):(i[o++]=wP(s,n,u,h,S),r[0]=l,r[1]=c,n=x.dataToPoint(r,null,a),i[o++]=n?n[0]:NaN,i[o++]=n?n[1]:NaN,r[1]=p,n=x.dataToPoint(r,null,a),i[o++]=n?n[1]:NaN)}e.setLayout(\\\"largePoints\\\",i)}:function(t,e){for(var n,i,o,r=e.getStore();null!=(n=t.next());){var a=r.get(b,n),s=r.get(w,n),l=r.get(S,n),u=r.get(M,n),h=r.get(I,n),c=Math.min(s,l),p=Math.max(s,l),c=y(c,a),p=y(p,a),d=y(u,a),f=y(h,a),g=[];m(g,p,0),m(g,c,1),g.push(v(f),v(p),v(d),v(c)),e.setItemLayout(n,{sign:wP(r,n,s,l,S),initBaseline:(l\u003Cs?p:c)[1],ends:g,brushRect:(i=h,d=f=void 0,f=y(u,o=a),d=y(i,o),f[0]-=_/2,d[0]-=_/2,{x:f[0],y:f[1],width:_,height:d[1]-f[1]})})}function y(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:x.dataToPoint(n)}function m(t,e,n){var i=e.slice(),o=e.slice();i[0]=lc(i[0]+_/2,1,!1),o[0]=lc(o[0]-_/2,1,!0),n?t.push(i,o):t.push(o,i)}function v(t){return t[0]=lc(t[0],1),t}}}}};function wP(t,e,n,i,o){return!(i\u003Cn)&&(n\u003Ci||!(0\u003Ce)||t.get(o,e-1)\u003C=i)?1:-1}function SP(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:\\\"stroke\\\"===e.brushType?n:null,fill:\\\"fill\\\"===e.brushType?n:null}})})}u(PP,TP=K),PP.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},PP.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;r\u003Ci;r++){var a=Sm(e,-1,-1,2,2,n),s=(a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5}),-r/i*t.period+t.effectOffset);a.animate(\\\"\\\",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(a)}SP(o,t)},PP.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=[\\\"symbolType\\\",\\\"period\\\",\\\"rippleScale\\\",\\\"rippleNumber\\\"],o=0;o\u003Ci.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}SP(n,t)},PP.prototype.highlight=function(){Rl(this)},PP.prototype.downplay=function(){Nl(this)},PP.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},PP.prototype.updateData=function(t,e){var n=this,i=t.hostModel,o=(this.childAt(0).updateData(t,e),this.childAt(1)),r=t.getItemModel(e),a=t.getItemVisual(e,\\\"symbol\\\"),s=Mm(t.getItemVisual(e,\\\"symbolSize\\\")),l=t.getItemVisual(e,\\\"style\\\"),u=l&&l.fill,l=r.getModel(\\\"emphasis\\\"),s=(o.setScale(s),o.traverse(function(t){t.setStyle(\\\"fill\\\",u)}),Im(t.getItemVisual(e,\\\"symbolOffset\\\"),s)),s=(s&&(o.x=s[0],o.y=s[1]),t.getItemVisual(e,\\\"symbolRotate\\\")),h=(o.rotation=(s||0)*Math.PI/180||0,{});h.showEffectOn=i.get(\\\"showEffectOn\\\"),h.rippleScale=r.get([\\\"rippleEffect\\\",\\\"scale\\\"]),h.brushType=r.get([\\\"rippleEffect\\\",\\\"brushType\\\"]),h.period=1e3*r.get([\\\"rippleEffect\\\",\\\"period\\\"]),h.effectOffset=e/t.count(),h.z=i.getShallow(\\\"z\\\")||0,h.zlevel=i.getShallow(\\\"zlevel\\\")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=r.get([\\\"rippleEffect\\\",\\\"color\\\"]),h.rippleNumber=r.get([\\\"rippleEffect\\\",\\\"number\\\"]),\\\"render\\\"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){\\\"emphasis\\\"===t?\\\"render\\\"!==h.showEffectOn&&n.startEffectAnimation(h):\\\"normal\\\"===t&&\\\"render\\\"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,Zl(this,l.get(\\\"focus\\\"),l.get(\\\"blurScope\\\"),l.get(\\\"disabled\\\"))},PP.prototype.fadeOut=function(t){t&&t()};var MP,IP,TP,CP=PP,DP=(u(LP,IP=xy),LP.prototype.init=function(){this._symbolDraw=new Nb(CP)},LP.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},LP.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get(\\\"clip\\\",!0)?e:null},LP.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=(this.group.dirty(),fw(\\\"\\\").reset(t,e,n));o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},LP.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=so(e.getRoamTransform()),this.group.decomposeTransform())},LP.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},LP.type=\\\"effectScatter\\\",LP),AP=(u(kP,MP=ry),kP.prototype.getInitialData=function(t,e){return jv(null,this,{useEncodeDefaulter:!0})},kP.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},kP.type=\\\"series.effectScatter\\\",kP.dependencies=[\\\"grid\\\",\\\"polar\\\"],kP.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,legendHoverLink:!0,effectType:\\\"ripple\\\",progressive:0,showEffectOn:\\\"render\\\",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:\\\"fill\\\",number:3},universalTransition:{divideShape:\\\"clone\\\"},symbolSize:10},kP);function kP(){var t=null!==MP&&MP.apply(this,arguments)||this;return t.type=kP.type,t.hasSymbolVisual=!0,t}function LP(){var t=null!==IP&&IP.apply(this,arguments)||this;return t.type=LP.type,t}function PP(t,e){var n=TP.call(this)||this,i=new Ab(t,e),o=new K;return n.add(i),n.add(o),n.updateData(t,e),n}u(QP,zP=K),QP.prototype.createLine=function(t,e,n){return new ID(t,e,n)},QP.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel(\\\"effect\\\"),i=n.get(\\\"symbolSize\\\"),o=n.get(\\\"symbol\\\"),r=(U(i)||(i=[i,i]),t.getItemVisual(e,\\\"style\\\")),r=n.get(\\\"color\\\")||r&&r.stroke,a=this.childAt(1);this._symbolType!==o&&(this.remove(a),(a=Sm(o,-.5,-.5,1,1,r)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle(\\\"shadowColor\\\",r),a.setStyle(n.getItemStyle([\\\"color\\\"])),a.scaleX=i[0],a.scaleY=i[1],a.setColor(r),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},QP.prototype._updateEffectAnimation=function(e,t,n){var i,o,r,a,s,l=this.childAt(1);l&&(s=e.getItemLayout(n),i=1e3*t.get(\\\"period\\\"),o=t.get(\\\"loop\\\"),r=t.get(\\\"constantSpeed\\\"),a=wt(t.get(\\\"delay\\\"),function(t){return t/e.count()*i/3}),l.ignore=!0,this._updateAnimationPoints(l,s),(i=0\u003Cr?this._getLineLength(l)/r*1e3:i)===this._period&&o===this._loop||(l.stopAnimation(),s=void 0,s=A(a)?a(n):a,0\u003Cl.__t&&(s=-i*l.__t),this._animateSymbol(l,i,s,o)),this._period=i,this._loop=o)},QP.prototype._animateSymbol=function(t,e,n,i){var o,r;0\u003Ce&&(t.__t=0,o=this,r=t.animate(\\\"\\\",i).when(e,{__t:1}).delay(n).during(function(){o._updateSymbolPosition(t)}),i||r.done(function(){o.remove(t)}),r.start())},QP.prototype._getLineLength=function(t){return $t(t.__p1,t.__cp1)+$t(t.__cp1,t.__p2)},QP.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},QP.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},QP.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,r=[t.x,t.y],a=r.slice(),s=yn,l=mn,s=(r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o),l(e[0],i[0],n[0],o)),i=l(e[1],i[1],n[1],o);t.rotation=-Math.atan2(i,s)-Math.PI/2,\\\"line\\\"!==this._symbolType&&\\\"rect\\\"!==this._symbolType&&\\\"roundRect\\\"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT\u003Ct.__t?(t.scaleY=1.05*$t(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*$t(e,r):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=r[0],t.y=r[1]},QP.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel(\\\"effect\\\");this._updateEffectAnimation(t,n,e)};var OP,RP,NP,EP,zP,VP=QP,BP=(u(JP,EP=K),JP.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),i=new rh({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},JP.prototype.updateData=function(t,e,n){var i=t.hostModel;k(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},JP.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),r=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;n&&!t.hasItemOption||(r=(o=o.getModel(\\\"emphasis\\\")).getModel(\\\"lineStyle\\\").getLineStyle(),l=o.get(\\\"disabled\\\"),a=o.get(\\\"focus\\\"),s=o.get(\\\"blurScope\\\")),i.useStyle(t.getItemVisual(e,\\\"style\\\")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(\\\"emphasis\\\").style=r,Zl(this,a,s,l)},JP.prototype.updateLayout=function(t,e){this.childAt(0).setShape(\\\"points\\\",t.getItemLayout(e))},JP),FP=(u($P,NP=VP),$P.prototype.createLine=function(t,e,n){return new BP(t,e,n)},$P.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o\u003Ce.length;o++){var r=e[o-1],a=e[o];i+=$t(r,a),n.push(i)}if(0!==i){for(o=0;o\u003Cn.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},$P.prototype._getLineLength=function(){return this._length},$P.prototype._updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r,a=this._lastFrame;if(e\u003Cthis._lastFramePercent){for(r=Math.min(a+1,o-1);0\u003C=r&&!(i[r]\u003C=e);r--);r=Math.min(r,o-2)}else{for(r=a;r\u003Co&&!(i[r]>e);r++);r=Math.min(r-1,o-2)}var a=(e-i[r])/(i[r+1]-i[r]),s=n[r],n=n[r+1],a=(t.x=s[0]*(1-a)+a*n[0],t.y=s[1]*(1-a)+a*n[1],n[0]-s[0]),n=n[1]-s[1];t.rotation=-Math.atan2(n,a)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},$P),GP=function(){this.polyline=!1,this.curveness=0,this.segs=[]},WP=(u(KP,RP=Q),KP.prototype.reset=function(){this.notClear=!1,this._off=0},KP.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},KP.prototype.getDefaultShape=function(){return new GP},KP.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n\u003Ci.length;){var r=i[n++];if(0\u003Cr){t.moveTo(i[n++],i[n++]);for(var a=1;a\u003Cr;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n\u003Ci.length;){var s=i[n++],l=i[n++],u=i[n++],h=i[n++];t.moveTo(s,l),0\u003Co?t.quadraticCurveTo((s+u)/2-(l-h)*o,(l+h)/2-(u-s)*o,u,h):t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},KP.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s\u003Ci.length;){var l=i[s++];if(0\u003Cl)for(var u=i[s++],h=i[s++],c=1;c\u003Cl;c++)if(us(u,h,p=i[s++],d=i[s++],r,t,e))return a;a++}else for(s=a=0;s\u003Ci.length;){var u=i[s++],h=i[s++],p=i[s++],d=i[s++];if(0\u003Co){if(hs(u,h,(u+p)/2-(h-d)*o,(h+d)/2-(p-u)*o,p,d,r,t,e))return a}else if(us(u,h,p,d,r,t,e))return a;a++}return-1},KP.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?0\u003C=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},KP.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,o=-1/0,r=-1/0,a=0;a\u003Ce.length;)var s=e[a++],l=e[a++],n=Math.min(s,n),o=Math.max(s,o),i=Math.min(l,i),r=Math.max(l,r);t=this._rect=new B(n,i,o,r)}return t},KP),HP=(qP.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout(\\\"linesPoints\\\")}),this._setCommon(e,t)},qP.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},qP.prototype.incrementalUpdate=function(t,e){var n,i,o=this._newAdded[0],r=e.getLayout(\\\"linesPoints\\\"),a=o&&o.shape.segs;a&&a.length\u003C2e4?(n=a.length,(i=new Float32Array(n+r.length)).set(a),i.set(r,n),o.setShape({segs:i})):(this._newAdded=[],(a=this._create()).incremental=!0,a.setShape({segs:r}),this._setCommon(a,e),a.__startIndex=t.start)},qP.prototype.remove=function(){this._clear()},qP.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},qP.prototype._create=function(){var t=new WP({cursor:\\\"default\\\"});return this._newAdded.push(t),this.group.add(t),t},qP.prototype._setCommon=function(n,t,e){var i=t.hostModel,o=(n.setShape({polyline:i.get(\\\"polyline\\\"),curveness:i.get([\\\"lineStyle\\\",\\\"curveness\\\"])}),n.useStyle(i.getModel(\\\"lineStyle\\\").getLineStyle()),n.style.strokeNoScale=!0,t.getVisual(\\\"style\\\")),r=(o&&o.stroke&&n.setStyle(\\\"stroke\\\",o.stroke),n.setStyle(\\\"fill\\\",null),$(n));r.seriesIndex=i.seriesIndex,n.on(\\\"mousemove\\\",function(t){r.dataIndex=null;var e=n.hoverDataIdx;0\u003Ce&&(r.dataIndex=e+n.__startIndex)})},qP.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},qP),YP={seriesType:\\\"lines\\\",plan:yy(),reset:function(f){var g,y,m=f.coordinateSystem;if(m)return g=f.get(\\\"polyline\\\"),y=f.pipelineContext.large,{progress:function(t,e){var n=[];if(y){var i=void 0,o=t.end-t.start;if(g){for(var r=0,a=t.start;a\u003Ct.end;a++)r+=f.getLineCoordsCount(a);i=new Float32Array(o+2*r)}else i=new Float32Array(4*o);for(var s=0,l=[],a=t.start;a\u003Ct.end;a++){var u=f.getLineCoords(a,n);g&&(i[s++]=u);for(var h=0;h\u003Cu;h++)l=m.dataToPoint(n[h],!1,l),i[s++]=l[0],i[s++]=l[1]}e.setLayout(\\\"linesPoints\\\",i)}else for(a=t.start;a\u003Ct.end;a++){var c=e.getItemModel(a),p=(u=f.getLineCoords(a,n),[]);if(g)for(var d=0;d\u003Cu;d++)p.push(m.dataToPoint(n[d]));else{p[0]=m.dataToPoint(n[0]),p[1]=m.dataToPoint(n[1]);c=c.get([\\\"lineStyle\\\",\\\"curveness\\\"]);+c&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*c,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*c])}e.setItemLayout(a,p)}}}}},UP=(u(jP,OP=xy),jP.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),r=t.get(\\\"zlevel\\\"),a=t.get([\\\"effect\\\",\\\"trailLength\\\"]),s=n.getZr(),l=\\\"svg\\\"===s.painter.getType(),l=(l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&0\u003Ca&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i),t.get(\\\"clip\\\",!0)&&ew(t.coordinateSystem,!1,t));l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},jP.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},jP.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},jP.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},jP.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};o=YP.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},jP.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get(\\\"polyline\\\"),r=e.pipelineContext.large;return n&&i===this._hasEffet&&o===this._isPolyline&&r===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=r?new HP:new TD(o?i?FP:BP:i?VP:ID),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=r),this.group.add(n.group),n},jP.prototype._showEffect=function(t){return!!t.get([\\\"effect\\\",\\\"show\\\"])},jP.prototype._clearLayer=function(t){var e=t.getZr();\\\"svg\\\"!==e.painter.getType()&&null!=this._lastZlevel&&e.painter.getLayer(this._lastZlevel).clear(!0)},jP.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},jP.prototype.dispose=function(t,e){this.remove(t,e)},jP.type=\\\"lines\\\",jP),XP=\\\"undefined\\\"==typeof Uint32Array?Array:Uint32Array,ZP=\\\"undefined\\\"==typeof Float64Array?Array:Float64Array;function jP(){var t=null!==OP&&OP.apply(this,arguments)||this;return t.type=jP.type,t}function qP(){this.group=new K}function KP(t){var e=RP.call(this,t)||this;return e._off=0,e.hoverDataIdx=-1,e}function $P(){var t=null!==NP&&NP.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}function JP(t,e,n){var i=EP.call(this)||this;return i._createPolyline(t,e,n),i}function QP(t,e,n){var i=zP.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}function tO(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Y(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),rt([e,t[0],t[1]])}))}u(iO,eO=ry),iO.prototype.init=function(t){t.data=t.data||[],tO(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),eO.prototype.init.apply(this,arguments)},iO.prototype.mergeOption=function(t){var e;tO(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords)&&(t.data=new Float32Array(e.count)),eO.prototype.mergeOption.apply(this,arguments)},iO.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Ot(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Ot(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},iO.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow(\\\"coords\\\")},iO.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},iO.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o\u003Ci;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}for(var r=this._getCoordsFromItemModel(t),o=0;o\u003Cr.length;o++)e[o]=e[o]||[],e[o][0]=r[o][0],e[o][1]=r[o][1];return r.length},iO.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),j(t[0])){for(var n=t.length,i=new XP(n),o=new ZP(n),r=0,a=0,s=0,l=0;l\u003Cn;){s++;var u=t[l++];i[a++]=r+e,i[a++]=u;for(var h=0;h\u003Cu;h++){var c=t[l++],p=t[l++];o[r++]=c,o[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},iO.prototype.getInitialData=function(t,e){var r=new Fv([\\\"value\\\"],this);return r.hasItemOption=!1,r.initData(t.data,[],function(t,e,n,i){if(t instanceof Array)return NaN;r.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0}),r},iO.prototype.formatTooltip=function(t,e,n){var i,o=this.getData().getItemModel(t),r=o.get(\\\"name\\\");return r||(r=o.get(\\\"fromName\\\"),o=o.get(\\\"toName\\\"),i=[],null!=r&&i.push(r),null!=o&&i.push(o),Hg(\\\"nameValue\\\",{name:i.join(\\\" > \\\")}))},iO.prototype.preventIncremental=function(){return!!this.get([\\\"effect\\\",\\\"show\\\"])},iO.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get(\\\"progressive\\\"):t},iO.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get(\\\"progressiveThreshold\\\"):t},iO.prototype.getZLevelKey=function(){var t=this.getModel(\\\"effect\\\"),e=t.get(\\\"trailLength\\\");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get(\\\"show\\\")&&0\u003Ce?e+\\\"\\\":\\\"\\\"},iO.type=\\\"series.lines\\\",iO.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"calendar\\\"],iO.defaultOption={coordinateSystem:\\\"geo\\\",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[\\\"none\\\",\\\"none\\\"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:\\\"circle\\\",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:\\\"end\\\"},lineStyle:{opacity:.5}};var eO,nO=iO;function iO(){var t=null!==eO&&eO.apply(this,arguments)||this;return t.type=iO.type,t.visualStyleAccessPath=\\\"lineStyle\\\",t.visualDrawType=\\\"stroke\\\",t}function oO(t){return t=t instanceof Array?t:[t,t]}var rO={seriesType:\\\"lines\\\",reset:function(t){var e=oO(t.get(\\\"symbol\\\")),n=oO(t.get(\\\"symbolSize\\\")),i=t.getData();return i.setVisual(\\\"fromSymbol\\\",e&&e[0]),i.setVisual(\\\"toSymbol\\\",e&&e[1]),i.setVisual(\\\"fromSymbolSize\\\",n&&n[0]),i.setVisual(\\\"toSymbolSize\\\",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=oO(n.getShallow(\\\"symbol\\\",!0)),n=oO(n.getShallow(\\\"symbolSize\\\",!0));i[0]&&t.setItemVisual(e,\\\"fromSymbol\\\",i[0]),i[1]&&t.setItemVisual(e,\\\"toSymbol\\\",i[1]),n[0]&&t.setItemVisual(e,\\\"fromSymbolSize\\\",n[0]),n[1]&&t.setItemVisual(e,\\\"toSymbolSize\\\",n[1])}:null}}},aO=(sO.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,\\\"inRange\\\"),l=this._getGradient(o,\\\"outOfRange\\\"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext(\\\"2d\\\"),p=t.length;h.width=e,h.height=n;for(var d=0;d\u003Cp;++d){var f=t[d],g=f[0],y=f[1],m=i(f[2]);c.globalAlpha=m,c.drawImage(a,g-u,y-u)}if(h.width&&h.height){for(var v=c.getImageData(0,0,h.width,h.height),x=v.data,_=0,b=x.length,w=this.minOpacity,S=this.maxOpacity-w;_\u003Cb;){var M,m=x[_+3]/256,I=4*Math.floor(255*m);0\u003Cm?(M=r(m)?s:l,0\u003Cm&&(m=m*S+w),x[_++]=M[I],x[_++]=M[1+I],x[_++]=M[2+I],x[_++]=M[3+I]*m*256):_+=4}c.putImageData(v,0,0)}return h},sO.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=J.createCanvas()),e=this.pointSize+this.blurSize,n=2*e,i=(t.width=n,t.height=n,t.getContext(\\\"2d\\\"));return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=\\\"#000\\\",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},sO.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a\u003C256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i},sO);function sO(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=J.createCanvas();this.canvas=t}function lO(t){var e=t.dimensions;return\\\"lng\\\"===e[0]&&\\\"lat\\\"===e[1]}u(fO,hO=xy),fO.prototype.render=function(n,t,e){t.eachComponent(\\\"visualMap\\\",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,o=n.coordinateSystem;\\\"cartesian2d\\\"===o.type||\\\"calendar\\\"===o.type?this._renderOnCartesianAndCalendar(n,e,0,n.getData().count()):lO(o)&&this._renderOnGeo(o,n,i,e)},fO.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},fO.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(lO(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},fO.prototype.eachRendered=function(t){bc(this._progressiveEls||this.group,t)},fO.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var r,a,s,l,u,h=t.coordinateSystem,c=nw(h,\\\"cartesian2d\\\");c&&(x=h.getAxis(\\\"x\\\"),r=h.getAxis(\\\"y\\\"),a=x.getBandWidth()+.5,s=r.getBandWidth()+.5,l=x.scale.getExtent(),u=r.scale.getExtent());for(var p=this.group,d=t.getData(),f=t.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]).getItemStyle(),g=t.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),y=t.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),m=t.get([\\\"itemStyle\\\",\\\"borderRadius\\\"]),v=Cc(t),x=t.getModel(\\\"emphasis\\\"),_=x.get(\\\"focus\\\"),b=x.get(\\\"blurScope\\\"),w=x.get(\\\"disabled\\\"),S=c?[d.mapDimension(\\\"x\\\"),d.mapDimension(\\\"y\\\"),d.mapDimension(\\\"value\\\")]:[d.mapDimension(\\\"time\\\"),d.mapDimension(\\\"value\\\")],M=n;M\u003Ci;M++){var I=void 0,T=d.getItemVisual(M,\\\"style\\\");if(c){var C=d.get(S[0],M),D=d.get(S[1],M);if(isNaN(d.get(S[2],M))||C\u003Cl[0]||C>l[1]||D\u003Cu[0]||D>u[1])continue;var C=h.dataToPoint([C,D]),I=new E({shape:{x:C[0]-a/2,y:C[1]-s/2,width:a,height:s},style:T})}else{if(isNaN(d.get(S[1],M)))continue;I=new E({z2:1,shape:h.dataToRect([d.get(S[0],M)]).contentShape,style:T})}d.hasItemOption&&(f=(C=(D=d.getItemModel(M)).getModel(\\\"emphasis\\\")).getModel(\\\"itemStyle\\\").getItemStyle(),g=D.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),y=D.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),m=D.get([\\\"itemStyle\\\",\\\"borderRadius\\\"]),_=C.get(\\\"focus\\\"),b=C.get(\\\"blurScope\\\"),w=C.get(\\\"disabled\\\"),v=Cc(D)),I.shape.r=m;var A=t.getRawValue(M),k=\\\"-\\\";A&&null!=A[2]&&(k=A[2]+\\\"\\\"),Tc(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:T.opacity,defaultText:k}),I.ensureState(\\\"emphasis\\\").style=f,I.ensureState(\\\"blur\\\").style=g,I.ensureState(\\\"select\\\").style=y,Zl(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),p.add(I),d.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},fO.prototype._renderOnGeo=function(o,t,e,n){var i,r,a,s,l,u,h,c=e.targetVisuals.inRange,p=e.targetVisuals.outOfRange,d=t.getData(),f=this._hmLayer||this._hmLayer||new aO,g=(f.blurSize=t.get(\\\"blurSize\\\"),f.pointSize=t.get(\\\"pointSize\\\"),f.minOpacity=t.get(\\\"minOpacity\\\"),f.maxOpacity=t.get(\\\"maxOpacity\\\"),o.getViewRect().clone()),y=o.getRoamTransform(),m=(g.applyTransform(y),Math.max(g.x,0)),v=Math.max(g.y,0),y=Math.min(g.width+g.x,n.getWidth()),g=Math.min(g.height+g.y,n.getHeight()),y=y-m,g=g-v,x=[d.mapDimension(\\\"lng\\\"),d.mapDimension(\\\"lat\\\"),d.mapDimension(\\\"value\\\")],x=d.mapArray(x,function(t,e,n){var i=o.dataToPoint([t,e]);return i[0]-=m,i[1]-=v,i.push(n),i}),d=e.getExtent(),_=\\\"visualMap.continuous\\\"===e.type?(h=e.option.range,_=d[1]-d[0],h=[(h[0]-d[0])/_,(h[1]-d[0])/_],function(t){return h[0]\u003C=t&&t\u003C=h[1]}):(i=d,r=e.getPieceList(),a=e.option.selected,s=i[1]-i[0],l=(r=Y(r,function(t){return{interval:[(t.interval[0]-i[0])/s,(t.interval[1]-i[0])/s]}})).length,u=0,function(t){for(var e,n=u;n\u003Cl;n++)if((e=r[n].interval)[0]\u003C=t&&t\u003C=e[1]){u=n;break}if(n===l)for(n=u-1;0\u003C=n;n--)if((e=r[n].interval)[0]\u003C=t&&t\u003C=e[1]){u=n;break}return 0\u003C=n&&n\u003Cl&&a[n]}),d=(f.update(x,y,g,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:p.color.getColorMapper()},_),new Ps({style:{width:y,height:g,x:m,y:v,image:f.canvas},silent:!0}));this.group.add(d)},fO.type=\\\"heatmap\\\";var uO,hO,cO=fO,pO=(u(dO,uO=ry),dO.prototype.getInitialData=function(t,e){return jv(null,this,{generateCoord:\\\"value\\\"})},dO.prototype.preventIncremental=function(){var t=qd.get(this.get(\\\"coordinateSystem\\\"));if(t&&t.dimensions)return\\\"lng\\\"===t.dimensions[0]&&\\\"lat\\\"===t.dimensions[1]},dO.type=\\\"series.heatmap\\\",dO.dependencies=[\\\"grid\\\",\\\"geo\\\",\\\"calendar\\\"],dO.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:\\\"#212121\\\"}}},dO);function dO(){var t=null!==uO&&uO.apply(this,arguments)||this;return t.type=dO.type,t}function fO(){var t=null!==hO&&hO.apply(this,arguments)||this;return t.type=fO.type,t}var gO,yO=[\\\"itemStyle\\\",\\\"borderWidth\\\"],mO=[{xy:\\\"x\\\",wh:\\\"width\\\",index:0,posDesc:[\\\"left\\\",\\\"right\\\"]},{xy:\\\"y\\\",wh:\\\"height\\\",index:1,posDesc:[\\\"top\\\",\\\"bottom\\\"]}],vO=new Tu,xO=(u(_O,gO=xy),_O.prototype.render=function(t,e,n){var l=this.group,u=t.getData(),h=this._data,i=t.coordinateSystem,o=i.getBaseAxis().isHorizontal(),r=i.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:i,coordSysExtent:[[r.x,r.x+r.width],[r.y,r.y+r.height]],isHorizontal:o,valueDim:mO[+o],categoryDim:mO[1-+o]};return u.diff(h).add(function(t){var e,n;u.hasValue(t)&&(e=DO(u,t),e=bO(u,t,e,c),n=LO(u,c,e),u.setItemGraphicEl(t,n),l.add(n),EO(n,c,e))}).update(function(t,e){var n,i,o,r,a,s=h.getItemGraphicEl(e);u.hasValue(t)?(n=DO(u,t),n=bO(u,t,n,c),r=OO(u,n),s&&r!==s.__pictorialShapeStr&&(l.remove(s),u.setItemGraphicEl(t,null),s=null),s?(e=s,i=c,r=(o=n).animationModel,a=o.dataIndex,k(e.__pictorialBundle,{x:o.bundlePosition[0],y:o.bundlePosition[1]},r,a),(o.symbolRepeat?MO:IO)(e,i,o,!0),TO(e,o,!0),CO(e,i,o,!0)):s=LO(u,c,n,!0),u.setItemGraphicEl(t,s),s.__pictorialSymbolMeta=n,l.add(s),EO(s,c,n)):l.remove(s)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&PO(h,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=u,this.group},_O.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get(\\\"animation\\\")?i&&i.eachItemGraphicEl(function(t){PO(i,$(t).dataIndex,e,t)}):n.removeAll()},_O.type=\\\"pictorialBar\\\",_O);function _O(){var t=null!==gO&&gO.apply(this,arguments)||this;return t.type=_O.type,t}function bO(t,e,n,i){var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v=t.getItemLayout(e),x=n.get(\\\"symbolRepeat\\\"),_=n.get(\\\"symbolClip\\\"),b=n.get(\\\"symbolPosition\\\")||\\\"start\\\",w=(n.get(\\\"symbolRotate\\\")||0)*Math.PI/180||0,S=n.get(\\\"symbolPatternSize\\\")||2,M=n.isAnimationEnabled(),_={dataIndex:e,layout:v,itemModel:n,symbolType:t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\",style:t.getItemVisual(e,\\\"style\\\"),symbolClip:_,symbolRepeat:x,symbolRepeatDirection:n.get(\\\"symbolRepeatDirection\\\"),symbolPatternSize:S,rotation:w,animationModel:M?n:null,hoverScale:M&&n.get([\\\"emphasis\\\",\\\"scale\\\"]),z2:n.getShallow(\\\"z\\\",!0)||0},I=(l=x,s=v,u=_,M=(a=i).valueDim,h=n.get(\\\"symbolBoundingData\\\"),d=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),p=d.toGlobalCoord(d.dataToCoord(0)),c=1-(s[M.wh]\u003C=0),I=U(h)?((I=[wO(d,h[0])-p,wO(d,h[1])-p])[1]\u003CI[0]&&I.reverse(),I[c]):null!=h?wO(d,h)-p:l?a.coordSysExtent[M.index][c]-p:s[M.wh],u.boundingLength=I,l&&(u.repeatCutLength=s[M.wh]),u.pxSign=0\u003CI?1:-1,a=t,l=e,s=x,u=_.boundingLength,t=_.pxSign,e=S,o=_,d=(r=i).valueDim,h=r.categoryDim,c=Math.abs(v[h.wh]),(p=U(p=a.getItemVisual(l,\\\"symbolSize\\\"))?p.slice():null==p?[\\\"100%\\\",\\\"100%\\\"]:[p,p])[h.index]=F(p[h.index],c),p[d.index]=F(p[d.index],s?c:Math.abs(u)),o.symbolSize=p,(o.symbolScale=[p[0]/e,p[1]/e])[d.index]*=(r.isHorizontal?-1:1)*t,l=_.symbolScale,a=w,s=i,u=_,(M=n.get(yO)||0)&&(vO.attr({scaleX:l[0],scaleY:l[1],rotation:a}),vO.updateTransform(),M=(M/=vO.getLineScale())*l[s.valueDim.index]),u.valueLineWidth=M||0,_.symbolSize),S=Im(n.get(\\\"symbolOffset\\\"),I);return o=n,e=I,r=v,t=x,a=S,s=b,l=_.boundingLength,u=_.repeatCutLength,n=_,h=(i=i).categoryDim,c=i.valueDim,p=n.pxSign,d=Math.max(e[c.index]+_.valueLineWidth,0),w=d,t&&(M=Math.abs(l),f=!1,(v=wt(o.get(\\\"symbolMargin\\\"),\\\"15%\\\")+\\\"\\\").lastIndexOf(\\\"!\\\")===v.length-1&&(f=!0,v=v.slice(0,v.length-1)),v=F(v,e[c.index]),y=Math.max(d+2*v,0),m=f?0:2*v,y=d+2*(v=(M-(M=(g=br(t))?t:zO((M+m)/y))*d)/2/(f?M:Math.max(M-1,1))),m=f?0:2*v,w=(M=g||\\\"fixed\\\"===t?M:u?zO((Math.abs(u)+m)/y):0)*y-m,n.repeatTimes=M,n.symbolMargin=v),d=p*(w/2),(f=n.pathPosition=[])[h.index]=r[h.wh]/2,f[c.index]=\\\"start\\\"===s?d:\\\"end\\\"===s?l-d:l/2,a&&(f[0]+=a[0],f[1]+=a[1]),(g=n.bundlePosition=[])[h.index]=r[h.xy],g[c.index]=r[c.xy],(y=n.barRectShape=Z({},r))[c.wh]=p*Math.max(Math.abs(r[c.wh]),Math.abs(f[c.index]+d)),y[h.wh]=r[h.wh],(m=n.clipShape={})[h.xy]=-r[h.xy],m[h.wh]=i.ecSize[h.wh],m[c.xy]=0,m[c.wh]=r[c.wh],_}function wO(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function SO(t){var e=t.symbolPatternSize,e=Sm(t.symbolType,-e/2,-e/2,e,e);return e.attr({culling:!0}),\\\"image\\\"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function MO(t,e,o,n){var i=t.__pictorialBundle,r=o.symbolSize,a=o.valueLineWidth,s=o.pathPosition,l=e.valueDim,u=o.repeatTimes||0,h=0,c=r[e.valueDim.index]+a+2*o.symbolMargin;for(RO(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h\u003Cu?NO(t,null,f(h),o,n):NO(t,null,{scaleX:0,scaleY:0},o,n,function(){i.remove(t)}),h++});h\u003Cu;h++){var p=SO(o),d=(p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,i.add(p),f(h));NO(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},o,n)}function f(t){var e=s.slice(),n=o.pxSign,i=t;return(\\\"start\\\"===o.symbolRepeatDirection?0\u003Cn:n\u003C0)&&(i=u-1-t),e[l.index]=c*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function IO(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?NO(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=t.__pictorialMainPath=SO(n),o.add(r),NO(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function TO(t,e,n){var i=Z({},e.barRectShape),o=t.__pictorialBarRect;o?NO(o,null,{shape:i},e,n):((o=t.__pictorialBarRect=new E({z2:2,shape:i,silent:!0,style:{stroke:\\\"transparent\\\",fill:\\\"transparent\\\",lineWidth:0}})).disableMorphing=!0,t.add(o))}function CO(t,e,n,i){var o,r,a,s,l;n.symbolClip&&(o=t.__pictorialClipPath,l=Z({},n.clipShape),r=e.valueDim,a=n.animationModel,s=n.dataIndex,o?k(o,{shape:l},a,s):(l[r.wh]=0,o=new E({shape:l}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o,(l={})[r.wh]=n.clipShape[r.wh],wc[i?\\\"updateProps\\\":\\\"initProps\\\"](o,{shape:l},a,s)))}function DO(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=AO,n.isAnimationEnabled=kO,n}function AO(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function kO(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(\\\"animation\\\")}function LO(t,e,n,i){var o=new K,r=new K;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?MO(o,e,n):IO(o,0,n),TO(o,n,i),CO(o,e,n,i),o.__pictorialShapeStr=OO(t,n),o.__pictorialSymbolMeta=n,o}function PO(t,e,n,i){var o=i.__pictorialBarRect,r=(o&&o.removeTextContent(),[]);RO(i,function(t){r.push(t)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),lt(r,function(t){Xh(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function OO(t,e){return[t.getItemVisual(e.dataIndex,\\\"symbol\\\")||\\\"none\\\",!!e.symbolRepeat,!!e.symbolClip].join(\\\":\\\")}function RO(e,n,i){lt(e.__pictorialBundle.children(),function(t){t!==e.__pictorialBarRect&&n.call(i,t)})}function NO(t,e,n,i,o,r){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&wc[o?\\\"updateProps\\\":\\\"initProps\\\"](t,n,i.animationModel,i.dataIndex,r)}function EO(t,e,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel(\\\"emphasis\\\"),a=r.getModel(\\\"itemStyle\\\").getItemStyle(),s=o.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),l=o.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),u=o.getShallow(\\\"cursor\\\"),h=r.get(\\\"focus\\\"),c=r.get(\\\"blurScope\\\"),p=r.get(\\\"scale\\\"),d=(RO(t,function(t){t instanceof Ps?(e=t.style,t.useStyle(Z({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))):t.useStyle(n.style);var e=t.ensureState(\\\"emphasis\\\");e.style=a,p&&(e.scaleX=1.1*t.scaleX,e.scaleY=1.1*t.scaleY),t.ensureState(\\\"blur\\\").style=s,t.ensureState(\\\"select\\\").style=l,u&&(t.cursor=u),t.z2=n.z2}),e.valueDim.posDesc[+(0\u003Cn.boundingLength)]);Tc(t.__pictorialBarRect,Cc(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Tb(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),Zl(t,h,c,r.get(\\\"disabled\\\"))}function zO(t){var e=Math.round(t);return Math.abs(t-e)\u003C1e-4?e:Math.ceil(t)}u(FO,VO=ym),FO.prototype.getInitialData=function(t){return t.stack=null,VO.prototype.getInitialData.apply(this,arguments)},FO.type=\\\"series.pictorialBar\\\",FO.dependencies=[\\\"grid\\\"],FO.defaultOption=np(ym.defaultOption,{symbol:\\\"circle\\\",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:\\\"end\\\",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:\\\"-100%\\\",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:\\\"#212121\\\"}}});var VO,BO=FO;function FO(){var t=null!==VO&&VO.apply(this,arguments)||this;return t.type=FO.type,t.hasSymbolVisual=!0,t.defaultSymbol=\\\"roundRect\\\",t}u(HO,GO=xy),HO.prototype.render=function(x,t,e){var _=x.getData(),b=this,w=this.group,S=x.getLayerSeries(),n=_.getLayout(\\\"layoutInfo\\\"),i=n.rect,n=n.boundaryGap;function o(t){return t.name}w.x=0,w.y=i.y+n[0];var i=new fv(this._layersSeries||[],S,o,o),M=[];function r(t,e,n){var i,o=b._layers;if(\\\"remove\\\"!==t){for(var r,a=[],s=[],l=S[e].indices,u=0;u\u003Cl.length;u++){var h=_.getItemLayout(l[u]),c=h.x,p=h.y0,h=h.y;a.push(c,p),s.push(c,p+h),r=_.getItemVisual(l[u],\\\"style\\\")}var d,f,g=_.getItemLayout(l[0]),y=x.getModel(\\\"label\\\").get(\\\"margin\\\"),m=x.getModel(\\\"emphasis\\\"),v=(\\\"add\\\"===t?(d=M[e]=new K,f=new qb({shape:{points:a,stackedOnPoints:s,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),d.add(f),w.add(d),x.isAnimationEnabled()&&f.setClipPath((t=f.getBoundingRect(),i=x,Yh(v=new E({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}}),{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},i,function(){f.removeClipPath()}),v))):(d=o[n],f=d.childAt(0),w.add(d),M[e]=d,k(f,{shape:{points:a,stackedOnPoints:s}},x),qh(f)),Tc(f,Cc(x),{labelDataIndex:l[u-1],defaultText:_.getName(l[u-1]),inheritColor:r.fill},{normal:{verticalAlign:\\\"middle\\\"}}),f.setTextConfig({position:null,local:!0}),f.getTextContent());v&&(v.x=g.x-y,v.y=g.y0+g.y/2),f.useStyle(r),_.setItemGraphicEl(e,f),$l(f,x),Zl(f,m.get(\\\"focus\\\"),m.get(\\\"blurScope\\\"),m.get(\\\"disabled\\\"))}else w.remove(o[e])}i.add(I(r,this,\\\"add\\\")).update(I(r,this,\\\"update\\\")).remove(I(r,this,\\\"remove\\\")).execute(),this._layersSeries=S,this._layers=M},HO.type=\\\"themeRiver\\\";var GO,WO=HO;function HO(){var t=null!==GO&&GO.apply(this,arguments)||this;return t.type=HO.type,t._layers=[],t}u(XO,YO=ry),XO.prototype.init=function(t){YO.prototype.init.apply(this,arguments),this.legendVisualProvider=new mS(I(this.getData,this),I(this.getRawData,this))},XO.prototype.fixData=function(t){var e=t.length,n={},i=Xr(t,function(t){return n.hasOwnProperty(t[0]+\\\"\\\")||(n[t[0]+\\\"\\\"]=-1),t[2]}),o=[];i.buckets.each(function(t,e){o.push({name:e,dataList:t})});for(var r=o.length,a=0;a\u003Cr;++a){for(var s=o[a].name,l=0;l\u003Co[a].dataList.length;++l){var u=o[a].dataList[l][0]+\\\"\\\";n[u]=a}for(u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},XO.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents(\\\"singleAxis\\\",Wr).models[0].get(\\\"type\\\"),i=pt(t.data,function(t){return void 0!==t[2]}),o=this.fixData(i||[]),r=[],a=this.nameMap=N(),s=0,l=0;l\u003Co.length;++l)r.push(o[l][2]),a.get(o[l][2])||(a.set(o[l][2],s),s++);i=Gv(o,{coordDimensions:[\\\"single\\\"],dimensionsDefine:[{name:\\\"time\\\",type:xv(n)},{name:\\\"value\\\",type:\\\"float\\\"},{name:\\\"name\\\",type:\\\"ordinal\\\"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,n=new Fv(i,this);return n.initData(o),n},XO.prototype.getLayerSeries=function(){for(var n=this.getData(),t=n.count(),e=[],i=0;i\u003Ct;++i)e[i]=i;var o=n.mapDimension(\\\"single\\\"),r=Xr(e,function(t){return n.get(\\\"name\\\",t)}),a=[];return r.buckets.each(function(t,e){t.sort(function(t,e){return n.get(o,t)-n.get(o,e)}),a.push({name:e,indices:t})}),a},XO.prototype.getAxisTooltipData=function(t,e,n){U(t)||(t=t?[t]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,l=0;l\u003Cs;++l){for(var u=Number.MAX_VALUE,h=-1,c=r[l].indices.length,p=0;p\u003Cc;++p){var d=o.get(t[0],r[l].indices[p]),f=Math.abs(d-e);f\u003C=u&&(i=d,u=f,h=r[l].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},XO.prototype.formatTooltip=function(t,e,n){var i=this.getData();return Hg(\\\"nameValue\\\",{name:i.getName(t),value:i.get(i.mapDimension(\\\"value\\\"),t)})},XO.type=\\\"series.themeRiver\\\",XO.dependencies=[\\\"singleAxis\\\"],XO.defaultOption={z:2,colorBy:\\\"data\\\",coordinateSystem:\\\"singleAxis\\\",boundaryGap:[\\\"10%\\\",\\\"10%\\\"],singleAxisIndex:0,animationEasing:\\\"linear\\\",label:{margin:4,show:!0,position:\\\"left\\\",fontSize:11},emphasis:{label:{show:!0}}};var YO,UO=XO;function XO(){var t=null!==YO&&YO.apply(this,arguments)||this;return t.type=XO.type,t}function ZO(t,e){t.eachSeriesByType(\\\"themeRiver\\\",function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect(),r=(i.rect=o,t.get(\\\"boundaryGap\\\")),n=n.getAxis();i.boundaryGap=r,\\\"horizontal\\\"===n.orient?(r[0]=F(r[0],o.height),r[1]=F(r[1],o.height),jO(e,t,o.height-r[0]-r[1])):(r[0]=F(r[0],o.width),r[1]=F(r[1],o.width),jO(e,t,o.width-r[0]-r[1])),e.setLayout(\\\"layoutInfo\\\",i)})}function jO(n,t,e){if(n.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=n.mapDimension(\\\"single\\\"),s=n.mapDimension(\\\"value\\\"),l=Y(r,function(t){return Y(t.indices,function(t){var e=o.dataToPoint(n.get(a,t));return e[1]=n.get(s,t),e})}),u=function(t){for(var e=t.length,n=t[0].length,i=[],o=[],r=0,a=0;a\u003Cn;++a){for(var s=0,l=0;l\u003Ce;++l)s+=t[l][a][1];r\u003Cs&&(r=s),i.push(s)}for(var u=0;u\u003Cn;++u)o[u]=(r-i[u])/2;for(var r=0,h=0;h\u003Cn;++h){var c=i[h]+o[h];r\u003Cc&&(r=c)}return{y0:o,max:r}}(l),h=u.y0,c=e/u.max,p=r.length,d=r[0].indices.length,f=0;f\u003Cd;++f){i=h[f]*c,n.setItemLayout(r[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*c});for(var g=1;g\u003Cp;++g)i+=l[g-1][f][1]*c,n.setItemLayout(r[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*c})}}u(QO,qO=Xu),QO.prototype.updateData=function(t,e,n,i,o){(this.node=e).piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this,a=($(r).dataIndex=e.dataIndex,e.getModel()),s=a.getModel(\\\"emphasis\\\"),l=e.getLayout(),u=Z({},l),h=(u.label=null,e.getVisual(\\\"style\\\")),c=(h.lineJoin=\\\"bevel\\\",e.getVisual(\\\"decal\\\")),c=(c&&(h.decal=qm(c,o)),lS(a.getModel(\\\"itemStyle\\\"),u,!0)),c=(Z(u,c),lt(ul,function(t){var e=r.ensureState(t),n=a.getModel([t,\\\"itemStyle\\\"]),n=(e.style=n.getItemStyle(),lS(n,u));n&&(e.shape=n)}),t?(r.setShape(u),r.shape.r=l.r0,k(r,{shape:{r:l.r}},n,e.dataIndex)):(k(r,{shape:u},n),qh(r)),r.useStyle(h),this._updateLabel(n),a.getShallow(\\\"cursor\\\")),l=(c&&r.attr(\\\"cursor\\\",c),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel,s.get(\\\"focus\\\"));Zl(this,\\\"ancestor\\\"===l?e.getAncestorsIndices():\\\"descendant\\\"===l?e.getDescendantIndices():l,s.get(\\\"blurScope\\\"),s.get(\\\"disabled\\\"))},QO.prototype._updateLabel=function(s){var l=this,u=this.node.getModel(),i=u.getModel(\\\"label\\\"),h=this.node.getLayout(),c=h.endAngle-h.startAngle,p=(h.startAngle+h.endAngle)/2,d=Math.cos(p),f=Math.sin(p),g=this,y=g.getTextContent(),m=this.node.dataIndex,t=i.get(\\\"minAngle\\\")/180*Math.PI,t=i.get(\\\"show\\\")&&!(null!=t&&Math.abs(c)\u003Ct);function v(t,e){var n=t.get(e);return null==n?i.get(e):n}y.ignore=!t,lt(hl,function(t){var e=\\\"normal\\\"===t?u.getModel(\\\"label\\\"):u.getModel([t,\\\"label\\\"]),n=\\\"normal\\\"===t,i=n?y:y.ensureState(t),o=s.getFormattedLabel(m,t),o=(n&&(o=o||l.node.name),i.style=Dc(e,{},null,\\\"normal\\\"!==t,!0),o&&(i.style.text=o),e.get(\\\"show\\\"));null==o||n||(i.ignore=!o);var r,o=v(e,\\\"position\\\"),n=n?g:g.states[t],a=n.style.fill,n=(n.textConfig={outsideFill:\\\"inherit\\\"===e.get(\\\"color\\\")?a:null,inside:\\\"outside\\\"!==o},v(e,\\\"distance\\\")||0),a=v(e,\\\"align\\\"),o=(\\\"outside\\\"===o?(r=h.r+n,a=p>Math.PI/2?\\\"right\\\":\\\"left\\\"):a&&\\\"center\\\"!==a?\\\"left\\\"===a?(r=h.r0+n,p>Math.PI/2&&(a=\\\"right\\\")):\\\"right\\\"===a&&(r=h.r-n,p>Math.PI/2)&&(a=\\\"left\\\"):(r=c==2*Math.PI&&0===h.r0?0:(h.r+h.r0)/2,a=\\\"center\\\"),i.style.align=a,i.style.verticalAlign=v(e,\\\"verticalAlign\\\")||\\\"middle\\\",i.x=r*d+h.cx,i.y=r*f+h.cy,v(e,\\\"rotate\\\")),n=0;\\\"radial\\\"===o?(n=-p)\u003C-Math.PI/2&&(n+=Math.PI):\\\"tangential\\\"===o?(n=Math.PI/2-p)>Math.PI/2?n-=Math.PI:n\u003C-Math.PI/2&&(n+=Math.PI):j(o)&&(n=o*Math.PI/180),i.rotation=n}),y.dirtyStyle()};var qO,KO=QO,$O=\\\"sunburstRootToNode\\\",JO=\\\"sunburstHighlight\\\";function QO(t,e,n,i){var o=qO.call(this)||this,r=(o.z2=2,o.textConfig={inside:!0},$(o).seriesIndex=e.seriesIndex,new z({z2:4,silent:t.getModel().get([\\\"label\\\",\\\"silent\\\"])}));return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}u(rR,eR=xy),rR.prototype.render=function(i,o,r,t){var e,n,a,s,l=this,u=(this.seriesModel=i,this.api=r,this.ecModel=o,i.getData()),h=u.tree.root,c=i.getViewRoot(),p=this.group,d=i.get(\\\"renderLabelForZeroData\\\"),f=[],g=(c.eachNode(function(t){f.push(t)}),this._oldChildren||[]);function y(t){return t.getId()}function m(t,e){var n;t=null==t?null:a[t],e=null==e?null:s[e],(t=d||!t||t.getValue()?t:null)!==h&&e!==h&&(e&&e.piece?t?(e.piece.updateData(!1,t,i,o,r),u.setItemGraphicEl(t.dataIndex,e.piece)):(e=e)&&e.piece&&(p.remove(e.piece),e.piece=null):t&&(n=new KO(t,i,o,r),p.add(n),u.setItemGraphicEl(t.dataIndex,n)))}s=g,0===(a=f).length&&0===s.length||new fv(s,a,y,y).add(m).update(m).remove(D(m,null)).execute(),e=h,0\u003C(n=c).depth?(l.virtualPiece?l.virtualPiece.updateData(!1,e,i,o,r):(l.virtualPiece=new KO(e,i,o,r),p.add(l.virtualPiece)),n.piece.off(\\\"click\\\"),l.virtualPiece.on(\\\"click\\\",function(t){l._rootToNode(n.parentNode)})):l.virtualPiece&&(p.remove(l.virtualPiece),l.virtualPiece=null),this._initEvents(),this._oldChildren=f},rR.prototype._initEvents=function(){var r=this;this.group.off(\\\"click\\\"),this.group.on(\\\"click\\\",function(i){var o=!1;r.seriesModel.getViewRoot().eachNode(function(t){var e,n;!o&&t.piece&&t.piece===i.target&&(\\\"rootToNode\\\"===(e=t.getModel().get(\\\"nodeClick\\\"))?r._rootToNode(t):\\\"link\\\"===e&&(n=(e=t.getModel()).get(\\\"link\\\"))&&Xp(n,e.get(\\\"target\\\",!0)||\\\"_blank\\\"),o=!0)})})},rR.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$O,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},rR.prototype.containPoint=function(t,e){var n,i,o=e.getData().getItemLayout(0);if(o)return i=t[0]-o.cx,n=t[1]-o.cy,(i=Math.sqrt(i*i+n*n))\u003C=o.r&&i>=o.r0},rR.type=\\\"sunburst\\\";var tR,eR,nR=rR,iR=(u(oR,tR=ry),oR.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function r(t){var n=0;lt(t.children,function(t){r(t);var e=t.value;U(e)&&(e=e[0]),n+=e});var e=t.value;U(e)&&(e=e[0]),null!=e&&!isNaN(e)||(e=n),e\u003C0&&(e=0),U(t.value)?t.value[0]=e:t.value=e}(n),this._levelModels=Y(t.levels||[],function(t){return new qc(t,this,e)},this)),o=OT.createTree(n,this,function(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=o.getNodeByDataIndex(e),n=i[n.depth];return n&&(t.parentModel=n),t})});return o.data},oR.prototype.optionUpdated=function(){this.resetViewRoot()},oR.prototype.getDataParams=function(t){var e=tR.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=BT(n,this),e},oR.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},oR.prototype.getViewRoot=function(){return this._viewRoot},oR.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},oR.prototype.enableAriaDecal=function(){ZT(this)},oR.type=\\\"series.sunburst\\\",oR.defaultOption={z:2,center:[\\\"50%\\\",\\\"50%\\\"],radius:[0,\\\"75%\\\"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:\\\"rootToNode\\\",renderLabelForZeroData:!1,label:{rotate:\\\"radial\\\",show:!0,opacity:1,align:\\\"center\\\",position:\\\"inside\\\",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:\\\"white\\\",borderType:\\\"solid\\\",shadowBlur:0,shadowColor:\\\"rgba(0, 0, 0, 0.2)\\\",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:\\\"descendant\\\"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:\\\"expansion\\\",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:\\\"desc\\\"},oR);function oR(){var t=null!==tR&&tR.apply(this,arguments)||this;return t.type=oR.type,t.ignoreStyleOnData=!0,t}function rR(){var t=null!==eR&&eR.apply(this,arguments)||this;return t.type=rR.type,t}var aR=Math.PI/180;function sR(t,e,a){e.eachSeriesByType(t,function(h){var t=h.get(\\\"center\\\"),e=h.get(\\\"radius\\\"),n=(U(e)||(e=[0,e]),U(t)||(t=[t,t]),a.getWidth()),i=a.getHeight(),c=Math.min(n,i),p=F(t[0],n),d=F(t[1],i),f=F(e[0],c/2),n=F(e[1],c/2),t=-h.get(\\\"startAngle\\\")*aR,g=h.get(\\\"minAngle\\\")*aR,y=h.getData().tree.root,i=h.getViewRoot(),m=i.depth,e=h.get(\\\"sort\\\"),o=(null!=e&&function r(t,e){var n=t.children||[];t.children=function(e,n){var t,i;return A(n)?((t=Y(e,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}})).sort(function(t,e){return n(t.params,e.params)}),Y(t,function(t){return e[t.index]})):(i=\\\"asc\\\"===n,e.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(n,e),n.length&<(t.children,function(t){r(t,e)})}(i,e),0),v=(lt(i.children,function(t){isNaN(t.getValue())||o++}),i.getValue()),x=Math.PI/(v||o)*2,_=0\u003Ci.depth,e=i.height-(_?-1:1),b=(n-f)/(e||1),w=h.get(\\\"clockwise\\\"),S=h.get(\\\"stillShowZeroSum\\\"),M=w?1:-1,I=function(t,e){var n,i,o,r,a,s,l,u;if(t)return n=e,t!==y&&(i=t.getValue(),n=e+M*(i=(i=0===v&&S?x:i*x)\u003Cg?g:i),r=t.depth-m-(_?-1:1),o=f+b*r,r=f+b*(1+r),(l=h.getLevelModel(t))&&(a=l.get(\\\"r0\\\",!0),s=l.get(\\\"r\\\",!0),null!=(l=l.get(\\\"radius\\\",!0))&&(a=l[0],s=l[1]),null!=a&&(o=F(a,c/2)),null!=s)&&(r=F(s,c/2)),t.setLayout({angle:i,startAngle:e,endAngle:n,clockwise:w,cx:p,cy:d,r0:o,r:r})),t.children&&t.children.length&&(u=0,lt(t.children,function(t){u+=I(t,e+u)})),n-e};_&&(n=2*Math.PI,y.setLayout({angle:n,startAngle:t,endAngle:t+n,clockwise:w,cx:p,cy:d,r0:f,r:f+b})),I(i,t)})}function lR(t){var r={};t.eachSeriesByType(\\\"sunburst\\\",function(n){var i=n.getData(),o=i.tree;o.eachNode(function(t){var e=t.getModel().getModel(\\\"itemStyle\\\").getItemStyle();e.fill||(e.fill=function(t,e,n){for(var i=t;i&&1\u003Ci.depth;)i=i.parentNode;var o=e.getColorFromPalette(i.name||i.dataIndex+\\\"\\\",r);return o=1\u003Ct.depth&&X(o)?Yn(o,(t.depth-1)/(n-1)*.5):o}(t,n,o.root.height)),Z(i.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\"),e)})})}var uR,hR={color:\\\"fill\\\",borderColor:\\\"stroke\\\"},cR={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},pR=i(),dR=(u(fR,uR=ry),fR.prototype.optionUpdated=function(){this.currentZLevel=this.get(\\\"zlevel\\\",!0),this.currentZ=this.get(\\\"z\\\",!0)},fR.prototype.getInitialData=function(t,e){return jv(null,this)},fR.prototype.getDataParams=function(t,e,n){var i=uR.prototype.getDataParams.call(this,t,e);return n&&(i.info=pR(n).info),i},fR.type=\\\"series.custom\\\",fR.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],fR.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,legendHoverLink:!0,clip:!1},fR);function fR(){var t=null!==uR&&uR.apply(this,arguments)||this;return t.type=fR.type,t}function gR(r,a){return a=a||[0,0],Y([\\\"x\\\",\\\"y\\\"],function(t,e){var n=this.getAxis(t),i=a[e],o=r[e]/2;return\\\"category\\\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function yR(r,a){return a=a||[0,0],Y([0,1],function(t){var e=a[t],n=r[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=a[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function mR(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,o=(t instanceof Array?t[0]:t)/2;return\\\"category\\\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))}function vR(r,a){return a=a||[0,0],Y([\\\"Radius\\\",\\\"Angle\\\"],function(t,e){var n=this[\\\"get\\\"+t+\\\"Axis\\\"](),i=a[e],o=r[e]/2,i=\\\"category\\\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o));return i=\\\"Angle\\\"===t?i*Math.PI/180:i},this)}function xR(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&\\\"tspan\\\"!==e&&(\\\"text\\\"===e||q(t,\\\"text\\\")))}function _R(t,e,n){var i,o,r,a,s=t;return\\\"text\\\"===e?i=s:(i={},q(s,\\\"text\\\")&&(i.text=s.text),q(s,\\\"rich\\\")&&(i.rich=s.rich),q(s,\\\"textFill\\\")&&(i.fill=s.textFill),q(s,\\\"textStroke\\\")&&(i.stroke=s.textStroke),q(s,\\\"fontFamily\\\")&&(i.fontFamily=s.fontFamily),q(s,\\\"fontSize\\\")&&(i.fontSize=s.fontSize),q(s,\\\"fontStyle\\\")&&(i.fontStyle=s.fontStyle),q(s,\\\"fontWeight\\\")&&(i.fontWeight=s.fontWeight),o={type:\\\"text\\\",style:i,silent:!0},r={},a=q(s,\\\"textPosition\\\"),n?r.position=a?s.textPosition:\\\"inside\\\":a&&(r.position=s.textPosition),q(s,\\\"textPosition\\\")&&(r.position=s.textPosition),q(s,\\\"textOffset\\\")&&(r.offset=s.textOffset),q(s,\\\"textRotation\\\")&&(r.rotation=s.textRotation),q(s,\\\"textDistance\\\")&&(r.distance=s.textDistance)),bR(i,t),lt(i.rich,function(t){bR(t,t)}),{textConfig:r,textContent:o}}function bR(t,e){e&&(e.font=e.textFont||e.font,q(e,\\\"textStrokeWidth\\\")&&(t.lineWidth=e.textStrokeWidth),q(e,\\\"textAlign\\\")&&(t.align=e.textAlign),q(e,\\\"textVerticalAlign\\\")&&(t.verticalAlign=e.textVerticalAlign),q(e,\\\"textLineHeight\\\")&&(t.lineHeight=e.textLineHeight),q(e,\\\"textWidth\\\")&&(t.width=e.textWidth),q(e,\\\"textHeight\\\")&&(t.height=e.textHeight),q(e,\\\"textBackgroundColor\\\")&&(t.backgroundColor=e.textBackgroundColor),q(e,\\\"textPadding\\\")&&(t.padding=e.textPadding),q(e,\\\"textBorderColor\\\")&&(t.borderColor=e.textBorderColor),q(e,\\\"textBorderWidth\\\")&&(t.borderWidth=e.textBorderWidth),q(e,\\\"textBorderRadius\\\")&&(t.borderRadius=e.textBorderRadius),q(e,\\\"textBoxShadowColor\\\")&&(t.shadowColor=e.textBoxShadowColor),q(e,\\\"textBoxShadowBlur\\\")&&(t.shadowBlur=e.textBoxShadowBlur),q(e,\\\"textBoxShadowOffsetX\\\")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),q(e,\\\"textBoxShadowOffsetY\\\"))&&(t.shadowOffsetY=e.textBoxShadowOffsetY)}function wR(t,e,n){var i=t,o=(i.textPosition=i.textPosition||n.position||\\\"inside\\\",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance),0\u003C=i.textPosition.indexOf(\\\"inside\\\")),r=t.fill||\\\"#000\\\",a=(SR(i,e),null==i.textFill);return o?a&&(i.textFill=n.insideFill||\\\"#fff\\\",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth)&&(i.textStrokeWidth=2):(a&&(i.textFill=t.fill||n.outsideFill||\\\"#000\\\"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,lt(e.rich,function(t){SR(t,t)}),i}function SR(t,e){e&&(q(e,\\\"fill\\\")&&(t.textFill=e.fill),q(e,\\\"stroke\\\")&&(t.textStroke=e.fill),q(e,\\\"lineWidth\\\")&&(t.textStrokeWidth=e.lineWidth),q(e,\\\"font\\\")&&(t.font=e.font),q(e,\\\"fontStyle\\\")&&(t.fontStyle=e.fontStyle),q(e,\\\"fontWeight\\\")&&(t.fontWeight=e.fontWeight),q(e,\\\"fontSize\\\")&&(t.fontSize=e.fontSize),q(e,\\\"fontFamily\\\")&&(t.fontFamily=e.fontFamily),q(e,\\\"align\\\")&&(t.textAlign=e.align),q(e,\\\"verticalAlign\\\")&&(t.textVerticalAlign=e.verticalAlign),q(e,\\\"lineHeight\\\")&&(t.textLineHeight=e.lineHeight),q(e,\\\"width\\\")&&(t.textWidth=e.width),q(e,\\\"height\\\")&&(t.textHeight=e.height),q(e,\\\"backgroundColor\\\")&&(t.textBackgroundColor=e.backgroundColor),q(e,\\\"padding\\\")&&(t.textPadding=e.padding),q(e,\\\"borderColor\\\")&&(t.textBorderColor=e.borderColor),q(e,\\\"borderWidth\\\")&&(t.textBorderWidth=e.borderWidth),q(e,\\\"borderRadius\\\")&&(t.textBorderRadius=e.borderRadius),q(e,\\\"shadowColor\\\")&&(t.textBoxShadowColor=e.shadowColor),q(e,\\\"shadowBlur\\\")&&(t.textBoxShadowBlur=e.shadowBlur),q(e,\\\"shadowOffsetX\\\")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),q(e,\\\"shadowOffsetY\\\")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),q(e,\\\"textShadowColor\\\")&&(t.textShadowColor=e.textShadowColor),q(e,\\\"textShadowBlur\\\")&&(t.textShadowBlur=e.textShadowBlur),q(e,\\\"textShadowOffsetX\\\")&&(t.textShadowOffsetX=e.textShadowOffsetX),q(e,\\\"textShadowOffsetY\\\"))&&(t.textShadowOffsetY=e.textShadowOffsetY)}var MR={position:[\\\"x\\\",\\\"y\\\"],scale:[\\\"scaleX\\\",\\\"scaleY\\\"],origin:[\\\"originX\\\",\\\"originY\\\"]},IR=W(MR),TR=(ct(yo,function(t,e){return t[e]=1,t},{}),yo.join(\\\", \\\"),[\\\"\\\",\\\"style\\\",\\\"shape\\\",\\\"extra\\\"]),CR=i();function DR(t,e,n,i,o){var r=t+\\\"Animation\\\",a=Wh(t,i,o)||{},s=CR(e).userDuring;return 0\u003Ca.duration&&(a.during=s?I(NR,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Z(a,n[r]),a}function AR(t,n,e,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,E=i.clearStyle,s=e.isAnimationEnabled(),l=CR(t),u=n.style,l=(l.userDuring=n.during,{}),h={},c=n,p=h,d=0;d\u003CIR.length;d++){var f=IR[d],g=MR[f],f=c[f];f&&(p[g[0]]=f[0],p[g[1]]=f[1])}for(d=0;d\u003Cyo.length;d++){var y=yo[d];null!=c[y]&&(p[y]=c[y])}if(zR(\\\"shape\\\",n,h),zR(\\\"extra\\\",n,h),!a&&s){for(var z=t,V=l,m=n.transition,v=PR(m)?yo:Dr(m||[]),x=0;x\u003Cv.length;x++){var _,b=v[x];\\\"style\\\"!==b&&\\\"shape\\\"!==b&&\\\"extra\\\"!==b&&(_=z[b],V[b]=_)}ER(\\\"shape\\\",t,n,l),ER(\\\"extra\\\",t,n,l);var i=t,w=n,S=u,M=l;if(S){var I=i.style;if(I){var m=S.transition,T=w.transition;if(m&&!PR(m))for(var C=Dr(m),D=D||(M.style={}),A=0;A\u003CC.length;A++){var k=I[P=C[A]];D[P]=k}else if(i.getAnimationStyleProps&&(PR(T)||PR(m)||0\u003C=G(T,\\\"style\\\"))){var m=i.getAnimationStyleProps(),L=m?m.style:null;if(L){D=D||(M.style={});for(var P,O=W(S),A=0;A\u003CO.length;A++)L[P=O[A]]&&(k=I[P],D[P]=k)}}}}}h.style=u;var R=t,w=h,T=w.style;if(!R.isGroup&&T){if(E){R.useStyle({});for(var B=R.animators,N=0;N\u003CB.length;N++){var F=B[N];\\\"style\\\"===F.targetName&&F.changeTarget(R.style)}}R.setStyle(T)}w&&(w.style=null,w&&R.attr(w),w.style=T),i=t,q(M=n,\\\"silent\\\")&&(i.silent=M.silent),q(M,\\\"ignore\\\")&&(i.ignore=M.ignore),i instanceof Ca&&q(M,\\\"invisible\\\")&&(i.invisible=M.invisible),i instanceof Q&&q(M,\\\"autoBatch\\\")&&(i.autoBatch=M.autoBatch),s&&(a?(o={},lt(TR,function(t){var e=t?n[t]:n;e&&e.enterFrom&&(t&&(o[t]=o[t]||{}),Z(t?o[t]:o,e.enterFrom))}),0\u003C(m=DR(\\\"enter\\\",t,n,e,r)).duration&&t.animateFrom(o,m)):(S=l,0\u003C(h=DR(\\\"update\\\",i=t,n,e,r||0)).duration&&i.animateFrom(S,h))),kR(t,n),u?t.dirty():t.markRedraw()}function kR(t,e){for(var n=CR(t).leaveToProps,i=0;i\u003CTR.length;i++){var o=TR[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(CR(t).leaveToProps={}),o&&(n[o]=n[o]||{}),Z(o?n[o]:n,r.leaveTo))}}function LR(t,e,n,i){var o,r,a;t&&(o=t.parent,(r=CR(t).leaveToProps)?((a=DR(\\\"update\\\",t,e,n,0)).done=function(){o.remove(t),i&&i()},t.animateTo(r,a)):(o.remove(t),i&&i()))}function PR(t){return\\\"all\\\"===t}var OR={},RR={setTransform:function(t,e){return OR.el[t]=e,this},getTransform:function(t){return OR.el[t]},setShape:function(t,e){var n=OR.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=OR.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=OR.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle)&&n.dirtyStyle(),this},getStyle:function(t){var e=OR.el.style;if(e)return e[t]},setExtra:function(t,e){return(OR.el.extra||(OR.el.extra={}))[t]=e,this},getExtra:function(t){var e=OR.el.extra;if(e)return e[t]}};function NR(){var t,e=this.el;e&&(CR(e).userDuring===(t=this.userDuring)?(OR.el=e,t(RR)):this.el=this.userDuring=null)}function ER(t,e,n,i){var o,r,a=n[t];if(a){var s=e[t];if(s){var l=n.transition,u=a.transition;if(u)if(d||(d=i[t]={}),PR(u))Z(d,s);else for(var h=Dr(u),c=0;c\u003Ch.length;c++){var p=s[g=h[c]];d[g]=p}else if(PR(l)||0\u003C=G(l,t))for(var d=d||(i[t]={}),f=W(s),c=0;c\u003Cf.length;c++){var g,p=s[g=f[c]];o=a[g],r=p,(ht(o)?o!==r:null!=o&&isFinite(o))&&(d[g]=p)}}}}function zR(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=W(i),a=0;a\u003Cr.length;a++){var s=r[a];o[s]=mi(i[s])}}var VR=i(),BR=[\\\"percent\\\",\\\"easing\\\",\\\"shape\\\",\\\"style\\\",\\\"extra\\\"];function FR(t){t.stopAnimation(\\\"keyframe\\\"),t.attr(VR(t))}function GR(l,u,e){var t,n,h,c;e.isAnimationEnabled()&&u&&(U(u)?lt(u,function(t){GR(l,t,e)}):(t=u.keyframes,h=u.duration,e&&null==h&&(n=Wh(\\\"enter\\\",e,0),h=n&&n.duration),t&&h&&(c=VR(l),lt(TR,function(a){var s;a&&!l[a]||(t.sort(function(t,e){return t.percent-e.percent}),lt(t,function(t){var e=l.animators,n=a?t[a]:t;if(n){var i=W(n);if((i=a?i:pt(i,function(t){return G(BR,t)\u003C0})).length){s||((s=l.animate(a,u.loop,!0)).scope=\\\"keyframe\\\");for(var o=0;o\u003Ce.length;o++)e[o]!==s&&e[o].targetName===s.targetName&&e[o].stopTracks(i);a&&(c[a]=c[a]||{});var r=a?c[a]:c;lt(i,function(t){r[t]=((a?l[a]:l)||{})[t]}),s.whenWithKeys(h*t.percent,n,i,t.easing)}}}),s&&s.delay(u.delay||0).duration(h).start(u.easing))}))))}var WR=\\\"emphasis\\\",HR=\\\"normal\\\",e=\\\"blur\\\",hd=\\\"select\\\",YR=[HR,WR,e,hd],UR={normal:[\\\"itemStyle\\\"],emphasis:[WR,\\\"itemStyle\\\"],blur:[e,\\\"itemStyle\\\"],select:[hd,\\\"itemStyle\\\"]},XR={normal:[\\\"label\\\"],emphasis:[WR,\\\"label\\\"],blur:[e,\\\"label\\\"],select:[hd,\\\"label\\\"]},ZR=[\\\"x\\\",\\\"y\\\"],jR={normal:{},emphasis:{},blur:{},select:{}},qR={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:\\\"cartesian2d\\\",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:I(gR,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:\\\"geo\\\",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:I(yR,e)}}},singleAxis:function(e){var t=e.getRect();return{coordSys:{type:\\\"singleAxis\\\",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:I(mR,e)}}},polar:function(o){var r=o.getRadiusAxis(),a=o.getAngleAxis(),t=r.getExtent();return t[0]>t[1]&&t.reverse(),{coordSys:{type:\\\"polar\\\",cx:o.cx,cy:o.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=r.dataToRadius(t[0]),n=a.dataToAngle(t[1]),i=o.coordToPoint([e,n]);return i.push(e,n*Math.PI/180),i},size:I(vR,o)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:\\\"calendar\\\",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function KR(t){return t instanceof Q}function $R(t){return t instanceof Ca}u(tN,JR=xy),tN.prototype.render=function(i,t,o,r){this._progressiveEls=null;var a=this._data,s=i.getData(),l=this.group,u=oN(i,s,t,o),e=(a||l.removeAll(),s.diff(a).add(function(t){rN(o,null,t,u(t,r),i,l,s)}).remove(function(t){var e=a.getItemGraphicEl(t);LR(e,pR(e).option,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);rN(o,n,t,u(t,r),i,l,s)}).execute(),i.get(\\\"clip\\\",!0)?ew(i.coordinateSystem,!1,i):null);e?l.setClipPath(e):l.removeClipPath(),this._data=s},tN.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},tN.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=oN(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}for(var u=t.start;u\u003Ct.end;u++){var h=rN(null,null,u,a(u,o),e,this.group,r);h&&(h.traverse(l),s.push(h))}},tN.prototype.eachRendered=function(t){bc(this._progressiveEls||this.group,t)},tN.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},tN.type=\\\"custom\\\";var JR,QR=tN;function tN(){var t=null!==JR&&JR.apply(this,arguments)||this;return t.type=tN.type,t}function eN(t){var e=t.type;if(\\\"path\\\"===e){var n=t.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=fN(n),i=ic(o,null,i,n.layout||\\\"center\\\");pR(i).customPathData=o}else if(\\\"image\\\"===e)i=new Ps({}),pR(i).customImagePath=t.style.image;else if(\\\"text\\\"===e)i=new z({});else if(\\\"group\\\"===e)i=new K;else{if(\\\"compoundPath\\\"===e)throw new Error('\\\"compoundPath\\\" is not supported yet.');n=nc(e);n||Mr(\\\"\\\"),i=new n}return pR(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function nN(t,e,n,i,o,r,a){FR(e);var s,l,u=o&&o.normal.cfg,u=(u&&e.setTextConfig(u),i&&null==i.transition&&(i.transition=ZR),i&&i.style);u&&(s=void(\\\"text\\\"===e.type&&(q(s=u,\\\"textFill\\\")&&(s.fill=s.textFill),q(s,\\\"textStroke\\\"))&&(s.stroke=s.textStroke)),l=KR(e)?u.decal:null,t&&l&&(l.dirty=!0,s=qm(l,t)),u.__decalPattern=s),$R(e)&&u&&(s=u.__decalPattern)&&(u.decal=s),AR(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),GR(e,i.keyframeAnimation,r)}function iN(t,e,n,i,o){var r,a,s=e.isGroup?null:e,l=o&&o[t].cfg;s&&(r=s.ensureState(t),!1===i?(a=s.getState(t))&&(a.style=null):r.style=i||null,l&&(r.textConfig=l),Ll(s))}function oN(a,s,e,t){var n=a.get(\\\"renderItem\\\"),u=a.coordinateSystem,i={};u&&(i=u.prepareCustoms?u.prepareCustoms(u):qR[u.type](u));for(var l,o,r,h,c=H({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=l),s.getStore().get(s.getDimensionIndex(t||0),e)},style:function(t,e){null==e&&(e=l);var n=s.getItemVisual(e,\\\"style\\\"),i=n&&n.fill,n=n&&n.opacity,o=_(e,HR).getItemStyle(),n=(null!=i&&(o.fill=i),null!=n&&(o.opacity=n),{inheritColor:X(i)?i:\\\"#000\\\"}),i=b(e,HR),r=Dc(i,null,n,!1,!0),i=(r.text=i.getShallow(\\\"show\\\")?P(a.getFormattedLabel(e,HR),Tb(s,e)):null,Ac(i,n,!1));return S(t,o),o=wR(o,r,i),t&&w(o,t),o.legacy=!0,o},ordinalRawValue:function(t,e){null==e&&(e=l);var n,i=s.getDimensionInfo(t=t||0);return i?(n=s.get(i.name,e),(i=i&&i.ordinalMeta)?i.categories[n]:n):0\u003C=(i=s.getDimensionIndex(t))?s.getStore().get(i,e):void 0},styleEmphasis:function(t,e){var n=_(e=null==e?l:e,WR).getItemStyle(),i=b(e,WR),o=Dc(i,null,null,!0,!0),i=(o.text=i.getShallow(\\\"show\\\")?St(a.getFormattedLabel(e,WR),a.getFormattedLabel(e,HR),Tb(s,e)):null,Ac(i,null,!0));return S(t,n),n=wR(n,o,i),t&&w(n,t),n.legacy=!0,n},visual:function(t,e){var n;return null==e&&(e=l),q(hR,t)?(n=s.getItemVisual(e,\\\"style\\\"))?n[hR[t]]:null:q(cR,t)?s.getItemVisual(e,t):void 0},barLayout:function(t){if(\\\"cartesian2d\\\"===u.type){var e=H({axis:u.getBaseAxis()},t),n=[],i=e.axis;if(\\\"category\\\"===i.type){for(var o=i.getBandWidth(),r=0;r\u003Ce.count;r++)n.push(H({bandWidth:o,axisKey:\\\"axis0\\\",stackId:v1+r},e));for(var a=S1(n),s=[],r=0;r\u003Ce.count;r++){var l=a.axis0[v1+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return Rc(t,e)}},i.api||{}),p={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:i.coordSys,dataInsideLength:s.count(),encode:(r=a.getData(),h={},lt(r.dimensions,function(t){var e,n=r.getDimensionInfo(t);n.isExtraCoord||(e=n.coordDim,(h[e]=h[e]||[])[n.coordDimIndex]=r.getDimensionIndex(t))}),h)},d={},f={},g={},y={},m=0;m\u003CYR.length;m++){var v=YR[m];g[v]=a.getModel(UR[v]),y[v]=a.getModel(XR[v])}function x(t){return t===l?o=o||s.getItemModel(t):s.getItemModel(t)}function _(t,e){return s.hasItemOption?t===l?d[e]||(d[e]=x(t).getModel(UR[e])):x(t).getModel(UR[e]):g[e]}function b(t,e){return s.hasItemOption?t===l?f[e]||(f[e]=x(t).getModel(XR[e])):x(t).getModel(XR[e]):y[e]}return function(t,e){return l=t,o=null,d={},f={},n&&n(H({dataIndexInside:t,dataIndex:s.getRawIndex(t),actionType:e?e.type:null},p),c)};function w(t,e){for(var n in e)q(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition)&&(e.textPosition=t.textPosition)}}function rN(t,e,n,i,o,r,a){var s;if(i)return(s=aN(t,e,n,i,o,r))&&a.setItemGraphicEl(n,s),s&&Zl(s,i.focus,i.blurScope,i.emphasisDisabled),s;r.remove(e)}function aN(t,e,n,h,i,o){var r=-1,a=e;e&&sN(e,h,i)&&(r=G(o.childrenRef(),e),e=null);var s=!e,l=e,e=(l?l.clearStates():(l=eN(h),a&&((y=l).copyTransform(a=a),$R(y))&&$R(a)&&(y.setStyle(a.style),y.z=a.z,y.z2=a.z2,y.zlevel=a.zlevel,y.invisible=a.invisible,y.ignore=a.ignore,KR(y))&&KR(a)&&y.setShape(a.shape)),!1===h.morph?l.disableMorphing=!0:l.disableMorphing&&(l.disableMorphing=!1),jR.normal.cfg=jR.normal.conOpt=jR.emphasis.cfg=jR.emphasis.conOpt=jR.blur.cfg=jR.blur.conOpt=jR.select.cfg=jR.select.conOpt=null,jR.isLegacy=!1,l),u=n,c=h,p=i,d=s,f=jR;if(!e.isGroup){lN(c,null,f),lN(c,WR,f);var g=f.normal.conOpt,a=f.emphasis.conOpt,y=f.blur.conOpt,m=f.select.conOpt;if(null!=g||null!=a||null!=m||null!=y){var v=e.getTextContent();if(!1===g)v&&e.removeTextContent();else{g=f.normal.conOpt=g||{type:\\\"text\\\"},v?v.clearStates():(v=eN(g),e.setTextContent(v)),nN(null,v,u,g,null,p,d);for(var a=g&&g.style,x=0;x\u003CYR.length;x++){var _=YR[x];_!==HR&&iN(_,v,0,hN(g,f[_].conOpt,_),null)}a?v.dirty():v.markRedraw()}}}c=l,e=n,u=i,p=s,!1===(m=h.clipPath)?c&&c.getClipPath()&&c.removeClipPath():m&&((a=(a=c.getClipPath())&&sN(a,m,u)?null:a)||(a=eN(m),c.setClipPath(a)),nN(null,a,e,m,null,u,p)),nN(t,l,n,h,jR,i,s),q(h,\\\"info\\\")&&(pR(l).info=h.info);for(var b,w,S,M,I,T=0;T\u003CYR.length;T++){var C,D=YR[T];D!==HR&&(C=uN(h,D),iN(D,l,0,hN(h,C,D),jR))}var d=l,A=h;if(!d.isGroup){var k=d,a=i.currentZ,s=i.currentZLevel,a=(k.z=a,k.zlevel=s,A.z2);null!=a&&(k.z2=a||0);for(var L=0;L\u003CYR.length;L++)b=k,w=A,S=YR[L],I=M=void 0,null!=(I=(I=(M=S===HR)?w:uN(w,S))?I.z2:null)&&((M?b:b.ensureState(S)).z2=I||0)}return\\\"group\\\"===h.type&&function(t,e,n,i){var o=h.children,r=o?o.length:0,a=h.$mergeChildren,s=\\\"byName\\\"===a||h.diffChildrenByName,a=!1===a;if(r||s||a){if(s)return s={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e},new fv(s.oldChildren,s.newChildren,cN,cN,s).add(pN).update(pN).remove(dN).execute();a&&e.removeAll();for(var l=0;l\u003Cr;l++)o[l]&&aN(t,e.childAt(l),n,o[l],i,e);for(var u=e.childCount()-1;l\u003C=u;u--)LR(e.childAt(u),pR(e).option,i)}}(t,l,n,i),0\u003C=r?o.replaceAt(l,r):o.add(l),l}function sN(t,e,n){var i,o=pR(t),r=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==o.customGraphicType||\\\"path\\\"===r&&(i=a)&&(q(i,\\\"pathData\\\")||q(i,\\\"d\\\"))&&fN(a)!==o.customPathData||\\\"image\\\"===r&&q(s,\\\"image\\\")&&s.image!==o.customImagePath}function lN(t,e,n){var i=e?uN(t,e):t,o=e?hN(t,i,WR):t.style,r=t.type,i=i?i.textConfig:null,a=t.textContent,a=a?e?uN(a,e):a:null,o=(o&&(n.isLegacy||xR(o,r,!!i,!!a))&&(n.isLegacy=!0,o=_R(o,r,!e),!i&&o.textConfig&&(i=o.textConfig),!a)&&o.textContent&&(a=o.textContent),e||!a||(r=a).type||(r.type=\\\"text\\\"),e?n[e]:n.normal);o.cfg=i,o.conOpt=a}function uN(t,e){return e?t?t[e]:null:t}function hN(t,e,n){var i=e&&e.style;return i=null==i&&n===WR&&t?t.styleEmphasis:i}function cN(t,e){var n=t&&t.name;return null!=n?n:\\\"e\\\\0\\\\0\\\"+e}function pN(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,o=null!=e?n.oldChildren[e]:null;aN(n.api,o,n.dataIndex,i,n.seriesModel,n.group)}function dN(t){var e=this.context,n=e.oldChildren[t];LR(n,pR(n).option,e.seriesModel)}function fN(t){return t&&(t.pathData||t.d)}var gN=i(),yN=L,mN=I,ym=(vN.prototype.render=function(t,e,n,i){var o,r,a,s=e.get(\\\"value\\\"),l=e.get(\\\"status\\\");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===s&&this._lastStatus===l||(this._lastValue=s,this._lastStatus=l,o=this._group,r=this._handle,l&&\\\"hide\\\"!==l?(o&&o.show(),r&&r.show(),this.makeElOption(l={},s,t,e,n),(a=l.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=a,a=this._moveAnimation=this.determineAnimation(t,e),o?(a=D(xN,e,a),this.updatePointerEl(o,l,a),this.updateLabelEl(o,l,a,e)):(o=this._group=new K,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o)),wN(o,e,!0),this._renderHandle(s)):(o&&o.hide(),r&&r.hide()))},vN.prototype.remove=function(t){this.clear(t)},vN.prototype.dispose=function(t){this.clear(t)},vN.prototype.determineAnimation=function(t,e){var n,i=e.get(\\\"animation\\\"),o=t.axis,r=\\\"category\\\"===o.type,a=e.get(\\\"snap\\\");return!(!a&&!r)&&(\\\"auto\\\"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!a&&(r=vM(t).seriesDataCount,a=o.getExtent(),Math.abs(a[0]-a[1])/r>n)):!0===i)},vN.prototype.makeElOption=function(t,e,n,i,o){},vN.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=gN(t).pointerEl=new wc[o.type](yN(e.pointer)),t.add(o))},vN.prototype.createLabelEl=function(t,e,n,i){var o;e.label&&(o=gN(t).labelEl=new z(yN(e.label)),t.add(o),_N(o,i))},vN.prototype.updatePointerEl=function(t,e,n){var i=gN(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},vN.prototype.updateLabelEl=function(t,e,n,i){var o=gN(t).labelEl;o&&(o.setStyle(e.label.style),n(o,{x:e.label.x,y:e.label.y}),_N(o,i))},vN.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel(\\\"handle\\\"),a=n.get(\\\"status\\\"),r.get(\\\"show\\\")&&a&&\\\"hide\\\"!==a?(this._handle||(e=!0,o=this._handle=yc(r.get(\\\"icon\\\"),{cursor:\\\"move\\\",draggable:!0,onmousemove:function(t){Me(t.event)},onmousedown:mN(this._onHandleDragMove,this,0,0),drift:mN(this._onHandleDragMove,this),ondragend:mN(this._onHandleDragEnd,this)}),i.add(o)),wN(o,n,!1),o.setStyle(r.getItemStyle(null,[\\\"color\\\",\\\"borderColor\\\",\\\"borderWidth\\\",\\\"opacity\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"])),U(a=r.get(\\\"size\\\"))||(a=[a,a]),o.scaleX=a[0]/2,o.scaleY=a[1]/2,ky(this,\\\"_doDispatchAxisPointer\\\",r.get(\\\"throttle\\\")||0,\\\"fixRate\\\"),this._moveHandleToValue(t,e)):(o&&i.remove(o),this._handle=null))},vN.prototype._moveHandleToValue=function(t,e){xN(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},vN.prototype._onHandleDragMove=function(t,e){var n,i=this._handle;i&&(this._dragging=!0,n=this.updateHandleTransform(bN(i),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=n,i.stopAnimation(),i.attr(bN(n)),gN(i).lastProp=null,this._doDispatchAxisPointer())},vN.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:\\\"updateAxisPointer\\\",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},vN.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get(\\\"value\\\"),this._moveHandleToValue(t),this._api.dispatchAction({type:\\\"hideTip\\\"}))},vN.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ly(this,\\\"_doDispatchAxisPointer\\\")},vN.prototype.doClear=function(){},vN.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},vN);function vN(){this._dragging=!1,this.animationThreshold=15}function xN(t,e,n,i){!function o(n,t){{var i;if(R(n)&&R(t))return i=!0,lt(t,function(t,e){i=i&&o(n[e],t)}),!!i}return n===t}(gN(n).lastProp,i)&&(gN(n).lastProp=i,e?k(n,i,t):(n.stopAnimation(),n.attr(i)))}function _N(t,e){t[e.get([\\\"label\\\",\\\"show\\\"])?\\\"show\\\":\\\"hide\\\"]()}function bN(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function wN(t,e,n){var i=e.get(\\\"z\\\"),o=e.get(\\\"zlevel\\\");t&&t.traverse(function(t){\\\"group\\\"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function SN(t){var e,n=t.get(\\\"type\\\"),i=t.getModel(n+\\\"Style\\\");return\\\"line\\\"===n?(e=i.getLineStyle()).fill=null:\\\"shadow\\\"===n&&((e=i.getAreaStyle()).stroke=null),e}function MN(t,e,n,i,o){var r,a=IN(n.get(\\\"value\\\"),e.axis,e.ecModel,n.get(\\\"seriesDataIndices\\\"),{precision:n.get([\\\"label\\\",\\\"precision\\\"]),formatter:n.get([\\\"label\\\",\\\"formatter\\\"])}),s=n.getModel(\\\"label\\\"),l=Ep(s.get(\\\"padding\\\")||0),u=s.getFont(),h=Po(a,u),c=o.position,p=h.width+l[1]+l[3],h=h.height+l[0]+l[2],d=o.align,d=(\\\"right\\\"===d&&(c[0]-=p),\\\"center\\\"===d&&(c[0]-=p/2),o.verticalAlign),h=(\\\"bottom\\\"===d&&(c[1]-=h),\\\"middle\\\"===d&&(c[1]-=h/2),n=c,o=p,r=h,d=(i=i).getWidth(),p=i.getHeight(),n[0]=Math.min(n[0]+o,d)-o,n[1]=Math.min(n[1]+r,p)-r,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0),s.get(\\\"backgroundColor\\\"));h&&\\\"auto\\\"!==h||(h=e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])),t.label={x:c[0],y:c[1],style:Dc(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:h}),z2:10}}function IN(t,e,i,n,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;return s&&(r={value:tx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},lt(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,n=e&&e.getDataParams(n);n&&r.seriesData.push(n)}),X(s)?a=s.replace(\\\"{value}\\\",a):A(s)&&(a=s(r))),a}function TN(t,e,n){var i=[1,0,0,1,0,0];return oo(i,i,n.rotation),io(i,i,n.position),hc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function CN(t,e,n,i,o,r){var a=uM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get([\\\"label\\\",\\\"margin\\\"]),MN(e,i,o,r,{position:TN(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function DN(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function AN(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function kN(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}u(ON,LN=ym),ON.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get(\\\"type\\\"),u=RN(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0));l&&\\\"none\\\"!==l&&(r=SN(i),(l=NN[l](a,h,u)).style=r,t.graphicKey=l.type,t.pointer=l),CN(e,t,JS(s.model,n),n,i,o)},ON.prototype.getHandleTransform=function(t,e,n){var i=JS(e.axis.grid.model,e,{labelInside:!1}),o=(i.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]),TN(e.axis,t,i));return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection\u003C0?Math.PI:0)}},ON.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),r=RN(r,o).getOtherAxis(o).getGlobalExtent(),o=\\\"x\\\"===o.dim?0:1,s=[t.x,t.y],a=(s[o]+=e[o],s[o]=Math.min(a[1],s[o]),s[o]=Math.max(a[0],s[o]),(r[1]+r[0])/2),r=[a,a];return r[o]=s[o],{x:s[0],y:s[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:\\\"middle\\\"},{align:\\\"center\\\"}][o]}};var LN,PN=ON;function ON(){return null!==LN&&LN.apply(this,arguments)||this}function RN(t,e){var n={};return n[e.dim+\\\"AxisIndex\\\"]=e.index,t.getCartesian(n)}var NN={line:function(t,e,n){return{type:\\\"Line\\\",subPixelOptimize:!0,shape:DN([e,n[0]],[e,n[1]],EN(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:\\\"Rect\\\",shape:AN([e-i/2,n[0]],[i,o],EN(t))}}};function EN(t){return\\\"x\\\"===t.dim?0:1}u(GN,zN=m),GN.type=\\\"axisPointer\\\",GN.defaultOption={show:\\\"auto\\\",z:50,type:\\\"line\\\",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:\\\"#B9BEC9\\\",width:1,type:\\\"dashed\\\"},shadowStyle:{color:\\\"rgba(210,219,238,0.2)\\\"},label:{show:!0,formatter:null,precision:\\\"auto\\\",margin:3,color:\\\"#fff\\\",padding:[5,7,5,7],backgroundColor:\\\"auto\\\",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:\\\"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z\\\",size:45,margin:50,color:\\\"#333\\\",shadowBlur:3,shadowColor:\\\"#aaa\\\",shadowOffsetX:0,shadowOffsetY:2,throttle:40}};var zN,VN=GN,BN=i(),FN=lt;function GN(){var t=null!==zN&&zN.apply(this,arguments)||this;return t.type=GN.type,t}function WN(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,o,t,r,a,s,l,u={dispatchAction:o=function(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=o,n.dispatchAction(t))},pendings:i={showTip:[],hideTip:[]}};FN(BN(c).records,function(t){t&&h(t,e,u.dispatchAction)}),r=p,s=(t=u.pendings).showTip.length,l=t.hideTip.length,s?a=t.showTip[s-1]:l&&(a=t.hideTip[l-1]),a&&(a.dispatchAction=null,r.dispatchAction(a))})}S.node||(i=e.getZr(),BN(i).records||(BN(i).records={}),p=e,BN(c=i).initialized||(BN(c).initialized=!0,o(\\\"click\\\",D(YN,\\\"click\\\")),o(\\\"mousemove\\\",D(YN,\\\"mousemove\\\")),o(\\\"globalout\\\",HN)),(BN(i).records[t]||(BN(i).records[t]={})).handler=n)}function HN(t,e,n){t.handler(\\\"leave\\\",null,n)}function YN(t,e,n,i){e.handler(t,n,i)}function UN(t,e){var n;S.node||(n=e.getZr(),(BN(n).records||{})[t]&&(BN(n).records[t]=null))}u(jN,XN=fy),jN.prototype.render=function(t,e,n){var i=e.getComponent(\\\"tooltip\\\"),o=t.get(\\\"triggerOn\\\")||i&&i.get(\\\"triggerOn\\\")||\\\"mousemove|click\\\";WN(\\\"axisPointer\\\",n,function(t,e,n){\\\"none\\\"!==o&&(\\\"leave\\\"===t||0\u003C=o.indexOf(t))&&n({type:\\\"updateAxisPointer\\\",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},jN.prototype.remove=function(t,e){UN(\\\"axisPointer\\\",e)},jN.prototype.dispose=function(t,e){UN(\\\"axisPointer\\\",e)},jN.type=\\\"axisPointer\\\";var XN,ZN=jN;function jN(){var t=null!==XN&&XN.apply(this,arguments)||this;return t.type=jN.type,t}function qN(t,e){var n,i,o,r,a,s,l=[],u=t.seriesIndex;return null==u||!(u=e.getSeriesByIndex(u))||null==(i=Vr(n=u.getData(),t))||i\u003C0||U(i)?{point:[]}:(o=n.getItemGraphicEl(i),r=u.coordinateSystem,u.getTooltipPosition?l=u.getTooltipPosition(i)||[]:r&&r.dataToPoint?l=t.isStacked?(u=r.getBaseAxis(),a=r.getOtherAxis(u).dim,u=u.dim,a=\\\"x\\\"===a||\\\"radius\\\"===a?1:0,u=n.mapDimension(u),(s=[])[a]=n.get(u,i),s[1-a]=n.get(n.getCalculationInfo(\\\"stackResultDimension\\\"),i),r.dataToPoint(s)||[]):r.dataToPoint(n.getValues(Y(r.dimensions,function(t){return n.mapDimension(t)}),i))||[]:o&&((u=o.getBoundingRect().clone()).applyTransform(o.transform),l=[u.x+u.width/2,u.y+u.height/2]),{point:l,el:o})}var KN=i();function $N(t,e,n){var r,a,i,s,l,u,h,c,o,p,d,f,g,y,m,v,x=t.currTrigger,_=[t.x,t.y],b=t,w=t.dispatchAction||I(n.dispatchAction,n),S=e.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(S)return n5(_)&&(_=qN({seriesIndex:b.seriesIndex,dataIndex:b.dataIndex},e).point),r=n5(_),a=b.axesInfo,i=S.axesInfo,s=\\\"leave\\\"===x||n5(_),l={},b={list:[],map:{}},h={showPointer:D(QN,u={}),showTooltip:D(t5,b)},lt(S.coordSysMap,function(t,e){var o=r||t.containPoint(_);lt(S.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n\u003C(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(_))&&JN(t,i,h,!1,l)})}),c={},lt(i,function(i,t){var o=i.linkGroup;o&&!u[t]&<(o.axesInfo,function(t,e){var n=u[e];t!==i&&n&&(n=n.value,o.mapper&&(n=i.axis.scale.parse(o.mapper(n,e5(t),e5(i)))),c[i.key]=n)})}),lt(c,function(t,e){JN(i[e],t,h,!0,l)}),m=u,e=i,v=l.axesInfo=[],lt(e,function(t,e){var n=t.axisPointerModel.option,i=m[e];i?(t.useHandle||(n.status=\\\"show\\\"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status=\\\"hide\\\"),\\\"show\\\"===n.status&&v.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),e=b,t=t,y=w,n5(g=_)||!e.list.length?y({type:\\\"hideTip\\\"}):(x=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},y({type:\\\"showTip\\\",escapeConnect:!0,x:g[0],y:g[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:e.list})),g=i,b=(t=n).getZr(),w=\\\"axisPointerLastHighlights\\\",o=KN(b)[w]||{},p=KN(b)[w]={},lt(g,function(t,e){var n=t.axisPointerModel.option;\\\"show\\\"===n.status&<(n.seriesDataIndices,function(t){var e=t.seriesIndex+\\\" | \\\"+t.dataIndex;p[e]=t})}),d=[],f=[],lt(o,function(t,e){p[e]||f.push(t)}),lt(p,function(t,e){o[e]||d.push(t)}),f.length&&t.dispatchAction({type:\\\"downplay\\\",escapeConnect:!0,notBlur:!0,batch:f}),d.length&&t.dispatchAction({type:\\\"highlight\\\",escapeConnect:!0,notBlur:!0,batch:d}),l}function JN(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,lt(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,l,u),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],l,\\\"category\\\"===u.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=l-o,(n=Math.abs(i))\u003C=d)&&((n\u003Cd||0\u003C=i&&f\u003C0)&&(d=n,f=i,c=o,p.length=0),lt(r,function(t){p.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),s=(r={payloadBatch:p,snapToValue:c}).snapToValue,(a=r.payloadBatch)[0]&&null==o.seriesIndex&&Z(o,a[0]),!i&&t.snap&&g.containData(s)&&null!=s&&(e=s),n.showPointer(t,e,a),n.showTooltip(t,r,s)):n.showPointer(t,e))}function QN(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function t5(t,e,n,i){var o,r,a,s=n.payloadBatch,l=e.axis,u=l.model,h=e.axisPointerModel;e.triggerTooltip&&s.length&&(r=_M(o=e.coordSys.model),(a=t.map[r])||(a=t.map[r]={coordSysId:o.id,coordSysIndex:o.componentIndex,coordSysType:o.type,coordSysMainType:o.mainType,dataByAxis:[]},t.list.push(a)),a.dataByAxis.push({axisDim:l.dim,axisIndex:u.componentIndex,axisType:u.type,axisId:u.id,value:i,valueLabelOpt:{precision:h.get([\\\"label\\\",\\\"precision\\\"]),formatter:h.get([\\\"label\\\",\\\"formatter\\\"])},seriesDataIndices:s.slice()}))}function e5(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+\\\"AxisIndex\\\"]=e.componentIndex,n.axisName=n[i+\\\"AxisName\\\"]=e.name,n.axisId=n[i+\\\"AxisId\\\"]=e.id,n}function n5(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function i5(t){SM.registerAxisPointerClass(\\\"CartesianAxisPointer\\\",PN),t.registerComponentModel(VN),t.registerComponentView(ZN),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!U(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent(\\\"axisPointer\\\").coordSysAxesInfo=yM(t,e)}),t.registerAction({type:\\\"updateAxisPointer\\\",event:\\\"updateAxisPointer\\\",update:\\\":updateAxisPointer\\\"},$N)}u(a5,o5=ym),a5.prototype.makeElOption=function(t,e,n,i,o){var r,a,s,l,u,h,c=n.axis,p=(\\\"angle\\\"===c.dim&&(this.animationThreshold=Math.PI/18),c.polar),d=p.getOtherAxis(c).getExtent(),f=c.dataToCoord(e),g=i.get(\\\"type\\\"),g=(g&&\\\"none\\\"!==g&&(h=SN(i),(g=u5[g](c,p,f,d)).style=h,t.graphicKey=g.type,t.pointer=g),e=e,r=n,a=p,s=i.get([\\\"label\\\",\\\"margin\\\"]),c=r.axis,f=c.dataToCoord(e),d=a.getAngleAxis().getExtent()[0]/180*Math.PI,h=a.getRadiusAxis().getExtent(),f=\\\"radius\\\"===c.dim?(oo(c=[1,0,0,1,0,0],c,d),io(c,c,[a.cx,a.cy]),u=hc([f,-s],c),c=r.getModel(\\\"axisLabel\\\").get(\\\"rotate\\\")||0,l=(d=uM.innerTextLayout(d,c*Math.PI/180,-1)).textAlign,d.textVerticalAlign):(c=h[1],u=a.coordToPoint([c+s,f]),d=a.cx,h=a.cy,l=Math.abs(u[0]-d)/c\u003C.3?\\\"center\\\":u[0]>d?\\\"left\\\":\\\"right\\\",Math.abs(u[1]-h)/c\u003C.3?\\\"middle\\\":u[1]>h?\\\"top\\\":\\\"bottom\\\"),{position:u,align:l,verticalAlign:f});MN(t,n,i,o,g)};var o5,r5=a5;function a5(){return null!==o5&&o5.apply(this,arguments)||this}var s5,l5,u5={line:function(t,e,n,i){return\\\"angle\\\"===t.dim?{type:\\\"Line\\\",shape:DN(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:\\\"Circle\\\",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return\\\"angle\\\"===t.dim?{type:\\\"Sector\\\",shape:kN(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:\\\"Sector\\\",shape:kN(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},h5=(u(p5,l5=m),p5.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},p5.type=\\\"polar\\\",p5.dependencies=[\\\"radiusAxis\\\",\\\"angleAxis\\\"],p5.defaultOption={z:0,center:[\\\"50%\\\",\\\"50%\\\"],radius:\\\"80%\\\"},p5),e=(u(c5,s5=m),c5.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"polar\\\",Wr).models[0]},c5.type=\\\"polarAxis\\\",c5);function c5(){return null!==s5&&s5.apply(this,arguments)||this}function p5(){var t=null!==l5&&l5.apply(this,arguments)||this;return t.type=p5.type,t}ut(e,ox);u(b5,g5=e),b5.type=\\\"angleAxis\\\";var d5,f5,g5,y5=b5,m5=(u(_5,f5=e),_5.type=\\\"radiusAxis\\\",_5),v5=(u(x5,d5=Xc),x5.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[\\\"radius\\\"===this.dim?0:1]},x5);function x5(t,e){return d5.call(this,\\\"radius\\\",t,e)||this}function _5(){var t=null!==f5&&f5.apply(this,arguments)||this;return t.type=_5.type,t}function b5(){var t=null!==g5&&g5.apply(this,arguments)||this;return t.type=b5.type,t}v5.prototype.dataToRadius=Xc.prototype.dataToCoord,v5.prototype.radiusToData=Xc.prototype.coordToData;var w5,S5=i(),M5=(u(I5,w5=Xc),I5.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[\\\"radius\\\"===this.dim?0:1]},I5.prototype.calculateCategoryInterval=function(){var t,e,n=this.getLabelModel(),i=this.scale,o=i.getExtent(),i=i.count();return o[1]-o[0]\u003C1?0:(o=o[0],t=this.dataToCoord(o+1)-this.dataToCoord(o),t=Math.abs(t),o=Po(null==o?\\\"\\\":o+\\\"\\\",n.getFont(),\\\"center\\\",\\\"top\\\"),n=Math.max(o.height,7)/t,isNaN(n)&&(n=1/0),o=Math.max(0,Math.floor(n)),n=(t=S5(this.model)).lastAutoInterval,e=t.lastTickCount,null!=n&&null!=e&&Math.abs(n-o)\u003C=1&&Math.abs(e-i)\u003C=1&&o\u003Cn?o=n:(t.lastTickCount=i,t.lastAutoInterval=o),o)},I5);function I5(t,e){return w5.call(this,\\\"angle\\\",t,e||[0,360])||this}M5.prototype.dataToAngle=Xc.prototype.dataToCoord,M5.prototype.angleToData=Xc.prototype.coordToData;var T5=[\\\"radius\\\",\\\"angle\\\"],C5=(D5.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},D5.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},D5.prototype.getAxis=function(t){return this[\\\"_\\\"+t+\\\"Axis\\\"]},D5.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},D5.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},D5.prototype.getAngleAxis=function(){return this._angleAxis},D5.prototype.getRadiusAxis=function(){return this._radiusAxis},D5.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},D5.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAngleAxis()},D5.prototype.getTooltipAxes=function(t){var e=null!=t&&\\\"auto\\\"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},D5.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},D5.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},D5.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]),o=(i.inverse?r=a-360:a=r+360,Math.sqrt(e*e+n*n));e/=o,n/=o;for(var s=Math.atan2(-n,e)/Math.PI*180,l=s\u003Cr?1:-1;s\u003Cr||a\u003Cs;)s+=360*l;return[o,s]},D5.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},D5.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice(),n=(e[0]>e[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,n=n*n+i*i-1e-4,i=this.r,o=this.r0;return n\u003C=i*i&&o*o\u003C=n}}},D5.prototype.convertToPixel=function(t,e,n){return A5(e)===this?this.dataToPoint(n):null},D5.prototype.convertFromPixel=function(t,e,n){return A5(e)===this?this.pointToData(n):null},D5);function D5(t){this.dimensions=T5,this.type=\\\"polar\\\",this.cx=0,this.cy=0,this._radiusAxis=new v5,this._angleAxis=new M5,this.axisPointerEnabled=!0,this.name=t||\\\"\\\",this._radiusAxis.polar=this._angleAxis.polar=this}function A5(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function k5(t,e){var n,i,o=this,r=o.getAngleAxis(),a=o.getRadiusAxis();r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===o&&(lt(ix(e=t.getData(),\\\"radius\\\"),function(t){a.scale.unionExtentFromData(e,t)}),lt(ix(e,\\\"angle\\\"),function(t){r.scale.unionExtentFromData(e,t)}))}),$1(r.scale,r.model),$1(a.scale,a.model),\\\"category\\\"!==r.type||r.onBand||(n=r.getExtent(),i=360/r.scale.count(),r.inverse?n[1]+=i:n[1]-=i,r.setExtent(n[0],n[1]))}function L5(t,e){var n;t.type=e.get(\\\"type\\\"),t.scale=J1(e),t.onBand=e.get(\\\"boundaryGap\\\")&&\\\"category\\\"===t.type,t.inverse=e.get(\\\"inverse\\\"),\\\"angleAxis\\\"===e.mainType&&(t.inverse=t.inverse!==e.get(\\\"clockwise\\\"),n=e.get(\\\"startAngle\\\"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var P5={dimensions:T5,create:function(t,u){var h=[];return t.eachComponent(\\\"polar\\\",function(t,e){var n,i,o=new C5(e+\\\"\\\"),r=(o.update=k5,o.getRadiusAxis()),a=o.getAngleAxis(),s=t.findAxisModel(\\\"radiusAxis\\\"),l=t.findAxisModel(\\\"angleAxis\\\");L5(r,s),L5(a,l),e=o,i=u,r=(n=t).get(\\\"center\\\"),s=i.getWidth(),a=i.getHeight(),e.cx=F(r[0],s),e.cy=F(r[1],a),r=e.getRadiusAxis(),s=Math.min(s,a)/2,null==(a=n.get(\\\"radius\\\"))?a=[0,\\\"100%\\\"]:U(a)||(a=[0,a]),a=[F(a[0],s),F(a[1],s)],r.inverse?r.setExtent(a[1],a[0]):r.setExtent(a[0],a[1]),h.push(o),(t.coordinateSystem=o).model=t}),t.eachSeries(function(t){var e;\\\"polar\\\"===t.get(\\\"coordinateSystem\\\")&&(e=t.getReferringComponents(\\\"polar\\\",Wr).models[0],t.coordinateSystem=e.coordinateSystem)}),h}},O5=[\\\"axisLine\\\",\\\"axisLabel\\\",\\\"axisTick\\\",\\\"minorTick\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\",\\\"splitArea\\\"];function R5(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),o=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function N5(t){return t.getRadiusAxis().inverse?0:1}function E5(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)\u003C1e-4&&t.pop()}u(X5,V5=SM),X5.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get(\\\"show\\\")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),E5(s=Y(n.getViewLabels(),function(t){t=L(t);var e=n.scale,e=\\\"ordinal\\\"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),E5(r),lt(O5,function(t){!e.get([t,\\\"show\\\"])||n.scale.isBlank()&&\\\"axisLine\\\"!==t||F5[t](this.group,e,i,r,a,o,s)},this))},X5.type=\\\"angleAxis\\\";var z5,V5,B5=X5,F5={axisLine:function(t,e,n,i,o,r){var a=e.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]),s=N5(n),l=s?0:1;(s=0===r[l]?new Tu({shape:{cx:n.cx,cy:n.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):new Ku({shape:{cx:n.cx,cy:n.cy,r:r[s],r0:r[l]},style:a.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(s)},axisTick:function(t,e,n,i,o,r){var a=e.getModel(\\\"axisTick\\\"),s=(a.get(\\\"inside\\\")?-1:1)*a.get(\\\"length\\\"),l=r[N5(n)],u=Y(i,function(t){return new hh({shape:R5(n,[l,l+s],t.coord)})});t.add(ac(u,{style:H(a.getModel(\\\"lineStyle\\\").getLineStyle(),{stroke:e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel(\\\"axisTick\\\"),s=e.getModel(\\\"minorTick\\\"),l=(a.get(\\\"inside\\\")?-1:1)*s.get(\\\"length\\\"),u=r[N5(n)],h=[],c=0;c\u003Co.length;c++)for(var p=0;p\u003Co[c].length;p++)h.push(new hh({shape:R5(n,[u,u+l],o[c][p].coord)}));t.add(ac(h,{style:H(s.getModel(\\\"lineStyle\\\").getLineStyle(),H(a.getLineStyle(),{stroke:e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])}))}))}},axisLabel:function(l,u,h,t,e,c,n){var p=u.getCategories(!0),d=u.getModel(\\\"axisLabel\\\"),f=d.get(\\\"margin\\\"),g=u.get(\\\"triggerEvent\\\");lt(n,function(t,e){var n=d,i=t.tickValue,o=c[N5(h)],r=h.coordToPoint([o+f,t.coord]),a=h.cx,s=h.cy,a=Math.abs(r[0]-a)/o\u003C.3?\\\"center\\\":r[0]>a?\\\"left\\\":\\\"right\\\",o=Math.abs(r[1]-s)/o\u003C.3?\\\"middle\\\":r[1]>s?\\\"top\\\":\\\"bottom\\\",i=(p&&p[i]&&R(s=p[i])&&s.textStyle&&(n=new qc(s.textStyle,d,d.ecModel)),new z({silent:uM.isLabelSilent(u),style:Dc(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),text:t.formattedLabel,align:a,verticalAlign:o})}));l.add(i),g&&((s=uM.makeAxisEventDataBase(u)).targetType=\\\"axisLabel\\\",s.value=t.rawLabel,$(i).eventData=s)},this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel(\\\"splitLine\\\").getModel(\\\"lineStyle\\\"),s=0,l=(l=a.get(\\\"color\\\"))instanceof Array?l:[l],u=[],h=0;h\u003Ci.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new hh({shape:R5(n,r,i[h].coord)}))}for(h=0;h\u003Cu.length;h++)t.add(ac(u[h],{style:H({stroke:l[h%l.length]},a.getLineStyle()),silent:!0,z:e.get(\\\"z\\\")}))},minorSplitLine:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel(\\\"minorSplitLine\\\").getModel(\\\"lineStyle\\\"),s=[],l=0;l\u003Co.length;l++)for(var u=0;u\u003Co[l].length;u++)s.push(new hh({shape:R5(n,r,o[l][u].coord)}));t.add(ac(s,{style:a.getLineStyle(),silent:!0,z:e.get(\\\"z\\\")}))}},splitArea:function(t,e,n,i,o,r){if(i.length){for(var a=e.getModel(\\\"splitArea\\\").getModel(\\\"areaStyle\\\"),s=0,l=(l=a.get(\\\"color\\\"))instanceof Array?l:[l],u=[],h=Math.PI/180,c=-i[0].coord*h,p=Math.min(r[0],r[1]),d=Math.max(r[0],r[1]),f=e.get(\\\"clockwise\\\"),g=1,y=i.length;g\u003C=y;g++){var m=(g===y?i[0]:i[g]).coord,v=s++%l.length;u[v]=u[v]||[],u[v].push(new Xu({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:c,endAngle:-m*h,clockwise:f},silent:!0})),c=-m*h}for(g=0;g\u003Cu.length;g++)t.add(ac(u[g],{style:H({fill:l[g%l.length]},a.getAreaStyle()),silent:!0}))}}},G5=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],W5=[\\\"splitLine\\\",\\\"splitArea\\\",\\\"minorSplitLine\\\"],H5=(u(U5,z5=SM),U5.prototype.render=function(e,t){var n,i,o,r,a,s,l,u,h;this.group.removeAll(),e.get(\\\"show\\\")&&(n=this._axisGroup,i=this._axisGroup=new K,this.group.add(i),o=e.axis,h=(r=o.polar).getAngleAxis(),a=o.getTicksCoords(),s=o.getMinorTicksCoords(),l=h.getExtent()[0],u=o.getExtent(),h={position:[r.cx,r.cy],rotation:l/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel(\\\"axisLabel\\\").get(\\\"rotate\\\"),z2:1},h=new uM(e,h),lt(G5,h.add,h),i.add(h.getGroup()),dc(n,i,e),lt(W5,function(t){e.get([t,\\\"show\\\"])&&!o.scale.isBlank()&&Y5[t](this.group,e,r,l,u,a,s)},this))},U5.type=\\\"radiusAxis\\\",U5),Y5={splitLine:function(t,e,n,i,o,r){for(var a=e.getModel(\\\"splitLine\\\").getModel(\\\"lineStyle\\\"),s=0,l=(l=a.get(\\\"color\\\"))instanceof Array?l:[l],u=[],h=0;h\u003Cr.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new Tu({shape:{cx:n.cx,cy:n.cy,r:Math.max(r[h].coord,0)}}))}for(h=0;h\u003Cu.length;h++)t.add(ac(u[h],{style:H({stroke:l[h%l.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,o,r,a){if(a.length){for(var s=e.getModel(\\\"minorSplitLine\\\").getModel(\\\"lineStyle\\\"),l=[],u=0;u\u003Ca.length;u++)for(var h=0;h\u003Ca[u].length;h++)l.push(new Tu({shape:{cx:n.cx,cy:n.cy,r:a[u][h].coord}}));t.add(ac(l,{style:H({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,o,r){if(r.length){for(var a=e.getModel(\\\"splitArea\\\").getModel(\\\"areaStyle\\\"),s=0,l=(l=a.get(\\\"color\\\"))instanceof Array?l:[l],u=[],h=r[0].coord,c=1;c\u003Cr.length;c++){var p=s++%l.length;u[p]=u[p]||[],u[p].push(new Xu({shape:{cx:n.cx,cy:n.cy,r0:h,r:r[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[c].coord}for(c=0;c\u003Cu.length;c++)t.add(ac(u[c],{style:H({fill:l[c%l.length]},a.getAreaStyle()),silent:!0}))}}};function U5(){var t=null!==z5&&z5.apply(this,arguments)||this;return t.type=U5.type,t.axisPointerClass=\\\"PolarAxisPointer\\\",t}function X5(){var t=null!==V5&&V5.apply(this,arguments)||this;return t.type=X5.type,t.axisPointerClass=\\\"PolarAxisPointer\\\",t}function Z5(t){return t.get(\\\"stack\\\")||\\\"__ec_stack_\\\"+t.seriesIndex}function j5(t,e){return e.dim+t.model.componentIndex}function q5(t,e,n){var i,u,c,k={},L=(i=pt(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&\\\"polar\\\"===t.coordinateSystem.type}),u={},lt(i,function(t,e){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),i=j5(i,o),r=o.getExtent(),o=\\\"category\\\"===o.type?o.getBandWidth():Math.abs(r[1]-r[0])/n.count(),r=u[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:\\\"20%\\\",gap:\\\"30%\\\",stacks:{}},n=r.stacks,i=(u[i]=r,Z5(t)),a=(n[i]||r.autoWidthCount++,n[i]=n[i]||{width:0,maxWidth:0},F(t.get(\\\"barWidth\\\"),o)),o=F(t.get(\\\"barMaxWidth\\\"),o),s=t.get(\\\"barGap\\\"),l=t.get(\\\"barCategoryGap\\\");a&&!n[i].width&&(a=Math.min(r.remainedWidth,a),n[i].width=a,r.remainedWidth-=a),o&&(n[i].maxWidth=o),null!=s&&(r.gap=s),null!=l&&(r.categoryGap=l)}),c={},lt(u,function(t,n){c[n]={};var e=t.stacks,i=t.bandWidth,i=F(t.categoryGap,i),o=F(t.gap,1),r=t.remainedWidth,a=t.autoWidthCount,s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);lt(e,function(t,e){var n=t.maxWidth;n&&n\u003Cs&&(n=Math.min(n,r),t.width&&(n=Math.min(n,t.width)),r-=n,t.width=n,a--)}),s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);var l,u=0,h=(lt(e,function(t,e){t.width||(t.width=s),u+=(l=t).width*(1+o)}),l&&(u-=l.width*o),-u/2);lt(e,function(t,e){c[n][e]=c[n][e]||{offset:h,width:t.width},h+=t.width*(1+o)})}),c);e.eachSeriesByType(t,function(t){if(\\\"polar\\\"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=j5(n,i),r=Z5(t),o=L[o][r],a=o.offset,s=o.width,l=n.getOtherAxis(i),u=t.coordinateSystem.cx,h=t.coordinateSystem.cy,c=t.get(\\\"barMinHeight\\\")||0,p=t.get(\\\"barMinAngle\\\")||0;k[r]=k[r]||[];for(var d=e.mapDimension(l.dim),f=e.mapDimension(i.dim),g=Xv(e,d),y=\\\"radius\\\"!==i.dim||!t.get(\\\"roundCap\\\",!0),m=l.dataToCoord(0),v=0,x=e.count();v\u003Cx;v++){var _,b,w=e.get(d,v),S=e.get(f,v),M=0\u003C=w?\\\"p\\\":\\\"n\\\",I=m,T=(g&&(k[r][S]||(k[r][S]={p:m,n:m}),I=k[r][S][M]),void 0),C=void 0,D=void 0,A=void 0;\\\"radius\\\"===l.dim?(b=l.dataToCoord(w)-m,_=i.dataToCoord(S),C=(T=I)+(b=Math.abs(b)\u003Cc?(b\u003C0?-1:1)*c:b),A=(D=_-a)-s,g&&(k[r][S][M]=C)):(b=l.dataToCoord(w,y)-m,C=(T=i.dataToCoord(S)+a)+s,A=(D=I)+(b=Math.abs(b)\u003Cp?(b\u003C0?-1:1)*p:b),g&&(k[r][S][M]=A)),e.setItemLayout(v,{cx:u,cy:h,r0:T,r:C,startAngle:-D*Math.PI/180,endAngle:-A*Math.PI/180,clockwise:A\u003C=D})}}})}var K5,$5={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},J5={splitNumber:5},Q5=(u(tE,K5=fy),tE.type=\\\"polar\\\",tE);function tE(){var t=null!==K5&&K5.apply(this,arguments)||this;return t.type=tE.type,t}function eE(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},r=i.position,i=i.orient,n=n.getRect(),n=[n.x,n.x+n.width,n.y,n.y+n.height],a={horizontal:{top:n[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}},a=(o.position=[\\\"vertical\\\"===i?a.vertical[r]:n[0],\\\"horizontal\\\"===i?a.horizontal[r]:n[3]],o.rotation=Math.PI/2*{horizontal:0,vertical:1}[i],o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get([\\\"axisTick\\\",\\\"inside\\\"])&&(o.tickDirection=-o.tickDirection),wt(e.labelInside,t.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(o.labelDirection=-o.labelDirection),e.rotate);return null==a&&(a=t.get([\\\"axisLabel\\\",\\\"rotate\\\"])),o.labelRotation=\\\"top\\\"===r?-a:a,o.z2=1,o}var nE,iE,oE=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],rE=[\\\"splitArea\\\",\\\"splitLine\\\"],aE=(u(hE,iE=SM),hE.prototype.render=function(e,t,n,i){var o=this.group,r=(o.removeAll(),this._axisGroup),a=(this._axisGroup=new K,eE(e)),a=new uM(e,a);lt(oE,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),lt(rE,function(t){e.get([t,\\\"show\\\"])&&sE[t](this,this.group,this._axisGroup,e)},this),dc(r,this._axisGroup,e),iE.prototype.render.call(this,e,t,n,i)},hE.prototype.remove=function(){CM(this)},hE.type=\\\"singleAxis\\\",hE),sE={splitLine:function(t,e,n,i){var o=i.axis;if(!o.scale.isBlank()){for(var r=i.getModel(\\\"splitLine\\\"),a=r.getModel(\\\"lineStyle\\\"),s=(s=a.get(\\\"color\\\"))instanceof Array?s:[s],l=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=[],c=0,p=o.getTicksCoords({tickModel:r}),d=[],f=[],g=0;g\u003Cp.length;++g){var y=o.toGlobalCoord(p[g].coord),y=(u?(d[0]=y,d[1]=l.y,f[0]=y,f[1]=l.y+l.height):(d[0]=l.x,d[1]=y,f[0]=l.x+l.width,f[1]=y),c++%s.length);h[y]=h[y]||[],h[y].push(new hh({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},silent:!0}))}for(var m=a.getLineStyle([\\\"color\\\"]),g=0;g\u003Ch.length;++g)e.add(ac(h[g],{style:H({stroke:s[g%s.length]},m),silent:!0}))}},splitArea:function(t,e,n,i){TM(t,n,i,i)}},lE=(u(uE,nE=m),uE.prototype.getCoordSysModel=function(){return this},uE.type=\\\"singleAxis\\\",uE.layoutMode=\\\"box\\\",uE.defaultOption={left:\\\"5%\\\",top:\\\"5%\\\",right:\\\"5%\\\",bottom:\\\"5%\\\",type:\\\"value\\\",position:\\\"bottom\\\",orient:\\\"horizontal\\\",axisLine:{show:!0,lineStyle:{width:1,type:\\\"solid\\\"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:\\\"auto\\\"},splitLine:{show:!0,lineStyle:{type:\\\"dashed\\\",opacity:.2}}},uE);function uE(){var t=null!==nE&&nE.apply(this,arguments)||this;return t.type=uE.type,t}function hE(){var t=null!==iE&&iE.apply(this,arguments)||this;return t.type=hE.type,t.axisPointerClass=\\\"SingleAxisPointer\\\",t}ut(lE,ox.prototype);u(yE,cE=Xc),yE.prototype.isHorizontal=function(){var t=this.position;return\\\"top\\\"===t||\\\"bottom\\\"===t},yE.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]};var cE,pE=yE,dE=[\\\"single\\\"],fE=(gE.prototype._init=function(t,e,n){var i=this.dimension,i=new pE(i,J1(t),[0,0],t.get(\\\"type\\\"),t.get(\\\"position\\\")),o=\\\"category\\\"===i.type;i.onBand=o&&t.get(\\\"boundaryGap\\\"),i.inverse=t.get(\\\"inverse\\\"),i.orient=t.get(\\\"orient\\\"),(t.axis=i).model=t,(i.coordinateSystem=this)._axis=i},gE.prototype.update=function(t,e){t.eachSeries(function(t){var e;t.coordinateSystem===this&&(lt((e=t.getData()).mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),$1(this._axis.scale,this._axis.model))},this)},gE.prototype.resize=function(t,e){this._rect=Jp({left:t.get(\\\"left\\\"),top:t.get(\\\"top\\\"),right:t.get(\\\"right\\\"),bottom:t.get(\\\"bottom\\\"),width:t.get(\\\"width\\\"),height:t.get(\\\"height\\\")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},gE.prototype.getRect=function(){return this._rect},gE.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},gE.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],n=t.isHorizontal();t.toGlobalCoord=n?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=n?function(t){return t-e}:function(t){return i-t+e}},gE.prototype.getAxis=function(){return this._axis},gE.prototype.getBaseAxis=function(){return this._axis},gE.prototype.getAxes=function(){return[this._axis]},gE.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},gE.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return\\\"horizontal\\\"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]\u003C=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]\u003C=e.y+e.height},gE.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[\\\"horizontal\\\"===e.orient?0:1]))]},gE.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o=\\\"horizontal\\\"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},gE.prototype.convertToPixel=function(t,e,n){return mE(e)===this?this.dataToPoint(n):null},gE.prototype.convertFromPixel=function(t,e,n){return mE(e)===this?this.pointToData(n):null},gE);function gE(t,e,n){this.type=\\\"single\\\",this.dimension=\\\"single\\\",this.dimensions=dE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function yE(t,e,n,i,o){var r=cE.call(this,t,e,n)||this;return r.type=i||\\\"value\\\",r.position=o||\\\"bottom\\\",r}function mE(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var vE,xE={create:function(i,o){var r=[];return i.eachComponent(\\\"singleAxis\\\",function(t,e){var n=new fE(t,i,o);n.name=\\\"single_\\\"+e,n.resize(t,o),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e;\\\"singleAxis\\\"===t.get(\\\"coordinateSystem\\\")&&(e=t.getReferringComponents(\\\"singleAxis\\\",Wr).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:dE},_E=[\\\"x\\\",\\\"y\\\"],bE=[\\\"width\\\",\\\"height\\\"],wE=(u(ME,vE=ym),ME.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=TE(s,1-IE(a)),s=s.dataToPoint(e)[0],u=i.get(\\\"type\\\");u&&\\\"none\\\"!==u&&(r=SN(i),(u=SE[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),CN(e,t,eE(n),n,i,o)},ME.prototype.getHandleTransform=function(t,e,n){var i=eE(e,{labelInside:!1}),o=(i.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]),TN(e.axis,t,i));return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection\u003C0?Math.PI:0)}},ME.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.coordinateSystem,o=IE(o),a=TE(r,o),s=[t.x,t.y],a=(s[o]+=e[o],s[o]=Math.min(a[1],s[o]),s[o]=Math.max(a[0],s[o]),TE(r,1-o)),r=(a[1]+a[0])/2,a=[r,r];return a[o]=s[o],{x:s[0],y:s[1],rotation:t.rotation,cursorPoint:a,tooltipOption:{verticalAlign:\\\"middle\\\"}}},ME),SE={line:function(t,e,n){return{type:\\\"Line\\\",subPixelOptimize:!0,shape:DN([e,n[0]],[e,n[1]],IE(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:\\\"Rect\\\",shape:AN([e-i/2,n[0]],[i,o],IE(t))}}};function ME(){return null!==vE&&vE.apply(this,arguments)||this}function IE(t){return t.isHorizontal()?0:1}function TE(t,e){var n=t.getRect();return[n[_E[e]],n[_E[e]]+n[bE[e]]]}u(AE,CE=fy),AE.type=\\\"single\\\";var CE,DE=AE;function AE(){var t=null!==CE&&CE.apply(this,arguments)||this;return t.type=AE.type,t}u(PE,kE=m),PE.prototype.init=function(t,e,n){var i=nd(t);kE.prototype.init.apply(this,arguments),OE(t,i)},PE.prototype.mergeOption=function(t){kE.prototype.mergeOption.apply(this,arguments),OE(this.option,t)},PE.prototype.getCellSize=function(){return this.option.cellSize},PE.type=\\\"calendar\\\",PE.defaultOption={z:2,left:80,top:60,cellSize:20,orient:\\\"horizontal\\\",splitLine:{show:!0,lineStyle:{color:\\\"#000\\\",width:1,type:\\\"solid\\\"}},itemStyle:{color:\\\"#fff\\\",borderWidth:1,borderColor:\\\"#ccc\\\"},dayLabel:{show:!0,firstDay:0,position:\\\"start\\\",margin:\\\"50%\\\",color:\\\"#000\\\"},monthLabel:{show:!0,position:\\\"start\\\",margin:5,align:\\\"center\\\",formatter:null,color:\\\"#000\\\"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:\\\"#ccc\\\",fontFamily:\\\"sans-serif\\\",fontWeight:\\\"bolder\\\",fontSize:20}};var kE,LE=PE;function PE(){var t=null!==kE&&kE.apply(this,arguments)||this;return t.type=PE.type,t}function OE(t,e){var n,i=t.cellSize,i=(1===(n=U(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]),Y([0,1],function(t){return(null!=e[qp[t][0]]||null!=e[qp[t][1]]&&null!=e[qp[t][2]])&&(n[t]=\\\"auto\\\"),null!=n[t]&&\\\"auto\\\"!==n[t]}));ed(t,e,{type:\\\"box\\\",ignoreSize:i})}u(VE,RE=fy),VE.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo(),o=o.getOrient(),a=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,a,o,i),this._renderWeekText(t,a,r,o,i)},VE.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel(\\\"itemStyle\\\").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s\u003C=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new E({shape:{x:l[0],y:l[1],width:r,height:a},cursor:\\\"default\\\",style:o});n.add(l)}},VE.prototype._renderLines=function(n,t,i,o){var r=this,a=n.coordinateSystem,s=n.getModel([\\\"splitLine\\\",\\\"lineStyle\\\"]).getLineStyle(),l=n.get([\\\"splitLine\\\",\\\"show\\\"]),e=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,h=0;u.time\u003C=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?a.getDateInfo(t.start.y+\\\"-\\\"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=a.getDateInfo(c)}function p(t){r._firstDayOfMonth.push(a.getDateInfo(t)),r._firstDayPoints.push(a.dataToRect([t],!1).tl);var e=r._getLinePointsOfOneWeek(n,t,i);r._tlpoints.push(e[0]),r._blpoints.push(e[e.length-1]),l&&r._drawSplitline(e,s,o)}p(a.getNextNDay(t.end.time,1).formatedDate),l&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,e,i),s,o),l&&this._drawSplitline(r._getEdgesPoints(r._blpoints,e,i),s,o)},VE.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],o=\\\"horizontal\\\"===n?0:1;return i[0][o]=i[0][o]-e/2,i[1][o]=i[1][o]+e/2,i},VE.prototype._drawSplitline=function(t,e,n){var i=new rh({z2:20,shape:{points:t},style:e});n.add(i)},VE.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a\u003C7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l[\\\"horizontal\\\"===n?\\\"bl\\\":\\\"tr\\\"]}return r},VE.prototype._formatterLabel=function(t,e){return X(t)&&t?(n=t,lt(e,function(t,e){n=n.replace(\\\"{\\\"+e+\\\"}\\\",t)}),n):A(t)?t(e):e.nameMap;var n},VE.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=e[1],s=[\\\"center\\\",\\\"bottom\\\"],l=(\\\"bottom\\\"===i?(a+=o,s=[\\\"center\\\",\\\"top\\\"]):\\\"left\\\"===i?r-=o:\\\"right\\\"===i?(r+=o,s=[\\\"center\\\",\\\"top\\\"]):a-=o,0);return{rotation:l=\\\"left\\\"!==i&&\\\"right\\\"!==i?l:Math.PI/2,x:r,y:a,style:{align:s[0],verticalAlign:s[1]}}},VE.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u,h=t.getModel(\\\"yearLabel\\\");h.get(\\\"show\\\")&&(o=h.get(\\\"margin\\\"),r=(r=h.get(\\\"position\\\"))||(\\\"horizontal\\\"!==n?\\\"top\\\":\\\"left\\\"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,s=(u[0][1]+u[1][1])/2,a={top:[a,u[l=\\\"horizontal\\\"===n?0:1][1]],bottom:[a,u[1-l][1]],left:[u[1-l][0],s],right:[u[l][0],s]},l=e.start.y,+e.end.y>+e.start.y&&(l=l+\\\"-\\\"+e.end.y),u=h.get(\\\"formatter\\\"),s={start:e.start.y,end:e.end.y,nameMap:l},l=this._formatterLabel(u,s),(u=new z({z2:30,style:Dc(h,{text:l})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},VE.prototype._monthTextPositionControl=function(t,e,n,i,o){var r=\\\"left\\\",a=\\\"top\\\",s=t[0],l=t[1];return\\\"horizontal\\\"===n?(l+=o,e&&(r=\\\"center\\\"),\\\"start\\\"===i&&(a=\\\"bottom\\\")):(s+=o,e&&(a=\\\"middle\\\"),\\\"start\\\"===i&&(r=\\\"right\\\")),{x:s,y:l,align:r,verticalAlign:a}},VE.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel(\\\"monthLabel\\\");if(o.get(\\\"show\\\"))for(var r=o.get(\\\"nameMap\\\"),a=o.get(\\\"margin\\\"),s=o.get(\\\"position\\\"),l=o.get(\\\"align\\\"),u=[this._tlpoints,this._blpoints],h=(r&&!X(r)||(r=(e=r?sp(r)||e:e).get([\\\"time\\\",\\\"monthAbbr\\\"])||[]),\\\"start\\\"===s?0:1),c=\\\"horizontal\\\"===n?0:1,a=\\\"start\\\"===s?-a:a,p=\\\"center\\\"===l,d=0;d\u003Cu[h].length-1;d++){var f=u[h][d].slice(),g=this._firstDayOfMonth[d],y=(p&&(y=this._firstDayPoints[d],f[c]=(y[c]+u[0][d+1][c])/2),o.get(\\\"formatter\\\")),m=r[+g.m-1],g={yyyy:g.y,yy:(g.y+\\\"\\\").slice(2),MM:g.m,M:+g.m,nameMap:m},m=this._formatterLabel(y,g),g=new z({z2:30,style:Z(Dc(o,{text:m}),this._monthTextPositionControl(f,p,n,s,a))});i.add(g)}},VE.prototype._weekTextPositionControl=function(t,e,n,i,o){var r=\\\"center\\\",a=\\\"middle\\\",s=t[0],l=t[1],u=\\\"start\\\"===n;return\\\"horizontal\\\"===e?(s=s+i+(u?1:-1)*o[0]/2,r=u?\\\"right\\\":\\\"left\\\"):(l=l+i+(u?1:-1)*o[1]/2,a=u?\\\"bottom\\\":\\\"top\\\"),{x:s,y:l,align:r,verticalAlign:a}},VE.prototype._renderWeekText=function(t,e,n,i,o){var r=t.getModel(\\\"dayLabel\\\");if(r.get(\\\"show\\\")){var a=t.coordinateSystem,s=r.get(\\\"position\\\"),l=r.get(\\\"nameMap\\\"),u=r.get(\\\"margin\\\"),h=a.getFirstDayOfWeek(),c=(l&&!X(l)||(l=(e=l?sp(l)||e:e).get([\\\"time\\\",\\\"dayOfWeekShort\\\"])||Y(e.get([\\\"time\\\",\\\"dayOfWeekAbbr\\\"]),function(t){return t[0]})),a.getNextNDay(n.end.time,7-n.lweek).time),p=[a.getCellWidth(),a.getCellHeight()],u=F(u,Math.min(p[1],p[0]));\\\"start\\\"===s&&(c=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=0;d\u003C7;d++){var f=a.getNextNDay(c,d),f=a.dataToRect([f.time],!1).center,g=Math.abs((d+h)%7),g=new z({z2:30,style:Z(Dc(r,{text:l[g]}),this._weekTextPositionControl(f,i,s,u,p))});o.add(g)}}},VE.type=\\\"calendar\\\";var RE,NE=VE,EE=(zE.getDimensionsInfo=function(){return[{name:\\\"time\\\",type:\\\"time\\\"},\\\"value\\\"]},zE.prototype.getRangeInfo=function(){return this._rangeInfo},zE.prototype.getModel=function(){return this._model},zE.prototype.getRect=function(){return this._rect},zE.prototype.getCellWidth=function(){return this._sw},zE.prototype.getCellHeight=function(){return this._sh},zE.prototype.getOrient=function(){return this._orient},zE.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},zE.prototype.getDateInfo=function(t){var e=(t=fr(t)).getFullYear(),n=t.getMonth()+1,n=n\u003C10?\\\"0\\\"+n:\\\"\\\"+n,i=t.getDate(),i=i\u003C10?\\\"0\\\"+i:\\\"\\\"+i,o=t.getDay();return{y:e+\\\"\\\",m:n,d:i,day:Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+\\\"-\\\"+n+\\\"-\\\"+i,date:t}},zE.prototype.getNextNDay=function(t,e){return 0!==(e=e||0)&&(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},zE.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel(\\\"dayLabel\\\").get(\\\"firstDay\\\"),this._orient=this._model.get(\\\"orient\\\"),this._lineWidth=this._model.getModel(\\\"itemStyle\\\").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=[\\\"width\\\",\\\"height\\\"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a=\\\"horizontal\\\"===this._orient?[n,7]:[7,n],n=(lt([0,1],function(t){l(o,t)&&(r[i[t]]=o[t]*a[t])}),{width:e.getWidth(),height:e.getHeight()}),s=this._rect=Jp(r,n);function l(t,e){return null!=t[e]&&\\\"auto\\\"!==t[e]}lt([0,1],function(t){l(o,t)||(o[t]=s[i[t]]/a[t])}),this._sw=o[0],this._sh=o[1]},zE.prototype.dataToPoint=function(t,e){U(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;return!e||n.time>=i.start.time&&n.time\u003Ci.end.time+864e5?(n=n.day,i=this._getRangeInfo([i.start.time,o]).nthWeek,\\\"vertical\\\"===this._orient?[this._rect.x+n*this._sw+this._sw/2,this._rect.y+i*this._sh+this._sh/2]:[this._rect.x+i*this._sw+this._sw/2,this._rect.y+n*this._sh+this._sh/2]):[NaN,NaN]},zE.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},zE.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},zE.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return\\\"vertical\\\"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},zE.prototype.convertToPixel=function(t,e,n){var i=BE(e);return i===this?i.dataToPoint(n):null},zE.prototype.convertFromPixel=function(t,e,n){var i=BE(e);return i===this?i.pointToData(n):null},zE.prototype.containPoint=function(t){return console.warn(\\\"Not implemented.\\\"),!1},zE.prototype._initRangeOption=function(){var t,e,n,i,o=this._model.get(\\\"range\\\");return U(o)&&1===o.length&&(o=o[0]),U(o)?n=o:(t=o.toString(),/^\\\\d{4}$/.test(t)&&(n=[t+\\\"-01-01\\\",t+\\\"-12-31\\\"]),/^\\\\d{4}[\\\\/|-]\\\\d{1,2}$/.test(t)&&((e=(i=this.getDateInfo(t)).date).setMonth(e.getMonth()+1),e=this.getNextNDay(e,-1),n=[i.formatedDate,e.formatedDate]),/^\\\\d{4}[\\\\/|-]\\\\d{1,2}[\\\\/|-]\\\\d{1,2}$/.test(t)&&(n=[t,t])),n?((i=this._getRangeInfo(n)).start.time>i.end.time&&n.reverse(),n):o},zE.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),a=r.getDate(),s=i[1].date.getDate();if(r.setDate(a+o-1),r.getDate()!==s)for(var l=0\u003Cr.getTime()-i[1].time?1:-1;(n=r.getDate())!==s&&0\u003C(r.getTime()-i[1].time)*l;)o-=l,r.setDate(n-l);var a=Math.floor((o+i[0].day+6)/7),u=e?1-a:a-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:o,weeks:a,nthWeek:u,fweek:i[0].day,lweek:i[1].day}},zE.prototype._getDateByWeeksAndDay=function(t,e,n){var i,o,r=this._getRangeInfo(n);return t>r.weeks||0===t&&e\u003Cr.fweek||t===r.weeks&&e>r.lweek?null:(i=7*(t-1)-r.fweek+e,(o=new Date(r.start.time)).setDate(+r.start.d+i),this.getDateInfo(o))},zE.create=function(t,e){var n=[];return t.eachComponent(\\\"calendar\\\",function(t){var e=new zE(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){\\\"calendar\\\"===t.get(\\\"coordinateSystem\\\")&&(t.coordinateSystem=n[t.get(\\\"calendarIndex\\\")||0])}),n},zE.dimensions=[\\\"time\\\",\\\"value\\\"],zE);function zE(t,e,n){this.type=\\\"calendar\\\",this.dimensions=zE.dimensions,this.getDimensionsInfo=zE.getDimensionsInfo,this._model=t}function VE(){var t=null!==RE&&RE.apply(this,arguments)||this;return t.type=VE.type,t}function BE(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}function FE(e,t){var n;return lt(t,function(t){null!=e[t]&&\\\"auto\\\"!==e[t]&&(n=!0)}),n}var GE=[\\\"transition\\\",\\\"enterFrom\\\",\\\"leaveTo\\\"],WE=GE.concat([\\\"enterAnimation\\\",\\\"updateAnimation\\\",\\\"leaveAnimation\\\"]);function HE(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?GE:WE,o=0;o\u003Ci.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}u($E,UE=m),$E.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,UE.prototype.mergeOption.call(this,t,e),this.option.elements=n},$E.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,l=n.elements=e?[]:n.elements,o=[],i=(this._flatten(i,o,null),Pr(l,o,\\\"normalMerge\\\")),u=this._elOptionsToUpdate=[];lt(i,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(u.push(s),o=s,a=t.existing,o.id=t.keyInfo.id,!o.type&&a&&(o.type=a.type),null==o.parentId&&((r=o.parentOption)?o.parentId=r.id:a&&(o.parentId=a.parentId)),o.parentOption=null,t=l,o=e,r=Z({},n=s),a=t[o],\\\"merge\\\"===(i=n.$action||\\\"merge\\\")?a?(v(a,r,!0),ed(a,r,{ignoreSize:!0}),id(n,a),HE(n,a),HE(n,a,\\\"shape\\\"),HE(n,a,\\\"style\\\"),HE(n,a,\\\"extra\\\"),n.clipPath=a.clipPath):t[o]=r:\\\"replace\\\"===i?t[o]=r:\\\"remove\\\"===i&&a&&(t[o]=null),n=l[e],o=s,n)&&(n.hv=o.hv=[FE(o,[\\\"left\\\",\\\"right\\\"]),FE(o,[\\\"top\\\",\\\"bottom\\\"])],\\\"group\\\"===n.type)&&(i=o,null==(a=n).width&&(a.width=i.width=0),null==a.height&&(a.height=i.height=0))},this),n.elements=pt(l,function(t){return t&&delete t.$action,null!=t})},$E.prototype._flatten=function(t,n,i){lt(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,\\\"group\\\"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},$E.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},$E.type=\\\"graphic\\\",$E.defaultOption={elements:[]};var YE,UE,XE=$E,ZE={path:null,compoundPath:null,group:K,image:Ps,text:z},jE=i(),qE=(u(KE,YE=fy),KE.prototype.init=function(){this._elMap=N()},KE.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},KE.prototype._updateElements=function(y){var m,v,x,_,t=y.useElOptionsToUpdate();t&&(m=this._elMap,v=this.group,x=y.get(\\\"z\\\"),_=y.get(\\\"zlevel\\\"),lt(t,function(t){var e,n,i,o,r,a,s=Nr(t.id,null),l=null!=s?m.get(s):null,u=Nr(t.parentId,null),u=null!=u?m.get(u):v,h=t.type,c=t.style,p=(\\\"text\\\"===h&&c&&t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null),t.textContent),d=t.textConfig,h=(c&&xR(c,h,!!d,!!p)&&(c=_R(c,h,!0),!d&&c.textConfig&&(d=t.textConfig=c.textConfig),!p)&&c.textContent&&(p=c.textContent),e=Z({},e=t),lt([\\\"id\\\",\\\"parentId\\\",\\\"$action\\\",\\\"hv\\\",\\\"bounding\\\",\\\"textContent\\\",\\\"clipPath\\\"].concat(jp),function(t){delete e[t]}),e),c=t.$action||\\\"merge\\\",f=\\\"merge\\\"===c,g=\\\"replace\\\"===c,u=(f?((i=!(n=l))?n=QE(s,u,t.type,m):(n&&(jE(n).isNew=!1),FR(n)),n&&(AR(n,h,y,{isInit:i}),ez(n,t,x,_))):g?(tz(l,t,m,y),(n=QE(s,u,t.type,m))&&(AR(n,h,y,{isInit:!0}),ez(n,t,x,_))):\\\"remove\\\"===c&&(kR(l,t),tz(l,t,m,y)),m.get(s));u&&p&&(f?(h=u.getTextContent())?h.attr(p):u.setTextContent(new z(p)):g&&u.setTextContent(new z(p))),u&&((n=t.clipPath)&&(c=n.type,l=void 0,i=!1,f?l=(i=!(s=u.getClipPath())||jE(s).type!==c)?JE(c):s:g&&(i=!0,l=JE(c)),u.setClipPath(l),AR(l,n,y,{isInit:i}),GR(l,n.keyframeAnimation,y)),h=jE(u),u.setTextConfig(d),h.option=t,r=y,a=t,p=$(o=u).eventData,(p=o.silent||o.ignore?p:p||($(o).eventData={componentType:\\\"graphic\\\",componentIndex:r.componentIndex,name:o.name}))&&(p.info=a.info),xc({el:u,componentModel:y,itemName:u.name,itemTooltipOption:t.tooltip}),GR(u,t.keyframeAnimation,y))}))},KE.prototype._relocate=function(t,e){for(var n,i,o,r,a,s,l=t.option.elements,u=this.group,h=this._elMap,c=e.getWidth(),p=e.getHeight(),d=[\\\"x\\\",\\\"y\\\"],f=0;f\u003Cl.length;f++)(s=null!=(a=Nr((r=l[f]).id,null))?h.get(a):null)&&s.isGroup&&(n=(g=s.parent)===u,i=jE(s),o=jE(g),i.width=F(i.option.width,n?c:o.width)||0,i.height=F(i.option.height,n?p:o.height)||0);for(f=l.length-1;0\u003C=f;f--)if(s=null!=(a=Nr((r=l[f]).id,null))?h.get(a):null){var g=s.parent,y=(o=jE(g),{}),m=Qp(s,r,g===u?{width:c,height:p}:{width:o.width,height:o.height},null,{hv:r.hv,boundingMode:r.bounding},y);if(!jE(s).isNew&&m){for(var v=r.transition,x={},_=0;_\u003Cd.length;_++){var b=d[_],w=y[b];v&&(PR(v)||0\u003C=G(v,b))?x[b]=w:s[b]=w}k(s,x,t,0)}else s.attr(y)}},KE.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(t){tz(t,jE(t).option,n,e._lastGraphicModel)}),this._elMap=N()},KE.prototype.dispose=function(){this._clear()},KE.type=\\\"graphic\\\",KE);function KE(){var t=null!==YE&&YE.apply(this,arguments)||this;return t.type=KE.type,t}function $E(){var t=null!==UE&&UE.apply(this,arguments)||this;return t.type=$E.type,t.preventAutoZ=!0,t}function JE(t){var e=new(q(ZE,t)?ZE[t]:nc(t))({});return jE(e).type=t,e}function QE(t,e,n,i){var o=JE(n);return e.add(o),i.set(t,o),jE(o).id=t,jE(o).isNew=!0,o}function tz(t,e,n,i){t&&t.parent&&(\\\"group\\\"===t.type&&t.traverse(function(t){tz(t,e,n,i)}),LR(t,e,i),n.removeKey(jE(t).id))}function ez(n,i,t,e){var o,r;n.isGroup||((o=n).cursor=P(i.cursor,Ca.prototype.cursor),o.z=P(i.z,t||0),o.zlevel=P(i.zlevel,e||0),null!=(r=i.z2)&&(o.z2=r||0)),lt(W(i),function(t){var e=i[t];0===t.indexOf(\\\"on\\\")&&A(e)&&(n[t]=e)}),n.draggable=i.draggable,null!=i.name&&(n.name=i.name),null!=i.id&&(n.id=i.id)}var nz=[\\\"x\\\",\\\"y\\\",\\\"radius\\\",\\\"angle\\\",\\\"single\\\"],iz=[\\\"cartesian2d\\\",\\\"polar\\\",\\\"singleAxis\\\"];function oz(t){return t+\\\"Axis\\\"}function rz(t,e){var n,o=N(),i=[],r=N();for(t.eachComponent({mainType:\\\"dataZoom\\\",query:e},function(t){r.get(t.uid)||s(t)});n=!1,t.eachComponent(\\\"dataZoom\\\",a),n;);function a(t){var i;!r.get(t.uid)&&(i=!1,t.eachTargetAxis(function(t,e){var n=o.get(t);n&&n[e]&&(i=!0)}),i)&&(s(t),n=!0)}function s(t){r.set(t.uid,!0),i.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return i}function az(t){var a=t.ecModel,s={infoList:[],infoMap:N()};return t.eachTargetAxis(function(t,e){var n,i,o,r=a.getComponent(oz(t),e);r&&(n=r.getCoordSysModel())&&(i=n.uid,(o=s.infoMap.get(i))||(s.infoList.push(o={model:n,axisModels:[]}),s.infoMap.set(i,o)),o.axisModels.push(r))}),s}hz.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var sz,lz=hz,hd=(u(uz,sz=m),uz.prototype.init=function(t,e,n){var i=cz(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},uz.prototype.mergeOption=function(t){var e=cz(t);v(this.option,t,!0),v(this.settledOption,e,!0),this._doInit(e)},uz.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);lt([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(t,e){\\\"value\\\"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},uz.prototype._resetTarget=function(){var t=this.get(\\\"orient\\\",!0),e=this._targetAxisInfoMap=N();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||\\\"horizontal\\\",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},uz.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return lt(nz,function(t){var e,n=this.getReferringComponents(oz(t),Hr);n.specified&&(o=!0,e=new lz,lt(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},uz.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,o=t[0];o&&((n=new lz).add(o.componentIndex),r.set(e,n),a=!1,\\\"x\\\"!==e&&\\\"y\\\"!==e||(i=o.getReferringComponents(\\\"grid\\\",Wr).models[0])&<(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents(\\\"grid\\\",Wr).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t=\\\"vertical\\\"===e?\\\"y\\\":\\\"x\\\")+\\\"Axis\\\"}),t),a&&n(i.findComponents({mainType:\\\"singleAxis\\\",filter:function(t){return t.get(\\\"orient\\\",!0)===e}}),\\\"single\\\"),a&<(nz,function(t){var e,n;a&&(e=i.findComponents({mainType:oz(t),filter:function(t){return\\\"category\\\"===t.get(\\\"type\\\",!0)}}))[0]&&((n=new lz).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},uz.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),\\\"y\\\"===e?\\\"vertical\\\":\\\"horizontal\\\"},uz.prototype._setDefaultThrottle=function(t){var e;t.hasOwnProperty(\\\"throttle\\\")&&(this._autoThrottle=!1),this._autoThrottle&&(e=this.ecModel.option,this.option.throttle=e.animation&&0\u003Ce.animationDurationUpdate?100:20)},uz.prototype._updateRangeUse=function(o){var r=this._rangePropMode,a=this.get(\\\"rangeMode\\\");lt([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(t,e){var n=null!=o[t[0]],i=null!=o[t[1]];n&&!i?r[e]=\\\"percent\\\":!n&&i?r[e]=\\\"value\\\":a?r[e]=a[e]:n&&(r[e]=\\\"percent\\\")})},uz.prototype.noTarget=function(){return this._noTarget},uz.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(oz(t),e))},this),n},uz.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){lt(t.indexList,function(t){n.call(i,e,t)})})},uz.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},uz.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(oz(t),e)},uz.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;lt([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},uz.prototype.setCalculatedRange=function(e){var n=this.option;lt([\\\"start\\\",\\\"startValue\\\",\\\"end\\\",\\\"endValue\\\"],function(t){n[t]=e[t]})},uz.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},uz.prototype.getValueRange=function(t,e){var n;return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(n=this.findRepresentativeAxisProxy())?n.getDataValueWindow():void 0},uz.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i\u003Cn.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a\u003Cr.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},uz.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},uz.prototype.getOrient=function(){return this._orient},uz.type=\\\"dataZoom\\\",uz.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"radiusAxis\\\",\\\"angleAxis\\\",\\\"singleAxis\\\",\\\"series\\\",\\\"toolbox\\\"],uz.defaultOption={z:4,filterMode:\\\"filter\\\",start:0,end:100},uz);function uz(){var t=null!==sz&&sz.apply(this,arguments)||this;return t.type=uz.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=[\\\"percent\\\",\\\"percent\\\"],t}function hz(){this.indexList=[],this.indexMap=[]}function cz(e){var n={};return lt([\\\"start\\\",\\\"end\\\",\\\"startValue\\\",\\\"endValue\\\",\\\"throttle\\\"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}u(Sz,fz=hd),Sz.type=\\\"dataZoom.select\\\";var pz,dz,fz,gz=Sz,e=(u(wz,dz=fy),wz.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},wz.type=\\\"dataZoom\\\",wz),yz=(u(bz,pz=e),bz.type=\\\"dataZoom.select\\\",bz),mz=lt,vz=rr,xz=(_z.prototype.hostedBy=function(t){return this._dataZoomModel===t},_z.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},_z.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},_z.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=t.get(\\\"coordinateSystem\\\"),0\u003C=G(iz,e)&&(e=oz(this._dimName),e=t.getReferringComponents(e,Wr).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},_z.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+\\\"Axis\\\",this._axisIndex)},_z.prototype.getMinMaxSpan=function(){return L(this._minMaxSpan)},_z.prototype.calculateDataWindow=function(o){var r,a=this._dataExtent,s=this.getAxisModel().axis.scale,l=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],c=[],p=(mz([\\\"start\\\",\\\"end\\\"],function(t,e){var n=o[t],i=o[t+\\\"Value\\\"];\\\"percent\\\"===l[e]?i=s.parse(ir(n=null==n?u[e]:n,u,a)):(r=!0,n=ir(i=null==i?a[e]:s.parse(i),a,u)),c[e]=i,h[e]=n}),vz(c),vz(h),this._minMaxSpan);function t(t,e,n,i,o){var r=o?\\\"Span\\\":\\\"ValueSpan\\\";KA(0,t,n,\\\"all\\\",p[\\\"min\\\"+r],p[\\\"max\\\"+r]);for(var a=0;a\u003C2;a++)e[a]=ir(t[a],n,i,!0),o&&(e[a]=s.parse(e[a]))}return r?t(c,h,a,u,!1):t(h,c,u,a,!0),{valueWindow:c,percentWindow:h}},_z.prototype.reset=function(t){var e,o,r,n;t===this._dataZoomModel&&(n=this.getTargetSeriesModels(),this._dataExtent=(o=(e=this)._dimName,r=[1/0,-1/0],mz(n,function(t){var n,i;n=r,(i=t.getData())&<(ix(i,o),function(t){var e=i.getApproximateExtent(t);e[0]\u003Cn[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])})}),[(n=j1((n=e.getAxisModel()).axis.scale,n,r).calculate()).min,n.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},_z.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get(\\\"filterMode\\\"),c=this._valueWindow,\\\"none\\\"!==r)&&mz(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&(\\\"weakFilter\\\"===r?(l=i.getStore(),u=Y(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;o\u003Ch.length;o++){var r=l.get(u[o],t),a=!isNaN(r),s=r\u003Cc[0],r=r>c[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):mz(h,function(t){var e;\\\"empty\\\"===r?n.setData(i=i.map(t,function(t){return t>=c[0]&&t\u003C=c[1]?t:NaN})):((e={})[t]=c,i.selectRange(e))}),mz(h,function(t){i.setApproximateExtent(c,t)}))})},_z.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;mz([\\\"min\\\",\\\"max\\\"],function(t){var e=o.get(t+\\\"Span\\\"),n=o.get(t+\\\"ValueSpan\\\");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=ir(r[0]+n,r,[0,100],!0):null!=e&&(n=ir(e,[0,100],r,!0)-r[0]),i[t+\\\"Span\\\"]=e,i[t+\\\"ValueSpan\\\"]=n},this)},_z.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=lr(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax(\\\"min\\\",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax(\\\"max\\\",+i[1].toFixed(t)),e.freeze())},_z);function _z(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}function bz(){var t=null!==pz&&pz.apply(this,arguments)||this;return t.type=bz.type,t}function wz(){var t=null!==dz&&dz.apply(this,arguments)||this;return t.type=wz.type,t}function Sz(){var t=null!==fz&&fz.apply(this,arguments)||this;return t.type=Sz.type,t}var Mz={getTargetSeries:function(r){function t(o){r.eachComponent(\\\"dataZoom\\\",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(oz(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new xz(t,e,i,r),o.push(n.__dzAxisProxy))}),N());return lt(o,function(t){lt(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent(\\\"dataZoom\\\",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent(\\\"dataZoom\\\",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}},Iz=!1;function Tz(t){Iz||(Iz=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Mz),t.registerAction(\\\"dataZoom\\\",function(e,t){lt(rz(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter(\\\"dataZoom\\\",function(){return\\\"slider\\\"}))}function Cz(t){t.registerComponentModel(gz),t.registerComponentView(yz),Tz(t)}var Dz=function(){},Az={};function kz(t,e){Az[t]=e}function Lz(t){return Az[t]}u(Rz,Pz=m),Rz.prototype.optionUpdated=function(){Pz.prototype.optionUpdated.apply(this,arguments);var i=this.ecModel;lt(this.option.feature,function(t,e){var n=Lz(e);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(i)),v(t,n.defaultOption))})},Rz.type=\\\"toolbox\\\",Rz.layoutMode={type:\\\"box\\\",ignoreSize:!0},Rz.defaultOption={show:!0,z:6,orient:\\\"horizontal\\\",left:\\\"right\\\",top:\\\"top\\\",backgroundColor:\\\"transparent\\\",borderColor:\\\"#ccc\\\",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:\\\"#666\\\",color:\\\"none\\\"},emphasis:{iconStyle:{borderColor:\\\"#3E98C5\\\"}},tooltip:{show:!1,position:\\\"bottom\\\"}};var Pz,Oz=Rz;function Rz(){var t=null!==Pz&&Pz.apply(this,arguments)||this;return t.type=Rz.type,t}function Nz(t,e){var n=Ep(e.get(\\\"padding\\\")),i=e.getItemStyle([\\\"color\\\",\\\"opacity\\\"]);return i.fill=e.get(\\\"backgroundColor\\\"),new E({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get(\\\"borderRadius\\\")},style:i,silent:!0,z2:-1})}u(Vz,Ez=fy),Vz.prototype.render=function(f,g,y,m){var v,x,_,b,w,t,e,n,i,o,r,a,S=this.group;function s(t,e){var n,i=w[t],o=w[e],r=_[i],a=new qc(r,f,f.ecModel);if(m&&null!=m.newTitle&&m.featureName===i&&(r.title=m.newTitle),i&&!o){if(0===i.indexOf(\\\"my\\\"))n={onclick:a.option.onclick,featureName:i};else{r=Lz(i);if(!r)return;n=new r}b[i]=n}else if(!(n=b[o]))return;n.uid=ep(\\\"toolbox-feature\\\"),n.model=a,n.ecModel=g,n.api=y;var s,l,u,h,c,p,d,r=n instanceof Dz;i||!o?!a.get(\\\"show\\\")||r&&n.unusable?r&&n.remove&&n.remove(g,y):(l=n,t=i,c=(s=a).getModel(\\\"iconStyle\\\"),p=s.getModel([\\\"emphasis\\\",\\\"iconStyle\\\"]),o=l instanceof Dz&&l.getIcons?l.getIcons():s.get(\\\"icon\\\"),i=s.get(\\\"title\\\")||{},X(o)?(u={})[t]=o:u=o,X(i)?(h={})[t]=i:h=i,d=s.iconPaths={},lt(u,function(t,e){var n=yc(t,{},{x:-v/2,y:-v/2,width:v,height:v}),i=(n.setStyle(c.getItemStyle()),n.ensureState(\\\"emphasis\\\").style=p.getItemStyle(),new z({style:{text:h[e],align:p.get(\\\"textAlign\\\"),borderRadius:p.get(\\\"textBorderRadius\\\"),padding:p.get(\\\"textPadding\\\"),fill:null},ignore:!0}));n.setTextContent(i),xc({el:n,componentModel:f,itemName:e,formatterParamsExtra:{title:h[e]}}),n.__title=h[e],n.on(\\\"mouseover\\\",function(){var t=p.getItemStyle(),e=x?null==f.get(\\\"right\\\")&&\\\"right\\\"!==f.get(\\\"left\\\")?\\\"right\\\":\\\"left\\\":null==f.get(\\\"bottom\\\")&&\\\"bottom\\\"!==f.get(\\\"top\\\")?\\\"bottom\\\":\\\"top\\\";i.setStyle({fill:p.get(\\\"textFill\\\")||t.fill||t.stroke||\\\"#000\\\",backgroundColor:p.get(\\\"textBackgroundColor\\\")}),n.setTextConfig({position:p.get(\\\"textPosition\\\")||e}),i.ignore=!f.get(\\\"showTitle\\\"),y.enterEmphasis(this)}).on(\\\"mouseout\\\",function(){\\\"emphasis\\\"!==s.get([\\\"iconStatus\\\",e])&&y.leaveEmphasis(this),i.hide()}),(\\\"emphasis\\\"===s.get([\\\"iconStatus\\\",e])?Rl:Nl)(n),S.add(n),n.on(\\\"click\\\",I(l.onclick,l,g,y,e)),d[e]=n}),a.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&(\\\"emphasis\\\"===e?Rl:Nl)(i[t])},n instanceof Dz&&n.render&&n.render(a,g,y,m)):r&&n.dispose&&n.dispose(g,y)}S.removeAll(),f.get(\\\"show\\\")&&(v=+f.get(\\\"itemSize\\\"),x=\\\"vertical\\\"===f.get(\\\"orient\\\"),_=f.get(\\\"feature\\\")||{},b=this._features||(this._features={}),w=[],lt(_,function(t,e){w.push(e)}),new fv(this._featureNames||[],w).add(s).update(s).remove(D(s,null)).execute(),this._featureNames=w,t=S,n=y,i=(e=f).getBoxLayoutParams(),o=e.get(\\\"padding\\\"),r={width:n.getWidth(),height:n.getHeight()},a=Jp(i,r,o),$p(e.get(\\\"orient\\\"),t,e.get(\\\"itemGap\\\"),a.width,a.height),Qp(t,i,r,o),S.add(Nz(S.getBoundingRect(),f)),x||S.eachChild(function(t){var e,n,i=t.__title,o=t.ensureState(\\\"emphasis\\\"),o=o.textConfig||(o.textConfig={}),r=t.getTextContent(),r=r&&r.ensureState(\\\"emphasis\\\");r&&!A(r)&&i&&(r=r.style||(r.style={}),i=Po(i,z.makeFont(r)),e=t.x+S.x,n=!1,t.y+S.y+v+i.height>y.getHeight()&&(o.position=\\\"top\\\",n=!0),n=n?-5-i.height:v+10,e+i.width/2>y.getWidth()?(o.position=[\\\"100%\\\",n],r.align=\\\"right\\\"):e-i.width/2\u003C0&&(o.position=[0,n],r.align=\\\"left\\\"))}))},Vz.prototype.updateView=function(t,e,n,i){lt(this._features,function(t){t instanceof Dz&&t.updateView&&t.updateView(t.model,e,n,i)})},Vz.prototype.remove=function(e,n){lt(this._features,function(t){t instanceof Dz&&t.remove&&t.remove(e,n)}),this.group.removeAll()},Vz.prototype.dispose=function(e,n){lt(this._features,function(t){t instanceof Dz&&t.dispose&&t.dispose(e,n)})},Vz.type=\\\"toolbox\\\";var Ez,zz=Vz;function Vz(){return null!==Ez&&Ez.apply(this,arguments)||this}u(Zz,Fz=Dz),Zz.prototype.onclick=function(t,e){var n=this.model,i=n.get(\\\"name\\\")||t.get(\\\"title.0.text\\\")||\\\"echarts\\\",o=\\\"svg\\\"===e.getZr().painter.getType(),r=o?\\\"svg\\\":n.get(\\\"type\\\",!0)||\\\"png\\\",a=e.getConnectedDataURL({type:r,backgroundColor:n.get(\\\"backgroundColor\\\",!0)||t.get(\\\"backgroundColor\\\")||\\\"#fff\\\",connectedBackgroundColor:n.get(\\\"connectedBackgroundColor\\\"),excludeComponents:n.get(\\\"excludeComponents\\\"),pixelRatio:n.get(\\\"pixelRatio\\\")}),s=S.browser;if(A(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var s=document.createElement(\\\"a\\\"),l=(s.download=i+\\\".\\\"+r,s.target=\\\"_blank\\\",s.href=a,new MouseEvent(\\\"click\\\",{view:document.defaultView,bubbles:!0,cancelable:!1}));s.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||o){var l=a.split(\\\",\\\"),s=-1\u003Cl[0].indexOf(\\\"base64\\\"),u=o?decodeURIComponent(l[1]):l[1],o=(s&&(u=window.atob(u)),i+\\\".\\\"+r);if(window.navigator.msSaveOrOpenBlob){for(var h=u.length,c=new Uint8Array(h);h--;)c[h]=u.charCodeAt(h);l=new Blob([c]);window.navigator.msSaveOrOpenBlob(l,o)}else{s=document.createElement(\\\"iframe\\\"),r=(document.body.appendChild(s),s.contentWindow),l=r.document;l.open(\\\"image/svg+xml\\\",\\\"replace\\\"),l.write(u),l.close(),r.focus(),l.execCommand(\\\"SaveAs\\\",!0,o),document.body.removeChild(s)}}else{r=n.get(\\\"lang\\\"),o='\u003Cbody style=\\\"margin:0;\\\">\u003Cimg src=\\\"'+a+'\\\" style=\\\"max-width:100%;\\\" title=\\\"'+(r&&r[0]||\\\"\\\")+'\\\" />\u003C/body>',l=window.open();l.document.write(o),l.document.title=i}},Zz.getDefaultOption=function(t){return{show:!0,icon:\\\"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0\\\",title:t.getLocaleModel().get([\\\"toolbox\\\",\\\"saveAsImage\\\",\\\"title\\\"]),type:\\\"png\\\",connectedBackgroundColor:\\\"#fff\\\",name:\\\"\\\",excludeComponents:[\\\"toolbox\\\"],lang:t.getLocaleModel().get([\\\"toolbox\\\",\\\"saveAsImage\\\",\\\"lang\\\"])}};var Bz,Fz,Gz=Zz,Wz=\\\"__ec_magicType_stack__\\\",Hz=[[\\\"line\\\",\\\"bar\\\"],[\\\"stack\\\"]],Yz=(u(Xz,Bz=Dz),Xz.prototype.getIcons=function(){var t=this.model,e=t.get(\\\"icon\\\"),n={};return lt(t.get(\\\"type\\\"),function(t){e[t]&&(n[t]=e[t])}),n},Xz.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:\\\"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4\\\",bar:\\\"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7\\\",stack:\\\"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z\\\"},title:t.getLocaleModel().get([\\\"toolbox\\\",\\\"magicType\\\",\\\"title\\\"]),option:{},seriesIndex:{}}},Xz.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get([\\\"seriesIndex\\\",a]);Uz[a]&&(s={series:[]},lt(Hz,function(t){0\u003C=G(t,a)&<(t,function(t){l.setIconStatus(t,\\\"normal\\\")})}),l.setIconStatus(a,\\\"emphasis\\\"),t.eachComponent({mainType:\\\"series\\\",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,e=Uz[a](e,n,t,l),n=(e&&(H(e,t.option),s.series.push(e)),t.coordinateSystem);if(n&&\\\"cartesian2d\\\"===n.type&&(\\\"line\\\"===a||\\\"bar\\\"===a)){e=n.getAxesByScale(\\\"ordinal\\\")[0];if(e){var i=e.dim+\\\"Axis\\\",o=t.getReferringComponents(i,Wr).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r\u003C=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap=\\\"bar\\\"===a}}}),\\\"stack\\\"===(i=a)&&(n=v({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),\\\"emphasis\\\"!==l.get([\\\"iconStatus\\\",a]))&&(i=\\\"tiled\\\"),e.dispatchAction({type:\\\"changeMagicType\\\",currentType:i,newOption:s,newTitle:n,featureName:\\\"magicType\\\"}))},Xz),Uz={line:function(t,e,n,i){if(\\\"bar\\\"===t)return v({id:e,type:\\\"line\\\",data:n.get(\\\"data\\\"),stack:n.get(\\\"stack\\\"),markPoint:n.get(\\\"markPoint\\\"),markLine:n.get(\\\"markLine\\\")},i.get([\\\"option\\\",\\\"line\\\"])||{},!0)},bar:function(t,e,n,i){if(\\\"line\\\"===t)return v({id:e,type:\\\"bar\\\",data:n.get(\\\"data\\\"),stack:n.get(\\\"stack\\\"),markPoint:n.get(\\\"markPoint\\\"),markLine:n.get(\\\"markLine\\\")},i.get([\\\"option\\\",\\\"bar\\\"])||{},!0)},stack:function(t,e,n,i){var o=n.get(\\\"stack\\\")===Wz;if(\\\"line\\\"===t||\\\"bar\\\"===t)return i.setIconStatus(\\\"stack\\\",o?\\\"normal\\\":\\\"emphasis\\\"),v({id:e,stack:o?\\\"\\\":Wz},i.get([\\\"option\\\",\\\"stack\\\"])||{},!0)}};function Xz(){return null!==Bz&&Bz.apply(this,arguments)||this}function Zz(){return null!==Fz&&Fz.apply(this,arguments)||this}nv({type:\\\"changeMagicType\\\",event:\\\"magicTypeChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){e.mergeOption(t.newOption)});var jz=new Array(60).join(\\\"-\\\"),qz=\\\"\\\\t\\\";function Kz(t){return t.replace(/^\\\\s\\\\s*/,\\\"\\\").replace(/\\\\s\\\\s*$/,\\\"\\\")}var $z=new RegExp(\\\"[\\\\t]+\\\",\\\"g\\\");u(t3,Jz=Dz),t3.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:\\\"hideTip\\\"})});var h,o,r,a,e=i.getDom(),n=this.model,s=(this._dom&&e.removeChild(this._dom),document.createElement(\\\"div\\\")),l=(s.style.cssText=\\\"position:absolute;top:0;bottom:0;left:0;right:0;padding:5px\\\",s.style.backgroundColor=n.get(\\\"backgroundColor\\\")||\\\"#fff\\\",document.createElement(\\\"h4\\\")),u=n.get(\\\"lang\\\")||[],c=(l.innerHTML=u[0]||n.get(\\\"title\\\"),l.style.cssText=\\\"margin:10px 20px\\\",l.style.color=n.get(\\\"textColor\\\"),document.createElement(\\\"div\\\")),p=document.createElement(\\\"textarea\\\"),d=(c.style.cssText=\\\"overflow:auto\\\",n.get(\\\"optionToContent\\\")),f=n.get(\\\"contentToOption\\\"),g=(o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&(\\\"cartesian2d\\\"===i.type||\\\"polar\\\"===i.type)&&\\\"category\\\"===(e=i.getBaseAxis()).type?(n=e.dim+\\\"_\\\"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):r).push(t)}),{value:pt([(h=[],lt((g={seriesGroupByCategoryAxis:o,other:r,meta:a}).seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[\\\" \\\"].concat(Y(t.series,function(t){return t.name})),r=[n.model.getCategories()];lt(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var a=[o.join(qz)],s=0;s\u003Cr[0].length;s++){for(var l=[],u=0;u\u003Cr.length;u++)l.push(r[u][s]);a.push(l.join(qz))}h.push(a.join(\\\"\\\\n\\\"))}),h.join(\\\"\\\\n\\\\n\\\"+jz+\\\"\\\\n\\\\n\\\")),Y(g.other,function(t){var i=t.getRawData(),o=[t.name],r=[];return i.each(i.dimensions,function(){for(var t=arguments.length,e=i.getName(arguments[t-1]),n=0;n\u003Ct-1;n++)r[n]=arguments[n];o.push((e?e+qz:\\\"\\\")+r.join(qz))}),o.join(\\\"\\\\n\\\")}).join(\\\"\\\\n\\\\n\\\"+jz+\\\"\\\\n\\\\n\\\")],function(t){return!!t.replace(/[\\\\n\\\\t\\\\s]/g,\\\"\\\")}).join(\\\"\\\\n\\\\n\\\"+jz+\\\"\\\\n\\\\n\\\"),meta:g.meta}),y=(A(d)?X(m=d(i.getOption()))?c.innerHTML=m:mt(m)&&c.appendChild(m):(p.readOnly=n.get(\\\"readOnly\\\"),(m=p.style).cssText=\\\"display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none\\\",m.color=n.get(\\\"textColor\\\"),m.borderColor=n.get(\\\"textareaBorderColor\\\"),m.backgroundColor=n.get(\\\"textareaColor\\\"),p.value=g.value,c.appendChild(p)),g.meta),m=document.createElement(\\\"div\\\"),g=(m.style.cssText=\\\"position:absolute;bottom:5px;left:0;right:0\\\",\\\"float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px\\\"),v=document.createElement(\\\"div\\\"),x=document.createElement(\\\"div\\\"),_=(g=(g+=\\\";background-color:\\\"+n.get(\\\"buttonColor\\\"))+(\\\";color:\\\"+n.get(\\\"buttonTextColor\\\")),this);function b(){e.removeChild(s),_._dom=null}Se(v,\\\"click\\\",b),Se(x,\\\"click\\\",function(){if(!(null==f&&null!=d||null!=f&&null==d)){var t;try{t=A(f)?f(c,i.getOption()):(e=p.value,o=y,n=e.split(new RegExp(\\\"\\\\n*\\\"+jz+\\\"\\\\n*\\\",\\\"g\\\")),r={series:[]},lt(n,function(u,t){var e,n,i;0\u003C=u.slice(0,u.indexOf(\\\"\\\\n\\\")).indexOf(qz)?(e=function(){for(var t=u.split(/\\\\n+/g),e=[],n=Y(Kz(t.shift()).split($z),function(t){return{name:t,data:[]}}),i=0;i\u003Ct.length;i++){var o=Kz(t[i]).split($z);e.push(o.shift());for(var r=0;r\u003Co.length;r++)n[r]&&(n[r].data[i]=o[r])}return{series:n,categories:e}}(),i=(n=o[t]).axisDim+\\\"Axis\\\",n&&(r[i]=r[i]||[],r[i][n.axisIndex]={data:e.categories},r.series=r.series.concat(e.series))):(e=function(){for(var t=u.split(/\\\\n+/g),e=Kz(t.shift()),n=[],i=0;i\u003Ct.length;i++){var o=Kz(t[i]);if(o){for(var r,a=o.split($z),s=void 0,o=!1,s=isNaN(a[0])?(o=!0,r=a[0],a=a.slice(1),n[i]={name:r,value:[]},n[i].value):n[i]=[],l=0;l\u003Ca.length;l++)s.push(+a[l]);1===s.length&&(o?n[i].value=s[0]:n[i]=s[0])}}return{name:e,data:n}}(),r.series.push(e))}),r)}catch(t){throw b(),new Error(\\\"Data view format error \\\"+t)}t&&i.dispatchAction({type:\\\"changeDataView\\\",newOption:t})}var e,o,n,r;b()}),v.innerHTML=u[1],x.innerHTML=u[2],x.style.cssText=v.style.cssText=g,n.get(\\\"readOnly\\\")||m.appendChild(x),m.appendChild(v),s.appendChild(l),s.appendChild(c),s.appendChild(m),c.style.height=e.clientHeight-80+\\\"px\\\",e.appendChild(s),this._dom=s},t3.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},t3.prototype.dispose=function(t,e){this.remove(t,e)},t3.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:\\\"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28\\\",title:t.getLocaleModel().get([\\\"toolbox\\\",\\\"dataView\\\",\\\"title\\\"]),lang:t.getLocaleModel().get([\\\"toolbox\\\",\\\"dataView\\\",\\\"lang\\\"]),backgroundColor:\\\"#fff\\\",textColor:\\\"#000\\\",textareaColor:\\\"#fff\\\",textareaBorderColor:\\\"#333\\\",buttonColor:\\\"#c23531\\\",buttonTextColor:\\\"#fff\\\"}};var Jz,Qz=t3;function t3(){return null!==Jz&&Jz.apply(this,arguments)||this}nv({type:\\\"changeDataView\\\",event:\\\"dataViewChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,i){var r=[];lt(t.newOption.series,function(t){var e,o,n=i.getSeriesByName(t.name)[0];n?(n=n.get(\\\"data\\\"),r.push({name:t.name,data:(e=t.data,o=n,Y(e,function(t,e){var n,i=o&&o[e];return R(i)&&!U(i)&&(R(t)&&!U(t)||(t={value:t}),n=null!=i.name&&null==t.name,t=H(t,i),n)&&delete t.name,t}))})):r.push(Z({type:\\\"scatter\\\"},t))}),i.mergeOption(H({series:r},t.newOption))});var e3=lt,n3=i();function i3(t){var e=n3(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}u(a3,o3=Dz),a3.prototype.onclick=function(t,e){n3(t).snapshots=null,e.dispatchAction({type:\\\"restore\\\",from:this.uid})},a3.getDefaultOption=function(t){return{show:!0,icon:\\\"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5\\\",title:t.getLocaleModel().get([\\\"toolbox\\\",\\\"restore\\\",\\\"title\\\"])}};var o3,r3=a3;function a3(){return null!==o3&&o3.apply(this,arguments)||this}nv({type:\\\"restore\\\",event:\\\"restore\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){e.resetOption(\\\"recreate\\\")});var s3=[\\\"grid\\\",\\\"xAxis\\\",\\\"yAxis\\\",\\\"geo\\\",\\\"graph\\\",\\\"polar\\\",\\\"radiusAxis\\\",\\\"angleAxis\\\",\\\"bmap\\\"],l3=(u3.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){var i;(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,i=g3[t.brushType](0,n,e),t.__rangeOffset={offset:m3[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax})}),t},u3.prototype.matchOutputRanges=function(t,i,o){lt(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&<(t.coordSyses,function(t){var e=g3[n.brushType](1,t,n.range,!0);o(n,e.values,t,i)})},this)},u3.prototype.setInputRanges=function(t,o){lt(t,function(t){var e,n,i=this.findTargetInfo(t,o);t.range=t.range||[],i&&!0!==i&&(t.panelId=i.panelId,i=g3[t.brushType](0,i.coordSys,t.coordRange),n=t.__rangeOffset,t.range=n?m3[t.brushType](i.values,n.offset,(e=i.xyMinMax,n=n.xyMinMax,e=x3(e),n=x3(n),e=[e[0]/n[0],e[1]/n[1]],isNaN(e[0])&&(e[0]=1),isNaN(e[1])&&(e[1]=1),e)):i.values)},this)},u3.prototype.makePanelOpts=function(n,i){return Y(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i?i(t):null,clipPath:tL(e),isTargetByCursor:nL(e,n,t.coordSysModel),getLinearBrushOtherExtent:eL(e)}})},u3.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&0\u003C=G(i.coordSyses,e.coordinateSystem)},u3.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=c3(e,t),o=0;o\u003Cn.length;o++){var r=n[o],a=t.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s\u003Cd3.length;s++)if(d3[s](i,r))return r}return!0},u3);function u3(t,e,n){var i=this,o=(this._targetInfoList=[],c3(e,t));lt(p3,function(t,e){n&&n.include&&!(0\u003C=G(n.include,e))||t(o,i._targetInfoList)})}function h3(t){return t[0]>t[1]&&t.reverse(),t}function c3(t,e){return Fr(t,e,{includeMainTypes:s3})}var p3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,e=t.gridModels,n=N(),a={},s={};(o||r||e)&&(lt(o,function(t){var e=t.axis.grid.model;n.set(e.id,e),a[e.id]=!0}),lt(r,function(t){var e=t.axis.grid.model;n.set(e.id,e),s[e.id]=!0}),lt(e,function(t){n.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),n.each(function(t){var e=t.coordinateSystem,n=[];lt(e.getCartesians(),function(t,e){(0\u003C=G(o,t.getAxis(\\\"x\\\").model)||0\u003C=G(r,t.getAxis(\\\"y\\\").model))&&n.push(t)}),i.push({panelId:\\\"grid--\\\"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:f3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){lt(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:\\\"geo--\\\"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:f3.geo})})}},d3=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,o=t.gridModel;return(o=!(o=!o&&n?n.axis.grid.model:o)&&i?i.axis.grid.model:o)&&o===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],f3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(uc(t)),e}},g3={lineX:D(y3,0),lineY:D(y3,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),r=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),o=[h3([o[0],r[0]]),h3([o[1],r[1]])];return{values:o,xyMinMax:o}},polygon:function(n,i,t,o){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:Y(t,function(t){var e=n?i.pointToData(t,o):i.dataToPoint(t,o);return r[0][0]=Math.min(r[0][0],e[0]),r[1][0]=Math.min(r[1][0],e[1]),r[0][1]=Math.max(r[0][1],e[0]),r[1][1]=Math.max(r[1][1],e[1]),e}),xyMinMax:r}}};function y3(t,e,n,i){var o=n.getAxis([\\\"x\\\",\\\"y\\\"][t]),r=h3(Y([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),a=[];return a[t]=r,a[1-t]=[NaN,NaN],{values:r,xyMinMax:a}}var m3={lineX:D(v3,0),lineY:D(v3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,n,i){return Y(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function v3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function x3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var _3,b3=lt,w3=Cr+\\\"toolbox-dataZoom_\\\",S3=(u(I3,_3=Dz),I3.prototype.render=function(t,e,n,i){var o,r,a,s,l;this._brushController||(this._brushController=new wk(n.getZr()),this._brushController.on(\\\"brush\\\",I(this._onBrush,this)).mount()),o=t,r=e,n=n,s=(a=this)._isZoomActive,i&&\\\"takeGlobalCursor\\\"===i.type&&(s=\\\"dataZoomSelect\\\"===i.key&&i.dataZoomSelectActive),a._isZoomActive=s,o.setIconStatus(\\\"zoom\\\",s?\\\"emphasis\\\":\\\"normal\\\"),l=new l3(T3(o),r,{include:[\\\"grid\\\"]}).makePanelOpts(n,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?\\\"lineX\\\":!t.xAxisDeclared&&t.yAxisDeclared?\\\"lineY\\\":\\\"rect\\\"}),a._brushController.setPanels(l).enableBrush(!(!s||!l.length)&&{brushType:\\\"auto\\\",brushStyle:o.getModel(\\\"brushStyle\\\").getItemStyle()}),i=e,t.setIconStatus(\\\"back\\\",1\u003Ci3(i).length?\\\"emphasis\\\":\\\"normal\\\")},I3.prototype.onclick=function(t,e,n){M3[n].call(this)},I3.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},I3.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},I3.prototype._onBrush=function(t){var u,h,o,r,e=t.areas;function a(t,e,n){var i,o,r,a=e.getAxis(t),s=a.model,l=(i=t,o=s,h.eachComponent({mainType:\\\"dataZoom\\\",subType:\\\"select\\\"},function(t){t.getAxisModel(i,o.componentIndex)&&(r=t)}),r),s=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==s.minValueSpan&&null==s.maxValueSpan||(n=KA(0,n.slice(),a.scale.getExtent(),0,s.minValueSpan,s.maxValueSpan)),l&&(u[l.id]={dataZoomId:l.id,startValue:n[0],endValue:n[1]})}t.isEnd&&e.length&&(u={},h=this.ecModel,this._brushController.updateCovers([]),new l3(T3(this.model),h,{include:[\\\"grid\\\"]}).matchOutputRanges(e,h,function(t,e,n){var i;\\\"cartesian2d\\\"===n.type&&(\\\"rect\\\"===(i=t.brushType)?(a(\\\"x\\\",n,e[0]),a(\\\"y\\\",n,e[1])):a({lineX:\\\"x\\\",lineY:\\\"y\\\"}[i],n,e))}),t=u,r=i3(o=h),e3(t,function(t,e){for(var n,i=r.length-1;0\u003C=i&&!r[i][e];i--);i\u003C0&&(n=o.queryComponents({mainType:\\\"dataZoom\\\",subType:\\\"select\\\",id:e})[0])&&(n=n.getPercentRange(),r[0][e]={dataZoomId:e,start:n[0],end:n[1]})}),r.push(t),this._dispatchZoomAction(u))},I3.prototype._dispatchZoomAction=function(t){var n=[];b3(t,function(t,e){n.push(L(t))}),n.length&&this.api.dispatchAction({type:\\\"dataZoom\\\",from:this.uid,batch:n})},I3.getDefaultOption=function(t){return{show:!0,filterMode:\\\"filter\\\",icon:{zoom:\\\"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1\\\",back:\\\"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26\\\"},title:t.getLocaleModel().get([\\\"toolbox\\\",\\\"dataZoom\\\",\\\"title\\\"]),brushStyle:{borderWidth:0,color:\\\"rgba(210,219,238,0.2)\\\"}}},I3),M3={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:\\\"takeGlobalCursor\\\",key:\\\"dataZoomSelect\\\",dataZoomSelectActive:t})},back:function(){var t,i,e,o;this._dispatchZoomAction((t=this.ecModel,i=i3(t),e=i[i.length-1],1\u003Ci.length&&i.pop(),o={},e3(e,function(t,e){for(var n=i.length-1;0\u003C=n;n--)if(t=i[n][e]){o[e]=t;break}}),o))}};function I3(){return null!==_3&&_3.apply(this,arguments)||this}function T3(t){var e={xAxisIndex:t.get(\\\"xAxisIndex\\\",!0),yAxisIndex:t.get(\\\"yAxisIndex\\\",!0),xAxisId:t.get(\\\"xAxisId\\\",!0),yAxisId:t.get(\\\"yAxisId\\\",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex=\\\"all\\\"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex=\\\"all\\\"),e}ym=function(t){var r,a,e=t.getComponent(\\\"toolbox\\\",0),n=[\\\"feature\\\",\\\"dataZoom\\\"];if(e&&null!=e.get(n))return r=e.getModel(n),a=[],n=Fr(t,T3(r)),b3(n.xAxisModels,function(t){return i(t,\\\"xAxis\\\",\\\"xAxisIndex\\\")}),b3(n.yAxisModels,function(t){return i(t,\\\"yAxis\\\",\\\"yAxisIndex\\\")}),a;function i(t,e,n){var i=t.componentIndex,o={type:\\\"select\\\",$fromToolbox:!0,filterMode:r.get(\\\"filterMode\\\",!0)||\\\"filter\\\",id:w3+e+i};o[n]=i,a.push(o)}},Tt(null==Od.get(NV=\\\"dataZoom\\\")&&ym),Od.set(NV,ym);u(A3,C3=m),A3.type=\\\"tooltip\\\",A3.dependencies=[\\\"axisPointer\\\"],A3.defaultOption={z:60,show:!0,showContent:!0,trigger:\\\"item\\\",triggerOn:\\\"mousemove|click\\\",alwaysShowContent:!1,displayMode:\\\"single\\\",renderMode:\\\"auto\\\",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:\\\"#fff\\\",shadowBlur:10,shadowColor:\\\"rgba(0, 0, 0, .2)\\\",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:\\\"\\\",axisPointer:{type:\\\"line\\\",axis:\\\"auto\\\",animation:\\\"auto\\\",animationDurationUpdate:200,animationEasingUpdate:\\\"exponentialOut\\\",crossStyle:{color:\\\"#999\\\",width:1,type:\\\"dashed\\\",textStyle:{}}},textStyle:{color:\\\"#666\\\",fontSize:14}};var C3,D3=A3;function A3(){var t=null!==C3&&C3.apply(this,arguments)||this;return t.type=A3.type,t}function k3(t){var e=t.get(\\\"confine\\\");return null!=e?e:\\\"richText\\\"===t.get(\\\"renderMode\\\")}function L3(t){if(S.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n\u003Ci;n++)if(t[n]in e)return t[n]}var P3=L3([\\\"transform\\\",\\\"webkitTransform\\\",\\\"OTransform\\\",\\\"MozTransform\\\",\\\"msTransform\\\"]);function O3(t,e){if(!t)return e;e=Np(e,!0);var n=t.indexOf(e);return(t=-1===n?e:\\\"-\\\"+t.slice(0,n)+\\\"-\\\"+e).toLowerCase()}var R3=O3(L3([\\\"webkitTransition\\\",\\\"transition\\\",\\\"OTransition\\\",\\\"MozTransition\\\",\\\"msTransition\\\"]),\\\"transition\\\"),N3=O3(P3,\\\"transform\\\"),E3=\\\"position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;\\\"+(S.transform3dSupported?\\\"will-change:transform;\\\":\\\"\\\");function z3(t,e,n){var i,o=t.toFixed(0)+\\\"px\\\",r=e.toFixed(0)+\\\"px\\\";return S.transformSupported?(i=\\\"translate\\\"+((i=S.transform3dSupported)?\\\"3d\\\":\\\"\\\")+\\\"(\\\"+o+\\\",\\\"+r+(i?\\\",0\\\":\\\"\\\")+\\\")\\\",n?\\\"top:0;left:0;\\\"+N3+\\\":\\\"+i+\\\";\\\":[[\\\"top\\\",0],[\\\"left\\\",0],[P3,i]]):n?\\\"top:\\\"+r+\\\";left:\\\"+o+\\\";\\\":[[\\\"top\\\",r],[\\\"left\\\",o]]}function V3(t,e,n,i,o){var r,a,s=e&&e.painter;n?(r=s&&s.getViewportRoot())&&(n=t,a=document.body,fe(de,r,i,o,!0))&&fe(n,a,de[0],de[1]):(t[0]=i,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}W3.prototype.update=function(t){var e=this._container,n=(n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n.position:null,e=e.style;\\\"absolute\\\"!==e.position&&\\\"absolute\\\"!==n&&(e.position=\\\"relative\\\"),t.get(\\\"alwaysShowContent\\\")&&this._moveIfResized(),this.el.className=t.get(\\\"className\\\")||\\\"\\\"},W3.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i,n,o,r,a,s,l,u,h,c,p,d,f,g=this.el,y=g.style,m=this._styleCoord;g.innerHTML?y.cssText=E3+(i=t,n=!this._firstShow,o=this._longHide,s=[],g=i.get(\\\"transitionDuration\\\"),l=i.get(\\\"backgroundColor\\\"),u=i.get(\\\"shadowBlur\\\"),h=i.get(\\\"shadowColor\\\"),c=i.get(\\\"shadowOffsetX\\\"),p=i.get(\\\"shadowOffsetY\\\"),d=i.getModel(\\\"textStyle\\\"),f=Jg(i,\\\"html\\\"),s.push(\\\"box-shadow:\\\"+(c+\\\"px \\\"+p+\\\"px \\\"+u+\\\"px \\\"+h)),n&&g&&s.push((u=\\\"opacity\\\"+(p=\\\" \\\"+g/2+\\\"s \\\"+(c=\\\"cubic-bezier(0.23,1,0.32,1)\\\"))+\\\",visibility\\\"+p,o||(p=\\\" \\\"+g+\\\"s \\\"+c,u+=S.transformSupported?\\\",\\\"+N3+p:\\\",left\\\"+p+\\\",top\\\"+p),R3+\\\":\\\"+u)),l&&s.push(\\\"background-color:\\\"+l),lt([\\\"width\\\",\\\"color\\\",\\\"radius\\\"],function(t){var e=\\\"border-\\\"+t,n=Np(e),n=i.get(n);null!=n&&s.push(e+\\\":\\\"+n+(\\\"color\\\"===t?\\\"\\\":\\\"px\\\"))}),s.push((a=[],h=(r=d).get(\\\"fontSize\\\"),(g=r.getTextColor())&&a.push(\\\"color:\\\"+g),a.push(\\\"font:\\\"+r.getFont()),h&&a.push(\\\"line-height:\\\"+Math.round(3*h/2)+\\\"px\\\"),g=r.get(\\\"textShadowColor\\\"),h=r.get(\\\"textShadowBlur\\\")||0,c=r.get(\\\"textShadowOffsetX\\\")||0,p=r.get(\\\"textShadowOffsetY\\\")||0,g&&h&&a.push(\\\"text-shadow:\\\"+c+\\\"px \\\"+p+\\\"px \\\"+h+\\\"px \\\"+g),lt([\\\"decoration\\\",\\\"align\\\"],function(t){var e=r.get(t);e&&a.push(\\\"text-\\\"+t+\\\":\\\"+e)}),a.join(\\\";\\\"))),null!=f&&s.push(\\\"padding:\\\"+Ep(f).join(\\\"px \\\")+\\\"px\\\"),s.join(\\\";\\\"))+\\\";\\\"+z3(m[0],m[1],!0)+\\\"border-color:\\\"+Up(e)+\\\";\\\"+(t.get(\\\"extraCssText\\\")||\\\"\\\")+\\\";pointer-events:\\\"+(this._enterable?\\\"auto\\\":\\\"none\\\"):y.display=\\\"none\\\",this._show=!0,this._firstShow=!1,this._longHide=!1},W3.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null!=t){var a=\\\"\\\";if(X(o)&&\\\"item\\\"===n.get(\\\"trigger\\\")&&!k3(n)&&(a=function(t,e,n){if(!X(n)||\\\"inside\\\"===n)return\\\"\\\";var i=t.get(\\\"backgroundColor\\\"),o=t.get(\\\"borderWidth\\\");e=Up(e);var r=\\\"left\\\"===n?\\\"right\\\":\\\"right\\\"===n?\\\"left\\\":\\\"top\\\"===n?\\\"bottom\\\":\\\"top\\\",a=Math.max(1.5*Math.round(o),6),s=\\\"\\\",l=N3+\\\":\\\",u=(-1\u003CG([\\\"left\\\",\\\"right\\\"],r)?(s+=\\\"top:50%\\\",l+=\\\"translateY(-50%) rotate(\\\"+(u=\\\"left\\\"==r?-225:-45)+\\\"deg)\\\"):(s+=\\\"left:50%\\\",l+=\\\"translateX(-50%) rotate(\\\"+(u=\\\"top\\\"==r?225:45)+\\\"deg)\\\"),u*Math.PI/180),h=a+o,u=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),c=e+\\\" solid \\\"+o+\\\"px;\\\";return'\u003Cdiv style=\\\"'+[\\\"position:absolute;width:\\\"+a+\\\"px;height:\\\"+a+\\\"px;\\\",(s+=\\\";\\\"+r+\\\":-\\\"+Math.round(100*((u-Math.SQRT2*o)/2+Math.SQRT2*o-(u-h)/2))/100+\\\"px\\\")+\\\";\\\"+l+\\\";\\\",\\\"border-bottom:\\\"+c,\\\"border-right:\\\"+c,\\\"background-color:\\\"+i+\\\";\\\"].join(\\\"\\\")+'\\\">\u003C/div>'}(n,i,o)),X(t))r.innerHTML=t+a;else if(t){r.innerHTML=\\\"\\\",U(t)||(t=[t]);for(var s,l=0;l\u003Ct.length;l++)mt(t[l])&&t[l].parentNode!==r&&r.appendChild(t[l]);a&&r.childNodes.length&&((s=document.createElement(\\\"div\\\")).innerHTML=a,r.appendChild(s))}}else r.innerHTML=\\\"\\\"},W3.prototype.setEnterable=function(t){this._enterable=t},W3.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},W3.prototype.moveTo=function(t,e){var n,i=this._styleCoord;V3(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,lt(z3(i[0],i[1]),function(t){n[t[0]]=t[1]}))},W3.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},W3.prototype.hide=function(){var t=this,e=this.el.style;e.visibility=\\\"hidden\\\",e.opacity=\\\"0\\\",S.transform3dSupported&&(e.willChange=\\\"\\\"),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},W3.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(I(this.hide,this),t)):this.hide())},W3.prototype.isShow=function(){return this._show},W3.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var B3=W3,F3=(G3.prototype.update=function(t){t.get(\\\"alwaysShowContent\\\")&&this._moveIfResized()},G3.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},G3.prototype.setContent=function(t,e,n,i,o){var r=this,a=(R(t)&&Mr(\\\"\\\"),this.el&&this._zr.remove(this.el),n.getModel(\\\"textStyle\\\")),s=(this.el=new z({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get(\\\"textShadowColor\\\"),fill:n.get([\\\"textStyle\\\",\\\"color\\\"]),padding:Jg(n,\\\"richText\\\"),verticalAlign:\\\"top\\\",align:\\\"left\\\"},z:n.get(\\\"z\\\")}),lt([\\\"backgroundColor\\\",\\\"borderRadius\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"],function(t){r.el.style[t]=n.get(t)}),lt([\\\"textShadowBlur\\\",\\\"textShadowOffsetX\\\",\\\"textShadowOffsetY\\\"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on(\\\"mouseover\\\",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(\\\"mouseout\\\",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},G3.prototype.setEnterable=function(t){this._enterable=t},G3.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=Y3(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},G3.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(U3(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=H3((i=o.style).borderWidth||0),i=Y3(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},G3.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},G3.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},G3.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(I(this.hide,this),t)):this.hide())},G3.prototype.isShow=function(){return this._show},G3.prototype.dispose=function(){this._zr.remove(this.el)},G3);function G3(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),U3(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function W3(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,S.wxa)return null;var i=document.createElement(\\\"div\\\"),o=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),r=this._appendToBody=n&&n.appendToBody,a=(V3(this._styleCoord,o,r,e.getWidth()/2,e.getHeight()/2),(r?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,a._enterable||(e=o.handler,we(o.painter.getViewportRoot(),t,!0),e.dispatch(\\\"mousemove\\\",t))},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}function H3(t){return Math.max(0,t)}function Y3(t){var e=H3(t.shadowBlur||0),n=H3(t.shadowOffsetX||0),i=H3(t.shadowOffsetY||0);return{left:H3(e-n),right:H3(e+n),top:H3(e-i),bottom:H3(e+i)}}function U3(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var X3,Z3=new E({shape:{x:-1,y:-1,width:2,height:2}}),j3=(u(q3,X3=fy),q3.prototype.init=function(t,e){var n,i;!S.node&&e.getDom()&&(n=t.getComponent(\\\"tooltip\\\"),i=this._renderMode=\\\"auto\\\"===(i=n.get(\\\"renderMode\\\"))?S.domSupported?\\\"html\\\":\\\"richText\\\":i||\\\"html\\\",this._tooltipContent=\\\"richText\\\"===i?new F3(e):new B3(e.getDom(),e,{appendToBody:n.get(\\\"appendToBody\\\",!0)}))},q3.prototype.render=function(t,e,n){var i;!S.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get(\\\"alwaysShowContent\\\"),(i=this._tooltipContent).update(t),i.setEnterable(t.get(\\\"enterable\\\")),this._initGlobalListener(),this._keepShow(),\\\"richText\\\"!==this._renderMode&&t.get(\\\"transitionDuration\\\")?ky(this,\\\"_updatePosition\\\",50,\\\"fixRate\\\"):Ly(this,\\\"_updatePosition\\\"))},q3.prototype._initGlobalListener=function(){var i=this._tooltipModel.get(\\\"triggerOn\\\");WN(\\\"itemTooltip\\\",this._api,I(function(t,e,n){\\\"none\\\"!==i&&(0\u003C=i.indexOf(t)?this._tryShow(e,n):\\\"leave\\\"===t&&this._hide(n))},this))},q3.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&\\\"none\\\"!==e.get(\\\"triggerOn\\\")&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},q3.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from!==this.uid&&!S.node&&n.getDom()&&(o=$3(i,n),this._ticket=\\\"\\\",s=i.dataByCoordSys,(r=function(n,t,e){var i=Gr(n).queryOptionMap,o=i.keys()[0];if(o&&\\\"series\\\"!==o){var r,i=Yr(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(i)return e.getViewOfComponentModel(i).group.traverse(function(t){var e=$(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r?{componentMainType:o,componentIndex:i.componentIndex,el:r}:void 0}}(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:\\\"bottom\\\"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=Z3).x=i.x,a.y=i.y,a.update(),$(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=qN(i,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:i.position,positionDefault:\\\"bottom\\\"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:\\\"updateAxisPointer\\\",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},q3.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get(\\\"hideDelay\\\")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide($3(i,n))},q3.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){a=e.getSeriesByIndex(o);if(a&&\\\"axis\\\"===K3([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel).get(\\\"trigger\\\"))return n.dispatchAction({type:\\\"updateAxisPointer\\\",seriesIndex:o,dataIndex:r,position:i.position}),!0}},q3.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?(hm(r,function(t){return null!=$(t).dataIndex?(i=t,1):null!=$(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},q3.prototype._showOrMove=function(t,e){var n=t.get(\\\"showDelay\\\");e=I(e,this),clearTimeout(this._showTimout),0\u003Cn?this._showTimout=setTimeout(e,n):e()},q3.prototype._showAxisTooltip=function(t,e){var h=this._ecModel,c=this._tooltipModel,n=[e.offsetX,e.offsetY],i=K3([e.tooltipOption],c),p=this._renderMode,d=[],o=Hg(\\\"section\\\",{blocks:[],noHeader:!0}),f=[],g=new Qg,r=(lt(t,function(t){lt(t.dataByAxis,function(r){var a,s,l=h.getComponent(r.axisDim+\\\"Axis\\\",r.axisIndex),u=r.value;l&&null!=u&&(a=IN(u,l.axis,h,r.seriesDataIndices,r.valueLabelOpt),s=Hg(\\\"section\\\",{header:a,noHeader:!Ct(a),sortBlocks:!0,blocks:[]}),o.blocks.push(s),lt(r.seriesDataIndices,function(t){var e,n=h.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,o=n.getDataParams(i);o.dataIndex\u003C0||(o.axisDim=r.axisDim,o.axisIndex=r.axisIndex,o.axisType=r.axisType,o.axisId=r.axisId,o.axisValue=tx(l.axis,{value:u}),o.axisValueLabel=a,o.marker=g.makeTooltipMarker(\\\"item\\\",Up(o.color),p),(e=(i=Zf(n.formatTooltip(i,!0,null))).frag)&&(n=K3([n],c).get(\\\"valueFormatter\\\"),s.blocks.push(n?Z({valueFormatter:n},e):e)),i.text&&f.push(i.text),d.push(o))}))})}),o.blocks.reverse(),f.reverse(),e.position),a=i.get(\\\"order\\\"),a=jg(o,g,p,a,h.get(\\\"useUTC\\\"),i.get(\\\"textStyle\\\")),a=(a&&f.unshift(a),\\\"richText\\\"===p?\\\"\\\\n\\\\n\\\":\\\"\u003Cbr/>\\\"),s=f.join(a);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,d)?this._updatePosition(i,r,n[0],n[1],this._tooltipContent,d):this._showTooltipContent(i,s,d,Math.random()+\\\"\\\",n[0],n[1],r,null,g)})},q3.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,u=$(e),h=u.seriesIndex,c=l.getSeriesByIndex(h),p=u.dataModel||c,d=u.dataIndex,u=u.dataType,f=p.getData(u),g=this._renderMode,y=t.positionDefault,m=K3([f.getItemModel(d),p,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),c=m.get(\\\"trigger\\\");null!=c&&\\\"item\\\"!==c||(i=p.getDataParams(d,u),o=new Qg,i.marker=o.makeTooltipMarker(\\\"item\\\",Up(i.color),g),y=Zf(p.formatTooltip(d,!1,u)),c=m.get(\\\"order\\\"),u=m.get(\\\"valueFormatter\\\"),r=y.frag,a=r?jg(u?Z({valueFormatter:u},r):r,o,g,c,l.get(\\\"useUTC\\\"),m.get(\\\"textStyle\\\")):y.text,s=\\\"item_\\\"+p.name+\\\"_\\\"+d,this._showOrMove(m,function(){this._showTooltipContent(m,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:\\\"showTip\\\",dataIndexInside:d,dataIndex:f.getRawIndex(d),seriesIndex:h,from:this.uid}))},q3.prototype._showComponentItemTooltip=function(e,n,t){var i=$(n),o=i.tooltipConfig.option||{},r=[o=X(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),e.positionDefault),a=K3(r,this._tooltipModel,i?{position:i}:null),s=a.get(\\\"content\\\"),l=Math.random()+\\\"\\\",u=new Qg;this._showOrMove(a,function(){var t=L(a.get(\\\"formatterParams\\\")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:\\\"showTip\\\",from:this.uid})},q3.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d,f;this._ticket=\\\"\\\",n.get(\\\"showContent\\\")&&n.get(\\\"show\\\")&&((u=this._tooltipContent).setEnterable(n.get(\\\"enterable\\\")),h=n.get(\\\"formatter\\\"),a=a||n.get(\\\"position\\\"),d=t,c=this._getNearestPoint([o,r],i,n.get(\\\"trigger\\\"),n.get(\\\"borderColor\\\")).color,h&&(d=X(h)?(p=n.ecModel.get(\\\"useUTC\\\"),d=h,Hp(d=(f=U(i)?i[0]:i)&&f.axisType&&0\u003C=f.axisType.indexOf(\\\"time\\\")?vp(f.axisValue,d,p):d,i,!0)):A(h)?(f=I(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,f)):h),u.setContent(d,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},q3.prototype._getNearestPoint=function(t,e,n,i){return\\\"axis\\\"===n||U(e)?{color:i||(\\\"html\\\"===this._renderMode?\\\"#fff\\\":\\\"none\\\")}:U(e)?void 0:{color:i||e.color||e.borderColor}},q3.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l,u,h,c,p=this._api.getWidth(),d=this._api.getHeight(),f=(e=e||t.get(\\\"position\\\"),o.getSize()),g=t.get(\\\"align\\\"),y=t.get(\\\"verticalAlign\\\"),m=a&&a.getBoundingRect().clone();a&&m.applyTransform(a.transform),U(e=A(e)?e([n,i],r,o.el,m,{viewSize:[p,d],contentSize:f.slice()}):e)?(n=F(e[0],p),i=F(e[1],d)):R(e)?((l=e).width=f[0],l.height=f[1],n=(l=Jp(l,{width:p,height:d})).x,i=l.y,y=g=null):i=(n=(s=X(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case\\\"inside\\\":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case\\\"top\\\":s=e.x+u/2-o/2,l=e.y-r-a;break;case\\\"bottom\\\":s=e.x+u/2-o/2,l=e.y+h+a;break;case\\\"left\\\":s=e.x-o-a,l=e.y+h/2-r/2;break;case\\\"right\\\":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,m,f,t.get(\\\"borderWidth\\\")):(r=n,a=i,e=p,h=d,u=g?null:20,c=y?null:20,l=o.getSize(),m=l[0],l=l[1],null!=u&&(e\u003Cr+m+u+2?r-=m+u:r+=u),null!=c&&(h\u003Ca+l+c?a-=l+c:a+=c),[r,a]))[0],s[1]),g&&(n-=J3(g)?f[0]/2:\\\"right\\\"===g?f[0]:0),y&&(i-=J3(y)?f[1]/2:\\\"bottom\\\"===y?f[1]:0),k3(t)&&(e=n,u=i,h=p,c=d,m=o.getSize(),g=m[0],m=m[1],e=Math.min(e+g,h)-g,u=Math.min(u+m,c)-m,n=(s=[Math.max(e,0),Math.max(u,0)])[0],i=s[1]),o.moveTo(n,i)},q3.prototype._updateContentNotChangedOnAxis=function(i,a){var t=this._lastDataByCoordSys,s=this._cbParamsList,l=!!t&&t.length===i.length;return l&<(t,function(t,e){var n=t.dataByAxis||[],r=(i[e]||{}).dataByAxis||[];(l=l&&n.length===r.length)&<(n,function(t,e){var n=r[e]||{},i=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(l=l&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&i.length===o.length)&<(i,function(t,e){var n=o[e];l=l&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),s&<(t.seriesDataIndices,function(t){var e=t.seriesIndex,n=a[e],e=s[e];n&&e&&e.data!==n.data&&(l=!1)})})}),this._lastDataByCoordSys=i,this._cbParamsList=a,!!l},q3.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:\\\"hideTip\\\",from:this.uid})},q3.prototype.dispose=function(t,e){!S.node&&e.getDom()&&(Ly(this,\\\"_updatePosition\\\"),this._tooltipContent.dispose(),UN(\\\"itemTooltip\\\",e))},q3.type=\\\"tooltip\\\",q3);function q3(){var t=null!==X3&&X3.apply(this,arguments)||this;return t.type=q3.type,t}function K3(t,e,n){for(var i=e.ecModel,o=n?(o=new qc(n,i,i),new qc(e.option,o,i)):e,r=t.length-1;0\u003C=r;r--){var a=t[r];a&&(a=X(a=a instanceof qc?a.get(\\\"tooltip\\\",!0):a)?{formatter:a}:a)&&(o=new qc(a,o,i))}return o}function $3(t,e){return t.dispatchAction||I(e.dispatchAction,e)}function J3(t){return\\\"center\\\"===t||\\\"middle\\\"===t}var Q3=[\\\"rect\\\",\\\"polygon\\\",\\\"keep\\\",\\\"clear\\\"];function tV(t,e){var n,i,o,r=Dr(t?t.brush:[]);r.length&&(n=[],lt(r,function(t){var e=t.hasOwnProperty(\\\"toolbox\\\")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}),(r=U(r=t&&t.toolbox)?r[0]:r)||(t.toolbox=[r={feature:{}}]),r=(r=r.feature||(r.feature={})).brush||(r.brush={}),(r=r.type||(r.type=[])).push.apply(r,n),o={},lt(i=r,function(t){o[t]=1}),i.length=0,lt(o,function(t,e){i.push(e)}),e)&&!r.length&&r.push.apply(r,Q3)}var eV=lt;function nV(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function iV(e,t,r){var n={};return eV(t,function(i){var t,o=n[i]=((t=function(){}).prototype.__hidden=t.prototype,new t);eV(e[i],function(t,e){var n;dC.isValidType(e)&&(n={type:e,visual:t},r&&r(n,i),o[e]=new dC(n),\\\"opacity\\\"===e)&&((n=L(n)).type=\\\"colorAlpha\\\",o.__hidden.__alphaForOpacity=new dC(n))})}),n}function oV(e,n,t){var i;lt(t,function(t){n.hasOwnProperty(t)&&nV(n[t])&&(i=!0)}),i&<(t,function(t){n.hasOwnProperty(t)&&nV(n[t])?e[t]=L(n[t]):delete e[t]})}var rV={lineX:aV(0),lineY:aV(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&sx(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,r,a,s,l=n.range;return!(!t||l.length\u003C=1)&&(i=t.x,o=t.y,r=t.width,a=t.height,s=l[0],!!(sx(l,i,o)||sx(l,i+r,o)||sx(l,i,o+a)||sx(l,i+r,o+a)||B.create(t).contain(s[0],s[1])||mc(i,o,i+r,o,l)||mc(i,o,i,o+a,l)||mc(i+r,o,i+r,o+a,l)||mc(i,o+a,i+r,o+a,l))||void 0)}}};function aV(r){var a=[\\\"x\\\",\\\"y\\\"],s=[\\\"width\\\",\\\"height\\\"];return{point:function(t,e,n){var i;if(t)return i=n.range,sV(t[r],i)},rect:function(t,e,n){var i,o;if(t)return i=n.range,(o=[t[a[r]],t[a[r]]+t[s[r]]])[1]\u003Co[0]&&o.reverse(),sV(o[0],i)||sV(o[1],i)||sV(i[0],o)||sV(i[1],o)}}}function sV(t,e){return e[0]\u003C=t&&t\u003C=e[1]}var lV=[\\\"inBrush\\\",\\\"outOfBrush\\\"],uV=\\\"__ecInBrushSelectEvent\\\";function hV(e){e.eachComponent({mainType:\\\"brush\\\"},function(t){(t.brushTargetManager=new l3(t.option,e)).setInputRanges(t.areas,e)})}function cV(c,t,e){var o,r,n,i,a,s,l=[];c.eachComponent({mainType:\\\"brush\\\"},function(t){e&&\\\"takeGlobalCursor\\\"===e.type&&t.setBrushOption(\\\"brush\\\"===e.key?e.brushOption:{brushType:!1})}),hV(c),c.eachComponent({mainType:\\\"brush\\\"},function(u,t){var s={brushId:u.id,brushIndex:t,brushName:u.name,areas:L(u.areas),selected:[]},e=(l.push(s),u.option),n=e.brushLink,i=[],m=[],v=[],x=!1,h=(t||(o=e.throttleType,r=e.throttleDelay),Y(u.areas,function(t){var e,n,i,o=fV[t.brushType],o=H({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return rV[n].point(t,i,e)},rect:function(t){return rV[n].rect(t,i,e)}}),o})),_=iV(u.option,lV,function(t){t.mappingMethod=\\\"fixed\\\"});function b(t){return\\\"all\\\"===n||i[t]}function w(t){return!!t.length}U(n)&<(n,function(t){i[t]=1}),c.eachSeries(function(t,e){var n,i,o,r,a,s,l=v[e]=[];\\\"parallel\\\"===t.subType?(a=e,s=(r=t).coordinateSystem,x=x||s.hasAxisBrushed(),b(a)&&s.eachActiveState(r.getData(),function(t,e){\\\"active\\\"===t&&(m[e]=1)})):(a=e,i=l,(n=t).brushSelector&&(r=a,null==(s=u.option.seriesIndex)||\\\"all\\\"===s||!(U(s)?G(s,r)\u003C0:r!==s))&&(lt(h,function(t){u.brushTargetManager.controlSeries(t,n,c)&&i.push(t),x=x||w(i)}),b(a)&&w(i))&&(o=n.getData()).each(function(t){dV(n,i,o,t)&&(m[t]=1)}))}),c.eachSeries(function(e,t){var l,u,h,c,p,d,f,n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]},i=(s.selected.push(n),v[t]),o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),\\\"inBrush\\\"):\\\"outOfBrush\\\"}:function(t){return dV(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),\\\"inBrush\\\"):\\\"outOfBrush\\\"};function g(t){return rm(u,d,t)}function y(t,e){sm(u,d,t,e)}function a(t,e){d=null==p?t:e;var n=u.getRawDataItem(d);if(!n||!1!==n.visualMap)for(var n=h.call(c,t),i=l[n],o=f[n],r=0,a=o.length;r\u003Ca;r++){var s=o[r];i[s]&&i[s].applyVisual(t,g,y)}}(b(t)?x:w(i))&&(l=_,u=o,h=r,f={},lt(lV,function(t){var e=dC.prepareVisualTypes(l[t]);f[t]=e}),null==p?u.each(a):u.each([p],a))})}),t=t,n=o,i=r,a=l,e&&!(s=t.getZr())[uV]&&(s.__ecBrushSelect||(s.__ecBrushSelect=pV),ky(s,\\\"__ecBrushSelect\\\",i,n)(t,a))}function pV(t,e){var n;t.isDisposed()||((n=t.getZr())[uV]=!0,t.dispatchAction({type:\\\"brushSelect\\\",batch:e}),n[uV]=!1)}function dV(t,e,n,i){for(var o=0,r=e.length;o\u003Cr;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return 1}}var fV={rect:function(t){return gV(t.range)},polygon:function(t){for(var e=t.range,n=0,i=e.length;n\u003Ci;n++){var o=o||[[1/0,-1/0],[1/0,-1/0]],r=e[n];r[0]\u003Co[0][0]&&(o[0][0]=r[0]),r[0]>o[0][1]&&(o[0][1]=r[0]),r[1]\u003Co[1][0]&&(o[1][0]=r[1]),r[1]>o[1][1]&&(o[1][1]=r[1])}return o&&gV(o)}};function gV(t){return new B(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}u(bV,mV=fy),bV.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new wk(e.getZr())).on(\\\"brush\\\",I(this._onBrush,this)).mount()},bV.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},bV.prototype.updateTransform=function(t,e,n,i){hV(e),this._updateController(t,e,n,i)},bV.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},bV.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},bV.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},bV.prototype.dispose=function(){this._brushController.dispose()},bV.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:\\\"brush\\\",brushId:e,areas:L(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:\\\"brushEnd\\\",brushId:e,areas:L(n),$from:e})},bV.type=\\\"brush\\\";var yV,mV,vV=bV,xV=(u(_V,yV=m),_V.prototype.optionUpdated=function(t,e){var n=this.option,i=(e||oV(n,t,[\\\"inBrush\\\",\\\"outOfBrush\\\"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:\\\"#ddd\\\"},i.hasOwnProperty(\\\"liftZ\\\")||(i.liftZ=5)},_V.prototype.setAreas=function(t){t&&(this.areas=Y(t,function(t){return wV(this.option,t)},this))},_V.prototype.setBrushOption=function(t){this.brushOption=wV(this.option,t),this.brushType=this.brushOption.brushType},_V.type=\\\"brush\\\",_V.dependencies=[\\\"geo\\\",\\\"grid\\\",\\\"xAxis\\\",\\\"yAxis\\\",\\\"parallel\\\",\\\"series\\\"],_V.defaultOption={seriesIndex:\\\"all\\\",brushType:\\\"rect\\\",brushMode:\\\"single\\\",transformable:!0,brushStyle:{borderWidth:1,color:\\\"rgba(210,219,238,0.3)\\\",borderColor:\\\"#D2DBEE\\\"},throttleType:\\\"fixRate\\\",throttleDelay:0,removeOnClick:!0,z:1e4},_V);function _V(){var t=null!==yV&&yV.apply(this,arguments)||this;return t.type=_V.type,t.areas=[],t.brushOption={},t}function bV(){var t=null!==mV&&mV.apply(this,arguments)||this;return t.type=bV.type,t}function wV(t,e){return v({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new qc(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var SV,MV=[\\\"rect\\\",\\\"polygon\\\",\\\"lineX\\\",\\\"lineY\\\",\\\"keep\\\",\\\"clear\\\"],IV=(u(TV,SV=Dz),TV.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:\\\"brush\\\"},function(t){i=t.brushType,o=t.brushOption.brushMode||\\\"single\\\",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,lt(e.get(\\\"type\\\",!0),function(t){e.setIconStatus(t,(\\\"keep\\\"===t?\\\"multiple\\\"===o:\\\"clear\\\"===t?r:t===i)?\\\"emphasis\\\":\\\"normal\\\")})},TV.prototype.updateView=function(t,e,n){this.render(t,e,n)},TV.prototype.getIcons=function(){var t=this.model,e=t.get(\\\"icon\\\",!0),n={};return lt(t.get(\\\"type\\\",!0),function(t){e[t]&&(n[t]=e[t])}),n},TV.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;\\\"clear\\\"===n?(e.dispatchAction({type:\\\"axisAreaSelect\\\",intervals:[]}),e.dispatchAction({type:\\\"brush\\\",command:\\\"clear\\\",areas:[]})):e.dispatchAction({type:\\\"takeGlobalCursor\\\",key:\\\"brush\\\",brushOption:{brushType:\\\"keep\\\"===n?i:i!==n&&n,brushMode:\\\"keep\\\"===n?\\\"multiple\\\"===o?\\\"single\\\":\\\"multiple\\\":o}})},TV.getDefaultOption=function(t){return{show:!0,type:MV.slice(),icon:{rect:\\\"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13\\\",polygon:\\\"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2\\\",lineX:\\\"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4\\\",lineY:\\\"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4\\\",keep:\\\"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z\\\",clear:\\\"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2\\\"},title:t.getLocaleModel().get([\\\"toolbox\\\",\\\"brush\\\",\\\"title\\\"])}},TV);function TV(){return null!==SV&&SV.apply(this,arguments)||this}u(PV,DV=m),PV.type=\\\"title\\\",PV.defaultOption={z:6,show:!0,text:\\\"\\\",target:\\\"blank\\\",subtext:\\\"\\\",subtarget:\\\"blank\\\",left:0,top:0,backgroundColor:\\\"rgba(0,0,0,0)\\\",borderColor:\\\"#ccc\\\",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:\\\"bold\\\",color:\\\"#464646\\\"},subtextStyle:{fontSize:12,color:\\\"#6E7079\\\"}};var CV,DV,AV=PV,kV=(u(LV,CV=fy),LV.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get(\\\"show\\\")&&(i=this.group,h=t.getModel(\\\"textStyle\\\"),o=t.getModel(\\\"subtextStyle\\\"),c=t.get(\\\"textAlign\\\"),u=P(t.get(\\\"textBaseline\\\"),t.get(\\\"textVerticalAlign\\\")),s=(h=new z({style:Dc(h,{text:t.get(\\\"text\\\"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get(\\\"subtext\\\"),o=new z({style:Dc(o,{text:l,fill:o.getTextColor(),y:s.height+t.get(\\\"itemGap\\\"),verticalAlign:\\\"top\\\"},{disableBox:!0}),z2:10}),r=t.get(\\\"link\\\"),a=t.get(\\\"sublink\\\"),s=t.get(\\\"triggerEvent\\\",!0),h.silent=!r&&!s,o.silent=!a&&!s,r&&h.on(\\\"click\\\",function(){Xp(r,\\\"_\\\"+t.get(\\\"target\\\"))}),a&&o.on(\\\"click\\\",function(){Xp(a,\\\"_\\\"+t.get(\\\"subtarget\\\"))}),$(h).eventData=$(o).eventData=s?{componentType:\\\"title\\\",componentIndex:t.componentIndex}:null,i.add(h),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Jp(l,{width:n.getWidth(),height:n.getHeight()},t.get(\\\"padding\\\")),c||(\\\"right\\\"===(c=\\\"middle\\\"===(c=t.get(\\\"left\\\")||t.get(\\\"right\\\"))?\\\"center\\\":c)?l.x+=l.width:\\\"center\\\"===c&&(l.x+=l.width/2)),u||(\\\"bottom\\\"===(u=\\\"center\\\"===(u=t.get(\\\"top\\\")||t.get(\\\"bottom\\\"))?\\\"middle\\\":u)?l.y+=l.height:\\\"middle\\\"===u&&(l.y+=l.height/2),u=u||\\\"top\\\"),i.x=l.x,i.y=l.y,i.markRedraw(),h.setStyle(c={align:c,verticalAlign:u}),o.setStyle(c),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle([\\\"color\\\",\\\"opacity\\\"])).fill=t.get(\\\"backgroundColor\\\"),c=new E({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get(\\\"borderRadius\\\")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},LV.type=\\\"title\\\",LV);function LV(){var t=null!==CV&&CV.apply(this,arguments)||this;return t.type=LV.type,t}function PV(){var t=null!==DV&&DV.apply(this,arguments)||this;return t.type=PV.type,t.layoutMode={type:\\\"box\\\",ignoreSize:!0},t}u(VV,RV=m),VV.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},VV.prototype.mergeOption=function(t){RV.prototype.mergeOption.apply(this,arguments),this._initData()},VV.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e\u003C=t?e-1:t)\u003C0&&(t=0),this.option.currentIndex=t},VV.prototype.getCurrentIndex=function(){return this.option.currentIndex},VV.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},VV.prototype.setPlayState=function(t){this.option.autoPlay=!!t},VV.prototype.getPlayState=function(){return!!this.option.autoPlay},VV.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=(\\\"category\\\"===t?(o=[],lt(e,function(t,e){var n,i=Nr(Lr(t),\\\"\\\");R(t)?(n=L(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:\\\"ordinal\\\",time:\\\"time\\\",value:\\\"number\\\"}[t]||\\\"number\\\");(this._data=new Fv([{name:\\\"value\\\",type:e}],this)).initData(o,r)},VV.prototype.getData=function(){return this._data},VV.prototype.getCategories=function(){if(\\\"category\\\"===this.get(\\\"axisType\\\"))return this._names.slice()},VV.type=\\\"timeline\\\",VV.defaultOption={z:4,show:!0,axisType:\\\"time\\\",realtime:!0,left:\\\"20%\\\",top:null,right:\\\"20%\\\",bottom:0,width:null,height:40,padding:5,controlPosition:\\\"left\\\",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:\\\"#000\\\"},data:[]};var OV,RV,NV=VV,EV=(u(zV,OV=NV),zV.type=\\\"timeline.slider\\\",zV.defaultOption=np(NV.defaultOption,{backgroundColor:\\\"rgba(0,0,0,0)\\\",borderColor:\\\"#ccc\\\",borderWidth:0,orient:\\\"horizontal\\\",inverse:!1,tooltip:{trigger:\\\"item\\\"},symbol:\\\"circle\\\",symbolSize:12,lineStyle:{show:!0,width:2,color:\\\"#DAE1F5\\\"},label:{position:\\\"auto\\\",show:!0,interval:\\\"auto\\\",rotate:0,color:\\\"#A4B1D7\\\"},itemStyle:{color:\\\"#A4B1D7\\\",borderWidth:1},checkpointStyle:{symbol:\\\"circle\\\",symbolSize:15,color:\\\"#316bf3\\\",borderColor:\\\"#fff\\\",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:\\\"rgba(0, 0, 0, 0.3)\\\",animation:!0,animationDuration:300,animationEasing:\\\"quinticInOut\\\"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:\\\"left\\\",playIcon:\\\"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z\\\",stopIcon:\\\"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z\\\",nextIcon:\\\"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z\\\",prevIcon:\\\"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z\\\",prevBtnSize:18,nextBtnSize:18,color:\\\"#A4B1D7\\\",borderColor:\\\"#A4B1D7\\\",borderWidth:1},emphasis:{label:{show:!0,color:\\\"#6f778d\\\"},itemStyle:{color:\\\"#316BF3\\\"},controlStyle:{color:\\\"#316BF3\\\",borderColor:\\\"#316BF3\\\",borderWidth:2}},progress:{lineStyle:{color:\\\"#316BF3\\\"},itemStyle:{color:\\\"#316BF3\\\"},label:{color:\\\"#6f778d\\\"}},data:[]}),zV);function zV(){var t=null!==OV&&OV.apply(this,arguments)||this;return t.type=zV.type,t}function VV(){var t=null!==RV&&RV.apply(this,arguments)||this;return t.type=VV.type,t.layoutMode=\\\"box\\\",t}ut(EV,ra.prototype);u(jV,GV=fy),jV.type=\\\"timeline\\\";var BV,FV,GV,ym=jV,WV=(u(ZV,FV=Xc),ZV.prototype.getLabelModel=function(){return this.model.getModel(\\\"label\\\")},ZV.prototype.isHorizontal=function(){return\\\"horizontal\\\"===this.model.get(\\\"orient\\\")},ZV),HV=Math.PI,YV=i(),UV=(u(XV,BV=ym),XV.prototype.init=function(t,e){this.api=e},XV.prototype.render=function(e,t,n){var i,o,r,a;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(\\\"show\\\",!0)&&(i=this._layout(e,n),o=this._createGroup(\\\"_mainGroup\\\"),r=this._createGroup(\\\"_labelGroup\\\"),a=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return Hg(\\\"nameValue\\\",{noName:!0,value:a.scale.getLabel({value:t})})},lt([\\\"AxisLine\\\",\\\"AxisTick\\\",\\\"Control\\\",\\\"CurrentPointer\\\"],function(t){this[\\\"_render\\\"+t](i,o,a,e)},this),this._renderAxisLabel(i,r,a,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},XV.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},XV.prototype.dispose=function(){this._clearTimer()},XV.prototype._layout=function(t,e){var n,i,o,r,a,s=t.get([\\\"label\\\",\\\"position\\\"]),l=t.get(\\\"orient\\\"),u=(a=e,Jp((r=t).getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()},r.get(\\\"padding\\\"))),h={horizontal:\\\"center\\\",vertical:0\u003C=(s=null==s||\\\"auto\\\"===s?\\\"horizontal\\\"===l?u.y+u.height/2\u003Ce.getHeight()/2?\\\"-\\\":\\\"+\\\":u.x+u.width/2\u003Ce.getWidth()/2?\\\"+\\\":\\\"-\\\":X(s)?{horizontal:{top:\\\"-\\\",bottom:\\\"+\\\"},vertical:{left:\\\"-\\\",right:\\\"+\\\"}}[l][s]:s)||\\\"+\\\"===s?\\\"left\\\":\\\"right\\\"},c={horizontal:0\u003C=s||\\\"+\\\"===s?\\\"top\\\":\\\"bottom\\\",vertical:\\\"middle\\\"},p={horizontal:0,vertical:HV/2},d=\\\"vertical\\\"===l?u.height:u.width,f=t.getModel(\\\"controlStyle\\\"),g=f.get(\\\"show\\\",!0),y=g?f.get(\\\"itemSize\\\"):0,m=g?f.get(\\\"itemGap\\\"):0,v=y+m,x=(t.get([\\\"label\\\",\\\"rotate\\\"])||0)*HV/180,_=f.get(\\\"position\\\",!0),b=g&&f.get(\\\"showPlayBtn\\\",!0),w=g&&f.get(\\\"showPrevBtn\\\",!0),g=g&&f.get(\\\"showNextBtn\\\",!0),f=0,S=d,_=(\\\"left\\\"===_||\\\"bottom\\\"===_?(b&&(n=[0,0],f+=v),w&&(i=[f,0],f+=v)):(b&&(n=[S-y,0],S-=v),w&&(i=[0,0],f+=v)),g&&(o=[S-y,0],S-=v),[f,S]);return t.get(\\\"inverse\\\")&&_.reverse(),{viewRect:u,mainLength:d,orient:l,rotation:p[l],labelRotation:x,labelPosOpt:s,labelAlign:t.get([\\\"label\\\",\\\"align\\\"])||h[l],labelBaseline:t.get([\\\"label\\\",\\\"verticalAlign\\\"])||t.get([\\\"label\\\",\\\"baseline\\\"])||c[l],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:_,controlSize:y,controlGap:m}},XV.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect,r=(\\\"vertical\\\"===t.orient&&(io(l=[1,0,0,1,0,0],l,[-(a=o.x),-(s=o.y+o.height)]),oo(l,l,-HV/2),io(l,l,[a,s]),(o=o.clone()).applyTransform(l)),p(o)),a=p(n.getBoundingRect()),s=p(i.getBoundingRect()),l=[n.x,n.y],o=[i.x,i.y];o[0]=l[0]=r[0][0];var u,h=t.labelPosOpt;function c(t){t.originX=r[0][0]-t.x,t.originY=r[1][0]-t.y}function p(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function d(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}null==h||X(h)?(d(l,a,r,1,u=\\\"+\\\"===h?0:1),d(o,s,r,1,1-u)):(d(l,a,r,1,u=0\u003C=h?0:1),o[1]=l[1]+h),n.setPosition(l),i.setPosition(o),n.rotation=i.rotation=t.rotation,c(n),c(i)},XV.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get(\\\"axisType\\\"),o=function(t,e){if(e=i||t.get(\\\"type\\\"))switch(e){case\\\"category\\\":return new u1({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case\\\"time\\\":return new A1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get(\\\"useUTC\\\")});default:return new d1}}(e),r=(o.getTicks=function(){return n.mapArray([\\\"value\\\"],function(t){return{value:t}})},n.getDataExtent(\\\"value\\\")),r=(o.setExtent(r[0],r[1]),o.calcNiceTicks(),new WV(\\\"value\\\",o,t.axisExtent,i));return r.model=e,r},XV.prototype._createGroup=function(t){var e=this[t]=new K;return this.group.add(e),e},XV.prototype._renderAxisLine=function(t,e,n,i){var o,r=n.getExtent();i.get([\\\"lineStyle\\\",\\\"show\\\"])&&(o=new hh({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Z({lineCap:\\\"round\\\"},i.getModel(\\\"lineStyle\\\").getLineStyle()),silent:!0,z2:1}),e.add(o),r=this._progressLine=new hh({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:H({lineCap:\\\"round\\\",lineWidth:o.style.lineWidth},i.getModel([\\\"progress\\\",\\\"lineStyle\\\"]).getLineStyle()),silent:!0,z2:1}),e.add(r))},XV.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],lt(e,function(t){var e=s.dataToCoord(t.value),n=h.getItemModel(t.value),i=n.getModel(\\\"itemStyle\\\"),o=n.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),r=n.getModel([\\\"progress\\\",\\\"itemStyle\\\"]),e={x:e,y:0,onclick:I(u._changeTimeline,u,t.value)},i=qV(n,i,a,e),e=(i.ensureState(\\\"emphasis\\\").style=o.getItemStyle(),i.ensureState(\\\"progress\\\").style=r.getItemStyle(),Xl(i),$(i));n.get(\\\"tooltip\\\")?(e.dataIndex=t.value,e.dataModel=l):e.dataIndex=e.dataModel=null,u._tickSymbols.push(i)})},XV.prototype._renderAxisLabel=function(a,s,l,t){var u,e,h=this;l.getLabelModel().get(\\\"show\\\")&&(u=t.getData(),e=l.getViewLabels(),this._tickLabels=[],lt(e,function(t){var e=t.tickValue,n=u.getItemModel(e),i=n.getModel(\\\"label\\\"),o=n.getModel([\\\"emphasis\\\",\\\"label\\\"]),n=n.getModel([\\\"progress\\\",\\\"label\\\"]),r=l.dataToCoord(t.tickValue),r=new z({x:r,y:0,rotation:a.labelRotation-a.rotation,onclick:I(h._changeTimeline,h,e),silent:!1,style:Dc(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});r.ensureState(\\\"emphasis\\\").style=Dc(o),r.ensureState(\\\"progress\\\").style=Dc(n),s.add(r),Xl(r),YV(r).dataIndex=e,h._tickLabels.push(r)}))},XV.prototype._renderControl=function(t,s,e,l){var u=t.controlSize,h=t.rotation,c=l.getModel(\\\"controlStyle\\\").getItemStyle(),p=l.getModel([\\\"emphasis\\\",\\\"controlStyle\\\"]).getItemStyle(),n=l.getPlayState(),i=l.get(\\\"inverse\\\",!0);function o(t,e,n,i){var o,r,a;t&&(r=Eo(P(l.get([\\\"controlStyle\\\",e+\\\"BtnSize\\\"]),u),u),o=[0,-r/2,r,r],t={x:t[0],y:t[1],originX:u/2,originY:0,rotation:i?-h:0,rectHover:!0,style:c,onclick:n},r=t.style,a=yc(l.get([\\\"controlStyle\\\",e+\\\"Icon\\\"]),t,new B(o[0],o[1],o[2],o[3])),r&&a.setStyle(r),(r=a).ensureState(\\\"emphasis\\\").style=p,s.add(r),Xl(r))}o(t.nextBtnPosition,\\\"next\\\",I(this._changeTimeline,this,i?\\\"-\\\":\\\"+\\\")),o(t.prevBtnPosition,\\\"prev\\\",I(this._changeTimeline,this,i?\\\"+\\\":\\\"-\\\")),o(t.playPosition,n?\\\"stop\\\":\\\"play\\\",I(this._handlePlayClick,this,!n),!0)},XV.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel(\\\"checkpointStyle\\\"),a=this;this._currentPointer=qV(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=I(a._handlePointerDrag,a),t.ondragend=I(a._handlePointerDragend,a),KV(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){KV(t,a._progressLine,r,n,i)}})},XV.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:\\\"timelinePlayChange\\\",playState:t,from:this.uid})},XV.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},XV.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},XV.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=rr(this._axis.getExtent().slice()),i=((n=n>i[1]?i[1]:n)\u003Ci[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty(),this._findNearestTick(n)),n=this.model;(e||i!==n.getCurrentIndex()&&n.get(\\\"realtime\\\"))&&this._changeTimeline(i)},XV.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(\\\"rewind\\\",!0)?-1:1))},this.model.get(\\\"playInterval\\\")))},XV.prototype._toAxisCoord=function(t){return hc(t,this._mainGroup.getLocalTransform(),!0)},XV.prototype._findNearestTick=function(i){var o,t=this.model.getData(),r=1/0,a=this._axis;return t.each([\\\"value\\\"],function(t,e){var n=a.dataToCoord(t),n=Math.abs(n-i);n\u003Cr&&(r=n,o=e)}),o},XV.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},XV.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();\\\"+\\\"===t?t=e+1:\\\"-\\\"===t&&(t=e-1),this.api.dispatchAction({type:\\\"timelineChange\\\",currentIndex:t,from:this.uid})},XV.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i\u003Ce.length;i++)e&&e[i]&&e[i].toggleState(\\\"progress\\\",i\u003Ct);if(n)for(i=0;i\u003Cn.length;i++)n&&n[i]&&n[i].toggleState(\\\"progress\\\",YV(n[i]).dataIndex\u003C=t)},XV.type=\\\"timeline.slider\\\",XV);function XV(){var t=null!==BV&&BV.apply(this,arguments)||this;return t.type=XV.type,t}function ZV(t,e,n,i){var o=FV.call(this,t,e,n)||this;return o.type=i||\\\"value\\\",o}function jV(){var t=null!==GV&&GV.apply(this,arguments)||this;return t.type=jV.type,t}function qV(t,e,n,i,o,r){var a=e.get(\\\"color\\\"),a=(o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Sm(t.get(\\\"symbol\\\"),-1,-1,2,2,a)).setStyle(\\\"strokeNoScale\\\",!0),n.add(o),r&&r.onCreate(o)),e.getItemStyle([\\\"color\\\"])),a=(o.setStyle(a),i=v({rectHover:!0,z2:100},i,!0),Mm(t.get(\\\"symbolSize\\\"))),a=(i.scaleX=a[0]/2,i.scaleY=a[1]/2,Im(t.get(\\\"symbolOffset\\\"),a)),a=(a&&(i.x=(i.x||0)+a[0],i.y=(i.y||0)+a[1]),t.get(\\\"symbolRotate\\\"));return i.rotation=(a||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function KV(t,e,n,i,o,r){var a,s;t.dragging||(s=o.getModel(\\\"checkpointStyle\\\"),a=i.dataToCoord(o.getData().get(\\\"value\\\",n)),r||!s.get(\\\"animation\\\",!0)?(t.attr({x:a,y:0}),e&&e.attr({shape:{x2:a}})):(s={duration:s.get(\\\"animationDuration\\\",!0),easing:s.get(\\\"animationEasing\\\",!0)},t.stopAnimation(null,!0),t.animateTo({x:a,y:0},s),e&&e.animateTo({shape:{x2:a}},s)))}function $V(t){var e=t&&t.timeline;lt(e=U(e)?e:e?[e]:[],function(t){var e,n;t&&(e=(t=t).type,(n={number:\\\"value\\\",time:\\\"time\\\"})[e]&&(t.axisType=n[e],delete t.type),JV(t),QV(t,\\\"controlPosition\\\")&&(QV(e=t.controlStyle||(t.controlStyle={}),\\\"position\\\")||(e.position=t.controlPosition),\\\"none\\\"!==e.position||QV(e,\\\"show\\\")||(e.show=!1,delete e.position),delete t.controlPosition),lt(t.data||[],function(t){R(t)&&!U(t)&&(!QV(t,\\\"value\\\")&&QV(t,\\\"name\\\")&&(t.value=t.name),JV(t))}))})}function JV(t){var e=t.itemStyle||(t.itemStyle={}),e=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},i=n.normal||(n.normal={}),o={normal:1,emphasis:1};lt(n,function(t,e){o[e]||QV(i,e)||(i[e]=t)}),e.label&&!QV(n,\\\"emphasis\\\")&&(n.emphasis=e.label,delete e.label)}function QV(t,e){return t.hasOwnProperty(e)}function tB(t,e){if(t)for(var n=U(t)?t:[t],i=0;i\u003Cn.length;i++)if(n[i]&&n[i][e])return 1}function eB(t){Ar(t,\\\"label\\\",[\\\"show\\\"])}var nB,iB=i(),oB=(u(rB,nB=m),rB.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},rB.prototype.isAnimationEnabled=function(){var t;return!S.node&&(t=this.__hostSeries,this.getShallow(\\\"animation\\\"))&&t&&t.isAnimationEnabled()},rB.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},rB.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=iB(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&eB(e),lt(e.data,function(t){t instanceof Array?(eB(t[0]),eB(t[1])):eB(t)}),Z(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),iB(t)[r]=n):iB(t)[r]=null},this)},rB.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),i=i.getName(t);return Hg(\\\"section\\\",{header:this.name,blocks:[Hg(\\\"nameValue\\\",{name:i,value:o,noName:!i,noValue:null==o})]})},rB.prototype.getData=function(){return this._data},rB.prototype.setData=function(t){this._data=t},rB.getMarkerModelFromSeries=function(t,e){return iB(t)[e]},rB.type=\\\"marker\\\",rB.dependencies=[\\\"series\\\",\\\"grid\\\",\\\"polar\\\",\\\"geo\\\"],rB);function rB(){var t=null!==nB&&nB.apply(this,arguments)||this;return t.type=rB.type,t.createdBySelf=!1,t}ut(oB,ra.prototype);u(lB,aB=oB),lB.prototype.createMarkerModelFromSeries=function(t,e,n){return new lB(t,e,n)},lB.type=\\\"markPoint\\\",lB.defaultOption={z:5,symbol:\\\"pin\\\",symbolSize:50,tooltip:{trigger:\\\"item\\\"},label:{show:!0,position:\\\"inside\\\"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var aB,sB=lB;function lB(){var t=null!==aB&&aB.apply(this,arguments)||this;return t.type=lB.type,t}function uB(t,e,n,i,o,r){var a=[],s=Xv(e,i)?e.getCalculationInfo(\\\"stackResultDimension\\\"):i,l=gB(e,s,t),l=e.indicesOfNearest(s,l)[0],s=(a[o]=e.get(n,l),a[r]=e.get(s,l),e.get(i,l)),l=ar(e.get(i,l));return 0\u003C=(l=Math.min(l,20))&&(a[r]=+a[r].toFixed(l)),[a,s]}var hB={min:D(uB,\\\"min\\\"),max:D(uB,\\\"max\\\"),average:D(uB,\\\"average\\\"),median:D(uB,\\\"median\\\")};function cB(t,e){var n,i=t.getData(),o=t.coordinateSystem;if(e&&(n=e,isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!U(e.coord)&&o){var r=o.dimensions,o=pB(e,i,o,t);if((e=L(e)).type&&hB[e.type]&&o.baseAxis&&o.valueAxis){var a=G(r,o.baseAxis.dim),s=G(r,o.valueAxis.dim),o=hB[e.type](i,o.baseDataDim,o.valueDataDim,a,s);e.coord=o[0],e.value=o[1]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],u=0;u\u003C2;u++)hB[l[u]]&&(l[u]=gB(i,i.mapDimension(r[u]),l[u]));e.coord=l}}return e}function pB(t,e,n,i){var o,r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis((t=r.valueDataDim,(o=i.getData().getDimensionInfo(t))&&o.coordDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function dB(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x)))&&isNaN(parseFloat(n.y)))||t.containData(e.coord);var n}function fB(t,o){return t?function(t,e,n,i){return ag(i\u003C2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return ag(t.value,o[i])}}function gB(t,e,n){var i,o;return\\\"average\\\"===n?(o=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o):\\\"median\\\"===n?t.getMedian(e):t.getDataExtent(e)[\\\"max\\\"===n?1:0]}var yB,mB=i(),NV=(u(vB,yB=fy),vB.prototype.init=function(){this.markerGroupMap=N()},vB.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){mB(t).keep=!1}),n.eachSeries(function(t){var e=oB.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){mB(t).keep||o.group.remove(t.group)})},vB.prototype.markKeep=function(t){mB(t).keep=!0},vB.prototype.toggleBlurSeries=function(t,n){var i=this;lt(t,function(t){var e=oB.getMarkerModelFromSeries(t,i.type);e&&e.getData().eachItemGraphicEl(function(t){t&&(n?El:zl)(t)})})},vB.type=\\\"marker\\\",vB);function vB(){var t=null!==yB&&yB.apply(this,arguments)||this;return t.type=vB.type,t}function xB(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i,o=a.getItemModel(t),r=F(o.get(\\\"x\\\"),l.getWidth()),o=F(o.get(\\\"y\\\"),l.getHeight());isNaN(r)||isNaN(o)?s.getMarkerPosition?i=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),n=a.get(u.dimensions[1],t),i=u.dataToPoint([e,n])):i=[r,o],isNaN(r)||(i[0]=r),isNaN(o)||(i[1]=o),a.setItemLayout(t,i)})}u(wB,_B=NV),wB.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=oB.getMarkerModelFromSeries(t,\\\"markPoint\\\");e&&(xB(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},wB.prototype.renderSeries=function(t,u,e,n){var i,o,r,a,s=t.coordinateSystem,l=t.id,h=t.getData(),c=this.markerGroupMap,l=c.get(l)||c.set(l,new Nb),p=(o=t,r=u,c=(i=s)?Y(i&&i.dimensions,function(t){return Z(Z({},o.getData().getDimensionInfo(o.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:\\\"value\\\",type:\\\"float\\\"}],s=new Fv(c,r),a=Y(r.get(\\\"data\\\"),D(cB,o)),i&&(a=pt(a,D(dB,i))),c=fB(!!i,c),s.initData(a,null,c),s);u.setData(p),xB(u.getData(),t,n),p.each(function(t){var e=p.getItemModel(t),n=e.getShallow(\\\"symbol\\\"),i=e.getShallow(\\\"symbolSize\\\"),o=e.getShallow(\\\"symbolRotate\\\"),r=e.getShallow(\\\"symbolOffset\\\"),a=e.getShallow(\\\"symbolKeepAspect\\\"),s=((A(n)||A(i)||A(o)||A(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),A(n)&&(n=n(s,l)),A(i)&&(i=i(s,l)),A(o)&&(o=o(s,l)),A(r))&&(r=r(s,l)),e.getModel(\\\"itemStyle\\\").getItemStyle()),l=am(h,\\\"color\\\");s.fill||(s.fill=l),p.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:o,symbolOffset:r,symbolKeepAspect:a,style:s})}),l.updateData(p),this.group.add(l.group),p.eachItemGraphicEl(function(t){t.traverse(function(t){$(t).dataModel=u})}),this.markKeep(l),l.group.silent=u.get(\\\"silent\\\")||t.get(\\\"silent\\\")},wB.type=\\\"markPoint\\\";var _B,bB=wB;function wB(){var t=null!==_B&&_B.apply(this,arguments)||this;return t.type=wB.type,t}u(CB,SB=oB),CB.prototype.createMarkerModelFromSeries=function(t,e,n){return new CB(t,e,n)},CB.type=\\\"markLine\\\",CB.defaultOption={z:5,symbol:[\\\"circle\\\",\\\"arrow\\\"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:\\\"item\\\"},label:{show:!0,position:\\\"end\\\",distance:5},lineStyle:{type:\\\"dashed\\\"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:\\\"linear\\\"};var SB,MB=CB,IB=i(),TB=function(t,e,n,i){var o,r,a,s,l,u=t.getData(),u=[cB(t,(l=U(i)?i:\\\"min\\\"===(o=i.type)||\\\"max\\\"===o||\\\"average\\\"===o||\\\"median\\\"===o||null!=i.xAxis||null!=i.yAxis?(r=s=void 0,r=null!=i.yAxis||null!=i.xAxis?(s=e.getAxis(null!=i.yAxis?\\\"y\\\":\\\"x\\\"),wt(i.yAxis,i.xAxis)):(s=(l=pB(i,u,e,t)).valueAxis,gB(u,Zv(u,l.valueDataDim),o)),l=1-(u=\\\"x\\\"===s.dim?0:1),s={coord:[]},(a=L(i)).type=null,a.coord=[],a.coord[l]=-1/0,s.coord[l]=1/0,0\u003C=(l=n.get(\\\"precision\\\"))&&j(r)&&(r=+r.toFixed(Math.min(l,20))),a.coord[u]=s.coord[u]=r,[a,s,{type:o,valueIndex:i.valueIndex,value:r}]):[])[0]),cB(t,l[1]),Z({},l[2])];return u[2].type=u[2].type||null,v(u[2],u[0]),v(u[2],u[1]),u};function CB(){var t=null!==SB&&SB.apply(this,arguments)||this;return t.type=CB.type,t}function DB(t){return!isNaN(t)&&!isFinite(t)}function AB(t,e,n,i){var o=1-t,r=i.dimensions[t];return DB(e[o])&&DB(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function kB(t,e){if(\\\"cartesian2d\\\"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(AB(1,n,i,t)||AB(0,n,i,t)))return!0}return dB(t,e[0])&&dB(t,e[1])}function LB(t,e,n,i,o){var r,a,s,l,u=i.coordinateSystem,h=t.getItemModel(e),c=F(h.get(\\\"x\\\"),o.getWidth()),h=F(h.get(\\\"y\\\"),o.getHeight());isNaN(c)||isNaN(h)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(l=u.dimensions,r=t.get(l[0],e),a=t.get(l[1],e),u.dataToPoint([r,a])),nw(u,\\\"cartesian2d\\\")&&(a=u.getAxis(\\\"x\\\"),s=u.getAxis(\\\"y\\\"),l=u.dimensions,DB(t.get(l[0],e))?r[0]=a.toGlobalCoord(a.getExtent()[n?0:1]):DB(t.get(l[1],e))&&(r[1]=s.toGlobalCoord(s.getExtent()[n?0:1]))),isNaN(c)||(r[0]=c),isNaN(h)||(r[1]=h)):r=[c,h],t.setItemLayout(e,r)}u(RB,PB=NV),RB.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=oB.getMarkerModelFromSeries(e,\\\"markLine\\\");t&&(n=t.getData(),i=IB(t).from,o=IB(t).to,i.each(function(t){LB(i,t,!0,e,r),LB(o,t,!1,e,r)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},RB.prototype.renderSeries=function(r,n,t,a){var e,i,o,s,l,u,h=r.coordinateSystem,c=r.id,p=r.getData(),d=this.markerGroupMap,c=d.get(c)||d.set(c,new TD),d=(this.group.add(c.group),i=r,o=n,d=(e=h)?Y(e&&e.dimensions,function(t){return Z(Z({},i.getData().getDimensionInfo(i.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:\\\"value\\\",type:\\\"float\\\"}],h=new Fv(d,o),s=new Fv(d,o),l=new Fv([],o),u=Y(o.get(\\\"data\\\"),D(TB,i,e,o)),e&&(u=pt(u,D(kB,e))),d=fB(!!e,d),h.initData(Y(u,function(t){return t[0]}),null,d),s.initData(Y(u,function(t){return t[1]}),null,d),l.initData(Y(u,function(t){return t[2]})),l.hasItemOption=!0,{from:h,to:s,line:l}),f=d.from,g=d.to,y=d.line,m=(IB(n).from=f,IB(n).to=g,n.setData(y),n.get(\\\"symbol\\\")),v=n.get(\\\"symbolSize\\\"),x=n.get(\\\"symbolRotate\\\"),_=n.get(\\\"symbolOffset\\\");function b(t,e,n){var i=t.getItemModel(e),o=(LB(t,e,n,r,a),i.getModel(\\\"itemStyle\\\").getItemStyle());null==o.fill&&(o.fill=am(p,\\\"color\\\")),t.setItemVisual(e,{symbolKeepAspect:i.get(\\\"symbolKeepAspect\\\"),symbolOffset:P(i.get(\\\"symbolOffset\\\",!0),_[n?0:1]),symbolRotate:P(i.get(\\\"symbolRotate\\\",!0),x[n?0:1]),symbolSize:P(i.get(\\\"symbolSize\\\"),v[n?0:1]),symbol:P(i.get(\\\"symbol\\\",!0),m[n?0:1]),style:o})}U(m)||(m=[m,m]),U(v)||(v=[v,v]),U(x)||(x=[x,x]),U(_)||(_=[_,_]),d.from.each(function(t){b(f,t,!0),b(g,t,!1)}),y.each(function(t){var e=y.getItemModel(t).getModel(\\\"lineStyle\\\").getLineStyle();y.setItemLayout(t,[f.getItemLayout(t),g.getItemLayout(t)]),null==e.stroke&&(e.stroke=f.getItemVisual(t,\\\"style\\\").fill),y.setItemVisual(t,{fromSymbolKeepAspect:f.getItemVisual(t,\\\"symbolKeepAspect\\\"),fromSymbolOffset:f.getItemVisual(t,\\\"symbolOffset\\\"),fromSymbolRotate:f.getItemVisual(t,\\\"symbolRotate\\\"),fromSymbolSize:f.getItemVisual(t,\\\"symbolSize\\\"),fromSymbol:f.getItemVisual(t,\\\"symbol\\\"),toSymbolKeepAspect:g.getItemVisual(t,\\\"symbolKeepAspect\\\"),toSymbolOffset:g.getItemVisual(t,\\\"symbolOffset\\\"),toSymbolRotate:g.getItemVisual(t,\\\"symbolRotate\\\"),toSymbolSize:g.getItemVisual(t,\\\"symbolSize\\\"),toSymbol:g.getItemVisual(t,\\\"symbol\\\"),style:e})}),c.updateData(y),d.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){$(t).dataModel=n})}),this.markKeep(c),c.group.silent=n.get(\\\"silent\\\")||r.get(\\\"silent\\\")},RB.type=\\\"markLine\\\";var PB,OB=RB;function RB(){var t=null!==PB&&PB.apply(this,arguments)||this;return t.type=RB.type,t}u(BB,NB=oB),BB.prototype.createMarkerModelFromSeries=function(t,e,n){return new BB(t,e,n)},BB.type=\\\"markArea\\\",BB.defaultOption={z:1,tooltip:{trigger:\\\"item\\\"},animation:!1,label:{show:!0,position:\\\"top\\\"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:\\\"top\\\"}}};var NB,EB=BB,zB=i(),VB=function(t,e,n,i){var o=cB(t,i[0]),r=cB(t,i[1]),a=o.coord,s=r.coord,a=(a[0]=wt(a[0],-1/0),a[1]=wt(a[1],-1/0),s[0]=wt(s[0],1/0),s[1]=wt(s[1],1/0),rt([{},o,r]));return a.coord=[o.coord,r.coord],a.x0=o.x,a.y0=o.y,a.x1=r.x,a.y1=r.y,a};function BB(){var t=null!==NB&&NB.apply(this,arguments)||this;return t.type=BB.type,t}function FB(t){return!isNaN(t)&&!isFinite(t)}function GB(t,e,n){var i=1-t;return FB(e[i])&&FB(n[i])}function WB(t,e){var n=e.coord[0],i=e.coord[1];return!!(nw(t,\\\"cartesian2d\\\")&&n&&i&&(GB(1,n,i)||GB(0,n,i)))||dB(t,{coord:n,x:e.x0,y:e.y0})||dB(t,{coord:i,x:e.x1,y:e.y1})}function HB(t,e,n,i,o){var r,a,s,l,u=i.coordinateSystem,h=t.getItemModel(e),c=F(h.get(n[0]),o.getWidth()),h=F(h.get(n[1]),o.getHeight());return isNaN(c)||isNaN(h)?(l=i.getMarkerPosition?i.getMarkerPosition(t.getValues(n,e)):(l=[a=t.get(n[0],e),s=t.get(n[1],e)],u.clampData&&u.clampData(l,l),u.dataToPoint(l,!0)),nw(u,\\\"cartesian2d\\\")&&(r=u.getAxis(\\\"x\\\"),u=u.getAxis(\\\"y\\\"),a=t.get(n[0],e),s=t.get(n[1],e),FB(a)?l[0]=r.toGlobalCoord(r.getExtent()[\\\"x0\\\"===n[0]?0:1]):FB(s)&&(l[1]=u.toGlobalCoord(u.getExtent()[\\\"y0\\\"===n[1]?0:1]))),isNaN(c)||(l[0]=c),isNaN(h)||(l[1]=h)):l=[c,h],l}var YB,UB=[[\\\"x0\\\",\\\"y0\\\"],[\\\"x1\\\",\\\"y0\\\"],[\\\"x1\\\",\\\"y1\\\"],[\\\"x0\\\",\\\"y1\\\"]],XB=(u(ZB,YB=NV),ZB.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=oB.getMarkerModelFromSeries(n,\\\"markArea\\\");t&&(i=t.getData()).each(function(e){var t=Y(UB,function(t){return HB(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape(\\\"points\\\",t)})},this)},ZB.prototype.renderSeries=function(a,o,t,s){var e,n,i,r,l,u,h=a.coordinateSystem,c=a.id,p=a.getData(),d=this.markerGroupMap,f=d.get(c)||d.set(c,{group:new K}),g=(this.group.add(f.group),this.markKeep(f),n=a,i=o,c=(e=h)?(r=Y(e&&e.dimensions,function(t){var e=n.getData();return Z(Z({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),l=Y([\\\"x0\\\",\\\"y0\\\",\\\"x1\\\",\\\"y1\\\"],function(t,e){return{name:t,type:r[e%2].type}}),new Fv(l,i)):new Fv(l=[{name:\\\"value\\\",type:\\\"float\\\"}],i),d=Y(i.get(\\\"data\\\"),D(VB,n,e,i)),e&&(d=pt(d,D(WB,e))),u=e?function(t,e,n,i){return ag(t.coord[Math.floor(i/2)][i%2],l[i])}:function(t,e,n,i){return ag(t.value,l[i])},c.initData(d,null,u),c.hasItemOption=!0,c);o.setData(g),g.each(function(e){var t=Y(UB,function(t){return HB(g,e,t,a,s)}),n=h.getAxis(\\\"x\\\").scale,i=h.getAxis(\\\"y\\\").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(g.get(\\\"x0\\\",e)),n.parse(g.get(\\\"x1\\\",e))],i=[i.parse(g.get(\\\"y0\\\",e)),i.parse(g.get(\\\"y1\\\",e))],o=(rr(n),rr(i),!!(o[0]>n[1]||o[1]\u003Cn[0]||r[0]>i[1]||r[1]\u003Ci[0])),n=(g.setItemLayout(e,{points:t,allClipped:o}),g.getItemModel(e).getModel(\\\"itemStyle\\\").getItemStyle()),r=am(p,\\\"color\\\");n.fill||(n.fill=r,X(n.fill)&&(n.fill=jn(n.fill,.4))),n.stroke||(n.stroke=r),g.setItemVisual(e,\\\"style\\\",n)}),g.diff(zB(f).data).add(function(t){var e=g.getItemLayout(t);e.allClipped||(e=new eh({shape:{points:e.points}}),g.setItemGraphicEl(t,e),f.group.add(e))}).update(function(t,e){var n=zB(f).data.getItemGraphicEl(e),i=g.getItemLayout(t);i.allClipped?n&&f.group.remove(n):(n?k(n,{shape:{points:i.points}},o,t):n=new eh({shape:{points:i.points}}),g.setItemGraphicEl(t,n),f.group.add(n))}).remove(function(t){var e=zB(f).data.getItemGraphicEl(t);f.group.remove(e)}).execute(),g.eachItemGraphicEl(function(t,e){var n=g.getItemModel(e),i=g.getItemVisual(e,\\\"style\\\");t.useStyle(g.getItemVisual(e,\\\"style\\\")),Tc(t,Cc(n),{labelFetcher:o,labelDataIndex:e,defaultText:g.getName(e)||\\\"\\\",inheritColor:X(i.fill)?jn(i.fill,1):\\\"#000\\\"}),$l(t,n),Zl(t,null,null,n.get([\\\"emphasis\\\",\\\"disabled\\\"])),$(t).dataModel=o}),zB(f).data=g,f.group.silent=o.get(\\\"silent\\\")||a.get(\\\"silent\\\")},ZB.type=\\\"markArea\\\",ZB);function ZB(){var t=null!==YB&&YB.apply(this,arguments)||this;return t.type=ZB.type,t}u(n4,qB=m),n4.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},n4.prototype.mergeOption=function(t,e){qB.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},n4.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;U(n=!0===n?t.selector=[\\\"all\\\",\\\"inverse\\\"]:n)&<(n,function(t,e){X(t)&&(t={type:t}),n[e]=v(t,(e=i,\\\"all\\\"===(t=t.type)?{type:\\\"all\\\",title:e.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"all\\\"])}:\\\"inverse\\\"===t?{type:\\\"inverse\\\",title:e.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"inverse\\\"])}:void 0))})},n4.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&\\\"single\\\"===this.get(\\\"selectedMode\\\")){for(var e=!1,n=0;n\u003Ct.length;n++){var i=t[n].get(\\\"name\\\");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get(\\\"name\\\"))}},n4.prototype._updateData=function(i){var o=[],r=[],t=(i.eachRawSeries(function(t){var e,n=t.name;r.push(n),t.legendVisualProvider&&(n=t.legendVisualProvider.getAllNames(),i.isSeriesFiltered(t)||(r=r.concat(n)),n.length)?o=o.concat(n):e=!0,e&&Er(t)&&o.push(t.name)}),this._availableNames=r,Y(this.get(\\\"data\\\")||o,function(t){return(X(t)||j(t))&&(t={name:t}),new qc(t,this,this.ecModel)},this));this._data=t},n4.prototype.getData=function(){return this._data},n4.prototype.select=function(t){var e=this.option.selected;\\\"single\\\"===this.get(\\\"selectedMode\\\")&<(this._data,function(t){e[t.get(\\\"name\\\")]=!1}),e[t]=!0},n4.prototype.unSelect=function(t){\\\"single\\\"!==this.get(\\\"selectedMode\\\")&&(this.option.selected[t]=!1)},n4.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?\\\"unSelect\\\":\\\"select\\\"](t)},n4.prototype.allSelect=function(){var t=this._data,e=this.option.selected;lt(t,function(t){e[t.get(\\\"name\\\",!0)]=!0})},n4.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;lt(t,function(t){var e=t.get(\\\"name\\\",!0);n.hasOwnProperty(e)||(n[e]=!0),n[e]=!n[e]})},n4.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0\u003C=G(this._availableNames,t)},n4.prototype.getOrient=function(){return\\\"vertical\\\"===this.get(\\\"orient\\\")?{index:1,name:\\\"vertical\\\"}:{index:0,name:\\\"horizontal\\\"}},n4.type=\\\"legend.plain\\\",n4.dependencies=[\\\"series\\\"],n4.defaultOption={z:4,show:!0,orient:\\\"horizontal\\\",left:\\\"center\\\",top:0,align:\\\"auto\\\",backgroundColor:\\\"rgba(0,0,0,0)\\\",borderColor:\\\"#ccc\\\",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:\\\"inherit\\\",symbolKeepAspect:!0,inactiveColor:\\\"#ccc\\\",inactiveBorderColor:\\\"#ccc\\\",inactiveBorderWidth:\\\"auto\\\",itemStyle:{color:\\\"inherit\\\",opacity:\\\"inherit\\\",borderColor:\\\"inherit\\\",borderWidth:\\\"auto\\\",borderCap:\\\"inherit\\\",borderJoin:\\\"inherit\\\",borderDashOffset:\\\"inherit\\\",borderMiterLimit:\\\"inherit\\\"},lineStyle:{width:\\\"auto\\\",color:\\\"inherit\\\",inactiveColor:\\\"#ccc\\\",inactiveWidth:2,opacity:\\\"inherit\\\",type:\\\"inherit\\\",cap:\\\"inherit\\\",join:\\\"inherit\\\",dashOffset:\\\"inherit\\\",miterLimit:\\\"inherit\\\"},textStyle:{color:\\\"#333\\\"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:\\\"sans-serif\\\",color:\\\"#666\\\",borderWidth:1,borderColor:\\\"#666\\\"},emphasis:{selectorLabel:{show:!0,color:\\\"#eee\\\",backgroundColor:\\\"#666\\\"}},selectorPosition:\\\"auto\\\",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}};var jB,qB,KB=n4,$B=D,JB=lt,QB=K,t4=(u(e4,jB=fy),e4.prototype.init=function(){this.group.add(this._contentGroup=new QB),this.group.add(this._selectorGroup=new QB),this._isFirstRender=!0},e4.prototype.getContentGroup=function(){return this._contentGroup},e4.prototype.getSelectorGroup=function(){return this._selectorGroup},e4.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get(\\\"show\\\",!0)&&(l=t.get(\\\"align\\\"),r=t.get(\\\"orient\\\"),l&&\\\"auto\\\"!==l||(l=\\\"right\\\"===t.get(\\\"left\\\")&&\\\"vertical\\\"===r?\\\"right\\\":\\\"left\\\"),i=t.get(\\\"selector\\\",!0),o=t.get(\\\"selectorPosition\\\",!0),this.renderInner(l,t,e,n,i,r,o=!i||o&&\\\"auto\\\"!==o?o:\\\"horizontal\\\"===r?\\\"end\\\":\\\"start\\\"),u=Jp(r=t.getBoxLayoutParams(),a={width:n.getWidth(),height:n.getHeight()},s=t.get(\\\"padding\\\")),u=Jp(H({width:(l=this.layoutInner(t,l,u,h,i,o)).width,height:l.height},r),a,s),this.group.x=u.x-l.x,this.group.y=u.y-l.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Nz(l,t)))},e4.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e4.prototype.renderInner=function(s,l,u,h,t,e,n){var c=this.getContentGroup(),p=N(),d=l.get(\\\"selectedMode\\\"),f=[];u.eachRawSeries(function(t){t.get(\\\"legendHoverLink\\\")||f.push(t.id)}),JB(l.getData(),function(o,r){var t,e,n,i,a=o.get(\\\"name\\\");this.newlineDisabled||\\\"\\\"!==a&&\\\"\\\\n\\\"!==a?(t=u.getSeriesByName(a)[0],p.get(a)||(t?(e=(i=t.getData()).getVisual(\\\"legendLineStyle\\\")||{},n=i.getVisual(\\\"legendIcon\\\"),i=i.getVisual(\\\"style\\\"),this._createItem(t,a,r,o,l,s,e,i,n,d).on(\\\"click\\\",$B(i4,a,null,h,f)).on(\\\"mouseover\\\",$B(r4,t.name,null,h,f)).on(\\\"mouseout\\\",$B(a4,t.name,null,h,f)),p.set(a,!0)):u.eachRawSeries(function(t){var e,n,i;!p.get(a)&&t.legendVisualProvider&&(i=t.legendVisualProvider).containName(a)&&(n=i.indexOfName(a),e=i.getItemVisual(n,\\\"style\\\"),n=i.getItemVisual(n,\\\"legendIcon\\\"),(i=Wn(e.fill))&&0===i[3]&&(i[3]=.2,e=Z(Z({},e),{fill:qn(i,\\\"rgba\\\")})),this._createItem(t,a,r,o,l,s,{},e,n,d).on(\\\"click\\\",$B(i4,null,a,h,f)).on(\\\"mouseover\\\",$B(r4,null,a,h,f)).on(\\\"mouseout\\\",$B(a4,null,a,h,f)),p.set(a,!0))},this))):((e=new QB).newline=!0,c.add(e))},this),t&&this._createSelector(t,l,h,e,n)},e4.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();JB(t,function(t){var e=t.type,n=new z({style:{x:0,y:0,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},onclick:function(){o.dispatchAction({type:\\\"all\\\"===e?\\\"legendAllSelect\\\":\\\"legendInverseSelect\\\"})}});r.add(n),Tc(n,{normal:i.getModel(\\\"selectorLabel\\\"),emphasis:i.getModel([\\\"emphasis\\\",\\\"selectorLabel\\\"])},{defaultText:t.title}),Xl(n)})},e4.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u){var h,c,p,d,f=t.visualDrawType,g=o.get(\\\"itemWidth\\\"),y=o.get(\\\"itemHeight\\\"),m=o.isSelected(e),v=i.get(\\\"symbolRotate\\\"),x=i.get(\\\"symbolKeepAspect\\\"),_=i.get(\\\"icon\\\"),b=(d=l=_||l||\\\"roundRect\\\",a=a,s=s,c=f,p=m,f=(h=i).getModel(\\\"itemStyle\\\").getItemStyle(),w=0===d.lastIndexOf(\\\"empty\\\",0)?\\\"fill\\\":\\\"stroke\\\",f.decal=s.decal,\\\"inherit\\\"===f.fill&&(f.fill=s[c]),\\\"inherit\\\"===f.stroke&&(f.stroke=s[w]),\\\"inherit\\\"===f.opacity&&(f.opacity=(\\\"fill\\\"===c?s:a).opacity),M(f,s),S=h.getModel(\\\"lineStyle\\\"),M(I=S.getLineStyle(),a),\\\"auto\\\"===f.fill&&(f.fill=s.fill),\\\"auto\\\"===f.stroke&&(f.stroke=s.fill),\\\"auto\\\"===I.stroke&&(I.stroke=s.fill),p||(b=h.get(\\\"inactiveBorderWidth\\\"),w=f[w],f.lineWidth=\\\"auto\\\"===b?0\u003Cs.lineWidth&&w?2:0:f.lineWidth,f.fill=h.get(\\\"inactiveColor\\\"),f.stroke=h.get(\\\"inactiveBorderColor\\\"),I.stroke=S.get(\\\"inactiveColor\\\"),I.lineWidth=S.get(\\\"inactiveWidth\\\")),{itemStyle:f,lineStyle:I}),w=new QB,S=i.getModel(\\\"textStyle\\\");function M(n,i){\\\"auto\\\"===n.lineWidth&&(n.lineWidth=0\u003Ci.lineWidth?2:0),JB(n,function(t,e){\\\"inherit\\\"===n[e]&&(n[e]=i[e])})}!A(t.getLegendIcon)||_&&\\\"inherit\\\"!==_?(f=\\\"inherit\\\"===_&&t.getData().getVisual(\\\"symbol\\\")?\\\"inherit\\\"===v?t.getData().getVisual(\\\"symbolRotate\\\"):v:0,w.add(((_=Sm(I=(d={itemWidth:g,itemHeight:y,icon:l,iconRotate:f,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:x}).icon||\\\"roundRect\\\",0,0,d.itemWidth,d.itemHeight,d.itemStyle.fill,d.symbolKeepAspect)).setStyle(d.itemStyle),_.rotation=(d.iconRotate||0)*Math.PI/180,_.setOrigin([d.itemWidth/2,d.itemHeight/2]),-1\u003CI.indexOf(\\\"empty\\\")&&(_.style.stroke=_.style.fill,_.style.fill=\\\"#fff\\\",_.style.lineWidth=2),_))):w.add(t.getLegendIcon({itemWidth:g,itemHeight:y,icon:l,iconRotate:v,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:x}));var f=\\\"left\\\"===r?g+5:-5,I=r,_=o.get(\\\"formatter\\\"),v=e,x=(X(_)&&_?v=_.replace(\\\"{name}\\\",null!=e?e:\\\"\\\"):A(_)&&(v=_(e)),i.get(\\\"inactiveColor\\\")),g=(w.add(new z({style:Dc(S,{text:v,x:f,y:y/2,fill:m?S.getTextColor():x,align:I,verticalAlign:\\\"middle\\\"})})),new E({shape:w.getBoundingRect(),invisible:!0})),_=i.getModel(\\\"tooltip\\\");return _.get(\\\"show\\\")&&xc({el:g,componentModel:o,itemName:e,itemTooltipOption:_.option}),w.add(g),w.eachChild(function(t){t.silent=!0}),g.silent=!u,this.getContentGroup().add(w),Xl(w),w.__legendDataIndex=n,w},e4.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c,p,d=this.getContentGroup(),f=this.getSelectorGroup(),g=($p(t.get(\\\"orient\\\"),d,t.get(\\\"itemGap\\\"),n.width,n.height),d.getBoundingRect()),y=[-g.x,-g.y];return f.markRedraw(),d.markRedraw(),o?($p(\\\"horizontal\\\",f,t.get(\\\"selectorItemGap\\\",!0)),s=[-(a=f.getBoundingRect()).x,-a.y],l=t.get(\\\"selectorButtonGap\\\",!0),h=0===(u=t.getOrient().index)?\\\"width\\\":\\\"height\\\",c=0===u?\\\"height\\\":\\\"width\\\",p=0===u?\\\"y\\\":\\\"x\\\",\\\"end\\\"===r?s[u]+=g[h]+l:y[u]+=a[h]+l,s[1-u]+=g[c]/2-a[c]/2,f.x=s[0],f.y=s[1],d.x=y[0],d.y=y[1],(f={x:0,y:0})[h]=g[h]+l+a[h],f[c]=Math.max(g[c],a[c]),f[p]=Math.min(0,a[p]+s[1-u]),f):(d.x=y[0],d.y=y[1],this.group.getBoundingRect())},e4.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e4.type=\\\"legend.plain\\\",e4);function e4(){var t=null!==jB&&jB.apply(this,arguments)||this;return t.type=e4.type,t.newlineDisabled=!1,t}function n4(){var t=null!==qB&&qB.apply(this,arguments)||this;return t.type=n4.type,t.layoutMode={type:\\\"box\\\",ignoreSize:!0},t}function i4(t,e,n,i){a4(t,e,n,i),n.dispatchAction({type:\\\"legendToggleSelect\\\",name:null!=t?t:e}),r4(t,e,n,i)}function o4(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i\u003Co&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function r4(t,e,n,i){o4(n)||n.dispatchAction({type:\\\"highlight\\\",seriesName:t,name:e,excludeSeriesId:i})}function a4(t,e,n,i){o4(n)||n.dispatchAction({type:\\\"downplay\\\",seriesName:t,name:e,excludeSeriesId:i})}function s4(t){var n=t.findComponents({mainType:\\\"legend\\\"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e\u003Cn.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}function l4(t,e,n){var o,r={},a=\\\"toggleSelected\\\"===t;return n.eachComponent(\\\"legend\\\",function(i){a&&null!=o?i[o?\\\"select\\\":\\\"unSelect\\\"](e.name):\\\"allSelect\\\"===t||\\\"inverseSelect\\\"===t?i[t]():(i[t](e.name),o=i.isSelected(e.name)),lt(i.getData(),function(t){var e,n=t.get(\\\"name\\\");\\\"\\\\n\\\"!==n&&\\\"\\\"!==n&&(e=i.isSelected(n),r.hasOwnProperty(n)?r[n]=r[n]&&e:r[n]=e)})}),\\\"allSelect\\\"===t||\\\"inverseSelect\\\"===t?{selected:r}:{name:e.name,selected:r}}function u4(t){t.registerComponentModel(KB),t.registerComponentView(t4),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,s4),t.registerSubTypeDefaulter(\\\"legend\\\",function(){return\\\"plain\\\"}),(t=t).registerAction(\\\"legendToggleSelect\\\",\\\"legendselectchanged\\\",D(l4,\\\"toggleSelected\\\")),t.registerAction(\\\"legendAllSelect\\\",\\\"legendselectall\\\",D(l4,\\\"allSelect\\\")),t.registerAction(\\\"legendInverseSelect\\\",\\\"legendinverseselect\\\",D(l4,\\\"inverseSelect\\\")),t.registerAction(\\\"legendSelect\\\",\\\"legendselected\\\",D(l4,\\\"select\\\")),t.registerAction(\\\"legendUnSelect\\\",\\\"legendunselected\\\",D(l4,\\\"unSelect\\\"))}u(p4,h4=KB),p4.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},p4.prototype.init=function(t,e,n){var i=nd(t);h4.prototype.init.call(this,t,e,n),d4(this,t,i)},p4.prototype.mergeOption=function(t,e){h4.prototype.mergeOption.call(this,t,e),d4(this,this.option,t)},p4.type=\\\"legend.scroll\\\",p4.defaultOption=np(KB.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:\\\"end\\\",pageFormatter:\\\"{current}/{total}\\\",pageIcons:{horizontal:[\\\"M0,0L12,-10L12,10z\\\",\\\"M0,0L-12,-10L-12,10z\\\"],vertical:[\\\"M0,0L20,0L10,-20z\\\",\\\"M0,0L20,0L10,20z\\\"]},pageIconColor:\\\"#2f4554\\\",pageIconInactiveColor:\\\"#aaa\\\",pageIconSize:15,pageTextStyle:{color:\\\"#333\\\"},animationDurationUpdate:800});var h4,c4=p4;function p4(){var t=null!==h4&&h4.apply(this,arguments)||this;return t.type=p4.type,t}function d4(t,e,n){var i=[1,1];i[t.getOrient().index]=0,ed(e,n,{type:\\\"box\\\",ignoreSize:!!i})}var f4,g4=K,y4=[\\\"width\\\",\\\"height\\\"],m4=[\\\"x\\\",\\\"y\\\"],v4=(u(x4,f4=t4),x4.prototype.init=function(){f4.prototype.init.call(this),this.group.add(this._containerGroup=new g4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new g4)},x4.prototype.resetInner=function(){f4.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},x4.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this,l=(f4.prototype.renderInner.call(this,t,i,e,o,n,r,a),this._controllerGroup),u=i.get(\\\"pageIconSize\\\",!0),h=U(u)?u:[u,u],u=(c(\\\"pagePrev\\\",0),i.getModel(\\\"pageTextStyle\\\"));function c(t,e){var n=t+\\\"DataIndex\\\",n=yc(i.get(\\\"pageIcons\\\",!0)[i.getOrient().name][e],{onclick:I(s._pageGo,s,n,i,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});n.name=t,l.add(n)}l.add(new z({name:\\\"pageText\\\",style:{text:\\\"xx/xx\\\",fill:u.getTextColor(),font:u.getFont(),verticalAlign:\\\"middle\\\",align:\\\"center\\\"},silent:!0})),c(\\\"pageNext\\\",1)},x4.prototype.layoutInner=function(t,e,n,i,o,r){var a,s=this.getSelectorGroup(),l=t.getOrient().index,u=y4[l],h=m4[l],c=y4[1-l],p=m4[1-l],d=(o&&$p(\\\"horizontal\\\",s,t.get(\\\"selectorItemGap\\\",!0)),t.get(\\\"selectorButtonGap\\\",!0)),f=s.getBoundingRect(),g=[-f.x,-f.y],y=L(n),y=(o&&(y[u]=n[u]-f[u]-d),this._layoutContentAndController(t,i,y,l,u,c,p,h));return o&&(\\\"end\\\"===r?g[l]+=y[u]+d:(a=f[u]+d,g[l]-=a,y[h]-=a),y[u]+=f[u]+d,g[1-l]+=y[p]+y[c]/2-f[c]/2,y[c]=Math.max(y[c],f[c]),y[p]=Math.min(y[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()),y},x4.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=($p(t.get(\\\"orient\\\"),l,t.get(\\\"itemGap\\\"),i?n.width:null,i?null:n.height),$p(\\\"horizontal\\\",h,t.get(\\\"pageButtonItemGap\\\",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y],g=(e||(f[i]=l[s]),[0,0]),y=[-p.x,-p.y],m=P(t.get(\\\"pageButtonGap\\\",!0),t.get(\\\"itemGap\\\",!0)),f=(d&&(\\\"end\\\"===t.get(\\\"pageButtonPosition\\\",!0)?y[i]+=n[o]-p[o]:g[i]+=p[o]+m),y[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[o],d?((g={x:0,y:0})[o]=Math.max(n[o]-p[o]-m,0),g[r]=f[r],u.setClipPath(new E({shape:g})),u.__rectSize=g[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&k(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},x4.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:\\\"legendScroll\\\",scrollDataIndex:i,legendId:e.id})},x4.prototype._updatePageInfoView=function(i,o){var r=this._controllerGroup,t=(lt([\\\"pagePrev\\\",\\\"pageNext\\\"],function(t){var e=null!=o[t+\\\"DataIndex\\\"],n=r.childOfName(t);n&&(n.setStyle(\\\"fill\\\",e?i.get(\\\"pageIconColor\\\",!0):i.get(\\\"pageIconInactiveColor\\\",!0)),n.cursor=e?\\\"pointer\\\":\\\"default\\\")}),r.childOfName(\\\"pageText\\\")),e=i.get(\\\"pageFormatter\\\"),n=o.pageIndex,n=null!=n?n+1:0,a=o.pageCount;t&&e&&t.setStyle(\\\"text\\\",X(e)?e.replace(\\\"{current}\\\",null==n?\\\"\\\":n+\\\"\\\").replace(\\\"{total}\\\",null==a?\\\"\\\":a+\\\"\\\"):e({current:n,total:a}))},x4.prototype._getPageInfo=function(t){var e=t.get(\\\"scrollDataIndex\\\",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=y4[o],a=m4[o],e=this._findTargetItemIndex(e),s=n.children(),l=s[e],u=s.length,h=u?1:0,c={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(l){n=y(l);c.contentPosition[o]=-n.s;for(var p=e+1,d=n,f=n,g=null;p\u003C=u;++p)(!(g=y(s[p]))&&f.e>d.s+i||g&&!m(g,d.s))&&(d=f.i>d.i?f:g)&&(null==c.pageNextDataIndex&&(c.pageNextDataIndex=d.i),++c.pageCount),f=g;for(p=e-1,f=d=n,g=null;-1\u003C=p;--p)(g=y(s[p]))&&m(f,g.s)||!(d.i\u003Cf.i)||(f=d,null==c.pagePrevDataIndex&&(c.pagePrevDataIndex=d.i),++c.pageCount,++c.pageIndex),d=g}return c;function y(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[a]+t[a],e:n+e[r],i:t.__legendDataIndex}}function m(t,e){return t.e>=e&&t.s\u003C=e+i}},x4.prototype._findTargetItemIndex=function(i){return this._showController?(this.getContentGroup().eachChild(function(t,e){var n=t.__legendDataIndex;null==r&&null!=n&&(r=e),n===i&&(o=e)}),null!=o?o:r):0;var o,r},x4.type=\\\"legend.scroll\\\",x4);function x4(){var t=null!==f4&&f4.apply(this,arguments)||this;return t.type=x4.type,t.newlineDisabled=!0,t._currentIndex=0,t}function _4(t){o(u4),t.registerComponentModel(c4),t.registerComponentView(v4),t.registerAction(\\\"legendScroll\\\",\\\"legendscroll\\\",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:\\\"legend\\\",subType:\\\"scroll\\\",query:t},function(t){t.setScrollDataIndex(n)})})}u(M4,b4=hd),M4.type=\\\"dataZoom.inside\\\",M4.defaultOption=np(hd.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var b4,w4=M4,S4=i();function M4(){var t=null!==b4&&b4.apply(this,arguments)||this;return t.type=M4.type,t}function I4(t,e){var n;e&&(t.removeKey(e.model.uid),n=e.controller)&&n.dispose()}function T4(t,e){t.isDisposed()||t.dispatchAction({type:\\\"dataZoom\\\",animation:{easing:\\\"cubicOut\\\",duration:100},batch:e})}function C4(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function D4(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,s){var e=S4(s),l=e.coordSysRecordMap||(e.coordSysRecordMap=N());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:\\\"dataZoom\\\",subType:\\\"inside\\\"},function(a){lt(az(a).infoList,function(t){var e,n,r,i,o=t.model.uid,o=l.get(o)||l.set(o,(e=s,n=t.model,r={model:n,containsPoint:D(C4,n),dispatchAction:D(T4,e),dataZoomInfoMap:null,controller:null},i=r.controller=new vI(e.getZr()),lt([\\\"pan\\\",\\\"zoom\\\",\\\"scrollMove\\\"],function(o){i.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get(\\\"disabled\\\",!0))&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),i.length&&r.dispatchAction(i)})}),r));(o.dataZoomInfoMap||(o.dataZoomInfoMap=N())).set(a.uid,{dzReferCoordSysInfo:t,model:a,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;(e=s&&null!=(n=s.keys()[0])?s.get(n):e)?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var e=t.model,n=!e.get(\\\"disabled\\\",!0)&&(!e.get(\\\"zoomLock\\\",!0)||\\\"move\\\");o[\\\"type_\\\"+i]\u003Co[\\\"type_\\\"+n]&&(i=n),r=r&&e.get(\\\"preventDefaultMouseMove\\\",!0)}),n={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(n.controlType,n.opt),a.setPointerChecker(t.containsPoint),ky(t,\\\"dispatchAction\\\",e.model.get(\\\"throttle\\\",!0),\\\"fixRate\\\")):I4(l,t)})})}u(P4,A4=e),P4.prototype.render=function(t,e,n){var i,o;A4.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:I(L4.pan,this),zoom:I(L4.zoom,this),scrollMove:I(L4.scrollMove,this)},S4(n).coordSysRecordMap.each(function(t){var e=t.dataZoomInfoMap.get(i.uid);e&&(e.getRange=o)}))},P4.prototype.dispose=function(){this._clear(),A4.prototype.dispose.apply(this,arguments)},P4.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=S4(t).coordSysRecordMap,i=n.keys(),o=0;o\u003Ci.length;o++){var r,a=i[o],a=n.get(a),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r))&&(s.removeKey(r),s.keys().length||I4(n,a))}this.range=null},P4.type=\\\"dataZoom.inside\\\";var A4,k4=P4,L4={zoom:function(t,e,n,i){var o,r=this.range,a=r.slice(),s=t.axisModels[0];if(s)return s=(0\u003C(s=R4[e](null,[i.originX,i.originY],s,n,t)).signal?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],o=Math.max(1/i.scale,0),a[0]=(a[0]-s)*o+s,a[1]=(a[1]-s)*o+s,KA(0,a,[0,100],0,(o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,o.maxSpan),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0},pan:O4(function(t,e,n,i,o,r){var a=R4[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:O4(function(t,e,n,i,o,r){return R4[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function P4(){var t=null!==A4&&A4.apply(this,arguments)||this;return t.type=\\\"dataZoom.inside\\\",t}function O4(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return KA(s(r,a,t,e,n,i),r,[0,100],\\\"all\\\"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var R4={grid:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem.getRect();return t=t||[0,0],\\\"x\\\"===r.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),\\\"radiusAxis\\\"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var r=n.axis,a=o.model.coordinateSystem.getRect(),s={};return t=t||[0,0],\\\"horizontal\\\"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};function N4(t){Tz(t),t.registerComponentModel(w4),t.registerComponentView(k4),D4(t)}u(X4,z4=hd),X4.type=\\\"dataZoom.slider\\\",X4.layoutMode=\\\"box\\\",X4.defaultOption=np(hd.defaultOption,{show:!0,right:\\\"ph\\\",top:\\\"ph\\\",width:\\\"ph\\\",height:\\\"ph\\\",left:null,bottom:null,borderColor:\\\"#d2dbee\\\",borderRadius:3,backgroundColor:\\\"rgba(47,69,84,0)\\\",dataBackground:{lineStyle:{color:\\\"#d2dbee\\\",width:.5},areaStyle:{color:\\\"#d2dbee\\\",opacity:.2}},selectedDataBackground:{lineStyle:{color:\\\"#8fb0f7\\\",width:.5},areaStyle:{color:\\\"#8fb0f7\\\",opacity:.2}},fillerColor:\\\"rgba(135,175,274,0.2)\\\",handleIcon:\\\"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z\\\",handleSize:\\\"100%\\\",handleStyle:{color:\\\"#fff\\\",borderColor:\\\"#ACB8D1\\\"},moveHandleSize:7,moveHandleIcon:\\\"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z\\\",moveHandleStyle:{color:\\\"#D2DBEE\\\",opacity:.7},showDetail:!0,showDataShadow:\\\"auto\\\",realtime:!0,zoomLock:!1,textStyle:{color:\\\"#6E7079\\\"},brushSelect:!0,brushStyle:{color:\\\"rgba(135,175,274,0.15)\\\"},emphasis:{handleStyle:{borderColor:\\\"#8FB0F7\\\"},moveHandleStyle:{color:\\\"#8FB0F7\\\"}}});var E4,z4,V4=X4,B4=E,F4=\\\"horizontal\\\",G4=\\\"vertical\\\",W4=[\\\"line\\\",\\\"bar\\\",\\\"candlestick\\\",\\\"scatter\\\"],H4={easing:\\\"cubicOut\\\",duration:100,delay:0},Y4=(u(U4,E4=e),U4.prototype.init=function(t,e){this.api=e,this._onBrush=I(this._onBrush,this),this._onBrushEnd=I(this._onBrushEnd,this)},U4.prototype.render=function(t,e,n,i){E4.prototype.render.apply(this,arguments),ky(this,\\\"_dispatchZoomAction\\\",t.get(\\\"throttle\\\"),\\\"fixRate\\\"),this._orient=t.getOrient(),!1!==t.get(\\\"show\\\")?t.noTarget()?(this._clear(),this.group.removeAll()):(i&&\\\"dataZoom\\\"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},U4.prototype.dispose=function(){this._clear(),E4.prototype.dispose.apply(this,arguments)},U4.prototype._clear=function(){Ly(this,\\\"_dispatchZoomAction\\\");var t=this.api.getZr();t.off(\\\"mousemove\\\",this._onBrush),t.off(\\\"mouseup\\\",this._onBrushEnd)},U4.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new K);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},U4.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get(\\\"brushSelect\\\")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===F4?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=nd(t.option),n=(lt([\\\"right\\\",\\\"top\\\",\\\"width\\\",\\\"height\\\"],function(t){\\\"ph\\\"===r[t]&&(r[t]=o[t])}),Jp(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===G4&&this._size.reverse()},U4.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get(\\\"inverse\\\"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==F4||i?n===F4&&i?{scaleY:r?1:-1,scaleX:-1}:n!==G4||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},U4.prototype._getViewExtent=function(){return[0,this._size[0]]},U4.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get(\\\"brushSelect\\\"),t=(n.add(new B4({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(\\\"backgroundColor\\\")},z2:-40})),new B4({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:\\\"transparent\\\"},z2:0,onclick:I(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on(\\\"mousedown\\\",this._onBrushStart,this),t.cursor=\\\"crosshair\\\",e.on(\\\"mousemove\\\",this._onBrush),e.on(\\\"mouseup\\\",this._onBrushEnd)):(e.off(\\\"mousemove\\\",this._onBrush),e.off(\\\"mouseup\\\",this._onBrushEnd)),n.add(t)},U4.prototype._renderDataShadow=function(){var t,e,n,i=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],i){var o=this._size,r=this._shadowSize||[],a=i.series,s=a.getRawData(),a=a.getShadowDim?a.getShadowDim():i.otherDim;if(null!=a){var l,u,h,c,p,d,f,g,y=this._shadowPolygonPts,m=this._shadowPolylinePts;s===this._shadowData&&a===this._shadowDim&&o[0]===r[0]&&o[1]===r[1]||(i=.3*((l=s.getDataExtent(a))[1]-l[0]),l=[l[0]-i,l[1]+i],h=[0,o[1]],r=[0,o[0]],c=[[o[0],0],[0,0]],p=[],d=r[1]/(s.count()-1),f=0,g=Math.round(s.count()/o[0]),s.each([a],function(t,e){var n,i;0\u003Cg&&e%g?f+=d:(i=(n=null==t||isNaN(t)||\\\"\\\"===t)?0:ir(t,l,h,!0),n&&!u&&e?(c.push([c[c.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(c.push([f,0]),p.push([f,0])),c.push([f,i]),p.push([f,i]),f+=d,u=n)}),y=this._shadowPolygonPts=c,m=this._shadowPolylinePts=p),this._shadowData=s,this._shadowDim=a,this._shadowSize=[o[0],o[1]];for(var v=this.dataZoomModel,x=0;x\u003C3;x++){t=1===x,e=_=n=e=void 0,e=v.getModel(t?\\\"selectedDataBackground\\\":\\\"dataBackground\\\"),n=new K,_=new eh({shape:{points:y},segmentIgnoreThreshold:1,style:e.getModel(\\\"areaStyle\\\").getAreaStyle(),silent:!0,z2:-20}),e=new rh({shape:{points:m},segmentIgnoreThreshold:1,style:e.getModel(\\\"lineStyle\\\").getLineStyle(),silent:!0,z2:-19}),n.add(_),n.add(e);var _=n;this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}},U4.prototype._prepareDataShadowInfo=function(){var s,l,t=this.dataZoomModel,u=t.get(\\\"showDataShadow\\\");if(!1!==u)return l=this.ecModel,t.eachTargetAxis(function(r,a){lt(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;s||!0!==u&&G(W4,t.get(\\\"type\\\"))\u003C0||(n=l.getComponent(oz(r),a).axis,o=t.coordinateSystem,null!=(i={x:\\\"y\\\",y:\\\"x\\\",radius:\\\"angle\\\",angle:\\\"radius\\\"}[r])&&o.getOtherAxis&&(e=o.getOtherAxis(n).inverse),i=t.getData().mapDimension(i),s={thisAxis:n,series:t,thisDim:r,otherDim:i,otherAxisInverse:e})},this)},this),s},U4.prototype._renderHandle=function(){var t,e,o=this.group,n=this._displayables,r=n.handles=[null,null],a=n.handleLabels=[null,null],s=this._displayables.sliderGroup,i=this._size,l=this.dataZoomModel,u=this.api,h=l.get(\\\"borderRadius\\\")||0,c=l.get(\\\"brushSelect\\\"),p=n.filler=new B4({silent:c,style:{fill:l.get(\\\"fillerColor\\\")},textConfig:{position:\\\"inside\\\"}}),h=(s.add(p),s.add(new B4({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:h},style:{stroke:l.get(\\\"dataBackgroundColor\\\")||l.get(\\\"borderColor\\\"),lineWidth:1,fill:\\\"rgba(0,0,0,0)\\\"}})),lt([0,1],function(t){var e=l.get(\\\"handleIcon\\\"),e=Sm(e=!xm[e]&&e.indexOf(\\\"path://\\\")\u003C0&&e.indexOf(\\\"image://\\\")\u003C0?\\\"path://\\\"+e:e,-1,0,2,2,null,!0),n=(e.attr({cursor:Z4(this._orient),draggable:!0,drift:I(this._onDragMove,this,t),ondragend:I(this._onDragEnd,this),onmouseover:I(this._showDataInfo,this,!0),onmouseout:I(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),i=l.get(\\\"handleSize\\\"),i=(this._handleHeight=F(i,this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(l.getModel(\\\"handleStyle\\\").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState(\\\"emphasis\\\").style=l.getModel([\\\"emphasis\\\",\\\"handleStyle\\\"]).getItemStyle(),Xl(e),l.get(\\\"handleColor\\\")),n=(null!=i&&(e.style.fill=i),s.add(r[t]=e),l.getModel(\\\"textStyle\\\"));o.add(a[t]=new z({silent:!0,invisible:!0,style:Dc(n,{x:0,y:0,text:\\\"\\\",verticalAlign:\\\"middle\\\",align:\\\"center\\\",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this),p);c&&(p=F(l.get(\\\"moveHandleSize\\\"),i[1]),t=n.moveHandle=new E({style:l.getModel(\\\"moveHandleStyle\\\").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),c=.8*p,(c=n.moveHandleIcon=Sm(l.get(\\\"moveHandleIcon\\\"),-c/2,-c/2,c,c,\\\"#fff\\\",!0)).silent=!0,c.y=i[1]+p/2-.5,t.ensureState(\\\"emphasis\\\").style=l.getModel([\\\"emphasis\\\",\\\"moveHandleStyle\\\"]).getItemStyle(),e=Math.min(i[1]/2,Math.max(p,10)),(h=n.moveZone=new E({invisible:!0,shape:{y:i[1]-e,height:p+e}})).on(\\\"mouseover\\\",function(){u.enterEmphasis(t)}).on(\\\"mouseout\\\",function(){u.leaveEmphasis(t)}),s.add(t),s.add(c),s.add(h)),h.attr({draggable:!0,cursor:Z4(this._orient),drift:I(this._onDragMove,this,\\\"all\\\"),ondragstart:I(this._showDataInfo,this,!0),ondragend:I(this._onDragEnd,this),onmouseover:I(this._showDataInfo,this,!0),onmouseout:I(this._showDataInfo,this,!1)})},U4.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[ir(t[0],[0,100],e,!0),ir(t[1],[0,100],e,!0)]},U4.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],n=(KA(e,i,o,n.get(\\\"zoomLock\\\")?\\\"all\\\":t,null!=r.minSpan?ir(r.minSpan,a,o,!0):null,null!=r.maxSpan?ir(r.maxSpan,a,o,!0):null),this._range),r=this._range=rr([ir(i[0],o,a,!0),ir(i[1],o,a,!0)]);return!n||n[0]!==r[0]||n[1]!==r[1]},U4.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,e=rr(o.slice()),r=this._size,n=(lt([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t]+(t?-1:1),y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]}),{x:e[0],width:e[1]-e[0]});i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon)&&i.moveHandleIcon.attr(\\\"x\\\",n.x+n.width/2);for(var a=i.dataShadowSegs,s=[0,e[0],e[1],r[0]],l=0;l\u003Ca.length;l++){var u=a[l],h=u.getClipPath();h||(h=new E,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},U4.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=[\\\"\\\",\\\"\\\"],l=(i.get(\\\"showDetail\\\")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,n=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(n[0],e),this._formatLabel(n[1],e)]),rr(this._handleEnds.slice()));function u(t){var e=uc(o.handles[t].parent,this.group),n=cc(0===t?\\\"right\\\":\\\"left\\\",e),i=this._handleWidth/2+5,i=hc([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===F4?\\\"middle\\\":n,align:a===F4?n:\\\"center\\\",text:s[t]})}u.call(this,0),u.call(this,1)},U4.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get(\\\"labelFormatter\\\"),n=n.get(\\\"labelPrecision\\\"),n=(null!=n&&\\\"auto\\\"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?\\\"\\\":\\\"category\\\"===e.type||\\\"time\\\"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20)));return A(i)?i(t,n):X(i)?i.replace(\\\"{value}\\\",n):n},U4.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr(\\\"invisible\\\",!t),n[1].attr(\\\"invisible\\\",!t),e.moveHandle&&this.api[t?\\\"enterEmphasis\\\":\\\"leaveEmphasis\\\"](e.moveHandle,1)},U4.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Me(i.event);var o=hc([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,o[0]),r=this.dataZoomModel.get(\\\"realtime\\\");this._updateView(!r),o&&r&&this._dispatchZoomAction(!0)},U4.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get(\\\"realtime\\\")||this._dispatchZoomAction(!1)},U4.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);n[0]\u003C0||n[0]>e[0]||n[1]\u003C0||n[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,n=this._updateInterval(\\\"all\\\",n[0]-e),this._updateView(),n&&this._dispatchZoomAction(!1))},U4.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new V(e,n),this._brushing=!0,this._brushStartTime=+new Date},U4.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr(\\\"ignore\\\",!0),e=e.shape,+new Date-this._brushStartTime\u003C200&&Math.abs(e.width)\u003C5||(n=this._getViewExtent(),this._range=rr([ir(e.x,n,i=[0,100],!0),ir(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},U4.prototype._onBrush=function(t){this._brushing&&(Me(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},U4.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new B4({silent:!0,style:i.getModel(\\\"brushStyle\\\").getItemStyle()}),n.sliderGroup.add(o)),o.attr(\\\"ignore\\\",!1),this._brushStart),n=this._displayables.sliderGroup,r=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(i.x,i.y),n=this._size;r[0]=Math.max(Math.min(n[0],r[0]),0),o.setShape({x:i[0],y:0,width:r[0]-i[0],height:n[1]})},U4.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:\\\"dataZoom\\\",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?H4:null,start:e[0],end:e[1]})},U4.prototype._findCoordRect=function(){var t,e,n=az(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},U4.type=\\\"dataZoom.slider\\\",U4);function U4(){var t=null!==E4&&E4.apply(this,arguments)||this;return t.type=U4.type,t._displayables={},t}function X4(){var t=null!==z4&&z4.apply(this,arguments)||this;return t.type=X4.type,t}function Z4(t){return\\\"vertical\\\"===t?\\\"ns-resize\\\":\\\"ew-resize\\\"}function j4(t){t.registerComponentModel(V4),t.registerComponentView(Y4),Tz(t)}var q4,K4,$4=function(t,e,n){var i=L((J4[t]||{})[e]);return n&&U(i)?i[i.length-1]:i},J4={color:{active:[\\\"#006edd\\\",\\\"#e0ffff\\\"],inactive:[\\\"rgba(0,0,0,0)\\\"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[\\\"circle\\\",\\\"roundRect\\\",\\\"diamond\\\"],inactive:[\\\"none\\\"]},symbolSize:{active:[10,50],inactive:[0,0]}},Q4=dC.mapVisual,tF=dC.eachVisual,eF=U,nF=lt,iF=rr,oF=ir,ym=(u(lF,K4=m),lF.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},lF.prototype.optionUpdated=function(t,e){var n=this.option;e||oV(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel(\\\"textStyle\\\"),this.resetItemSize(),this.completeVisualOption()},lF.prototype.resetVisual=function(t){var e=this.stateList;t=I(t,this),this.controllerVisuals=iV(this.option.controller,e,t),this.targetVisuals=iV(this.option.target,e,t)},lF.prototype.getItemSymbol=function(){return null},lF.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||\\\"all\\\"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=Dr(t),n},lF.prototype.eachTargetSeries=function(n,i){lt(this.getTargetSeriesIndices(),function(t){var e=this.ecModel.getSeriesByIndex(t);e&&n.call(i,e)},this)},lF.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},lF.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,s=(n=n||[\\\"\u003C\\\",\\\">\\\"],U(t)&&(t=t.slice(),i=!0),e?t:i?[l(t[0]),l(t[1])]:l(t));return X(o)?o.replace(\\\"{value}\\\",i?s[0]:s).replace(\\\"{value2}\\\",i?s[1]:s):A(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+\\\" \\\"+s[1]:t[1]===a[1]?n[1]+\\\" \\\"+s[0]:s[0]+\\\" - \\\"+s[1]:s;function l(t){return t===a[0]?\\\"min\\\":t===a[1]?\\\"max\\\":(+t).toFixed(Math.min(r,20))}},lF.prototype.resetExtent=function(){var t=this.option,t=iF([t.min,t.max]);this._dataExtent=t},lF.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0\u003C=i;i--){var o=n[i],o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},lF.prototype.getExtent=function(){return this._dataExtent.slice()},lF.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={}),h=(v(i,t),v(o,t),this.isCategory());function r(t){eF(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get(\\\"gradientColor\\\")}}r.call(this,i),r.call(this,o),(function(t,e,n){var i=t[e],o=t[n];i&&!o&&(o=t[n]={},nF(i,function(t,e){var n;dC.isValidType(e)&&null!=(n=$4(e,\\\"inactive\\\",h))&&(o[e]=n,\\\"color\\\"!==e||o.hasOwnProperty(\\\"opacity\\\")||o.hasOwnProperty(\\\"colorAlpha\\\")||(o.opacity=[0,0]))}))}).call(this,i,\\\"inRange\\\",\\\"outOfRange\\\"),(function(r){var a=(r.inRange||{}).symbol||(r.outOfRange||{}).symbol,s=(r.inRange||{}).symbolSize||(r.outOfRange||{}).symbolSize,l=this.get(\\\"inactiveColor\\\"),u=this.getItemSymbol()||\\\"roundRect\\\";nF(this.stateList,function(t){var e,n=this.itemSize,i=r[t],o=(null==(i=i||(r[t]={color:h?l:[l]})).symbol&&(i.symbol=a&&L(a)||(h?u:[u])),null==i.symbolSize&&(i.symbolSize=s&&L(s)||(h?n[0]:[n[0],n[0]])),i.symbol=Q4(i.symbol,function(t){return\\\"none\\\"===t?u:t}),i.symbolSize);null!=o&&(e=-1/0,tF(o,function(t){e\u003Ct&&(e=t)}),i.symbolSize=Q4(o,function(t){return oF(t,[0,e],[0,n[0]],!0)}))},this)}).call(this,o)},lF.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(\\\"itemWidth\\\")),parseFloat(this.get(\\\"itemHeight\\\"))]},lF.prototype.isCategory=function(){return!!this.option.categories},lF.prototype.setSelected=function(t){},lF.prototype.getSelected=function(){return null},lF.prototype.getValueState=function(t){return null},lF.prototype.getVisualMeta=function(t){return null},lF.type=\\\"visualMap\\\",lF.dependencies=[\\\"series\\\"],lF.defaultOption={show:!0,z:4,seriesIndex:\\\"all\\\",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:\\\"vertical\\\",backgroundColor:\\\"rgba(0,0,0,0)\\\",borderColor:\\\"#ccc\\\",contentColor:\\\"#5793f3\\\",inactiveColor:\\\"#aaa\\\",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:\\\"#333\\\"}},lF),rF=[20,140],aF=(u(sF,q4=ym),sF.prototype.optionUpdated=function(t,e){q4.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=\\\"linear\\\",t.dataExtent=this.getExtent()}),this._resetRange()},sF.prototype.resetItemSize=function(){q4.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=rF[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=rF[1])},sF.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):U(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},sF.prototype.completeVisualOption=function(){q4.prototype.completeVisualOption.apply(this,arguments),lt(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},sF.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},sF.prototype.getSelected=function(){var t=this.getExtent(),e=rr((this.get(\\\"range\\\")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]\u003Ct[0]&&(e[0]=t[0]),e[1]\u003Ct[0]&&(e[1]=t[0]),e},sF.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]\u003C=n[0]||e[0]\u003C=t)&&(e[1]>=n[1]||t\u003C=e[1])?\\\"inRange\\\":\\\"outOfRange\\\"},sF.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]\u003C=t&&t\u003C=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},sF.prototype.getVisualMeta=function(n){var t=uF(0,0,this.getExtent()),e=uF(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;a\u003Cl&&(!e.length||t[a]\u003C=e[0]);a++)t[a]\u003Ce[r]&&o(t[a],\\\"outOfRange\\\");for(var u=1;r\u003Cs;r++,u=0)u&&i.length&&o(e[r],\\\"outOfRange\\\"),o(e[r],\\\"inRange\\\");for(u=1;a\u003Cl;a++)(!e.length||e[e.length-1]\u003Ct[a])&&(u&&(i.length&&o(i[i.length-1].value,\\\"outOfRange\\\"),u=0),o(t[a],\\\"outOfRange\\\"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:\\\"transparent\\\",h?i[h-1].color:\\\"transparent\\\"]}},sF.type=\\\"visualMap.continuous\\\",sF.defaultOption=np(ym.defaultOption,{align:\\\"auto\\\",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:\\\"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z\\\",handleSize:\\\"120%\\\",handleStyle:{borderColor:\\\"#fff\\\",borderWidth:1},indicatorIcon:\\\"circle\\\",indicatorSize:\\\"50%\\\",indicatorStyle:{borderColor:\\\"#fff\\\",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:\\\"rgba(0,0,0,0.2)\\\"}}),sF);function sF(){var t=null!==q4&&q4.apply(this,arguments)||this;return t.type=sF.type,t}function lF(){var t=null!==K4&&K4.apply(this,arguments)||this;return t.type=lF.type,t.stateList=[\\\"inRange\\\",\\\"outOfRange\\\"],t.replacableOptionKeys=[\\\"inRange\\\",\\\"outOfRange\\\",\\\"target\\\",\\\"controller\\\",\\\"color\\\"],t.layoutMode={type:\\\"box\\\",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}function uF(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a\u003C=200&&o\u003Cn[1];a++)r.push(o),o+=i;return r.push(n[1]),r}u(pF,hF=fy),pF.prototype.init=function(t,e){this.ecModel=t,this.api=e},pF.prototype.render=function(t,e,n,i){!1!==(this.visualMapModel=t).get(\\\"show\\\")?this.doRender(t,e,n,i):this.group.removeAll()},pF.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Ep(e.get(\\\"padding\\\")||0),i=t.getBoundingRect();t.add(new E({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get(\\\"backgroundColor\\\"),stroke:e.get(\\\"borderColor\\\"),lineWidth:e.get(\\\"borderWidth\\\")}}))},pF.prototype.getControllerVisual=function(n,i,o){var t,e=(o=o||{}).forceState,r=this.visualMapModel,a={};function s(t){return a[t]}function l(t,e){a[t]=e}\\\"color\\\"===i&&(t=r.get(\\\"contentColor\\\"),a.color=t);var u=r.controllerVisuals[e||r.getValueState(n)];return lt(dC.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&\\\"opacity\\\"===t&&(t=\\\"colorAlpha\\\",e=u.__alphaForOpacity),dC.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},pF.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Qp(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},pF.prototype.doRender=function(t,e,n,i){},pF.type=\\\"visualMap\\\";var hF,ra=pF,cF=[[\\\"left\\\",\\\"right\\\",\\\"width\\\"],[\\\"top\\\",\\\"bottom\\\",\\\"height\\\"]];function pF(){var t=null!==hF&&hF.apply(this,arguments)||this;return t.type=pF.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}function dF(t,e,n){var i=t.option,o=i.align;if(null!=o&&\\\"auto\\\"!==o)return o;for(var o={width:e.getWidth(),height:e.getHeight()},r=\\\"horizontal\\\"===i.orient?1:0,a=cF[r],s=[0,null,10],l={},u=0;u\u003C3;u++)l[cF[1-r][u]]=s[u],l[a[u]]=2===u?n[0]:i[a[u]];var h=[[\\\"x\\\",\\\"width\\\",3],[\\\"y\\\",\\\"height\\\",0]][r],c=Jp(l,o,i.padding);return a[(c.margin[h[2]]||0)+c[h[0]]+.5*c[h[1]]\u003C.5*o[h[1]]?0:1]}function fF(t,e){return lt(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey=\\\"visualMap\\\"+(e?e.componentIndex:\\\"\\\")}),t}var gF,yF=ir,mF=lt,vF=Math.min,xF=Math.max,_F=(u(bF,gF=ra),bF.prototype.doRender=function(t,e,n,i){this._api=n,i&&\\\"selectDataRange\\\"===i.type&&i.from===this.uid||this._buildView()},bF.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group,t=(this._orient=t.get(\\\"orient\\\"),this._useHandle=t.get(\\\"calculable\\\"),this._resetInterval(),this._renderBar(e),t.get(\\\"text\\\"));this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},bF.prototype._renderEndsText=function(t,e,n){var i,o,r,a,s;e&&(i=null!=(i=e[1-n])?i+\\\"\\\":\\\"\\\",r=(o=this.visualMapModel).get(\\\"textGap\\\"),o=o.itemSize,a=this._shapes.mainGroup,o=this._applyTransform([o[0]/2,0===n?-r:o[1]+r],a),r=this._applyTransform(0===n?\\\"bottom\\\":\\\"top\\\",a),a=this._orient,s=this.visualMapModel.textStyleModel,this.group.add(new z({style:Dc(s,{x:o[0],y:o[1],verticalAlign:\\\"horizontal\\\"===a?\\\"middle\\\":r,align:\\\"horizontal\\\"===a?r:\\\"center\\\",text:i})})))},bF.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=dF(e,this.api,i),a=n.mainGroup=this._createBarGroup(a),s=new K,s=(a.add(s),s.add(n.outOfRange=wF()),s.add(n.inRange=wF(null,r?MF(this._orient):null,I(this._dragHandle,this,\\\"all\\\",!1),I(this._dragHandle,this,\\\"all\\\",!0))),s.setClipPath(new E({shape:{x:0,y:0,width:i[0],height:i[1],r:3}})),e.textStyleModel.getTextRect(\\\"国\\\")),s=xF(s.width,s.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,a,0,i,s,o),this._createHandle(e,a,1,i,s,o)),this._createIndicator(e,a,i,s,o),t.add(a)},bF.prototype._createHandle=function(t,e,n,i,o,r){var a=I(this._dragHandle,this,n,!1),s=I(this._dragHandle,this,n,!0),l=Eo(t.get(\\\"handleSize\\\"),i[0]),u=Sm(t.get(\\\"handleIcon\\\"),-l/2,-l/2,l,l,null,!0),h=MF(this._orient),c=(u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Me(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel(\\\"handleStyle\\\").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState(\\\"emphasis\\\").style=t.getModel([\\\"emphasis\\\",\\\"handleStyle\\\"]).getItemStyle(),Jl(u,!0),e.add(u),this.visualMapModel.textStyleModel),h=new z({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Me(t.event)},ondragend:s,style:Dc(c,{x:0,y:0,text:\\\"\\\"})}),a=(h.ensureState(\\\"blur\\\").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h),[l,0]),s=this._shapes;s.handleThumbs[n]=u,s.handleLabelPoints[n]=a,s.handleLabels[n]=h},bF.prototype._createIndicator=function(t,e,n,i,o){var r=Eo(t.get(\\\"indicatorSize\\\"),n[0]),r=Sm(t.get(\\\"indicatorIcon\\\"),-r/2,-r/2,r,r,null,!0),a=(r.attr({cursor:\\\"move\\\",invisible:!0,silent:!0,x:n[0]/2}),t.getModel(\\\"indicatorStyle\\\").getItemStyle()),s=(r instanceof Ps?(s=r.style,r.useStyle(Z({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},a))):r.useStyle(a),e.add(r),this.visualMapModel.textStyleModel),a=new z({silent:!0,invisible:!0,style:Dc(s,{x:0,y:0,text:\\\"\\\"})}),s=(this.group.add(a),[(\\\"horizontal\\\"===o?i/2:6)+n[0]/2,0]),l=this._shapes;l.indicator=r,l.indicatorLabel=a,l.indicatorLabelPoint=s,this._firstShowIndicator=!0},bF.prototype._dragHandle=function(t,e,n,i){var o;this._useHandle&&(this._dragging=!e,e||(o=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()),e===!this.visualMapModel.get(\\\"realtime\\\")&&this.api.dispatchAction({type:\\\"selectDataRange\\\",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():SF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},bF.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[yF(e[0],n,t,!0),yF(e[1],n,t,!0)]},bF.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]],n=(KA(e=e||0,i,o,t,0),n.getExtent());this._dataInterval=[yF(i[0],o,n,!0),yF(i[1],o,n,!0)]},bF.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,e=[0,e.itemSize[1]],o=t?e:this._handleEnds,r=this._createBarVisual(this._dataInterval,n,o,\\\"inRange\\\"),n=this._createBarVisual(n,n,e,\\\"outOfRange\\\");i.inRange.setStyle({fill:r.barColor}).setShape(\\\"points\\\",r.barPoints),i.outOfRange.setStyle({fill:n.barColor}).setShape(\\\"points\\\",n.barPoints),this._updateHandle(o,r)},bF.prototype._createBarVisual=function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(t,o),o=[this.getControllerVisual(t[0],\\\"symbolSize\\\",o),this.getControllerVisual(t[1],\\\"symbolSize\\\",o)],o=this._createBarPoints(n,o);return{barColor:new Ch(0,0,0,1,r),barPoints:o,handlesColor:[r[0].color,r[r.length-1].color]}},bF.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],\\\"color\\\",e),offset:0});for(var o=1;o\u003C100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,\\\"color\\\",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],\\\"color\\\",e),offset:1}),n},bF.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},bF.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get(\\\"inverse\\\");return new K(\\\"horizontal\\\"!==e||n?\\\"horizontal\\\"===e&&n?{scaleX:\\\"bottom\\\"===t?-1:1,rotation:-Math.PI/2}:\\\"vertical\\\"!==e||n?{scaleX:\\\"left\\\"===t?1:-1}:{scaleX:\\\"left\\\"===t?1:-1,scaleY:-1}:{scaleX:\\\"bottom\\\"===t?1:-1,rotation:Math.PI/2})},bF.prototype._updateHandle=function(i,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),mF([0,1],function(t){var e=s[t],n=(e.setStyle(\\\"fill\\\",o.handlesColor[t]),e.y=i[t],yF(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,\\\"symbolSize\\\"),n=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,hc(r.handleLabelPoints[t],uc(e,this.group)));l[t].setStyle({x:n[0],y:n[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:\\\"middle\\\",align:\\\"vertical\\\"===this._orient?this._applyTransform(\\\"left\\\",r.mainGroup):\\\"center\\\"})},this))},bF.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr(\\\"invisible\\\",!1);var h=this.getControllerVisual(t,\\\"color\\\",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,\\\"symbolSize\\\"),r=yF(t,r,s,!0),s=a[0]-c/2,a={x:u.x,y:u.y},c=(u.y=r,u.x=s,hc(l.indicatorLabelPoint,uc(u,this.group))),p=l.indicatorLabel,l=(p.attr(\\\"invisible\\\",!1),this._applyTransform(\\\"left\\\",l.mainGroup)),d=\\\"horizontal\\\"===this._orient,d=(p.setStyle({text:(n||\\\"\\\")+o.formatValueText(e),verticalAlign:d?l:\\\"middle\\\",align:d?\\\"center\\\":l}),{x:s,y:r,style:{fill:h}}),l={style:{x:c[0],y:c[1]}},f=(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(s={duration:100,easing:\\\"cubicInOut\\\",additive:!0},u.x=a.x,u.y=a.y,u.animateTo(d,s),p.animateTo(l,s)):(u.attr(d),p.attr(l)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(f)for(var g=0;g\u003Cf.length;g++)this._api.enterBlur(f[g])}},bF.prototype._enableHoverLinkToSeries=function(){var i=this;this._shapes.mainGroup.on(\\\"mousemove\\\",function(t){var e,n;i._hovering=!0,i._dragging||(e=i.visualMapModel.itemSize,(n=i._applyTransform([t.offsetX,t.offsetY],i._shapes.mainGroup,!0,!0))[1]=vF(xF(0,n[1]),e[1]),i._doHoverLinkToSeries(n[1],0\u003C=n[0]&&n[0]\u003C=e[0]))}).on(\\\"mouseout\\\",function(){i._hovering=!1,i._dragging||i._clearHoverLinkToSeries()})},bF.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on(\\\"mouseover\\\",this._hoverLinkFromSeriesMouseOver,this),t.on(\\\"mouseout\\\",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},bF.prototype._doHoverLinkToSeries=function(t,e){var n,i,o,r,a,s,l=this.visualMapModel,u=l.itemSize;function h(t,e,n){for(var i=0,o=t.length;i\u003Co;i++){var r=Nr(t[i].seriesId,null);if(null==r)return;for(var a=Dr(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l\u003Cu;l++){var h=a[l];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}}function c(t,e){var n,i,o=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=c(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}));return o}l.option.hoverLink&&(u=[0,u[1]],n=l.getExtent(),t=vF(xF(u[0],t),u[1]),o=n,r=u,a=6,s=l.get(\\\"hoverLinkDataSize\\\"),a=[t-(s=a=s?yF(s,o,r,!0)/2:a),t+s],i=yF(t,u,n,!0),n=[yF(a[0],u,n,!0),yF(a[1],u,n,!0)],a[0]\u003Cu[0]&&(n[0]=-1/0),u[1]\u003Ca[1]&&(n[1]=1/0),e&&(n[0]===-1/0?this._showIndicator(i,n[1],\\\"\u003C \\\",s):n[1]===1/0?this._showIndicator(i,n[0],\\\"> \\\",s):this._showIndicator(i,i,\\\"≈ \\\",s)),u=this._hoverLinkDataIndices,a=[],(e||SF(l))&&(a=this._hoverLinkDataIndices=l.findTargetDataIndices(n)),o=a,i={},h(u||[],s={}),h(o||[],i,s),n=[c(s),c(i)],this._dispatchHighDown(\\\"downplay\\\",fF(n[0],l)),this._dispatchHighDown(\\\"highlight\\\",fF(n[1],l)))},bF.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n=t.target,i=this.visualMapModel;n&&null!=$(n).dataIndex&&(n=$(n),e=this.ecModel.getSeriesByIndex(n.seriesIndex),i.isTargetSeries(e))&&(e=(e=e.getData(n.dataType)).getStore().get(i.getDataDimensionIndex(e),n.dataIndex),isNaN(e)||this._showIndicator(e,e))},bF.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr(\\\"invisible\\\",!0),t.indicatorLabel&&t.indicatorLabel.attr(\\\"invisible\\\",!0),this._shapes.handleLabels);if(e)for(var n=0;n\u003Ce.length;n++)this._api.leaveBlur(e[n])},bF.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown(\\\"downplay\\\",fF(t,this.visualMapModel)),t.length=0},bF.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off(\\\"mouseover\\\",this._hoverLinkFromSeriesMouseOver),t.off(\\\"mouseout\\\",this._hideIndicator)},bF.prototype._applyTransform=function(t,e,n,i){var o=uc(e,i?null:this.group);return(U(t)?hc:cc)(t,o,n)},bF.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},bF.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},bF.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},bF.type=\\\"visualMap.continuous\\\",bF);function bF(){var t=null!==gF&&gF.apply(this,arguments)||this;return t.type=bF.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function wF(t,e,n,i){return new eh({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Me(t.event)},ondragend:i})}function SF(t){var e=t.get(\\\"hoverLinkOnHandle\\\");return null==e?t.get(\\\"realtime\\\"):e}function MF(t){return\\\"vertical\\\"===t?\\\"ns-resize\\\":\\\"ew-resize\\\"}var IF={type:\\\"selectDataRange\\\",event:\\\"dataRangeSelected\\\",update:\\\"update\\\"},TF=function(e,t){t.eachComponent({mainType:\\\"visualMap\\\",query:e},function(t){t.setSelected(e.selected)})},CF=[{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent(\\\"visualMap\\\",function(t){var f,g,y,m,e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push((e=t.stateList,f=t.targetVisuals,g=I(t.getValueState,t),y=t.getDataDimensionIndex(n.getData()),m={},lt(e,function(t){var e=dC.prepareVisualTypes(f[t]);m[t]=e}),{progress:function(t,n){var e,i;function o(t){return rm(n,i,t)}function r(t,e){sm(n,i,t,e)}null!=y&&(e=n.getDimensionIndex(y));for(var a=n.getStore();null!=(i=t.next());){var s=n.getRawDataItem(i);if(!s||!1!==s.visualMap)for(var l=null!=y?a.get(e,i):i,s=g(l),u=f[s],h=m[s],c=0,p=h.length;c\u003Cp;c++){var d=h[c];u[d]&&u[d].applyVisual(l,o,r)}}}}))}),i}},{createOnAllSeries:!0,reset:function(i,t){var o=i.getData(),r=[];t.eachComponent(\\\"visualMap\\\",function(t){var e,n;t.isTargetSeries(i)&&(e=t.getVisualMeta(I(DF,null,i,t))||{stops:[],outerColors:[]},0\u003C=(n=t.getDataDimensionIndex(o)))&&(e.dimension=n,r.push(e))}),i.getData().setVisual(\\\"visualMeta\\\",r)}}];function DF(t,e,n,i){for(var o=e.targetVisuals[i],r=dC.prepareVisualTypes(o),a={color:am(t.getData(),\\\"color\\\")},s=0,l=r.length;s\u003Cl;s++){var u=r[s],u=o[\\\"opacity\\\"===u?\\\"__alphaForOpacity\\\":u];u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var AF=lt;function kF(t){var e=t&&t.visualMap;U(e)||(e=e?[e]:[]),AF(e,function(t){var e;t&&(LF(t,\\\"splitList\\\")&&!LF(t,\\\"pieces\\\")&&(t.pieces=t.splitList,delete t.splitList),e=t.pieces)&&U(e)&&AF(e,function(t){R(t)&&(LF(t,\\\"start\\\")&&!LF(t,\\\"min\\\")&&(t.min=t.start),LF(t,\\\"end\\\"))&&!LF(t,\\\"max\\\")&&(t.max=t.end)})})}function LF(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var PF=!1;function OF(e){PF||(PF=!0,e.registerSubTypeDefaulter(\\\"visualMap\\\",function(t){return t.categories||(t.pieces?0\u003Ct.pieces.length:0\u003Ct.splitNumber)&&!t.calculable?\\\"piecewise\\\":\\\"continuous\\\"}),e.registerAction(IF,TF),lt(CF,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(kF))}function RF(t){t.registerComponentModel(aF),t.registerComponentView(_F),OF(t)}u(VF,NF=ym),VF.prototype.optionUpdated=function(t,e){NF.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],zF[this._mode].call(this,this._pieceList),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){\\\"categories\\\"===n?(t.mappingMethod=\\\"category\\\",t.categories=L(i)):(t.dataExtent=this.getExtent(),t.mappingMethod=\\\"piecewise\\\",t.pieceList=Y(this._pieceList,function(t){return t=L(t),\\\"inRange\\\"!==e&&(t.visual=null),t}))})},VF.prototype.completeVisualOption=function(){var i=this.option,n={},t=dC.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}lt(i.pieces,function(e){lt(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),lt(n,function(t,e){var n=!1;lt(this.stateList,function(t){n=n||r(i,t,e)||r(i.target,t,e)},this),n||lt(this.stateList,function(t){(i[t]||(i[t]={}))[e]=$4(e,\\\"inRange\\\"===t?\\\"active\\\":\\\"inactive\\\",o)})},this),NF.prototype.completeVisualOption.apply(this,arguments)},VF.prototype._resetSelected=function(t,e){var i,n=this.option,o=this._pieceList,r=(e?n:t).selected||{};n.selected=r,lt(o,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),\\\"single\\\"===n.selectedMode&&(i=!1,lt(o,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(i?r[n]=!1:i=!0)},this))},VF.prototype.getItemSymbol=function(){return this.get(\\\"itemSymbol\\\")},VF.prototype.getSelectedMapKey=function(t){return\\\"categories\\\"===this._mode?t.value+\\\"\\\":t.index+\\\"\\\"},VF.prototype.getPieceList=function(){return this._pieceList},VF.prototype._determineMode=function(){var t=this.option;return t.pieces&&0\u003Ct.pieces.length?\\\"pieces\\\":this.option.categories?\\\"categories\\\":\\\"splitNumber\\\"},VF.prototype.setSelected=function(t){this.option.selected=L(t)},VF.prototype.getValueState=function(t){var e=dC.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?\\\"inRange\\\":\\\"outOfRange\\\"},VF.prototype.findTargetDataIndices=function(i){var o=[],r=this._pieceList;return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){dC.findPieceIndex(t,r)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},VF.prototype.getRepresentValue=function(t){var e;return this.isCategory()||null!=t.value?t.value:(e=t.interval||[])[0]===-1/0&&e[1]===1/0?0:(e[0]+e[1])/2},VF.prototype.getVisualMeta=function(i){var o,r,a,t,e,n;if(!this.isCategory())return o=[],r=[\\\"\\\",\\\"\\\"],(t=(a=this)._pieceList.slice()).length?((e=t[0].interval[0])!==-1/0&&t.unshift({interval:[-1/0,e]}),(e=t[t.length-1].interval[1])!==1/0&&t.push({interval:[e,1/0]})):t.push({interval:[-1/0,1/0]}),n=-1/0,lt(t,function(t){var e=t.interval;e&&(e[0]>n&&s([n,e[0]],\\\"outOfRange\\\"),s(e.slice()),n=e[1])},this),{stops:o,outerColors:r};function s(t,e){var n=a.getRepresentValue({interval:t}),n=(e=e||a.getValueState(n),i(n,e));t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}},VF.type=\\\"visualMap.piecewise\\\",VF.defaultOption=np(ym.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:\\\"auto\\\",itemWidth:20,itemHeight:14,itemSymbol:\\\"roundRect\\\",pieces:null,categories:null,splitNumber:5,selectedMode:\\\"multiple\\\",itemGap:10,hoverLink:!0});var NF,EF=VF,zF={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n\u003C5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a\u003Co;s+=r,a++){var l=a===o-1?i[1]:s+r;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),xr(t),lt(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;lt(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),BF(t,e)},pieces:function(p){var t=this.option;lt(t.pieces,function(t,e){var n={text:\\\"\\\",index:e};if(null!=(t=R(t)?t:{value:t}).label&&(n.text=t.label),t.hasOwnProperty(\\\"value\\\")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],r=n.close=[0,0],a=[1,0,1],s=[-1/0,1/0],l=[],u=0;u\u003C2;u++){for(var h=[[\\\"gte\\\",\\\"gt\\\",\\\"min\\\"],[\\\"lte\\\",\\\"lt\\\",\\\"max\\\"]][u],c=0;c\u003C3&&null==o[u];c++)o[u]=t[h[c]],r[u]=a[c],l[u]=2===c;null==o[u]&&(o[u]=s[u])}l[0]&&o[1]===1/0&&(r[0]=0),l[1]&&o[0]===-1/0&&(r[1]=0),o[0]===o[1]&&r[0]&&r[1]&&(n.value=o[0])}n.visual=dC.retrieveVisuals(t),p.push(n)},this),BF(t,p),xr(p),lt(p,function(t){var e=t.close,e=[[\\\"\u003C\\\",\\\"≤\\\"][e[1]],[\\\">\\\",\\\"≥\\\"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function VF(){var t=null!==NF&&NF.apply(this,arguments)||this;return t.type=VF.type,t._pieceList=[],t}function BF(t,e){var n=t.inverse;(\\\"vertical\\\"===t.orient?!n:n)&&e.reverse()}u(WF,FF=ra),WF.prototype.doRender=function(){var o=this.group,r=(o.removeAll(),this.visualMapModel),a=r.get(\\\"textGap\\\"),t=r.textStyleModel,s=t.getFont(),l=t.getTextColor(),u=this._getItemAlign(),h=r.itemSize,t=this._getViewData(),e=t.endsText,c=wt(r.get(\\\"showLabel\\\",!0),!e);e&&this._renderEndsText(o,e[0],h,c,u),lt(t.viewPieceList,function(t){var e=t.piece,n=new K,i=(n.onclick=I(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList),r.getRepresentValue(e));this._createItemSymbol(n,i,[0,0,h[0],h[1]]),c&&(i=this.visualMapModel.getValueState(i),n.add(new z({style:{x:\\\"right\\\"===u?-a:h[0]+a,y:h[1]/2,text:e.text,verticalAlign:\\\"middle\\\",align:u,font:s,fill:l,opacity:\\\"outOfRange\\\"===i?.5:1}}))),o.add(n)},this),e&&this._renderEndsText(o,e[1],h,c,u),$p(r.get(\\\"orient\\\"),o,r.get(\\\"itemGap\\\")),this.renderBackground(o),this.positionGroup(o)},WF.prototype._enableHoverLink=function(t,n){var i=this,e=(t.on(\\\"mouseover\\\",function(){return e(\\\"highlight\\\")}).on(\\\"mouseout\\\",function(){return e(\\\"downplay\\\")}),function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:fF(e.findTargetDataIndices(n),e)})})},WF.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return\\\"vertical\\\"===e.orient?dF(t,this.api,t.itemSize):(t=e.align)&&\\\"auto\\\"!==t?t:\\\"left\\\"},WF.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new K,a=this.visualMapModel.textStyleModel,r.add(new z({style:Dc(a,{x:i?\\\"right\\\"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:\\\"middle\\\",align:i?o:\\\"center\\\",text:e})})),t.add(r))},WF.prototype._getViewData=function(){var t=this.visualMapModel,e=Y(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get(\\\"text\\\"),i=t.get(\\\"orient\\\"),t=t.get(\\\"inverse\\\");return(\\\"horizontal\\\"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},WF.prototype._createItemSymbol=function(t,e,n){t.add(Sm(this.getControllerVisual(e,\\\"symbol\\\"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,\\\"color\\\")))},WF.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=L(n.selected),o=e.getSelectedMapKey(t);\\\"single\\\"===n.selectedMode?(i[o]=!0,lt(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:\\\"selectDataRange\\\",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},WF.type=\\\"visualMap.piecewise\\\";var FF,GF=WF;function WF(){var t=null!==FF&&FF.apply(this,arguments)||this;return t.type=WF.type,t}function HF(t){t.registerComponentModel(EF),t.registerComponentView(GF),OF(t)}var YF={label:{enabled:!0},decal:{show:!1}},UF=i(),XF={};function ZF(c,t){var n,e=c.getModel(\\\"aria\\\");if(e.get(\\\"enabled\\\")){var i=L(YF),i=(v(i.label,c.getLocaleModel().get(\\\"aria\\\"),!1),v(e.option,i,!1),e.getModel(\\\"decal\\\").get(\\\"show\\\")&&(n=N(),c.eachSeries(function(t){var e;t.isColorBySeries()||((e=n.get(t.type))||n.set(t.type,e={}),UF(t).scope=e)}),c.eachRawSeries(function(o){var r,t,e,a,s,l,u;function h(t,e){var n=t?Z(Z({},e),t):e;return n.dirty=!0,n}c.isSeriesFiltered(o)||(A(o.enableAriaDecal)?o.enableAriaDecal():(r=o.getData(),o.isColorBySeries()?(t=Vd(o.ecModel,o.name,XF,c.getSeriesCount()),e=r.getVisual(\\\"decal\\\"),r.setVisual(\\\"decal\\\",h(e,t))):(a=o.getRawData(),s={},l=UF(o).scope,r.each(function(t){var e=r.getRawIndex(t);s[e]=t}),u=a.count(),a.each(function(t){var e=s[t],n=a.getName(t)||t+\\\"\\\",n=Vd(o.ecModel,n,l,u),i=r.getItemVisual(e,\\\"decal\\\");r.setItemVisual(e,\\\"decal\\\",h(i,n))}))))})),c.getLocaleModel().get(\\\"aria\\\")),p=e.getModel(\\\"label\\\");if(p.option=H(p.option,i),p.get(\\\"enabled\\\")){i=t.getZr().dom;if(p.get(\\\"description\\\"))return void i.setAttribute(\\\"aria-label\\\",p.get(\\\"description\\\"));var d,o,r,f=c.getSeriesCount(),g=p.get([\\\"data\\\",\\\"maxCount\\\"])||10,e=p.get([\\\"series\\\",\\\"maxCount\\\"])||10,y=Math.min(f,e);f\u003C1||(e=(e=(e=(e=c.get(\\\"title\\\"))&&e.length?e[0]:e)&&e.text)?m(p.get([\\\"general\\\",\\\"withTitle\\\"]),{title:e}):p.get([\\\"general\\\",\\\"withoutTitle\\\"]),d=[],e+=m(1\u003Cf?p.get([\\\"series\\\",\\\"multiple\\\",\\\"prefix\\\"]):p.get([\\\"series\\\",\\\"single\\\",\\\"prefix\\\"]),{seriesCount:f}),c.eachSeries(function(t,e){if(e\u003Cy){var n=void 0,i=t.get(\\\"name\\\")?\\\"withName\\\":\\\"withoutName\\\",n=m(n=1\u003Cf?p.get([\\\"series\\\",\\\"multiple\\\",i]):p.get([\\\"series\\\",\\\"single\\\",i]),{seriesId:t.seriesIndex,seriesName:t.get(\\\"name\\\"),seriesType:(i=t.subType,c.getLocaleModel().get([\\\"series\\\",\\\"typeNames\\\"])[i]||\\\"自定义图\\\")}),o=t.getData();o.count()>g?n+=m(p.get([\\\"data\\\",\\\"partialData\\\"]),{displayCnt:g}):n+=p.get([\\\"data\\\",\\\"allData\\\"]);for(var r,a,s,l=p.get([\\\"data\\\",\\\"separator\\\",\\\"middle\\\"]),i=p.get([\\\"data\\\",\\\"separator\\\",\\\"end\\\"]),u=[],h=0;h\u003Co.count();h++)h\u003Cg&&(r=o.getName(h),a=o.getValues(h),s=p.get([\\\"data\\\",r?\\\"withName\\\":\\\"withoutName\\\"]),u.push(m(s,{name:r,value:a.join(l)})));n+=u.join(l)+i,d.push(n)}}),o=(r=p.getModel([\\\"series\\\",\\\"multiple\\\",\\\"separator\\\"])).get(\\\"middle\\\"),r=r.get(\\\"end\\\"),e+=d.join(o)+r,i.setAttribute(\\\"aria-label\\\",e))}}function m(t,e){var n;return X(t)?(n=t,lt(e,function(t,e){n=n.replace(new RegExp(\\\"\\\\\\\\{\\\\\\\\s*\\\"+e+\\\"\\\\\\\\s*\\\\\\\\}\\\",\\\"g\\\"),t)}),n):t}}function jF(t){var e;t&&t.aria&&(null!=(e=t.aria).show&&(e.enabled=e.show),e.label=e.label||{},lt([\\\"description\\\",\\\"general\\\",\\\"series\\\",\\\"data\\\"],function(t){null!=e[t]&&(e.label[t]=e[t])}))}var qF={value:\\\"eq\\\",\\\"\u003C\\\":\\\"lt\\\",\\\"\u003C=\\\":\\\"lte\\\",\\\">\\\":\\\"gt\\\",\\\">=\\\":\\\"gte\\\",\\\"=\\\":\\\"eq\\\",\\\"!=\\\":\\\"ne\\\",\\\"\u003C>\\\":\\\"ne\\\"},KF=(sG.prototype.evaluate=function(t){var e=typeof t;return X(e)?this._condVal.test(t):!!j(e)&&this._condVal.test(t+\\\"\\\")},sG),$F=(aG.prototype.evaluate=function(){return this.value},aG),JF=(rG.prototype.evaluate=function(){for(var t=this.children,e=0;e\u003Ct.length;e++)if(!t[e].evaluate())return!1;return!0},rG),QF=(oG.prototype.evaluate=function(){for(var t=this.children,e=0;e\u003Ct.length;e++)if(t[e].evaluate())return!0;return!1},oG),tG=(iG.prototype.evaluate=function(){return!this.child.evaluate()},iG),eG=(nG.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i\u003Cthis.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},nG);function nG(){}function iG(){}function oG(){}function rG(){}function aG(){}function sG(t){null==(this._condVal=X(t)?new RegExp(t):_t(t)?t:null)&&Mr(\\\"\\\")}function lG(t,e){var n,i;if(!0===t||!1===t)return(i=new $F).value=t,i;{if(hG(t)||Mr(\\\"\\\"),t.and)return uG(\\\"and\\\",t,e);if(t.or)return uG(\\\"or\\\",t,e);if(t.not)return n=e,hG(i=t.not)||Mr(\\\"\\\"),(l=new tG).child=lG(i,n),l.child||Mr(\\\"\\\"),l;for(var o=t,r=e,a,s,l=r.prepareGetValue(o),u=[],h=W(o),c=o.parser,p=c?lg(c):null,d=0;d\u003Ch.length;d++){var f,g=h[d];\\\"parser\\\"===g||r.valueGetterAttrMap.get(g)||(f=q(qF,g)?qF[g]:g,g=o[g],g=p?p(g):g,s=g,(f=(\\\"eq\\\"===(a=f)||\\\"ne\\\"===a?new pg(\\\"eq\\\"===a,s):q(ug,a)?new hg(a,s):null)||\\\"reg\\\"===f&&new KF(g))||Mr(\\\"\\\"),u.push(f))}return u.length||Mr(\\\"\\\"),(c=new eG).valueGetterParam=l,c.valueParser=p,c.getValue=r.getValue,c.subCondList=u,c}}function uG(t,e,n){var i=e[t],o=(U(i)||Mr(\\\"\\\"),i.length||Mr(\\\"\\\"),new(\\\"and\\\"===t?JF:QF));return o.children=Y(i,function(t){return lG(t,n)}),o.children.length||Mr(\\\"\\\"),o}function hG(t){return R(t)&&!ht(t)}pG.prototype.evaluate=function(){return this._cond.evaluate()};var cG=pG;function pG(t,e){this._cond=lG(t,e)}var dG,fG,gG={type:\\\"echarts:filter\\\",transform:function(t){for(var e,n,i,o=t.upstream,r=(n=t.config,i={valueGetterAttrMap:N({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,e=(q(t,\\\"dimension\\\")||Mr(\\\"\\\"),o.getDimensionInfo(e));return e||Mr(\\\"\\\"),{dimIdx:e.index}},getValue:function(t){return o.retrieveValueFromItem(e,t.dimIdx)}},new cG(n,i)),a=[],s=0,l=o.count();s\u003Cl;s++)e=o.getRawDataItem(s),r.evaluate()&&a.push(e);return{data:a}}},yG={type:\\\"echarts:sort\\\",transform:function(t){var a=t.upstream,e=t.config,e=Dr(e),s=(e.length||Mr(\\\"\\\"),[]),e=(lt(e,function(t){var e=t.dimension,n=t.order,i=t.parser,o=t.incomparable,e=(null==e&&Mr(\\\"\\\"),\\\"asc\\\"!==n&&\\\"desc\\\"!==n&&Mr(\\\"\\\"),o&&\\\"min\\\"!==o&&\\\"max\\\"!==o&&Mr(\\\"\\\"),\\\"asc\\\"!==n&&\\\"desc\\\"!==n&&Mr(\\\"\\\"),a.getDimensionInfo(e)),r=(e||Mr(\\\"\\\"),i?lg(i):null);i&&!r&&Mr(\\\"\\\"),s.push({dimIdx:e.index,parser:r,comparator:new cg(n,o)})}),a.sourceFormat);e!==fd&&e!==gd&&Mr(\\\"\\\");for(var n=[],i=0,o=a.count();i\u003Co;i++)n.push(a.getRawDataItem(i));return n.sort(function(t,e){for(var n=0;n\u003Cs.length;n++){var i=s[n],o=a.retrieveValueFromItem(t,i.dimIdx),r=a.retrieveValueFromItem(e,i.dimIdx),o=(i.parser&&(o=i.parser(o),r=i.parser(r)),i.comparator.evaluate(o,r));if(0!==o)return o}return 0}),{data:n}}},mG=(u(_G,fG=m),_G.prototype.init=function(t,e,n){fG.prototype.init.call(this,t,e,n),this._sourceManager=new Og(this),zg(this)},_G.prototype.mergeOption=function(t,e){fG.prototype.mergeOption.call(this,t,e),zg(this)},_G.prototype.optionUpdated=function(){this._sourceManager.dirty()},_G.prototype.getSourceManager=function(){return this._sourceManager},_G.type=\\\"dataset\\\",_G.defaultOption={seriesLayoutBy:xd},_G),vG=(u(xG,dG=fy),xG.type=\\\"dataset\\\",xG);function xG(){var t=null!==dG&&dG.apply(this,arguments)||this;return t.type=\\\"dataset\\\",t}function _G(){var t=null!==fG&&fG.apply(this,arguments)||this;return t.type=\\\"dataset\\\",t}var bG=ss.CMD;function wG(t,e){return Math.abs(t-e)\u003C1e-5}function SG(E){var o,t,e=E.data,z=E.len(),n=[],i=0,r=0,a=0,s=0;function l(t,e){o&&2\u003Co.length&&n.push(o),o=[t,e]}function u(t,e,n,i){wG(t,n)&&wG(e,i)||o.push(t,e,n,i,n,i)}for(var h,c,p,d,f,g,y,m,v,x,_,b,w,S,M,I=0;I\u003Cz;){var T=e[I++],V=1===I;switch(V&&(a=i=e[I],s=r=e[I+1],T!==bG.L&&T!==bG.C&&T!==bG.Q||(o=[a,s])),T){case bG.M:i=a=e[I++],r=s=e[I++],l(a,s);break;case bG.L:u(i,r,O=e[I++],R=e[I++]),i=O,r=R;break;case bG.C:o.push(e[I++],e[I++],e[I++],e[I++],i=e[I++],r=e[I++]);break;case bG.Q:O=e[I++],R=e[I++],L=e[I++],t=e[I++],o.push(i+2/3*(O-i),r+2/3*(R-r),L+2/3*(O-L),t+2/3*(R-t),L,t),i=L,r=t;break;case bG.A:var C=e[I++],D=e[I++],A=e[I++],k=e[I++],L=e[I++],P=e[I++]+L,B=(I+=1,!e[I++]),O=Math.cos(L)*A+C,R=Math.sin(L)*k+D;V?l(a=O,s=R):u(i,r,O,R);for(var i=Math.cos(P)*A+C,r=Math.sin(P)*k+D,F=(B?-1:1)*Math.PI/2,N=L;B?P\u003CN:N\u003CP;N+=F)h=N,c=B?Math.max(N+F,P):Math.min(N+F,P),p=C,d=D,f=A,g=k,y=M=S=w=b=_=x=v=m=y=void 0,y=Math.abs(c-h),y=4*Math.tan(y/4)/3,m=c\u003Ch?-1:1,v=Math.cos(h),x=Math.sin(h),_=Math.cos(c),b=Math.sin(c),w=_*f+p,S=b*g+d,M=f*y*m,y=g*y*m,o.push(v*f+p-M*x,x*g+d+y*v,w+M*b,S-y*_,w,S);break;case bG.R:a=i=e[I++],s=r=e[I++],O=a+e[I++],R=s+e[I++],l(O,s),u(O,s,O,R),u(O,R,a,R),u(a,R,a,s),u(a,s,O,s);break;case bG.Z:o&&u(i,r,a,s),i=a,r=s}}return o&&2\u003Co.length&&n.push(o),n}function MG(t,e,n){var i=t[e],o=t[1-e],i=Math.abs(i/o),r=Math.ceil(Math.sqrt(i*n)),a=Math.floor(n/r);0===a&&(a=1,r=n);for(var s=[],l=0;l\u003Cr;l++)s.push(a);var u=n-r*a;if(0\u003Cu)for(l=0;l\u003Cu;l++)s[l%r]+=1;return s}function IG(t,e,n){for(var i=t.r0,o=t.r,r=t.startAngle,a=t.endAngle,s=Math.abs(a-r),a=s*o,l=o-i,u=a>Math.abs(l),h=MG([a,l],u?0:1,e),c=(u?s:l)/h.length,p=0;p\u003Ch.length;p++)for(var d=(u?l:s)/h[p],f=0;f\u003Ch[p];f++){var g={};u?(g.startAngle=r+c*p,g.endAngle=r+c*(p+1),g.r0=i+d*f,g.r=i+d*(f+1)):(g.startAngle=r+d*f,g.endAngle=r+d*(f+1),g.r0=i+c*p,g.r=i+c*(p+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function TG(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function CG(t){for(var e,n,i,o,r,a,s,l,u,h,c=t.points,p=[],d=[],d=(Ba(c,p,d),new B(p[0],p[1],d[0]-p[0],d[1]-p[1])),p=d.width,f=d.height,g=d.x,d=d.y,y=new V,m=new V,v=(f\u003Cp?(y.x=m.x=g+p/2,y.y=d,m.y=d+f):(y.y=m.y=d+f/2,y.x=g,m.x=g+p),c),x=y,_=m,b=v.length,w=[],S=0;S\u003Cb;S++){var M=v[S],I=v[(S+1)%b],T=(e=M[0],n=M[1],i=I[0],o=I[1],r=x.x,a=x.y,s=_.x,l=_.y,h=u=T=I=M=void 0,h=(T=s-r)*(I=o-n)-(M=i-e)*(u=l-a),Math.abs(h)\u003C1e-6||(u=((e-r)*u-T*(n-a))/h)\u003C0||1\u003Cu?null:new V(u*M+e,u*I+n));T&&w.push({projPt:(s=T,o=x,i=_,M=h=void 0,h=new V,V.sub(h,i,o),h.normalize(),M=new V,V.sub(M,s,o),M.dot(h)),pt:T,idx:S})}if(w.length\u003C2)return[{points:v},{points:v}];w.sort(function(t,e){return t.projPt-e.projPt});for(var C=w[0],D=w[w.length-1],A=(D.idx\u003CC.idx&&(A=C,C=D,D=A),[C.pt.x,C.pt.y]),d=[D.pt.x,D.pt.y],k=[A],L=[d],S=C.idx+1;S\u003C=D.idx;S++)TG(k,v[S].slice());for(TG(k,d),TG(k,A),S=D.idx+1;S\u003C=C.idx+b;S++)TG(L,v[S%b].slice());return TG(L,A),TG(L,d),[{points:k},{points:L}]}function DG(t,e,n,i){var o,r;1===n?i.push(e):(o=Math.floor(n/2),r=t(e),DG(t,r[0],o,i),DG(t,r[1],n-o,i))}function AG(t,e){var n,i=[],o=t.shape;switch(t.type){case\\\"rect\\\":for(var r=o,a=i,s=r.width,l=r.height,u=l\u003Cs,h=MG([s,l],u?0:1,e),c=u?\\\"width\\\":\\\"height\\\",p=u?\\\"height\\\":\\\"width\\\",d=u?\\\"x\\\":\\\"y\\\",f=u?\\\"y\\\":\\\"x\\\",g=r[c]/h.length,y=0;y\u003Ch.length;y++)for(var m=r[p]/h[y],v=0;v\u003Ch[y];v++){var x={};x[d]=y*g,x[f]=v*m,x[c]=g,x[p]=m,x.x+=r.x,x.y+=r.y,a.push(x)}n=E;break;case\\\"sector\\\":IG(o,e,i),n=Xu;break;case\\\"circle\\\":IG({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},e,i),n=Xu;break;default:var s=t.getComputedTransform(),l=s?Math.sqrt(Math.max(s[0]*s[0]+s[1]*s[1],s[2]*s[2]+s[3]*s[3])):1,_=Y(function(t,e){var n=SG(t),i=[];e=e||1;for(var o=0;o\u003Cn.length;o++){var r=n[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var u=2;u\u003Cr.length;){var h=r[u++],c=r[u++],p=r[u++],d=r[u++],f=r[u++],g=r[u++];(function x(t,e,n,i,o,r,a,s,l,u){var h,c,p,d,f,g,y,m,v;wG(t,n)&&wG(e,i)&&wG(o,a)&&wG(r,s)||(h=(h=2/u)*h,m=a-t,c=s-e,m/=y=Math.sqrt(m*m+c*c),c/=y,f=(y=o-a)*y+(g=r-s)*g,(v=(p=n-t)*p+(d=i-e)*d)\u003Ch&&f\u003Ch)||(y=-m*y-c*g,v-(g=m*p+c*d)*g\u003Ch&&0\u003C=g&&f-y*y\u003Ch&&0\u003C=y)?l.push(a,s):(v=[],fn(t,n,o,a,.5,m=[]),fn(e,i,r,s,.5,v),x(m[0],v[0],m[1],v[1],m[2],v[2],m[3],v[3],l,u),x(m[4],v[4],m[5],v[5],m[6],v[6],m[7],v[7],l,u))})(s,l,h,c,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),l),function(t){for(var e=t,n=[],i=0;i\u003Ce.length;)n.push([e[i++],e[i++]]);return n}),b=_.length;if(0===b)DG(CG,{points:_[0]},e,i);else if(b===e)for(var w=0;w\u003Cb;w++)i.push({points:_[w]});else for(var S=0,M=Y(_,function(t){var e=[],n=[],n=(Ba(t,e,n),(n[1]-e[1])*(n[0]-e[0]));return S+=n,{poly:t,area:n}}),I=(M.sort(function(t,e){return e.area-t.area}),e),w=0;w\u003Cb;w++){var T=M[w];if(I\u003C=0)break;var C=w===b-1?I:Math.ceil(T.area/S*e);C\u003C0||(DG(CG,{points:T.poly},C,i),I-=C)}n=eh}if(n){var D,A,k=[];for(w=0;w\u003Ci.length;w++){var L=new n;L.setShape(i[w]),D=t,(A=L).setStyle(D.style),A.z=D.z,A.z2=D.z2,A.zlevel=D.zlevel,k.push(L)}return k}for(var P=t,O=e,R=[],N=0;N\u003CO;N++)R.push(Su(P));return R}function kG(t,e){for(var n=t.length,i=t[n-2],o=t[n-1],r=[],a=0;a\u003Ce.length;)r[a++]=i,r[a++]=o;return r}function LG(t){for(var e=0,n=0,i=0,o=t.length,r=0,a=o-2;r\u003Co;a=r,r+=2){var s=t[a],l=t[a+1],u=t[r],h=t[r+1],c=s*h-u*l;e+=c,n+=(s+u)*c,i+=(l+h)*c}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function PG(t){return t.__isCombineMorphing}var OG=\\\"__mOriginal_\\\";function RG(t,e,n){var i=OG+e,o=t[i]||t[e],r=(t[i]||(t[i]=t[e]),n.replace),a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=(r||o).apply(this,e),a&&a.apply(this,e),t}}function NG(t,e){var n=OG+e;t[n]&&(t[e]=t[n],t[n]=null)}function EG(t,e){for(var n=0;n\u003Ct.length;n++)for(var i=t[n],o=0;o\u003Ci.length;){var r=i[o],a=i[o+1];i[o++]=e[0]*r+e[2]*a+e[4],i[o++]=e[1]*r+e[3]*a+e[5]}}function zG(t,S){var e=t.getUpdatedPathProxy(),n=S.getUpdatedPathProxy(),e=function(t,e){for(var n,i,o=[],r=[],a=0;a\u003CMath.max(t.length,e.length);a++){var s=t[a],l=e[a],u=void 0,h=void 0;s?l?(n=u=(i=function(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=[],r=[],a=n\u003Ci?t:e,s=Math.min(n,i),i=Math.abs(i-n)/6,l=Math.ceil(i/((s-2)/6))+1,u=[a[0],a[1]],h=i,c=2;c\u003Cs;){var p=a[c-2],d=a[c-1],f=a[c++],g=a[c++],y=a[c++],m=a[c++],v=a[c++],x=a[c++];if(h\u003C=0)u.push(f,g,y,m,v,x);else{for(var _=Math.min(h,l-1)+1,b=1;b\u003C=_;b++){var w=b/_;fn(p,f,y,v,w,o),fn(d,g,m,x,w,r),u.push(o[1],r[1],o[2],r[2],p=o[3],d=r[3]),f=o[5],g=r[5],y=o[6],m=r[6]}h-=_-1}}return a===t?[u,e]:[t,u]}(s,l))[0],i=h=i[1]):(h=kG(i||s,s),u=s):(u=kG(n||l,l),h=l),o.push(u),r.push(h)}return[o,r]}(SG(e),SG(n)),n=e[0],e=e[1],i=t.getComputedTransform(),o=S.getComputedTransform(),M=(i&&EG(n,i),o&&EG(e,o),RG(S,\\\"updateTransform\\\",{replace:function(){this.transform=null}}),S.transform=null,function(t,e,n){for(var i,o=[],r=0;r\u003Ct.length;r++){for(var a=t[r],s=e[r],l=LG(a),u=LG(s),h=(null==i&&(i=l[2]\u003C0!=u[2]\u003C0),[]),c=[],p=0,d=1/0,f=[],g=a.length,y=6*function(t,e,n,i){for(var o=(t.length-2)/6,r=1/0,a=0,s=t.length,l=s-2,u=0;u\u003Co;u++){for(var h=6*u,c=0,p=0;p\u003Cs;p+=2){var d=0===p?h:(h+p-2)%l+2,f=t[d]-n[0],d=t[1+d]-n[1],f=e[p]-i[0]-f,d=e[p+1]-i[1]-d;c+=f*f+d*d}c\u003Cr&&(r=c,a=u)}return a}(a=i?function(t){for(var e=[],n=t.length,i=0;i\u003Cn;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}(a):a,s,l,u),m=g-2,v=0;v\u003Cm;v+=2){var x=(y+v)%m+2;h[v+2]=a[x]-l[0],h[v+3]=a[1+x]-l[1]}h[0]=a[y]-l[0],h[1]=a[1+y]-l[1];for(var _=n/10,b=-n/2;b\u003C=n/2;b+=_){for(var w=Math.sin(b),S=Math.cos(b),M=0,v=0;v\u003Ca.length;v+=2){var I=h[v],T=h[v+1],C=s[v]-u[0],D=s[v+1]-u[1],A=C*S-D*w,C=C*w+D*S,D=(f[v]=A)-I,A=(f[v+1]=C)-T;M+=D*D+A*A}if(M\u003Cd)for(var d=M,p=b,k=0;k\u003Cf.length;k++)c[k]=f[k]}o.push({from:h,to:c,fromCp:l,toCp:u,rotation:-p})}return o}(n,e,Math.PI)),I=[];RG(S,\\\"buildPath\\\",{replace:function(t){for(var e=S.__morphT,n=1-e,i=[],o=0;o\u003CM.length;o++){var r=M[o],a=r.from,s=r.to,l=r.rotation*e,u=r.fromCp,r=r.toCp,h=Math.sin(l),c=Math.cos(l);te(i,u,r,e);for(var p=0;p\u003Ca.length;p+=2){var d=a[p],f=a[p+1],d=d*n+(m=s[p])*e,f=f*n+(v=s[p+1])*e;I[p]=d*c-f*h+i[0],I[p+1]=d*h+f*c+i[1]}var g=I[0],y=I[1];for(t.moveTo(g,y),p=2;p\u003Ca.length;){var m=I[p++],v=I[p++],x=I[p++],_=I[p++],b=I[p++],w=I[p++];g===m&&y===v&&x===b&&_===w?t.lineTo(b,w):t.bezierCurveTo(m,v,x,_,b,w),g=b,y=w}}}})}function VG(t,e,n){var i,o;t&&e&&(i=n.done,o=n.during,zG(t,e),e.__morphT=0,e.animateTo({__morphT:1},H({during:function(t){e.dirtyShape(),o&&o(t)},done:function(){NG(e,\\\"buildPath\\\"),NG(e,\\\"updateTransform\\\"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)))}function BG(n){var o=1/0,r=1/0,a=-1/0,s=-1/0,t=Y(n,function(t){var e=t.getBoundingRect(),n=t.getComputedTransform(),i=e.x+e.width/2+(n?n[4]:0),e=e.y+e.height/2+(n?n[5]:0);return o=Math.min(i,o),r=Math.min(e,r),a=Math.max(i,a),s=Math.max(e,s),[i,e]});return Y(t,function(t,e){return{cp:t,z:function(t,e,n,i,o,r){t=o===n?0:Math.round(32767*(t-n)/(o-n)),e=r===i?0:Math.round(32767*(e-i)/(r-i));for(var a=0,s=32768;0\u003Cs;s/=2){var l=0,u=0;a+=s*s*(3*(l=0\u003C(t&s)?1:l)^(u=0\u003C(e&s)?1:u)),0===u&&(1===l&&(t=s-1-t,e=s-1-e),u=t,t=e,e=u)}return a}(t[0],t[1],o,r,a,s),path:n[e]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function FG(t){return AG(t.path,t.count)}function GG(t){return U(t[0])}function WG(t,e){for(var n=[],i=t.length,o=0;o\u003Ci;o++)n.push({one:t[o],many:[]});for(o=0;o\u003Ce.length;o++)for(var r=e[o].length,a=void 0,a=0;a\u003Cr;a++)n[a%i].many.push(e[o][a]);for(var s=0,o=i-1;0\u003C=o;o--)if(!n[o].many.length){var l=n[s].many;if(l.length\u003C=1){if(!s)return n;s=0}var r=l.length,u=Math.ceil(r/2);n[o].many=l.slice(u,r),n[s].many=l.slice(0,u),s++}return n}var HG={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i\u003Ct.count;i++){var o=Su(t.path);o.setStyle(\\\"opacity\\\",n),e.push(o)}return e},split:null};function YG(t,e,d,n,i,f){if(t.length&&e.length){var o=Wh(\\\"update\\\",n,i);if(o&&0\u003Co.duration){var r,a,g=n.getModel(\\\"universalTransition\\\").get(\\\"delay\\\"),y=Object.assign({setToFinal:!0},o);GG(t)&&(r=t,a=e),GG(e)&&(r=e,a=t);for(var s=r?r===t:t.length>e.length,l=r?WG(a,r):WG(s?e:t,[s?t:e]),u=0,h=0;h\u003Cl.length;h++)u+=l[h].many.length;for(var c=0,h=0;h\u003Cl.length;h++)m(l[h],s,c,u),c+=l[h].many.length}}function m(t,e,o,r,n){var i=t.many,a=t.one;if(1!==i.length||n)for(var s=H({dividePath:HG[d],individualDelay:g&&function(t,e,n,i){return g(t+o,r)}},y),s=e?function(i,o,t){var r=[],e=(!function i(t){for(var e=0;e\u003Ct.length;e++){var n=t[e];PG(n)?i(n.childrenRef()):n instanceof Q&&r.push(n)}}(i),r.length);if(!e)return{fromIndividuals:[],toIndividuals:[],count:0};if((a=(t.dividePath||FG)({path:o,count:e})).length!==e)return console.error(\\\"Invalid morphing: unmatched splitted path\\\"),{fromIndividuals:[],toIndividuals:[],count:0};for(var r=BG(r),a=BG(a),n=t.done,s=t.during,l=t.individualDelay,u=new go,h=0;h\u003Ce;h++){var c=r[h],p=a[h];p.parent=o,p.copyTransform(u),l||zG(c,p)}function d(t){for(var e=0;e\u003Ca.length;e++)a[e].addSelfToZr(t)}function f(){o.__isCombineMorphing=!1,o.__morphT=-1,o.childrenRef=null,NG(o,\\\"addSelfToZr\\\"),NG(o,\\\"removeSelfFromZr\\\")}o.__isCombineMorphing=!0,o.childrenRef=function(){return a},RG(o,\\\"addSelfToZr\\\",{after:function(t){d(t)}}),RG(o,\\\"removeSelfFromZr\\\",{after:function(t){for(var e=0;e\u003Ca.length;e++)a[e].removeSelfFromZr(t)}});var g=a.length;if(l)for(var y=g,m=function(){0==--y&&(f(),n)&&n()},h=0;h\u003Cg;h++){var v=l?H({delay:(t.delay||0)+l(h,g,r[h],a[h]),done:m},t):t;VG(r[h],a[h],v)}else o.__morphT=0,o.animateTo({__morphT:1},H({during:function(t){for(var e=0;e\u003Cg;e++){var n=a[e];n.__morphT=o.__morphT,n.dirtyShape()}s&&s(t)},done:function(){f();for(var t=0;t\u003Ci.length;t++)NG(i[t],\\\"updateTransform\\\");n&&n()}},t));return o.__zr&&d(o.__zr),{fromIndividuals:r,toIndividuals:a,count:g}}(i,a,s):function(i,t,e){var n=t.length,o=[],r=e.dividePath||FG;if(PG(i)){!function i(t){for(var e=0;e\u003Ct.length;e++){var n=t[e];PG(n)?i(n.childrenRef()):n instanceof Q&&o.push(n)}}(i.childrenRef());var a=o.length;if(a\u003Cn)for(var s=0,l=a;l\u003Cn;l++)o.push(Su(o[s++%a]));o.length=n}else{for(var o=r({path:i,count:n}),u=i.getComputedTransform(),l=0;l\u003Co.length;l++)o[l].setLocalTransform(u);if(o.length!==n)return console.error(\\\"Invalid morphing: unmatched splitted path\\\"),{fromIndividuals:[],toIndividuals:[],count:0}}o=BG(o),t=BG(t);var h=e.individualDelay;for(l=0;l\u003Cn;l++){var c=h?H({delay:(e.delay||0)+h(l,n,o[l],t[l])},e):e;VG(o[l],t[l],c)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}(a,i,s),l=s.fromIndividuals,u=s.toIndividuals,h=l.length,c=0;c\u003Ch;c++)p=g?H({delay:g(c,h)},y):y,f(l[c],u[c],e?i[c]:t.one,e?t.one:i[c],p);else{var p,s=e?i[0]:a,a=e?a:i[0];PG(s)?m({many:[s],one:a},!0,o,r,!0):(VG(s,a,p=g?H({delay:g(o,r)},y):y),f(s,a,s,a,p))}}}function UG(t){if(!t)return[];if(U(t)){for(var e=[],n=0;n\u003Ct.length;n++)e.push(UG(t[n]));return e}var i=[];return t.traverse(function(t){t instanceof Q&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)}),i}var XG=i();function ZG(t){var r=[];return lt(t,function(t){var e=t.data;if(!(1e4\u003Ce.count()))for(var n=e.getIndices(),i=function(t){for(var e=t.dimensions,n=0;n\u003Ce.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}(e),o=0;o\u003Cn.length;o++)r.push({data:e,dim:t.dim||i,divide:t.divide,dataIndex:o})}),r}function jG(t,e,n){t.traverse(function(t){t instanceof Q&&Yh(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function qG(t){var e;t.parent&&(e=t.getComputedTransform(),t.setLocalTransform(e),t.parent.remove(t))}function KG(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function $G(t,e,o){var s=ZG(t),l=ZG(e);function u(t,e,n,i,o){(n||t)&&e.animateFrom({style:n&&n!==t?Z(Z({},n.style),t.style):t.style},o)}function n(t){for(var e=0;e\u003Ct.length;e++)if(t[e].dim)return t[e].dim}var h=n(s),c=n(l),p=!1;function i(a,s){return function(t){var e,n,i,o=t.data,r=t.dataIndex;return s?o.getId(r):(e=o.hostModel&&o.hostModel.get(\\\"dataGroupId\\\"),i=(n=(n=a?h||c:c||h)&&o.getDimensionInfo(n))&&n.ordinalMeta,n?(n=o.get(n.name,r),i&&i.categories[n]||n+\\\"\\\"):(i=o.getRawDataItem(r))&&i.groupId?i.groupId+\\\"\\\":e||o.getId(r))}}var r=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i\u003Cn;i++){var o=t[i],r=e[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}(s,l),d={};if(!r)for(var a=0;a\u003Cl.length;a++){var f=l[a],f=f.data.getItemGraphicEl(f.dataIndex);f&&(d[f.id]=!0)}function g(t,e){var n,i=s[e],o=l[t],r=o.data.hostModel,i=i.data.getItemGraphicEl(i.dataIndex),a=o.data.getItemGraphicEl(o.dataIndex);i!==a?i&&d[i.id]||a&&(KG(a),i?(KG(i),qG(i),p=!0,YG(UG(i),UG(a),o.divide,r,t,u)):jG(a,r,t)):a&&(e=a,t=o.dataIndex,n=Wh(\\\"update\\\",r,t))&&e.traverse(function(t){var e;t instanceof Ca&&(e=Nh(t).oldStyle)&&t.animateFrom({style:e},n)})}new fv(s,l,i(!0,r),i(!1,r),null,\\\"multiple\\\").update(g).updateManyToOne(function(t,e){var n=l[t],i=n.data,o=i.hostModel,r=i.getItemGraphicEl(n.dataIndex),i=pt(Y(e,function(t){return s[t].data.getItemGraphicEl(s[t].dataIndex)}),function(t){return t&&t!==r&&!d[t.id]});r&&(KG(r),i.length?(lt(i,function(t){KG(t),qG(t)}),p=!0,YG(UG(i),UG(r),n.divide,o,t,u)):jG(r,o,n.dataIndex))}).updateOneToMany(function(e,t){var n,i,o=s[t],r=o.data.getItemGraphicEl(o.dataIndex);r&&d[r.id]||(n=pt(Y(e,function(t){return l[t].data.getItemGraphicEl(l[t].dataIndex)}),function(t){return t&&t!==r}),i=l[e[0]].data.hostModel,n.length&&(lt(n,KG),r?(KG(r),qG(r),p=!0,YG(UG(r),UG(n),o.divide,i,e[0],u)):lt(n,function(t){return jG(t,i,e[0])})))}).updateManyToMany(function(n,i){new fv(i,n,function(t){return s[t].data.getId(s[t].dataIndex)},function(t){return l[t].data.getId(l[t].dataIndex)}).update(function(t,e){g(n[t],i[e])}).execute()}).execute(),p&<(e,function(t){var e=t.data.hostModel,n=e&&o.getViewOfSeriesModel(e),i=Wh(\\\"update\\\",e,0);n&&e.isAnimationEnabled()&&i&&0\u003Ci.duration&&n.group.traverse(function(t){t instanceof Q&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)})})}function JG(t){return t.getModel(\\\"universalTransition\\\").get(\\\"seriesKey\\\")||t.id}function QG(t){return U(t)?t.sort().join(\\\",\\\"):t}function tW(t){if(t.hostModel)return t.hostModel.getModel(\\\"universalTransition\\\").get(\\\"divideShape\\\")}function eW(t,e){for(var n=0;n\u003Ct.length;n++)if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}o([function(t){t.registerPainter(\\\"canvas\\\",bb)}]),o([function(t){t.registerPainter(\\\"svg\\\",db)}]),o([function(t){t.registerChartView(pw),t.registerSeriesModel(Mb),t.registerLayout(fw(\\\"line\\\",!0)),t.registerVisual({seriesType:\\\"line\\\",reset:function(t){var e=t.getData(),n=t.getModel(\\\"lineStyle\\\").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual(\\\"style\\\").fill),e.setVisual(\\\"legendLineStyle\\\",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,mw(\\\"line\\\"))},function(t){t.registerChartView(Pw),t.registerSeriesModel(ww),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,D(M1,\\\"bar\\\")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,I1(\\\"bar\\\")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,mw(\\\"bar\\\")),t.registerAction({type:\\\"changeAxisOrder\\\",event:\\\"changeAxisOrder\\\",update:\\\"update\\\"},function(e,t){var n=e.componentType||\\\"series\\\";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})},function(t){t.registerChartView(pS),t.registerSeriesModel(vS),lm(\\\"pie\\\",t.registerAction),t.registerLayout(D(eS,\\\"pie\\\")),t.registerProcessor(nS(\\\"pie\\\")),t.registerProcessor({seriesType:\\\"pie\\\",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension(\\\"value\\\"),e=n.get(e,t);return!(j(e)&&!isNaN(e)&&e\u003C0)})}})},function(t){o(HM),t.registerSeriesModel(TS),t.registerChartView(kS),t.registerLayout(fw(\\\"scatter\\\"))},function(t){o(dI),t.registerChartView(KM),t.registerSeriesModel($M),t.registerLayout(YM),t.registerProcessor(nS(\\\"radar\\\")),t.registerPreprocessor(ZM)},function(t){o(nT),t.registerChartView(C2),t.registerSeriesModel(D2),t.registerLayout(P2),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,L2),lm(\\\"map\\\",t.registerAction)},function(t){t.registerChartView(fT),t.registerSeriesModel(GT),t.registerLayout(YT),t.registerVisual(UT),(t=t).registerAction({type:\\\"treeExpandAndCollapse\\\",event:\\\"treeExpandAndCollapse\\\",update:\\\"update\\\"},function(n,t){t.eachComponent({mainType:\\\"series\\\",subType:\\\"tree\\\",query:n},function(t){var e=n.dataIndex,e=t.getData().tree.getNodeByDataIndex(e);e.isExpand=!e.isExpand})}),t.registerAction({type:\\\"treeRoam\\\",event:\\\"treeRoam\\\",update:\\\"none\\\"},function(n,t){t.eachComponent({mainType:\\\"series\\\",subType:\\\"tree\\\",query:n},function(t){var e=$2(t.coordinateSystem,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})},function(t){t.registerSeriesModel(qT),t.registerChartView(lC),t.registerVisual(CC),t.registerLayout(BC);for(var e=t,n=0;n\u003CXT.length;n++)e.registerAction({type:XT[n],update:\\\"updateView\\\"},Et);e.registerAction({type:\\\"treemapRootToNode\\\",update:\\\"updateView\\\"},function(o,t){t.eachComponent({mainType:\\\"series\\\",subType:\\\"treemap\\\",query:o},function(t,e){var n,i=ET(o,[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],t);i&&((n=t.getViewRoot())&&(o.direction=VT(n,i.node)?\\\"rollUp\\\":\\\"drillDown\\\"),t.resetViewRoot(i.node))})})},function(t){t.registerChartView(WD),t.registerSeriesModel(tA),t.registerProcessor(HC),t.registerVisual(YC),t.registerVisual(XC),t.registerLayout(eD),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,lD),t.registerLayout(hD),t.registerCoordinateSystem(\\\"graphView\\\",{dimensions:N2.dimensions,create:cD}),t.registerAction({type:\\\"focusNodeAdjacency\\\",event:\\\"focusNodeAdjacency\\\",update:\\\"series:focusNodeAdjacency\\\"},Et),t.registerAction({type:\\\"unfocusNodeAdjacency\\\",event:\\\"unfocusNodeAdjacency\\\",update:\\\"series:unfocusNodeAdjacency\\\"},Et),t.registerAction(eA,function(n,t){t.eachComponent({mainType:\\\"series\\\",query:n},function(t){var e=$2(t.coordinateSystem,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})},function(t){t.registerChartView(hA),t.registerSeriesModel(cA)},function(t){t.registerChartView(xA),t.registerSeriesModel(_A),t.registerLayout(MA),t.registerProcessor(nS(\\\"funnel\\\"))},function(t){o(hL),t.registerChartView(TA),t.registerSeriesModel(OA),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,zA)},function(t){t.registerChartView(gL),t.registerSeriesModel(xL),t.registerLayout(bL),t.registerVisual(LL),t.registerAction({type:\\\"dragNode\\\",event:\\\"dragnode\\\",update:\\\"update\\\"},function(e,t){t.eachComponent({mainType:\\\"series\\\",subType:\\\"sankey\\\",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},function(t){t.registerSeriesModel(OL),t.registerChartView(VL),t.registerVisual(UL),t.registerLayout(ZL),t.registerTransform(KL)},function(t){t.registerChartView(JL),t.registerSeriesModel(dP),t.registerPreprocessor(gP),t.registerVisual(_P),t.registerLayout(bP)},function(t){t.registerChartView(DP),t.registerSeriesModel(AP),t.registerLayout(fw(\\\"effectScatter\\\"))},function(t){t.registerChartView(UP),t.registerSeriesModel(nO),t.registerLayout(YP),t.registerVisual(rO)},function(t){t.registerChartView(cO),t.registerSeriesModel(pO)},function(t){t.registerChartView(xO),t.registerSeriesModel(BO),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,D(M1,\\\"pictorialBar\\\")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,I1(\\\"pictorialBar\\\"))},function(t){t.registerChartView(WO),t.registerSeriesModel(UO),t.registerLayout(ZO),t.registerProcessor(nS(\\\"themeRiver\\\"))},function(t){t.registerChartView(nR),t.registerSeriesModel(iR),t.registerLayout(D(sR,\\\"sunburst\\\")),t.registerProcessor(D(nS,\\\"sunburst\\\")),t.registerVisual(lR),(t=t).registerAction({type:$O,update:\\\"updateView\\\"},function(o,t){t.eachComponent({mainType:\\\"series\\\",subType:\\\"sunburst\\\",query:o},function(t,e){var n,i=ET(o,[$O],t);i&&((n=t.getViewRoot())&&(o.direction=VT(n,i.node)?\\\"rollUp\\\":\\\"drillDown\\\"),t.resetViewRoot(i.node))})}),t.registerAction({type:JO,update:\\\"none\\\"},function(n,t,e){n=Z({},n),t.eachComponent({mainType:\\\"series\\\",subType:\\\"sunburst\\\",query:n},function(t){var e=ET(n,[JO],t);e&&(n.dataIndex=e.node.dataIndex)}),e.dispatchAction(Z(n,{type:\\\"highlight\\\"}))}),t.registerAction({type:\\\"sunburstUnhighlight\\\",update:\\\"updateView\\\"},function(t,e,n){t=Z({},t),n.dispatchAction(Z(t,{type:\\\"downplay\\\"}))})},function(t){t.registerChartView(QR),t.registerSeriesModel(dR)}]),o(function(t){o(HM),o(i5)}),o(function(t){o(i5),SM.registerAxisPointerClass(\\\"PolarAxisPointer\\\",r5),t.registerCoordinateSystem(\\\"polar\\\",P5),t.registerComponentModel(h5),t.registerComponentView(Q5),GS(t,\\\"angle\\\",y5,$5),GS(t,\\\"radius\\\",m5,J5),t.registerComponentView(B5),t.registerComponentView(H5),t.registerLayout(D(q5,\\\"bar\\\"))}),o(nT),o(function(t){o(i5),SM.registerAxisPointerClass(\\\"SingleAxisPointer\\\",wE),t.registerComponentView(DE),t.registerComponentView(aE),t.registerComponentModel(lE),GS(t,\\\"single\\\",lE,lE.defaultOption),t.registerCoordinateSystem(\\\"single\\\",xE)}),o(hL),o(function(t){t.registerComponentModel(LE),t.registerComponentView(NE),t.registerCoordinateSystem(\\\"calendar\\\",EE)}),o(function(t){t.registerComponentModel(XE),t.registerComponentView(qE),t.registerPreprocessor(function(t){var e=t.graphic;U(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),o(function(t){t.registerComponentModel(Oz),t.registerComponentView(zz),kz(\\\"saveAsImage\\\",Gz),kz(\\\"magicType\\\",Yz),kz(\\\"dataView\\\",Qz),kz(\\\"dataZoom\\\",S3),kz(\\\"restore\\\",r3),o(Cz)}),o(function(t){o(i5),t.registerComponentModel(D3),t.registerComponentView(j3),t.registerAction({type:\\\"showTip\\\",event:\\\"showTip\\\",update:\\\"tooltip:manuallyShowTip\\\"},Et),t.registerAction({type:\\\"hideTip\\\",event:\\\"hideTip\\\",update:\\\"tooltip:manuallyHideTip\\\"},Et)}),o(i5),o(function(t){t.registerComponentView(vV),t.registerComponentModel(xV),t.registerPreprocessor(tV),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,cV),t.registerAction({type:\\\"brush\\\",event:\\\"brush\\\",update:\\\"updateVisual\\\"},function(e,t){t.eachComponent({mainType:\\\"brush\\\",query:e},function(t){t.setAreas(e.areas)})}),t.registerAction({type:\\\"brushSelect\\\",event:\\\"brushSelected\\\",update:\\\"none\\\"},Et),t.registerAction({type:\\\"brushEnd\\\",event:\\\"brushEnd\\\",update:\\\"none\\\"},Et),kz(\\\"brush\\\",IV)}),o(function(t){t.registerComponentModel(AV),t.registerComponentView(kV)}),o(function(t){var e;t.registerComponentModel(EV),t.registerComponentView(UV),t.registerSubTypeDefaulter(\\\"timeline\\\",function(){return\\\"slider\\\"}),(e=t).registerAction({type:\\\"timelineChange\\\",event:\\\"timelineChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,e,n){var i=e.getComponent(\\\"timeline\\\");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get(\\\"loop\\\",!0))&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:\\\"timelinePlayChange\\\",playState:!1,from:t.from})),e.resetOption(\\\"timeline\\\",{replaceMerge:i.get(\\\"replaceMerge\\\",!0)}),H({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:\\\"timelinePlayChange\\\",event:\\\"timelinePlayChanged\\\",update:\\\"update\\\"},function(t,e){var n=e.getComponent(\\\"timeline\\\");n&&null!=t.playState&&n.setPlayState(t.playState)}),t.registerPreprocessor($V)}),o(function(t){t.registerComponentModel(sB),t.registerComponentView(bB),t.registerPreprocessor(function(t){tB(t.series,\\\"markPoint\\\")&&(t.markPoint=t.markPoint||{})})}),o(function(t){t.registerComponentModel(MB),t.registerComponentView(OB),t.registerPreprocessor(function(t){tB(t.series,\\\"markLine\\\")&&(t.markLine=t.markLine||{})})}),o(function(t){t.registerComponentModel(EB),t.registerComponentView(XB),t.registerPreprocessor(function(t){tB(t.series,\\\"markArea\\\")&&(t.markArea=t.markArea||{})})}),o(function(t){o(u4),o(_4)}),o(function(t){o(N4),o(j4)}),o(N4),o(j4),o(function(t){o(RF),o(HF)}),o(RF),o(HF),o(function(t){t.registerPreprocessor(jF),t.registerVisual(t.PRIORITY.VISUAL.ARIA,ZF)}),o(function(t){t.registerTransform(gG),t.registerTransform(yG)}),o(function(t){t.registerComponentModel(mG),t.registerComponentView(vG)}),o(function(t){t.registerUpdateLifecycle(\\\"series:beforeupdate\\\",function(t,e,i){lt(Dr(i.seriesTransition),function(t){lt(Dr(t.to),function(t){for(var e=i.updatedSeries,n=0;n\u003Ce.length;n++)(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)&&(e[n].__universalTransitionEnabled=!0)})})}),t.registerUpdateLifecycle(\\\"series:transition\\\",function(t,a,s){var e,n,r,i,l,u,h,c=XG(a);c.oldSeries&&s.updatedSeries&&s.optionChanged&&((e=s.seriesTransition)?lt(Dr(e),function(t){var n,i,e,o,r;n=c,i=s,e=a,o=[],r=[],lt(Dr((t=t).from),function(t){var e=eW(n.oldSeries,t);0\u003C=e&&o.push({data:n.oldData[e],divide:tW(n.oldData[e]),dim:t.dimension})}),lt(Dr(t.to),function(t){var e=eW(i.updatedSeries,t);0\u003C=e&&(e=i.updatedSeries[e].getData(),r.push({data:e,divide:tW(e),dim:t.dimension}))}),0\u003Co.length&&0\u003Cr.length&&$G(o,r,e)}):(r=c,i=s,l=N(),u=N(),h=N(),lt(r.oldSeries,function(t,e){var n=r.oldData[e],i=JG(t),o=QG(i);u.set(o,n),U(i)&<(i,function(t){h.set(t,{data:n,key:o})})}),lt(i.updatedSeries,function(t){var e,n,i,o,r;t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()&&(e=t.getData(),r=QG(n=JG(t)),(o=u.get(r))?l.set(r,{oldSeries:[{divide:tW(o),data:o}],newSeries:[{divide:tW(e),data:e}]}):U(n)?(i=[],lt(n,function(t){var e=u.get(t);e&&i.push({divide:tW(e),data:e})}),i.length&&l.set(r,{oldSeries:i,newSeries:[{data:e,divide:tW(e)}]})):(o=h.get(n))&&((r=l.get(o.key))||(r={oldSeries:[{data:o.data,divide:tW(o.data)}],newSeries:[]},l.set(o.key,r)),r.newSeries.push({data:e,divide:tW(e)})))}),lt((n=l).keys(),function(t){var e=n.get(t);$G(e.oldSeries,e.newSeries,a)})),lt(s.updatedSeries,function(t){t.__universalTransitionEnabled&&(t.__universalTransitionEnabled=!1)}));for(var o=t.getSeries(),p=c.oldSeries=[],d=c.oldData=[],f=0;f\u003Co.length;f++){var g=o[f].getData();g.count()\u003C1e4&&(p.push(o[f]),d.push(g))}})}),o(function(t){t.registerUpdateLifecycle(\\\"series:beforeupdate\\\",function(t,e,n){(p_(e).labelManager||(p_(e).labelManager=new c_)).clearLabels()}),t.registerUpdateLifecycle(\\\"series:layoutlabels\\\",function(t,e,n){var i=p_(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}),t.Axis=Xc,t.ChartView=xy,t.ComponentModel=m,t.ComponentView=fy,t.List=Fv,t.Model=qc,t.PRIORITY=gm,t.SeriesModel=ry,t.color=$n,t.connect=function(e){var t;return U(e)&&(t=e,e=null,lt(t,function(t){null!=t.group&&(e=t.group)}),e=e||\\\"g_\\\"+X0++,lt(t,function(t){t.group=e})),Y0[e]=!0,e},t.dataTool={},t.dependencies={zrender:\\\"5.3.1\\\"},t.disConnect=j0,t.disconnect=fm,t.dispose=function(t){X(t)?t=H0[t]:t instanceof C0||(t=q0(t)),t instanceof C0&&!t.isDisposed()&&t.dispose()},t.env=S,t.extendChartView=function(t){var e=xy.extend(t);return xy.registerClass(e),e},t.extendComponentModel=function(t){var e=m.extend(t);return m.registerClass(e),e},t.extendComponentView=function(t){var e=fy.extend(t);return fy.registerClass(e),e},t.extendSeriesModel=function(t){var e=ry.extend(t);return ry.registerClass(e),e},t.format=Qr,t.getCoordinateSystemDimensions=function(t){var e=qd.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()},t.getInstanceByDom=q0,t.getInstanceById=function(t){return H0[t]},t.getMap=function(t){var e=Jm.getMap;return e&&e(t)},t.graphic=Hc,t.helper=mm,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var o=q0(t);if(o)return o}o=new C0(t,e,n);return o.id=\\\"ec_\\\"+U0++,H0[o.id]=o,i&&Ur(t,Z0,o.id),_0(o),$m.trigger(\\\"afterinit\\\",o),o},t.innerDrawElementOnCanvas=Ym,t.matrix=qi,t.number=jc,t.parseGeoJSON=Sx,t.parseGeoJson=Sx,t.registerAction=nv,t.registerCoordinateSystem=iv,t.registerLayout=ov,t.registerLoading=lv,t.registerLocale=ap,t.registerMap=uv,t.registerPostInit=Q0,t.registerPostUpdate=tv,t.registerPreprocessor=$0,t.registerProcessor=J0,t.registerTheme=K0,t.registerTransform=dm,t.registerUpdateLifecycle=ev,t.registerVisual=rv,t.setCanvasCreator=function(t){f({createCanvas:t})},t.setPlatformAPI=f,t.throttle=Ay,t.time=Wc,t.use=o,t.util=Uc,t.vector=oe,t.version=\\\"5.3.2\\\",t.zrUtil=Vt,t.zrender=nr,Object.defineProperty(t,\\\"__esModule\\\",{value:!0})});\",\"type\":\"application/javascript\",\"module-type\":\"library\",\"Modern.TiddlyDev#Minify\":\"false\"},\"$:/plugins/Gk0Wk/echarts/macro\":{\"title\":\"$:/plugins/Gk0Wk/echarts/macro\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/Macro\",\"text\":\"\\\\define echarts(textortiddler,height:\\\"300px\\\",width:\\\"100%\\\",class:\\\"gk0wk-echarts-body\\\",theme:\\\"auto\\\",renderer:\\\"canvas\\\",fillSidebar:\\\"true\\\")\\n\u003C$set name=\\\"textortiddler\\\" value=\\\"\\\"\\\"$textortiddler$\\\"\\\"\\\">\\n\u003C$list filter=\\\"[\u003Ctextortiddler>is[tiddler]] [\u003Ctextortiddler>is[shadow]]\\\">\\n\u003C$echarts $tiddler=\u003C\u003Ctextortiddler>> $height=\\\"$height$\\\" $width=\\\"$width$\\\" $class=\\\"$class$\\\" $theme=\\\"$theme$\\\" $renderer=\\\"$renderer$\\\" $fillSidebar=\\\"$fillSidebar$\\\"/>\\n\u003C/$list>\\n\u003C$list filter=\\\"[\u003Ctextortiddler>!is[tiddler]!is[shadow]]\\\">\\n\u003C$echarts $text=\u003C\u003Ctextortiddler>> $height=\\\"$height$\\\" $width=\\\"$width$\\\" $class=\\\"$class$\\\" $theme=\\\"$theme$\\\" $renderer=\\\"$renderer$\\\" $fillSidebar=\\\"$fillSidebar$\\\"/>\\n\u003C/$list>\\n\u003C/$set>\\n\\\\end\\n\"},\"$:/plugins/Gk0Wk/echarts/readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/readme\",\"text\":\"\u003C$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\u003C$list filter=\\\"[\u003Clang>search[zh]]\\\">\\n\\n将强大的可视化工具 [[ECharts|https://echarts.apache.org/zh/index.html]] 以优雅的方式与 TiddlyWiki 相结合。\\n\\n插件说明与使用教程较长,请参考 https://tiddly-gittly.github.io/tw-echarts/\\n\\n\u003C/$list>\\n\\n\u003C$list filter=\\\"[\u003Clang>!search[zh]]\\\">\\n\\nCombines the powerful visualization tool [[ECharts|https://echarts.apache.org/en/index.html]] with TiddlyWiki in an elegant way.\\n\\nThe plugin description and tutorial is long, please refer to https://tiddly-gittly.github.io/tw-echarts/\\n\\n\u003C/$list>\\n\u003C/$list>\\n\\n[img[$:/plugins/Gk0Wk/echarts/banner]]\\n\"},\"$:/plugins/Gk0Wk/echarts/Snippets/TheBrain\":{\"title\":\"$:/plugins/Gk0Wk/echarts/Snippets/TheBrain\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/TextEditor/Snippet\",\"caption\":\"Add a new Graph Chart, \\\"levels\\\" (default to 1) controls how many levels will it reach from \\\"focussedTiddler\\\" (default to $:/temp/focussedTiddler); \\\"graphTitle\\\" decided the title of the chart\",\"text\":\"\u003C$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" aliasField=\\\"caption\\\" levels=2 focussedTiddler=\\\"Index\\\" graphTitle=\\\"Graph\\\" />\"},\"$:/plugins/Gk0Wk/echarts/widget.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/widget.js\",\"text\":\"!function(){\\\"use strict\\\";var t=require(\\\"$:/core/modules/widgets/widget.js\\\").widget;const s=require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\"),r=Function;if($tw.browser){window.echarts=s;try{$tw.modules.forEachModuleOfType(\\\"echarts-extension\\\",function(t,e){\\\"$:/plugins/Gk0Wk/echarts-stat/ecStat.min.js\\\"===t&&(s.registerTransform(e.transform.histogram),s.registerTransform(e.transform.clustering),s.registerTransform(e.transform.regression),window.EChartsStat=e.statistics)})}catch(d){console.error(d)}}const o=function(i,r,n){new Promise(function(t){try{var e;n.off(\\\"restore\\\"),i&&$tw.wiki.getTiddler(i)&&\\\"application/javascript\\\"===$tw.wiki.getTiddler(i).fields.type&&\\\"function\\\"==typeof(e=require(i).onUnmount)&&e(r)}catch(d){console.error(d)}t()})};var e=function(t,e){this.initialise(t,e)};(e.prototype=new t).render=function(t,e){this.parentDomNode=t,this.computeAttributes(),this.execute();var i=this.getVariable(\\\"currentTiddler\\\");if(this.uuid=\\\"echarts-\\\"+(i?$tw.utils.hashString(this.getVariable(\\\"currentTiddler\\\"))+\\\"-\\\":\\\"\\\")+Date.now(),this.containerDom=document.createElement(\\\"div\\\"),this.containerDom.id=this.uuid,this.containerDom.className=this[\\\"class\\\"],this.containerDom.style.width=this.width,this.containerDom.style.height=this.height,t.insertBefore(this.containerDom,e),this.domNodes.push(this.containerDom),$tw.browser){this.rebuildInstance(),this.initState(),this.generateOption();var r=this,n=setInterval(function(){document.contains(r.containerDom)||(o(r.tiddlerTitle,r.state,r.echartsInstance),clearInterval(n),r.clearInstance())},1e3)}else if(this.tiddlerTitle!==undefined&&\\\"\\\"!==this.tiddlerTitle&&$tw.wiki.getTiddler(this.tiddlerTitle)||this.text!==undefined)try{var s,a=this.document.createElement(\\\"script\\\");let t=\\\"var chartDom = document.querySelector('#\\\"+this.uuid+\\\"');\\\\nif (chartDom && typeof window !== 'undefiend' && window.echarts) {\\\\n var myChart = window.echarts.init(chartDom, \\\"+this.theme==\\\"dark\\\"?\\\"'dark'\\\":\\\"undefined, { renderer: '\\\"+this.renderer+\\\"' });\\\\n myChart.setOption(\\\"+JSON.stringfy({darkMode:\\\"dark\\\"===this.theme,backgroundColor:\\\"transparent\\\"})+\\\");\\\\n myChart.showLoading();\\\\n new Promise(function (resolve) {\\\\n try {\\\\n\\\";this.text===undefined?(s=$tw.wiki.getTiddler(r.tiddlerTitle).fields).type&&\\\"\\\"!==s.type&&\\\"text/vnd.tiddlywiki\\\"!==s.type?\\\"application/json\\\"===s.type?t+=\\\" myChart.setOption(\\\"+JSON.stringfy(JSON.parse($tw.wiki.getTiddlerText(this.tiddlerTitle)))+\\\");\\\\n\\\":\\\"application/javascript\\\"===s.type&&(t+=\\\" var exports = {};\\\\n\\\"+$tw.wiki.getTiddlerText(this.tiddlerTitle)+\\\"\\\\n var state = exports.onMount ? exports.onMount(myChart, \\\"+JSON.stringfy(this.addonAttributes)+\\\", undefined) : {};\\\\n var attrs = \\\"+JSON.stringfy(this.addonAttributes)+\\\";\\\\n if (exports.onUpdate) exports.onUpdate(myChart, state, attrs);\\\\n if (exports.onUpdate) myChart.on('restore', function () { exports.onUpdate(myChart, state, attrs); });\\\\n\\\"):t+=\\\" myChart.setOption(\\\"+JSON.stringfy(JSON.parse($tw.wiki.renderTiddler(\\\"text/plain\\\",this.tiddlerTitle,{variables:Object.assign({},this.addonAttributes)})))+\\\");\\\\n\\\":t+=\\\" var option;\\\\n\\\"+this.text+\\\";\\\\n if (option instanceof Object) myChart.setOption(option);\\\\n\\\",t+=\\\" catch (e) { console.error(e); }\\\\n finally { resolve(); }\\\\n }).then(function () { myChart.hideLoading(); });\\\\n var timer; if (!window.ResizeObserver) return; var resizeObserver = new ResizeObserver(function (entries) {\\\\n if (timer) clearTimeout(timer); timer = setTimeout(function () { var sidebar = document.querySelector('.tc-sidebar-scrollable');\\\\n var height = entries[0].contentRect.height;\\\\n if (\\\"+this.fillSidebar.toString()+\\\" && sidebar && sidebar.contains && sidebar.contains(chartDom)) {\\\\n height = window.innerHeight - chartDom.parentNode.getBoundingClientRect().top - parseInt(getComputedStyle(sidebar).paddingBottom.replace('px', ''));\\\\n }\\\\n myChart.resize({\\\\n width: entries[0].contentRect.width,\\\\n height: height\\\\n });\\\\n }, 25); });\\\\n resizeObserver.observe(chartDom);\\\\n}\\\",a.innerText=t,this.insertBefore(a,e)}catch(d){this.containerDom.innerText=d.toString()}},e.prototype.execute=function(){this.tiddlerTitle=this.getAttribute(\\\"$tiddler\\\",\\\"\\\"),\\\"\\\"===this.tiddlerTitle&&(this.tiddlerTitle=undefined),this.width=this.getAttribute(\\\"$width\\\",\\\"100%\\\"),this.height=this.getAttribute(\\\"$height\\\",\\\"300px\\\"),this[\\\"class\\\"]=this.getAttribute(\\\"$class\\\",\\\"gk0wk-echarts-body\\\"),this.fillSidebar=\\\"true\\\"===this.getAttribute(\\\"$fillSidebar\\\",\\\"true\\\"),this.theme=this.getAttribute(\\\"$theme\\\",\\\"auto\\\"),\\\"light\\\"===this.theme?this.theme=undefined:\\\"dark\\\"!==this.theme&&(0\u003C$tw.wiki.filterTiddlers(\\\"[{$:/palette}field:color-scheme[dark]]\\\").length?this.theme=\\\"dark\\\":this.theme=undefined),this.renderer=\\\"svg\\\"===this.getAttribute(\\\"$renderer\\\",\\\"canvas\\\")?\\\"svg\\\":\\\"canvas\\\",this.addonAttributes=Object.assign({},this.attributes),this.text=this.getAttribute(\\\"$text\\\",\\\"\\\"),0===this.text.trim().length&&(this.text=undefined)},e.prototype.askForAddonUpdate=function(e){try{if(!this.tiddlerTitle||!$tw.wiki.getTiddler(this.tiddlerTitle))return!1;var i=$tw.wiki.getTiddler(this.tiddlerTitle).fields;if(i.type&&\\\"\\\"!==i.type&&\\\"text/vnd.tiddlywiki\\\"!==i.type&&\\\"application/json\\\"!==i.type){if(\\\"application/javascript\\\"!==i.type)return!1;{var r=require(this.tiddlerTitle);let t=r.shouldUpdate;return(t=t===undefined?r.shouldRefresh:t)===undefined?!0:\\\"string\\\"==typeof t?(this._state=JSON.stringify($tw.wiki.filterTiddlers(i[\\\"echarts-refresh-trigger\\\"])),this._state!==this.state):\\\"function\\\"!=typeof t||t(this.state,e)}}return this._state=JSON.stringify($tw.wiki.filterTiddlers(i[\\\"echarts-refresh-trigger\\\"])),this._state!==this.state}catch(d){return console.error(d),!1}},e.prototype.initState=function(){try{if(this.text===undefined){if(!this.tiddlerTitle||!$tw.wiki.getTiddler(this.tiddlerTitle))return;var t=$tw.wiki.getTiddler(this.tiddlerTitle).fields;if(t.type&&\\\"\\\"!==t.type&&\\\"text/vnd.tiddlywiki\\\"!==t.type&&\\\"application/json\\\"!==t.type){if(\\\"application/javascript\\\"!==t.type)return;{var e=require(this.tiddlerTitle);let t=e.onMount;\\\"function\\\"==typeof(t=t===undefined?e.onInit:t)&&(this.state=t(this.echartsInstance,this.addonAttributes,this))}}else this._state?(this.state=this._state,this._state=undefined):this.state=JSON.stringify($tw.wiki.filterTiddlers(t[\\\"echarts-refresh-trigger\\\"]))}const i=this;this.echartsInstance.on(\\\"restore\\\",function(){i.generateOption()})}catch(d){console.error(d)}},e.prototype.clearInstance=function(){let t;return this.echartsInstance&&(t=this.echartsInstance.getOption(),this.echartsInstance.isDisposed()||this.echartsInstance.dispose(),this.echartsInstance=undefined),this.containerDom.innerHTML=\\\"\\\",this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=undefined),t},e.prototype.rebuildInstance=function(){var t=this.clearInstance();const r=this.echartsInstance=s.init(this.containerDom,this.theme,{renderer:this.renderer}),n=(r.setOption({darkMode:\\\"dark\\\"===this.theme,backgroundColor:\\\"transparent\\\"}),this);let e;return window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(i){e&&clearTimeout(e),e=setTimeout(function(){var t=document.querySelector(\\\".tc-sidebar-scrollable\\\");let e=i[0].contentRect.height;n.fillSidebar&&t&&!n.parentDomNode.isTiddlyWikiFakeDom&&t.contains(n.containerDom)&&(e=window.innerHeight-n.parentDomNode.getBoundingClientRect().top-Number.parseInt(getComputedStyle(t).paddingBottom.replace(\\\"px\\\",\\\"\\\"))),r.resize({width:i[0].contentRect.width,height:e})},25)}),this.resizeObserver.observe(this.containerDom)),t},e.prototype.generateOption=function(){const i=this;this.echartsInstance.showLoading(),new Promise(function(t){try{var e;i.text===undefined?i.tiddlerTitle&&$tw.wiki.getTiddler(i.tiddlerTitle)?(e=$tw.wiki.getTiddler(i.tiddlerTitle).fields).type&&\\\"\\\"!==e.type&&\\\"text/vnd.tiddlywiki\\\"!==e.type?\\\"application/json\\\"===e.type?i.echartsInstance.setOption(JSON.parse($tw.wiki.getTiddlerText(i.tiddlerTitle))):\\\"application/javascript\\\"===e.type&&require(i.tiddlerTitle).onUpdate(i.echartsInstance,i.state,i.addonAttributes):i.echartsInstance.setOption(JSON.parse($tw.wiki.renderTiddler(\\\"text/plain\\\",i.tiddlerTitle,{variables:Object.assign({},i.addonAttributes)}))):t():new r(\\\"myChart\\\",\\\"chartDom\\\",\\\"echarts\\\",\\\"$tw\\\",\\\"var option;\\\"+i.text+\\\";if (option instanceof Object) myChart.setOption(option);\\\")(i.echartsInstance,i.containerDom,s,$tw)}catch(d){console.error(d)}finally{t()}}).then(function(){i.echartsInstance.hideLoading()})},e.prototype.makeRefresh=function(t){var e,i=this.tiddlerTitle;const r=this.computeAttributes();let n=0;if(0\u003C$tw.utils.count(r)){let e=0;$tw.utils.each([\\\"$theme\\\",\\\"$fillSidebar\\\",\\\"$renderer\\\"],function(t){r[t]!==undefined&&e++}),0\u003Ce&&(n|=2),r.$class&&(e++,this.containerDom.className=this.getAttribute(\\\"$class\\\",\\\"gk0wk-echarts-body\\\")),r.$width&&(e++,this.containerDom.style.width=this.getAttribute(\\\"$width\\\",\\\"100%\\\")),r.$height&&(e++,this.containerDom.style.height=this.getAttribute(\\\"$height\\\",\\\"300px\\\")),$tw.utils.count(r)>e&&(n|=1)}this.text!==undefined||1&n||!(this.tiddlerTitle&&t[this.tiddlerTitle]||this.askForAddonUpdate(t))||(n|=1),this.execute(),2&n?!(e=this.rebuildInstance())||1&n?(o(this.text!==undefined?undefined:i,this.state,this.echartsInstance),this.initState(),this.generateOption()):this.echartsInstance.setOption(e):1&n&&this.generateOption()},e.prototype.refresh=function(t){if($tw.browser){const e=this;this.timer2&&clearTimeout(this.timer2),this.timer2=setTimeout(function(){e.timer2=undefined,e.makeRefresh(t)},100)}return!1},exports.echarts=e}();\",\"type\":\"application/javascript\",\"module-type\":\"widget\"},\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/TagCloud.ts\",\"text\":\"\\\"use strict\\\";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(t,e)=>{for(var o in e)__defProp(t,o,{get:e[o],enumerable:!0})},__copyProps=(e,o,r,a)=>{if(o&&\\\"object\\\"==typeof o||\\\"function\\\"==typeof o)for(let t of __getOwnPropNames(o))__hasOwnProp.call(e,t)||t===r||__defProp(e,t,{get:()=>o[t],enumerable:!(a=__getOwnPropDesc(o,t))||a.enumerable});return e},__toCommonJS=t=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),t),TagCloud_exports={},onMount=(__export(TagCloud_exports,{onMount:()=>onMount,onUpdate:()=>onUpdate,shouldUpdate:()=>shouldUpdate}),module.exports=__toCommonJS(TagCloud_exports),t=>{return t.on(\\\"click\\\",function(t){$tw.wiki.setText(\\\"$:/temp/Gk0Wk/echarts/addons/TagCloud/currentTag\\\",\\\"text\\\",void 0,t.data.name,{}),(new $tw.Story).navigateTiddler(\\\"$:/plugins/Gk0Wk/echarts/addons/TagCloudTagView\\\")}),{}}),shouldUpdate=(t,e)=>0\u003C$tw.utils.count(e),onUpdate=t=>{const r=new Map;var e=t.getOption();const a=!0===(null==e?void 0:e.darkMode);e=(e?e.filter:\\\"\\\")||\\\"[tags[]!is[system]sort[title]]\\\",a,a,r.clear(),e=$tw.wiki.filterTiddlers(e).map(t=>({name:t,value:Math.sqrt($tw.wiki.getTiddlersWithTag(t).length),textStyle:{color:(e=>{if(!r.get(e)){var o=[];for(let t=0;t\u003C3;t++)o.push(a?255-Math.round(160*Math.random()):Math.round(160*Math.random()));r.set(e,`rgb(${o.join(\\\",\\\")})`)}return r.get(e)})(t)}}));t.setOption({series:[{type:\\\"wordCloud\\\",gridSize:4,shape:\\\"pentagon\\\",data:e,layoutAnimation:!0,textStyle:{fontFamily:\\\"sans-serif\\\",fontWeight:\\\"bold\\\"},emphasis:{focus:\\\"self\\\",textStyle:{textShadowBlur:10,textShadowColor:\\\"#333\\\"}}}]})};\"}}}","Modern.TiddlyDev#SHA256-Hashed":"c86ca339bc2df1a57f897237648c9313921dab8b722a109476d6926d6b023b3a","core-version":">=5.2.0"}, +{"title":"$:/plugins/kookma/commander","name":"Tiddler Commander","description":"Tiddler Commander","author":"Mohammad Rahmani","version":"2.1.4","core-version":">=5.2.0","source":"https://github.com/kookma/TW-Commander","list":"readme license history","plugin-type":"plugin","parent-plugin":"","dependents":"","type":"application/json","text":"{\"tiddlers\":{\"$:/plugins/kookma/commander/buttons/pagecontrol\":{\"title\":\"$:/plugins/kookma/commander/buttons/pagecontrol\",\"caption\":\"{{$:/plugins/kookma/commander/images/file-alt}} {{$:/language/Buttons/Commander/Caption}}\",\"description\":\"Open tiddler commander\",\"list-after\":\"$:/core/ui/Buttons/advanced-search\",\"tags\":\"$:/tags/PageControls\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\whitespace trim\\n\\\\define commander-button(class)\\n\u003C$button to=\\\"$:/Commander\\\" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class=\\\"\\\"\\\"$(tv-config-toolbar-class)$ $class$\\\"\\\"\\\">\\n\u003C$list filter=\\\"[\u003Ctv-config-toolbar-icons>match[yes]]\\\">\\n{{$:/plugins/kookma/commander/images/commander.svg}}\\n\u003C/$list>\\n\u003C$list filter=\\\"[\u003Ctv-config-toolbar-text>match[yes]]\\\">\\n\u003Cspan class=\\\"tc-btn-text\\\">\u003C$text text={{$:/language/Buttons/Commander/Caption}}/>\u003C/span>\\n\u003C/$list>\\n\u003C/$button>\\n\\\\end\\n\\n\u003C$list filter=\\\"[list[$:/StoryList]] +[field:title[$:/Commander]]\\\" emptyMessage=\u003C\u003Ccommander-button>>>\\n\u003C\u003Ccommander-button \\\"tc-selected\\\">>\\n\u003C/$list>\\n\"},\"$:/Commander\":{\"title\":\"$:/Commander\",\"icon\":\"$:/plugins/kookma/commander/images/commander.svg\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import [all[shadows+tiddlers]tag[$:/tags/Commander/Macro]]\\n{{$:/plugins/kookma/commander/search/ui}}\\n\u003C!-- Create the search filter based on searchbox and selective operation (if active) -->\\n\u003C$vars searchTerms={{{ [\u003CsearchboxTid>get[text]minlength{$:/plugins/kookma/commander/config/minlength}]~[[$:/errorCode:-23500]] }}} pattern=\\\"^\\\\[\\\">\u003C!-- this part checks the combo search and selective ops-->\\n\u003C$set name=\\\"filtertext\\\" filter=\\\"[\u003CsearchTerms>regexp\u003Cpattern>]\\\" value=\\\"[subfilter\u003CsearchTerms>]\\\" emptyValue=\\\"[!is[system]search\u003CsearchTerms>]\\\">\\n\u003C$set name=\\\"searchfilter\\\" filter=\\\"[\u003CselectiveOpsTid>get[text]match[yes]]\\\" \\n\\tvalue=\\\"[subfilter\u003Cfiltertext>!prefix[$:/temp/commander]]+[tag\u003CworkingTag>]\\\" emptyValue=\\\"[subfilter\u003Cfiltertext>!prefix[$:/temp/commander]]\\\" >\\n\u003Csmall style=\\\"margin-left:17ch;\\\">\u003Ci>\u003C$count filter=\\\"[subfilter\u003Cfiltertext>!prefix[$:/temp/commander]!is[missing]]\\\" /> matches \u003C/i>\u003C/small>\\n\\n\u003C!-- Display search results and let selective operation -->\\n\u003C\u003Ccommander-slider title:\\\"$:/plugins/kookma/commander/search/selection\\\" default:\\\"open\\\">>\\n\\n\u003C!-- Display operation UIs-->\\n\u003C\u003Ctabs \\\"[all[shadows+tiddlers]tag[$:/tags/Commander]!has[draft.of]]\\\" default:\\\"$:/plugins/kookma/commander/tiddler/ui\\\">>\\n\\n\u003C/$set>\\n\u003C/$set>\\n\u003C$vars>\\n\\n---\\n\\n\u003C\u003Ccommander-slider title:\\\"$:/plugins/kookma/commander/log/ui\\\">>\\n\"},\"$:/plugins/kookma/commander/config/AutoFocus\":{\"title\":\"$:/plugins/kookma/commander/config/AutoFocus\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/plugins/kookma/commander/config/commonfields\":{\"title\":\"$:/plugins/kookma/commander/config/commonfields\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"created creator modified modifier revision bag\"},\"$:/plugins/kookma/commander/config/minlength\":{\"title\":\"$:/plugins/kookma/commander/config/minlength\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"3\"},\"$:/plugins/kookma/commander/config/relink\":{\"title\":\"$:/plugins/kookma/commander/config/relink\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define relink-plugin-notExisted() Update title in //tags// and //list// fields of other tiddlers\\n\u003C$checkbox tiddler=\\\"$:/config/RelinkOnRename\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\">\\n\u003C$list filter=\\\"[[$:/plugins/flibbles/relink]] +[has[title]]\\\" emptyMessage=\u003C\u003Crelink-plugin-notExisted>> >\\nUse //Relink// to update title across all other tiddlers\\n\u003C/$list>\\n\u003C/$checkbox>\"},\"$:/plugins/kookma/commander/config/systemfields\":{\"title\":\"$:/plugins/kookma/commander/config/systemfields\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"title text tags \\ncreated modified craetor modifier \\ntype bag revision\\nlist caption\"},\"$:/plugins/kookma/commander/field/macros/add\":{\"title\":\"$:/plugins/kookma/commander/field/macros/add\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define add-new-field-bulk(datafieldsTid:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C\u003Ccreate-log-tiddler \\\"add-new-field-bulk\\\">>\\n\u003C$vars datafieldsTid=\u003C\u003C__datafieldsTid__>> >\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\" variable=\\\"newTitle\\\">\\n\u003C\u003Cadd-bulk-fields>>\\n\u003C$wikify name=newFields text=\u003C\u003CgetFieldsname>> >\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg={{{[\u003CnewFields>addprefix[new fields:]addsuffix[added]]}}} tidItem=\u003C\u003CnewTitle>> />\\n\u003C/$wikify>\\n\u003C/$list>\\n\u003C/$vars>\\n\u003C/$list>\\n\\\\end\\n\u003C!-- from TiddlyWiki 5.2.0, field name with mixed case is allowed -->\\n\\\\define getFieldsname()\\n\u003C$list filter=\\\"[\u003C__datafieldsTid__>indexes[]prefix[fldn]]\\\" variable=item>\\n{{{ [\u003C__datafieldsTid__>getindex\u003Citem>trim[]] }}} \\n\u003C/$list>\\n\\\\end\"},\"$:/plugins/kookma/commander/field/macros/bulkfields\":{\"title\":\"$:/plugins/kookma/commander/field/macros/bulkfields\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define numfilter() [range[1,$(flt)$]]\\n\\\\define id_fldName() fldn$(cnt)$\\n\\\\define id_fldValue() fldv$(cnt)$\\n\\n\u003C!-- from TiddlyWiki 5.2.0, field name with mixed case is allowed -->\\n\\\\define add-bulk-fields()\\n\u003C$set name=\\\"flt\\\" tiddler=\u003C\u003CdatafieldsTid>> field=\\\"counter\\\" emptyValue=\\\"1\\\">\u003C!-- when the datafieldsTid is not exist, there is at least one field row -->\\n\u003C$list filter=\u003C\u003Cnumfilter>> variable=\\\"cnt\\\">\\n\u003C$list filter=\\\"[\u003CdatafieldsTid>getindex\u003Cid_fldName>]\\\" variable=\\\"newField\\\">\\n\u003C$action-setfield $tiddler=\u003C\u003CnewTitle>> \\n $field={{{ [\u003CnewField>trim[]] }}}\\n $value={{{ [\u003CdatafieldsTid>getindex\u003Cid_fldValue>] }}} />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$set>\\n\\\\end\\n\\n\\\\define getInputs()\\n\u003C$edit-text tiddler=\u003C\u003CdatafieldsTid>> index=\u003C\u003Cid_fldName>> tag=input default=\\\"\\\" placeholder=\\\"field name\\\" />\\n\u003C$edit-text tiddler=\u003C\u003CdatafieldsTid>> index=\u003C\u003Cid_fldValue>> tag=input default=\\\"\\\" placeholder=\\\"field value\\\"/>\\n\\\\end\\n\\n\\\\define add-reset()\\n\u003C$button>insert\\n\u003C$action-setfield $tiddler=\u003C\u003CdatafieldsTid>> counter={{{[\u003CdatafieldsTid>get[counter]add[1]]~[[2]]}}}/>\\n\u003C/$button>\\n\u003C$button>reset\\n\u003C$action-setfield $tiddler=\u003C\u003CdatafieldsTid>> counter=\\\"1\\\"/>\\n\u003C$action-setfield $tiddler=\u003C\u003CdatafieldsTid>> text=\\\"\\\"/>\\n\u003C/$button>\\n\\\\end\\n\\n\\\\define create-field-inputbox()\\n\u003C$wikify name=flt text={{{ [\u003CdatafieldsTid>get[counter]]~[[1]] }}} >\\n\u003C$list filter=\u003C\u003Cnumfilter>> variable=cnt>\\n\\n\u003C\u003CgetInputs>>\\n\u003C/$list>\\n\u003C/$wikify>\\n\\\\end\\n\\n\\\\define add-more-fields-ui(datafieldsTid:\\\"\\\")\\n\u003C$vars datafieldsTid=\u003C\u003C__datafieldsTid__>> >\\n\u003C\u003Cadd-reset>>\\n\u003C\u003Ccreate-field-inputbox>>\\n\u003C/$vars>\\n\\\\end\\n\\n\\\\define add-more-fields-selective-ui(datafieldsTid:\\\"\\\", stateTiddler:\\\"$:/state/commander/tiddler-addfields-status\\\")\\n\u003C$checkbox \\n tiddler=\u003C\u003C__stateTiddler__>>\\n field=\\\"text\\\" \\n checked=\\\"addfields\\\" unchecked=\\\"nofields\\\"\\n default=\\\"nofields\\\" > \\n Add fields\\n\u003C/$checkbox>\\n\u003C$reveal type=\\\"match\\\" state=\u003C\u003C__stateTiddler__>> text=\\\"addfields\\\" default=\\\"nofields\\\" >\\n\u003C$vars datafieldsTid=\u003C\u003C__datafieldsTid__>> >\\n\u003C\u003Cadd-reset>>\\n\u003Cdiv style=\\\"padding-left:88px;\\\">\\n\u003C\u003Ccreate-field-inputbox>>\\n\u003C/div>\\n\u003C/$vars>\\n\u003C/$reveal>\\n\\\\end\"},\"$:/plugins/kookma/commander/field/macros/remove\":{\"title\":\"$:/plugins/kookma/commander/field/macros/remove\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define remove-old-field-bulk(oldField:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__oldField__>!is[blank]]\\\">\\n\u003C\u003Ccreate-log-tiddler \\\"remove-old-field-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]+[!is[missing]]+[has:field[$oldField$]]\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-remove-field\\\" $param=\u003C\u003C__oldField__>> />\\n\u003C/$fieldmangler>\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"old field `$oldField$` removed\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define set-field-value-bulk(fieldName:\\\"Empty\\\", fieldValue:\\\"Empty\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__fieldName__>!is[blank]]\\\" variable=null>\\n\u003C$list filter=\\\"[\u003C__fieldValue__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"set-field-value-create-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]-[$fieldName$[$fieldValue$]]\\\">\\n\u003C$list filter=\\\"[\u003CcurrentTiddler>has:field[$fieldName$]]\\\" variable=ignore \\nemptyMessage=\\\"\\\"\\\"\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"//has not `$fieldName$` field. Operation ignored//\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\\"\\\"\\\" >\\n\u003C$action-setfield $field=\u003C\u003C__fieldName__>> $value=\u003C\u003C__fieldValue__>> />\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"field `$fieldName$` got a value\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\"},\"$:/plugins/kookma/commander/field/macros/rename\":{\"title\":\"$:/plugins/kookma/commander/field/macros/rename\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define rename-field-bulk(oldField:\\\"\\\", newField:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\\n\u003C$list filter=\\\"[\u003C__oldField__>!is[blank]]\\\" variable=null>\\n\u003C$list filter=\\\"[\u003C__newField__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"rename-field-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\">\\n\u003C$list filter=\\\"[\u003CcurrentTiddler>has:field[$oldField$]]\\\" variable=ignore\\n emptyMessage=\\\"\\\"\\\"\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"//has not field `$oldField$`. Operation ignored.//\\\" tidItem=\u003C\u003CcurrentTiddler>> /> \\\"\\\"\\\">\\n\u003C$set name=oldValue tiddler=\u003C\u003CcurrentTiddler>> field=\u003C\u003C__oldField__>> >\\t\\n\u003C$action-setfield $tiddler=\u003C\u003CcurrentTiddler>> $field=\u003C\u003C__newField__>> $value=\u003C\u003ColdValue>>/>\\n\u003C/$set>\\n\u003C$action-deletefield $tiddler=\u003C\u003CcurrentTiddler>> $field=\u003C\u003C__oldField__>> />\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"fied `$oldField$` renamed to `$newField$`\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/field/macros/set\":{\"title\":\"$:/plugins/kookma/commander/field/macros/set\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define set-field-value-bulk(fieldName:\\\"\\\", fieldValue:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__fieldName__>!is[blank]]\\\" variable=null>\\n\u003C$list filter=\\\"[\u003C__fieldValue__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"set-field-value-create-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]-[$fieldName$[$fieldValue$]]\\\">\\n\u003C$list filter=\\\"[\u003CcurrentTiddler>has:field[$fieldName$]]\\\" variable=ignore \\nemptyMessage=\\\"\\\"\\\"\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"//has not `$fieldName$` field. Operation ignored//\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\\"\\\"\\\" >\\n\u003C$action-setfield $field=\u003C\u003C__fieldName__>> $value=\u003C\u003C__fieldValue__>> />\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"field `$fieldName$` got a value\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\"},\"$:/plugins/kookma/commander/field/ui\":{\"title\":\"$:/plugins/kookma/commander/field/ui\",\"caption\":\"Field\",\"list-after\":\"$:/plugins/kookma/commander/tag/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/FieldOps]!has[draft.of]]\\\"\\ndefault:\\\"$:/plugins/kookma/commander/field/uicomp/add-fields\\\" \\nclass:\\\"tc-vertical cmd-tab-colorful cmd-tab-wd\\\"\\n>>\\n\\n\"},\"$:/plugins/kookma/commander/field/uicomp/add-fields\":{\"title\":\"$:/plugins/kookma/commander/field/uicomp/add-fields\",\"caption\":\"Add fields\",\"tags\":\"$:/tags/Commander/FieldOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C!-- create the interface-->\\n\u003C$macrocall $name=\\\"add-more-fields-ui\\\" datafieldsTid=\\\"$:/temp/commander/tiddler/datafields/addfield\\\" />\\n\\n\\n\u003C!-- call action macro -->\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Add new fields\\n\u003C$macrocall $name=\\\"add-new-field-bulk\\\" \\n datafieldsTid=\\\"$:/temp/commander/tiddler/datafields/addfield\\\" />\\n\u003C/$button>\u003Cbr>\\n,,Note: This will overwrite the existing fileds!,,\"},\"$:/plugins/kookma/commander/field/uicomp/remove-fields\":{\"title\":\"$:/plugins/kookma/commander/field/uicomp/remove-fields\",\"caption\":\"Remove fields\",\"list-after\":\"$:/plugins/kookma/commander/field/uicomp/add-fields\",\"tags\":\"$:/tags/Commander/FieldOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Clabel class=\\\"kk-cmd-label\\\">Old field\u003C/label>\u003C$select class=\\\"cmd-select-wd\\\" tiddler=\\\"$:/temp/commander/field-remove\\\" default=\\\"\\\">\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>fields[]sort[]] -title -tags\\\" >\\n\u003Coption>\u003C$view field=\\\"title\\\"/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Remove old field\\n\u003C$macrocall $name=\\\"remove-old-field-bulk\\\" oldField={{$:/temp/commander/field-remove}} />\\n\u003C/$button>\"},\"$:/plugins/kookma/commander/field/uicomp/rename-fields\":{\"title\":\"$:/plugins/kookma/commander/field/uicomp/rename-fields\",\"caption\":\"Rename fields\",\"list-after\":\"$:/plugins/kookma/commander/field/uicomp/remove-fields\",\"tags\":\"$:/tags/Commander/FieldOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Clabel class=\\\"kk-cmd-label\\\">Old field\u003C/label>\u003C$select class=\\\"cmd-select-wd\\\" \\n tiddler=\\\"$:/temp/commander/rename-field/old\\\" default=\\\"\\\" >\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>fields[]sort[]] -[\u003CsystemFieldsTid>get[text]split[ ]]\\\" > \\n\u003Coption>\u003C$view field=\\\"title\\\"/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\\n\u003Clabel class=\\\"kk-cmd-label\\\">New field\u003C/label>\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/rename-field/new\\\"\\ntag=\\\"input\\\"\\ndefault=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\"\\nplaceholder=\\\" new field name\\\"\\n/>\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Rename field\\n\u003C$macrocall $name=\\\"rename-field-bulk\\\" \\noldField={{$:/temp/commander/rename-field/old}} \\nnewField={{{ [[$:/temp/commander/rename-field/new]get[text]lowercase[]trim[]split[ ]join[_]] }}} />\\n\u003C/$button>\\n\\n\u003C!-- new field name is checked to be lowecase and leading and trailing spaces are removed and space between words replaced by underscore (_).\\n-->\"},\"$:/plugins/kookma/commander/field/uicomp/set-field-value\":{\"title\":\"$:/plugins/kookma/commander/field/uicomp/set-field-value\",\"caption\":\"Set field value\",\"list-after\":\"$:/plugins/kookma/commander/field/uicomp/rename-fields\",\"tags\":\"$:/tags/Commander/FieldOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Clabel class=\\\"kk-cmd-label\\\">Field name\u003C/label>\u003C$select class=\\\"cmd-select-wd\\\" \\n tiddler=\\\"$:/temp/commander/field-name\\\" default=\\\"\\\" >\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>fields[]sort[]] -[\u003CsystemFieldsTid>get[text]split[ ]]\\\" >\\n\u003Coption>\u003C$view field=\\\"title\\\"/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\\n\u003Clabel class=\\\"kk-cmd-label\\\">Field value\u003C/label>\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/field-value\\\"\\ntag=\\\"input\\\" default=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\" placeholder=\\\" field value\\\"/>\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Set field value\\n\u003C$macrocall \\n $name=\\\"set-field-value-bulk\\\" \\n fieldName={{$:/temp/commander/field-name}} \\n fieldValue={{$:/temp/commander/field-value}} \\n/>\\n\u003C/$button>\"},\"$:/plugins/kookma/commander/filters/Drafts\":{\"title\":\"$:/plugins/kookma/commander/filters/Drafts\",\"description\":\"{{$:/language/Filters/Drafts}}\",\"filter\":\"[has[draft.of]sort[title]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/geneal\":{\"title\":\"$:/plugins/kookma/commander/filters/geneal\",\"description\":\"General filter\",\"filter\":\"[all[shadows+tiddlers]search[your keywrods]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/Missing\":{\"title\":\"$:/plugins/kookma/commander/filters/Missing\",\"description\":\"{{$:/language/Filters/Missing}}\",\"filter\":\"[all[missing]sort[title]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/Orphans\":{\"title\":\"$:/plugins/kookma/commander/filters/Orphans\",\"description\":\"{{$:/language/Filters/Orphans}}\",\"filter\":\"[all[orphans]sort[title]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/RecentSystemTiddlers\":{\"title\":\"$:/plugins/kookma/commander/filters/RecentSystemTiddlers\",\"description\":\"{{$:/language/Filters/RecentSystemTiddlers}}\",\"filter\":\"[has[modified]!sort[modified]limit[50]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/RecentTiddlers\":{\"title\":\"$:/plugins/kookma/commander/filters/RecentTiddlers\",\"description\":\"{{$:/language/Filters/RecentTiddlers}}\",\"filter\":\"[!is[system]has[modified]!sort[modified]limit[50]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/SessionTiddlers\":{\"title\":\"$:/plugins/kookma/commander/filters/SessionTiddlers\",\"description\":\"Tiddlers modified since the wiki was loaded\",\"filter\":\"[haschanged[]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/StoryList\":{\"title\":\"$:/plugins/kookma/commander/filters/StoryList\",\"description\":\"{{$:/language/Filters/StoryList}}\",\"filter\":\"[list[$:/StoryList]] -$:/AdvancedSearch\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/filters/temp-and-state\":{\"title\":\"$:/plugins/kookma/commander/filters/temp-and-state\",\"description\":\"Temporary and state tiddlers\",\"filter\":\"[prefix[$:/temp]] [prefix[$:/state]]\",\"tags\":\"$:/tags/Commander/Filter\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/kookma/commander/help/ui\":{\"title\":\"$:/plugins/kookma/commander/help/ui\",\"caption\":\"Help\",\"icon\":\"$:/core/images/help\",\"list-after\":\"$:/plugins/kookma/commander/setting/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/Help]!has[draft.of]]\\\" \\ndefault:\\\"$:/plugins/kookma/commander/help/uicomp/quick-tutorial\\\"\\nclass:\\\"tc-vertical cmd-tab-colorful cmd-tab-wd\\\">>\\n\\n\\n\"},\"$:/plugins/kookma/commander/help/uicomp/quick-tutorial\":{\"title\":\"$:/plugins/kookma/commander/help/uicomp/quick-tutorial\",\"caption\":\"Quick tutorial\",\"tags\":\"$:/tags/Commander/Help\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"# Use ''Combo search'' to list possible tiddlers\\n#* example: `concept` performs a standard search and find all matches in title, text, and tags\\n#* example: `[tag[xx]]` finds all tiddlers tagged with //xx//\\n#* example: `[prefix[tt]` finds all tiddlers have title started with //tt//\\n#* example: `[has[draft.of]sort[title]]` finds all draft tiddlers\\n\\n# Use ''Select tiddlers'' for the resulting list to identify which specific tiddlers to do a batch operation on\\n#* this step lets you to do a batch operation on selected tiddlers NOT all items by ''Combo search''!\\n#* it is possible to select/deselect all tiddlers from ''Combo search'' result at once! Note that, by default all tiddlers are considered for bulk operation until selective operation is activated!\\n# From ''Batch operations tabs'' select the batch operation you wish to perform on selected tiddlers\\n#* example: title, tag, and field operations\\n#* example: Snr operation\\n#* Inspect tab can be used to inspect tiddlers before or after performing operations\\n\\n* Notes:\\n** Multiple batch operations can be done on the same set (unless you change something in the search criteria)\\n** Sometimes it is useful to use an intermediate batch to help, like tag tiddlers with a \\\"working\\\" tag, using multiple searches, then then use the \\\"working\\\" tag to apply a batch operation to\\n\\n\u003Cdiv class=\\\"commander-alert\\\">''Note'': For good operation a tiddler width of 800px is recommended. You can also use //Sidebar layout// as `Fluid story`.\u003C/div>\\n\\n\\nFor detailed docummention go to [[Demo page|https://kookma.github.io/TW-Commander/]]\\n\\n!!! Footenote\\n# [[Use filter expression|https://tiddlywiki.com/prerelease/#Filters:Filters%20%5B%5BFilter%20Expression%5D%5D%20%5B%5BFilter%20Syntax%5D%5D%20%5B%5BFilter%20Operators%5D%5D%20%5B%5BFilter%20Parameter%5D%5D%20%5B%5BFilter%20Run%5D%5D%20%5B%5BFilter%20Step%5D%5D%20%5B%5BFilter%20Whitespace%5D%5D]]\"},\"$:/plugins/kookma/commander/help/uicomp/regular-expression\":{\"title\":\"$:/plugins/kookma/commander/help/uicomp/regular-expression\",\"caption\":\"Regular expressions\",\"list-after\":\"$:/plugins/kookma/commander/help/uicomp/snr\",\"tags\":\"$:/tags/Commander/Help\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Regular Expressions Quick Reference\\n\\n|''FLAGS'' |\u003C|\u003C|h\\n| i |ignore case|case insensitive matching|\\n| |whole words|match strings of a-z, 0-9 and _|\\n| g |global|field start=^, field end=$, all matches|\\n| m |multi-line|line start=^, line end=$, first match|\\n| |first match|field start=^, field end=$, first match|\\n|''MATCH'' |\u003C|\u003C|h\\n|''Anchors''|\u003C|\u003C|\\n| ^ |start of scope|see Flags, match is zero length|\\n| $ |end of scope|see Flags, match is zero length|\\n| \\\\b |word boundary|anchor to edge of word, zero length|\\n| \\\\B |not word boundary|anchor inside word, zero length|\\n|''Character Classes''|\u003C|\u003C|\\n| [c] |class of characters|any one matches, e.g. [abc123]|\\n| [^c] |negated class of characters|any one doesn't match, e.g. [^abc123]|\\n|''Shorthand Character Classes''|\u003C|\u003C|\\n| . |any character except newline|same as [^\\\\n]|\\n| \\\\d |decimal|same as [0-9]|\\n| \\\\D |not decimal|same as [^0-9]|\\n| \\\\s |white-space|same as [\\\\ \\\\t\\\\n]|\\n| \\\\S |not white-space|same as [^\\\\ \\\\t\\\\n]|\\n| \\\\t |tab|same as [\\\\t]|\\n| \\\\n |newline|same as [\\\\n]|\\n| \\\\w |word character|same as [a-zA-Z0-9_]|\\n| \\\\W |not word character|same as [^a-zA-Z0-9_]|\\n|''Capturing Groups''|\u003C|\u003C|\\n| (match) |match placed in variable $x|can be used in Replace|\\n| (\\\\x) |repeats match pattern of $x|can be used in Replace|\\n|''Quantifiers''|\u003C|\u003C|\\n| ? |single match|match 0 or 1 time|\\n| * |greedy match 0+|match 0 or as many times as possible|\\n| *? |lazy match 0+|match 0 or as few times as possible|\\n| + |greedy match 1+|match 1 or as many times as possible|\\n| +? |lazy match 1+|match 1 or as few times as possible|\\n| {x} |match x times|match x times|\\n| {x,y} |match x to y times|match x times to exactly y times|\\n| {x,} |match x or more times|match x times or as many as possible|\\n|''Escapes''|\u003C|\u003C|\\n| \\\\ |escape special characters|add to \\\\ [ ] ( ) { } ^ $ . ? * + for literals|\\n|''REPLACE'' |\u003C|\u003C|h\\n| $& |return the full match|\u003C|\\n| $x |return $x where x is the numeric index of a Capturing Group|\u003C|\\n|''NOTE'' |\u003C|\u003C|h\\n|This Reference supports most ordinary uses of regular expressions.\u003Cbr> For advanced options: [[MDN Reference|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_simple_patterns]]; examples: [[regular-expressions.info|https://www.regular-expressions.info/tutorial.html]].|\u003C|\u003C|\\n\\n\"},\"$:/plugins/kookma/commander/help/uicomp/relink\":{\"title\":\"$:/plugins/kookma/commander/help/uicomp/relink\",\"caption\":\"Relink on rename\",\"list-after\":\"$:/plugins/kookma/commander/help/uicomp/regular-expression\",\"tags\":\"$:/tags/Commander/Help\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Relink on rename\\nWhen Tiddler Commander is used to rename bulk tiddlers in operation like\\n\\n* Title operation\\n** add/remove prefix\\n** add/remove suffix\\n** remove chars from the begining or end of title\\n* ~SnR\\n** Search and replace in tiddlers title\\n\\nIt is possible to update all links to title. This includes //tags// and //list//. If [[Relink|https://flibbles.github.io/tw5-relink/]] plugin is installed, then not only title will be updated in //tags// and //list// field, but also in all filters, transclusions, text field and evrywhere.\\n\\n\u003Cdiv class=\\\"commander-alert\\\"> ''Note'': Relink does not update all forms of title e.g those created from different segments, but it will update any occurances\u003C/div>\\n\\n\\n!! How to integrate with ''Relink''?\\n\\nSimply install the [[Relink|https://flibbles.github.io/tw5-relink/]] plugin and it will be appeared as an option when Tiddler Commander title operations including ~SnR are performed!\\n\"},\"$:/plugins/kookma/commander/help/uicomp/snr\":{\"title\":\"$:/plugins/kookma/commander/help/uicomp/snr\",\"caption\":\"Search-n-Replace\",\"list-after\":\"$:/plugins/kookma/commander/help/uicomp/quick-tutorial\",\"tags\":\"$:/tags/Commander/Help\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Search and replace using Snr\\nSnr stands for search and replace, is a powerful tool uses regular expression for searching all fields and lets replace chars, words, phrases with new values.\\n\\n!! How to use\\n* Enter a search filter or keywords in ''Combo search'' box like `[tag[myTag]]` or `concept`\\n* Use ''Select tiddlers'' for the resulting list to identify which specific tiddlers to do a Snr operation on\\n** If selective operation is unchecked, all tiddlers from step one will be included in Snr operation.\\n* From ''Tiddler title'' drop down menu select a tiddler\\n* From ''Field name'' drop down menu select a tiddler field like `text`\\n** all fileds even `title` can be selected\\n* In the ''Search text'' type the search term for example `this`\\n* In the ''Replace with'' type the term you want to replace with like `that`\\n* Check the ''Differences'' and if you are satisfied with the result, press the `Replace?` button\\n* You can press `Replace all?` if you want to search and replace in all selected tiddlers\\n\\n;Remarks\\n: The `Replace all?` lets you to search and replace in all selected tiddlers at once! It is possible to search and replace even in `title` field!\\n\\n\u003C$list filter=\\\"[[snr.png]is[tiddler]]\\\">\u003C\u003Cimage-pretty img:\\\"snr.png\\\" width:\\\"60%\\\" align:\\\"center\\\" caption:\\\"Fig 1. Search and replace using regular expression\\\">>\u003C/$list>\\n\\n!! Special characters\\n\u003C\u003C\u003C\\nAs `SNR` uses ''regexp'' pattern to make search and replace, when special characters are used in the ''Search text'' box, they shall be escaped among them are `*`, `+`, `[]`, `?` ...\\nTo use these characters do like below\\n\\n```\\n\\\\[ \\\\] \\\\( \\\\) \\\\{ \\\\} \\\\. \\\\* \\\\+ \\\\? \\\\^ \\\\$ \\\\\\\\ \\\\|\\n```\\n\u003C\u003C\u003C\\n\\n!! Warning\\n\u003C\u003C\u003C\\n* SNR replace the contents of tiddlers.\u003Cbr> ''//The action can not be undone//''. So always make a backup before performing any replace action\\n\u003C\u003C\u003C\"},\"$:/plugins/kookma/commander/help/uicomp/warning\":{\"title\":\"$:/plugins/kookma/commander/help/uicomp/warning\",\"caption\":\"Warning\",\"list-after\":\"$:/plugins/kookma/commander/help/uicomp/relink\",\"tags\":\"$:/tags/Commander/Help\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\";Note i\\n:Tiddler Commander is a very powerful tool, it can change any field in any tiddler.// Make sure what you are doing//!\\n\\n;Note ii\\n:Tiddler Commander uses two steps tiddler selection. It uses a combo search box to screen (using standard or filter search) possible tiddlers and then uses a selective list of tiddlers from first step for batch operation!\\n:# If selective operation is unchecked, then all tiddlers from step one are used for batch operation\\n:# If selective operation is checked, then user has to manually select among tiddlers, and the selected ones are used for batch operation \\n\\n;Note iii\\n://Commander do not perform operation on shadow tiddlers//, unless they are overriden. Because shadow tiddlers aren’t stored as ''real'' tiddlers. They are intentionally excluded from most operations by default so that they don’t clutter filters made by users unless explicitly required. \\n\\n\u003Cdiv class=\\\"commander-alert\\\">''Warning''\\nBefore using Tiddler commander for bulk operation on your own valuable, irreplaceable data, ''backup them''.\\n\u003C/div>\"},\"$:/plugins/kookma/commander/history\":{\"title\":\"$:/plugins/kookma/commander/history\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Full change log https://kookma.github.io/TW-Commander/#ChangeLog\\n\\n* ''2.1.3'' -- 2021.10.24 -- commander icon fixed\\n* ''2.1.2'' -- 2021.01.02 -- Saq Imtiaz release\\n* ''2.1.0'' -- 2020.03.25 -- stable release\\n* ''0.1.0'' -- 2019.02.12 -- mature public release\\n\"},\"$:/plugins/kookma/commander/images/commander.svg\":{\"title\":\"$:/plugins/kookma/commander/images/commander.svg\",\"caption\":\"file-alt (Regular)\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Csvg class=\\\"tc-image-file-alt tc-image-button\\\" width=\\\"22pt\\\" height=\\\"22pt\\\" viewBox=\\\"0 0 384 512\\\">\u003Cpath d=\\\"M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z\\\"/>\u003C/svg>\"},\"$:/plugins/kookma/commander/inspect/comp/edit-fileds\":{\"title\":\"$:/plugins/kookma/commander/inspect/comp/edit-fileds\",\"tags\":\"$:/tags/Commander/Macro\",\"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\u003C$vars name={{$:/temp/newfieldname}}>\\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" default=\u003C\u003Cname>>>\\n\u003C$button class=\\\"cmd-btn\\\">\\n\u003C$action-sendmessage $message=\\\"tm-add-field\\\"\\n$name=\u003C\u003Cname>>\\n$value={{$:/temp/newfieldvalue}}/>\\n\u003C$action-deletetiddler $tiddler=\\\"$:/temp/newfieldname\\\"/>\\n\u003C$action-deletetiddler $tiddler=\\\"$:/temp/newfieldvalue\\\"/>\\n\u003C\u003Clingo Fields/Add/Button>>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" text=\\\"\\\" default=\u003C\u003Cname>>>\\n\u003C$button class=\\\"cmd-btn\\\">\\n\u003C\u003Clingo Fields/Add/Button>>\\n\u003C/$button>\\n\u003C/$reveal>\\n\u003C/$vars>\\n\\\\end\\n\\n\\\\define compInspect-edit-fileds(commonFields:\\\"\\\")\\n\\n\u003Cdiv class=\\\"tc-edit-fields\\\">\\n\u003Ctable class=\\\"tc-edit-fields\\\">\\n\u003Ctbody>\\n\u003C$list filter=\\\"[all[current]fields[]] +[sort[title]]\\\" variable=\\\"currentField\\\">\\n\u003C$list filter=\u003C\u003Cconfig-filter>> variable=\\\"temp\\\">\\n\u003Ctr class=\\\"tc-edit-field\\\">\\n\u003Ctd class=\\\"tc-edit-field-name\\\">\\n\u003C$text text=\u003C\u003CcurrentField>>/>:\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-value\\\">\\n\u003C$edit-text tiddler=\u003C\u003CcurrentTiddler>> field=\u003C\u003CcurrentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\\n\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-remove\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\\n\u003C$action-deletefield $field=\u003C\u003CcurrentField>>/>\\n{{$:/core/images/delete-button}}\\n\u003C/$button>\\n\u003C/td>\\n\u003C/tr>\\n\u003C/$list>\\n\u003C/$list>\\n\\n\\n\u003C$list filter=\\\"created creator modified modifier -[enlist\u003C__commonFields__>]\\\" variable=\\\"currentField\\\">\\n\u003Ctr class=\\\"tc-edit-field\\\">\\n\u003Ctd class=\\\"tc-edit-field-name\\\">\\n\u003C$text text=\u003C\u003CcurrentField>>/>:\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-value\\\">\\n\u003C$edit-text tiddler=\u003C\u003CcurrentTiddler>> field=\u003C\u003CcurrentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\\n\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-remove\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\\n\u003C$action-deletefield $field=\u003C\u003CcurrentField>>/>\\n{{$:/core/images/delete-button}}\\n\u003C/$button>\\n\u003C/td>\\n\u003C/tr>\\n\u003C/$list>\\n\\n\\n\\n\\n\u003C/tbody>\\n\u003C/table>\\n\u003C/div>\\n\\n\u003C$fieldmangler>\\n\u003Cdiv class=\\\"tc-edit-field-add\\\">\\n\u003Cem class=\\\"tc-edit\\\">\\n\u003C\u003Clingo Fields/Add/Prompt>>\\n\u003C/em>\\n\u003Cspan class=\\\"tc-edit-field-add-name\\\">\\n\u003C$edit-text tiddler=\\\"$:/temp/newfieldname\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=\u003C\u003Cqualify \\\"$:/state/popup/field-dropdown\\\">> class=\\\"tc-edit-texteditor tc-popup-handle\\\"/>\\n\u003C/span>\\n\u003C$button popup=\u003C\u003Cqualify \\\"$:/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}}\u003C/$button>\\n\u003C$reveal state=\u003C\u003Cqualify \\\"$:/state/popup/field-dropdown\\\">> type=\\\"nomatch\\\" text=\\\"\\\" default=\\\"\\\">\\n\u003Cdiv class=\\\"tc-block-dropdown tc-edit-type-dropdown\\\">\\n\u003C$linkcatcher to=\\\"$:/temp/newfieldname\\\">\\n\u003Cdiv class=\\\"tc-dropdown-item\\\">\\n\u003C\u003Clingo Fields/Add/Dropdown/User>>\\n\u003C/div>\\n\u003C$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\u003C$link to=\u003C\u003CcurrentField>>>\\n\u003C\u003CcurrentField>>\\n\u003C/$link>\\n\u003C/$list>\\n\u003Cdiv class=\\\"tc-dropdown-item\\\">\\n\u003C\u003Clingo Fields/Add/Dropdown/System>>\\n\u003C/div>\\n\u003C$list filter=\\\"[fields[]search:title{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]\\\" variable=\\\"currentField\\\">\\n\u003C$link to=\u003C\u003CcurrentField>>>\\n\u003C\u003CcurrentField>>\\n\u003C/$link>\\n\u003C/$list>\\n\u003C/$linkcatcher>\\n\u003C/div>\\n\u003C/$reveal>\\n\u003Cspan class=\\\"tc-edit-field-add-value\\\">\\n\u003C$edit-text tiddler=\\\"$:/temp/newfieldvalue\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\\\"tc-edit-texteditor\\\"/>\\n\u003C/span>\\n\u003Cspan class=\\\"tc-edit-field-add-button\\\">\\n\u003C$macrocall $name=\\\"new-field\\\"/>\\n\u003C/span>\\n\u003C/div>\\n\u003C/$fieldmangler>\\n\\\\end\"},\"$:/plugins/kookma/commander/inspect/comp/edit-preview\":{\"title\":\"$:/plugins/kookma/commander/inspect/comp/edit-preview\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define compInspect-edit-preview(tiddler, commonFields:\\\"\\\")\\n\u003Cdiv class=\\\"tc-edit-fields\\\">\\n\u003Ctable class=\\\"tc-edit-fields\\\">\\n\u003Ctbody>\\n\u003Ctr class=\\\"tc-edit-field\\\">\u003Ctd class=\\\"tc-edit-field-name\\\">title:\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-value\\\">\u003C$link to=\u003C\u003C__tiddler__>> >\u003C$text text=\u003C\u003C__tiddler__>> />\u003C/$link>\u003C/td>\\n\u003C/tr>\\n\u003Ctr class=\\\"tc-edit-field\\\">\u003Ctd class=\\\"tc-edit-field-name\\\">tags:\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-value\\\">{{$tiddler$||$:/core/ui/EditTemplate/tags}}\u003C/td>\\n\u003C/tr>\\n\u003Ctr class=\\\"tc-edit-field\\\">\u003Ctd class=\\\"tc-edit-field-name\\\">text:\u003C/td>\\n\u003Ctd class=\\\"tc-edit-field-value\\\">\u003C$macrocall $name=compInspect-get-field tiddler=\u003C\u003C__tiddler__>> field=\\\"text\\\" tag=\\\"textarea\\\" />\u003C/td>\\n\u003C/tr>\\n\u003C/tbody>\\n\u003C/table>\\n\u003C/div>\\n\\n\u003C$tiddler tiddler=\u003C\u003C__tiddler__>> >\\n\u003C$macrocall $name=\\\"compInspect-edit-fileds\\\" commonFields=\u003C\u003C__commonFields__>> />\\n\u003C/$tiddler>\\n\\\\end\\n\\n\\\\define compInspect-get-field(tiddler, field, tag:\\\"input\\\") \\n\u003C$edit-text class=\\\"tc-edit-texteditor\\\" tiddler=\u003C\u003C__tiddler__>> field=\u003C\u003C__field__>> tag=\u003C\u003C__tag__>> default=\\\"\\\" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>\\n\\\\end\"},\"$:/plugins/kookma/commander/inspect/comp/main\":{\"title\":\"$:/plugins/kookma/commander/inspect/comp/main\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define compInspect(filter, stateTiddler:\\\"thisTiddler\\\")\\n\u003C$set name=\\\"state\\\" \\n value={{{ [[$:/state/compInspect/]addsuffix\u003C__stateTiddler__>] }}} >\\n\u003C$vars\\n slStateTid={{{ [\u003Cstate>addsuffix[/]addsuffix[selectState-tiddler]] }}}\\n rvStateTid={{{ [\u003Cstate>addsuffix[/]addsuffix[revealState-tiddler]] }}}\\n chStateTid={{{ [\u003Cstate>addsuffix[/]addsuffix[checkboxState-tiddler]] }}} >\\n\\nSelect tiddler \u003C$macrocall $name=compSelect filter=\u003C\u003C__filter__>> stateTiddler=\u003C\u003CslStateTid>> />\\n \\n\u003C$macrocall $name=\\\"check-common-fields\\\" stateTiddler=\u003C\u003CchStateTid>> />\\n \\n\u003C$reveal stateTitle=\u003C\u003CrvStateTid>> type=\\\"nomatch\\\" text=\\\"edit\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" setTitle=\u003C\u003CrvStateTid>> setTo=\\\"edit\\\" tooltip=\\\"edit tiddler\\\">{{$:/core/images/edit-button}}\u003C/$button>\\n\u003C$macrocall $name=compInspect-show-preview tiddler={{{ [\u003CslStateTid>get[text]]+[subfilter\u003C__filter__>] }}} commonFields={{{ [\u003CchStateTid>get[text]] }}}/>\\n\u003C/$reveal>\\n\u003C$reveal stateTitle=\u003C\u003CrvStateTid>> type=\\\"match\\\" text=\\\"edit\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" setTitle=\u003C\u003CrvStateTid>> setTo=\\\"\\\" tooltip=\\\"confirm changes\\\">{{$:/core/images/done-button}}\u003C/$button>\\n\u003C$macrocall $name=compInspect-edit-preview tiddler={{{ [\u003CslStateTid>get[text]]+[subfilter\u003C__filter__>] }}} commonFields={{{ [\u003CchStateTid>get[text]] }}}/>\\n\u003C/$reveal>\\n\\n\u003C/$vars>\\n\u003C/$set>\\n\\\\end\\n\\n\\\\define check-common-fields(stateTiddler)\\n\u003C$vars commonFields={{{[\u003CcommonFieldsTid>get[text]]}}}>\\n\u003C$checkbox \\n tiddler=\u003C\u003C__stateTiddler__>>\\n field=\\\"text\\\" \\n checked=\u003C\u003CcommonFields>>\\n unchecked=\\\"\\\"\\n default=\\\"\\\"\\n> Exclude common fields?\u003C/$checkbox>\\n\u003C/$vars>\\n\\\\end\"},\"$:/plugins/kookma/commander/inspect/comp/select\":{\"title\":\"$:/plugins/kookma/commander/inspect/comp/select\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define compSelect(filter:\\\"\\\", stateTiddler:\\\"\\\", default:\\\"\\\", class:\\\"\\\", showButtons:\\\"show\\\")\\n\u003C$select tiddler=\u003C\u003C__stateTiddler__>> default=\u003C\u003C__default__>> class=\u003C\u003C__class__>> >\\n\u003Coption value=\\\"\\\">None\u003C/option>\\n\u003C$list filter=\u003C\u003C__filter__>> variable=item>\\n\u003Coption value=\u003C\u003Citem>>>\u003C$text text=\u003C\u003Citem>> />\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C$reveal type=\\\"match\\\" text=\\\"show\\\" default=\u003C\u003C__showButtons__>> >\\n\u003C$vars myfilter=\u003C\u003C__filter__>> mystateTiddler=\u003C\u003C__stateTiddler__>> myitem={{{ [\u003C__stateTiddler__>get[text]] }}} >\\n\u003C$button actions=\u003C\u003Ccs-prev-item>> class=\\\"cmd-btn\\\"> prev \u003C/$button>\\n\u003C$button actions=\u003C\u003Ccs-next-item>> class=\\\"cmd-btn\\\"> next \u003C/$button>\\n\u003C/$vars>\\n\u003C/$reveal>\\n\\\\end\\n\\n\\\\define cs-prev-item()\\n\u003C$list filter=\\\"[subfilter\u003Cmyfilter>] +[before\u003Cmyitem>]\\\" variable=\\\"prev-item\\\" >\\n\u003C$action-setfield $tiddler=\u003C\u003CmystateTiddler>> text=\u003C\u003Cprev-item>> />\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define cs-next-item()\\n\u003C$list filter=\\\"[subfilter\u003Cmyfilter>] +[after\u003Cmyitem>]\\\" variable=\\\"next-item\\\" >\\n\u003C$action-setfield $tiddler=\u003C\u003CmystateTiddler>> text=\u003C\u003Cnext-item>> />\\n\u003C/$list>\\n\\\\end\\n\\n\u003C!-- used by\\n - $:/plugins/kookma/commander/compInspect/main\\n-->\"},\"$:/plugins/kookma/commander/inspect/comp/show-preview\":{\"title\":\"$:/plugins/kookma/commander/inspect/comp/show-preview\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define compInspect-show-preview(tiddler, commonFields:\\\"\\\")\\n\u003C$vars mainFields=\\\"title tags text\\\">\\n\u003Ctable class=\\\"cmd-ci-table\\\">\\n\u003Ctr>\u003Ctd class=\\\"leftcol\\\">title\u003C/td>\\n\u003Ctd class=\\\"rightcol\\\">\u003C$link to=\u003C\u003C__tiddler__>> >\u003C$text text=\u003C\u003C__tiddler__>> />\u003C/$link>\u003C/td>\\n\u003C/tr>\\n\\n\u003Ctr>\u003Ctd class=\\\"leftcol\\\">tags\u003C/td>\\n\u003Ctd style=\\\"padding:3px;\\\">\u003C$macrocall $name=showTags tiddler=\u003C\u003C__tiddler__>> />\u003C/td>\\n\u003C/tr>\\n\u003Ctr>\u003Ctd class=\\\"leftcol\\\">text\u003C/td>\\n\u003Ctd>\u003C$transclude tiddler=\u003C\u003C__tiddler__>> field=\\\"text\\\" mode=\\\"block\\\"/>\u003C/td>\\n\u003C/tr>\\n\u003C$list filter=\\\"[\u003C__tiddler__>fields[]] -[enlist\u003CmainFields>] -[enlist\u003C__commonFields__>]\\\" variable=\\\"otherFld\\\">\\n\u003Ctr>\u003Ctd class=\\\"leftcol\\\">\u003C\u003CotherFld>>\u003C/td>\\n\u003Ctd class=\\\"rightcol\\\">\u003C$transclude tiddler=\u003C\u003C__tiddler__>> field=\u003C\u003CotherFld>> mode=\\\"inline\\\"/>\u003C/td>\\n\u003C/tr>\\n\u003C/$list>\\n\u003C/table>\\n\u003C/$vars>\\n\\\\end\\n\\n\\\\define showTags(tiddler)\\n\u003C$list filter=\\\"[\u003C__tiddler__>tags[]]\\\" variable=tagItem >\\n\u003C$macrocall $name=tag tag=\u003C\u003CtagItem>> />\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/inspect/ui\":{\"title\":\"$:/plugins/kookma/commander/inspect/ui\",\"caption\":\"Inspect\",\"list-after\":\"$:/plugins/kookma/commander/field/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/InspectOps]!has[draft.of]]\\\" \\ndefault:\\\"$:/plugins/kookma/commander/inspect/uicomp/Inspection\\\"\\nclass:\\\"tc-vertical cmd-tab-wd\\\">>\\n\"},\"$:/plugins/kookma/commander/inspect/uicomp/Inspection\":{\"title\":\"$:/plugins/kookma/commander/inspect/uicomp/Inspection\",\"caption\":\"Inspect\",\"tags\":\"$:/tags/Commander/InspectOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C$macrocall \\n $name=compInspect\\n filter=\u003C\u003Csearchfilter>>\\n stateTiddler=\\\"commander\\\"\\n/>\"},\"$:/language/Buttons/Commander/Caption\":{\"title\":\"$:/language/Buttons/Commander/Caption\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"commander\"},\"$:/language/Buttons/Commander/Hint\":{\"title\":\"$:/language/Buttons/Commander/Hint\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Tiddler Commander\"},\"$:/plugins/kookma/commander/license\":{\"title\":\"$:/plugins/kookma/commander/license\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Distributed under an MIT license.\\n\\nCopyright (c) 2018-2020 [[Mohammad Rahmani|https://github.com/kookma]]\\n\\n\u003C\u003C\u003C\\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\u003C\u003C\u003C\"},\"$:/plugins/kookma/commander/log/ui\":{\"title\":\"$:/plugins/kookma/commander/log/ui\",\"caption\":\"Log status\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Cdiv class=\\\"commander-alert\\\" style=\\\"padding:5px;font-size:0.90em;\\\">\\n\u003C$button class=\\\"tc-btn-invisible tc-tiddlylink\\\" actions=\u003C\u003Cdelete-all-log-tiddlers>>>Clear log\u003C/$button>\\n\u003C$set name=\\\"resultCount\\\" value=\\\"\\\"\\\"\u003C$count filter=\\\"[tag[$:/tags/Commander/LogOps]]\\\" />\\\"\\\"\\\">\\n\u003Cdiv class=\\\"tc-search-results\\\">\\n\u003Cspan class=\\\"kk-commander-log-note\\\">Recent number of operations: \u003C\u003CresultCount>>\u003C/span>\u003Cbr>\\n\u003C$list filter=\\\"[tag[$:/tags/Commander/LogOps]] +[!sort[created]]\\\" variable=\\\"logTid\\\">\\n\u003Cb>\u003C$view tiddler=\u003C\u003ClogTid>> field=\\\"created\\\" format=\\\"date\\\" template=\\\"YYYY-0MM-0DD 0hh:0mm:0ss\\\"/> \\n\u003C$view tiddler=\u003C\u003ClogTid>> field=\\\"caption\\\">\\n \u003C$view tiddler=\u003C\u003ClogTid>> field=\\\"title\\\">\u003C/$view>\\n\u003C/$view>\\n\u003C/b>\\n\u003Col>\u003C$list filter=\\\"[\u003ClogTid>indexes[]]\\\" variable=\\\"item\\\">\\n\u003Cli>\u003C$link to=\u003C\u003Citem>>>\u003C\u003Citem>>\u003C/$link>\\n\u003C$set name=\\\"myItem\\\" tiddler=\u003C\u003ClogTid>> index=\u003C\u003Citem>> >\\n\u003C$list filter=\\\"[\u003CmyItem>!search[existed]]\\\" variable=\\\"ignore\\\" \\n emptyMessage=\\\"\\\"\\\"\u003Cspan style=\\\"color:red;\\\">\u003C\u003CmyItem>>\u003C/span>\\\"\\\"\\\" >\\n\u003Cspan class=\\\"kk-commander-log-item\\\">\u003C\u003CmyItem>>\u003C/span>\\n\u003C/$list>\\n\u003C/$set>\\n\u003C/li>\\n\u003C/$list>\u003C/ol>\\n\u003C/$list>\\n\u003C/div>\\n\u003C/$set>\\n\u003C/div>\"},\"$:/plugins/kookma/commander/macros/compConfirmAction\":{\"title\":\"$:/plugins/kookma/commander/macros/compConfirmAction\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define compConfirmAction(\\nbtnLabel:\\\"Delete these tiddlers\\\", \\nconfirmMessage:\\\"Are you sure you wish to delete\\\", \\nstateTiddler:\\\"\\\"\\ncountFilter:\\\"\\\", \\nactionMacro:\\\"\\\")\\n\u003C$set name=resultCount value={{{ [subfilter\u003C__countFilter__>count[]] }}} >\\n\u003C$reveal type=\\\"gt\\\" text=\\\"0\\\" default=\u003C\u003CresultCount>> >\\n\u003C$button popup=\u003C\u003Cqualify \\\"\\\"\\\"$stateTiddler$\\\"\\\"\\\">> class=\\\"cmd-btn\\\">$btnLabel$\u003C/$button>\\n\u003C/$reveal>\\n\u003C$reveal state=\u003C\u003Cqualify \\\"\\\"\\\"$stateTiddler$\\\"\\\"\\\">> type=\\\"popup\\\" position=\\\"belowleft\\\" animate=\\\"yes\\\">\\n\u003Cdiv class=\\\"tc-block-dropdown-wrapper\\\">\\n\u003Cdiv class=\\\"tc-block-dropdown tc-edit-type-dropdown\\\">\\n\u003Cdiv class=\\\"tc-dropdown-item-plain\\\">\\n$confirmMessage$ \u003C\u003CresultCount>> tiddler(s)?\\n\u003C/div>\\n\u003Cdiv class=\\\"tc-dropdown-item-plain\\\">\\n\u003C$button class=\\\"cmd-btn\\\"> $btnLabel$\\n\u003C$macrocall $name=\u003C\u003C__actionMacro__>> />\\n\u003C/$button>\\n\u003C/div>\\n\u003C/div>\\n\u003C/div>\\n\u003C/$reveal>\\n\u003C/$set>\\n\\\\end\"},\"$:/plugins/kookma/commander/macros/definition\":{\"title\":\"$:/plugins/kookma/commander/macros/definition\",\"description\":\"some macro are not used REMOVE THEM\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define tempPath() $:/temp/commander\\n\\n\\\\define searchboxTid() $(tempPath)$/search-box\\n\\\\define selectiveOpsTid() $(tempPath)$/selective-operation\\n\\n\\n\\\\define workingTag() $:/tags/Commander/Working\\n\\\\define exportTagTid() $:/temp/commander/exportTag\\n\\\\define systemFieldsTid() $:/plugins/kookma/commander/config/systemfields\\n\\\\define commonFieldsTid() $:/plugins/kookma/commander/config/commonfields\"},\"$:/plugins/kookma/commander/macros/logging\":{\"title\":\"$:/plugins/kookma/commander/macros/logging\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define set-title() $:/temp/commander/logs/tid-{{{[tag[$:/tags/Commander/LogOps]count[]add[1]]}}}\\n\\n\\\\define create-log-tiddler(msg)\\n\u003C$wikify name=\\\"myTitle\\\" text=\\\"\\\"\\\"\u003C\u003Cset-title>>\\\"\\\"\\\">\\n\u003C$wikify name=\\\"myCaption\\\" text=\\\"\\\"\\\"\u003C$macrocall $name=\\\"set-caption\\\" msg=\u003C\u003C__msg__>> />\\\"\\\"\\\">\\n\u003C$action-createtiddler $basetitle=\u003C\u003CmyTitle>>\\n$savetitle=\\\"$:/state/commander/log-tiddler\\\"\\ntags=\\\"$:/tags/Commander/LogOps\\\"\\ntype=\\\"application/json\\\"\\ncaption=\u003C\u003C__msg__>>\\n/>\\n\u003C/$wikify>\\n\u003C/$wikify>\\n\\\\end\\n\\n\\\\define log-add-single-operation(msg:\\\"commander operation\\\", tidItem:\\\"no item\\\")\\n\u003C$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=\u003C\u003C__tidItem__>> $value=\u003C\u003C__msg__>> />\\n\\\\end\\n\\n\\n\\\\define delete-all-log-tiddlers()\\n\u003C$action-deletetiddler $filter=\\\"[tag[$:/tags/Commander/LogOps]]\\\" />\\n\\\\end\"},\"$:/plugins/kookma/commander/macros/remove-workingtag\":{\"title\":\"$:/plugins/kookma/commander/macros/remove-workingtag\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define remove-working-tag(oldTag)\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag\u003CworkingTag>limit[1]]\\\" variable=ignore>\\n\u003C\u003Ccreate-log-tiddler \\\"remove-workingTag\\\">>\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag\u003CworkingTag>]\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\u003C\u003C__oldTag__>> />\\n\u003C/$fieldmangler>\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"working tag `$oldTag$` removed\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\n\"},\"$:/plugins/kookma/commander/macros/slider\":{\"title\":\"$:/plugins/kookma/commander/macros/slider\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define commander-slider(title, default:\\\"closed\\\")\\n\u003C$set name=\\\"revealState\\\" value=\u003C\u003Cqualify \\\"$:/state/commander/reveal/$title$\\\">>>\\n\u003Ch2>\\n \u003C$reveal type=\\\"nomatch\\\" state=\u003C\u003CrevealState>> text=\\\"open\\\" default=\\\"$default$\\\">\\n \u003C$button class=\\\"tc-btn-invisible tc-tiddlylink\\\" set=\u003C\u003CrevealState>> setTo=\\\"open\\\">\\n {{$:/core/images/right-arrow}}\\n \u003C/$button>\\n \u003C/$reveal>\\n \u003C$reveal type=\\\"match\\\" state=\u003C\u003CrevealState>> text=\\\"open\\\" default=\\\"$default$\\\">\\n \u003C$button class=\\\"tc-btn-invisible tc-tiddlylink\\\" set=\u003C\u003CrevealState>> setTo=\\\"closed\\\">\\n {{$:/core/images/down-arrow}}\\n \u003C/$button>\\n \u003C/$reveal>\\n \u003C$view tiddler=\\\"$title$\\\" field=\\\"caption\\\">\\n \u003C$view tiddler=\\\"$title$\\\" field=\\\"title\\\">\u003C/$view>\\n \u003C/$view>\\n \\n\u003C/h2>\\n\\n\u003C$reveal type=\\\"match\\\" state=\u003C\u003CrevealState>> text=\\\"open\\\" default=\\\"$default$\\\">\\n\u003C$transclude tiddler=\\\"$title$\\\" mode=\\\"block\\\" />\\n\u003C/$reveal>\\n\u003C/$set>\\n\\\\end\"},\"$:/plugins/kookma/commander/macros/utility\":{\"title\":\"$:/plugins/kookma/commander/macros/utility\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define display(label,text)\\n\u003C$set name=\\\"stateTid\\\" value=\\\"$:/temp/commander/display/popup/$label$\\\" >\\n\u003C$button popup=\u003C\u003CstateTid>> class=\\\"tc-btn-invisible\\\">\u003Cspan style=\\\"text-decoration: underline\\\">$label$\u003C/span>\u003C/$button>\\n\u003C$reveal type=\\\"nomatch\\\" text=\\\"\\\" default=\\\"\\\" state=\u003C\u003CstateTid>> animate=\\\"yes\\\">\\n\u003Cspan style=\\\"color:blue;\\\">\u003C$text text=\u003C\u003C__text__>> />\u003C/span>\u003C/$reveal>\\n\u003C/$set>\\n\\\\end\\n\\n\\\\define is-filterSeearch-newer-than-selectedTitles(TidA, TidB)\\n\u003C$set name=\\\"tidAMod\\\" value={{{ [[$TidA$]get[modified]] }}}>\\n\u003C$set name=\\\"tidBMod\\\" value={{{ [[$TidB$]get[modified]] }}}>\\n\u003C$set name=\\\"tidAText\\\" value={{{ [[$TidA$]get[text]] }}}>\\n\u003C$set name=\\\"tidBText\\\" value={{{ [[$TidB$]get[text]] }}}>\\n\u003C$list filter=\\\"[\u003C__TidB__>get[text]minlength[1]]\\\" variable=ignore>\\n\u003C$reveal type=\\\"nomatch\\\" default=\u003C\u003CtidAText>> text=\u003C\u003CtidBText>>>\\n\u003C$list filter=\\\"[\u003CtidAMod>] [\u003CtidBMod>] +[nsort[]last[1]removesuffix\u003CtidBMod>]\\\">\\nA new filter search has been detected, click on the search button to apply it.\\n\u003C/$list>\\n\u003C/$reveal>\\n\u003C/$list>\\n\u003C/$set>\\n\u003C/$set>\\n\u003C/$set>\\n\u003C/$set>\\n\\\\end\\n\\n!!Remarks\\n;is-filterSeearch-newer-than-selectedTitles\\n* Checks `TidA` and `TidB` for modified date and text\\n* If They are not empty, then\\n** checks if the text of two are equal, if not\\n** checks to see if `TidB` is newer or not\\n** if newer shows a message, to apply the new search filter\\n* Note\\n** `TidA=\\\"$:/temp/commander\\\"`\\n** `TidB=\\\"$:/temp/commander/search-box\\\"`\\n* is-filterSeearch-newer-than-selectedTitles is called from $:/plugins/kookma/commander/search/ui\\n\\n;display\\n* gets a label and a text\\n* create an inline label\\n* on click label, the text is displayed as temporary popup\\n* losing focus, the text goes hidden\\n* this macro is used in customized compSelective to show the active filter\"},\"$:/plugins/kookma/commander/readme\":{\"title\":\"$:/plugins/kookma/commander/readme\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"; Tiddler Commander\\nTiddler Commander, in short ''Commander'' is a unique tool for batch operations on tiddlers. Commander has the below features\\n\\n* Bulk tiddler creation/deletion\\n* Combo search to filter and select tiddlers\\n* Title operation: add, remove prefixes and suffixes, also remove cahras form begining and end of title (on renaming tiddlers, [[relink|$:/plugins/kookma/commander/help/uicomp/relink]] can be used to update title in other tiddlers)\\n* Tag operation: add, remove, replace\\n* Field operation: add, remove, rename, and set field value\\n* SNR, search and replace in all fields including text, tags, //title//, and common fields\\n* Inspect, to review and inspect tiddlers in one place, scroll among them and edit all fields (including common fields), tags, text (title is an exception!)\\n* Log, create logs of all operations\\n* Search, //save and load// any combination of filter search\\n\\n; Start Commander\\n* Normally Commander adds its icon: \u003Cspan class=\\\"cmd-doc\\\">{{$:/plugins/kookma/commander/images/commander.svg}}\u003C/span> to page controls.\\n* Open the right sidebar and click on the \u003Cspan class=\\\"cmd-doc\\\">{{$:/plugins/kookma/commander/images/commander.svg}}\u003C/span> Commander is started\\n* In standard Tiddlywiki, control buttons are shown on the right sidebar under site title.\\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-Commander/\\n* Code: https://github.com/kookma/TW-Commander\\n\\n\u003Cstyle>\\n.cmd-doc svg{\\nwidth: 1.2em;\\nheight: 1.2em;\\nvertical-align: middle;}\\n\u003C/style>\"},\"$:/plugins/kookma/commander/search/filter-button/clear\":{\"title\":\"$:/plugins/kookma/commander/search/filter-button/clear\",\"list-after\":\"$:/plugins/kookma/commander/search/filter-button/search\",\"tags\":\"$:/tags/Commander/Search/FilterButton\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import $:/plugins/kookma/commander/macros/definition\\n\\n\u003C$reveal type=\\\"nomatch\\\" stateTitle=\u003C\u003CsearchboxTid>> stateField=\\\"text\\\" text=\\\"\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" tooltip=\\\"clear search box and selected tiddlers\\\">\\n\u003C$action-setfield $tiddler=\u003C\u003CsearchboxTid>> $field=\\\"text\\\" $value=\\\"\\\"/>\\n\u003C$action-setfield $tiddler=\\\"$:/temp/commander\\\" $field=\\\"text\\\" $value=\\\"\\\"/>\\n\u003C$action-setfield $tiddler=\\\"$:/state/commander/snr/select-tiddler\\\" $field=\\\"text\\\" $value=\\\"\\\"/>\u003C!-- SNR selection -->\\n\u003C$action-setfield $tiddler=\\\"$:/state/compInspect/temp/commander/selectState-tiddler\\\" $field=\\\"text\\\" $value=\\\"\\\"/> \u003C!-- Inspect selection -->\\n{{$:/core/images/close-button}}\\n\u003C/$button>\\n\u003C/$reveal>\\n\\n\u003C!--\\nthere is extra action should be removed\\n-->\"},\"$:/plugins/kookma/commander/search/filter-button/dropdown\":{\"title\":\"$:/plugins/kookma/commander/search/filter-button/dropdown\",\"tags\":\"$:/tags/Commander/Search/FilterButton\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import $:/plugins/kookma/commander/macros/definition\\n\\\\whitespace trim\\n\\n\u003Cspan class=\\\"tc-popup-keep\\\">\\n\u003C$button popup=\u003C\u003Cqualify \\\"$:/state/commander/filterDropdown\\\">> class=\\\"tc-btn-invisible\\\" tooltip=\\\"select a search filter\\\">\\n{{$:/core/images/down-arrow}}\\n\u003C/$button>\\n\u003C/span>\\n\\n\u003C$reveal state=\u003C\u003Cqualify \\\"$:/state/commander/filterDropdown\\\">> type=\\\"popup\\\" position=\\\"belowleft\\\" animate=\\\"yes\\\">\\n\u003C$set name=\\\"tv-show-missing-links\\\" value=\\\"yes\\\">\\n\u003C$linkcatcher to=\u003C\u003CsearchboxTid>> >\\n\u003Cdiv class=\\\"tc-block-dropdown-wrapper\\\">\\n\u003Cdiv class=\\\"tc-block-dropdown tc-edit-type-dropdown\\\">\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/Filter]!is[draft]]\\\">\\n\u003C$link to={{!!filter}}>\u003C$let tv-wikilinks=\\\"no\\\">\u003C$transclude field=\\\"description\\\"/>\u003C/$let>\u003C/$link>\\n\u003C/$list>\\n\u003C/div>\\n\u003C/div>\\n\u003C/$linkcatcher>\\n\u003C/$set>\\n\u003C/$reveal>\"},\"$:/plugins/kookma/commander/search/filter-button/save\":{\"title\":\"$:/plugins/kookma/commander/search/filter-button/save\",\"list-after\":\"$:/plugins/kookma/commander/search/filter-button/clear\",\"tags\":\"$:/tags/Commander/Search/FilterButton\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import $:/plugins/kookma/commander/macros/definition\\n\\n\u003C$reveal type=\\\"nomatch\\\" stateTitle=\u003C\u003CsearchboxTid>> stateField=\\\"text\\\" text=\\\"\\\">\\n\u003C$button class=\\\"tc-btn-invisible\\\" tooltip=\\\"save current search\\\" popup=\u003C\u003Cqualify \\\"$:/state/commander/SaveDropdown\\\">> >\\n{{$:/core/images/file}}\\n\u003C/$button>\\n\u003C/$reveal>\\n\\n\u003C$reveal state=\u003C\u003Cqualify \\\"$:/state/commander/SaveDropdown\\\">> type=\\\"popup\\\" class=\\\"tc-popup-keep\\\" position=\\\"belowleft\\\" animate=\\\"yes\\\">\\n\u003Cdiv class=\\\"tc-block-dropdown-wrapper\\\">\\n\u003Cdiv class=\\\"tc-block-dropdown tc-edit-type-dropdown\\\">\\n\u003Cdiv class=\\\"tc-dropdown-item-plain\\\">\\nSave new search filter\u003Cbr>\u003Cbr>\\n\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/save-new-filter\\\"\\ntag=\\\"input\\\"\\ndefault=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\"\\nplaceholder=\\\"description for new filter\\\"\\n/> \u003Cbr>\u003Cbr>\\n\\n\u003C$button class=\\\"tc-btn\\\"> Save new filter\\n\u003C$macrocall $name=\\\"create-new-filter\\\" \\n description={{$:/temp/commander/save-new-filter}} \\n\\tbasetitle=\\\"$:/plugins/kookma/commander/filters/yourFilter\\\" \\n\\tfilter={{{[\u003CsearchboxTid>get[text]]}}} \\t/>\\n\u003C$action-deletetiddler $tiddler=\\\"$:/temp/commander/save-new-filter\\\"/>\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Cqualify \\\"$:/state/commander/SaveDropdown\\\">> />\\n\u003C/$button>\\n\u003C/div>\\n\u003C/div>\\n\u003C/div>\\n\u003C/$reveal>\\n\\n\u003C!-- ToDO\\ncorrect classes for textbox\\n-->\"},\"$:/plugins/kookma/commander/search/macros/create-new-filter\":{\"title\":\"$:/plugins/kookma/commander/search/macros/create-new-filter\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define create-new-filter(description:\\\"\\\", basetitle:\\\"\\\", filter:\\\"\\\")\\n\u003C$list filter=\\\"[\u003C__description__>!is[blank]]\\\" variable=\\\"ignore\\\">\\n\u003C$action-createtiddler \\n $basetitle=\\\"\\\"\\\"$basetitle$\\\"\\\"\\\"\\n tags=\\\"$:/tags/Commander/Filter\\\"\\n description=\u003C\u003C__description__>>\\n filter=\\\"\\\"\\\"$filter$\\\"\\\"\\\"\\n /> \\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/search/macros/select-deselect\":{\"title\":\"$:/plugins/kookma/commander/search/macros/select-deselect\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define select-all()\\n\u003C$list filter=\\\"[subfilter\u003Cfiltertext>!is[missing]!tag\u003CworkingTag>]\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-add-tag\\\" $param=\u003C\u003CworkingTag>> />\\n\u003C/$fieldmangler>\\n\\\\end\\n\\n\\\\define deselect-all()\\n\u003C$list filter=\\\"[tag\u003CworkingTag>]\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\u003C\u003CworkingTag>> />\\n\u003C/$fieldmangler>\\n\\\\end\"},\"$:/plugins/kookma/commander/search/macros/warning\":{\"title\":\"$:/plugins/kookma/commander/search/macros/warning\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define warn-for-selectedTids-from-previous-operation()\\n\u003C$list filter=\\\"[tag\u003CworkingTag>]-[subfilter\u003Cfiltertext>]+[count[]!match[0]] \\\">\\n\u003Cspan style=\\\"color:red;font-size:0.85em\\\">There are remained selected tiddlers from previous search! Remove them by pressing ''deselect all''!\u003C/span>\\n\u003C/$list>\\n\\\\end\"},\"$:/plugins/kookma/commander/search/selection\":{\"title\":\"$:/plugins/kookma/commander/search/selection\",\"caption\":\"Select tiddlers\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import $:/plugins/kookma/commander/macros/definition\\n\u003C$checkbox tiddler=\u003C\u003CselectiveOpsTid>> field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\" uncheckactions=\u003C\u003Cdeselect-all>> > Selective operation?\u003C/$checkbox>\\n\\n\u003C$reveal type=\\\"nomatch\\\" stateTitle=\u003C\u003CselectiveOpsTid>> stateField=\\\"text\\\" text=\\\"yes\\\" tag=\\\"div\\\" class=\\\"kk-commander-tiddler-list kk-commander-columns3\\\">\\n\u003C$list filter=\\\"[subfilter\u003Cfiltertext>!prefix[$:/temp/commander]!is[missing]]\\\">\u003C$link/>\u003Cbr>\u003C/$list>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" stateTitle=\u003C\u003CselectiveOpsTid>> stateField=\\\"text\\\" text=\\\"yes\\\" tag=\\\"div\\\">\\n\u003C$button actions=\u003C\u003Cselect-all>> > Select all\u003C/$button> \u003C$button actions=\u003C\u003Cdeselect-all>> > Deselect all\u003C/$button>\\n\u003Csmall style=\\\"margin-left:10px;\\\">Number of tiddlers selected: \u003C$count filter=\\\"[tag\u003CworkingTag>]\\\" />\u003C/small>\u003Cbr>\\n\u003C\u003Cwarn-for-selectedTids-from-previous-operation>>\\n\u003C/$reveal>\\n\\n\\n\u003C$reveal type=\\\"match\\\" stateTitle=\u003C\u003CselectiveOpsTid>> stateField=\\\"text\\\" text=\\\"yes\\\" tag=\\\"div\\\" class=\\\"kk-commander-tiddler-list kk-commander-columns3\\\">\\n\u003C$list filter=\\\"[subfilter\u003Cfiltertext>!prefix[$:/temp/commander]!is[missing]]\\\">\\n\u003C$checkbox tag=\u003C\u003CworkingTag>>> \u003C$link/>\u003C/$checkbox>\u003Cbr>\\n\u003C/$list>\\n\u003C/$reveal>\\n\\n\u003C!-- Description\\nThis tiddler implement interface to selectivly add tiddlers for commander operations.\\nEach selected tiddler gets a working tag\\n-->\"},\"$:/plugins/kookma/commander/search/ui\":{\"title\":\"$:/plugins/kookma/commander/search/ui\",\"caption\":\"Commander filter search\",\"code-body\":\"yes\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Cdiv class=\\\"tc-search tc-advanced-search\\\" style=\\\"margin-bottom:-12px;\\\">\u003C!-- negative margin for displaying matches -->\\nCombo search \u003C$edit-text tiddler=\u003C\u003CsearchboxTid>> type=\\\"search\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\"enter keywords or make a filter search e.g. [tag[myTag]]\\\" focus={{$:/plugins/kookma/commander/config/AutoFocus}}/>\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/Search/FilterButton]!has[draft.of]]\\\">\u003C$transclude/>\u003C/$list>\\n\u003C/div>\"},\"$:/plugins/kookma/commander/setting/ui\":{\"title\":\"$:/plugins/kookma/commander/setting/ui\",\"caption\":\"Setting\",\"icon\":\"$:/core/images/options-button\",\"list-after\":\"$:/plugins/kookma/commander/inspect/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/Setting]!has[draft.of]]\\\" \\ndefault:\\\"$:/plugins/kookma/commander/setting/uicomp/snr\\\"\\nclass:\\\"tc-vertical cmd-tab-colorful cmd-tab-wd\\\">>\\n\"},\"$:/plugins/kookma/commander/setting/uicomp/delete-all-temp-tiddlers\":{\"title\":\"$:/plugins/kookma/commander/setting/uicomp/delete-all-temp-tiddlers\",\"caption\":\"Temporary tiddlers\",\"list-after\":\"$:/plugins/kookma/commander/setting/uicomp/relink\",\"tags\":\"$:/tags/Commander/Setting\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define delete-all-temps()\\n\u003C$action-deletetiddler $filter=\\\"[search:title[$:/temp/commander/]]\\\" />\\n\\\\end\\n\\n\u003C$set name=numTids value={{{ [search:title[$:/temp/commander/]count[]] }}}>\\n\u003C$reveal type=\\\"match\\\" text=\\\"0\\\" default=\u003C\u003CnumTids>> >\\nNo temporary tiddlers is existed to delete!\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"gt\\\" text=\\\"0\\\" default=\u003C\u003CnumTids>> >\\nNumber of temporary tiddlers (including log tiddlers): \u003C\u003CnumTids>>\u003Cbr>\\n\u003C/$reveal>\\n\u003C/$set>\\n\\n\u003C$macrocall $name=\\\"compConfirmAction\\\"\\nbtnLabel=\\\"Delete temp tiddlers\\\" \\nconfirmMessage=\\\"Are you sure you wish to delete\\\"\\nstateTiddler=\\\"$:/state/commander/setting/delete-temps\\\"\\ncountFilter=\\\"[search:title[$:/temp/commander/]]\\\"\\nactionMacro=\\\"delete-all-temps\\\"/>\"},\"$:/plugins/kookma/commander/setting/uicomp/minlength\":{\"title\":\"$:/plugins/kookma/commander/setting/uicomp/minlength\",\"caption\":\"Search minimum length\",\"tags\":\"$:/tags/Commander/Setting\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Controls the minimum length of a search string before results are displayed.\\n\\n\u003Clabel class=\\\"kk-cmd-label\\\">Minlength\u003C/label>\u003C$edit-text tiddler=\\\"$:/plugins/kookma/commander/config/minlength\\\" field=text default=3 placeholder=\\\"enter a number\\\" tag=input/>\"},\"$:/plugins/kookma/commander/setting/uicomp/search-filters\":{\"title\":\"$:/plugins/kookma/commander/setting/uicomp/search-filters\",\"caption\":\"Search filter\",\"tags\":\"$:/tags/Commander/Setting\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"The below list shows the Commander search filter. To edit click on the link and edit tiddler for filter syntax or description\\n\\n\u003Cdetails>\\n\u003Csummary>Commander saved filter search\u003C/summary>\\n\u003Cdl>\\n\u003C$list filter=\\\"[all[tiddlers+shadows]tag[$:/tags/Commander/Filter]]\\\" >\\n\u003Cdt>\u003C$link/>\u003C/dt>\\n\u003Cdd>\u003Cspan style=\\\"display:inline-block;font-weight:700;width:100px\\\">Description:\u003C/span>\u003C$view field=\\\"description\\\"/>\u003C/dd>\\n\u003Cdd>\u003Cspan style=\\\"display:inline-block;font-weight:700;width:100px\\\">Filter:\u003C/span>\u003C$view field=\\\"filter\\\"/>\u003C/dd>\\n\u003C/$list>\\n\u003C/dl>\\n\u003C/details>\"},\"$:/plugins/kookma/commander/setting/uicomp/snr\":{\"title\":\"$:/plugins/kookma/commander/setting/uicomp/snr\",\"caption\":\"Snr setting\",\"tags\":\"$:/tags/Commander/Setting\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Csnr-difftext-cleanup>>\\n\u003Cdiv style=\\\"padding-left:25px;font-size:0.9em\\\">\\n\\nThe cleanup attribute determines which optional post-processing should be applied to the diffs:\\n\\n* none: no cleanup is performed\\n* semantic (default): rewrites the diffs for human readability\\n* efficient: rewrites the diffs to minimise the number of operations for subsequent processing\\n\u003C/div>\"},\"$:/plugins/kookma/commander/snr/macros/actions\":{\"title\":\"$:/plugins/kookma/commander/snr/macros/actions\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define regexp-flags()\\n{{$:/state/commander/snr/gm}}{{$:/state/commander/snr/case-sensitive}}{{$:/state/commander/snr/unicode}}\\n\\\\end\\n\\n\\\\define snr-ui-show-diffs()\\n\u003Cform class=\\\"cmd-snr-form\\\" style=\\\"width:100%;\\\">\\n \u003Cfieldset>\\n \u003Clegend style=\\\"color:#FF0000;\\\">Differences\u003C/legend>\\nTiddler: \u003C$link to={{$:/state/commander/snr/select-tiddler}}>\u003C$text text={{$:/state/commander/snr/select-tiddler}}/>\u003C/$link>\\n\\n\u003C$wikify name=flags text=\u003C\u003Cregexp-flags>> >\\n\\n\u003C$macrocall $name=\\\"replace-text-diff\\\" \\n tiddler={{$:/state/commander/snr/select-tiddler}} \\n field={{$:/state/commander/snr/select-tiddler/field}} \\n replace={{$:/state/commander/snr/replace-text}} \\n replaceWith={{$:/state/commander/snr/replace-text-with}} \\n flags=\u003C\u003Cflags>> \\n wholeWords={{$:/state/commander/snr/whole-words}}\\n/>\\n\\n\u003C/$wikify>\\n\u003C/fieldset>\\n\u003C/form>\\n\\\\end\\n\\n\\\\define snr-check-diffs(tiddler:\\\"\\\", field:\\\"\\\")\\n\\\\whitespace trim\\n\u003C$wikify name=flags text=\u003C\u003Cregexp-flags>> >\\n\u003C$wikify name=\\\"result\\\" text=\\\"\\\"\\\"\\n\u003C$macrocall $name=\\\"replace-text\\\" \\n tiddler=\u003C\u003C__tiddler__>>\\n field=\u003C\u003C__field__>>\\n replace={{$:/state/commander/snr/replace-text}} \\n replaceWith={{$:/state/commander/snr/replace-text-with}} \\n flags=\u003C\u003Cflags>> \\n wholeWords={{$:/state/commander/snr/whole-words}}\\n/>\\\"\\\"\\\">\\n\u003C$reveal type=\\\"match\\\" text={{{ [\u003C__tiddler__>get\u003C__field__>] }}} default=\u003C\u003Cresult>> >\\nsame\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"nomatch\\\" text={{{ [\u003C__tiddler__>get\u003C__field__>] }}} default=\u003C\u003Cresult>> >\\ndifferent\\n\u003C/$reveal>\\n\u003C/$wikify>\\n\u003C/$wikify>\\n\\\\end\\n\\n\\\\define search-replace-in-tiddler-field(tiddler:\\\"\\\",field:\\\"\\\",replace:\\\"\\\",replaceWith:\\\"\\\")\\n\u003C$wikify name=ss text=\u003C\u003Csnr-check-diffs \\\"\\\"\\\"$tiddler$\\\"\\\"\\\" \\\"\\\"\\\"$field$\\\"\\\"\\\">> >\\n\u003C$list filter=\\\"[\u003Css>] -same\\\" variable=ignore>\\n\u003C$list filter=\\\"[\u003C__tiddler__>has[title]]\\\" variable=\\\"ignore\\\">\\n\u003C$wikify name=flags text=\u003C\u003Cregexp-flags>> >\\n\u003C$macrocall $name=\\\"replace-text-button\\\" \\n tiddler=\u003C\u003C__tiddler__>> \\n field=\u003C\u003C__field__>>\\n replace=\u003C\u003C__replace__>>\\n replaceWith=\u003C\u003C__replaceWith__>> \\n flags=\u003C\u003Cflags>> \\n wholeWords={{$:/state/commander/snr/whole-words}}\\n/>\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"`$field$` field has been changed\\\"\\\"\\\" tidItem=\u003C\u003C__tiddler__>> />\\n\u003C$macrocall $name=\\\"clear-select-tiddler-if-field-is-title\\\" tiddler=\u003C\u003C__tiddler__>> field=\u003C\u003C__field__>> />\\n\u003C/$wikify>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$wikify>\\n\\\\end\\n\\n\\\\define clear-select-tiddler-if-field-is-title(tiddler, field)\\n\u003C$list filter=\\\"[\u003C__field__>] +[search[title]]\\\" variable=\\\"ignore\\\">\\n\u003C$action-setfield $tiddler=\\\"$:/state/commander/snr/select-tiddler\\\" text=\\\"\\\"/>\\n\u003C$action-setfield $tiddler=\\\"$:/temp/commander/selected-titles\\\" $index=\u003C\u003C__tiddler__>> />\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define search-replace-in-field-bulk()\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C\u003Ccreate-log-tiddler \\\"SNR operation\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]]\\\" >\\n \u003C$macrocall \\n $name=\\\"search-replace-in-tiddler-field\\\"\\n tiddler=\u003C\u003CcurrentTiddler>> \\n field={{$:/state/commander/snr/select-tiddler/field}} \\n replace={{$:/state/commander/snr/replace-text}} \\n replaceWith={{$:/state/commander/snr/replace-text-with}} \\n />\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define search-replace-in-field-single-tiddler()\\n\u003C\u003Ccreate-log-tiddler \\\"SNR operation\\\">>\\n \u003C$macrocall \\n $name=\\\"search-replace-in-tiddler-field\\\"\\n tiddler={{$:/state/commander/snr/select-tiddler}}\\n field={{$:/state/commander/snr/select-tiddler/field}} \\n replace={{$:/state/commander/snr/replace-text}} \\n replaceWith={{$:/state/commander/snr/replace-text-with}} \\n />\\n\\\\end\\n\\n\\\\define snr-actions()\\n\u003C$button actions=\u003C\u003Csearch-replace-in-field-single-tiddler>> tooltip=\\\"search and replace in a single tiddler\\\" class=\\\"cmd-btn\\\">\\nReplace?\\n\u003C/$button> \\n\u003C!-- replace in bulk tiddler with confirmation -->\\n\u003C$macrocall $name=\\\"compConfirmAction\\\"\\ncountFilter=\u003C\u003Csearchfilter>>\\nactionMacro=\\\"search-replace-in-field-bulk\\\"\\nstateTiddler=\\\"$:/state/commander/SelectiveReplaceAllDropdown\\\"\\nconfirmMessage=\\\"Are you sure you wish to replace text in\\\" \\nbtnLabel=\\\"Replace all?\\\"/>\\n\\\\end\"},\"$:/plugins/kookma/commander/snr/macros/inputs\":{\"title\":\"$:/plugins/kookma/commander/snr/macros/inputs\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define snr-ui-inputs()\\n\u003Cform class=\\\"cmd-snr-form\\\">\\n \u003Cfieldset>\\n \u003Clegend>Search and Replace\u003C/legend>\\n\\n\u003Cdiv class=\\\"item\\\">\\n\u003Clabel>Tiddler title\u003C/label>\\n\u003C$select tiddler=\\\"$:/state/commander/snr/select-tiddler\\\" default=\\\"\\\" class=\\\"cmd-snr-textbox\\\">\\n\u003Coption value=\\\"\\\">None\u003C/option>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\" >\\n\u003Coption value=\u003C\u003CcurrentTiddler>>>\u003C$text text=\u003C\u003CcurrentTiddler>>/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C/div>\\n\\n\u003Cdiv class=\\\"item\\\">\\n\u003Clabel>Field name\u003C/label>\\n\u003C$select tiddler=\\\"$:/state/commander/snr/select-tiddler/field\\\" default=\\\"text\\\">\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>fields[]]\\\">\\n\u003Coption value=\u003C\u003CcurrentTiddler>>>\u003C$text text=\u003C\u003CcurrentTiddler>>/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C/div>\\n\\n\u003Cdiv class=\\\"item\\\">\\n\u003Clabel>Search text\u003C/label>\\n\u003C$edit-text \\n tiddler=\\\"$:/state/commander/snr/replace-text\\\" \\n tag=\\\"input\\\" \\n default=\\\"\\\" \\n placeholder=\\\" text to replace\\\"\\n class=\\\"cmd-snr-textbox\\\"/>\\n\u003C/div>\\n\\n\u003Cdiv class=\\\"item\\\">\\n\u003Clabel>Replace with \u003C/label>\\n\u003C$edit-text \\n tiddler=\\\"$:/state/commander/snr/replace-text-with\\\" \\n tag=\\\"input\\\" \\n default=\\\"\\\" \\n placeholder=\\\" new text\\\"\\n class=\\\"cmd-snr-textbox\\\"/>\\n\u003C/div>\\n\u003C!-- Use relink to update titles -->\\n\u003C$list filter=\\\"[[$:/state/commander/snr/select-tiddler/field]get[text]match[title]]\\\" variable=ignore>\\n\u003Cdiv class=\\\"item-relink\\\">{{$:/plugins/kookma/commander/config/relink}}\u003C/div>\\n\u003C/$list>\\n\u003C/fieldset>\\n\u003C/form>\\n\\n\\n\\\\end\"},\"$:/plugins/kookma/commander/snr/macros/regexp-flags\":{\"title\":\"$:/plugins/kookma/commander/snr/macros/regexp-flags\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define snr-regexp-flags()\\n\\n\u003Cform class=\\\"cmd-snr-form\\\">\\n\u003Cfieldset>\\n\u003Clegend>Search flags\u003C/legend>\\n\\n\u003C$checkbox \\n tiddler=\\\"$:/state/commander/snr/case-sensitive\\\" \\n field=\\\"text\\\" \\n checked=\\\"i\\\" \\n unchecked=\\\"\\\"\\n/> ignore case\u003Cbr>\\n\\n\u003C$checkbox \\n tiddler=\\\"$:/state/commander/snr/whole-words\\\" \\n field=\\\"text\\\" \\n checked=\\\"words\\\" \\n unchecked=\\\"characters\\\"\\n/> whole words\u003Cbr>\\n\\n\u003C$checkbox \\n tiddler=\\\"$:/state/commander/snr/unicode\\\" \\n field=\\\"text\\\" \\n checked=\\\"u\\\" \\n unchecked=\\\"\\\"\\n/> unicode\u003Cbr>\\n\\n\u003Cbr>\\n\\n\u003C$radio\\n tiddler=\\\"$:/state/commander/snr/gm\\\" \\n field=\\\"text\\\" \\n value=\\\"\\\"> first match \\n\u003C/$radio>\u003Cbr>\\n\\n\u003C$radio\\n tiddler=\\\"$:/state/commander/snr/gm\\\" \\n field=\\\"text\\\" \\n value=\\\"g\\\"> global match\\n\u003C/$radio>\u003Cbr>\\n\\n\u003C$radio\\n tiddler=\\\"$:/state/commander/snr/gm\\\" \\n field=\\\"text\\\" \\n value=\\\"m\\\"> multiline mode\\n\u003C/$radio>\u003Cbr>\\n\\n\u003C$radio\\n tiddler=\\\"$:/state/commander/snr/gm\\\" \\n field=\\\"text\\\" \\n value=\\\"mg\\\"> global multiline mode\\n\u003C/$radio>\\n\\n\u003C/fieldset>\\n\u003C/form>\\n\\\\end\"},\"$:/plugins/kookma/commander/snr/macros/regexpsub.js\":{\"title\":\"$:/plugins/kookma/commander/snr/macros/regexpsub.js\",\"text\":\"/*\\\\\\ncreated: 20190214160253135\\ntype: application/javascript\\ntitle: $:/plugins/kookma/commander/snr/macros/regexpsub.js\\nmodified: 20200307092210323\\nmodule-type: macro\\n\\nMake regular expression substitutions\\nDeveloped by Mark S\\n\\\\*/\\n(function(){\\n\\n/*jslint node: true, browser: true */\\n\\\"use strict\\\";\\n\\nexports.name = \\\"regexpsub\\\";\\n\\nexports.params = [\\n\\t{name: \\\"searchValue\\\"},\\n\\t{name: \\\"replaceValue\\\"},\\n\\t{name: \\\"sourceText\\\"},\\n\\t{name: \\\"flags\\\"},\\n {name: \\\"wholeWords\\\"}\\n];\\n\\n/*\\nRun the macro\\n*/\\nexports.run = function(searchValue, replaceValue, sourceText, flags = \\\"gi\\\", wholeWords = \\\"characters\\\") {\\n \\n try {\\n \\n\\tvar searchText;\\n if(wholeWords.toLowerCase() === 'words'){\\n searchText = \\\"\\\\\\\\b\\\" + searchValue + \\\"\\\\\\\\b\\\";\\n } else{\\n searchText = searchValue;\\n }\\n\\t\\t\\n searchText = new RegExp(searchText, flags);\\n return sourceText.replace(searchText,replaceValue);\\n\\n } \\n catch(err) { \\n return \\\"ERROR IN REG EXPRESSION. YOU MAY NEED TO ESCAPE VALUES\\\"; \\n }\\n \\n };\\n\\n})();\\n\",\"created\":\"20190214160253135\",\"type\":\"application/javascript\",\"modified\":\"20200307092210323\",\"module-type\":\"macro\"},\"$:/plugins/kookma/commander/snr/macros/replace-text\":{\"title\":\"$:/plugins/kookma/commander/snr/macros/replace-text\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define nothing-to-replace(tiddler, field:\\\"text\\\") \\n\u003C$diff-text source={{{ [\u003C__tiddler__>get\u003C__field__>] }}} dest={{{ [\u003C__tiddler__>get\u003C__field__>] }}} />\\n\\\\end\\n\\n\\\\define replace-text(tiddler:\\\"\\\",field:\\\"text\\\",replace:\\\"\\\",replaceWith:\\\"\\\",flags:\\\"\\\", wholeWords:\\\"\\\")\\n\\\\whitespace trim\\n\u003C$wikify name=\\\"source\\\" text=\\\"\\\"\\\"\u003C$view tiddler=\u003C\u003C__tiddler__>> field=\u003C\u003C__field__>> mode=\\\"block\\\" format=\\\"text\\\"/>\\\"\\\"\\\">\\n\u003C$wikify name=\\\"result\\\" \\n text=\\\"\\\"\\\"\u003C$macrocall $name=\\\"regexpsub\\\" $type=\\\"text/plain\\\" \\n sourceText=\u003C\u003Csource>> \\n searchValue=\u003C\u003C__replace__>> \\n replaceValue=\u003C\u003C__replaceWith__>> \\n flags=\u003C\u003C__flags__>> \\n wholeWords=\u003C\u003C__wholeWords__>> />\\\"\\\"\\\" \\n >\\n\u003C$text text=\u003C\u003Cresult>>/>\\n\u003C/$wikify>\\n\u003C/$wikify>\\n\\\\end\\n\\n\\\\define replace-text-diff(tiddler:\\\"\\\", field:\\\"text\\\", replace, replaceWith, flags:\\\"\\\", wholeWords:\\\"\\\")\\n\u003C$list filter=\\\"[\u003C__tiddler__>get\u003C__field__>minlength[1]]\\\" variable=null emptyMessage=\\\"No tiddler is selected, or tiddler is empty.\\\">\\n\u003C$list filter=\\\"[\u003C__replace__>minlength[1]]\\\" variable=null emptyMessage=\u003C\u003Cnothing-to-replace \\\"\\\"\\\"$tiddler$\\\"\\\"\\\" \\\"\\\"\\\"$field$\\\"\\\"\\\">> >\\n\\n\u003C$wikify name=\\\"result\\\" \\n text=\\\"\\\"\\\"\u003C$macrocall $name=\\\"replace-text\\\" \\n tiddler=\u003C\u003C__tiddler__>> field=\u003C\u003C__field__>> \\n replace=\u003C\u003C__replace__>> \\n replaceWith=\u003C\u003C__replaceWith__>> \\n flags=\u003C\u003C__flags__>>\\n wholeWords=\u003C\u003C__wholeWords__>> />\\\"\\\"\\\"\\n >\\n\u003C$diff-text source={{{ [\u003C__tiddler__>get\u003C__field__>] }}} dest=\u003C\u003Cresult>> cleanup={{$:/state/commander/snr/setting/cleanup}}/>\\n\u003C/$wikify>\\n\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define replace-text-button(tiddler:\\\"\\\", field:\\\"text\\\", replace:\\\"\\\", replaceWith:\\\"\\\", flags:\\\"\\\", wholeWords:\\\"\\\")\\n\\\\whitespace trim\\n\u003C$list filter=\\\"[\u003C__tiddler__>get\u003C__field__>minlength[1]]\\\" variable=null>\\n\u003C$list filter=\\\"[\u003C__replace__>minlength[1]]\\\" variable=null>\\n\u003C$wikify name=\\\"result\\\" \\n text=\\\"\\\"\\\"\u003C$macrocall $name=\\\"replace-text\\\" \\n tiddler=\u003C\u003C__tiddler__>> \\n field=\u003C\u003C__field__>> \\n replace=\u003C\u003C__replace__>> \\n replaceWith=\u003C\u003C__replaceWith__>> \\n flags=\u003C\u003C__flags__>>\\n wholeWords=\u003C\u003C__wholeWords__>> />\\\"\\\"\\\"\\n >\\n\u003C$reveal type=\\\"nomatch\\\" default=\\\"title\\\" text=\u003C\u003C__field__>> >\\n \u003C$action-setfield $tiddler=\u003C\u003C__tiddler__>> $field=\u003C\u003C__field__>> $value=\u003C\u003Cresult>>/>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" default=\\\"title\\\" text=\u003C\u003C__field__>> >\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003C__tiddler__>> to=\u003C\u003Cresult>> />\\n\u003C/$reveal>\\n\u003C/$wikify>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/snr/ui\":{\"title\":\"$:/plugins/kookma/commander/snr/ui\",\"caption\":\"Snr\",\"icon\":\"$:/core/images/gitter\",\"list-after\":\"$:/plugins/kookma/commander/inspect/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"Search and replcae in tiddler fields!\\n\\n\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/SnrOps]!has[draft.of]]\\\" \\ndefault:\\\"$:/plugins/kookma/commander/snr/uicomp/replace-text\\\"\\nclass:\\\"tc-vertical cmd-tab-colorful cmd-tab-wd\\\">>\\n\\n\"},\"$:/plugins/kookma/commander/snr/uicomp/replace-text\":{\"title\":\"$:/plugins/kookma/commander/snr/uicomp/replace-text\",\"caption\":\"Search and replace\",\"icon\":\"$:/core/images/gitter\",\"tags\":\"$:/tags/Commander/SnrOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Cdiv class=\\\"cmd-snr-row\\\">\\n\u003Cdiv class=\\\"cmd-snr-double-column\\\">\\n\u003C\u003Csnr-ui-inputs>>\\n\u003C/div>\\n\u003Cdiv class=\\\"cmd-snr-column\\\">\\n\u003C\u003Csnr-regexp-flags>> \\n\u003C/div>\\n\u003C/div>\\n\u003C\u003Csnr-ui-show-diffs>>\\n\u003C\u003Csnr-actions>>\"},\"$:/plugins/kookma/commander/stylesheet/alert\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/alert\",\"text\":\".commander-alert {\\n padding: 0.75rem 1.25rem;\\n margin-bottom: 1rem;\\n border: 1px dotted gray;\\n border-radius: 0.25rem;\\n color: #0c5460;\\n background-color: #d1ecf1;\\n border-color: #bee5eb;\\n\\t\\n}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/buttons\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/buttons\",\"text\":\"/**\\n.cmd-btn{\\n font-size:0.85em;\\n font-size:300;\\n color: #666666;\\n background-color: #d8d8d8;\\n padding: 3px 8px 3px 8px;\\n border: 1px solid #a1a1a1;\\n}\\n**/\\n\\n.cmd-btn-wd{\\n\\twidth:20ch;\\n}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/compInspect/table\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/compInspect/table\",\"text\":\"/*compInspect table*/\\n.cmd-ci-table\\n{border-collapse: collapse;}\\n\\n.cmd-ci-table .leftcol{\\nwidth:20%;\\nvertical-align: top;\\ntext-align: right;\\nbackground-color:#f0f0f0;\\n}\\n.cmd-ci-table .rightcol{\\nwidth:650px;\\n}\\n\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/new\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/new\",\"text\":\".kk-commander-log-note{\\n\\tfont-style:italic; font-size:small;\\n}\\n.kk-commander-log-item {\\n\\tcolor:green;\\n}\\n\\n/* This is missing and I added it */\\n.cmd-txt-area{\\n\\tmin-width:25ch;\\n}\\n\\n.cmd-txt-area2{\\n\\tmin-width:50ch;\\n}\\n\\n/* Correct this later*/\\n.kk-cmd-label{\\n\\tdisplay:inline-block;\\n\\twidth:85px;\\n}\\n\\n.kk-cmd-label2{\\n\\tdisplay:inline-block;\\n\\twidth:120px;\\n}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/select-width\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/select-width\",\"text\":\".cmd-sl{\\n width:8ch;\\n}\\n\\n.cmd-select-wd{\\n min-width:25ch;\\n}\\n\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/snr/flexbox\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/snr/flexbox\",\"text\":\".cmd-snr-row {\\n display: flex;\\n flex-direction: row;\\n flex-wrap: wrap;\\n width: 100%;\\n}\\n.cmd-snr-column {\\n display: flex;\\n flex-direction: column;\\n flex-basis: 100%;\\n flex: 1\\n}\\n\\n.cmd-snr-double-column {\\n display: flex;\\n flex-direction: column;\\n flex-basis: 100%;\\n flex: 2\\n}\\n\\n@media screen and (min-width: 800px) {\\n .cmd-snr-column {\\n flex: 1\\n }\\n\\n .cmd-snr-double-column {\\n flex: 2\\n }\\n}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/snr/form\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/snr/form\",\"text\":\".cmd-snr-form{\\n width:100%;\\n}\\n\\n.cmd-snr-textbox {\\n width:100%;\\n box-sizing: border-box;\\n max-width:40ch;\\n }\\n\\n.cmd-snr-form select, .cmd-snr-form input{\\n margin: 0.2rem;\\n}\\n.cmd-snr-form legend{\\n background: #f5f5f5;\\n padding: 3px 6px;\\n}\\n\\n.cmd-snr-form { padding:20px; }\\n.cmd-snr-form .item { padding: 2px; margin:2px; }\\n.cmd-snr-form .item label { display:inline-block; width:100px; margin-left:5px; }\\n.cmd-snr-form .item input { display:inline-block; }\\n.cmd-snr-form .item select { display:inline-block; }\\n\\n/* only for relink checkbox on renaming tiddler */\\n.cmd-snr-form .item-relink { padding: 2px; margin:2px; }\\n\\n \",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/stylesheet/tiddler-list\":{\"title\":\"$:/plugins/kookma/commander/stylesheet/tiddler-list\",\"text\":\".kk-commander-tiddler-list {\\n font-size:small; \\n\\tborder-left:0.5px \\n\\tdotted grey;\\n\\tpadding-left:10px;\\n\\toverflow-y:auto;\\n\\tmax-width:100%;\\n\\tmax-height:$(height)$;\\n}\\n\\n.kk-commander-columns1 { display:block; column-count:1; column-gap:1em; }\\n.kk-commander-columns2 { display:block; column-count:2; column-gap:1em; }\\n.kk-commander-columns3 { display:block; column-count:3; column-gap:1em; }\\n.kk-commander-columns4 { display:block; column-count:4; column-gap:1em; }\\n.kk-commander-columns5 { display:block; column-count:5; column-gap:1em; }\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/kookma/commander/tag/macros/add-remove-replace\":{\"title\":\"$:/plugins/kookma/commander/tag/macros/add-remove-replace\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define add-new-tag-bulk(newTag:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__newTag__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"add-new-tag-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!tag\u003C__newTag__>]\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-add-tag\\\" $param=\u003C\u003C__newTag__>> />\\n\u003C/$fieldmangler>\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"new tag `$newTag$` added\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define remove-old-tag-bulk(oldTag:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\\n\u003C$list filter=\\\"[\u003C__oldTag__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"remove-old-tag-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>tag\u003C__oldTag__>]\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\u003C\u003C__oldTag__>> />\\n\u003C/$fieldmangler>\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"old tag `$oldTag$` removed\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\n\\\\define replace-tag-bulk(oldTag:\\\"\\\", newTag:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\\n\u003C$list filter=\\\"[\u003C__oldTag__>!is[blank]]\\\" variable=null>\\n\u003C$list filter=\\\"[\u003C__newTag__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"replace-tag-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\">\\n\u003C$list filter=\\\"[\u003CcurrentTiddler>tag\u003C__oldTag__>]\\\" variable=ignore\\n emptyMessage=\\\"\\\"\\\"\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"//has not tag `$oldTag$`. Operation ignored.//\\\" tidItem=\u003C\u003CcurrentTiddler>> /> \\\"\\\"\\\">\\n\u003C$fieldmangler>\\n\u003C$action-sendmessage $message=\\\"tm-add-tag\\\" $param=\u003C\u003C__newTag__>> />\\n\u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\u003C\u003C__oldTag__>> />\\n\u003C/$fieldmangler>\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"tag `$oldTag$` replaced with `$newTag$`\\\"\\\"\\\" tidItem=\u003C\u003CcurrentTiddler>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\"},\"$:/plugins/kookma/commander/tag/ui\":{\"title\":\"$:/plugins/kookma/commander/tag/ui\",\"caption\":\"Tag\",\"list-after\":\"$:/plugins/kookma/commander/title/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/TagOps]!has[draft.of]]\\\" default:\\\"$:/plugins/kookma/commander/tag/uicomp/add-remove-tags\\\" \\nclass:\\\"tc-vertical cmd-tab-wd\\\">>\\n\\n\"},\"$:/plugins/kookma/commander/tag/uicomp/add-remove-tags\":{\"title\":\"$:/plugins/kookma/commander/tag/uicomp/add-remove-tags\",\"caption\":\"Add remove tags\",\"tags\":\"$:/tags/Commander/TagOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Clabel class=\\\"kk-cmd-label\\\">New tag\u003C/label>\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/tag-add-remove/new\\\"\\ntag=\\\"input\\\"\\ndefault=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\"\\nplaceholder=\\\" new tag\\\"/>\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Add new tag\\n\u003C$macrocall $name=\\\"add-new-tag-bulk\\\" newTag={{$:/temp/commander/tag-add-remove/new}} />\\n\u003C/$button>\\n\\n\u003Clabel class=\\\"kk-cmd-label\\\">Old tag\u003C/label>\u003C$select class=\\\"cmd-select-wd\\\" tiddler=\\\"$:/temp/commander/tag-add-remove/old\\\" default=\\\"\\\" >\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]tags[]sort[]]-[\u003CworkingTag>]\\\" >\\n\u003Coption>\u003C$view field=\\\"title\\\"/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Remove old tag\\n\u003C$macrocall $name=\\\"remove-old-tag-bulk\\\" oldTag={{$:/temp/commander/tag-add-remove/old}} />\\n\u003C/$button>\\n\\n\"},\"$:/plugins/kookma/commander/tag/uicomp/replace-tags\":{\"title\":\"$:/plugins/kookma/commander/tag/uicomp/replace-tags\",\"caption\":\"Replace tags\",\"list-after\":\"$:/plugins/kookma/commander/tag/uicomp/add-remove-tags\",\"tags\":\"$:/tags/Commander/TagOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Clabel class=\\\"kk-cmd-label\\\">Old tag\u003C/label>\u003C$select class=\\\"cmd-select-wd\\\" tiddler=\\\"$:/temp/commander/replace-tags/old\\\" default=\\\"\\\">\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]tags[]sort[]]-[\u003CworkingTag>]\\\" >\\n\u003Coption>\u003C$view field=\\\"title\\\"/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\\n\u003Clabel class=\\\"kk-cmd-label\\\">New tag\u003C/label>\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/replace-tags/new\\\"\\ntag=\\\"input\\\"\\ndefault=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\"\\nplaceholder=\\\" new tag\\\"\\n/>\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Replace tag\\n\u003C$macrocall $name=\\\"replace-tag-bulk\\\" \\noldTag={{$:/temp/commander/replace-tags/old}} \\nnewTag={{$:/temp/commander/replace-tags/new}} />\\n\u003C/$button>\\n\\n\"},\"$:/plugins/kookma/commander/template/base\":{\"title\":\"$:/plugins/kookma/commander/template/base\",\"caption\":\"base\",\"tags\":\"$:/tags/Commander/Template\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"This is a simple one!\"},\"$:/plugins/kookma/commander/template/doc\":{\"title\":\"$:/plugins/kookma/commander/template/doc\",\"caption\":\"documentation\",\"tags\":\"$:/tags/Commander/Template\",\"type\":\"text/vnd.tiddlywiki\",\"version\":\"beta\",\"text\":\"!! Introduction\\n\u003C\u003C\u003C\\nshort introduction\\n\u003C\u003C\u003C\\n\\n!! Content and parameters\\n\u003C\u003C\u003C\\nThe content, attributes and parameters\\n\\n|!Parameter |!Description |\\n|par1 |description |\\n|par2 |description |\\n\u003C\u003C\u003C\\n\\n!! Example i\\n\u003C\u003C\u003C\\nexample here\\n\u003C\u003C\u003C\\n\\n!! Example ii\\n\u003C\u003C\u003C\\nanother example here\\n\u003C\u003C\u003C\\n\\n!! References\\n\u003C\u003C\u003C\\n# one\\n# Two\\n\u003C\u003C\u003C\"},\"$:/plugins/kookma/commander/template/simple\":{\"title\":\"$:/plugins/kookma/commander/template/simple\",\"caption\":\"simple\",\"tags\":\"$:/tags/Commander/Template\",\"type\":\"text/vnd.tiddlywiki\",\"version\":\"beta\",\"text\":\"! Heading one\\nThis is sunsection i\\n\\n!! Heading two\\nThis is subsection ii.\\n\\n* one\\n* two\\n* three\\n\\n!!! Heading three\\nThis is subsction iii\\n\\n```\\nA sample code\\n```\\n\\n!! Sample table\\n|Table 1. This is caption|c\\n|Heading one|Heading Two|Heading Three|h\\n|r1|100|200|\\n|r2|02|03|\\n|r3|-1|-2|\\n\"},\"$:/plugins/kookma/commander/tiddler/macros/create\":{\"title\":\"$:/plugins/kookma/commander/tiddler/macros/create\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define log-create(msg:\\\"Tiddler existed, operation ignored\\\")\\n\u003C$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=\\\"$(newTitle)$\\\" $value=\\\"$msg$\\\" />\\n\\\\end\\n\\n\\\\define bulk-tiddler-creator(baseTitle, baseTags, datafieldsTid, numberTiddler:\\\"1\\\")\\n\u003C$list filter=\\\"[\u003C__baseTitle__>!is[blank]]\\\" variable=ignore>\\n\u003C\u003Ccreate-log-tiddler \\\"bulk-tiddler-creator\\\">>\\n\u003C$list filter=\\\"[range[9]addprefix[00]] [range[10,99]addprefix[0]] [range[100,500]] +[limit\u003C__numberTiddler__>]\\\" variable=\\\"L1\\\">\\n\u003C$list filter=\\\"[\u003C__baseTitle__>addsuffix\u003CL1>]\\\" variable=\\\"newTitle\\\">\\n\u003C$list filter=\\\"[\u003CnewTitle>] -[has[title]]\\\" variable=\\\"ignore\\\" emptyMessage=\u003C\u003Clog-create>> >\\n\u003C$action-createtiddler $basetitle=\u003C\u003CnewTitle>> tags=\u003C\u003C__baseTags__>> /> \\n\u003C$vars datafieldsTid=\u003C\u003C__datafieldsTid__>> >\\n\u003C\u003Cadd-bulk-fields>>\\n\u003C/$vars>\\n\u003C\u003Clog-create \\\"Tiddler created\\\">>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define oneTid-with-template()\\n\u003C$tiddler tiddler=\u003C\u003CnewTitle>> >\\n \u003C$action-setfield $tiddler=\u003C\u003CmyTemplate>> title=\u003C\u003CcurrentTiddler>> /> \\n \u003C$fieldmangler>\\n \u003C$list filter=\\\"[enlist\u003CmyTags>]\\\" variable=newTag>\\n \u003C$action-sendmessage $message=\\\"tm-add-tag\\\" $param=\u003C\u003CnewTag>> />\\n \u003C/$list>\u003C!--next remove extra tag used by template from new created tiddler-->\\n \u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\\\"$:/tags/Commander/Template\\\" />\\n\u003C/$fieldmangler>\\n\u003C/$tiddler>\\n\\\\end\\n\\n\\n\\\\define bulk-tiddler-with-template-creator(baseTitle, baseTags, datafieldsTid, numberTiddler:\\\"1\\\", template:\\\"\\\")\\n\u003C$list filter=\\\"[\u003C__baseTitle__>!is[blank]]\\\" variable=ignore>\\n\u003C\u003Ccreate-log-tiddler \\\"bulk-tiddler-creator with template\\\">>\\n\u003C$vars datafieldsTid=\u003C\u003C__datafieldsTid__>>\\n myTags=\u003C\u003C__baseTags__>> \\n myTemplate=\u003C\u003C__template__>> >\\n\u003C$list filter=\\\"[range[9]addprefix[00]] [range[10,99]addprefix[0]] [range[100,500]] +[limit\u003C__numberTiddler__>]\\\" variable=\\\"L1\\\">\\n\u003C$list filter=\\\"[\u003C__baseTitle__>addsuffix\u003CL1>]\\\" variable=\\\"newTitle\\\">\\n\u003C$list filter=\\\"[\u003CnewTitle>!has[title]]\\\" variable=\\\"ignore\\\" emptyMessage=\u003C\u003Clog-create>> >\\n \u003C\u003ConeTid-with-template>>\\n \u003C\u003Cadd-bulk-fields>>\\n \u003C\u003Clog-create \\\"Tiddler created\\\">>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$vars>\\n\u003C/$list>\\n\\\\end\\n\\n\"},\"$:/plugins/kookma/commander/tiddler/macros/delete\":{\"title\":\"$:/plugins/kookma/commander/tiddler/macros/delete\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define log-delete-selectively(item, msg:\\\"Tiddler deleted\\\")\\n\u003C$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=\u003C\u003C__item__>> $value=\\\"$msg$\\\" />\\n\\\\end\\n\\n\\\\define delete-tiddlers-selective-bulk()\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>limit[1]]\\\" variable=\\\"ignore\\\">\u003C!-- at least searchfilter shall return one tiddler-->\\n\u003C\u003Ccreate-log-tiddler \\\"delete-tiddler-selectively\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\" variable=\\\"Item\\\">\\n\u003C$action-deletetiddler $tiddler=\u003C\u003CItem>> />\\n\u003C$macrocall $name=\\\"log-delete-selectively\\\" item=\u003C\u003CItem>> />\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\"},\"$:/plugins/kookma/commander/tiddler/macros/export\":{\"title\":\"$:/plugins/kookma/commander/tiddler/macros/export\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define add-export-tag()\\n\u003C$list filter=\u003C\u003Csearchfilter>> >\\n\u003C$fieldmangler>\\n\u003C$list filter=\\\"[enlist{$(exportTagTid)$}]~[[exported]]\\\" variable=\\\"exportTag\\\" >\u003C!-- add all export tags-->\\n\u003C$action-sendmessage $message=\\\"tm-add-tag\\\" $param=\u003C\u003CexportTag>> />\\n\u003C/$list>\\n\u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\u003C\u003CworkingTag>> />\\n\u003C/$fieldmangler>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define remove-export-tag()\\n\u003C$list filter=\u003C\u003Csearchfilter>> >\\n\u003C$fieldmangler>\\n\u003C$list filter=\\\"[\u003CselectiveOpsTid>get[text]match[yes]]\\\" variable=ignore>\\n\u003C$action-sendmessage $message=\\\"tm-add-tag\\\" $param=\u003C\u003CworkingTag>> />\\n\u003C/$list>\\n\u003C$list filter=\\\"[enlist{$(exportTagTid)$}]~[[exported]]\\\" variable=\\\"exportTag\\\" >\u003C!-- remove all export tags-->\\n\u003C$action-sendmessage $message=\\\"tm-remove-tag\\\" $param=\u003C\u003CexportTag>> />\\n\u003C/$list>\\n\u003C/$fieldmangler>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define log-export-selectively(msg:\\\"Tiddler exported\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\" variable=\\\"item\\\">\\n\u003C$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=\u003C\u003Citem>> $value=\\\"$msg$\\\" />\\n\u003C/$list>\\n\\\\end\\n\\n\\n\\\\define commander-exportButton(exportFilter:\\\"[!is[system]sort[title]]\\\",lingoBase,baseFilename:\\\"tiddlers\\\")\\n\u003Cspan class=\\\"tc-popup-keep\\\">\u003C$button popup=\u003C\u003Cqualify \\\"$:/state/popup/export\\\">> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=\u003C\u003Ctv-config-toolbar-class>> selectedClass=\\\"tc-selected\\\">\\n\u003C$list filter=\\\"[\u003Ctv-config-toolbar-icons>match[yes]]\\\">\\n{{$:/core/images/export-button}}\\n\u003C/$list>\\n\u003C$list filter=\\\"[\u003Ctv-config-toolbar-text>match[yes]]\\\">\\n\u003Cspan class=\\\"tc-btn-text\\\">\u003C$text text={{$lingoBase$Caption}}/>\u003C/span>\\n\u003C/$list>\\n\u003C/$button>\u003C/span>\u003C$reveal state=\u003C\u003Cqualify \\\"$:/state/popup/export\\\">> type=\\\"popup\\\" position=\\\"below\\\" animate=\\\"yes\\\">\\n\u003Cdiv class=\\\"tc-drop-down\\\">\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\\\">\\n\u003C$set name=\\\"extension\\\" value={{!!extension}}>\\n\u003C$button class=\\\"tc-btn-invisible\\\">\\n\u003C\u003Ccreate-log-tiddler \\\"exportButton: bulk tiddlers exported\\\">>\\n\u003C$macrocall $name=\\\"log-export-selectively\\\"/>\u003C!--log any tiddler exported-->\\n\u003C\u003Cadd-export-tag>>\u003C!-- by Mohammad-->\\n\u003C$action-sendmessage $message=\\\"tm-download-file\\\" $param=\u003C\u003CcurrentTiddler>> exportFilter=\\\"\\\"\\\"$exportFilter$\\\"\\\"\\\" filename=\u003C\u003CexportButtonFilename \\\"\\\"\\\"$baseFilename$\\\"\\\"\\\">>/>\\n\u003C$action-deletetiddler $tiddler=\u003C\u003Cqualify \\\"$:/state/popup/export\\\">>/>\\n\u003C$transclude field=\\\"description\\\"/>\\n\u003C\u003Cremove-export-tag>>\u003C!-- by Mohammad-->\\n\u003C/$button>\\n\u003C/$set>\\n\u003C/$list>\\n\u003C/div>\\n\u003C/$reveal>\\n\\\\end\"},\"$:/plugins/kookma/commander/tiddler/ui\":{\"title\":\"$:/plugins/kookma/commander/tiddler/ui\",\"caption\":\"Tiddler\",\"list-before\":\"$:/plugins/kookma/commander/title/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/TiddlerOps]!has[draft.of]]\\\"\\ndefault:\\\"$:/plugins/kookma/commander/tiddler/uicomp/create-tiddlers\\\"\\nclass:\\\"tc-vertical cmd-tab-colorful cmd-tab-wd\\\">>\\n\"},\"$:/plugins/kookma/commander/tiddler/uicomp/create-tiddlers\":{\"title\":\"$:/plugins/kookma/commander/tiddler/uicomp/create-tiddlers\",\"caption\":\"Create tiddlers\",\"tags\":\"$:/tags/Commander/TiddlerOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003Clabel class=\\\"kk-cmd-label\\\">Base title\u003C/label>\\n\u003C$edit-text \\n tiddler=\\\"$:/temp/commander/tiddler-base-title\\\" \\n tag=\\\"input\\\" default=\\\"\\\"\\n placeholder=\\\" base title\\\" \\n class=\\\"cmd-txt-area\\\"/>\u003Cbr>\\n\\n\u003Clabel class=\\\"kk-cmd-label\\\">Tags\u003C/label>\\n\u003C$edit-text \\n tiddler=\\\"$:/temp/commander/tiddler-base-tags\\\" \\n tag=\\\"input\\\" default=\\\"\\\"\\n placeholder=\\\" tags\\\" \\n class=\\\"cmd-txt-area\\\"\\n/> \\n\\n\u003C!-- add interface for adding fields -->\\n\u003C$macrocall $name=\\\"add-more-fields-selective-ui\\\"\\n datafieldsTid=\\\"$:/temp/commander/tiddler/datafields/createTiddler\\\"\\n stateTiddler=\\\"$:/state/commander/tiddler-addfields-status\\\" />\\n\\n\\n\u003C$checkbox \\n tiddler=\\\"$:/state/commander/tiddler-template-status\\\" \\n field=\\\"text\\\" \\n checked=\\\"use-template\\\" unchecked=\\\"no-template\\\"\\n default=\\\"no-template\\\"> \\n Use template?\\n\u003C/$checkbox>\\n\\n\u003C$reveal type=\\\"match\\\" state=\\\"$:/state/commander/tiddler-template-status\\\" text=\\\"use-template\\\" default=\\\"no-template\\\" >\\nTemplate\\n\u003C$select tiddler=\\\"$:/temp/commander/template-newtiddler\\\" \\n default=\\\"$:/plugins/kookma/commander/template/base\\\">\\n\u003C$list filter='[all[shadows+tiddlers]tag[$:/tags/Commander/Template]]'>\\n\u003Coption value=\u003C\u003CcurrentTiddler>> >\\n\u003C$view field=\\\"caption\\\">\u003C$view field=\\\"title\\\"/>\u003C/$view>\\n\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\u003C$button class=\\\"tc-btn-invisible\\\"> {{$:/core/images/edit-button}}\\n \u003C$action-sendmessage $message=\\\"tm-edit-tiddler\\\" \\n $param={{{ [[$:/temp/commander/template-newtiddler]get[text]]~[[$:/plugins/kookma/commander/template/base]] }}} />\\n\u003C/$button>\\n\\n\u003C/$reveal>\\n\\nNumber of tiddlers \\n\u003C$select tiddler=\\\"$:/temp/commander/tiddler-base-number\\\" default='1'>\\n\u003C$list filter='[range[1,19, 1]] [range[20,50, 5]] [range[60,100,10]] [range[200,500,100]]'>\\n\u003Coption value=\u003C\u003CcurrentTiddler>>>\u003C$view field='title'/>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\\n\u003C!-- call macros for create tiddlers -->\\n\u003C$reveal type=\\\"nomatch\\\" state=\\\"$:/state/commander/tiddler-template-status\\\" text=\\\"use-template\\\" default=\\\"no-template\\\">\\n \u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Create tiddlers\\n \u003C$macrocall $name=\\\"bulk-tiddler-creator\\\"\\n baseTitle={{$:/temp/commander/tiddler-base-title}}\\n baseTags={{$:/temp/commander/tiddler-base-tags}}\\n datafieldsTid=\\\"$:/temp/commander/tiddler/datafields/createTiddler\\\"\\n numberTiddler={{$:/temp/commander/tiddler-base-number}} />\\n \u003C/$button>\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"match\\\" state=\\\"$:/state/commander/tiddler-template-status\\\" text=\\\"use-template\\\" default=\\\"no-template\\\">\\n \u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Create tiddlers\\n \u003C$macrocall $name=\\\"bulk-tiddler-with-template-creator\\\"\\n baseTitle={{$:/temp/commander/tiddler-base-title}}\\n baseTags={{$:/temp/commander/tiddler-base-tags}}\\n datafieldsTid=\\\"$:/temp/commander/tiddler/datafields/createTiddler\\\"\\n numberTiddler={{$:/temp/commander/tiddler-base-number}}\\n template={{$:/temp/commander/template-newtiddler}}/>\\n \u003C/$button>\\n\u003C/$reveal>\\n\"},\"$:/plugins/kookma/commander/tiddler/uicomp/delete-tiddlers\":{\"title\":\"$:/plugins/kookma/commander/tiddler/uicomp/delete-tiddlers\",\"caption\":\"Delete tiddlers\",\"list-after\":\"$:/plugins/kookma/commander/tiddler/uicomp/create-tiddlers\",\"tags\":\"$:/tags/Commander/TiddlerOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C$set name=numTids value={{{[subfilter\u003Csearchfilter>!is[missing]count[]] }}}>\\n\u003C$reveal type=\\\"match\\\" text=\\\"0\\\" default=\u003C\u003CnumTids>> >\\nNo tiddlers is selected for deleteion!\\n\u003C/$reveal>\\n\u003C$reveal type=\\\"gt\\\" text=\\\"0\\\" default=\u003C\u003CnumTids>> >\\n\\nNumber of tiddlers selected for deletion: \u003C\u003CnumTids>>\u003Cbr>\\nNote that, the delete operation cannot be undone!!\\n\u003Cbr>\\n\\n\u003C$macrocall $name=\\\"compConfirmAction\\\"\\ncountFilter=\\\"[subfilter\u003Csearchfilter>]\\\"\\nactionMacro=\\\"delete-tiddlers-selective-bulk\\\"\\nstateTiddler=\\\"$:/state/commander/SelectiveDeleteDropdown\\\"\\n/>\\n\\n\u003C/$reveal>\\n\u003C/$set>\\n\\n\\n\"},\"$:/plugins/kookma/commander/tiddler/uicomp/export-tiddlers\":{\"title\":\"$:/plugins/kookma/commander/tiddler/uicomp/export-tiddlers\",\"caption\":\"Export tiddlers\",\"list-after\":\"$:/plugins/kookma/commander/tiddler/uicomp/delete-tiddlers\",\"tags\":\"$:/tags/Commander/TiddlerOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define export-tiddler-ui(baseFilename)\\n\u003C$set name=\\\"exportList\\\" filter=\u003C\u003Csearchfilter>> >\u003C!-- without this $SetWidget the exportButton does not work -->\\n\u003C$vars tv-config-toolbar-text=\\\"yes\\\" tv-config-toolbar-class=\\\"tc-button tt-button\\\">\\n\u003C$macrocall $name=\\\"commander-exportButton\\\" exportFilter=\u003C\u003CexportList>> lingoBase=\\\"$:/language/Buttons/ExportTiddlers/\\\" baseFilename=\\\"\\\"\\\"$baseFilename$\\\"\\\"\\\"/>\\n\u003C/$vars>\\n\u003C/$set>\\n\\\\end\\n\\n\\\\define exportFileName-and-Tags-ui() \\n\u003Clabel class=\\\"kk-cmd-label2\\\">Export filename\u003C/label>\u003C$edit-text tiddler=\\\"$:/temp/commander/exportFilename\\\" tag=input default=\\\"tiddlers\\\" placeholder=\\\"tiddlers\\\" class=\\\"cmd-txt-area\\\"/>\\n\u003Cbr>\\n\\n\u003Clabel class=\\\"kk-cmd-label2\\\">Export tags\u003C/label>\u003C$edit-text tiddler=\\\"$:/temp/commander/exportTag\\\" tag=input default=\\\"exported\\\" placeholder=\\\"exported\\\" class=\\\"cmd-txt-area\\\"/>\u003Cbr>\\n\\\\end\\n\\n\u003C$set name=numTids value={{{[subfilter\u003Csearchfilter>!is[missing]count[]] }}}>\\n\u003C$reveal type=\\\"match\\\" text=\\\"0\\\" default=\u003C\u003CnumTids>> >\\nNo tiddlers is selected for export!\\n\u003C/$reveal>\\n\\n\u003C$reveal type=\\\"gt\\\" text=\\\"0\\\" default=\u003C\u003CnumTids>> >\\n\\nNumber of tiddlers selected for export: \u003C\u003CnumTids>>\u003Cbr>\\n\\n\u003C\u003CexportFileName-and-Tags-ui>>\\n\u003C$macrocall $name=\\\"export-tiddler-ui\\\" baseFilename={{{[[$:/temp/commander/exportFilename]get[text]]~[[tiddlers]]}}} />\\n\u003C/$reveal>\\n\u003C/$set>\\n\\n\"},\"$:/plugins/kookma/commander/title/macros/prefix\":{\"title\":\"$:/plugins/kookma/commander/title/macros/prefix\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define log-changePrefix(message, oldTitle, newTitle)\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"$message$. New title [[$newTitle$]]\\\"\\\"\\\" tidItem=\u003C\u003C__oldTitle__>> />\\n\\\\end\\n\\n\\\\define addPrefix-to-tiltle-bulk(prefix:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__prefix__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"addPrefix-to-tiltle-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\">\\n\u003C$list filter=\\\"\\\"\\\"[\u003CcurrentTiddler>addprefix[$prefix$]] -[\u003CcurrentTiddler>]\\\"\\\"\\\" variable=\\\"newTitle\\\">\\n\u003C$list filter=\\\"[\u003CnewTitle>] -[has[title]]\\\" variable=\\\"ignore\\\">\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003CcurrentTiddler>> to=\u003C\u003CnewTitle>> />\\n \u003C$macrocall $name=log-changePrefix message=\\\"title prefix: `$prefix$` added\\\" oldTitle=\u003C\u003CcurrentTiddler>> newTitle=\u003C\u003CnewTitle>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define removePrefix-from-tiltle-bulk(prefix:\\\"\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__prefix__>!is[blank]]\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"removePrefix-from-tiltle-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\">\\n\u003C$list filter=\\\"\\\"\\\"[\u003CcurrentTiddler>removeprefix[$prefix$]] -[\u003CcurrentTiddler>]\\\"\\\"\\\" variable=\\\"newTitle\\\">\\n\u003C$list filter=\\\"[\u003CnewTitle>] -[has[title]]\\\" variable=\\\"ignore\\\">\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003CcurrentTiddler>> to=\u003C\u003CnewTitle>> />\\n \u003C$macrocall $name=log-changePrefix message=\\\"title prefix: `$prefix$` removed\\\" oldTitle=\u003C\u003CcurrentTiddler>> newTitle=\u003C\u003CnewTitle>> />\\n\u003C/$list> \\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/title/macros/remove-cahrs-end\":{\"title\":\"$:/plugins/kookma/commander/title/macros/remove-cahrs-end\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define suffix-actions2()\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]+[prefix\u003Csfx>]\\\" variable=\\\"item\\\">\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003Citem>> to=\u003C\u003Csfx>> />\\n \u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"characters removed from end. New title [[$(sfx)$]]\\\"\\\"\\\" tidItem=\u003C\u003Citem>> />\\n\u003C/$list>\\n\\\\end\\n\\n\\n\\\\define makelink2() [[$(newTitle)$]]\\n\\n\\\\define generate-suffixes2(n:\\\"0\\\")\\n\u003C$list filter=\\\"[\u003C__n__>] -0\\\" variable=null>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\" variable=\\\"item\\\">\\n\u003C$list filter=\\\"\\\"\\\"[\u003Citem>split[]butlast[$n$]join[]trim[]]\\\"\\\"\\\" variable=\\\"newTitle\\\">\\n\u003C$text text=\u003C\u003Cmakelink2>>/>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define remove-chars-from-end-tiltle-bulk(num:\\\"0\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__num__>] -0\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"remove-chars-from-end-tiltle-bulk\\\">>\\n\u003C$vars n=\u003C\u003C__num__>> >\\n\u003C$wikify text=\\\"\\\"\\\"\u003C\u003Cgenerate-suffixes2 n:\\\"$num$\\\">>\\\"\\\"\\\" name=\\\"outputs\\\">\\n \u003C$list filter=\\\"[subfilter\u003Coutputs>]\\\" variable=\\\"sfx\\\">\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]+[prefix\u003Csfx>limit[2]count[]regexp[2]]\\\" emptyMessage=\u003C\u003Csuffix-actions2>> variable=\\\"cnt\\\">\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$wikify>\\n\u003C/$vars>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/title/macros/remove-cahrs-start\":{\"title\":\"$:/plugins/kookma/commander/title/macros/remove-cahrs-start\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define suffix-actions()\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]+[suffix\u003Csfx>]\\\" variable=\\\"item\\\">\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003Citem>> to=\u003C\u003Csfx>> />\\n \u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"characters removed from start. New title [[$(sfx)$]]\\\"\\\"\\\" tidItem=\u003C\u003Citem>> />\\n\u003C/$list>\\n\\\\end\\n\\n\\n\\\\define makelink() [[$(newTitle)$]]\\n\\n\\\\define generate-suffixes(n:\\\"0\\\")\\n\u003C$list filter=\\\"[\u003C__n__>] -0\\\" variable=null>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>has[title]]\\\" variable=\\\"item\\\">\\n\u003C$list filter=\\\"\\\"\\\"[\u003Citem>split[]rest[$n$]join[]trim[]]\\\"\\\"\\\" variable=\\\"newTitle\\\">\\n\u003C$text text=\u003C\u003Cmakelink>>/>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define remove-chars-from-begining-tiltle-bulk(num:\\\"0\\\")\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C$list filter=\\\"[\u003C__num__>] -0\\\" variable=null>\\n\u003C\u003Ccreate-log-tiddler \\\"remove-chars-from-begining-tiltle-bulk\\\">>\\n\u003C$vars n=\u003C\u003C__num__>> >\\n\u003C$wikify text=\\\"\\\"\\\"\u003C\u003Cgenerate-suffixes n:\\\"$num$\\\">>\\\"\\\"\\\" name=\\\"outputs\\\">\\n \u003C$list filter=\\\"[subfilter\u003Coutputs>]\\\" variable=\\\"sfx\\\">\\n \u003C$list filter=\\\"[subfilter\u003Csearchfilter>]+[suffix\u003Csfx>limit[2]count[]regexp[2]]\\\" \\n emptyMessage=\u003C\u003Csuffix-actions>> variable=\\\"cnt\\\">\\n \u003C/$list>\\n \u003C/$list>\\n\u003C/$wikify>\\n\u003C/$vars>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/title/macros/suffix\":{\"title\":\"$:/plugins/kookma/commander/title/macros/suffix\",\"tags\":\"$:/tags/Commander/Macro\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define log-changeSuffix(message, oldTitle, newTitle)\\n\u003C$macrocall $name=\\\"log-add-single-operation\\\" msg=\\\"\\\"\\\"$message$. New title [[$newTitle$]]\\\"\\\"\\\" tidItem=\u003C\u003C__oldTitle__>> />\\n\\\\end\\n\\n\\\\define addSuffix-to-tiltle-bulk(suffix:\\\"\\\")\\n\u003C$list filter=\\\"[\u003C__suffix__>!is[blank]]\\\" variable=null>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C\u003Ccreate-log-tiddler \\\"addSufffix-to-tiltle-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\">\\n\u003C$list filter=\\\"\\\"\\\"[\u003CcurrentTiddler>addsuffix[$suffix$]] -[\u003CcurrentTiddler>]\\\"\\\"\\\" variable=\\\"newTitle\\\">\\n\u003C$list filter=\\\"[\u003CnewTitle>] -[has[title]]\\\" variable=\\\"ignore\\\">\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003CcurrentTiddler>> to=\u003C\u003CnewTitle>> />\\n \u003C$macrocall $name=log-changeSuffix message=\\\"title suffix: `$suffix$` added\\\" oldTitle=\u003C\u003CcurrentTiddler>> newTitle=\u003C\u003CnewTitle>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\\n\\\\define removeSuffix-from-tiltle-bulk(suffix:\\\"\\\")\\n\u003C$list filter=\\\"[\u003C__suffix__>!is[blank]]\\\" variable=null>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>!is[missing]limit[1]]\\\" variable=ignore>\u003C!--check if filter is empty -->\\n\u003C\u003Ccreate-log-tiddler \\\"removeSuffix-from-tiltle-bulk\\\">>\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>]\\\">\\n\u003C$list filter=\\\"\\\"\\\"[\u003CcurrentTiddler>removesuffix[$suffix$]] -[\u003CcurrentTiddler>]\\\"\\\"\\\" variable=\\\"newTitle\\\">\\n\u003C$list filter=\\\"[\u003CnewTitle>] -[has[title]]\\\" variable=\\\"ignore\\\">\\n \u003C$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=\u003C\u003CcurrentTiddler>> to=\u003C\u003CnewTitle>> />\\n \u003C$macrocall $name=log-changeSuffix message=\\\"title suffix: `$suffix$` removed\\\" oldTitle=\u003C\u003CcurrentTiddler>> newTitle=\u003C\u003CnewTitle>> />\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$list>\\n\\\\end\\n\"},\"$:/plugins/kookma/commander/title/ui\":{\"title\":\"$:/plugins/kookma/commander/title/ui\",\"caption\":\"Title\",\"list-after\":\"$:/plugins/kookma/commander/tiddler/ui\",\"tags\":\"$:/tags/Commander\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C\u003Ctabs \\ntabsList:\\\"[all[shadows+tiddlers]tag[$:/tags/Commander/TitleOps]!has[draft.of]]\\\" \\ndefault:\\\"$:/plugins/kookma/commander/title/uicomp/add-remove-prefix\\\"\\nclass:\\\"tc-vertical cmd-tab-colorful cmd-tab-wd\\\">>\\n\\n\u003C!-- relink checkbox for renaming title -->\\n{{$:/plugins/kookma/commander/config/relink}}\"},\"$:/plugins/kookma/commander/title/uicomp/add-remove-chars\":{\"title\":\"$:/plugins/kookma/commander/title/uicomp/add-remove-chars\",\"caption\":\"Remove chars\",\"list-after\":\"$:/plugins/kookma/commander/title/uicomp/add-remove-suffix\",\"tags\":\"$:/tags/Commander/TitleOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define rngcat() [range[0,$(minchars)$]] -0 \\n\\n\u003Clabel style=\\\"width:30ch;\\\">Number of chars\u003C/label>\\n\u003C$select tiddler=\\\"$:/temp/commander/title-remove-chars\\\" default=\\\"0\\\" class=\\\"cmd-sl\\\">\\n\u003C$list filter=\\\"[subfilter\u003Csearchfilter>length[]minall[]subtract[1]] -Infinity\\\" variable=\\\"minchars\\\">\\n\u003C$list filter=\u003C\u003Crngcat>> >\\n\u003Coption value=\u003C\u003CcurrentTiddler>>>\u003C$view field='title'/>\u003C/option>\\n\u003C/$list>\\n\u003C/$list>\\n\u003C/$select>\u003Cbr>\\n\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> First n characters\\n\u003C$macrocall \\n $name=\\\"remove-chars-from-begining-tiltle-bulk\\\" \\n num={{$:/temp/commander/title-remove-chars}} />\\n\u003C/$button>\\n\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Last n characters\\n\u003C$macrocall \\n $name=\\\"remove-chars-from-end-tiltle-bulk\\\" \\n num={{$:/temp/commander/title-remove-chars}} />\\n\u003C/$button>\\n\\n\\n\"},\"$:/plugins/kookma/commander/title/uicomp/add-remove-prefix\":{\"title\":\"$:/plugins/kookma/commander/title/uicomp/add-remove-prefix\",\"caption\":\"Add remove prefix\",\"tags\":\"$:/tags/Commander/TitleOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/title-prefix\\\"\\ntag=\\\"input\\\"\\ndefault=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\"\\nplaceholder=\\\" prefix\\\"\\n/> \u003Cbr>\\n\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Add prefix\\n\u003C$macrocall \\n $name=\\\"addPrefix-to-tiltle-bulk\\\" \\n prefix={{$:/temp/commander/title-prefix}} \\n/>\\n\u003C/$button>\\n\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Remove prefix\\n\u003C$macrocall \\n $name=\\\"removePrefix-from-tiltle-bulk\\\" \\n prefix={{$:/temp/commander/title-prefix}} \\n/>\\n\u003C/$button>\\n\\n\"},\"$:/plugins/kookma/commander/title/uicomp/add-remove-suffix\":{\"title\":\"$:/plugins/kookma/commander/title/uicomp/add-remove-suffix\",\"caption\":\"Add remove suffix\",\"list-after\":\"$:/plugins/kookma/commander/title/uicomp/add-remove-prefix\",\"tags\":\"$:/tags/Commander/TitleOps\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C$edit-text\\ntiddler=\\\"$:/temp/commander/title-suffix\\\"\\ntag=\\\"input\\\" default=\\\"\\\"\\nclass=\\\"cmd-txt-area\\\" placeholder=\\\" suffix\\\" />\u003Cbr>\\n\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Add suffix\\n\u003C$macrocall \\n $name=\\\"addSuffix-to-tiltle-bulk\\\" \\n suffix={{$:/temp/commander/title-suffix}} />\\n\u003C/$button>\\n\\n\u003C$button class=\\\"cmd-btn cmd-btn-wd\\\"> Remove suffix\\n\u003C$macrocall \\n $name=\\\"removeSuffix-from-tiltle-bulk\\\" \\n suffix={{$:/temp/commander/title-suffix}} \\n/>\\n\u003C/$button>\\n\\n\"},\"$:/plugins/kookma/commander/viewtemplate/import\":{\"title\":\"$:/plugins/kookma/commander/viewtemplate/import\",\"tags\":\"$:/tags/ViewTemplate\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\u003C$list filter=\\\"[all[current]match[$:/Import]status[complete]]\\\" variable=\\\"null\\\">\\n\u003C$button actions=\\\"\\\"\\\"\u003C$action-setfield $tiddler=\\\"$:/temp/commander/search-box\\\" text=\\\"[[$:/Import]links[]]\\\"/>\u003C$action-navigate $to=\\\"$:/Commander\\\"/>\\\"\\\"\\\">\\n{{$:/plugins/kookma/commander/images/commander.svg}} Batch edit\\n\u003C/$button>\\n\u003C/$list>\"}}}"}, {"title":"$:/plugins/tiddlywiki/codemirror","name":"CodeMirror","description":"CodeMirror editor","list":"readme usage keyboard license","version":"5.2.3","plugin-type":"plugin","dependents":"","type":"application/json","text":"{\"tiddlers\":{\"$:/config/EditorTypeMappings/application/javascript\":{\"title\":\"$:/config/EditorTypeMappings/application/javascript\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/application/json\":{\"title\":\"$:/config/EditorTypeMappings/application/json\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/application/x-tiddler-dictionary\":{\"title\":\"$:/config/EditorTypeMappings/application/x-tiddler-dictionary\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/text/css\":{\"title\":\"$:/config/EditorTypeMappings/text/css\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/text/html\":{\"title\":\"$:/config/EditorTypeMappings/text/html\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/text/plain\":{\"title\":\"$:/config/EditorTypeMappings/text/plain\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/text/vnd.tiddlywiki\":{\"title\":\"$:/config/EditorTypeMappings/text/vnd.tiddlywiki\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/text/x-markdown\":{\"title\":\"$:/config/EditorTypeMappings/text/x-markdown\",\"text\":\"codemirror\"},\"$:/config/EditorTypeMappings/text/x-tiddlywiki\":{\"title\":\"$:/config/EditorTypeMappings/text/x-tiddlywiki\",\"text\":\"codemirror\"},\"$:/config/codemirror/cursorBlinkRate\":{\"title\":\"$:/config/codemirror/cursorBlinkRate\",\"type\":\"integer\",\"text\":\"530\"},\"$:/config/codemirror/extraKeysTW\":{\"title\":\"$:/config/codemirror/extraKeysTW\",\"extend\":\"extraKeys\",\"type\":\"json\",\"text\":\"{\\n\\t\\\"Ctrl-Esc\\\": \\\"singleSelection\\\",\\n\\t\\\"Esc\\\": \\\"\\\",\\n\\t\\\"Ctrl-S\\\": \\\"\\\",\\n\\t\\\"Ctrl-U\\\": \\\"\\\",\\n\\t\\\"Ctrl-T\\\": \\\"\\\",\\n\\t\\\"Alt-T\\\": \\\"transposeChars\\\",\\n\\t\\\"Alt-U\\\": \\\"undoSelection\\\",\\n\\t\\\"Shift-Alt-U\\\": \\\"redoSelection\\\",\\n\\t\\\"Cmd-U\\\": \\\"\\\",\\n\\t\\\"Tab\\\": \\\"indentAuto()\\\",\\n\\t\\\"Enter\\\": \\\"newLineAndIndent()\\\"\\n}\\n\"},\"$:/config/codemirror/indentUnit\":{\"title\":\"$:/config/codemirror/indentUnit\",\"type\":\"integer\",\"text\":\"2\"},\"$:/config/codemirror/indentWithTabs\":{\"title\":\"$:/config/codemirror/indentWithTabs\",\"type\":\"bool\",\"text\":\"true\"},\"$:/config/codemirror/inputStyle\":{\"title\":\"$:/config/codemirror/inputStyle\",\"type\":\"string\",\"text\":\"textarea\"},\"$:/config/codemirror/keyMap\":{\"title\":\"$:/config/codemirror/keyMap\",\"type\":\"string\",\"text\":\"default\"},\"$:/config/codemirror/lineNumbers\":{\"title\":\"$:/config/codemirror/lineNumbers\",\"type\":\"bool\",\"text\":\"false\"},\"$:/config/codemirror/lineWrapping\":{\"title\":\"$:/config/codemirror/lineWrapping\",\"type\":\"bool\",\"text\":\"true\"},\"$:/config/codemirror/showCursorWhenSelecting\":{\"title\":\"$:/config/codemirror/showCursorWhenSelecting\",\"type\":\"bool\",\"text\":\"true\"},\"$:/config/codemirror/smartIndent\":{\"title\":\"$:/config/codemirror/smartIndent\",\"type\":\"bool\",\"text\":\"true\"},\"$:/config/codemirror/styleActiveLine\":{\"title\":\"$:/config/codemirror/styleActiveLine\",\"type\":\"bool\",\"text\":\"false\"},\"$:/config/codemirror/tabSize\":{\"title\":\"$:/config/codemirror/tabSize\",\"type\":\"integer\",\"text\":\"2\"},\"$:/config/codemirror/theme\":{\"title\":\"$:/config/codemirror/theme\",\"type\":\"string\",\"text\":\"tiddlywiki\"},\"$:/language/codemirror/homeUrl\":{\"title\":\"$:/language/codemirror/homeUrl\",\"text\":\"http://codemirror.net\"},\"$:/language/codemirror/addOnUrl\":{\"title\":\"$:/language/codemirror/addOnUrl\",\"text\":\"http://codemirror.net/doc/manual.html#addons\"},\"$:/language/codemirror/configUrl\":{\"title\":\"$:/language/codemirror/configUrl\",\"text\":\"http://codemirror.net/doc/manual.html#config\"},\"$:/language/codemirror/controlPanel/hint\":{\"title\":\"$:/language/codemirror/controlPanel/hint\",\"text\":\"These settings let you customise the behaviour of [[CodeMirror|$:/plugins/tiddlywiki/codemirror]].\"},\"$:/language/codemirror/controlPanel/keyboard\":{\"title\":\"$:/language/codemirror/controlPanel/keyboard\",\"text\":\"Keyboard shortcuts\"},\"$:/language/codemirror/controlPanel/usage\":{\"title\":\"$:/language/codemirror/controlPanel/usage\",\"text\":\"Usage information\"},\"$:/language/codemirror/cursorBlinkRate/hint\":{\"title\":\"$:/language/codemirror/cursorBlinkRate/hint\",\"text\":\"Cursor blink rate\"},\"$:/language/codemirror/editorFont/hint\":{\"title\":\"$:/language/codemirror/editorFont/hint\",\"text\":\"Editor font family\"},\"$:/language/codemirror/editorFont/info\":{\"title\":\"$:/language/codemirror/editorFont/info\",\"text\":\"Set the font family for the ~CodeMirror text-editor\"},\"$:/language/codemirror/indentUnit/hint\":{\"title\":\"$:/language/codemirror/indentUnit/hint\",\"text\":\"How many spaces a block should be indented\"},\"$:/language/codemirror/indentWithTabs/hint\":{\"title\":\"$:/language/codemirror/indentWithTabs/hint\",\"text\":\"Enable indenting with tabs\"},\"$:/language/codemirror/indentWithTabs/info\":{\"title\":\"$:/language/codemirror/indentWithTabs/info\",\"text\":\"Whether, when indenting, the first N*`tabSize` spaces should be replaced by N tabs.\"},\"$:/language/codemirror/keyMap/hint\":{\"title\":\"$:/language/codemirror/keyMap/hint\",\"text\":\"~CodeMirror keymap\"},\"$:/language/codemirror/keyMap/info\":{\"title\":\"$:/language/codemirror/keyMap/info\",\"text\":\"~The Keyboard KeyMap used within the ~CodeMirror text-editor\"},\"$:/language/codemirror/lineNumbers/hint\":{\"title\":\"$:/language/codemirror/lineNumbers/hint\",\"text\":\"Enable line numbers\"},\"$:/language/codemirror/lineNumbers/info\":{\"title\":\"$:/language/codemirror/lineNumbers/info\",\"text\":\"Whether to show line numbers to the left of the editor.\"},\"$:/language/codemirror/lineWrapping/hint\":{\"title\":\"$:/language/codemirror/lineWrapping/hint\",\"text\":\"Enable line wrapping\"},\"$:/language/codemirror/lineWrapping/info\":{\"title\":\"$:/language/codemirror/lineWrapping/info\",\"text\":\"Whether CodeMirror should scroll or wrap for long lines. Defaults to `false` (scroll).\"},\"$:/language/codemirror/showCursorWhenSelecting/hint\":{\"title\":\"$:/language/codemirror/showCursorWhenSelecting/hint\",\"text\":\"Show cursor, when selecting\"},\"$:/language/codemirror/showCursorWhenSelecting/info\":{\"title\":\"$:/language/codemirror/showCursorWhenSelecting/info\",\"text\":\"Whether the cursor should be drawn when a selection is active.\"},\"$:/language/codemirror/smartIndent/hint\":{\"title\":\"$:/language/codemirror/smartIndent/hint\",\"text\":\"Enable smart indent\"},\"$:/language/codemirror/smartIndent/info\":{\"title\":\"$:/language/codemirror/smartIndent/info\",\"text\":\"Whether to use the context-sensitive indentation that the mode provides (or just indent the same as the line before). Defaults to `true`.\"},\"$:/language/codemirror/styleActiveLine/hint\":{\"title\":\"$:/language/codemirror/styleActiveLine/hint\",\"text\":\"Highlight active line\"},\"$:/language/codemirror/styleActiveLine/info\":{\"title\":\"$:/language/codemirror/styleActiveLine/info\",\"text\":\"Whether or not to highlight the active text-editor line\"},\"$:/language/codemirror/tabSize/hint\":{\"title\":\"$:/language/codemirror/tabSize/hint\",\"text\":\"Width of a tab character\"},\"$:/language/codemirror/theme/hint\":{\"title\":\"$:/language/codemirror/theme/hint\",\"text\":\"Select a theme\"},\"$:/language/codemirror/theme/info\":{\"title\":\"$:/language/codemirror/theme/info\",\"text\":\"Choose between ~CodeMirror themes\"},\"$:/plugins/tiddlywiki/codemirror/edit-codemirror.js\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/edit-codemirror.js\",\"text\":\"/*\\\\\\ntitle: $:/plugins/tiddlywiki/codemirror/edit-codemirror.js\\ntype: application/javascript\\nmodule-type: widget\\n\\nEdit-codemirror 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\\tCodeMirrorEngine = require(\\\"$:/plugins/tiddlywiki/codemirror/engine.js\\\").CodeMirrorEngine;\\n\\nexports[\\\"edit-codemirror\\\"] = editTextWidgetFactory(CodeMirrorEngine,CodeMirrorEngine);\\n\\n})();\\n\",\"type\":\"application/javascript\",\"module-type\":\"widget\"},\"$:/plugins/tiddlywiki/codemirror/engine.js\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/engine.js\",\"text\":\"/*\\\\\\ntitle: $:/plugins/tiddlywiki/codemirror/engine.js\\ntype: application/javascript\\nmodule-type: library\\n\\nText editor engine based on a CodeMirror instance\\n\\n\\\\*/\\n(function(){\\n\\n/*jslint node: true, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar CODEMIRROR_OPTIONS = \\\"$:/config/CodeMirror\\\",\\nHEIGHT_VALUE_TITLE = \\\"$:/config/TextEditor/EditorHeight/Height\\\",\\nCONFIG_FILTER = \\\"[all[shadows+tiddlers]prefix[$:/config/codemirror/]]\\\"\\n\\t\\n// Install CodeMirror\\nif($tw.browser && !window.CodeMirror) {\\n\\n\\tvar modules = $tw.modules.types[\\\"codemirror\\\"];\\n\\tvar req = Object.getOwnPropertyNames(modules);\\n\\n\\twindow.CodeMirror = require(\\\"$:/plugins/tiddlywiki/codemirror/lib/codemirror.js\\\");\\n\\t// Install required CodeMirror plugins\\n\\tif(req) {\\n\\t\\tif($tw.utils.isArray(req)) {\\n\\t\\t\\tfor(var index=0; index\u003Creq.length; index++) {\\n\\t\\t\\t\\trequire(req[index]);\\n\\t\\t\\t}\\n\\t\\t} else {\\n\\t\\t\\trequire(req);\\n\\t\\t}\\n\\t}\\n}\\n\\nfunction getCmConfig() {\\n\\tvar type,\\n\\t\\ttest,\\n\\t\\tvalue,\\n\\t\\telement,\\n\\t\\textend,\\n\\t\\ttiddler,\\n\\t\\tconfig = {},\\n\\t\\tconfigTiddlers = $tw.wiki.filterTiddlers(CONFIG_FILTER);\\n\\n\\tif ($tw.utils.isArray(configTiddlers)) {\\n\\t\\tfor (var i=0; i\u003CconfigTiddlers.length; i++) {\\n\\t\\t\\ttiddler = $tw.wiki.getTiddler(configTiddlers[i]);\\n\\t\\t\\t\\tif (tiddler) {\\n\\t\\t\\t\\telement = configTiddlers[i].replace(/\\\\$:\\\\/config\\\\/codemirror\\\\//ig,\\\"\\\");\\n\\t\\t\\t\\t\\ttype = (tiddler.fields.type) ? tiddler.fields.type.trim().toLocaleLowerCase() : \\\"string\\\";\\n\\t\\t\\t\\tswitch (type) {\\n\\t\\t\\t\\t\\tcase \\\"bool\\\":\\n\\t\\t\\t\\t\\ttest = tiddler.fields.text.trim().toLowerCase();\\n\\t\\t\\t\\t\\tvalue = (test === \\\"true\\\") ? true : false;\\n\\t\\t\\t\\t\\tconfig[element] = value;\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\tcase \\\"string\\\":\\n\\t\\t\\t\\t\\tvalue = tiddler.fields.text.trim();\\n\\t\\t\\t\\t\\tconfig[element] = value;\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\tcase \\\"integer\\\":\\n\\t\\t\\t\\t\\tvalue = parseInt(tiddler.fields.text.trim(), 10);\\n\\t\\t\\t\\t\\tconfig[element] = value;\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t\\tcase \\\"json\\\":\\n\\t\\t\\t\\t\\tvalue = JSON.parse(tiddler.fields.text.trim());\\n\\t\\t\\t\\t\\t\\textend = (tiddler.fields.extend) ? tiddler.fields.extend : element;\\n\\n\\t\\t\\t\\t\\tif (config[extend]) {\\n\\t\\t\\t\\t\\t\\t$tw.utils.extend(config[extend], value);\\n\\t\\t\\t\\t\\t} else {\\n\\t\\t\\t\\t\\t\\tconfig[extend] = value;\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\\n\\treturn config;\\n}\\n\\nfunction CodeMirrorEngine(options) {\\n\\n\\t// Save our options\\n\\tvar self = this;\\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 the wrapper DIV\\n\\tthis.domNode = this.widget.document.createElement(\\\"div\\\");\\n\\tif(this.widget.editClass) {\\n\\t\\tthis.domNode.className = this.widget.editClass;\\n\\t}\\n\\tthis.domNode.style.display = \\\"inline-block\\\";\\n\\tthis.parentNode.insertBefore(this.domNode,this.nextSibling);\\n\\tthis.widget.domNodes.push(this.domNode);\\n\\t\\n\\t// Set all cm-plugin defaults\\n\\t// Get the configuration options for the CodeMirror object\\n\\tvar config = getCmConfig();\\n\\n\\tconfig.mode = options.type;\\n\\tconfig.value = options.value;\\n\\tif(this.widget.editTabIndex) {\\n\\t\\tconfig[\\\"tabindex\\\"] = this.widget.editTabIndex;\\n\\t}\\n\\tconfig.editWidget = this.widget;\\n\\t// Create the CodeMirror instance\\n\\tthis.cm = window.CodeMirror(function(cmDomNode) {\\n\\t\\t// Note that this is a synchronous callback that is called before the constructor returns\\n\\t\\tif(!self.widget.document.isTiddlyWikiFakeDom) {\\n\\t\\t\\tself.domNode.appendChild(cmDomNode);\\n\\t\\t}\\n\\t},config);\\n\\n\\t// Set up a change event handler\\n\\tthis.cm.on(\\\"change\\\",function() {\\n\\t\\tself.widget.saveChanges(self.getText());\\n\\t\\tif(self.widget.editInputActions) {\\n\\t\\t\\tself.widget.invokeActionString(self.widget.editInputActions,this,event,{actionValue: this.getText()});\\n\\t\\t}\\n\\t});\\n\\t\\n\\tthis.cm.on(\\\"drop\\\",function(cm,event) {\\n\\t\\tif(!self.widget.isFileDropEnabled) {\\n\\t\\t\\tevent.stopPropagation(); // Otherwise TW's dropzone widget sees the drop event\\n\\t\\t}\\n\\t\\t// Detect if Chrome has added a pseudo File object to the dataTransfer\\n\\t\\tif(!$tw.utils.dragEventContainsFiles(event) && event.dataTransfer.files.length) {\\n\\t\\t\\t//Make codemirror ignore the event as we will handle the drop ourselves\\n\\t\\t\\tevent.codemirrorIgnore = true;\\n\\t\\t\\tevent.preventDefault();\\n\\n\\t\\t\\t// from https://github.com/codemirror/CodeMirror/blob/master/src/measurement/position_measurement.js#L673\\n\\t\\t\\tfunction posFromMouse(cm, e, liberal, forRect) {\\n\\t\\t\\t\\tlet display = cm.display\\n\\t\\t\\t\\tif (!liberal && e_target(e).getAttribute(\\\"cm-not-content\\\") == \\\"true\\\") return null\\n\\n\\t\\t\\t\\tlet x, y, space = display.lineSpace.getBoundingClientRect()\\n\\t\\t\\t\\t// Fails unpredictably on IE[67] when mouse is dragged around quickly.\\n\\t\\t\\t\\ttry { x = e.clientX - space.left; y = e.clientY - space.top }\\n\\t\\t\\t\\tcatch (e) { return null }\\n\\t\\t\\t\\tlet coords = cm.coordsChar(cm, x, y), line\\n\\t\\t\\t\\tif (forRect && coords.xRel > 0 && (line = cm.getLine(cm.doc, coords.line).text).length == coords.ch) {\\n\\t\\t\\t\\t\\tlet colDiff = window.CodeMirror.countColumn(line, line.length, cm.options.tabSize) - line.length\\n\\t\\t\\t\\t\\tcoords = window.CodeMirror.Pos(coords.line, Math.max(0, Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) - colDiff))\\n\\t\\t\\t\\t}\\n\\t\\t\\t\\treturn coords\\n\\t\\t\\t}\\n\\n\\t\\t\\tvar pos = posFromMouse(cm,event,true);\\n\\t\\t\\tif(!pos || cm.isReadOnly()) {\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\t// Don't do a replace if the drop happened inside of the selected text.\\n\\t\\t\\tif (cm.state.draggingText && cm.doc.sel.contains(pos) > -1) {\\n\\t\\t\\t\\tcm.state.draggingText(event);\\n\\t\\t\\t\\t// Ensure the editor is re-focused\\n\\t\\t\\t\\tsetTimeout(() => cm.display.input.focus(), 20);\\n\\t\\t\\t\\treturn;\\n\\t\\t\\t}\\n\\t\\t\\ttry {\\n\\t\\t\\t\\tvar text = event.dataTransfer.getData(\\\"Text\\\");\\n\\t\\t\\t\\tif (text) {\\n\\t\\t\\t\\t\\tvar selected;\\n\\t\\t\\t\\t\\tif (cm.state.draggingText && !cm.state.draggingText.copy) {\\n\\t\\t\\t\\t\\t\\tselected = cm.listSelections();\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tcm.setCursor(cm.coordsChar({left:event.pageX,top:event.pageY}));\\n\\t\\t\\t\\t\\tif (selected) {\\n\\t\\t\\t\\t\\t \\tfor (var i = 0; i \u003C selected.length; ++i) {\\n\\t\\t\\t\\t\\t\\t\\treplaceRange(cm.doc, \\\"\\\", selected[i].anchor, selected[i].head, \\\"drag\\\");\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tcm.replaceSelection(text, \\\"around\\\", \\\"paste\\\");\\n\\t\\t\\t\\t\\tcm.display.input.focus();\\n\\t\\t\\t }\\n\\t\\t\\t}\\n\\t\\t\\tcatch(e){}\\n\\t\\t}\\n\\t\\treturn false;\\n\\t});\\n\\tthis.cm.on(\\\"keydown\\\",function(cm,event) {\\n\\t\\treturn self.widget.handleKeydownEvent.call(self.widget,event);\\n\\t});\\n\\tthis.cm.on(\\\"focus\\\",function(cm,event) {\\n\\t\\tif(self.widget.editCancelPopups) {\\n\\t\\t\\t$tw.popup.cancel(0);\\t\\n\\t\\t}\\n\\t});\\n\\t// Add drag and drop event listeners if fileDrop is enabled\\n\\tif(this.widget.isFileDropEnabled) {\\n\\t\\t// If the drag event contains Files, prevent the default CodeMirror handling\\n\\t\\tthis.cm.on(\\\"dragenter\\\",function(cm,event) {\\n\\t\\t\\tif($tw.utils.dragEventContainsFiles(event)) {\\n\\t\\t\\t\\tevent.preventDefault();\\n\\t\\t\\t}\\n\\t\\t\\treturn true;\\n\\t\\t});\\n\\t\\tthis.cm.on(\\\"dragleave\\\",function(cm,event) {\\n\\t\\t\\tevent.preventDefault();\\n\\t\\t});\\n\\t\\tthis.cm.on(\\\"dragover\\\",function(cm,event) {\\n\\t\\t\\tif($tw.utils.dragEventContainsFiles(event)) {\\n\\t\\t\\t\\tevent.preventDefault();\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tthis.cm.on(\\\"drop\\\",function(cm,event) {\\n\\t\\t\\tif($tw.utils.dragEventContainsFiles(event)) {\\n\\t\\t\\t\\tevent.preventDefault();\\n\\t\\t\\t}\\n\\t\\t});\\n\\t\\tthis.cm.on(\\\"paste\\\",function(cm,event) {\\n\\t\\t\\tself.widget.handlePasteEvent.call(self.widget,event);\\n\\t\\t});\\n\\t}\\n}\\n\\n/*\\nSet the text of the engine if it doesn't currently have focus\\n*/\\nCodeMirrorEngine.prototype.setText = function(text,type) {\\n\\tvar self = this;\\n\\tself.cm.setOption(\\\"mode\\\",type);\\n\\tif(!this.cm.hasFocus()) {\\n\\t\\tthis.updateDomNodeText(text);\\n\\t}\\n};\\n\\n/*\\nUpdate the DomNode with the new text\\n*/\\nCodeMirrorEngine.prototype.updateDomNodeText = function(text) {\\n\\tthis.cm.setValue(text);\\n};\\n\\n/*\\nGet the text of the engine\\n*/\\nCodeMirrorEngine.prototype.getText = function() {\\n\\treturn this.cm.getValue();\\n};\\n\\n/*\\nFix the height of textarea to fit content\\n*/\\nCodeMirrorEngine.prototype.fixHeight = function() {\\n\\tif(this.widget.editAutoHeight) {\\n\\t\\t// Resize to fit\\n\\t\\tthis.cm.setSize(null,null);\\n\\t} else {\\n\\t\\tvar fixedHeight = parseInt(this.widget.wiki.getTiddlerText(HEIGHT_VALUE_TITLE,\\\"400px\\\"),10);\\n\\t\\tfixedHeight = Math.max(fixedHeight,20);\\n\\t\\tthis.cm.setSize(null,fixedHeight);\\n\\t}\\n};\\n\\n/*\\nFocus the engine node\\n*/\\nCodeMirrorEngine.prototype.focus = function() {\\n\\tthis.cm.focus();\\n}\\n\\n/*\\nCreate a blank structure representing a text operation\\n*/\\nCodeMirrorEngine.prototype.createTextOperation = function() {\\n\\tvar selections = this.cm.listSelections();\\n\\tif(selections.length > 0) {\\n\\t\\tvar anchorPos = this.cm.indexFromPos(selections[0].anchor),\\n\\t\\theadPos = this.cm.indexFromPos(selections[0].head);\\n\\t}\\n\\tvar operation = {\\n\\t\\ttext: this.cm.getValue(),\\n\\t\\tselStart: Math.min(anchorPos,headPos),\\n\\t\\tselEnd: Math.max(anchorPos,headPos),\\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*/\\nCodeMirrorEngine.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\\tthis.cm.replaceRange(operation.replacement,this.cm.posFromIndex(operation.cutStart),this.cm.posFromIndex(operation.cutEnd));\\n\\t\\tthis.cm.setSelection(this.cm.posFromIndex(operation.newSelStart),this.cm.posFromIndex(operation.newSelEnd));\\n\\t\\tnewText = operation.text.substring(0,operation.cutStart) + operation.replacement + operation.text.substring(operation.cutEnd);\\n\\t}\\n\\tthis.cm.focus();\\n\\treturn newText;\\n};\\n\\nexports.CodeMirrorEngine = $tw.browser ? CodeMirrorEngine : require(\\\"$:/core/modules/editor/engines/simple.js\\\").SimpleEngine;\\n\\n})();\\n\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/codemirror/lib/codemirror.js\":{\"text\":\"!function(e,t){\\\"object\\\"==typeof exports&&\\\"undefined\\\"!=typeof module?module.exports=t():\\\"function\\\"==typeof define&&define.amd?define(t):(e=e||self).CodeMirror=t()}(this,function(){\\\"use strict\\\";var e=navigator.userAgent,t=navigator.platform,d=/gecko\\\\/\\\\d/i.test(e),n=/MSIE \\\\d/.test(e),r=/Trident\\\\/(?:[7-9]|\\\\d{2,})\\\\..*rv:(\\\\d+)/.exec(e),i=/Edge\\\\/(\\\\d+)/.exec(e),w=n||r||i,v=w&&(n?document.documentMode||6:+(i||r)[1]),f=!i&&/WebKit\\\\//.test(e),r=f&&/Qt\\\\/\\\\d+\\\\.\\\\d+/.test(e),o=!i&&/Chrome\\\\//.test(e),p=/Opera\\\\//.test(e),c=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\\\\d\\\\D([8-9]|\\\\d\\\\d)\\\\D/.test(e),u=/PhantomJS/.test(e),s=!i&&/AppleWebKit/.test(e)&&/Mobile\\\\/\\\\w+/.test(e),a=/Android/.test(e),h=s||a||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=s||/Mac/.test(t),m=/\\\\bCrOS\\\\b/.test(e),y=/win/i.test(t),e=p&&e.match(/Version\\\\/(\\\\d*\\\\.\\\\d*)/);(e=e&&Number(e[1]))&&15\u003C=e&&(f=!(p=!1));var b=g&&(r||p&&(null==e||e\u003C12.11)),x=d||w&&9\u003C=v;function C(e){return new RegExp(\\\"(^|\\\\\\\\s)\\\"+e+\\\"(?:$|\\\\\\\\s)\\\\\\\\s*\\\")}var S,L=function(e,t){var n=e.className,r=C(t).exec(n);r&&(t=n.slice(r.index+r[0].length),e.className=n.slice(0,r.index)+(t?r[1]+t:\\\"\\\"))};function k(e){for(var t=e.childNodes.length;0\u003Ct;--t)e.removeChild(e.firstChild);return e}function T(e,t){return k(e).appendChild(t)}function M(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),\\\"string\\\"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o\u003Ct.length;++o)i.appendChild(t[o]);return i}function N(e,t,n,r){r=M(e,t,n,r);return r.setAttribute(\\\"role\\\",\\\"presentation\\\"),r}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function O(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function D(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?\\\" \\\":\\\"\\\")+t)}function W(e,t){for(var n=e.split(\\\" \\\"),r=0;r\u003Cn.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=\\\" \\\"+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd(\\\"character\\\",n),r.moveStart(\\\"character\\\",t),r};var H=function(e){e.select()};function F(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function E(e,t,n){for(var r in t=t||{},e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function P(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\\\\s\\\\u00a0]/))&&(t=e.length);for(var o=r||0,l=i||0;;){var s=e.indexOf(\\\"\\\\t\\\",o);if(s\u003C0||t\u003C=s)return l+(t-o);l+=s-o,l+=n-l%n,o=s+1}}s?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:w&&(H=function(e){try{e.select()}catch(e){}});var I=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function R(e,t){for(var n=0;n\u003Ce.length;++n)if(e[n]==t)return n;return-1}I.prototype.onTimeout=function(e){e.id=0,e.time\u003C=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},I.prototype.set=function(e,t){this.f=t;t=+new Date+e;(!this.id||t\u003Cthis.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=t)};var z=50,B={toString:function(){return\\\"CodeMirror.Pass\\\"}},G={scroll:!1},U={origin:\\\"*mouse\\\"},V={origin:\\\"+move\\\"};function K(e,t,n){for(var r=0,i=0;;){var o=e.indexOf(\\\"\\\\t\\\",r);-1==o&&(o=e.length);var l=o-r;if(o==e.length||t\u003C=i+l)return r+Math.min(l,t-i);if(i+=o-r,r=o+1,t\u003C=(i+=n-i%n))return r}}var j=[\\\"\\\"];function X(e){for(;j.length\u003C=e;)j.push(Y(j)+\\\" \\\");return j[e]}function Y(e){return e[e.length-1]}function _(e,t){for(var n=[],r=0;r\u003Ce.length;r++)n[r]=t(e[r],r);return n}function $(){}function q(e,t){e=Object.create?Object.create(e):($.prototype=e,new $);return t&&E(t,e),e}var Z=/[\\\\u00df\\\\u0587\\\\u0590-\\\\u05f4\\\\u0600-\\\\u06ff\\\\u3040-\\\\u309f\\\\u30a0-\\\\u30ff\\\\u3400-\\\\u4db5\\\\u4e00-\\\\u9fcc\\\\uac00-\\\\ud7af]/;function Q(e){return/\\\\w/.test(e)||\\\"\\\"\u003Ce&&(e.toUpperCase()!=e.toLowerCase()||Z.test(e))}function J(e,t){return t?!!(-1\u003Ct.source.indexOf(\\\"\\\\\\\\w\\\")&&Q(e))||t.test(e):Q(e)}function ee(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return;return 1}var te=/[\\\\u0300-\\\\u036f\\\\u0483-\\\\u0489\\\\u0591-\\\\u05bd\\\\u05bf\\\\u05c1\\\\u05c2\\\\u05c4\\\\u05c5\\\\u05c7\\\\u0610-\\\\u061a\\\\u064b-\\\\u065e\\\\u0670\\\\u06d6-\\\\u06dc\\\\u06de-\\\\u06e4\\\\u06e7\\\\u06e8\\\\u06ea-\\\\u06ed\\\\u0711\\\\u0730-\\\\u074a\\\\u07a6-\\\\u07b0\\\\u07eb-\\\\u07f3\\\\u0816-\\\\u0819\\\\u081b-\\\\u0823\\\\u0825-\\\\u0827\\\\u0829-\\\\u082d\\\\u0900-\\\\u0902\\\\u093c\\\\u0941-\\\\u0948\\\\u094d\\\\u0951-\\\\u0955\\\\u0962\\\\u0963\\\\u0981\\\\u09bc\\\\u09be\\\\u09c1-\\\\u09c4\\\\u09cd\\\\u09d7\\\\u09e2\\\\u09e3\\\\u0a01\\\\u0a02\\\\u0a3c\\\\u0a41\\\\u0a42\\\\u0a47\\\\u0a48\\\\u0a4b-\\\\u0a4d\\\\u0a51\\\\u0a70\\\\u0a71\\\\u0a75\\\\u0a81\\\\u0a82\\\\u0abc\\\\u0ac1-\\\\u0ac5\\\\u0ac7\\\\u0ac8\\\\u0acd\\\\u0ae2\\\\u0ae3\\\\u0b01\\\\u0b3c\\\\u0b3e\\\\u0b3f\\\\u0b41-\\\\u0b44\\\\u0b4d\\\\u0b56\\\\u0b57\\\\u0b62\\\\u0b63\\\\u0b82\\\\u0bbe\\\\u0bc0\\\\u0bcd\\\\u0bd7\\\\u0c3e-\\\\u0c40\\\\u0c46-\\\\u0c48\\\\u0c4a-\\\\u0c4d\\\\u0c55\\\\u0c56\\\\u0c62\\\\u0c63\\\\u0cbc\\\\u0cbf\\\\u0cc2\\\\u0cc6\\\\u0ccc\\\\u0ccd\\\\u0cd5\\\\u0cd6\\\\u0ce2\\\\u0ce3\\\\u0d3e\\\\u0d41-\\\\u0d44\\\\u0d4d\\\\u0d57\\\\u0d62\\\\u0d63\\\\u0dca\\\\u0dcf\\\\u0dd2-\\\\u0dd4\\\\u0dd6\\\\u0ddf\\\\u0e31\\\\u0e34-\\\\u0e3a\\\\u0e47-\\\\u0e4e\\\\u0eb1\\\\u0eb4-\\\\u0eb9\\\\u0ebb\\\\u0ebc\\\\u0ec8-\\\\u0ecd\\\\u0f18\\\\u0f19\\\\u0f35\\\\u0f37\\\\u0f39\\\\u0f71-\\\\u0f7e\\\\u0f80-\\\\u0f84\\\\u0f86\\\\u0f87\\\\u0f90-\\\\u0f97\\\\u0f99-\\\\u0fbc\\\\u0fc6\\\\u102d-\\\\u1030\\\\u1032-\\\\u1037\\\\u1039\\\\u103a\\\\u103d\\\\u103e\\\\u1058\\\\u1059\\\\u105e-\\\\u1060\\\\u1071-\\\\u1074\\\\u1082\\\\u1085\\\\u1086\\\\u108d\\\\u109d\\\\u135f\\\\u1712-\\\\u1714\\\\u1732-\\\\u1734\\\\u1752\\\\u1753\\\\u1772\\\\u1773\\\\u17b7-\\\\u17bd\\\\u17c6\\\\u17c9-\\\\u17d3\\\\u17dd\\\\u180b-\\\\u180d\\\\u18a9\\\\u1920-\\\\u1922\\\\u1927\\\\u1928\\\\u1932\\\\u1939-\\\\u193b\\\\u1a17\\\\u1a18\\\\u1a56\\\\u1a58-\\\\u1a5e\\\\u1a60\\\\u1a62\\\\u1a65-\\\\u1a6c\\\\u1a73-\\\\u1a7c\\\\u1a7f\\\\u1b00-\\\\u1b03\\\\u1b34\\\\u1b36-\\\\u1b3a\\\\u1b3c\\\\u1b42\\\\u1b6b-\\\\u1b73\\\\u1b80\\\\u1b81\\\\u1ba2-\\\\u1ba5\\\\u1ba8\\\\u1ba9\\\\u1c2c-\\\\u1c33\\\\u1c36\\\\u1c37\\\\u1cd0-\\\\u1cd2\\\\u1cd4-\\\\u1ce0\\\\u1ce2-\\\\u1ce8\\\\u1ced\\\\u1dc0-\\\\u1de6\\\\u1dfd-\\\\u1dff\\\\u200c\\\\u200d\\\\u20d0-\\\\u20f0\\\\u2cef-\\\\u2cf1\\\\u2de0-\\\\u2dff\\\\u302a-\\\\u302f\\\\u3099\\\\u309a\\\\ua66f-\\\\ua672\\\\ua67c\\\\ua67d\\\\ua6f0\\\\ua6f1\\\\ua802\\\\ua806\\\\ua80b\\\\ua825\\\\ua826\\\\ua8c4\\\\ua8e0-\\\\ua8f1\\\\ua926-\\\\ua92d\\\\ua947-\\\\ua951\\\\ua980-\\\\ua982\\\\ua9b3\\\\ua9b6-\\\\ua9b9\\\\ua9bc\\\\uaa29-\\\\uaa2e\\\\uaa31\\\\uaa32\\\\uaa35\\\\uaa36\\\\uaa43\\\\uaa4c\\\\uaab0\\\\uaab2-\\\\uaab4\\\\uaab7\\\\uaab8\\\\uaabe\\\\uaabf\\\\uaac1\\\\uabe5\\\\uabe8\\\\uabed\\\\udc00-\\\\udfff\\\\ufb1e\\\\ufe00-\\\\ufe0f\\\\ufe20-\\\\ufe26\\\\uff9e\\\\uff9f]/;function ne(e){return 768\u003C=e.charCodeAt(0)&&te.test(e)}function re(e,t,n){for(;(n\u003C0?0\u003Ct:t\u003Ce.length)&&ne(e.charAt(t));)t+=n;return t}function ie(e,t,n){for(var r=n\u003Ct?-1:1;;){if(t==n)return t;var i=(t+n)/2,i=r\u003C0?Math.ceil(i):Math.floor(i);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var oe=null;function le(e,t,n){var r;oe=null;for(var i=0;i\u003Ce.length;++i){var o=e[i];if(o.from\u003Ct&&o.to>t)return i;o.to==t&&(o.from!=o.to&&\\\"before\\\"==n?r=i:oe=i),o.from==t&&(o.from!=o.to&&\\\"before\\\"!=n?r=i:oe=i)}return null!=r?r:oe}var se,ae,ue,ce,he,de,fe,pe=(se=\\\"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN\\\",ae=\\\"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111\\\",ue=/[\\\\u0590-\\\\u05f4\\\\u0600-\\\\u06ff\\\\u0700-\\\\u08ac]/,ce=/[stwN]/,he=/[LRr]/,de=/[Lb1n]/,fe=/[1n]/,function(e,t){var n=\\\"ltr\\\"==t?\\\"L\\\":\\\"R\\\";if(0==e.length||\\\"ltr\\\"==t&&!ue.test(e))return!1;for(var r,i=e.length,o=[],l=0;l\u003Ci;++l)o.push((r=e.charCodeAt(l))\u003C=247?se.charAt(r):1424\u003C=r&&r\u003C=1524?\\\"R\\\":1536\u003C=r&&r\u003C=1785?ae.charAt(r-1536):1774\u003C=r&&r\u003C=2220?\\\"r\\\":8192\u003C=r&&r\u003C=8203?\\\"w\\\":8204==r?\\\"b\\\":\\\"L\\\");for(var s=0,a=n;s\u003Ci;++s){var u=o[s];\\\"m\\\"==u?o[s]=a:a=u}for(var c=0,h=n;c\u003Ci;++c){var d=o[c];\\\"1\\\"==d&&\\\"r\\\"==h?o[c]=\\\"n\\\":he.test(d)&&\\\"r\\\"==(h=d)&&(o[c]=\\\"R\\\")}for(var f=1,p=o[0];f\u003Ci-1;++f){var g=o[f];\\\"+\\\"==g&&\\\"1\\\"==p&&\\\"1\\\"==o[f+1]?o[f]=\\\"1\\\":\\\",\\\"!=g||p!=o[f+1]||\\\"1\\\"!=p&&\\\"n\\\"!=p||(o[f]=p),p=g}for(var m=0;m\u003Ci;++m){var v=o[m];if(\\\",\\\"==v)o[m]=\\\"N\\\";else if(\\\"%\\\"==v){for(var y=void 0,y=m+1;y\u003Ci&&\\\"%\\\"==o[y];++y);for(var b=m&&\\\"!\\\"==o[m-1]||y\u003Ci&&\\\"1\\\"==o[y]?\\\"1\\\":\\\"N\\\",w=m;w\u003Cy;++w)o[w]=b;m=y-1}}for(var x=0,C=n;x\u003Ci;++x){var S=o[x];\\\"L\\\"==C&&\\\"1\\\"==S?o[x]=\\\"L\\\":he.test(S)&&(C=S)}for(var L=0;L\u003Ci;++L)if(ce.test(o[L])){for(var k=void 0,k=L+1;k\u003Ci&&ce.test(o[k]);++k);for(var T=\\\"L\\\"==(L?o[L-1]:n),M=T==(\\\"L\\\"==(k\u003Ci?o[k]:n))?T?\\\"L\\\":\\\"R\\\":n,N=L;N\u003Ck;++N)o[N]=M;L=k-1}for(var A,O=[],D=0;D\u003Ci;)if(de.test(o[D])){var W=D;for(++D;D\u003Ci&&de.test(o[D]);++D);O.push(new ge(0,W,D))}else{var H=D,F=O.length,E=\\\"rtl\\\"==t?1:0;for(++D;D\u003Ci&&\\\"L\\\"!=o[D];++D);for(var P=H;P\u003CD;)if(fe.test(o[P])){H\u003CP&&(O.splice(F,0,new ge(1,H,P)),F+=E);var I=P;for(++P;P\u003CD&&fe.test(o[P]);++P);O.splice(F,0,new ge(2,I,P)),F+=E,H=P}else++P;H\u003CD&&O.splice(F,0,new ge(1,H,D))}return\\\"ltr\\\"==t&&(1==O[0].level&&(A=e.match(/^\\\\s+/))&&(O[0].from=A[0].length,O.unshift(new ge(0,0,A[0].length))),1==Y(O).level&&(A=e.match(/\\\\s+$/))&&(Y(O).to-=A[0].length,O.push(new ge(0,i-A[0].length,i)))),\\\"rtl\\\"==t?O.reverse():O});function ge(e,t,n){this.level=e,this.from=t,this.to=n}function me(e,t){var n=e.order;return null==n&&(n=e.order=pe(e.text,t)),n}var ve=[],ye=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent(\\\"on\\\"+t,n):(e=e._handlers||(e._handlers={}))[t]=(e[t]||ve).concat(n)};function be(e,t){return e._handlers&&e._handlers[t]||ve}function we(e,t,n){var r;e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent(\\\"on\\\"+t,n):!(e=(r=e._handlers)&&r[t])||-1\u003C(n=R(e,n))&&(r[t]=e.slice(0,n).concat(e.slice(n+1)))}function xe(e,t){var n=be(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i\u003Cn.length;++i)n[i].apply(null,r)}function Ce(e,t,n){return\\\"string\\\"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,n||t.type,e,t),Ne(t)||t.codemirrorIgnore}function Se(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r\u003Ct.length;++r)-1==R(n,t[r])&&n.push(t[r])}function Le(e,t){return 0\u003Cbe(e,t).length}function ke(e){e.prototype.on=function(e,t){ye(this,e,t)},e.prototype.off=function(e,t){we(this,e,t)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ne(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ae(e){Te(e),Me(e)}function Oe(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),g&&e.ctrlKey&&1==t&&(t=3),t}var We,He,Fe=function(){if(w&&v\u003C9)return!1;var e=M(\\\"div\\\");return\\\"draggable\\\"in e||\\\"dragDrop\\\"in e}();var Ee=3!=\\\"\\\\n\\\\nb\\\".split(/\\\\n/).length?function(e){for(var t=0,n=[],r=e.length;t\u003C=r;){var i=e.indexOf(\\\"\\\\n\\\",t);-1==i&&(i=e.length);var o=e.slice(t,\\\"\\\\r\\\"==e.charAt(i-1)?i-1:i),l=o.indexOf(\\\"\\\\r\\\");-1!=l?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\\\\r\\\\n?|\\\\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints(\\\"StartToEnd\\\",t)},Ie=\\\"oncopy\\\"in(r=M(\\\"div\\\"))||(r.setAttribute(\\\"oncopy\\\",\\\"return;\\\"),\\\"function\\\"==typeof r.oncopy),Re=null;var ze={},Be={};function Ge(e){if(\\\"string\\\"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&\\\"string\\\"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];\\\"string\\\"==typeof t&&(t={name:t}),(e=q(t,e)).name=t.name}else{if(\\\"string\\\"==typeof e&&/^[\\\\w\\\\-]+\\\\/[\\\\w\\\\-]+\\\\+xml$/.test(e))return Ge(\\\"application/xml\\\");if(\\\"string\\\"==typeof e&&/^[\\\\w\\\\-]+\\\\/[\\\\w\\\\-]+\\\\+json$/.test(e))return Ge(\\\"application/json\\\")}return\\\"string\\\"==typeof e?{name:e}:e||{name:\\\"null\\\"}}function Ue(e,t){t=Ge(t);var n=ze[t.name];if(!n)return Ue(e,\\\"text/plain\\\");var r=n(e,t);if(Ve.hasOwnProperty(t.name)){var i,o=Ve[t.name];for(i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r[\\\"_\\\"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var Ve={};function Ke(e,t){E(t,Ve.hasOwnProperty(e)?Ve[e]:Ve[e]={})}function je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n,r={};for(n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var _e=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $e(e,t){if((t-=e.first)\u003C0||t>=e.size)throw new Error(\\\"There is no line \\\"+(t+e.first)+\\\" in the document.\\\");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t\u003Co){n=i;break}t-=o}return n.lines[t]}function qe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){e=e.text;i==n.line&&(e=e.slice(0,n.ch)),i==t.line&&(e=e.slice(t.ch)),r.push(e),++i}),r}function Ze(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function Qe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Je(e){if(null==e.parent)return null;for(var t=e.parent,n=R(t.lines,e),r=t.parent;r;r=(t=r).parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function et(e,t){var n=e.first;e:do{for(var r=0;r\u003Ce.children.length;++r){var i=e.children[r],o=i.height;if(t\u003Co){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var l=0;l\u003Ce.lines.length;++l){var s=e.lines[l].height;if(t\u003Cs)break;t-=s}return n+l}function tt(e,t){return t>=e.first&&t\u003Ce.first+e.size}function nt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function rt(e,t,n){if(void 0===n&&(n=null),!(this instanceof rt))return new rt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function it(e,t){return e.line-t.line||e.ch-t.ch}function ot(e,t){return e.sticky==t.sticky&&0==it(e,t)}function lt(e){return rt(e.line,e.ch)}function st(e,t){return it(e,t)\u003C0?t:e}function at(e,t){return it(e,t)\u003C0?e:t}function ut(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ct(e,t){if(t.line\u003Ce.first)return rt(e.first,0);var n=e.first+e.size-1;return t.line>n?rt(n,$e(e,n).text.length):(e=$e(e,(n=t).line).text.length,null==(t=n.ch)||e\u003Ct?rt(n.line,e):t\u003C0?rt(n.line,0):n)}function ht(e,t){for(var n=[],r=0;r\u003Ct.length;r++)n[r]=ct(e,t[r]);return n}_e.prototype.eol=function(){return this.pos>=this.string.length},_e.prototype.sol=function(){return this.pos==this.lineStart},_e.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_e.prototype.next=function(){if(this.pos\u003Cthis.string.length)return this.string.charAt(this.pos++)},_e.prototype.eat=function(e){var t=this.string.charAt(this.pos),e=\\\"string\\\"==typeof e?t==e:t&&(e.test?e.test(t):e(t));if(e)return++this.pos,t},_e.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},_e.prototype.eatSpace=function(){for(var e=this.pos;/[\\\\s\\\\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},_e.prototype.skipToEnd=function(){this.pos=this.string.length},_e.prototype.skipTo=function(e){e=this.string.indexOf(e,this.pos);if(-1\u003Ce)return this.pos=e,!0},_e.prototype.backUp=function(e){this.pos-=e},_e.prototype.column=function(){return this.lastColumnPos\u003Cthis.start&&(this.lastColumnValue=P(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},_e.prototype.indentation=function(){return P(this.string,null,this.tabSize)-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},_e.prototype.match=function(e,t,n){if(\\\"string\\\"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&0\u003Cr.index?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},_e.prototype.current=function(){return this.string.slice(this.start,this.pos)},_e.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},_e.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},_e.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var dt=function(e,t){this.state=e,this.lookAhead=t},ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(t,n,r,e){var a=[t.state.modeGen],i={};St(t,n.text,t.doc.mode,r,function(e,t){return a.push(e,t)},i,e);for(var u=r.state,o=0;o\u003Ct.state.overlays.length;++o)!function(e){r.baseTokens=a;var o=t.state.overlays[e],l=1,s=0;r.state=!0,St(t,n.text,o.mode,r,function(e,t){for(var n=l;s\u003Ce;){var r=a[l];e\u003Cr&&a.splice(l,1,e,a[l+1],r),l+=2,s=Math.min(e,r)}if(t)if(o.opaque)a.splice(n,l-n,e,\\\"overlay \\\"+t),l=n+2;else for(;n\u003Cl;n+=2){var i=a[n+1];a[n+1]=(i?i+\\\" \\\":\\\"\\\")+\\\"overlay \\\"+t}},i),r.state=u,r.baseTokens=null,r.baseTokenPos=1}(o);return{styles:a,classes:i.bgClass||i.textClass?i:null}}function gt(e,t,n){var r,i,o;return t.styles&&t.styles[0]==e.state.modeGen||(r=mt(e,Je(t)),i=t.text.length>e.options.maxHighlightLength&&je(e.doc.mode,r.state),o=pt(e,t,r),i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))),t.styles}function mt(n,r,e){var t=n.doc,i=n.display;if(!t.mode.startState)return new ft(t,!0,r);var o=function(e,t,n){for(var r,i,o=e.doc,l=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;l\u003Cs;--s){if(s\u003C=o.first)return o.first;var a=$e(o,s-1),u=a.stateAfter;if(u&&(!n||s+(u instanceof dt?u.lookAhead:0)\u003C=o.modeFrontier))return s;a=P(a.text,null,e.options.tabSize);(null==i||a\u003Cr)&&(i=s-1,r=a)}return i}(n,r,e),l=o>t.first&&$e(t,o-1).stateAfter,s=l?ft.fromSaved(t,l,o):new ft(t,Ye(t.mode),o);return t.iter(o,r,function(e){vt(n,e.text,s);var t=s.line;e.stateAfter=t==r-1||t%5==0||t>=i.viewFrom&&t\u003Ci.viewTo?s.save():null,s.nextLine()}),e&&(t.modeFrontier=s.line),s}function vt(e,t,n,r){var i=e.doc.mode,o=new _e(t,e.options.tabSize,n);for(o.start=o.pos=r||0,\\\"\\\"==t&&yt(i,n.state);!o.eol();)bt(i,o,n.state),o.start=o.pos}function yt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){t=Xe(e,t);return t.mode.blankLine?t.mode.blankLine(t.state):void 0}}function bt(e,t,n,r){for(var i=0;i\u003C10;i++){r&&(r[0]=Xe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error(\\\"Mode \\\"+e.name+\\\" failed to advance stream.\\\")}ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]\u003C=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,\\\"\\\"),size:this.baseTokens[this.baseTokenPos]-e}},ft.prototype.nextLine=function(){this.line++,0\u003Cthis.maxLookAhead&&this.maxLookAhead--},ft.fromSaved=function(e,t,n){return t instanceof dt?new ft(e,je(e.mode,t.state),n,t.lookAhead):new ft(e,je(e.mode,t),n)},ft.prototype.save=function(e){e=!1!==e?je(this.doc.mode,this.state):this.state;return 0\u003Cthis.maxLookAhead?new dt(e,this.maxLookAhead):e};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xt(e,t,n,r){var i,o,l=e.doc,s=l.mode,a=$e(l,(t=ct(l,t)).line),u=mt(e,t.line,n),c=new _e(a.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos\u003Ct.ch)&&!c.eol();)c.start=c.pos,i=bt(s,c,u.state),r&&o.push(new wt(c,i,je(l.mode,u.state)));return r?o:new wt(c,i,u.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\\\\s+)line-(background-)?(\\\\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?\\\"bgClass\\\":\\\"textClass\\\";null==t[r]?t[r]=n[2]:new RegExp(\\\"(?:^|\\\\\\\\s)\\\"+n[2]+\\\"(?:$|\\\\\\\\s)\\\").test(t[r])||(t[r]+=\\\" \\\"+n[2])}return e}function St(e,t,n,r,i,o,l){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var a=0,u=null,c=new _e(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(\\\"\\\"==t&&Ct(yt(n,r.state),o);!c.eol();){var d,f=c.pos>e.options.maxHighlightLength?(s=!1,l&&vt(e,t,r,c.pos),c.pos=t.length,null):Ct(bt(n,c,r.state,h),o);if(!h||(d=h[0].name)&&(f=\\\"m-\\\"+(f?d+\\\" \\\"+f:d)),!s||u!=f){for(;a\u003Cc.start;)i(a=Math.min(c.start,a+5e3),u);u=f}c.start=c.pos}for(;a\u003Cc.pos;){var p=Math.min(c.pos,a+5e3);i(p,u),a=p}}var Lt=!1,kt=!1;function Tt(e,t,n){this.marker=e,this.from=t,this.to=n}function Mt(e,t){if(e)for(var n=0;n\u003Ce.length;++n){var r=e[n];if(r.marker==t)return r}}function Nt(e,t){if(t.full)return null;var n=tt(e,t.from.line)&&$e(e,t.from.line).markedSpans,r=tt(e,t.to.line)&&$e(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,e=0==it(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i\u003Ce.length;++i){var o,l=e[i],s=l.marker;!(null==l.from||(s.inclusiveLeft?l.from\u003C=t:l.from\u003Ct))&&(l.from!=t||\\\"bookmark\\\"!=s.type||n&&l.marker.insertLeft)||(o=null==l.to||(s.inclusiveRight?l.to>=t:l.to>t),(r=r||[]).push(new Tt(s,l.from,o?null:l.to)))}return r}(n,i,e),s=function(e,t,n){var r;if(e)for(var i=0;i\u003Ce.length;++i){var o,l=e[i],s=l.marker;!(null==l.to||(s.inclusiveRight?l.to>=t:l.to>t))&&(l.from!=t||\\\"bookmark\\\"!=s.type||n&&!l.marker.insertLeft)||(o=null==l.from||(s.inclusiveLeft?l.from\u003C=t:l.from\u003Ct),(r=r||[]).push(new Tt(s,o?null:l.from-t,null==l.to?null:l.to-t)))}return r}(r,o,e),a=1==t.text.length,u=Y(t.text).length+(a?i:0);if(l)for(var c=0;c\u003Cl.length;++c){var h,d=l[c];null==d.to&&((h=Mt(s,d.marker))?a&&(d.to=null==h.to?null:h.to+u):d.to=i)}if(s)for(var f=0;f\u003Cs.length;++f){var p=s[f];null!=p.to&&(p.to+=u),null==p.from?Mt(l,p.marker)||(p.from=u,a&&(l=l||[]).push(p)):(p.from+=u,a&&(l=l||[]).push(p))}l=l&&At(l),s&&s!=l&&(s=At(s));var g=[l];if(!a){var m,v=t.text.length-2;if(0\u003Cv&&l)for(var y=0;y\u003Cl.length;++y)null==l[y].to&&(m=m||[]).push(new Tt(l[y].marker,null,null));for(var b=0;b\u003Cv;++b)g.push(m);g.push(s)}return g}function At(e){for(var t=0;t\u003Ce.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ot(e){var t=e.markedSpans;if(t){for(var n=0;n\u003Ct.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Dt(e,t){if(t){for(var n=0;n\u003Ct.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Wt(e){return e.inclusiveLeft?-1:0}function Ht(e){return e.inclusiveRight?1:0}function Ft(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),n=it(r.from,i.from)||Wt(e)-Wt(t);if(n)return-n;i=it(r.to,i.to)||Ht(e)-Ht(t);return i||t.id-e.id}function Et(e,t){var n,r=kt&&e.markedSpans;if(r)for(var i,o=0;o\u003Cr.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ft(n,i.marker)\u003C0)&&(n=i.marker);return n}function Pt(e){return Et(e,!0)}function It(e){return Et(e,!1)}function Rt(e,t,n,r,i){var t=$e(e,t),o=kt&&t.markedSpans;if(o)for(var l=0;l\u003Co.length;++l){var s=o[l];if(s.marker.collapsed){var a=s.marker.find(0),u=it(a.from,n)||Wt(s.marker)-Wt(i),c=it(a.to,r)||Ht(s.marker)-Ht(i);if(!(0\u003C=u&&c\u003C=0||u\u003C=0&&0\u003C=c)&&(u\u003C=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?0\u003C=it(a.to,n):0\u003Cit(a.to,n))||0\u003C=u&&(s.marker.inclusiveRight&&i.inclusiveLeft?it(a.from,r)\u003C=0:it(a.from,r)\u003C0)))return 1}}}function zt(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=$e(e,t),e=zt(n);return n==e?t:Je(e)}function Gt(e,t){if(t>e.lastLine())return t;var n,r=$e(e,t);if(!Ut(e,r))return t;for(;n=It(r);)r=n.find(1,!0).line;return Je(r)+1}function Ut(e,t){var n=kt&&t.markedSpans;if(n)for(var r,i=0;i\u003Cn.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&function e(t,n,r){if(null==r.to){var i=r.marker.find(1,!0);return e(t,i.line,Mt(i.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==n.text.length)return!0;for(var o=void 0,l=0;l\u003Cn.markedSpans.length;++l)if((o=n.markedSpans[l]).marker.collapsed&&!o.marker.widgetNode&&o.from==r.to&&(null==o.to||o.to!=r.from)&&(o.marker.inclusiveLeft||r.marker.inclusiveRight)&&e(t,n,o))return!0}(e,t,r))return!0}}function Vt(e){for(var t=0,n=(e=zt(e)).parent,r=0;r\u003Cn.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var l=0;l\u003Co.children.length;++l){var s=o.children[l];if(s==n)break;t+=s.height}return t}function Kt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Pt(r);){var i=t.find(0,!0),r=i.from.line;n+=i.from.ch-i.to.ch}for(r=e;t=It(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function jt(e){var n=e.display,e=e.doc;n.maxLine=$e(e,e.first),n.maxLineLength=Kt(n.maxLine),n.maxLineChanged=!0,e.iter(function(e){var t=Kt(e);t>n.maxLineLength&&(n.maxLineLength=t,n.maxLine=e)})}var Xt=function(e,t,n){this.text=e,Dt(this,t),this.height=n?n(this):1};Xt.prototype.lineNo=function(){return Je(this)},ke(Xt);var Yt={},_t={};function $t(e,t){if(!e||/^\\\\s*$/.test(e))return null;t=t.addModeClass?_t:Yt;return t[e]||(t[e]=e.replace(/\\\\S+/g,\\\"cm-$&\\\"))}function qt(e,t){var n=N(\\\"span\\\",null,null,f?\\\"padding-right: .1px\\\":null),r={pre:N(\\\"pre\\\",[n],\\\"CodeMirror-line\\\"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(\\\"lineWrapping\\\")};t.measure={};for(var i=0;i\u003C=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Qt,function(e){if(null!=He)return He;var t=T(e,document.createTextNode(\\\"AخA\\\")),n=S(t,0,1).getBoundingClientRect(),t=S(t,1,2).getBoundingClientRect();return k(e),n&&n.left!=n.right&&(He=t.right-n.right\u003C3)}(e.display.measure)&&(l=me(o,e.doc.direction))&&(r.addToken=function(h,d){return function(e,t,n,r,i,o,l){n=n?n+\\\" cm-force-border\\\":\\\"cm-force-border\\\";for(var s=e.pos,a=s+t.length;;){for(var u=void 0,c=0;c\u003Cd.length&&!((u=d[c]).to>s&&u.from\u003C=s);c++);if(u.to>=a)return h(e,t,n,r,i,o,l);h(e,t.slice(0,u.to-s),n,r,null,o,l),r=null,t=t.slice(u.to-s),s=u.to}}}(r.addToken,l)),r.map=[],function(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;l\u003Cn.length;l+=2)t.addToken(t,i.slice(o,o=n[l]),$t(n[l+1],t.cm.options));return}for(var s,a,u,c,h,d,f,p=i.length,g=0,m=1,v=\\\"\\\",y=0;;){if(y==g){u=c=h=a=\\\"\\\",d=f=null,y=1/0;for(var b=[],w=void 0,x=0;x\u003Cr.length;++x){var C=r[x],S=C.marker;if(\\\"bookmark\\\"==S.type&&C.from==g&&S.widgetNode)b.push(S);else if(C.from\u003C=g&&(null==C.to||C.to>g||S.collapsed&&C.to==g&&C.from==g)){if(null!=C.to&&C.to!=g&&y>C.to&&(y=C.to,c=\\\"\\\"),S.className&&(u+=\\\" \\\"+S.className),S.css&&(a=(a?a+\\\";\\\":\\\"\\\")+S.css),S.startStyle&&C.from==g&&(h+=\\\" \\\"+S.startStyle),S.endStyle&&C.to==y&&(w=w||[]).push(S.endStyle,C.to),S.title&&((f=f||{}).title=S.title),S.attributes)for(var L in S.attributes)(f=f||{})[L]=S.attributes[L];S.collapsed&&(!d||Ft(d.marker,S)\u003C0)&&(d=C)}else C.from>g&&y>C.from&&(y=C.from)}if(w)for(var k=0;k\u003Cw.length;k+=2)w[k+1]==y&&(c+=\\\" \\\"+w[k]);if(!d||d.from==g)for(var T=0;T\u003Cb.length;++T)Jt(t,0,b[T]);if(d&&(d.from||0)==g){if(Jt(t,(null==d.to?p+1:d.to)-g,d.marker,null==d.from),null==d.to)return;d.to==g&&(d=!1)}}if(p\u003C=g)break;for(var M=Math.min(p,y);;){if(v){var N,A=g+v.length;if(d||(N=M\u003CA?v.slice(0,M-g):v,t.addToken(t,N,s?s+u:u,h,g+N.length==y?c:\\\"\\\",a,f)),M\u003C=A){v=v.slice(M-g),g=M;break}g=A,h=\\\"\\\"}v=i.slice(o,o=n[m++]),s=$t(n[m++],t.cm.options)}}}(o,r,gt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=W(o.styleClasses.bgClass,r.bgClass||\\\"\\\")),o.styleClasses.textClass&&(r.textClass=W(o.styleClasses.textClass,r.textClass||\\\"\\\"))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(function(e){null==We&&(t=M(\\\"span\\\",\\\"\\\"),T(e,M(\\\"span\\\",[t,document.createTextNode(\\\"x\\\")])),0!=e.firstChild.offsetHeight&&(We=t.offsetWidth\u003C=1&&2\u003Ct.offsetHeight&&!(w&&v\u003C8)));var t=We?M(\\\"span\\\",\\\"\\\"):M(\\\"span\\\",\\\" \\\",null,\\\"display: inline-block; width: 1px; margin-right: -1px\\\");return t.setAttribute(\\\"cm-text\\\",\\\"\\\"),t}(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return f&&(n=r.content.lastChild,(/\\\\bcm-tab\\\\b/.test(n.className)||n.querySelector&&n.querySelector(\\\".cm-tab\\\"))&&(r.content.className=\\\"cm-tab-wrap-hack\\\")),xe(e,\\\"renderLine\\\",e,t.line,r.pre),r.pre.className&&(r.textClass=W(r.pre.className,r.textClass||\\\"\\\")),r}function Zt(e){var t=M(\\\"span\\\",\\\"•\\\",\\\"cm-invalidchar\\\");return t.title=\\\"\\\\\\\\u\\\"+e.charCodeAt(0).toString(16),t.setAttribute(\\\"aria-label\\\",t.title),t}function Qt(e,t,n,r,i,o,l){if(t){var s,a=e.splitSpaces?function(e,t){if(1\u003Ce.length&&!/ /.test(e))return e;for(var n=t,r=\\\"\\\",i=0;i\u003Ce.length;i++){var o=e.charAt(i);\\\" \\\"!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=\\\" \\\"),r+=o,n=\\\" \\\"==o}return r}(t,e.trailingSpace):t,u=e.cm.state.specialChars,c=!1;if(u.test(t)){s=document.createDocumentFragment();for(var h=0;;){u.lastIndex=h;var d=u.exec(t),f=d?d.index-h:t.length-h;if(f&&(p=document.createTextNode(a.slice(h,h+f)),w&&v\u003C9?s.appendChild(M(\\\"span\\\",[p])):s.appendChild(p),e.map.push(e.pos,e.pos+f,p),e.col+=f,e.pos+=f),!d)break;h+=1+f;var p=void 0;\\\"\\\\t\\\"==d[0]?(f=(f=e.cm.options.tabSize)-e.col%f,(p=s.appendChild(M(\\\"span\\\",X(f),\\\"cm-tab\\\"))).setAttribute(\\\"role\\\",\\\"presentation\\\"),p.setAttribute(\\\"cm-text\\\",\\\"\\\\t\\\"),e.col+=f):(\\\"\\\\r\\\"==d[0]||\\\"\\\\n\\\"==d[0]?(p=s.appendChild(M(\\\"span\\\",\\\"\\\\r\\\"==d[0]?\\\"␍\\\":\\\"\\\",\\\"cm-invalidchar\\\"))).setAttribute(\\\"cm-text\\\",d[0]):((p=e.cm.options.specialCharPlaceholder(d[0])).setAttribute(\\\"cm-text\\\",d[0]),w&&v\u003C9?s.appendChild(M(\\\"span\\\",[p])):s.appendChild(p)),e.col+=1),e.map.push(e.pos,e.pos+1,p),e.pos++}}else e.col+=t.length,s=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,s),w&&v\u003C9&&(c=!0),e.pos+=t.length;if(e.trailingSpace=32==a.charCodeAt(t.length-1),n||r||i||c||o||l){n=n||\\\"\\\";r&&(n+=r),i&&(n+=i);var g=M(\\\"span\\\",[s],n,o);if(l)for(var m in l)l.hasOwnProperty(m)&&\\\"style\\\"!=m&&\\\"class\\\"!=m&&g.setAttribute(m,l[m]);return e.content.appendChild(g)}e.content.appendChild(s)}}function Jt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i=i||e.content.appendChild(document.createElement(\\\"span\\\"))).setAttribute(\\\"cm-marker\\\",n.id),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function en(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=It(e);)e=t.find(1,!0).line,(n=n||[]).push(e);return n}(t),this.size=this.rest?Je(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function tn(e,t,n){for(var r=[],i=t;i\u003Cn;i=l){var o=new en(e.doc,$e(e.doc,i),i),l=i+o.size;r.push(o)}return r}var nn=null;function rn(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n\u003Ct.length;n++)t[n].call(null);for(var r=0;r\u003Ce.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled\u003Ci.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n\u003Ct.length)}(n)}finally{nn=null,t(n)}}var on=null;function ln(e,t){var n=be(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);nn?r=nn.delayedCallbacks:on?r=on:(r=on=[],setTimeout(sn,0));for(var o=0;o\u003Cn.length;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function sn(){var e=on;on=null;for(var t=0;t\u003Ce.length;++t)e[t]()}function an(e,t,n,r){for(var i=0;i\u003Ct.changes.length;i++){var o=t.changes[i];\\\"text\\\"==o?function(e,t){var n=t.text.className,r=cn(e,t);t.text==t.node&&(t.node=r.pre);t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}(e,t):\\\"gutter\\\"==o?dn(e,t,n,r):\\\"class\\\"==o?hn(e,t):\\\"widget\\\"==o&&function(e,t,n){t.alignable&&(t.alignable=null);for(var r=C(\\\"CodeMirror-linewidget\\\"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);fn(e,t,n)}(e,t,r)}t.changes=null}function un(e){return e.node==e.text&&(e.node=M(\\\"div\\\",null,null,\\\"position: relative\\\"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),w&&v\u003C8&&(e.node.style.zIndex=2)),e.node}function cn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):qt(e,t)}function hn(e,t){var n,r;n=e,(r=(i=t).bgClass?i.bgClass+\\\" \\\"+(i.line.bgClass||\\\"\\\"):i.line.bgClass)&&(r+=\\\" CodeMirror-linebackground\\\"),i.background?r?i.background.className=r:(i.background.parentNode.removeChild(i.background),i.background=null):r&&(e=un(i),i.background=e.insertBefore(M(\\\"div\\\",null,r),e.firstChild),n.display.input.setUneditable(i.background)),t.line.wrapClass?un(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className=\\\"\\\");var i=t.textClass?t.textClass+\\\" \\\"+(t.line.textClass||\\\"\\\"):t.line.textClass;t.text.className=i||\\\"\\\"}function dn(e,t,n,r){t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass&&(o=un(t),t.gutterBackground=M(\\\"div\\\",null,\\\"CodeMirror-gutter-background \\\"+t.line.gutterClass,\\\"left: \\\"+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+\\\"px; width: \\\"+r.gutterTotalWidth+\\\"px\\\"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text));var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=un(t),l=t.gutter=M(\\\"div\\\",null,\\\"CodeMirror-gutter-wrapper\\\",\\\"left: \\\"+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+\\\"px\\\");if(e.display.input.setUneditable(l),o.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=\\\" \\\"+t.line.gutterClass),!e.options.lineNumbers||i&&i[\\\"CodeMirror-linenumbers\\\"]||(t.lineNumber=l.appendChild(M(\\\"div\\\",nt(e.options,n),\\\"CodeMirror-linenumber CodeMirror-gutter-elt\\\",\\\"left: \\\"+r.gutterLeft[\\\"CodeMirror-linenumbers\\\"]+\\\"px; width: \\\"+e.display.lineNumInnerWidth+\\\"px\\\"))),i)for(var s=0;s\u003Ce.display.gutterSpecs.length;++s){var a=e.display.gutterSpecs[s].className,u=i.hasOwnProperty(a)&&i[a];u&&l.appendChild(M(\\\"div\\\",[u],\\\"CodeMirror-gutter-elt\\\",\\\"left: \\\"+r.gutterLeft[a]+\\\"px; width: \\\"+r.gutterWidth[a]+\\\"px\\\"))}}}function fn(e,t,n){if(pn(e,t.line,t,n,!0),t.rest)for(var r=0;r\u003Ct.rest.length;r++)pn(e,t.rest[r],t,n,!1)}function pn(e,t,n,r,i){if(t.widgets)for(var o=un(n),l=0,s=t.widgets;l\u003Cs.length;++l){var a=s[l],u=M(\\\"div\\\",[a.node],\\\"CodeMirror-linewidget\\\"+(a.className?\\\" \\\"+a.className:\\\"\\\"));a.handleMouseEvents||u.setAttribute(\\\"cm-ignore-events\\\",\\\"true\\\"),function(e,t,n,r){e.noHScroll&&((n.alignable||(n.alignable=[])).push(t),n=r.wrapperWidth,t.style.left=r.fixedPos+\\\"px\\\",e.coverGutter||(n-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+\\\"px\\\"),t.style.width=n+\\\"px\\\");e.coverGutter&&(t.style.zIndex=5,t.style.position=\\\"relative\\\",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+\\\"px\\\"))}(a,u,n,r),e.display.input.setUneditable(u),i&&a.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),ln(a,\\\"redraw\\\")}}function gn(e){if(null!=e.height)return e.height;var t,n=e.doc.cm;return n?(A(document.body,e.node)||(t=\\\"position: relative;\\\",e.coverGutter&&(t+=\\\"margin-left: -\\\"+n.display.gutters.offsetWidth+\\\"px;\\\"),e.noHScroll&&(t+=\\\"width: \\\"+n.display.wrapper.clientWidth+\\\"px;\\\"),T(n.display.measure,M(\\\"div\\\",[e.node],null,t))),e.height=e.node.parentNode.offsetHeight):0}function mn(e,t){for(var n=Oe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&\\\"true\\\"==n.getAttribute(\\\"cm-ignore-events\\\")||n.parentNode==e.sizer&&n!=e.mover)return 1}function vn(e){return e.lineSpace.offsetTop}function yn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function bn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,M(\\\"pre\\\",\\\"x\\\",\\\"CodeMirror-line-like\\\")),t=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,t={left:parseInt(t.paddingLeft),right:parseInt(t.paddingRight)};return isNaN(t.left)||isNaN(t.right)||(e.cachedPaddingH=t),t}function wn(e){return z-e.display.nativeBarWidth}function xn(e){return e.display.scroller.clientWidth-wn(e)-e.display.barWidth}function Cn(e){return e.display.scroller.clientHeight-wn(e)-e.display.barHeight}function Sn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r\u003Ce.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i\u003Ce.rest.length;i++)if(Je(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ln(e,t,n,r){return Mn(e,Tn(e,t),n,r)}function kn(e,t){if(t>=e.display.viewFrom&&t\u003Ce.display.viewTo)return e.display.view[er(e,t)];e=e.display.externalMeasured;return e&&t>=e.lineN&&t\u003Ce.lineN+e.size?e:void 0}function Tn(e,t){var n,r,i=Je(t),o=kn(e,i);o&&!o.text?o=null:o&&o.changes&&(an(e,o,i,$n(e)),e.curOp.forceUpdate=!0),o||(n=e,e=Je(r=zt(r=t)),(r=n.display.externalMeasured=new en(n.doc,r,e)).lineN=e,e=r.built=qt(n,r),r.text=e.pre,T(n.display.lineMeasure,e.pre),o=r);i=Sn(o,t,i);return{line:t,view:o,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Mn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||\\\"\\\");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,e=r&&xn(e);if(!t.measure.heights||r&&t.measure.width!=e){var i=t.measure.heights=[];if(r){t.measure.width=e;for(var o=t.text.firstChild.getClientRects(),l=0;l\u003Co.length-1;l++){var s=o[l],a=o[l+1];2\u003CMath.abs(s.bottom-a.bottom)&&i.push((s.bottom+a.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=On(t.map,n,r),l=o.node,s=o.start,a=o.end,u=o.collapse;if(3==l.nodeType){for(var c=0;c\u003C4;c++){for(;s&&ne(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+a\u003Co.coverEnd&&ne(t.line.text.charAt(o.coverStart+a));)++a;if((i=w&&v\u003C9&&0==s&&a==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():function(e,t){var n=An;if(\\\"left\\\"==t)for(var r=0;r\u003Ce.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;0\u003C=i&&(n=e[i]).left==n.right;i--);return n}(S(l,s,a).getClientRects(),r)).left||i.right||0==s)break;a=s,--s,u=\\\"right\\\"}w&&v\u003C11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Re)return Re;var e=(t=T(e,M(\\\"span\\\",\\\"x\\\"))).getBoundingClientRect(),t=S(t,0,1).getBoundingClientRect();return Re=1\u003CMath.abs(e.left-t.left)}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,e=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*e,bottom:t.bottom*e}}(e.display.measure,i))}else 0\u003Cs&&(u=r=\\\"right\\\"),i=e.options.lineWrapping&&1\u003C(g=l.getClientRects()).length?g[\\\"right\\\"==r?g.length-1:0]:l.getBoundingClientRect();!(w&&v\u003C9)||s||i&&(i.left||i.right)||(m=l.parentNode.getClientRects()[0],i=m?{left:m.left,right:m.left+_n(e.display),top:m.top,bottom:m.bottom}:An);for(var h=i.top-t.rect.top,n=i.bottom-t.rect.top,d=(h+n)/2,f=t.view.measure.heights,p=0;p\u003Cf.length-1&&!(d\u003Cf[p]);p++);var g=p?f[p-1]:0,m=f[p],m={left:(\\\"right\\\"==u?i.right:i.left)-t.rect.left,right:(\\\"left\\\"==u?i.left:i.right)-t.rect.left,top:g,bottom:m};i.left||i.right||(m.bogus=!0);e.options.singleCursorHeightPerLine||(m.rtop=h,m.rbottom=n);return m}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Nn,An={left:0,right:0,top:0,bottom:0};function On(e,t,n){for(var r,i,o,l,s,a,u=0;u\u003Ce.length;u+=3)if(s=e[u],a=e[u+1],t\u003Cs?(i=0,o=1,l=\\\"left\\\"):t\u003Ca?o=(i=t-s)+1:(u==e.length-3||t==a&&e[u+3]>t)&&(i=(o=a-s)-1,a\u003C=t&&(l=\\\"right\\\")),null!=i){if(r=e[u+2],s==a&&n==(r.insertLeft?\\\"left\\\":\\\"right\\\")&&(l=n),\\\"left\\\"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],l=\\\"left\\\";if(\\\"right\\\"==n&&i==a-s)for(;u\u003Ce.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],l=\\\"right\\\";break}return{node:r,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Dn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t\u003Ce.rest.length;t++)e.measure.caches[t]={}}function Wn(e){e.display.externalMeasure=null,k(e.display.lineMeasure);for(var t=0;t\u003Ce.display.view.length;t++)Dn(e.display.view[t])}function Hn(e){Wn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Fn(){return o&&a?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function En(){return o&&a?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Pn(e){var t=0;if(e.widgets)for(var n=0;n\u003Ce.widgets.length;++n)e.widgets[n].above&&(t+=gn(e.widgets[n]));return t}function In(e,t,n,r,i){if(i||(i=Pn(t),n.top+=i,n.bottom+=i),\\\"line\\\"==r)return n;r=r||\\\"local\\\";t=Vt(t);return\\\"local\\\"==r?t+=vn(e.display):t-=e.display.viewOffset,\\\"page\\\"!=r&&\\\"window\\\"!=r||(t+=(e=e.display.lineSpace.getBoundingClientRect()).top+(\\\"window\\\"==r?0:En()),r=e.left+(\\\"window\\\"==r?0:Fn()),n.left+=r,n.right+=r),n.top+=t,n.bottom+=t,n}function Rn(e,t,n){if(\\\"div\\\"==n)return t;var r=t.left,t=t.top;\\\"page\\\"==n?(r-=Fn(),t-=En()):\\\"local\\\"!=n&&n||(r+=(n=e.display.sizer.getBoundingClientRect()).left,t+=n.top);e=e.display.lineSpace.getBoundingClientRect();return{left:r-e.left,top:t-e.top}}function zn(e,t,n,r,i){return In(e,r=r||$e(e.doc,t.line),Ln(e,r,t.ch,i),n)}function Bn(n,e,r,i,o,l){function s(e,t){e=Mn(n,o,e,t?\\\"right\\\":\\\"left\\\",l);return t?e.left=e.right:e.right=e.left,In(n,i,e,r)}i=i||$e(n.doc,e.line),o=o||Tn(n,i);var a=me(i,n.doc.direction),t=e.ch,u=e.sticky;if(t>=i.text.length?(t=i.text.length,u=\\\"before\\\"):t\u003C=0&&(t=0,u=\\\"after\\\"),!a)return s(\\\"before\\\"==u?t-1:t,\\\"before\\\"==u);function c(e,t,n){return s(n?e-1:e,1==a[t].level!=n)}var h=le(a,t,u),e=oe,h=c(t,h,\\\"before\\\"==u);return null!=e&&(h.other=c(t,e,\\\"before\\\"!=u)),h}function Gn(e,t){var n=0;t=ct(e.doc,t),e.options.lineWrapping||(n=_n(e.display)*t.ch);t=$e(e.doc,t.line),e=Vt(t)+vn(e.display);return{left:n,right:n,top:e,bottom:e+t.height}}function Un(e,t,n,r,i){n=rt(e,t,n);return n.xRel=i,r&&(n.outside=r),n}function Vn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)\u003C0)return Un(r.first,0,null,-1,-1);var i=et(r,n),o=r.first+r.size-1;if(o\u003Ci)return Un(r.first+r.size-1,$e(r,o).text.length,null,1,1);t\u003C0&&(t=0);for(var l=$e(r,i);;){var s=function(n,e,t,r,i){i-=Vt(e);var o=Tn(n,e),l=Pn(e),s=0,a=e.text.length,u=!0,c=me(e,n.doc.direction);c&&(f=(n.options.lineWrapping?function(e,t,n,r,i,o,l){var l=Kn(e,t,r,l),s=l.begin,a=l.end;/\\\\s/.test(t.text.charAt(a-1))&&a--;for(var u=null,c=null,h=0;h\u003Ci.length;h++){var d,f=i[h];f.from>=a||f.to\u003C=s||(d=1!=f.level,d=Mn(e,r,d?Math.min(a,f.to)-1:Math.max(s,f.from)).right,d=d\u003Co?o-d+1e9:d-o,(!u||d\u003Cc)&&(u=f,c=d))}u=u||i[i.length-1];u.from\u003Cs&&(u={from:s,to:u.to,level:u.level});u.to>a&&(u={from:u.from,to:a,level:u.level});return u}:function(n,r,i,o,l,s,a){var e=ie(function(e){var t=l[e],e=1!=t.level;return Xn(Bn(n,rt(i,e?t.to:t.from,e?\\\"before\\\":\\\"after\\\"),\\\"line\\\",r,o),s,a,!0)},0,l.length-1),t=l[e];{var u;0\u003Ce&&(u=1!=t.level,Xn(u=Bn(n,rt(i,u?t.from:t.to,u?\\\"after\\\":\\\"before\\\"),\\\"line\\\",r,o),s,a,!0)&&u.top>a&&(t=l[e-1]))}return t})(n,e,t,o,c,r,i),u=1!=f.level,s=u?f.from:f.to-1,a=u?f.to:f.from-1);var h=null,d=null,c=ie(function(e){var t=Mn(n,o,e);return t.top+=l,t.bottom+=l,Xn(t,r,i,!1)&&(t.top\u003C=i&&t.left\u003C=r&&(h=e,d=t),1)},s,a),f=!1;{var p,g;d?(p=r-d.left\u003Cd.right-r,c=h+((g=p==u)?0:1),g=g?\\\"after\\\":\\\"before\\\",p=p?d.left:d.right):(u||c!=a&&c!=s||c++,g=0==c||c!=e.text.length&&Mn(n,o,c-(u?1:0)).bottom+l\u003C=i==u?\\\"after\\\":\\\"before\\\",u=Bn(n,rt(t,c,g),\\\"line\\\",e,o),p=u.left,f=i\u003Cu.top?-1:i>=u.bottom?1:0)}return c=re(e.text,c,1),Un(t,c,g,f,r-p)}(e,l,i,t,n),a=function(e,t){var n,r=kt&&e.markedSpans;if(r)for(var i=0;i\u003Cr.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from\u003Ct)&&(null==o.to||o.to>t)&&(!n||Ft(n,o.marker)\u003C0)&&(n=o.marker)}return n}(l,s.ch+(0\u003Cs.xRel||0\u003Cs.outside?1:0));if(!a)return s;a=a.find(1);if(a.line==i)return a;l=$e(r,i=a.line)}}function Kn(t,e,n,r){r-=Pn(e);var i=e.text.length,e=ie(function(e){return Mn(t,n,e-1).bottom\u003C=r},i,0);return{begin:e,end:i=ie(function(e){return Mn(t,n,e).top>r},e,i)}}function jn(e,t,n,r){return Kn(e,t,n=n||Tn(e,t),In(e,t,Mn(e,n,r),\\\"line\\\").top)}function Xn(e,t,n,r){return!(e.bottom\u003C=n)&&(e.top>n||(r?e.left:e.right)>t)}function Yn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Nn){Nn=M(\\\"pre\\\",null,\\\"CodeMirror-line-like\\\");for(var t=0;t\u003C49;++t)Nn.appendChild(document.createTextNode(\\\"x\\\")),Nn.appendChild(M(\\\"br\\\"));Nn.appendChild(document.createTextNode(\\\"x\\\"))}T(e.measure,Nn);var n=Nn.offsetHeight/50;return 3\u003Cn&&(e.cachedTextHeight=n),k(e.measure),n||1}function _n(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M(\\\"span\\\",\\\"xxxxxxxxxx\\\"),n=M(\\\"pre\\\",[t],\\\"CodeMirror-line-like\\\");T(e.measure,n);t=t.getBoundingClientRect(),t=(t.right-t.left)/10;return 2\u003Ct&&(e.cachedCharWidth=t),t||10}function $n(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var s=e.display.gutterSpecs[l].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:qn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function qn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Zn(r){var i=Yn(r.display),o=r.options.lineWrapping,l=o&&Math.max(5,r.display.scroller.clientWidth/_n(r.display)-3);return function(e){if(Ut(r.doc,e))return 0;var t=0;if(e.widgets)for(var n=0;n\u003Ce.widgets.length;n++)e.widgets[n].height&&(t+=e.widgets[n].height);return o?t+(Math.ceil(e.text.length/l)||1)*i:t+i}}function Qn(e){var t=e.doc,n=Zn(e);t.iter(function(e){var t=n(e);t!=e.height&&Qe(e,t)})}function Jn(e,t,n,r){var i=e.display;if(!n&&\\\"true\\\"==Oe(t).getAttribute(\\\"cm-not-content\\\"))return null;var o,l,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,l=t.clientY-s.top}catch(e){return null}var a,i=Vn(e,o,l);return r&&0\u003Ci.xRel&&(a=$e(e.doc,i.line).text).length==i.ch&&(a=P(a,a.length,e.options.tabSize)-a.length,i=rt(i.line,Math.max(0,Math.round((o-bn(e.display).left)/_n(e.display))-a))),i}function er(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)\u003C0)return null;for(var n=e.display.view,r=0;r\u003Cn.length;r++)if((t-=n[r].size)\u003C0)return r}function tr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r=r||0;var i,o,l=e.display;r&&n\u003Cl.viewTo&&(null==l.updateLineNumbers||l.updateLineNumbers>t)&&(l.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=l.viewTo?kt&&Bt(e.doc,t)\u003Cl.viewTo&&rr(e):n\u003C=l.viewFrom?kt&&Gt(e.doc,n+r)>l.viewFrom?rr(e):(l.viewFrom+=r,l.viewTo+=r):t\u003C=l.viewFrom&&n>=l.viewTo?rr(e):t\u003C=l.viewFrom?(i=ir(e,n,n+r,1))?(l.view=l.view.slice(i.index),l.viewFrom=i.lineN,l.viewTo+=r):rr(e):n>=l.viewTo?(o=ir(e,t,t,-1))?(l.view=l.view.slice(0,o.index),l.viewTo=o.lineN):rr(e):(i=ir(e,t,t,-1),o=ir(e,n,n+r,1),i&&o?(l.view=l.view.slice(0,i.index).concat(tn(e,i.lineN,o.lineN)).concat(l.view.slice(o.index)),l.viewTo+=r):rr(e));e=l.externalMeasured;e&&(n\u003Ce.lineN?e.lineN+=r:t\u003Ce.lineN+e.size&&(l.externalMeasured=null))}function nr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;i&&t>=i.lineN&&t\u003Ci.lineN+i.size&&(r.externalMeasured=null),t\u003Cr.viewFrom||t>=r.viewTo||(null==(t=r.view[er(e,t)]).node||-1==R(t=t.changes||(t.changes=[]),n)&&t.push(n))}function rr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ir(e,t,n,r){var i,o=er(e,t),l=e.display.view;if(!kt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,a=0;a\u003Co;a++)s+=l[a].size;if(s!=t){if(0\u003Cr){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r\u003C0?0:l.length-1))return null;n+=r*l[o-(r\u003C0?1:0)].size,o+=r}return{index:o,lineN:n}}function or(e){for(var t=e.display.view,n=0,r=0;r\u003Ct.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function lr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function sr(e,t){void 0===t&&(t=!0);for(var n,r,i=e.doc,o={},l=o.cursors=document.createDocumentFragment(),s=o.selection=document.createDocumentFragment(),a=0;a\u003Ci.sel.ranges.length;a++)!t&&a==i.sel.primIndex||((n=i.sel.ranges[a]).from().line>=e.display.viewTo||n.to().line\u003Ce.display.viewFrom||(((r=n.empty())||e.options.showCursorWhenSelecting)&&ar(e,n.head,l),r||function(i,e,t){var n=i.display,o=i.doc,l=document.createDocumentFragment(),r=bn(i.display),S=r.left,L=Math.max(n.sizerWidth,xn(i)-n.sizer.offsetLeft)-r.right,k=\\\"ltr\\\"==o.direction;function T(e,t,n,r){t\u003C0&&(t=0),t=Math.round(t),r=Math.round(r),l.appendChild(M(\\\"div\\\",null,\\\"CodeMirror-selected\\\",\\\"position: absolute; left: \\\"+e+\\\"px;\\\\n top: \\\"+t+\\\"px; width: \\\"+(null==n?L-e:n)+\\\"px;\\\\n height: \\\"+(r-t)+\\\"px\\\"))}function s(n,g,m){var v,y,r=$e(o,n),b=r.text.length;function w(e,t){return zn(i,rt(n,e),\\\"div\\\",r,t)}function x(e,t,n){e=jn(i,r,null,e),t=\\\"ltr\\\"==t==(\\\"after\\\"==n)?\\\"left\\\":\\\"right\\\";return w(\\\"after\\\"==n?e.begin:e.end-(/\\\\s/.test(r.text.charAt(e.end-1))?2:1),t)[t]}var C=me(r,o.direction);return function(e,t,n,r){if(!e)return r(t,n,\\\"ltr\\\",0);for(var i=!1,o=0;o\u003Ce.length;++o){var l=e[o];(l.from\u003Cn&&l.to>t||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),1==l.level?\\\"rtl\\\":\\\"ltr\\\",o),i=!0)}i||r(t,n,\\\"ltr\\\")}(C,g||0,null==m?b:m,function(e,t,n,r){var i,o,l,s,a=\\\"ltr\\\"==n,u=w(e,a?\\\"left\\\":\\\"right\\\"),c=w(t-1,a?\\\"right\\\":\\\"left\\\"),h=null==g&&0==e,d=null==m&&t==b,f=0==r,p=!C||r==C.length-1;c.top-u.top\u003C=3?(i=(k?d:h)&&p,r=(k?h:d)&&f?S:(a?u:c).left,i=i?L:(a?c:u).right,T(r,u.top,i-r,u.bottom)):(n=a?(o=k&&h&&f?S:u.left,l=k?L:x(e,n,\\\"before\\\"),s=k?S:x(t,n,\\\"after\\\"),k&&d&&p?L:c.right):(o=k?x(e,n,\\\"before\\\"):S,l=!k&&h&&f?L:u.right,s=!k&&d&&p?S:c.left,k?x(t,n,\\\"after\\\"):L),T(o,u.top,l-o,u.bottom),u.bottom\u003Cc.top&&T(S,u.bottom,null,c.top),T(s,c.top,n-s,c.bottom)),(!v||ur(u,v)\u003C0)&&(v=u),ur(c,v)\u003C0&&(v=c),(!y||ur(u,y)\u003C0)&&(y=u),ur(c,y)\u003C0&&(y=c)}),{start:v,end:y}}var a=e.from(),n=e.to();a.line==n.line?s(a.line,a.ch,n.ch):(r=$e(o,a.line),e=$e(o,n.line),e=zt(r)==zt(e),r=s(a.line,a.ch,e?r.text.length+1:null).end,n=s(n.line,e?0:null,n.ch).start,e&&(r.top\u003Cn.top-2?(T(r.right,r.top,null,r.bottom),T(S,n.top,n.left,n.bottom)):T(r.right,r.top,n.left-r.right,r.bottom)),r.bottom\u003Cn.top&&T(S,r.bottom,null,n.top));t.appendChild(l)}(e,n,s)));return o}function ar(e,t,n){var r=Bn(e,t,\\\"div\\\",null,null,!e.options.singleCursorHeightPerLine),t=n.appendChild(M(\\\"div\\\",\\\" \\\",\\\"CodeMirror-cursor\\\"));t.style.left=r.left+\\\"px\\\",t.style.top=r.top+\\\"px\\\",t.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+\\\"px\\\",r.other&&((n=n.appendChild(M(\\\"div\\\",\\\" \\\",\\\"CodeMirror-cursor CodeMirror-secondarycursor\\\"))).style.display=\\\"\\\",n.style.left=r.other.left+\\\"px\\\",n.style.top=r.other.top+\\\"px\\\",n.style.height=.85*(r.other.bottom-r.other.top)+\\\"px\\\")}function ur(e,t){return e.top-t.top||e.left-t.left}function cr(e){var t,n;e.state.focused&&(t=e.display,clearInterval(t.blinker),n=!0,t.cursorDiv.style.visibility=\\\"\\\",0\u003Ce.options.cursorBlinkRate?t.blinker=setInterval(function(){e.hasFocus()||pr(e),t.cursorDiv.style.visibility=(n=!n)?\\\"\\\":\\\"hidden\\\"},e.options.cursorBlinkRate):e.options.cursorBlinkRate\u003C0&&(t.cursorDiv.style.visibility=\\\"hidden\\\"))}function hr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||fr(e))}function dr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&pr(e))},100)}function fr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),\\\"nocursor\\\"!=e.options.readOnly&&(e.state.focused||(xe(e,\\\"focus\\\",e,t),e.state.focused=!0,D(e.display.wrapper,\\\"CodeMirror-focused\\\"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),f&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),cr(e))}function pr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,\\\"blur\\\",e,t),e.state.focused=!1,L(e.display.wrapper,\\\"CodeMirror-focused\\\")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function gr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r\u003Ct.view.length;r++){var i,o=t.view[r],l=e.options.lineWrapping,s=void 0,a=0;if(!o.hidden){w&&v\u003C8?(s=(i=o.node.offsetTop+o.node.offsetHeight)-n,n=i):(s=(u=o.node.getBoundingClientRect()).bottom-u.top,!l&&o.text.firstChild&&(a=o.text.firstChild.getBoundingClientRect().right-u.left-1));var u=o.line.height-s;if((.005\u003Cu||u\u003C-.005)&&(Qe(o.line,s),mr(o.line),o.rest))for(var c=0;c\u003Co.rest.length;c++)mr(o.rest[c]);a>e.display.sizerWidth&&((a=Math.ceil(a/_n(e.display)))>e.display.maxLineLength&&(e.display.maxLineLength=a,e.display.maxLine=o.line,e.display.maxLineChanged=!0))}}}function mr(e){if(e.widgets)for(var t=0;t\u003Ce.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function vr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop,r=Math.floor(r-vn(e)),i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=et(t,r),r=et(t,i);return n&&n.ensure&&(i=n.ensure.from.line,n=n.ensure.to.line,i\u003Co?r=et(t,Vt($e(t,o=i))+e.wrapper.clientHeight):Math.min(n,t.lastLine())>=r&&(o=et(t,Vt($e(t,n))-e.wrapper.clientHeight),r=n)),{from:o,to:Math.max(r,o+1)}}function yr(e,t){var n=e.display,r=Yn(e.display);t.top\u003C0&&(t.top=0);var i=(e.curOp&&null!=e.curOp.scrollTop?e.curOp:n.scroller).scrollTop,o=Cn(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+yn(n),a=t.top\u003Cr,r=t.bottom>s-r;t.top\u003Ci?l.scrollTop=a?0:t.top:t.bottom>i+o&&((u=Math.min(t.top,(r?s:t.bottom)-o))!=i&&(l.scrollTop=u));var i=e.options.fixedGutter?0:n.gutters.offsetWidth,u=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-i,e=xn(e)-n.gutters.offsetWidth,n=t.right-t.left>e;return n&&(t.right=t.left+e),t.left\u003C10?l.scrollLeft=0:t.left\u003Cu?l.scrollLeft=Math.max(0,t.left+i-(n?0:10)):t.right>e+u-3&&(l.scrollLeft=t.right+(n?0:10)-e),l}function br(e,t){null!=t&&(Cr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc:e.curOp).scrollTop+t)}function wr(e){Cr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function xr(e,t,n){null==t&&null==n||Cr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Cr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Sr(e,Gn(e,t.from),Gn(e,t.to),t.margin))}function Sr(e,t,n,r){r=yr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});xr(e,r.scrollLeft,r.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)\u003C2||(d||Kr(e,{top:t}),kr(e,t,!0),d&&Kr(e),zr(e,100))}function kr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n||(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Tr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)\u003C2)&&!r||(e.doc.scrollLeft=t,Yr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Mr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+yn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}e=function(e,t,n){this.cm=n;var r=this.vert=M(\\\"div\\\",[M(\\\"div\\\",null,null,\\\"min-width: 1px\\\")],\\\"CodeMirror-vscrollbar\\\"),i=this.horiz=M(\\\"div\\\",[M(\\\"div\\\",null,null,\\\"height: 100%; min-height: 1px\\\")],\\\"CodeMirror-hscrollbar\\\");r.tabIndex=i.tabIndex=-1,e(r),e(i),ye(r,\\\"scroll\\\",function(){r.clientHeight&&t(r.scrollTop,\\\"vertical\\\")}),ye(i,\\\"scroll\\\",function(){i.clientWidth&&t(i.scrollLeft,\\\"horizontal\\\")}),this.checkedZeroWidth=!1,w&&v\u003C8&&(this.horiz.style.minHeight=this.vert.style.minWidth=\\\"18px\\\")};e.prototype.update=function(e){var t,n=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;return r?(this.vert.style.display=\\\"block\\\",this.vert.style.bottom=n?i+\\\"px\\\":\\\"0\\\",t=e.viewHeight-(n?i:0),this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+t)+\\\"px\\\"):(this.vert.style.display=\\\"\\\",this.vert.firstChild.style.height=\\\"0\\\"),n?(this.horiz.style.display=\\\"block\\\",this.horiz.style.right=r?i+\\\"px\\\":\\\"0\\\",this.horiz.style.left=e.barLeft+\\\"px\\\",t=e.viewWidth-e.barLeft-(r?i:0),this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+t)+\\\"px\\\"):(this.horiz.style.display=\\\"\\\",this.horiz.firstChild.style.width=\\\"0\\\"),!this.checkedZeroWidth&&0\u003Ce.clientHeight&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?i:0,bottom:n?i:0}},e.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,\\\"horiz\\\")},e.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,\\\"vert\\\")},e.prototype.zeroWidthHack=function(){var e=g&&!l?\\\"12px\\\":\\\"18px\\\";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents=\\\"none\\\",this.disableHoriz=new I,this.disableVert=new I},e.prototype.enableZeroWidthBar=function(n,r,i){n.style.pointerEvents=\\\"auto\\\",r.set(1e3,function e(){var t=n.getBoundingClientRect();(\\\"vert\\\"==i?document.elementFromPoint(t.right-1,(t.top+t.bottom)/2):document.elementFromPoint((t.right+t.left)/2,t.bottom-1))!=n?n.style.pointerEvents=\\\"none\\\":r.set(1e3,e)})},e.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};r=function(){};function Nr(e,t){t=t||Mr(e);var n=e.display.barWidth,r=e.display.barHeight;Ar(e,t);for(var i=0;i\u003C4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&gr(e),Ar(e,Mr(e)),n=e.display.barWidth,r=e.display.barHeight}function Ar(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+\\\"px\\\",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+\\\"px\\\",n.heightForcer.style.borderBottom=r.bottom+\\\"px solid transparent\\\",r.right&&r.bottom?(n.scrollbarFiller.style.display=\\\"block\\\",n.scrollbarFiller.style.height=r.bottom+\\\"px\\\",n.scrollbarFiller.style.width=r.right+\\\"px\\\"):n.scrollbarFiller.style.display=\\\"\\\",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display=\\\"block\\\",n.gutterFiller.style.height=r.bottom+\\\"px\\\",n.gutterFiller.style.width=t.gutterWidth+\\\"px\\\"):n.gutterFiller.style.display=\\\"\\\"}r.prototype.update=function(){return{bottom:0,right:0}},r.prototype.setScrollLeft=function(){},r.prototype.setScrollTop=function(){},r.prototype.clear=function(){};var Or={native:e,null:r};function Dr(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&L(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new Or[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller),ye(e,\\\"mousedown\\\",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),e.setAttribute(\\\"cm-not-content\\\",\\\"true\\\")},function(e,t){(\\\"horizontal\\\"==t?Tr:Lr)(n,e)},n),n.display.scrollbars.addClass&&D(n.display.wrapper,n.display.scrollbars.addClass)}var Wr=0;function Hr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wr},e=e.curOp,nn?nn.ops.push(e):e.ownsGroup=nn={ops:[e],delayedCallbacks:[]}}function Fr(e){e=e.curOp;e&&rn(e,function(e){for(var t=0;t\u003Ce.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n\u003Ct.length;n++)!function(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=wn(e)+\\\"px\\\",t.sizer.style.marginBottom=-t.nativeBarWidth+\\\"px\\\",t.sizer.style.borderRightWidth=wn(e)+\\\"px\\\",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&jt(t);e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line\u003Cn.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Gr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}(t[n]);for(var r=0;r\u003Ct.length;r++)!function(e){e.updatedDisplay=e.mustUpdate&&Ur(e.cm,e.update)}(t[r]);for(var i=0;i\u003Ct.length;i++)!function(e){var t=e.cm,n=t.display;e.updatedDisplay&&gr(t);e.barMeasure=Mr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ln(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xn(t)));(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}(t[i]);for(var o=0;o\u003Ct.length;o++)!function(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+\\\"px\\\",e.maxScrollLeft\u003Ct.doc.scrollLeft&&Tr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==O();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n);!e.updatedDisplay&&e.startHeight==t.doc.height||Nr(t,e.barMeasure);e.updatedDisplay&&Xr(t,e.barMeasure);e.selectionChanged&&cr(t);t.state.focused&&e.updateInput&&t.display.input.reset(e.typing);n&&hr(e.cm)}(t[o]);for(var l=0;l\u003Ct.length;l++)!function(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Vr(t,e.update);null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null);null!=e.scrollTop&&kr(t,e.scrollTop,e.forceScroll);null!=e.scrollLeft&&Tr(t,e.scrollLeft,!0,!0);{var i;e.scrollToPos&&(i=function(e,t,n,r){null==r&&(r=0),e.options.lineWrapping||t!=n||(n=\\\"before\\\"==(t=t.ch?rt(t.line,\\\"before\\\"==t.sticky?t.ch-1:t.ch,\\\"after\\\"):t).sticky?rt(t.line,t.ch+1,\\\"before\\\"):t);for(var i=0;i\u003C5;i++){var o,l=!1,s=Bn(e,t),a=n&&n!=t?Bn(e,n):s,u=yr(e,o={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-r,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+r}),s=e.doc.scrollTop,a=e.doc.scrollLeft;if(null!=u.scrollTop&&(Lr(e,u.scrollTop),1\u003CMath.abs(e.doc.scrollTop-s)&&(l=!0)),null!=u.scrollLeft&&(Tr(e,u.scrollLeft),1\u003CMath.abs(e.doc.scrollLeft-a)&&(l=!0)),!l)break}return o}(t,ct(r,e.scrollToPos.from),ct(r,e.scrollToPos.to),e.scrollToPos.margin),function(e,t){var n,r,i;Ce(e,\\\"scrollCursorIntoView\\\")||(r=(n=e.display).sizer.getBoundingClientRect(),i=null,t.top+r.top\u003C0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null==i||u||(t=M(\\\"div\\\",\\\"\\\",null,\\\"position: absolute;\\\\n top: \\\"+(t.top-n.viewOffset-vn(e.display))+\\\"px;\\\\n height: \\\"+(t.bottom-t.top+wn(e)+n.barHeight)+\\\"px;\\\\n left: \\\"+t.left+\\\"px; width: \\\"+Math.max(2,t.right-t.left)+\\\"px;\\\"),e.display.lineSpace.appendChild(t),t.scrollIntoView(i),e.display.lineSpace.removeChild(t)))}(t,i))}var o=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(o)for(var s=0;s\u003Co.length;++s)o[s].lines.length||xe(o[s],\\\"hide\\\");if(l)for(var a=0;a\u003Cl.length;++a)l[a].lines.length&&xe(l[a],\\\"unhide\\\");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop);e.changeObjs&&xe(t,\\\"changes\\\",t,e.changeObjs);e.update&&e.update.finish()}(t[l])}(e)})}function Er(e,t){if(e.curOp)return t();Hr(e);try{return t()}finally{Fr(e)}}function Pr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Hr(e);try{return t.apply(e,arguments)}finally{Fr(e)}}}function Ir(e){return function(){if(this.curOp)return e.apply(this,arguments);Hr(this);try{return e.apply(this,arguments)}finally{Fr(this)}}}function Rr(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Hr(e);try{return t.apply(this,arguments)}finally{Fr(e)}}}function zr(e,t){e.doc.highlightFrontier\u003Ce.display.viewTo&&e.state.highlight.set(t,F(Br,e))}function Br(l){var s,a,u,c=l.doc;c.highlightFrontier>=l.display.viewTo||(s=+new Date+l.options.workTime,a=mt(l,c.highlightFrontier),u=[],c.iter(a.line,Math.min(c.first+c.size,l.display.viewTo+500),function(e){if(a.line>=l.display.viewFrom){var t=e.styles,n=e.text.length>l.options.maxHighlightLength?je(c.mode,a.state):null,r=pt(l,e,a,!0);n&&(a.state=n),e.styles=r.styles;n=e.styleClasses,r=r.classes;r?e.styleClasses=r:n&&(e.styleClasses=null);for(var i=!t||t.length!=e.styles.length||n!=r&&(!n||!r||n.bgClass!=r.bgClass||n.textClass!=r.textClass),o=0;!i&&o\u003Ct.length;++o)i=t[o]!=e.styles[o];i&&u.push(a.line),e.stateAfter=a.save(),a.nextLine()}else e.text.length\u003C=l.options.maxHighlightLength&&vt(l,e.text,a),e.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return zr(l,l.options.workDelay),!0}),c.highlightFrontier=a.line,c.modeFrontier=Math.max(c.modeFrontier,a.line),u.length&&Er(l,function(){for(var e=0;e\u003Cu.length;e++)nr(l,u[e],\\\"text\\\")}))}var Gr=function(e,t,n){var r=e.display;this.viewport=t,this.visible=vr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=xn(e),this.force=n,this.dims=$n(e),this.events=[]};function Ur(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return rr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to\u003C=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==or(e))return!1;_r(e)&&(rr(e),t.dims=$n(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom\u003Co&&o-n.viewFrom\u003C20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>l&&n.viewTo-l\u003C20&&(l=Math.min(i,n.viewTo)),kt&&(o=Bt(e.doc,o),l=Gt(e.doc,l));var s=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;r=o,i=l,0==(l=(o=e).display).view.length||r>=l.viewTo||i\u003C=l.viewFrom?(l.view=tn(o,r,i),l.viewFrom=r):(l.viewFrom>r?l.view=tn(o,r,l.viewFrom).concat(l.view):l.viewFrom\u003Cr&&(l.view=l.view.slice(er(o,r))),l.viewFrom=r,l.viewTo\u003Ci?l.view=l.view.concat(tn(o,l.viewTo,i)):l.viewTo>i&&(l.view=l.view.slice(0,er(o,i)))),l.viewTo=i,n.viewOffset=Vt($e(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+\\\"px\\\";o=or(e);if(!s&&0==o&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;l=function(e){if(e.hasFocus())return null;var t=O();if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};return!window.getSelection||(t=window.getSelection()).anchorNode&&t.extend&&A(e.display.lineDiv,t.anchorNode)&&(n.anchorNode=t.anchorNode,n.anchorOffset=t.anchorOffset,n.focusNode=t.focusNode,n.focusOffset=t.focusOffset),n}(e);return 4\u003Co&&(n.lineDiv.style.display=\\\"none\\\"),function(n,e,t){var r=n.display,i=n.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function s(e){var t=e.nextSibling;return f&&g&&n.display.currentWheelTarget==e?e.style.display=\\\"none\\\":e.parentNode.removeChild(e),t}for(var a=r.view,u=r.viewFrom,c=0;c\u003Ca.length;c++){var h=a[c];if(!h.hidden)if(h.node&&h.node.parentNode==o){for(;l!=h.node;)l=s(l);var d=i&&null!=e&&e\u003C=u&&h.lineNumber;h.changes&&(-1\u003CR(h.changes,\\\"gutter\\\")&&(d=!1),an(n,h,u,t)),d&&(k(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(nt(n.options,u)))),l=h.node.nextSibling}else{d=function(e,t,n,r){var i=cn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),dn(e,t,n,r),fn(e,t,r),t.node}(n,h,u,t);o.insertBefore(d,l)}u+=h.size}for(;l;)l=s(l)}(e,n.updateLineNumbers,t.dims),4\u003Co&&(n.lineDiv.style.display=\\\"\\\"),n.renderedView=n.view,(i=l)&&i.activeElt&&i.activeElt!=O()&&(i.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(i.activeElt.nodeName)&&i.anchorNode&&A(document.body,i.anchorNode)&&A(document.body,i.focusNode)&&(o=window.getSelection(),(l=document.createRange()).setEnd(i.anchorNode,i.anchorOffset),l.collapse(!1),o.removeAllRanges(),o.addRange(l),o.extend(i.focusNode,i.focusOffset))),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,zr(e,400)),!(n.updateLineNumbers=null)}function Vr(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=xn(e))r&&(t.visible=vr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+yn(e.display)-Cn(e),n.top)}),t.visible=vr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to\u003C=e.display.viewTo)break;if(!Ur(e,t))break;gr(e);var i=Mr(e);lr(e),Nr(e,i),Xr(e,i),t.force=!1}t.signal(e,\\\"update\\\",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,\\\"viewportChange\\\",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Kr(e,t){var n=new Gr(e,t);Ur(e,n)&&(gr(e),Vr(e,n),t=Mr(e),lr(e),Nr(e,t),Xr(e,t),n.finish())}function jr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+\\\"px\\\"}function Xr(e,t){e.display.sizer.style.minHeight=t.docHeight+\\\"px\\\",e.display.heightForcer.style.top=t.docHeight+\\\"px\\\",e.display.gutters.style.height=t.docHeight+e.display.barHeight+wn(e)+\\\"px\\\"}function Yr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=qn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+\\\"px\\\",l=0;l\u003Cn.length;l++)if(!n[l].hidden){e.options.fixedGutter&&(n[l].gutter&&(n[l].gutter.style.left=o),n[l].gutterBackground&&(n[l].gutterBackground.style.left=o));var s=n[l].alignable;if(s)for(var a=0;a\u003Cs.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+\\\"px\\\")}}function _r(e){if(e.options.lineNumbers){var t=e.doc,n=nt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(M(\\\"div\\\",[M(\\\"div\\\",n)],\\\"CodeMirror-linenumber CodeMirror-gutter-elt\\\")),t=i.firstChild.offsetWidth,i=i.offsetWidth-t;return r.lineGutter.style.width=\\\"\\\",r.lineNumInnerWidth=Math.max(t,r.lineGutter.offsetWidth-i)+1,r.lineNumWidth=r.lineNumInnerWidth+i,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+\\\"px\\\",jr(e.display),1}}}function $r(e,t){for(var n=[],r=!1,i=0;i\u003Ce.length;i++){var o=e[i],l=null;if(\\\"string\\\"!=typeof o&&(l=o.style,o=o.className),\\\"CodeMirror-linenumbers\\\"==o){if(!t)continue;r=!0}n.push({className:o,style:l})}return t&&!r&&n.push({className:\\\"CodeMirror-linenumbers\\\",style:null}),n}function qr(e){var t=e.gutters,n=e.gutterSpecs;k(t),e.lineGutter=null;for(var r=0;r\u003Cn.length;++r){var i=n[r],o=i.className,l=i.style,i=t.appendChild(M(\\\"div\\\",null,\\\"CodeMirror-gutter \\\"+o));l&&(i.style.cssText=l),\\\"CodeMirror-linenumbers\\\"==o&&((e.lineGutter=i).style.width=(e.lineNumWidth||1)+\\\"px\\\")}t.style.display=n.length?\\\"\\\":\\\"none\\\",jr(e)}function Zr(e){qr(e.display),tr(e),Yr(e)}function Qr(e,t,n,r){var i=this;this.input=n,i.scrollbarFiller=M(\\\"div\\\",null,\\\"CodeMirror-scrollbar-filler\\\"),i.scrollbarFiller.setAttribute(\\\"cm-not-content\\\",\\\"true\\\"),i.gutterFiller=M(\\\"div\\\",null,\\\"CodeMirror-gutter-filler\\\"),i.gutterFiller.setAttribute(\\\"cm-not-content\\\",\\\"true\\\"),i.lineDiv=N(\\\"div\\\",null,\\\"CodeMirror-code\\\"),i.selectionDiv=M(\\\"div\\\",null,null,\\\"position: relative; z-index: 1\\\"),i.cursorDiv=M(\\\"div\\\",null,\\\"CodeMirror-cursors\\\"),i.measure=M(\\\"div\\\",null,\\\"CodeMirror-measure\\\"),i.lineMeasure=M(\\\"div\\\",null,\\\"CodeMirror-measure\\\"),i.lineSpace=N(\\\"div\\\",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,\\\"position: relative; outline: none\\\");var o=N(\\\"div\\\",[i.lineSpace],\\\"CodeMirror-lines\\\");i.mover=M(\\\"div\\\",[o],null,\\\"position: relative\\\"),i.sizer=M(\\\"div\\\",[i.mover],\\\"CodeMirror-sizer\\\"),i.sizerWidth=null,i.heightForcer=M(\\\"div\\\",null,null,\\\"position: absolute; height: \\\"+z+\\\"px; width: 1px;\\\"),i.gutters=M(\\\"div\\\",null,\\\"CodeMirror-gutters\\\"),i.lineGutter=null,i.scroller=M(\\\"div\\\",[i.sizer,i.heightForcer,i.gutters],\\\"CodeMirror-scroll\\\"),i.scroller.setAttribute(\\\"tabIndex\\\",\\\"-1\\\"),i.wrapper=M(\\\"div\\\",[i.scrollbarFiller,i.gutterFiller,i.scroller],\\\"CodeMirror\\\"),w&&v\u003C8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),f||d&&h||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=$r(r.gutters,r.lineNumbers),qr(i),n.init(i)}Gr.prototype.signal=function(e,t){Le(e,t)&&this.events.push(arguments)},Gr.prototype.finish=function(){for(var e=0;e\u003Cthis.events.length;e++)xe.apply(null,this.events[e])};var Jr=0,ei=null;function ti(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ni(e){e=ti(e);return e.x*=ei,e.y*=ei,e}function ri(e,t){var n=ti(t),r=n.x,i=n.y,o=e.display,l=o.scroller,s=l.scrollWidth>l.clientWidth,a=l.scrollHeight>l.clientHeight;if(r&&s||i&&a){if(i&&g&&f)e:for(var u=t.target,c=o.view;u!=l;u=u.parentNode)for(var h=0;h\u003Cc.length;h++)if(c[h].node==u){e.display.currentWheelTarget=u;break e}if(r&&!d&&!p&&null!=ei)return i&&a&&Lr(e,Math.max(0,l.scrollTop+i*ei)),Tr(e,Math.max(0,l.scrollLeft+r*ei)),(!i||i&&a)&&Te(t),void(o.wheelStartX=null);i&&null!=ei&&(n=i*ei,a=(s=e.doc.scrollTop)+o.wrapper.clientHeight,n\u003C0?s=Math.max(0,s+n-50):a=Math.min(e.doc.height,a+n+50),Kr(e,{top:s,bottom:a})),Jr\u003C20&&(null==o.wheelStartX?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){var e,t;null!=o.wheelStartX&&(t=l.scrollLeft-o.wheelStartX,t=(e=l.scrollTop-o.wheelStartY)&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX,o.wheelStartX=o.wheelStartY=null,t&&(ei=(ei*Jr+t)/(Jr+1),++Jr))},200)):(o.wheelDX+=r,o.wheelDY+=i))}}w?ei=-.53:d?ei=15:o?ei=-.7:c&&(ei=-1/3);var ii=function(e,t){this.ranges=e,this.primIndex=t};ii.prototype.primary=function(){return this.ranges[this.primIndex]},ii.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t\u003Cthis.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ot(n.anchor,r.anchor)||!ot(n.head,r.head))return!1}return!0},ii.prototype.deepCopy=function(){for(var e=[],t=0;t\u003Cthis.ranges.length;t++)e[t]=new oi(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new ii(e,this.primIndex)},ii.prototype.somethingSelected=function(){for(var e=0;e\u003Cthis.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ii.prototype.contains=function(e,t){t=t||e;for(var n=0;n\u003Cthis.ranges.length;n++){var r=this.ranges[n];if(0\u003C=it(t,r.from())&&it(e,r.to())\u003C=0)return n}return-1};var oi=function(e,t){this.anchor=e,this.head=t};function li(e,t,n){var r=e&&e.options.selectionsMayTouch,e=t[n];t.sort(function(e,t){return it(e.from(),t.from())}),n=R(t,e);for(var i=1;i\u003Ct.length;i++){var o,l=t[i],s=t[i-1],a=it(s.to(),l.from());(r&&!l.empty()?0\u003Ca:0\u003C=a)&&(o=at(s.from(),l.from()),a=st(s.to(),l.to()),s=s.empty()?l.from()==l.head:s.from()==s.head,i\u003C=n&&--n,t.splice(--i,2,new oi(s?a:o,s?o:a)))}return new ii(t,n)}function si(e,t){return new ii([new oi(e,t||e)],0)}function ai(e){return e.text?rt(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function ui(e,t){if(it(e,t.from)\u003C0)return e;if(it(e,t.to)\u003C=0)return ai(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ai(t).ch-t.to.ch),rt(n,r)}function ci(e,t){for(var n=[],r=0;r\u003Ce.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oi(ui(i.anchor,t),ui(i.head,t)))}return li(e.cm,n,e.sel.primIndex)}function hi(e,t,n){return e.line==t.line?rt(n.line,e.ch-t.ch+n.ch):rt(n.line+(e.line-t.line),e.ch)}function di(e){e.doc.mode=Ue(e.options,e.doc.modeOption),fi(e)}function fi(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,zr(e,100),e.state.modeGen++,e.curOp&&tr(e)}function pi(e,t){return 0==t.from.ch&&0==t.to.ch&&\\\"\\\"==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function gi(e,o,t,l){function i(e){return t?t[e]:null}function n(e,t,n){var r,i;r=t,i=n,t=l,(n=e).text=r,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),null!=n.order&&(n.order=null),Ot(n),Dt(n,i),(t=t?t(n):1)!=n.height&&Qe(n,t),ln(e,\\\"change\\\",e,o)}function r(e,t){for(var n=[],r=e;r\u003Ct;++r)n.push(new Xt(c[r],i(r),l));return n}var s,a=o.from,u=o.to,c=o.text,h=$e(e,a.line),d=$e(e,u.line),f=Y(c),p=i(c.length-1),g=u.line-a.line;o.full?(e.insert(0,r(0,c.length)),e.remove(c.length,e.size-c.length)):pi(e,o)?(s=r(0,c.length-1),n(d,d.text,p),g&&e.remove(a.line,g),s.length&&e.insert(a.line,s)):h==d?1==c.length?n(h,h.text.slice(0,a.ch)+f+h.text.slice(u.ch),p):((s=r(1,c.length-1)).push(new Xt(f+h.text.slice(u.ch),p,l)),n(h,h.text.slice(0,a.ch)+c[0],i(0)),e.insert(a.line+1,s)):1==c.length?(n(h,h.text.slice(0,a.ch)+c[0]+d.text.slice(u.ch),i(0)),e.remove(a.line+1,g)):(n(h,h.text.slice(0,a.ch)+c[0],i(0)),n(d,f+d.text.slice(u.ch),p),p=r(1,c.length-1),1\u003Cg&&e.remove(a.line+1,g-1),e.insert(a.line+1,p)),ln(e,\\\"change\\\",e,o)}function mi(e,s,a){!function e(t,n,r){if(t.linked)for(var i=0;i\u003Ct.linked.length;++i){var o,l=t.linked[i];l.doc!=n&&(o=r&&l.sharedHist,a&&!o||(s(l.doc,o),e(l.doc,t,o)))}}(e,null,!0)}function vi(e,t){if(t.cm)throw new Error(\\\"This document is already in use.\\\");Qn((e.doc=t).cm=e),di(e),yi(e),e.options.lineWrapping||jt(e),e.options.mode=t.modeOption,tr(e)}function yi(e){(\\\"rtl\\\"==e.doc.direction?D:L)(e.display.lineDiv,\\\"CodeMirror-rtl\\\")}function bi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function wi(e,t){var n={from:lt(t.from),to:ai(t),text:qe(e,t.from,t.to)};return ki(e,n,t.from.line,t.to.line+1),mi(e,function(e){return ki(e,n,t.from.line,t.to.line+1),0},!0),n}function xi(e){for(;e.length;){if(!Y(e).ranges)break;e.pop()}}function Ci(e,t,n,r){var i=e.history;i.undone.length=0;var o,l,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(\\\"+\\\"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||\\\"*\\\"==t.origin.charAt(0)))&&(o=(a=i).lastOp==r?(xi(a.done),Y(a.done)):a.done.length&&!Y(a.done).ranges?Y(a.done):1\u003Ca.done.length&&!a.done[a.done.length-2].ranges?(a.done.pop(),Y(a.done)):void 0))l=Y(o.changes),0==it(t.from,t.to)&&0==it(t.from,l.to)?l.to=ai(t):o.changes.push(wi(e,t));else{var a=Y(i.done);for(a&&a.ranges||Li(e.sel,i.done),o={changes:[wi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,l||xe(e,\\\"historyAdded\\\")}function Si(e,t,n,r){var i,o,l,s=e.history,a=r&&r.origin;n==s.lastSelOp||a&&s.lastSelOrigin==a&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==a||(i=e,o=a,l=Y(s.done),e=t,\\\"*\\\"==(o=o.charAt(0))||\\\"+\\\"==o&&l.ranges.length==e.ranges.length&&l.somethingSelected()==e.somethingSelected()&&new Date-i.history.lastSelTime\u003C=(i.cm?i.cm.options.historyEventDelay:500)))?s.done[s.done.length-1]=t:Li(t,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=a,s.lastSelOp=n,r&&!1!==r.clearRedo&&xi(s.undone)}function Li(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ki(t,n,e,r){var i=n[\\\"spans_\\\"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,r),function(e){e.markedSpans&&((i=i||(n[\\\"spans_\\\"+t.id]={}))[o]=e.markedSpans),++o})}function Ti(e,t){var n=t[\\\"spans_\\\"+e.id];if(!n)return null;for(var r=[],i=0;i\u003Ct.text.length;++i)r.push(function(e){if(!e)return null;for(var t,n=0;n\u003Ce.length;++n)e[n].marker.explicitlyCleared?t=t||e.slice(0,n):t&&t.push(e[n]);return t?t.length?t:null:e}(n[i]));return r}function Mi(e,t){var n=Ti(e,t),r=Nt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i\u003Cn.length;++i){var o=n[i],l=r[i];if(o&&l)e:for(var s=0;s\u003Cl.length;++s){for(var a=l[s],u=0;u\u003Co.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(n[i]=l)}return n}function Ni(e,t,n){for(var r=[],i=0;i\u003Ce.length;++i){var o=e[i];if(o.ranges)r.push(n?ii.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];r.push({changes:s});for(var a=0;a\u003Cl.length;++a){var u,c=l[a];if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var h in c)(u=h.match(/^spans_(\\\\d+)$/))&&-1\u003CR(t,Number(u[1]))&&(Y(s)[h]=c[h],delete c[h])}}}return r}function Ai(e,t,n,r){if(r){r=e.anchor;return n&&((e=it(t,r)\u003C0)!=it(n,r)\u003C0?(r=t,t=n):e!=it(t,n)\u003C0&&(t=n)),new oi(r,t)}return new oi(n||t,t)}function Oi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ei(e,new ii([Ai(e.sel.primary(),t,n,i)],0),r)}function Di(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o\u003Ce.sel.ranges.length;o++)r[o]=Ai(e.sel.ranges[o],t[o],null,i);Ei(e,li(e.cm,r,e.sel.primIndex),n)}function Wi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Ei(e,li(e.cm,i,e.sel.primIndex),r)}function Hi(e,t,n,r){Ei(e,si(t,n),r)}function Fi(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?Pi(e,r[r.length-1]=t,n):Ei(e,t,n)}function Ei(e,t,n){Pi(e,t,n),Si(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Pi(e,t,n){var r,i;(Le(e,\\\"beforeSelectionChange\\\")||e.cm&&Le(e.cm,\\\"beforeSelectionChange\\\"))&&(r=e,i=n,i={ranges:(o=t).ranges,update:function(e){this.ranges=[];for(var t=0;t\u003Ce.length;t++)this.ranges[t]=new oi(ct(r,e[t].anchor),ct(r,e[t].head))},origin:i&&i.origin},xe(r,\\\"beforeSelectionChange\\\",r,i),r.cm&&xe(r.cm,\\\"beforeSelectionChange\\\",r.cm,i),t=i.ranges!=o.ranges?li(r.cm,i.ranges,i.ranges.length-1):o);var o=n&&n.bias||(it(t.primary().head,e.sel.primary().head)\u003C0?-1:1);Ii(e,zi(e,t,o,!0)),n&&!1===n.scroll||!e.cm||wr(e.cm)}function Ii(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Se(e.cm)),ln(e,\\\"cursorActivity\\\",e))}function Ri(e){Ii(e,zi(e,e.sel,null,!1))}function zi(e,t,n,r){for(var i,o=0;o\u003Ct.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=Gi(e,l.anchor,s&&s.anchor,n,r),s=Gi(e,l.head,s&&s.head,n,r);!i&&a==l.anchor&&s==l.head||((i=i||t.ranges.slice(0,o))[o]=new oi(a,s))}return i?li(e.cm,i,t.primIndex):t}function Bi(e,t,n,r,i){var o=$e(e,t.line);if(o.markedSpans)for(var l=0;l\u003Co.markedSpans.length;++l){var s=o.markedSpans[l],a=s.marker,u=\\\"selectLeft\\\"in a?!a.selectLeft:a.inclusiveLeft,c=\\\"selectRight\\\"in a?!a.selectRight:a.inclusiveRight;if((null==s.from||(u?s.from\u003C=t.ch:s.from\u003Ct.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(xe(a,\\\"beforeCursorEnter\\\"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(a.atomic){if(n){var h=a.find(r\u003C0?1:-1),s=void 0;if((r\u003C0?c:u)&&(h=Ui(e,h,-r,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(s=it(h,n))&&(r\u003C0?s\u003C0:0\u003Cs))return Bi(e,h,t,r,i)}a=a.find(r\u003C0?-1:1);return(r\u003C0?u:c)&&(a=Ui(e,a,r,a.line==t.line?o:null)),a?Bi(e,a,t,r,i):null}}}return t}function Gi(e,t,n,r,i){r=r||1,r=Bi(e,t,n,r,i)||!i&&Bi(e,t,n,r,!0)||Bi(e,t,n,-r,i)||!i&&Bi(e,t,n,-r,!0);return r||(e.cantEdit=!0,rt(e.first,0))}function Ui(e,t,n,r){return n\u003C0&&0==t.ch?t.line>e.first?ct(e,rt(t.line-1)):null:0\u003Cn&&t.ch==(r||$e(e,t.line)).text.length?t.line\u003Ce.first+e.size-1?rt(t.line+1,0):null:new rt(t.line,t.ch+n)}function Vi(e){e.setSelection(rt(e.firstLine(),0),rt(e.lastLine()),G)}function Ki(i,e,t){var o={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return o.canceled=!0}};return t&&(o.update=function(e,t,n,r){e&&(o.from=ct(i,e)),t&&(o.to=ct(i,t)),n&&(o.text=n),void 0!==r&&(o.origin=r)}),xe(i,\\\"beforeChange\\\",i,o),i.cm&&xe(i.cm,\\\"beforeChange\\\",i.cm,o),o.canceled?(i.cm&&(i.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function ji(e,t,n){if(e.cm){if(!e.cm.curOp)return Pr(e.cm,ji)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Le(e,\\\"beforeChange\\\")||e.cm&&Le(e.cm,\\\"beforeChange\\\"))||(t=Ki(e,t,!0))){var r=Lt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t\u003Ce.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=R(r,n)||(r=r||[]).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o\u003Cr.length;++o)for(var l=r[o],s=l.find(0),a=0;a\u003Ci.length;++a){var u,c,h,d=i[a];it(d.to,s.from)\u003C0||0\u003Cit(d.from,s.to)||(u=[a,1],c=it(d.from,s.from),h=it(d.to,s.to),(c\u003C0||!l.inclusiveLeft&&!c)&&u.push({from:d.from,to:s.from}),(0\u003Ch||!l.inclusiveRight&&!h)&&u.push({from:s.to,to:d.to}),i.splice.apply(i,u),a+=u.length-3)}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;0\u003C=i;--i)Xi(e,{from:r[i].from,to:r[i].to,text:i?[\\\"\\\"]:t.text,origin:t.origin});else Xi(e,t)}}function Xi(e,n){var t,r;1==n.text.length&&\\\"\\\"==n.text[0]&&0==it(n.from,n.to)||(t=ci(e,n),Ci(e,n,t,e.cm?e.cm.curOp.id:NaN),$i(e,n,t,Nt(e,n)),r=[],mi(e,function(e,t){t||-1!=R(r,e.history)||(Ji(e.history,n),r.push(e.history)),$i(e,n,null,Nt(e,n))}))}function Yi(i,o,e){var t=i.cm&&i.cm.state.suppressEdits;if(!t||e){for(var l,n=i.history,r=i.sel,s=\\\"undo\\\"==o?n.done:n.undone,a=\\\"undo\\\"==o?n.undone:n.done,u=0;u\u003Cs.length&&(l=s[u],e?!l.ranges||l.equals(i.sel):l.ranges);u++);if(u!=s.length){for(n.lastOrigin=n.lastSelOrigin=null;;){if(!(l=s.pop()).ranges){if(t)return void s.push(l);break}if(Li(l,a),e&&!l.equals(i.sel))return void Ei(i,l,{clearRedo:!1});r=l}var c=[];Li(r,a),a.push({changes:c,generation:n.generation}),n.generation=l.generation||++n.maxGeneration;for(var h=Le(i,\\\"beforeChange\\\")||i.cm&&Le(i.cm,\\\"beforeChange\\\"),d=l.changes.length-1;0\u003C=d;--d){var f=function(e){var n=l.changes[e];if(n.origin=o,h&&!Ki(i,n,!1))return s.length=0,{};c.push(wi(i,n));var t=e?ci(i,n):Y(s);$i(i,n,t,Mi(i,n)),!e&&i.cm&&i.cm.scrollIntoView({from:n.from,to:ai(n)});var r=[];mi(i,function(e,t){t||-1!=R(r,e.history)||(Ji(e.history,n),r.push(e.history)),$i(e,n,null,Mi(e,n))})}(d);if(f)return f.v}}}}function _i(e,t){if(0!=t&&(e.first+=t,e.sel=new ii(_(e.sel.ranges,function(e){return new oi(rt(e.anchor.line+t,e.anchor.ch),rt(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){tr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r\u003Cn.viewTo;r++)nr(e.cm,r,\\\"gutter\\\")}}function $i(e,t,n,r){if(e.cm&&!e.cm.curOp)return Pr(e.cm,$i)(e,t,n,r);var i;t.to.line\u003Ce.first?_i(e,t.text.length-1-(t.to.line-t.from.line)):t.from.line>e.lastLine()||(t.from.line\u003Ce.first&&(_i(e,i=t.text.length-1-(e.first-t.from.line)),t={from:rt(e.first,0),to:rt(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}),i=e.lastLine(),t.to.line>i&&(t={from:t.from,to:rt(i,$e(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=qe(e,t.from,t.to),n=n||ci(e,t),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=Je(zt($e(r,o.line))),r.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0}));-1\u003Cr.sel.contains(t.from,t.to)&&Se(e);gi(r,t,n,Zn(e)),e.options.lineWrapping||(r.iter(a,o.line+t.text.length,function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier\u003Ct-10)){for(var n=e.first,r=t-1;n\u003Cr;r--){var i=$e(e,r).stateAfter;if(i&&(!(i instanceof dt)||r+i.lookAhead\u003Ct)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),zr(e,400);a=t.text.length-(l.line-o.line)-1;t.full?tr(e):o.line!=l.line||1!=t.text.length||pi(e.doc,t)?tr(e,o.line,l.line+1,a):nr(e,o.line,\\\"text\\\");r=Le(e,\\\"changes\\\"),a=Le(e,\\\"change\\\");(a||r)&&(t={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin},a&&ln(e,\\\"change\\\",e,t),r&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(t));e.display.selForContextMenu=null}(e.cm,t,r):gi(e,t,r),Pi(e,n,G),e.cantEdit&&Gi(e,rt(e.firstLine(),0))&&(e.cantEdit=!1))}function qi(e,t,n,r,i){var o;it(r=r||n,n)\u003C0&&(n=(o=[r,n])[0],r=o[1]),\\\"string\\\"==typeof t&&(t=e.splitLines(t)),ji(e,{from:n,to:r,text:t,origin:i})}function Zi(e,t,n,r){n\u003Ce.line?e.line+=r:t\u003Ce.line&&(e.line=t,e.ch=0)}function Qi(e,t,n,r){for(var i=0;i\u003Ce.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s\u003Co.ranges.length;s++)Zi(o.ranges[s].anchor,t,n,r),Zi(o.ranges[s].head,t,n,r)}else{for(var a=0;a\u003Co.changes.length;++a){var u=o.changes[a];if(n\u003Cu.from.line)u.from=rt(u.from.line+r,u.from.ch),u.to=rt(u.to.line+r,u.to.ch);else if(t\u003C=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function Ji(e,t){var n=t.from.line,r=t.to.line,t=t.text.length-(r-n)-1;Qi(e.done,n,r,t),Qi(e.undone,n,r,t)}function eo(e,t,n,r){var i=t,o=t;return\\\"number\\\"==typeof t?o=$e(e,ut(e,t)):i=Je(t),null==i?null:(r(o,i)&&e.cm&&nr(e.cm,i,n),o)}function to(e){this.lines=e,this.parent=null;for(var t=0,n=0;n\u003Ce.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function no(e){this.children=e;for(var t=0,n=0,r=0;r\u003Ce.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}oi.prototype.from=function(){return at(this.anchor,this.head)},oi.prototype.to=function(){return st(this.anchor,this.head)},oi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},to.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n,r=e,i=e+t;r\u003Ci;++r){var o=this.lines[r];this.height-=o.height,(n=o).parent=null,Ot(n),ln(o,\\\"delete\\\")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r\u003Ct.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e\u003Cr;++e)if(n(this.lines[e]))return!0}},no.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n,r=0;r\u003Cthis.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e\u003Co){var l=Math.min(t,o-e),s=i.height;if(i.removeInner(e,l),this.height-=s-i.height,o==l&&(this.children.splice(r--,1),i.parent=null),0==(t-=l))break;e=0}else e-=o}this.size-t\u003C25&&(1\u003Cthis.children.length||!(this.children[0]instanceof to))&&(n=[],this.collapse(n),this.children=[new to(n)],this.children[0].parent=this)},collapse:function(e){for(var t=0;t\u003Cthis.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r\u003Cthis.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e\u003C=o){if(i.insertInner(e,t,n),i.lines&&50\u003Ci.lines.length){for(var l=i.lines.length%25+25,s=l;s\u003Ci.lines.length;){var a=new to(i.lines.slice(s,s+=25));i.height-=a.height,this.children.splice(++r,0,a),a.parent=this}i.lines=i.lines.slice(0,l),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length\u003C=10)){var e=this;do{var t,n=new no(e.children.splice(e.children.length-5,5))}while(e.parent?(e.size-=n.size,e.height-=n.height,t=R(e.parent.children,e),e.parent.children.splice(t+1,0,n)):(((t=new no(e.children)).parent=e).children=[t,n],e=t),n.parent=e.parent,10\u003Ce.children.length);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r\u003Cthis.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e\u003Co){var l=Math.min(t,o-e);if(i.iterN(e,l,n))return!0;if(0==(t-=l))break;e=0}else e-=o}}};function ro(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t}function io(e,t,n){Vt(t)\u003C(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&br(e,n)}ro.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Je(n);if(null!=r&&t){for(var i=0;i\u003Ct.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=gn(this);Qe(n,Math.max(0,n.height-o)),e&&(Er(e,function(){io(e,n,-o),nr(e,r,\\\"widget\\\")}),ln(e,\\\"lineWidgetCleared\\\",e,this,r))}},ro.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=gn(this)-t;i&&(Ut(this.doc,r)||Qe(r,r.height+i),n&&Er(n,function(){n.curOp.forceUpdate=!0,io(n,r,i),ln(n,\\\"lineWidgetChanged\\\",n,e,Je(r))}))},ke(ro);var oo=0,lo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++oo};function so(t,n,r,e,i){if(e&&e.shared)return function(e,n,r,i,o){(i=E(i)).shared=!1;var l=[so(e,n,r,i,o)],s=l[0],a=i.widgetNode;return mi(e,function(e){a&&(i.widgetNode=a.cloneNode(!0)),l.push(so(e,ct(e,n),ct(e,r),i,o));for(var t=0;t\u003Ce.linked.length;++t)if(e.linked[t].isParent)return;s=Y(l)}),new ao(l,s)}(t,n,r,e,i);if(t.cm&&!t.cm.curOp)return Pr(t.cm,so)(t,n,r,e,i);var o=new lo(t,i),i=it(n,r);if(e&&E(e,o,!1),0\u003Ci||0==i&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=N(\\\"span\\\",[o.replacedWith],\\\"CodeMirror-widget\\\"),e.handleMouseEvents||o.widgetNode.setAttribute(\\\"cm-ignore-events\\\",\\\"true\\\"),e.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Rt(t,n.line,n,r,o)||n.line!=r.line&&Rt(t,r.line,n,r,o))throw new Error(\\\"Inserting collapsed marker partially overlapping an existing one\\\");kt=!0}o.addToHistory&&Ci(t,{from:n,to:r,origin:\\\"markText\\\"},t.sel,NaN);var l,s=n.line,a=t.cm;if(t.iter(s,r.line+1,function(e){var t;a&&o.collapsed&&!a.options.lineWrapping&&zt(e)==a.display.maxLine&&(l=!0),o.collapsed&&s!=n.line&&Qe(e,0),t=e,e=new Tt(o,s==n.line?n.ch:null,s==r.line?r.ch:null),t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t),++s}),o.collapsed&&t.iter(n.line,r.line+1,function(e){Ut(t,e)&&Qe(e,0)}),o.clearOnEnter&&ye(o,\\\"beforeCursorEnter\\\",function(){return o.clear()}),o.readOnly&&(Lt=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++oo,o.atomic=!0),a){if(l&&(a.curOp.updateMaxLine=!0),o.collapsed)tr(a,n.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=n.line;u\u003C=r.line;u++)nr(a,u,\\\"text\\\");o.atomic&&Ri(a.doc),ln(a,\\\"markerAdded\\\",a,o)}return o}lo.prototype.clear=function(){if(!this.explicitlyCleared){var e,t=this.doc.cm,n=t&&!t.curOp;n&&Hr(t),!Le(this,\\\"clear\\\")||(e=this.find())&&ln(this,\\\"clear\\\",e.from,e.to);for(var r=null,i=null,o=0;o\u003Cthis.lines.length;++o){var l=this.lines[o],s=Mt(l.markedSpans,this);t&&!this.collapsed?nr(t,Je(l),\\\"text\\\"):t&&(null!=s.to&&(i=Je(l)),null!=s.from&&(r=Je(l))),l.markedSpans=function(e,t){for(var n,r=0;r\u003Ce.length;++r)e[r]!=t&&(n=n||[]).push(e[r]);return n}(l.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,l)&&t&&Qe(l,Yn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var a=0;a\u003Cthis.lines.length;++a){var u=zt(this.lines[a]),c=Kt(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&tr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ri(t.doc)),t&&ln(t,\\\"markerCleared\\\",t,this,r,i),n&&Fr(t),this.parent&&this.parent.clear()}},lo.prototype.find=function(e,t){var n,r;null==e&&\\\"bookmark\\\"==this.type&&(e=1);for(var i=0;i\u003Cthis.lines.length;++i){var o=this.lines[i],l=Mt(o.markedSpans,this);if(null!=l.from&&(n=rt(t?o:Je(o),l.from),-1==e))return n;if(null!=l.to&&(r=rt(t?o:Je(o),l.to),1==e))return r}return n&&{from:n,to:r}},lo.prototype.changed=function(){var n=this,r=this.find(-1,!0),i=this,o=this.doc.cm;r&&o&&Er(o,function(){var e=r.line,t=Je(r.line),t=kn(o,t);t&&(Dn(t),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,Ut(i.doc,e)||null==i.height||(t=i.height,i.height=null,(t=gn(i)-t)&&Qe(e,e.height+t)),ln(o,\\\"markerChanged\\\",o,n)})},lo.prototype.attachLine=function(e){var t;!this.lines.length&&this.doc.cm&&((t=this.doc.cm.curOp).maybeHiddenMarkers&&-1!=R(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)),this.lines.push(e)},lo.prototype.detachLine=function(e){this.lines.splice(R(this.lines,e),1),!this.lines.length&&this.doc.cm&&((e=this.doc.cm.curOp).maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)},ke(lo);var ao=function(e,t){this.markers=e,this.primary=t;for(var n=0;n\u003Ce.length;++n)e[n].parent=this};function uo(e){return e.findMarks(rt(e.first,0),e.clipPos(rt(e.lastLine())),function(e){return e.parent})}ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e\u003Cthis.markers.length;++e)this.markers[e].clear();ln(this,\\\"clear\\\")}},ao.prototype.find=function(e,t){return this.primary.find(e,t)},ke(ao);var co=0,ho=function(e,t,n,r,i){if(!(this instanceof ho))return new ho(e,t,n,r,i);null==n&&(n=0),no.call(this,[new to([new Xt(\\\"\\\",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1;n=rt(this.modeFrontier=this.highlightFrontier=n,0);this.sel=si(n),this.history=new bi(null),this.id=++co,this.modeOption=t,this.lineSep=r,this.direction=\\\"rtl\\\"==i?\\\"rtl\\\":\\\"ltr\\\",this.extend=!1,\\\"string\\\"==typeof e&&(e=this.splitLines(e)),gi(this,{from:n,to:n,text:e}),Ei(this,si(n),G)};ho.prototype=q(no.prototype,{constructor:ho,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r\u003Ct.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Rr(function(e){var t=rt(this.first,0),n=this.first+this.size-1;ji(this,{from:t,to:rt(n,$e(this,n).text.length),text:this.splitLines(e),origin:\\\"setValue\\\",full:!0},!0),this.cm&&xr(this.cm,0,0),Ei(this,si(t),G)}),replaceRange:function(e,t,n,r){qi(this,e,t=ct(this,t),n=n?ct(this,n):t,r)},getRange:function(e,t,n){t=qe(this,ct(this,e),ct(this,t));return!1===n?t:t.join(n||this.lineSeparator())},getLine:function(e){e=this.getLineHandle(e);return e&&e.text},getLineHandle:function(e){if(tt(this,e))return $e(this,e)},getLineNumber:Je,getLineHandleVisualStart:function(e){return\\\"number\\\"==typeof e&&(e=$e(this,e)),zt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ct(this,e)},getCursor:function(e){var t=this.sel.primary(),t=null==e||\\\"head\\\"==e?t.head:\\\"anchor\\\"==e?t.anchor:\\\"end\\\"==e||\\\"to\\\"==e||!1===e?t.to():t.from();return t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Rr(function(e,t,n){Hi(this,ct(this,\\\"number\\\"==typeof e?rt(e,t||0):e),null,n)}),setSelection:Rr(function(e,t,n){Hi(this,ct(this,e),ct(this,t||e),n)}),extendSelection:Rr(function(e,t,n){Oi(this,ct(this,e),t&&ct(this,t),n)}),extendSelections:Rr(function(e,t){Di(this,ht(this,e),t)}),extendSelectionsBy:Rr(function(e,t){Di(this,ht(this,_(this.sel.ranges,e)),t)}),setSelections:Rr(function(e,t,n){if(e.length){for(var r=[],i=0;i\u003Ce.length;i++)r[i]=new oi(ct(this,e[i].anchor),ct(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Ei(this,li(this.cm,r,t),n)}}),addSelection:Rr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oi(ct(this,e),ct(this,t||e))),Ei(this,li(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n=0;n\u003Ct.length;n++)var r=qe(this,t[n].from(),t[n].to()),i=i?i.concat(r):r;return!1===e?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r\u003Cn.length;r++){var i=qe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i\u003Cthis.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||\\\"+input\\\")},replaceSelections:Rr(function(e,t,n){for(var r=[],i=this.sel,o=0;o\u003Ci.ranges.length;o++){var l=i.ranges[o];r[o]={from:l.from(),to:l.to(),text:this.splitLines(e[o]),origin:n}}for(var t=t&&\\\"end\\\"!=t&&function(e,t,n){for(var r=[],i=u=rt(e.first,0),o=0;o\u003Ct.length;o++){var l=t[o],s=hi(l.from,u,i),a=hi(ai(l),u,i),u=l.to,i=a;\\\"around\\\"==n?(l=it((l=e.sel.ranges[o]).head,l.anchor)\u003C0,r[o]=new oi(l?a:s,l?s:a)):r[o]=new oi(s,s)}return new ii(r,e.sel.primIndex)}(this,r,t),s=r.length-1;0\u003C=s;s--)ji(this,r[s]);t?Fi(this,t):this.cm&&wr(this.cm)}),undo:Rr(function(){Yi(this,\\\"undo\\\")}),redo:Rr(function(){Yi(this,\\\"redo\\\")}),undoSelection:Rr(function(){Yi(this,\\\"undo\\\",!0)}),redoSelection:Rr(function(){Yi(this,\\\"redo\\\",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r\u003Ce.done.length;r++)e.done[r].ranges||++t;for(var i=0;i\u003Ce.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var t=this;this.history=new bi(this.history.maxGeneration),mi(this,function(e){return e.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ni(this.history.done),undone:Ni(this.history.undone)}},setHistory:function(e){var t=this.history=new bi(this.history.maxGeneration);t.done=Ni(e.done.slice(0),null,!0),t.undone=Ni(e.undone.slice(0),null,!0)},setGutterMarker:Rr(function(e,n,r){return eo(this,e,\\\"gutter\\\",function(e){var t=e.gutterMarkers||(e.gutterMarkers={});return!(t[n]=r)&&ee(t)&&(e.gutterMarkers=null),1})}),clearGutter:Rr(function(t){var n=this;this.iter(function(e){e.gutterMarkers&&e.gutterMarkers[t]&&eo(n,e,\\\"gutter\\\",function(){return e.gutterMarkers[t]=null,ee(e.gutterMarkers)&&(e.gutterMarkers=null),1})})}),lineInfo:function(e){var t;if(\\\"number\\\"==typeof e){if(!tt(this,e))return null;if(!(e=$e(this,t=e)))return null}else if(null==(t=Je(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Rr(function(e,n,r){return eo(this,e,\\\"gutter\\\"==n?\\\"gutter\\\":\\\"class\\\",function(e){var t=\\\"text\\\"==n?\\\"textClass\\\":\\\"background\\\"==n?\\\"bgClass\\\":\\\"gutter\\\"==n?\\\"gutterClass\\\":\\\"wrapClass\\\";if(e[t]){if(C(r).test(e[t]))return;e[t]+=\\\" \\\"+r}else e[t]=r;return 1})}),removeLineClass:Rr(function(e,o,l){return eo(this,e,\\\"gutter\\\"==o?\\\"gutter\\\":\\\"class\\\",function(e){var t=\\\"text\\\"==o?\\\"textClass\\\":\\\"background\\\"==o?\\\"bgClass\\\":\\\"gutter\\\"==o?\\\"gutterClass\\\":\\\"wrapClass\\\",n=e[t];if(n){if(null==l)e[t]=null;else{var r=n.match(C(l));if(!r)return;var i=r.index+r[0].length;e[t]=n.slice(0,r.index)+(r.index&&i!=n.length?\\\" \\\":\\\"\\\")+n.slice(i)||null}return 1}})}),addLineWidget:Rr(function(e,t,n){return e=e,i=new ro(r=this,t,n),(o=r.cm)&&i.noHScroll&&(o.display.alignWidgets=!0),eo(r,e,\\\"widget\\\",function(e){var t=e.widgets||(e.widgets=[]);return null==i.insertAt?t.push(i):t.splice(Math.min(t.length,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Ut(r,e)&&(t=Vt(e)\u003Cr.scrollTop,Qe(e,e.height+gn(i)),t&&br(o,i.height),o.curOp.forceUpdate=!0),1}),o&&ln(o,\\\"lineWidgetAdded\\\",o,i,\\\"number\\\"==typeof e?e:Je(e)),i;var r,i,o}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return so(this,ct(this,e),ct(this,t),n,n&&n.type||\\\"range\\\")},setBookmark:function(e,t){t={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return so(this,e=ct(this,e),e,t,\\\"bookmark\\\")},findMarksAt:function(e){var t=[],n=$e(this,(e=ct(this,e)).line).markedSpans;if(n)for(var r=0;r\u003Cn.length;++r){var i=n[r];(null==i.from||i.from\u003C=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(i,o,l){i=ct(this,i),o=ct(this,o);var s=[],a=i.line;return this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var n=0;n\u003Ct.length;n++){var r=t[n];null!=r.to&&a==i.line&&i.ch>=r.to||null==r.from&&a!=i.line||null!=r.from&&a==o.line&&r.from>=o.ch||l&&!l(r.marker)||s.push(r.marker.parent||r.marker)}++a}),s},getAllMarks:function(){var r=[];return this.iter(function(e){var t=e.markedSpans;if(t)for(var n=0;n\u003Ct.length;++n)null!=t[n].from&&r.push(t[n].marker)}),r},posFromIndex:function(t){var n,r=this.first,i=this.lineSeparator().length;return this.iter(function(e){e=e.text.length+i;if(t\u003Ce)return n=t,!0;t-=e,++r}),ct(this,rt(r,n))},indexFromPos:function(e){var t=(e=ct(this,e)).ch;if(e.line\u003Cthis.first||e.ch\u003C0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new ho(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e=e||{};var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to\u003Cn&&(n=e.to);t=new ho(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(t.history=this.history),(this.linked||(this.linked=[])).push({doc:t,sharedHist:e.sharedHist}),t.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n\u003Ct.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),i=e.clipPos(i.to);it(o,i)&&(i=so(e,o,i,r.primary,r.primary.type),r.markers.push(i),i.parent=r)}}(t,uo(this)),t},unlinkDoc:function(e){if(e instanceof ul&&(e=e.doc),this.linked)for(var t=0;t\u003Cthis.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),function(o){for(var e=0;e\u003Co.length;e++)!function(e){var t=o[e],n=[t.primary.doc];mi(t.primary.doc,function(e){return n.push(e)});for(var r=0;r\u003Ct.markers.length;r++){var i=t.markers[r];-1==R(n,i.doc)&&(i.parent=null,t.markers.splice(r--,1))}}(e)}(uo(this));break}var n;e.history==this.history&&(n=[e.id],mi(e,function(e){return n.push(e.id)},!0),e.history=new bi(null),e.history.done=Ni(this.history.done,n),e.history.undone=Ni(this.history.undone,n))},iterLinkedDocs:function(e){mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ee(e)},lineSeparator:function(){return this.lineSep||\\\"\\\\n\\\"},setDirection:Rr(function(e){var t;\\\"rtl\\\"!=e&&(e=\\\"ltr\\\"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Er(t=this.cm,function(){yi(t),tr(t)}))})}),ho.prototype.eachLine=ho.prototype.iter;var fo=0;function po(e){var r=this;if(go(r),!Ce(r,e)&&!mn(r.display,e)){Te(e),w&&(fo=+new Date);var t=Jn(r,e,!0),n=e.dataTransfer.files;if(t&&!r.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),l=0,s=function(){++l==i&&Pr(r,function(){var e={from:t=ct(r.doc,t),to:t,text:r.doc.splitLines(o.filter(function(e){return null!=e}).join(r.doc.lineSeparator())),origin:\\\"paste\\\"};ji(r.doc,e),Fi(r.doc,si(ct(r.doc,t),ct(r.doc,ai(e))))})()},a=0;a\u003Cn.length;a++)!function(e,t){var n;r.options.allowDropFileTypes&&-1==R(r.options.allowDropFileTypes,e.type)?s():((n=new FileReader).onerror=s,n.onload=function(){var e=n.result;/[\\\\x00-\\\\x08\\\\x0e-\\\\x1f]{2}/.test(e)||(o[t]=e),s()},n.readAsText(e))}(n[a],a);else{if(r.state.draggingText&&-1\u003Cr.doc.sel.contains(t))return r.state.draggingText(e),void setTimeout(function(){return r.display.input.focus()},20);try{var u,c=e.dataTransfer.getData(\\\"Text\\\");if(c){if(r.state.draggingText&&!r.state.draggingText.copy&&(u=r.listSelections()),Pi(r.doc,si(t,t)),u)for(var h=0;h\u003Cu.length;++h)qi(r.doc,\\\"\\\",u[h].anchor,u[h].head,\\\"drag\\\");r.replaceSelection(c,\\\"around\\\",\\\"paste\\\"),r.display.input.focus()}}catch(e){}}}}function go(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function mo(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName(\\\"CodeMirror\\\"),n=[],r=0;r\u003Ce.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var e=0;e\u003Cn.length;e++)t(n[e])})}}var vo=!1;function yo(){var e;vo||(ye(window,\\\"resize\\\",function(){null==e&&(e=setTimeout(function(){e=null,mo(bo)},100))}),ye(window,\\\"blur\\\",function(){return mo(pr)}),vo=!0)}function bo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var wo={3:\\\"Pause\\\",8:\\\"Backspace\\\",9:\\\"Tab\\\",13:\\\"Enter\\\",16:\\\"Shift\\\",17:\\\"Ctrl\\\",18:\\\"Alt\\\",19:\\\"Pause\\\",20:\\\"CapsLock\\\",27:\\\"Esc\\\",32:\\\"Space\\\",33:\\\"PageUp\\\",34:\\\"PageDown\\\",35:\\\"End\\\",36:\\\"Home\\\",37:\\\"Left\\\",38:\\\"Up\\\",39:\\\"Right\\\",40:\\\"Down\\\",44:\\\"PrintScrn\\\",45:\\\"Insert\\\",46:\\\"Delete\\\",59:\\\";\\\",61:\\\"=\\\",91:\\\"Mod\\\",92:\\\"Mod\\\",93:\\\"Mod\\\",106:\\\"*\\\",107:\\\"=\\\",109:\\\"-\\\",110:\\\".\\\",111:\\\"/\\\",145:\\\"ScrollLock\\\",173:\\\"-\\\",186:\\\";\\\",187:\\\"=\\\",188:\\\",\\\",189:\\\"-\\\",190:\\\".\\\",191:\\\"/\\\",192:\\\"`\\\",219:\\\"[\\\",220:\\\"\\\\\\\\\\\",221:\\\"]\\\",222:\\\"'\\\",224:\\\"Mod\\\",63232:\\\"Up\\\",63233:\\\"Down\\\",63234:\\\"Left\\\",63235:\\\"Right\\\",63272:\\\"Delete\\\",63273:\\\"Home\\\",63275:\\\"End\\\",63276:\\\"PageUp\\\",63277:\\\"PageDown\\\",63302:\\\"Insert\\\"},xo=0;xo\u003C10;xo++)wo[xo+48]=wo[xo+96]=String(xo);for(var Co=65;Co\u003C=90;Co++)wo[Co]=String.fromCharCode(Co);for(var So=1;So\u003C=12;So++)wo[So+111]=wo[So+63235]=\\\"F\\\"+So;var Lo={};function ko(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var l=0;l\u003Co.length-1;l++){var s=o[l];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error(\\\"Unrecognized modifier name: \\\"+s);r=!0}}return t&&(e=\\\"Alt-\\\"+e),n&&(e=\\\"Ctrl-\\\"+e),i&&(e=\\\"Cmd-\\\"+e),r&&(e=\\\"Shift-\\\"+e),e}function To(e){var t,n,r={};for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(!/^(name|fallthrough|(de|at)tach)$/.test(t))if(\\\"...\\\"!=i){for(var o=_(t.split(\\\" \\\"),ko),l=0;l\u003Co.length;l++){var s=void 0,a=void 0,s=l==o.length-1?(a=o.join(\\\" \\\"),i):(a=o.slice(0,l+1).join(\\\" \\\"),\\\"...\\\"),u=r[a];if(u){if(u!=s)throw new Error(\\\"Inconsistent bindings for \\\"+a)}else r[a]=s}delete e[t]}else delete e[t]}for(n in r)e[n]=r[n];return e}function Mo(e,t,n,r){var i=(t=Do(t)).call?t.call(e,r):t[e];if(!1===i)return\\\"nothing\\\";if(\\\"...\\\"===i)return\\\"multi\\\";if(null!=i&&n(i))return\\\"handled\\\";if(t.fallthrough){if(\\\"[object Array]\\\"!=Object.prototype.toString.call(t.fallthrough))return Mo(e,t.fallthrough,n,r);for(var o=0;o\u003Ct.fallthrough.length;o++){var l=Mo(e,t.fallthrough[o],n,r);if(l)return l}}}function No(e){e=\\\"string\\\"==typeof e?e:wo[e.keyCode];return\\\"Ctrl\\\"==e||\\\"Alt\\\"==e||\\\"Shift\\\"==e||\\\"Mod\\\"==e}function Ao(e,t,n){var r=e;return t.altKey&&\\\"Alt\\\"!=r&&(e=\\\"Alt-\\\"+e),(b?t.metaKey:t.ctrlKey)&&\\\"Ctrl\\\"!=r&&(e=\\\"Ctrl-\\\"+e),(b?t.ctrlKey:t.metaKey)&&\\\"Mod\\\"!=r&&(e=\\\"Cmd-\\\"+e),!n&&t.shiftKey&&\\\"Shift\\\"!=r&&(e=\\\"Shift-\\\"+e),e}function Oo(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=wo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ao(n,e,t))}function Do(e){return\\\"string\\\"==typeof e?Lo[e]:e}function Wo(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i\u003Cn.length;i++){for(var o=e(n[i]);r.length&&it(o.from,Y(r).to)\u003C=0;){var l=r.pop();if(it(l.from,o.from)\u003C0){o.from=l.from;break}}r.push(o)}Er(t,function(){for(var e=r.length-1;0\u003C=e;e--)qi(t.doc,\\\"\\\",r[e].from,r[e].to,\\\"+delete\\\");wr(t)})}function Ho(e,t,n){n=re(e.text,t+n,n);return n\u003C0||n>e.text.length?null:n}function Fo(e,t,n){e=Ho(e,t.ch,n);return null==e?null:new rt(t.line,e,n\u003C0?\\\"after\\\":\\\"before\\\")}function Eo(e,t,n,r,i){if(e){\\\"rtl\\\"==t.doc.direction&&(i=-i);var o=me(n,t.doc.direction);if(o){var l,s,a,e=i\u003C0?Y(o):o[0],o=i\u003C0==(1==e.level)?\\\"after\\\":\\\"before\\\";return 0\u003Ce.level||\\\"rtl\\\"==t.doc.direction?(l=Tn(t,n),s=i\u003C0?n.text.length-1:0,a=Mn(t,l,s).top,s=ie(function(e){return Mn(t,l,e).top==a},i\u003C0==(1==e.level)?e.from:e.to-1,s),\\\"before\\\"==o&&(s=Ho(n,s,1))):s=i\u003C0?e.to:e.from,new rt(r,s,o)}}return new rt(r,i\u003C0?n.text.length:0,i\u003C0?\\\"before\\\":\\\"after\\\")}function Po(t,n,s,e){var a=me(n,t.doc.direction);if(!a)return Fo(n,s,e);s.ch>=n.text.length?(s.ch=n.text.length,s.sticky=\\\"before\\\"):s.ch\u003C=0&&(s.ch=0,s.sticky=\\\"after\\\");var r=le(a,s.ch,s.sticky),i=a[r];if(\\\"ltr\\\"==t.doc.direction&&i.level%2==0&&(0\u003Ce?i.to>s.ch:i.from\u003Cs.ch))return Fo(n,s,e);function u(e,t){return Ho(n,e instanceof rt?e.ch:e,t)}function o(e){return t.options.lineWrapping?(l=l||Tn(t,n),jn(t,n,l,e)):{begin:0,end:n.text.length}}var l,c=o(\\\"before\\\"==s.sticky?u(s,-1):s.ch);if(\\\"rtl\\\"==t.doc.direction||1==i.level){var h=1==i.level==e\u003C0,d=u(s,h?1:-1);if(null!=d&&(h?d\u003C=i.to&&d\u003C=c.end:d>=i.from&&d>=c.begin)){var f=h?\\\"before\\\":\\\"after\\\";return new rt(s.line,d,f)}}f=function(e,t,n){for(var r=function(e,t){return t?new rt(s.line,u(e,1),\\\"before\\\"):new rt(s.line,e,\\\"after\\\")};0\u003C=e&&e\u003Ca.length;e+=t){var i=a[e],o=0\u003Ct==(1!=i.level),l=o?n.begin:u(n.end,-1);if(i.from\u003C=l&&l\u003Ci.to)return r(l,o);if(l=o?i.from:u(i.to,-1),n.begin\u003C=l&&l\u003Cn.end)return r(l,o)}},r=f(r+e,e,c);if(r)return r;c=0\u003Ce?c.end:u(c.begin,-1);return null==c||0\u003Ce&&c==n.text.length||!(r=f(0\u003Ce?0:a.length-1,e,o(c)))?null:r}Lo.basic={Left:\\\"goCharLeft\\\",Right:\\\"goCharRight\\\",Up:\\\"goLineUp\\\",Down:\\\"goLineDown\\\",End:\\\"goLineEnd\\\",Home:\\\"goLineStartSmart\\\",PageUp:\\\"goPageUp\\\",PageDown:\\\"goPageDown\\\",Delete:\\\"delCharAfter\\\",Backspace:\\\"delCharBefore\\\",\\\"Shift-Backspace\\\":\\\"delCharBefore\\\",Tab:\\\"defaultTab\\\",\\\"Shift-Tab\\\":\\\"indentAuto\\\",Enter:\\\"newlineAndIndent\\\",Insert:\\\"toggleOverwrite\\\",Esc:\\\"singleSelection\\\"},Lo.pcDefault={\\\"Ctrl-A\\\":\\\"selectAll\\\",\\\"Ctrl-D\\\":\\\"deleteLine\\\",\\\"Ctrl-Z\\\":\\\"undo\\\",\\\"Shift-Ctrl-Z\\\":\\\"redo\\\",\\\"Ctrl-Y\\\":\\\"redo\\\",\\\"Ctrl-Home\\\":\\\"goDocStart\\\",\\\"Ctrl-End\\\":\\\"goDocEnd\\\",\\\"Ctrl-Up\\\":\\\"goLineUp\\\",\\\"Ctrl-Down\\\":\\\"goLineDown\\\",\\\"Ctrl-Left\\\":\\\"goGroupLeft\\\",\\\"Ctrl-Right\\\":\\\"goGroupRight\\\",\\\"Alt-Left\\\":\\\"goLineStart\\\",\\\"Alt-Right\\\":\\\"goLineEnd\\\",\\\"Ctrl-Backspace\\\":\\\"delGroupBefore\\\",\\\"Ctrl-Delete\\\":\\\"delGroupAfter\\\",\\\"Ctrl-S\\\":\\\"save\\\",\\\"Ctrl-F\\\":\\\"find\\\",\\\"Ctrl-G\\\":\\\"findNext\\\",\\\"Shift-Ctrl-G\\\":\\\"findPrev\\\",\\\"Shift-Ctrl-F\\\":\\\"replace\\\",\\\"Shift-Ctrl-R\\\":\\\"replaceAll\\\",\\\"Ctrl-[\\\":\\\"indentLess\\\",\\\"Ctrl-]\\\":\\\"indentMore\\\",\\\"Ctrl-U\\\":\\\"undoSelection\\\",\\\"Shift-Ctrl-U\\\":\\\"redoSelection\\\",\\\"Alt-U\\\":\\\"redoSelection\\\",fallthrough:\\\"basic\\\"},Lo.emacsy={\\\"Ctrl-F\\\":\\\"goCharRight\\\",\\\"Ctrl-B\\\":\\\"goCharLeft\\\",\\\"Ctrl-P\\\":\\\"goLineUp\\\",\\\"Ctrl-N\\\":\\\"goLineDown\\\",\\\"Alt-F\\\":\\\"goWordRight\\\",\\\"Alt-B\\\":\\\"goWordLeft\\\",\\\"Ctrl-A\\\":\\\"goLineStart\\\",\\\"Ctrl-E\\\":\\\"goLineEnd\\\",\\\"Ctrl-V\\\":\\\"goPageDown\\\",\\\"Shift-Ctrl-V\\\":\\\"goPageUp\\\",\\\"Ctrl-D\\\":\\\"delCharAfter\\\",\\\"Ctrl-H\\\":\\\"delCharBefore\\\",\\\"Alt-D\\\":\\\"delWordAfter\\\",\\\"Alt-Backspace\\\":\\\"delWordBefore\\\",\\\"Ctrl-K\\\":\\\"killLine\\\",\\\"Ctrl-T\\\":\\\"transposeChars\\\",\\\"Ctrl-O\\\":\\\"openLine\\\"},Lo.macDefault={\\\"Cmd-A\\\":\\\"selectAll\\\",\\\"Cmd-D\\\":\\\"deleteLine\\\",\\\"Cmd-Z\\\":\\\"undo\\\",\\\"Shift-Cmd-Z\\\":\\\"redo\\\",\\\"Cmd-Y\\\":\\\"redo\\\",\\\"Cmd-Home\\\":\\\"goDocStart\\\",\\\"Cmd-Up\\\":\\\"goDocStart\\\",\\\"Cmd-End\\\":\\\"goDocEnd\\\",\\\"Cmd-Down\\\":\\\"goDocEnd\\\",\\\"Alt-Left\\\":\\\"goGroupLeft\\\",\\\"Alt-Right\\\":\\\"goGroupRight\\\",\\\"Cmd-Left\\\":\\\"goLineLeft\\\",\\\"Cmd-Right\\\":\\\"goLineRight\\\",\\\"Alt-Backspace\\\":\\\"delGroupBefore\\\",\\\"Ctrl-Alt-Backspace\\\":\\\"delGroupAfter\\\",\\\"Alt-Delete\\\":\\\"delGroupAfter\\\",\\\"Cmd-S\\\":\\\"save\\\",\\\"Cmd-F\\\":\\\"find\\\",\\\"Cmd-G\\\":\\\"findNext\\\",\\\"Shift-Cmd-G\\\":\\\"findPrev\\\",\\\"Cmd-Alt-F\\\":\\\"replace\\\",\\\"Shift-Cmd-Alt-F\\\":\\\"replaceAll\\\",\\\"Cmd-[\\\":\\\"indentLess\\\",\\\"Cmd-]\\\":\\\"indentMore\\\",\\\"Cmd-Backspace\\\":\\\"delWrappedLineLeft\\\",\\\"Cmd-Delete\\\":\\\"delWrappedLineRight\\\",\\\"Cmd-U\\\":\\\"undoSelection\\\",\\\"Shift-Cmd-U\\\":\\\"redoSelection\\\",\\\"Ctrl-Up\\\":\\\"goDocStart\\\",\\\"Ctrl-Down\\\":\\\"goDocEnd\\\",fallthrough:[\\\"basic\\\",\\\"emacsy\\\"]},Lo.default=g?Lo.macDefault:Lo.pcDefault;var Io={selectAll:Vi,singleSelection:function(e){return e.setSelection(e.getCursor(\\\"anchor\\\"),e.getCursor(\\\"head\\\"),G)},killLine:function(n){return Wo(n,function(e){if(e.empty()){var t=$e(n.doc,e.head.line).text.length;return e.head.ch==t&&e.head.line\u003Cn.lastLine()?{from:e.head,to:rt(e.head.line+1,0)}:{from:e.head,to:rt(e.head.line,t)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return Wo(t,function(e){return{from:rt(e.from().line,0),to:ct(t.doc,rt(e.to().line+1,0))}})},delLineLeft:function(e){return Wo(e,function(e){return{from:rt(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(n){return Wo(n,function(e){var t=n.charCoords(e.head,\\\"div\\\").top+5;return{from:n.coordsChar({left:0,top:t},\\\"div\\\"),to:e.from()}})},delWrappedLineRight:function(n){return Wo(n,function(e){var t=n.charCoords(e.head,\\\"div\\\").top+5,t=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:t},\\\"div\\\");return{from:e.from(),to:t}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(rt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(rt(e.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return Ro(t,e.head.line)},{origin:\\\"+move\\\",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return zo(t,e.head)},{origin:\\\"+move\\\",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return function(e,t){var n=$e(e.doc,t),r=function(e){for(var t;t=It(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=Je(r));return Eo(!0,e,n,t,-1)}(t,e.head.line)},{origin:\\\"+move\\\",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){e=t.cursorCoords(e.head,\\\"div\\\").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:e},\\\"div\\\")},V)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){e=t.cursorCoords(e.head,\\\"div\\\").top+5;return t.coordsChar({left:0,top:e},\\\"div\\\")},V)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(e){var t=n.cursorCoords(e.head,\\\"div\\\").top+5,t=n.coordsChar({left:0,top:t},\\\"div\\\");return t.ch\u003Cn.getLine(t.line).search(/\\\\S/)?zo(n,e.head):t},V)},goLineUp:function(e){return e.moveV(-1,\\\"line\\\")},goLineDown:function(e){return e.moveV(1,\\\"line\\\")},goPageUp:function(e){return e.moveV(-1,\\\"page\\\")},goPageDown:function(e){return e.moveV(1,\\\"page\\\")},goCharLeft:function(e){return e.moveH(-1,\\\"char\\\")},goCharRight:function(e){return e.moveH(1,\\\"char\\\")},goColumnLeft:function(e){return e.moveH(-1,\\\"column\\\")},goColumnRight:function(e){return e.moveH(1,\\\"column\\\")},goWordLeft:function(e){return e.moveH(-1,\\\"word\\\")},goGroupRight:function(e){return e.moveH(1,\\\"group\\\")},goGroupLeft:function(e){return e.moveH(-1,\\\"group\\\")},goWordRight:function(e){return e.moveH(1,\\\"word\\\")},delCharBefore:function(e){return e.deleteH(-1,\\\"codepoint\\\")},delCharAfter:function(e){return e.deleteH(1,\\\"char\\\")},delWordBefore:function(e){return e.deleteH(-1,\\\"word\\\")},delWordAfter:function(e){return e.deleteH(1,\\\"word\\\")},delGroupBefore:function(e){return e.deleteH(-1,\\\"group\\\")},delGroupAfter:function(e){return e.deleteH(1,\\\"group\\\")},indentAuto:function(e){return e.indentSelection(\\\"smart\\\")},indentMore:function(e){return e.indentSelection(\\\"add\\\")},indentLess:function(e){return e.indentSelection(\\\"subtract\\\")},insertTab:function(e){return e.replaceSelection(\\\"\\\\t\\\")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i\u003Cn.length;i++){var o=n[i].from(),o=P(e.getLine(o.line),o.ch,r);t.push(X(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection(\\\"add\\\"):e.execCommand(\\\"insertTab\\\")},transposeChars:function(l){return Er(l,function(){for(var e,t,n,r=l.listSelections(),i=[],o=0;o\u003Cr.length;o++)r[o].empty()&&(e=r[o].head,(t=$e(l.doc,e.line).text)&&(e.ch==t.length&&(e=new rt(e.line,e.ch-1)),0\u003Ce.ch?(e=new rt(e.line,e.ch+1),l.replaceRange(t.charAt(e.ch-1)+t.charAt(e.ch-2),rt(e.line,e.ch-2),e,\\\"+transpose\\\")):e.line>l.doc.first&&((n=$e(l.doc,e.line-1).text)&&(e=new rt(e.line,1),l.replaceRange(t.charAt(0)+l.doc.lineSeparator()+n.charAt(n.length-1),rt(e.line-1,n.length-1),e,\\\"+transpose\\\")))),i.push(new oi(e,e)));l.setSelections(i)})},newlineAndIndent:function(r){return Er(r,function(){for(var e=r.listSelections(),t=e.length-1;0\u003C=t;t--)r.replaceRange(r.doc.lineSeparator(),e[t].anchor,e[t].head,\\\"+input\\\");e=r.listSelections();for(var n=0;n\u003Ce.length;n++)r.indentLine(e[n].from().line,null,!0);wr(r)})},openLine:function(e){return e.replaceSelection(\\\"\\\\n\\\",\\\"start\\\")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ro(e,t){var n=$e(e.doc,t),r=zt(n);return r!=n&&(t=Je(r)),Eo(!0,e,r,t,1)}function zo(e,t){var n=Ro(e,t.line),r=$e(e.doc,n.line),e=me(r,e.doc.direction);if(e&&0!=e[0].level)return n;r=Math.max(n.ch,r.text.search(/\\\\S/)),t=t.line==n.line&&t.ch\u003C=r&&t.ch;return rt(n.line,t?0:r,n.sticky)}function Bo(e,t,n){if(\\\"string\\\"==typeof t&&!(t=Io[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=B}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var Go=new I;function Uo(e,t,n,r){var i=e.state.keySeq;if(i){if(No(t))return\\\"handled\\\";if(/\\\\'$/.test(t)?e.state.keySeq=null:Go.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),Vo(e,i+\\\" \\\"+t,n,r))return!0}return Vo(e,t,n,r)}function Vo(e,t,n,r){r=function(e,t,n){for(var r=0;r\u003Ce.state.keyMaps.length;r++){var i=Mo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Mo(t,e.options.extraKeys,n,e)||Mo(t,e.options.keyMap,n,e)}(e,t,r);return\\\"multi\\\"==r&&(e.state.keySeq=t),\\\"handled\\\"==r&&ln(e,\\\"keyHandled\\\",e,t,n),\\\"handled\\\"!=r&&\\\"multi\\\"!=r||(Te(n),cr(e)),!!r}function Ko(t,e){var n=Oo(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?Uo(t,\\\"Shift-\\\"+n,e,function(e){return Bo(t,e,!0)})||Uo(t,n,e,function(e){if(\\\"string\\\"==typeof e?/^go[A-Z]/.test(e):e.motion)return Bo(t,e)}):Uo(t,n,e,function(e){return Bo(t,e)}))}var jo=null;function Xo(e){var t,n,r,i=this;function o(e){18!=e.keyCode&&e.altKey||(L(r,\\\"CodeMirror-crosshair\\\"),we(document,\\\"keyup\\\",o),we(document,\\\"mouseover\\\",o))}e.target&&e.target!=i.display.input.getField()||(i.curOp.focus=O(),Ce(i,e)||(w&&v\u003C11&&27==e.keyCode&&(e.returnValue=!1),t=e.keyCode,i.display.shift=16==t||e.shiftKey,n=Ko(i,e),p&&(jo=n?t:null,!n&&88==t&&!Ie&&(g?e.metaKey:e.ctrlKey)&&i.replaceSelection(\\\"\\\",null,\\\"cut\\\")),d&&!g&&!n&&46==t&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand(\\\"cut\\\"),18!=t||/\\\\bCodeMirror-crosshair\\\\b/.test(i.display.lineDiv.className)||(D(r=i.display.lineDiv,\\\"CodeMirror-crosshair\\\"),ye(document,\\\"keyup\\\",o),ye(document,\\\"mouseover\\\",o))))}function Yo(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ce(this,e)}function _o(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||mn(t.display,e)||Ce(t,e)||e.ctrlKey&&!e.altKey||g&&e.metaKey)){var n,r=e.keyCode,i=e.charCode;if(p&&r==jo)return jo=null,void Te(e);p&&(!e.which||e.which\u003C10)&&Ko(t,e)||\\\"\\\\b\\\"!=(i=String.fromCharCode(null==i?r:i))&&(Uo(n=t,\\\"'\\\"+i+\\\"'\\\",e,function(e){return Bo(n,e,!0)})||t.display.input.onKeyPress(e))}}var $o,qo,Zo=function(e,t,n){this.time=e,this.pos=t,this.button=n};function Qo(e){var t,n,r,i,o,l=this,s=l.display;Ce(l,e)||s.activeTouch&&s.input.supportsTouch()||(s.input.ensurePolled(),s.shift=e.shiftKey,mn(s,e)?f||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100)):tl(l,e)||(t=Jn(l,e),n=De(e),i=t?(r=t,i=n,o=+new Date,qo&&qo.compare(o,r,i)?($o=qo=null,\\\"triple\\\"):$o&&$o.compare(o,r,i)?(qo=new Zo(o,r,i),$o=null,\\\"double\\\"):($o=new Zo(o,r,i),qo=null,\\\"single\\\")):\\\"single\\\",window.focus(),1==n&&l.state.selectingText&&l.state.selectingText(e),t&&function(n,e,r,t,i){var o=\\\"Click\\\";\\\"double\\\"==t?o=\\\"Double\\\"+o:\\\"triple\\\"==t&&(o=\\\"Triple\\\"+o);return Uo(n,Ao(o=(1==e?\\\"Left\\\":2==e?\\\"Middle\\\":\\\"Right\\\")+o,i),i,function(e){if(\\\"string\\\"==typeof e&&(e=Io[e]),!e)return!1;var t=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),t=e(n,r)!=B}finally{n.state.suppressEdits=!1}return t})}(l,n,t,i,e)||(1==n?t?function(e,t,n,r){w?setTimeout(F(hr,e),0):e.curOp.focus=O();var i,o=function(e,t,n){var r=e.getOption(\\\"configureMouse\\\"),i=r?r(e,t,n):{};null==i.unit&&(r=m?n.shiftKey&&n.metaKey:n.altKey,i.unit=r?\\\"rectangle\\\":\\\"single\\\"==t?\\\"char\\\":\\\"double\\\"==t?\\\"word\\\":\\\"line\\\");null!=i.extend&&!e.doc.extend||(i.extend=e.doc.extend||n.shiftKey);null==i.addNew&&(i.addNew=g?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(g?n.altKey:n.ctrlKey));return i}(e,n,r),l=e.doc.sel;(e.options.dragDrop&&Fe&&!e.isReadOnly()&&\\\"single\\\"==n&&-1\u003C(i=l.contains(t))&&(it((i=l.ranges[i]).from(),t)\u003C0||0\u003Ct.xRel)&&(0\u003Cit(i.to(),t)||t.xRel\u003C0)?function(t,n,r,i){var o=t.display,l=!1,s=Pr(t,function(e){f&&(o.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:dr(t)),we(o.wrapper.ownerDocument,\\\"mouseup\\\",s),we(o.wrapper.ownerDocument,\\\"mousemove\\\",a),we(o.scroller,\\\"dragstart\\\",u),we(o.scroller,\\\"drop\\\",s),l||(Te(e),i.addNew||Oi(t.doc,r,null,null,i.extend),f&&!c||w&&9==v?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),a=function(e){l=l||10\u003C=Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)},u=function(){return l=!0};f&&(o.scroller.draggable=!0);(t.state.draggingText=s).copy=!i.moveOnDrag,ye(o.wrapper.ownerDocument,\\\"mouseup\\\",s),ye(o.wrapper.ownerDocument,\\\"mousemove\\\",a),ye(o.scroller,\\\"dragstart\\\",u),ye(o.scroller,\\\"drop\\\",s),t.state.delayingBlurEvent=!0,setTimeout(function(){return o.input.focus()},20),o.scroller.dragDrop&&o.scroller.dragDrop()}:function(d,e,f,p){w&&dr(d);var l=d.display,g=d.doc;Te(e);var m,v,y=g.sel,t=y.ranges;p.addNew&&!p.extend?(v=g.sel.contains(f),m=-1\u003Cv?t[v]:new oi(f,f)):(m=g.sel.primary(),v=g.sel.primIndex);\\\"rectangle\\\"==p.unit?(p.addNew||(m=new oi(f,f)),f=Jn(d,e,!0,!0),v=-1):(e=Jo(d,f,p.unit),m=p.extend?Ai(m,e.anchor,e.head,p.extend):e);p.addNew?-1==v?(v=t.length,Ei(g,li(d,t.concat([m]),v),{scroll:!1,origin:\\\"*mouse\\\"})):1\u003Ct.length&&t[v].empty()&&\\\"char\\\"==p.unit&&!p.extend?(Ei(g,li(d,t.slice(0,v).concat(t.slice(v+1)),0),{scroll:!1,origin:\\\"*mouse\\\"}),y=g.sel):Wi(g,v,m,U):(Ei(g,new ii([m],v=0),U),y=g.sel);var b=f;function s(e){if(0!=it(b,e))if(b=e,\\\"rectangle\\\"==p.unit){for(var t=[],n=d.options.tabSize,r=P($e(g,f.line).text,f.ch,n),i=P($e(g,e.line).text,e.ch,n),o=Math.min(r,i),l=Math.max(r,i),s=Math.min(f.line,e.line),a=Math.min(d.lastLine(),Math.max(f.line,e.line));s\u003C=a;s++){var u=$e(g,s).text,c=K(u,o,n);o==l?t.push(new oi(rt(s,c),rt(s,c))):u.length>c&&t.push(new oi(rt(s,c),rt(s,K(u,l,n))))}t.length||t.push(new oi(f,f)),Ei(g,li(d,y.ranges.slice(0,v).concat(t),v),{origin:\\\"*mouse\\\",scroll:!1}),d.scrollIntoView(e)}else{var h,r=m,i=Jo(d,e,p.unit),e=r.anchor,e=0\u003Cit(i.anchor,e)?(h=i.head,at(r.from(),i.anchor)):(h=i.anchor,st(r.to(),i.head)),i=y.ranges.slice(0);i[v]=function(e,t){var n=t.anchor,r=t.head,i=$e(e.doc,n.line);if(0==it(n,r)&&n.sticky==r.sticky)return t;var o=me(i);if(!o)return t;var l=le(o,n.ch,n.sticky),s=o[l];if(s.from!=n.ch&&s.to!=n.ch)return t;i=l+(s.from==n.ch==(1!=s.level)?0:1);if(0==i||i==o.length)return t;a=r.line!=n.line?0\u003C(r.line-n.line)*(\\\"ltr\\\"==e.doc.direction?1:-1):(e=le(o,r.ch,r.sticky),a=e-l||(r.ch-n.ch)*(1==s.level?-1:1),e==i-1||e==i?a\u003C0:0\u003Ca);var i=o[i+(a?-1:0)],a=a==(1==i.level),i=a?i.from:i.to,a=a?\\\"after\\\":\\\"before\\\";return n.ch==i&&n.sticky==a?t:new oi(new rt(n.line,i,a),r)}(d,new oi(ct(g,e),h)),Ei(g,li(d,i,v),U)}}var a=l.wrapper.getBoundingClientRect(),u=0;function n(e){d.state.selectingText=!1,u=1/0,e&&(Te(e),l.input.focus()),we(l.wrapper.ownerDocument,\\\"mousemove\\\",r),we(l.wrapper.ownerDocument,\\\"mouseup\\\",i),g.history.lastSelOrigin=null}var r=Pr(d,function(e){(0!==e.buttons&&De(e)?function e(t){var n,r,i=++u,o=Jn(d,t,!0,\\\"rectangle\\\"==p.unit);o&&(0!=it(o,b)?(d.curOp.focus=O(),s(o),n=vr(l,g),(o.line>=n.to||o.line\u003Cn.from)&&setTimeout(Pr(d,function(){u==i&&e(t)}),150)):(r=t.clientY\u003Ca.top?-20:t.clientY>a.bottom?20:0)&&setTimeout(Pr(d,function(){u==i&&(l.scroller.scrollTop+=r,e(t))}),50))}:n)(e)}),i=Pr(d,n);d.state.selectingText=i,ye(l.wrapper.ownerDocument,\\\"mousemove\\\",r),ye(l.wrapper.ownerDocument,\\\"mouseup\\\",i)})(e,r,t,o)}(l,t,i,e):Oe(e)==s.scroller&&Te(e):2==n?(t&&Oi(l.doc,t),setTimeout(function(){return s.input.focus()},20)):3==n&&(x?l.display.input.onContextMenu(e):dr(l)))))}function Jo(e,t,n){if(\\\"char\\\"==n)return new oi(t,t);if(\\\"word\\\"==n)return e.findWordAt(t);if(\\\"line\\\"==n)return new oi(rt(t.line,0),ct(e.doc,rt(t.line+1,0)));t=n(e,t);return new oi(t.from,t.to)}function el(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Te(t);var l=e.display,r=l.lineDiv.getBoundingClientRect();if(o>r.bottom||!Le(e,n))return Ne(t);o-=r.top-l.viewOffset;for(var s=0;s\u003Ce.display.gutterSpecs.length;++s){var a=l.gutters.childNodes[s];if(a&&a.getBoundingClientRect().right>=i)return xe(e,n,e,et(e.doc,o),e.display.gutterSpecs[s].className,t),Ne(t)}}function tl(e,t){return el(e,t,\\\"gutterClick\\\",!0)}function nl(e,t){var n,r;mn(e.display,t)||(r=t,Le(n=e,\\\"gutterContextMenu\\\")&&el(n,r,\\\"gutterContextMenu\\\",!1))||Ce(e,t,\\\"contextmenu\\\")||x||e.display.input.onContextMenu(t)}function rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\\\\s*cm-s-\\\\S+/g,\\\"\\\")+e.options.theme.replace(/(^|\\\\s)\\\\s*/g,\\\" cm-s-\\\"),Hn(e)}Zo.prototype.compare=function(e,t,n){return this.time+400>e&&0==it(t,this.pos)&&n==this.button};var il={toString:function(){return\\\"CodeMirror.Init\\\"}},ol={},ll={};function sl(e,t,n){!t!=!(n&&n!=il)&&(n=e.display.dragFunctions,(t=t?ye:we)(e.display.scroller,\\\"dragstart\\\",n.start),t(e.display.scroller,\\\"dragenter\\\",n.enter),t(e.display.scroller,\\\"dragover\\\",n.over),t(e.display.scroller,\\\"dragleave\\\",n.leave),t(e.display.scroller,\\\"drop\\\",n.drop))}function al(e){e.options.lineWrapping?(D(e.display.wrapper,\\\"CodeMirror-wrap\\\"),e.display.sizer.style.minWidth=\\\"\\\",e.display.sizerWidth=null):(L(e.display.wrapper,\\\"CodeMirror-wrap\\\"),jt(e)),Qn(e),tr(e),Hn(e),setTimeout(function(){return Nr(e)},100)}function ul(e,t){var n=this;if(!(this instanceof ul))return new ul(e,t);this.options=t=t?E(t):{},E(ol,t,!1);var r=t.value;\\\"string\\\"==typeof r?r=new ho(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i,o=new ul.inputStyles[t.inputStyle](this),o=this.display=new Qr(e,r,o,t);for(i in rl(o.wrapper.CodeMirror=this),t.lineWrapping&&(this.display.wrapper.className+=\\\" CodeMirror-wrap\\\"),Dr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new I,keySeq:null,specialChars:null},t.autofocus&&!h&&o.input.focus(),w&&v\u003C11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(r){var i=r.display;ye(i.scroller,\\\"mousedown\\\",Pr(r,Qo)),ye(i.scroller,\\\"dblclick\\\",w&&v\u003C11?Pr(r,function(e){var t;Ce(r,e)||(!(t=Jn(r,e))||tl(r,e)||mn(r.display,e)||(Te(e),t=r.findWordAt(t),Oi(r.doc,t.anchor,t.head)))}):function(e){return Ce(r,e)||Te(e)});ye(i.scroller,\\\"contextmenu\\\",function(e){return nl(r,e)}),ye(i.input.getField(),\\\"contextmenu\\\",function(e){i.scroller.contains(e.target)||nl(r,e)});var n,o={end:0};function l(){i.activeTouch&&(n=setTimeout(function(){return i.activeTouch=null},1e3),(o=i.activeTouch).end=+new Date)}function s(e,t){if(null==t.left)return 1;var n=t.left-e.left,e=t.top-e.top;return 400\u003Cn*n+e*e}ye(i.scroller,\\\"touchstart\\\",function(e){var t;Ce(r,e)||function(e){if(1==e.touches.length){e=e.touches[0];return e.radiusX\u003C=1&&e.radiusY\u003C=1}}(e)||tl(r,e)||(i.input.ensurePolled(),clearTimeout(n),t=+new Date,i.activeTouch={start:t,moved:!1,prev:t-o.end\u003C=300?o:null},1==e.touches.length&&(i.activeTouch.left=e.touches[0].pageX,i.activeTouch.top=e.touches[0].pageY))}),ye(i.scroller,\\\"touchmove\\\",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ye(i.scroller,\\\"touchend\\\",function(e){var t,n=i.activeTouch;n&&!mn(i,e)&&null!=n.left&&!n.moved&&new Date-n.start\u003C300&&(t=r.coordsChar(i.activeTouch,\\\"page\\\"),t=!n.prev||s(n,n.prev)?new oi(t,t):!n.prev.prev||s(n,n.prev.prev)?r.findWordAt(t):new oi(rt(t.line,0),ct(r.doc,rt(t.line+1,0))),r.setSelection(t.anchor,t.head),r.focus(),Te(e)),l()}),ye(i.scroller,\\\"touchcancel\\\",l),ye(i.scroller,\\\"scroll\\\",function(){i.scroller.clientHeight&&(Lr(r,i.scroller.scrollTop),Tr(r,i.scroller.scrollLeft,!0),xe(r,\\\"scroll\\\",r))}),ye(i.scroller,\\\"mousewheel\\\",function(e){return ri(r,e)}),ye(i.scroller,\\\"DOMMouseScroll\\\",function(e){return ri(r,e)}),ye(i.wrapper,\\\"scroll\\\",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(e){Ce(r,e)||Ae(e)},over:function(e){var t,n;Ce(r,e)||((n=Jn(t=r,n=e))&&(ar(t,n,n=document.createDocumentFragment()),t.display.dragCursor||(t.display.dragCursor=M(\\\"div\\\",null,\\\"CodeMirror-cursors CodeMirror-dragcursors\\\"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),T(t.display.dragCursor,n)),Ae(e))},start:function(e){return t=r,n=e,void(w&&(!t.state.draggingText||+new Date-fo\u003C100)?Ae(n):Ce(t,n)||mn(t.display,n)||(n.dataTransfer.setData(\\\"Text\\\",t.getSelection()),n.dataTransfer.effectAllowed=\\\"copyMove\\\",n.dataTransfer.setDragImage&&!c&&((e=M(\\\"img\\\",null,null,\\\"position: fixed; left: 0; top: 0;\\\")).src=\\\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\\\",p&&(e.width=e.height=1,t.display.wrapper.appendChild(e),e._top=e.offsetTop),n.dataTransfer.setDragImage(e,0,0),p&&e.parentNode.removeChild(e))));var t,n},drop:Pr(r,po),leave:function(e){Ce(r,e)||go(r)}};var e=i.input.getField();ye(e,\\\"keyup\\\",function(e){return Yo.call(r,e)}),ye(e,\\\"keydown\\\",Pr(r,Xo)),ye(e,\\\"keypress\\\",Pr(r,_o)),ye(e,\\\"focus\\\",function(e){return fr(r,e)}),ye(e,\\\"blur\\\",function(e){return pr(r,e)})}(this),yo(),Hr(this),this.curOp.forceUpdate=!0,vi(this,r),t.autofocus&&!h||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&fr(n)},20):pr(this),ll)ll.hasOwnProperty(i)&&ll[i](this,t[i],il);_r(this),t.finishInit&&t.finishInit(this);for(var l=0;l\u003Ccl.length;++l)cl[l](this);Fr(this),f&&t.lineWrapping&&\\\"optimizelegibility\\\"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering=\\\"auto\\\")}ul.defaults=ol,ul.optionHandlers=ll;var cl=[];function hl(e,t,n,r){var i,o=e.doc;null==n&&(n=\\\"add\\\"),\\\"smart\\\"==n&&(o.mode.indent?i=mt(e,t).state:n=\\\"prev\\\");var l=e.options.tabSize,s=$e(o,t),a=P(s.text,null,l);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\\\\s*/)[0];if(r||/\\\\S/.test(s.text)){if(\\\"smart\\\"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==B||150\u003Cu)){if(!r)return;n=\\\"prev\\\"}}else u=0,n=\\\"not\\\";\\\"prev\\\"==n?u=t>o.first?P($e(o,t-1).text,null,l):0:\\\"add\\\"==n?u=a+e.options.indentUnit:\\\"subtract\\\"==n?u=a-e.options.indentUnit:\\\"number\\\"==typeof n&&(u=a+n),u=Math.max(0,u);var h=\\\"\\\",d=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/l);f;--f)d+=l,h+=\\\"\\\\t\\\";if(d\u003Cu&&(h+=X(u-d)),h!=c)return qi(o,h,rt(t,0),rt(t,c.length),\\\"+input\\\"),!(s.stateAfter=null);for(var p=0;p\u003Co.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch\u003Cc.length){g=rt(t,c.length);Wi(o,p,new oi(g,g));break}}}ul.defineInitHook=function(e){return cl.push(e)};var dl=null;function fl(e){dl=e}function pl(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r=r||o.sel;var l=+new Date-200,s=\\\"paste\\\"==i||e.state.pasteIncoming>l,a=Ee(t),u=null;if(s&&1\u003Cr.ranges.length)if(dl&&dl.text.join(\\\"\\\\n\\\")==t){if(r.ranges.length%dl.text.length==0){u=[];for(var c=0;c\u003Cdl.text.length;c++)u.push(o.splitLines(dl.text[c]))}}else a.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=_(a,function(e){return[e]}));for(var h=e.curOp.updateInput,d=r.ranges.length-1;0\u003C=d;d--){var f=r.ranges[d],p=f.from(),g=f.to();f.empty()&&(n&&0\u003Cn?p=rt(p.line,p.ch-n):e.state.overwrite&&!s?g=rt(g.line,Math.min($e(o,g.line).text.length,g.ch+Y(a).length)):s&&dl&&dl.lineWise&&dl.text.join(\\\"\\\\n\\\")==a.join(\\\"\\\\n\\\")&&(p=g=rt(p.line,0)));g={from:p,to:g,text:u?u[d%u.length]:a,origin:i||(s?\\\"paste\\\":e.state.cutIncoming>l?\\\"cut\\\":\\\"+input\\\")};ji(e.doc,g),ln(e,\\\"inputRead\\\",e,g)}t&&!s&&ml(e,t),wr(e),e.curOp.updateInput\u003C2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function gl(e,t){var n=e.clipboardData&&e.clipboardData.getData(\\\"Text\\\");return n&&(e.preventDefault(),t.isReadOnly()||t.options.disableInput||Er(t,function(){return pl(t,n,0,null,\\\"paste\\\")}),1)}function ml(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;0\u003C=r;r--){var i=n.ranges[r];if(!(100\u003Ci.head.ch||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s\u003Co.electricChars.length;s++)if(-1\u003Ct.indexOf(o.electricChars.charAt(s))){l=hl(e,i.head.line,\\\"smart\\\");break}}else o.electricInput&&o.electricInput.test($e(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=hl(e,i.head.line,\\\"smart\\\"));l&&ln(e,\\\"electricInput\\\",e,i.head.line)}}}function vl(e){for(var t=[],n=[],r=0;r\u003Ce.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,i={anchor:rt(i,0),head:rt(i+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function yl(e,t,n,r){e.setAttribute(\\\"autocorrect\\\",n?\\\"\\\":\\\"off\\\"),e.setAttribute(\\\"autocapitalize\\\",r?\\\"\\\":\\\"off\\\"),e.setAttribute(\\\"spellcheck\\\",!!t)}function bl(){var e=M(\\\"textarea\\\",null,null,\\\"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none\\\"),t=M(\\\"div\\\",[e],null,\\\"overflow: hidden; position: relative; width: 3px; height: 0px;\\\");return f?e.style.width=\\\"1000px\\\":e.setAttribute(\\\"wrap\\\",\\\"off\\\"),s&&(e.style.border=\\\"1px solid black\\\"),yl(e),t}function wl(r,i,o,l,s){var e=i,t=o,a=$e(r,i.line),u=s&&\\\"rtl\\\"==r.direction?-o:o;function n(e){var t,n;if(null==(t=\\\"codepoint\\\"==l?(t=a.text.charCodeAt(i.ch+(0\u003Cl?0:-1)),isNaN(t)?null:new rt(i.line,Math.max(0,Math.min(a.text.length,i.ch+o*(55296\u003C=t&&t\u003C56320?2:1))),-o)):s?Po(r.cm,a,i,o):Fo(a,i,o))){if(e||(n=i.line+u)\u003Cr.first||n>=r.first+r.size||(i=new rt(n,i.ch,i.sticky),!(a=$e(r,n))))return;i=Eo(s,r.cm,a,i.line,u)}else i=t;return 1}if(\\\"char\\\"==l||\\\"codepoint\\\"==l)n();else if(\\\"column\\\"==l)n(!0);else if(\\\"word\\\"==l||\\\"group\\\"==l)for(var c=null,h=\\\"group\\\"==l,d=r.cm&&r.cm.getHelper(i,\\\"wordChars\\\"),f=!0;!(o\u003C0)||n(!f);f=!1){var p=a.text.charAt(i.ch)||\\\"\\\\n\\\",p=J(p,d)?\\\"w\\\":h&&\\\"\\\\n\\\"==p?\\\"n\\\":!h||/\\\\s/.test(p)?null:\\\"p\\\";if(!h||f||p||(p=\\\"s\\\"),c&&c!=p){o\u003C0&&(o=1,n(),i.sticky=\\\"after\\\");break}if(p&&(c=p),0\u003Co&&!n(!f))break}t=Gi(r,i,e,t,!0);return ot(e,t)&&(t.hitSide=!0),t}function xl(e,t,n,r){var i,o,l,s=e.doc,a=t.left;for(\\\"page\\\"==r?(i=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),i=Math.max(i-.5*Yn(e.display),3),o=(0\u003Cn?t.bottom:t.top)+n*i):\\\"line\\\"==r&&(o=0\u003Cn?t.bottom+3:t.top-3);(l=Vn(e,a,o)).outside;){if(n\u003C0?o\u003C=0:o>=s.height){l.hitSide=!0;break}o+=5*n}return l}e=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new I,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Cl(e,t){var n=kn(e,t.line);if(!n||n.hidden)return null;var r=$e(e.doc,t.line),n=Sn(n,r,t.line),r=me(r,e.doc.direction),e=\\\"left\\\";r&&(e=le(r,t.ch)%2?\\\"right\\\":\\\"left\\\");e=On(n.map,t.ch,e);return e.offset=\\\"right\\\"==e.collapse?e.end:e.start,e}function Sl(e,t){return t&&(e.bad=!0),e}function Ll(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Sl(e.clipPos(rt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i\u003Ce.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return function(u,e,t){var n=u.text.firstChild,r=!1;if(!e||!A(n,e))return Sl(rt(Je(u.line),0),!0);if(e==n&&(r=!0,e=n.childNodes[t],t=0,!e)){var i=u.rest?Y(u.rest):u.line;return Sl(rt(Je(i),i.text.length),r)}var i=3==e.nodeType?e:null,o=e;i||1!=e.childNodes.length||3!=e.firstChild.nodeType||(i=e.firstChild,t=t&&i.nodeValue.length);for(;o.parentNode!=n;)o=o.parentNode;var c=u.measure,h=c.maps;function l(e,t,n){for(var r=-1;r\u003C(h?h.length:0);r++)for(var i=r\u003C0?c.map:h[r],o=0;o\u003Ci.length;o+=3){var l=i[o+2];if(l==e||l==t){var s=Je(r\u003C0?u.line:u.rest[r]),a=i[o]+n;return(n\u003C0||l!=e)&&(a=i[o+(n?1:0)]),rt(s,a)}}}var s=l(i,o,t);if(s)return Sl(s,r);for(var a=o.nextSibling,d=i?i.nodeValue.length-t:0;a;a=a.nextSibling){if(s=l(a,a.firstChild,0))return Sl(rt(s.line,s.ch-d),r);d+=a.textContent.length}for(var f=o.previousSibling,p=t;f;f=f.previousSibling){if(s=l(f,f.firstChild,-1))return Sl(rt(s.line,s.ch+p),r);p+=f.textContent.length}}(o,t,n)}}e.prototype.init=function(e){var t=this,o=this,l=o.cm,s=o.div=e.lineDiv;function a(e){for(var t=e.target;t;t=t.parentNode){if(t==s)return 1;if(/\\\\bCodeMirror-(?:line)?widget\\\\b/.test(t.className))break}}function n(e){if(a(e)&&!Ce(l,e)){if(l.somethingSelected())fl({lineWise:!1,text:l.getSelections()}),\\\"cut\\\"==e.type&&l.replaceSelection(\\\"\\\",null,\\\"cut\\\");else{if(!l.options.lineWiseCopyCut)return;var t=vl(l);fl({lineWise:!0,text:t.text}),\\\"cut\\\"==e.type&&l.operation(function(){l.setSelections(t.ranges,0,G),l.replaceSelection(\\\"\\\",null,\\\"cut\\\")})}if(e.clipboardData){e.clipboardData.clearData();var n=dl.text.join(\\\"\\\\n\\\");if(e.clipboardData.setData(\\\"Text\\\",n),e.clipboardData.getData(\\\"Text\\\")==n)return void e.preventDefault()}var r=bl(),e=r.firstChild;l.display.lineSpace.insertBefore(r,l.display.lineSpace.firstChild),e.value=dl.text.join(\\\"\\\\n\\\");var i=document.activeElement;H(e),setTimeout(function(){l.display.lineSpace.removeChild(r),i.focus(),i==s&&o.showPrimarySelection()},50)}}yl(s,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize),ye(s,\\\"paste\\\",function(e){!a(e)||Ce(l,e)||gl(e,l)||v\u003C=11&&setTimeout(Pr(l,function(){return t.updateFromDOM()}),20)}),ye(s,\\\"compositionstart\\\",function(e){t.composing={data:e.data,done:!1}}),ye(s,\\\"compositionupdate\\\",function(e){t.composing||(t.composing={data:e.data,done:!1})}),ye(s,\\\"compositionend\\\",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ye(s,\\\"touchstart\\\",function(){return o.forceCompositionEnd()}),ye(s,\\\"input\\\",function(){t.composing||t.readFromDOMSoon()}),ye(s,\\\"copy\\\",n),ye(s,\\\"cut\\\",n)},e.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute(\\\"aria-label\\\",e):this.div.removeAttribute(\\\"aria-label\\\")},e.prototype.prepareSelection=function(){var e=sr(this.cm,!1);return e.focus=document.activeElement==this.div,e},e.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},e.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},e.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line\u003Ct.display.viewFrom)e.removeAllRanges();else{var o=Ll(t,e.anchorNode,e.anchorOffset),n=Ll(t,e.focusNode,e.focusOffset);if(!o||o.bad||!n||n.bad||0!=it(at(o,n),r)||0!=it(st(o,n),i)){var n=t.display.view,l=r.line>=t.display.viewFrom&&Cl(t,r)||{node:n[0].measure.map[2],offset:0},s=i.line\u003Ct.display.viewTo&&Cl(t,i);if(s||(s={node:(u=(u=n[n.length-1].measure).maps?u.maps[u.maps.length-1]:u.map)[u.length-1],offset:u[u.length-2]-u[u.length-3]}),l&&s){var a,u=e.rangeCount&&e.getRangeAt(0);try{a=S(l.node,l.offset,s.offset,s.node)}catch(e){}a&&(!d&&t.state.focused?(e.collapse(l.node,l.offset),a.collapsed||(e.removeAllRanges(),e.addRange(a))):(e.removeAllRanges(),e.addRange(a)),u&&null==e.anchorNode?e.addRange(u):d&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},e.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},e.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},e.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},e.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;e=e.getRangeAt(0).commonAncestorContainer;return A(this.div,e)},e.prototype.focus=function(){\\\"nocursor\\\"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},e.prototype.blur=function(){this.div.blur()},e.prototype.getField=function(){return this.div},e.prototype.supportsTouch=function(){return!0},e.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Er(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},e.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},e.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e,t,n=this.getSelection(),r=this.cm;if(a&&o&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(n.anchorNode))return this.cm.triggerOnKeyDown({type:\\\"keydown\\\",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();this.composing||(this.rememberSelection(),e=Ll(r,n.anchorNode,n.anchorOffset),t=Ll(r,n.focusNode,n.focusOffset),e&&t&&Er(r,function(){Ei(r.doc,si(e,t),G),(e.bad||t.bad)&&(r.curOp.selectionChanged=!0)}))}},e.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t=this.cm,n=t.display,r=t.doc.sel.primary(),i=r.from(),r=r.to();if(0==i.ch&&i.line>t.firstLine()&&(i=rt(i.line-1,$e(t.doc,i.line-1).length)),r.ch==$e(t.doc,r.line).text.length&&r.line\u003Ct.lastLine()&&(r=rt(r.line+1,0)),i.line\u003Cn.viewFrom||r.line>n.viewTo-1)return!1;m=i.line==n.viewFrom||0==(m=er(t,i.line))?(e=Je(n.view[0].line),n.view[0].node):(e=Je(n.view[m].line),n.view[m-1].node.nextSibling);var o,r=er(t,r.line),r=r==n.view.length-1?(o=n.viewTo-1,n.lineDiv.lastChild):(o=Je(n.view[r+1].line)-1,n.view[r+1].node.previousSibling);if(!m)return!1;for(var l=t.doc.splitLines(function(l,e,t,s,a){var n=\\\"\\\",u=!1,c=l.doc.lineSeparator(),h=!1;function d(){u&&(n+=c,h&&(n+=c),u=h=!1)}function f(e){e&&(d(),n+=e)}for(;!function e(t){if(1==t.nodeType){var n=t.getAttribute(\\\"cm-text\\\");if(n)f(n);else if(n=t.getAttribute(\\\"cm-marker\\\"))(n=l.findMarks(rt(s,0),rt(a+1,0),(o=+n,function(e){return e.id==o}))).length&&(r=n[0].find(0))&&f(qe(l.doc,r.from,r.to).join(c));else if(\\\"false\\\"!=t.getAttribute(\\\"contenteditable\\\")){var r=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(/^br$/i.test(t.nodeName)||0!=t.textContent.length){r&&d();for(var i=0;i\u003Ct.childNodes.length;i++)e(t.childNodes[i]);/^(pre|p)$/i.test(t.nodeName)&&(h=!0),r&&(u=!0)}}}else 3==t.nodeType&&f(t.nodeValue.replace(/\\\\u200b/g,\\\"\\\").replace(/\\\\u00a0/g,\\\" \\\"));var o}(e),e!=t;)e=e.nextSibling,h=!1;return n}(t,m,r,e,o)),s=qe(t.doc,rt(e,0),rt(o,$e(t.doc,o).text.length));1\u003Cl.length&&1\u003Cs.length;)if(Y(l)==Y(s))l.pop(),s.pop(),o--;else{if(l[0]!=s[0])break;l.shift(),s.shift(),e++}for(var a=0,u=0,c=l[0],h=s[0],d=Math.min(c.length,h.length);a\u003Cd&&c.charCodeAt(a)==h.charCodeAt(a);)++a;for(var f=Y(l),p=Y(s),g=Math.min(f.length-(1==l.length?a:0),p.length-(1==s.length?a:0));u\u003Cg&&f.charCodeAt(f.length-u-1)==p.charCodeAt(p.length-u-1);)++u;if(1==l.length&&1==s.length&&e==i.line)for(;a&&a>i.ch&&f.charCodeAt(f.length-u-1)==p.charCodeAt(p.length-u-1);)a--,u++;l[l.length-1]=f.slice(0,f.length-u).replace(/^\\\\u200b+/,\\\"\\\"),l[0]=l[0].slice(a).replace(/\\\\u200b+$/,\\\"\\\");var m=rt(e,a),r=rt(o,s.length?Y(s).length-u:0);return 1\u003Cl.length||l[0]||it(m,r)?(qi(t.doc,l,m,r,\\\"+input\\\"),!0):void 0},e.prototype.ensurePolled=function(){this.forceCompositionEnd()},e.prototype.reset=function(){this.forceCompositionEnd()},e.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},e.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},e.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Er(this.cm,function(){return tr(e.cm)})},e.prototype.setUneditable=function(e){e.contentEditable=\\\"false\\\"},e.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pr(this.cm,pl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},e.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(\\\"nocursor\\\"!=e)},e.prototype.onContextMenu=function(){},e.prototype.resetPosition=function(){},e.prototype.needsContentAttribute=!0;var kl,Tl,Ml,Nl,Al,r=function(e){this.cm=e,this.prevInput=\\\"\\\",this.pollingFast=!1,this.polling=new I,this.hasSelection=!1,this.composing=null};function Ol(e,t,r,n){kl.defaults[e]=t,r&&(Tl[e]=n?function(e,t,n){n!=il&&r(e,t,n)}:r)}r.prototype.init=function(n){var e=this,r=this,i=this.cm;this.createField(n);var o=this.textarea;function t(e){if(!Ce(i,e)){if(i.somethingSelected())fl({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=vl(i);fl({lineWise:!0,text:t.text}),\\\"cut\\\"==e.type?i.setSelections(t.ranges,null,G):(r.prevInput=\\\"\\\",o.value=t.text.join(\\\"\\\\n\\\"),H(o))}\\\"cut\\\"==e.type&&(i.state.cutIncoming=+new Date)}}n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),s&&(o.style.width=\\\"0px\\\"),ye(o,\\\"input\\\",function(){w&&9\u003C=v&&e.hasSelection&&(e.hasSelection=null),r.poll()}),ye(o,\\\"paste\\\",function(e){Ce(i,e)||gl(e,i)||(i.state.pasteIncoming=+new Date,r.fastPoll())}),ye(o,\\\"cut\\\",t),ye(o,\\\"copy\\\",t),ye(n.scroller,\\\"paste\\\",function(e){if(!mn(n,e)&&!Ce(i,e)){if(!o.dispatchEvent)return i.state.pasteIncoming=+new Date,void r.focus();var t=new Event(\\\"paste\\\");t.clipboardData=e.clipboardData,o.dispatchEvent(t)}}),ye(n.lineSpace,\\\"selectstart\\\",function(e){mn(n,e)||Te(e)}),ye(o,\\\"compositionstart\\\",function(){var e=i.getCursor(\\\"from\\\");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor(\\\"to\\\"),{className:\\\"CodeMirror-composing\\\"})}}),ye(o,\\\"compositionend\\\",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},r.prototype.createField=function(e){this.wrapper=bl(),this.textarea=this.wrapper.firstChild},r.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute(\\\"aria-label\\\",e):this.textarea.removeAttribute(\\\"aria-label\\\")},r.prototype.prepareSelection=function(){var e,t=this.cm,n=t.display,r=t.doc,i=sr(t);return t.options.moveInputWithCursor&&(e=Bn(t,r.sel.primary().head,\\\"div\\\"),t=n.wrapper.getBoundingClientRect(),r=n.lineDiv.getBoundingClientRect(),i.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,e.top+r.top-t.top)),i.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,e.left+r.left-t.left))),i},r.prototype.showSelection=function(e){var t=this.cm.display;T(t.cursorDiv,e.cursors),T(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+\\\"px\\\",this.wrapper.style.left=e.teLeft+\\\"px\\\")},r.prototype.reset=function(e){var t,n;this.contextMenuPending||this.composing||((t=this.cm).somethingSelected()?(this.prevInput=\\\"\\\",n=t.getSelection(),this.textarea.value=n,t.state.focused&&H(this.textarea),w&&9\u003C=v&&(this.hasSelection=n)):e||(this.prevInput=this.textarea.value=\\\"\\\",w&&9\u003C=v&&(this.hasSelection=null)))},r.prototype.getField=function(){return this.textarea},r.prototype.supportsTouch=function(){return!1},r.prototype.focus=function(){if(\\\"nocursor\\\"!=this.cm.options.readOnly&&(!h||O()!=this.textarea))try{this.textarea.focus()}catch(e){}},r.prototype.blur=function(){this.textarea.blur()},r.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},r.prototype.receivedFocus=function(){this.slowPoll()},r.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},r.prototype.fastPoll=function(){var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))})},r.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(w&&9\u003C=v&&this.hasSelection===i||g&&/[\\\\uf700-\\\\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=\\\"\\\"),8666==o)return this.reset(),this.cm.execCommand(\\\"undo\\\")}for(var l=0,s=Math.min(r.length,i.length);l\u003Cs&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Er(t,function(){pl(t,i.slice(l),r.length-l,null,e.composing?\\\"*compose\\\":null),1e3\u003Ci.length||-1\u003Ci.indexOf(\\\"\\\\n\\\")?n.value=e.prevInput=\\\"\\\":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor(\\\"to\\\"),{className:\\\"CodeMirror-composing\\\"}))}),!0},r.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},r.prototype.onKeyPress=function(){w&&9\u003C=v&&(this.hasSelection=null),this.fastPoll()},r.prototype.onContextMenu=function(e){var n=this,r=n.cm,i=r.display,o=n.textarea;n.contextMenuPending&&n.contextMenuPending();var l,s,t,a,u=Jn(r,e),c=i.scroller.scrollTop;function h(){var e,t;null!=o.selectionStart&&(t=\\\"\\\"+((e=r.somethingSelected())?o.value:\\\"\\\"),o.value=\\\"⇚\\\",o.value=t,n.prevInput=e?\\\"\\\":\\\"\\\",o.selectionStart=1,o.selectionEnd=t.length,i.selForContextMenu=r.doc.sel)}function d(){var e,t;n.contextMenuPending==d&&(n.contextMenuPending=!1,n.wrapper.style.cssText=s,o.style.cssText=l,w&&v\u003C9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=c),null!=o.selectionStart&&((!w||w&&v\u003C9)&&h(),e=0,t=function(){i.selForContextMenu==r.doc.sel&&0==o.selectionStart&&0\u003Co.selectionEnd&&\\\"\\\"==n.prevInput?Pr(r,Vi)(r):e++\u003C10?i.detectingSelectAll=setTimeout(t,500):(i.selForContextMenu=null,i.input.reset())},i.detectingSelectAll=setTimeout(t,200)))}u&&!p&&(r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(u)&&Pr(r,Ei)(r.doc,si(u),G),l=o.style.cssText,s=n.wrapper.style.cssText,u=n.wrapper.offsetParent.getBoundingClientRect(),n.wrapper.style.cssText=\\\"position: static\\\",o.style.cssText=\\\"position: absolute; width: 30px; height: 30px;\\\\n top: \\\"+(e.clientY-u.top-5)+\\\"px; left: \\\"+(e.clientX-u.left-5)+\\\"px;\\\\n z-index: 1000; background: \\\"+(w?\\\"rgba(255, 255, 255, .05)\\\":\\\"transparent\\\")+\\\";\\\\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\\\",f&&(t=window.scrollY),i.input.focus(),f&&window.scrollTo(null,t),i.input.reset(),r.somethingSelected()||(o.value=n.prevInput=\\\" \\\"),n.contextMenuPending=d,i.selForContextMenu=r.doc.sel,clearTimeout(i.detectingSelectAll),w&&9\u003C=v&&h(),x?(Ae(e),a=function(){we(window,\\\"mouseup\\\",a),setTimeout(d,20)},ye(window,\\\"mouseup\\\",a)):setTimeout(d,50))},r.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=\\\"nocursor\\\"==e,this.textarea.readOnly=!!e},r.prototype.setUneditable=function(){},r.prototype.needsContentAttribute=!1,Tl=(kl=ul).optionHandlers,kl.defineOption=Ol,kl.Init=il,Ol(\\\"value\\\",\\\"\\\",function(e,t){return e.setValue(t)},!0),Ol(\\\"mode\\\",null,function(e,t){e.doc.modeOption=t,di(e)},!0),Ol(\\\"indentUnit\\\",2,di,!0),Ol(\\\"indentWithTabs\\\",!1),Ol(\\\"smartIndent\\\",!0),Ol(\\\"tabSize\\\",4,function(e){fi(e),Hn(e),tr(e)},!0),Ol(\\\"lineSeparator\\\",null,function(e,r){if(e.doc.lineSep=r){var i=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(r,t);if(-1==n)break;t=n+r.length,i.push(rt(o,n))}o++});for(var t=i.length-1;0\u003C=t;t--)qi(e.doc,r,i[t],rt(i[t].line,i[t].ch+r.length))}}),Ol(\\\"specialChars\\\",/[\\\\u0000-\\\\u001f\\\\u007f-\\\\u009f\\\\u00ad\\\\u061c\\\\u200b-\\\\u200c\\\\u200e\\\\u200f\\\\u2028\\\\u2029\\\\ufeff\\\\ufff9-\\\\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test(\\\"\\\\t\\\")?\\\"\\\":\\\"|\\\\t\\\"),\\\"g\\\"),n!=il&&e.refresh()}),Ol(\\\"specialCharPlaceholder\\\",Zt,function(e){return e.refresh()},!0),Ol(\\\"electricChars\\\",!0),Ol(\\\"inputStyle\\\",h?\\\"contenteditable\\\":\\\"textarea\\\",function(){throw new Error(\\\"inputStyle can not (yet) be changed in a running editor\\\")},!0),Ol(\\\"spellcheck\\\",!1,function(e,t){return e.getInputField().spellcheck=t},!0),Ol(\\\"autocorrect\\\",!1,function(e,t){return e.getInputField().autocorrect=t},!0),Ol(\\\"autocapitalize\\\",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),Ol(\\\"rtlMoveVisually\\\",!y),Ol(\\\"wholeLineUpdateBefore\\\",!0),Ol(\\\"theme\\\",\\\"default\\\",function(e){rl(e),Zr(e)},!0),Ol(\\\"keyMap\\\",\\\"default\\\",function(e,t,n){t=Do(t),n=n!=il&&Do(n);n&&n.detach&&n.detach(e,t),t.attach&&t.attach(e,n||null)}),Ol(\\\"extraKeys\\\",null),Ol(\\\"configureMouse\\\",null),Ol(\\\"lineWrapping\\\",!1,al,!0),Ol(\\\"gutters\\\",[],function(e,t){e.display.gutterSpecs=$r(t,e.options.lineNumbers),Zr(e)},!0),Ol(\\\"fixedGutter\\\",!0,function(e,t){e.display.gutters.style.left=t?qn(e.display)+\\\"px\\\":\\\"0\\\",e.refresh()},!0),Ol(\\\"coverGutterNextToScrollbar\\\",!1,function(e){return Nr(e)},!0),Ol(\\\"scrollbarStyle\\\",\\\"native\\\",function(e){Dr(e),Nr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),Ol(\\\"lineNumbers\\\",!1,function(e,t){e.display.gutterSpecs=$r(e.options.gutters,t),Zr(e)},!0),Ol(\\\"firstLineNumber\\\",1,Zr,!0),Ol(\\\"lineNumberFormatter\\\",function(e){return e},Zr,!0),Ol(\\\"showCursorWhenSelecting\\\",!1,lr,!0),Ol(\\\"resetSelectionOnContextMenu\\\",!0),Ol(\\\"lineWiseCopyCut\\\",!0),Ol(\\\"pasteLinesPerSelection\\\",!0),Ol(\\\"selectionsMayTouch\\\",!1),Ol(\\\"readOnly\\\",!1,function(e,t){\\\"nocursor\\\"==t&&(pr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),Ol(\\\"screenReaderLabel\\\",null,function(e,t){t=\\\"\\\"===t?null:t,e.display.input.screenReaderLabelChanged(t)}),Ol(\\\"disableInput\\\",!1,function(e,t){t||e.display.input.reset()},!0),Ol(\\\"dragDrop\\\",!0,sl),Ol(\\\"allowDropFileTypes\\\",null),Ol(\\\"cursorBlinkRate\\\",530),Ol(\\\"cursorScrollMargin\\\",0),Ol(\\\"cursorHeight\\\",1,lr,!0),Ol(\\\"singleCursorHeightPerLine\\\",!0,lr,!0),Ol(\\\"workTime\\\",100),Ol(\\\"workDelay\\\",100),Ol(\\\"flattenSpans\\\",!0,fi,!0),Ol(\\\"addModeClass\\\",!1,fi,!0),Ol(\\\"pollInterval\\\",100),Ol(\\\"undoDepth\\\",200,function(e,t){return e.doc.history.undoDepth=t}),Ol(\\\"historyEventDelay\\\",1250),Ol(\\\"viewportMargin\\\",10,function(e){return e.refresh()},!0),Ol(\\\"maxHighlightLength\\\",1e4,fi,!0),Ol(\\\"moveInputWithCursor\\\",!0,function(e,t){t||e.display.input.resetPosition()}),Ol(\\\"tabindex\\\",null,function(e,t){return e.display.input.getField().tabIndex=t||\\\"\\\"}),Ol(\\\"autofocus\\\",null),Ol(\\\"direction\\\",\\\"ltr\\\",function(e,t){return e.doc.setDirection(t)},!0),Ol(\\\"phrases\\\",null),Nl=(Ml=ul).optionHandlers,Al=Ml.helpers={},Ml.prototype={constructor:Ml,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&\\\"mode\\\"!=e||(n[e]=t,Nl.hasOwnProperty(e)&&Pr(this,Nl[e])(this,t,r),xe(this,\\\"optionChange\\\",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?\\\"push\\\":\\\"unshift\\\"](Do(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n\u003Ct.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ir(function(e,t){var n=e.token?e:Ml.getMode(this.options,e);if(n.startState)throw new Error(\\\"Overlays may not be stateful.\\\");!function(e,t,n){for(var r=0,i=n(t);r\u003Ce.length&&n(e[r])\u003C=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:n,modeSpec:e,opaque:t&&t.opaque,priority:t&&t.priority||0},function(e){return e.priority}),this.state.modeGen++,tr(this)}),removeOverlay:Ir(function(e){for(var t=this.state.overlays,n=0;n\u003Ct.length;++n){var r=t[n].modeSpec;if(r==e||\\\"string\\\"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void tr(this)}}),indentLine:Ir(function(e,t,n){\\\"string\\\"!=typeof t&&\\\"number\\\"!=typeof t&&(t=null==t?this.options.smartIndent?\\\"smart\\\":\\\"prev\\\":t?\\\"add\\\":\\\"subtract\\\"),tt(this.doc,e)&&hl(this,e,t,n)}),indentSelection:Ir(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r\u003Ct.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(hl(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&wr(this));else{for(var o=i.from(),l=i.to(),i=Math.max(n,o.line),n=Math.min(this.lastLine(),l.line-(l.ch?0:1))+1,s=i;s\u003Cn;++s)hl(this,s,e);i=this.doc.sel.ranges;0==o.ch&&t.length==i.length&&0\u003Ci[r].from().ch&&Wi(this.doc,r,new oi(o,i[r].to()),G)}}}),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,rt(e),t,!0)},getTokenTypeAt:function(e){e=ct(this.doc,e);var t,n=gt(this,$e(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var l=r+i>>1;if((l?n[2*l-1]:0)>=o)i=l;else{if(!(n[2*l+1]\u003Co)){t=n[2*l+2];break}r=1+l}}e=t?t.indexOf(\\\"overlay \\\"):-1;return e\u003C0?t:0==e?null:t.slice(0,e-1)},getModeAt:function(e){var t=this.doc.mode;return t.innerMode?Ml.innerMode(t,this.getTokenAt(e).state).mode:t},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!Al.hasOwnProperty(t))return n;var r=Al[t],i=this.getModeAt(e);if(\\\"string\\\"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o\u003Ci[t].length;o++){var l=r[i[t][o]];l&&n.push(l)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(var s=0;s\u003Cr._global.length;s++){var a=r._global[s];a.pred(i,this)&&-1==R(n,a.val)&&n.push(a.val)}return n},getStateAfter:function(e,t){var n=this.doc;return mt(this,(e=ut(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary(),n=null==e?n.head:\\\"object\\\"==typeof e?ct(this.doc,e):e?n.from():n.to();return Bn(this,n,t||\\\"page\\\")},charCoords:function(e,t){return zn(this,ct(this.doc,e),t||\\\"page\\\")},coordsChar:function(e,t){return Vn(this,(e=Rn(this,e,t||\\\"page\\\")).left,e.top)},lineAtHeight:function(e,t){return e=Rn(this,{top:e,left:0},t||\\\"page\\\").top,et(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1,e=\\\"number\\\"==typeof e?(r=this.doc.first+this.doc.size-1,e\u003Cthis.doc.first?e=this.doc.first:r\u003Ce&&(e=r,i=!0),$e(this.doc,e)):e;return In(this,e,{top:0,left:0},t||\\\"page\\\",n||i).top+(i?this.doc.height-Vt(e):0)},defaultTextHeight:function(){return Yn(this.display)},defaultCharWidth:function(){return _n(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,l,s=this.display,a=(e=Bn(this,ct(this.doc,e))).bottom,u=e.left;t.style.position=\\\"absolute\\\",t.setAttribute(\\\"cm-ignore-events\\\",\\\"true\\\"),this.display.input.setUneditable(t),s.sizer.appendChild(t),\\\"over\\\"==r?a=e.top:\\\"above\\\"!=r&&\\\"near\\\"!=r||(o=Math.max(s.wrapper.clientHeight,this.doc.height),l=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth),(\\\"above\\\"==r||e.bottom+t.offsetHeight>o)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight\u003C=o&&(a=e.bottom),u+t.offsetWidth>l&&(u=l-t.offsetWidth)),t.style.top=a+\\\"px\\\",t.style.left=t.style.right=\\\"\\\",\\\"right\\\"==i?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right=\\\"0px\\\"):(\\\"left\\\"==i?u=0:\\\"middle\\\"==i&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+\\\"px\\\"),n&&(n=this,t={left:u,top:a,right:u+t.offsetWidth,bottom:a+t.offsetHeight},null!=(t=yr(n,t)).scrollTop&&Lr(n,t.scrollTop),null!=t.scrollLeft&&Tr(n,t.scrollLeft))},triggerOnKeyDown:Ir(Xo),triggerOnKeyPress:Ir(_o),triggerOnKeyUp:Yo,triggerOnMouseDown:Ir(Qo),execCommand:function(e){if(Io.hasOwnProperty(e))return Io[e].call(null,this)},triggerElectric:Ir(function(e){ml(this,e)}),findPosH:function(e,t,n,r){var i=1;t\u003C0&&(i=-1,t=-t);for(var o=ct(this.doc,e),l=0;l\u003Ct&&!(o=wl(this.doc,o,i,n,r)).hitSide;++l);return o},moveH:Ir(function(t,n){var r=this;this.extendSelectionsBy(function(e){return r.display.shift||r.doc.extend||e.empty()?wl(r.doc,e.head,t,n,r.options.rtlMoveVisually):t\u003C0?e.from():e.to()},V)}),deleteH:Ir(function(n,r){var e=this.doc.sel,i=this.doc;e.somethingSelected()?i.replaceSelection(\\\"\\\",null,\\\"+delete\\\"):Wo(this,function(e){var t=wl(i,e.head,n,r,!1);return n\u003C0?{from:t,to:e.head}:{from:e.head,to:t}})}),findPosV:function(e,t,n,r){var i=1,o=r;t\u003C0&&(i=-1,t=-t);for(var l=ct(this.doc,e),s=0;s\u003Ct;++s){var a=Bn(this,l,\\\"div\\\");if(null==o?o=a.left:a.left=o,(l=xl(this,a,i,n)).hitSide)break}return l},moveV:Ir(function(r,i){var o=this,l=this.doc,s=[],a=!this.display.shift&&!l.extend&&l.sel.somethingSelected();if(l.extendSelectionsBy(function(e){if(a)return r\u003C0?e.from():e.to();var t=Bn(o,e.head,\\\"div\\\");null!=e.goalColumn&&(t.left=e.goalColumn),s.push(t.left);var n=xl(o,t,r,i);return\\\"page\\\"==i&&e==l.sel.primary()&&br(o,zn(o,n,\\\"div\\\").top-t.top),n},V),s.length)for(var e=0;e\u003Cl.sel.ranges.length;e++)l.sel.ranges[e].goalColumn=s[e]}),findWordAt:function(e){var t=$e(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,\\\"wordChars\\\");\\\"before\\\"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),l=J(o,i)?function(e){return J(e,i)}:/\\\\s/.test(o)?function(e){return/\\\\s/.test(e)}:function(e){return!/\\\\s/.test(e)&&!J(e)};0\u003Cn&&l(t.charAt(n-1));)--n;for(;r\u003Ct.length&&l(t.charAt(r));)++r}return new oi(rt(e.line,n),rt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||(((this.state.overwrite=!this.state.overwrite)?D:L)(this.display.cursorDiv,\\\"CodeMirror-overwrite\\\"),xe(this,\\\"overwriteToggle\\\",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==O()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ir(function(e,t){xr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-wn(this)-this.display.barHeight,width:e.scrollWidth-wn(this)-this.display.barWidth,clientHeight:Cn(this),clientWidth:xn(this)}},scrollIntoView:Ir(function(e,t){var n;null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):\\\"number\\\"==typeof e?e={from:rt(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?(n=e,Cr(t=this),t.curOp.scrollToPos=n):Sr(this,e.from,e.to,e.margin)}),setSize:Ir(function(e,t){function n(e){return\\\"number\\\"==typeof e||/^\\\\d+$/.test(String(e))?e+\\\"px\\\":e}var r=this;null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&Wn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t\u003Ce.widgets.length;t++)if(e.widgets[t].noHScroll){nr(r,i,\\\"widget\\\");break}++i}),this.curOp.forceUpdate=!0,xe(this,\\\"refresh\\\",this)}),operation:function(e){return Er(this,e)},startOperation:function(){return Hr(this)},endOperation:function(){return Fr(this)},refresh:Ir(function(){var e=this.display.cachedTextHeight;tr(this),this.curOp.forceUpdate=!0,Hn(this),xr(this,this.doc.scrollLeft,this.doc.scrollTop),jr(this.display),(null==e||.5\u003CMath.abs(e-Yn(this.display))||this.options.lineWrapping)&&Qn(this),xe(this,\\\"refresh\\\",this)}),swapDoc:Ir(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vi(this,e),Hn(this),this.display.input.reset(),xr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,\\\"swapDoc\\\",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(Ml),Ml.registerHelper=function(e,t,n){Al.hasOwnProperty(e)||(Al[e]=Ml[e]={_global:[]}),Al[e][t]=n},Ml.registerGlobalHelper=function(e,t,n,r){Ml.registerHelper(e,t,r),Al[e]._global.push({pred:n,val:r})};var Dl,Wl,Hl=\\\"iter insert remove copy getEditor constructor\\\".split(\\\" \\\");for(Dl in ho.prototype)ho.prototype.hasOwnProperty(Dl)&&R(Hl,Dl)\u003C0&&(ul.prototype[Dl]=function(e){return function(){return e.apply(this.doc,arguments)}}(ho.prototype[Dl]));return ke(ho),ul.inputStyles={textarea:r,contenteditable:e},ul.defineMode=function(e){ul.defaults.mode||\\\"null\\\"==e||(ul.defaults.mode=e),function(e,t){2\u003Carguments.length&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ze[e]=t}.apply(this,arguments)},ul.defineMIME=function(e,t){Be[e]=t},ul.defineMode(\\\"null\\\",function(){return{token:function(e){return e.skipToEnd()}}}),ul.defineMIME(\\\"text/plain\\\",\\\"null\\\"),ul.defineExtension=function(e,t){ul.prototype[e]=t},ul.defineDocExtension=function(e,t){ho.prototype[e]=t},ul.fromTextArea=function(t,n){var e;function r(){t.value=s.getValue()}if(n=n?E(n):{},n.value=t.value,!n.tabindex&&t.tabIndex&&(n.tabindex=t.tabIndex),!n.placeholder&&t.placeholder&&(n.placeholder=t.placeholder),null==n.autofocus&&(e=O(),n.autofocus=e==t||null!=t.getAttribute(\\\"autofocus\\\")&&e==document.body),t.form&&(ye(t.form,\\\"submit\\\",r),!n.leaveSubmitMethodAlone)){var i=t.form,o=i.submit;try{var l=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=l}}catch(e){}}n.finishInit=function(e){e.save=r,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,r(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display=\\\"\\\",t.form&&(we(t.form,\\\"submit\\\",r),n.leaveSubmitMethodAlone||\\\"function\\\"!=typeof t.form.submit||(t.form.submit=o))}},t.style.display=\\\"none\\\";var s=ul(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},n);return s},(Wl=ul).off=we,Wl.on=ye,Wl.wheelEventPixels=ni,Wl.Doc=ho,Wl.splitLines=Ee,Wl.countColumn=P,Wl.findColumn=K,Wl.isWordChar=Q,Wl.Pass=B,Wl.signal=xe,Wl.Line=Xt,Wl.changeEnd=ai,Wl.scrollbarModel=Or,Wl.Pos=rt,Wl.cmpPos=it,Wl.modes=ze,Wl.mimeModes=Be,Wl.resolveMode=Ge,Wl.getMode=Ue,Wl.modeExtensions=Ve,Wl.extendMode=Ke,Wl.copyState=je,Wl.startState=Ye,Wl.innerMode=Xe,Wl.commands=Io,Wl.keyMap=Lo,Wl.keyName=Oo,Wl.isModifierKey=No,Wl.lookupKey=Mo,Wl.normalizeKeyMap=To,Wl.StringStream=_e,Wl.SharedTextMarker=ao,Wl.TextMarker=lo,Wl.LineWidget=ro,Wl.e_preventDefault=Te,Wl.e_stopPropagation=Me,Wl.e_stop=Ae,Wl.addClass=D,Wl.contains=A,Wl.rmClass=L,Wl.keyNames=wo,ul.version=\\\"5.58.3\\\",ul});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/lib/codemirror.js\",\"module-type\":\"library\"},\"$:/plugins/tiddlywiki/codemirror/lib/codemirror.css\":{\"text\":\".CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line > span::selection,.CodeMirror-line > span > span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line > span::-moz-selection,.CodeMirror-line > span > span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}\\n\",\"type\":\"text/vnd.tiddlywiki\",\"title\":\"$:/plugins/tiddlywiki/codemirror/lib/codemirror.css\",\"tags\":\"[[$:/tags/Stylesheet]]\"},\"$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.css\":{\"text\":\".CodeMirror-dialog {\\n position: absolute;\\n left: 0; right: 0;\\n background: inherit;\\n z-index: 15;\\n padding: .1em .8em;\\n overflow: hidden;\\n color: inherit;\\n}\\n\\n.CodeMirror-dialog-top {\\n border-bottom: 1px solid #eee;\\n top: 0;\\n}\\n\\n.CodeMirror-dialog-bottom {\\n border-top: 1px solid #eee;\\n bottom: 0;\\n}\\n\\n.CodeMirror-dialog input {\\n border: none;\\n outline: none;\\n background: transparent;\\n width: 20em;\\n color: inherit;\\n font-family: monospace;\\n}\\n\\n.CodeMirror-dialog button {\\n font-size: 70%;\\n}\\n\",\"type\":\"text/css\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.css\",\"tags\":\"[[$:/tags/Stylesheet]]\"},\"$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.js\":{\"text\":\"!function(e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?e(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],e):e(CodeMirror)}(function(s){function f(e,o,n){var t=e.getWrapperElement(),i=t.appendChild(document.createElement(\\\"div\\\"));return i.className=n?\\\"CodeMirror-dialog CodeMirror-dialog-bottom\\\":\\\"CodeMirror-dialog CodeMirror-dialog-top\\\",\\\"string\\\"==typeof o?i.innerHTML=o:i.appendChild(o),s.addClass(t,\\\"dialog-opened\\\"),i}function p(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}s.defineExtension(\\\"openDialog\\\",function(e,o,n){n=n||{},p(this,null);var t=f(this,e,n.bottom),i=!1,r=this;function u(e){if(\\\"string\\\"==typeof e)a.value=e;else{if(i)return;i=!0,s.rmClass(t.parentNode,\\\"dialog-opened\\\"),t.parentNode.removeChild(t),r.focus(),n.onClose&&n.onClose(t)}}var l,a=t.getElementsByTagName(\\\"input\\\")[0];return a?(a.focus(),n.value&&(a.value=n.value,!1!==n.selectValueOnOpen&&a.select()),n.onInput&&s.on(a,\\\"input\\\",function(e){n.onInput(e,a.value,u)}),n.onKeyUp&&s.on(a,\\\"keyup\\\",function(e){n.onKeyUp(e,a.value,u)}),s.on(a,\\\"keydown\\\",function(e){n&&n.onKeyDown&&n.onKeyDown(e,a.value,u)||((27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(a.blur(),s.e_stop(e),u()),13==e.keyCode&&o(a.value,e))}),!1!==n.closeOnBlur&&s.on(t,\\\"focusout\\\",function(e){null!==e.relatedTarget&&u()})):(l=t.getElementsByTagName(\\\"button\\\")[0])&&(s.on(l,\\\"click\\\",function(){u(),r.focus()}),!1!==n.closeOnBlur&&s.on(l,\\\"blur\\\",u),l.focus()),u}),s.defineExtension(\\\"openConfirm\\\",function(e,o,n){p(this,null);var t=f(this,e,n&&n.bottom),i=t.getElementsByTagName(\\\"button\\\"),r=!1,u=this,l=1;function a(){r||(r=!0,s.rmClass(t.parentNode,\\\"dialog-opened\\\"),t.parentNode.removeChild(t),u.focus())}i[0].focus();for(var c=0;c\u003Ci.length;++c){var d=i[c];!function(o){s.on(d,\\\"click\\\",function(e){s.e_preventDefault(e),a(),o&&o(u)})}(o[c]),s.on(d,\\\"blur\\\",function(){--l,setTimeout(function(){l\u003C=0&&a()},200)}),s.on(d,\\\"focus\\\",function(){++l})}}),s.defineExtension(\\\"openNotification\\\",function(e,o){p(this,u);var n,t=f(this,e,o&&o.bottom),i=!1,r=o&&void 0!==o.duration?o.duration:5e3;function u(){i||(i=!0,clearTimeout(n),s.rmClass(t.parentNode,\\\"dialog-opened\\\"),t.parentNode.removeChild(t))}return s.on(t,\\\"click\\\",function(e){s.e_preventDefault(e),u()}),r&&(n=setTimeout(u,r)),u})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/selection/activeline.js\":{\"text\":\"!function(e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?e(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],e):e(CodeMirror)}(function(r){\\\"use strict\\\";var s=\\\"CodeMirror-activeline\\\",c=\\\"CodeMirror-activeline-background\\\",l=\\\"CodeMirror-activeline-gutter\\\";function f(e){for(var t=0;t\u003Ce.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],\\\"wrap\\\",s),e.removeLineClass(e.state.activeLines[t],\\\"background\\\",c),e.removeLineClass(e.state.activeLines[t],\\\"gutter\\\",l)}function o(t,e){for(var n=[],i=0;i\u003Ce.length;i++){var r,o=e[i],a=t.getOption(\\\"styleActiveLine\\\");(\\\"object\\\"==typeof a&&a.nonEmpty?o.anchor.line==o.head.line:o.empty())&&(r=t.getLineHandleVisualStart(o.head.line),n[n.length-1]!=r&&n.push(r))}!function(e,t){if(e.length==t.length){for(var n=0;n\u003Ce.length;n++)if(e[n]!=t[n])return;return 1}}(t.state.activeLines,n)&&t.operation(function(){f(t);for(var e=0;e\u003Cn.length;e++)t.addLineClass(n[e],\\\"wrap\\\",s),t.addLineClass(n[e],\\\"background\\\",c),t.addLineClass(n[e],\\\"gutter\\\",l);t.state.activeLines=n})}function a(e,t){o(e,t.ranges)}r.defineOption(\\\"styleActiveLine\\\",!1,function(e,t,n){var i=n!=r.Init&&n;t!=i&&(i&&(e.off(\\\"beforeSelectionChange\\\",a),f(e),delete e.state.activeLines),t&&(e.state.activeLines=[],o(e,e.listSelections()),e.on(\\\"beforeSelectionChange\\\",a)))})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/selection/activeline.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/mode/tw-meta.js\":{\"text\":\"!function(e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?e(require(\\\"../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../lib/codemirror\\\"],e):e(CodeMirror)}(function(e){\\\"use strict\\\";e.modeInfo=[{name:\\\"CMake\\\",mime:\\\"text/x-cmake\\\",mode:\\\"cmake\\\",ext:[\\\"cmake\\\",\\\"cmake.in\\\"],file:/^CMakeLists.txt$/},{name:\\\"Cython\\\",mime:\\\"text/x-cython\\\",mode:\\\"python\\\",ext:[\\\"pyx\\\",\\\"pxd\\\",\\\"pxi\\\"]},{name:\\\"CSS\\\",mime:\\\"text/css\\\",mode:\\\"css\\\",ext:[\\\"css\\\"]},{name:\\\"diff\\\",mime:\\\"text/x-diff\\\",mode:\\\"diff\\\",ext:[\\\"diff\\\",\\\"patch\\\"]},{name:\\\"Embedded Javascript\\\",mime:\\\"application/x-ejs\\\",mode:\\\"htmlembedded\\\",ext:[\\\"ejs\\\"]},{name:\\\"Embedded Ruby\\\",mime:\\\"application/x-erb\\\",mode:\\\"htmlembedded\\\",ext:[\\\"erb\\\"]},{name:\\\"Erlang\\\",mime:\\\"text/x-erlang\\\",mode:\\\"erlang\\\",ext:[\\\"erl\\\"]},{name:\\\"GitHub Flavored Markdown\\\",mime:\\\"text/x-gfm\\\",mode:\\\"gfm\\\",file:/^(readme|contributing|history).md$/i},{name:\\\"Go\\\",mime:\\\"text/x-go\\\",mode:\\\"go\\\",ext:[\\\"go\\\"]},{name:\\\"ASP.NET\\\",mime:\\\"application/x-aspx\\\",mode:\\\"htmlembedded\\\",ext:[\\\"aspx\\\"],alias:[\\\"asp\\\",\\\"aspx\\\"]},{name:\\\"HTML\\\",mime:\\\"text/html\\\",mode:\\\"htmlmixed\\\",ext:[\\\"html\\\",\\\"htm\\\",\\\"handlebars\\\",\\\"hbs\\\"],alias:[\\\"xhtml\\\"]},{name:\\\"HTTP\\\",mime:\\\"message/http\\\",mode:\\\"http\\\"},{name:\\\"JavaScript\\\",mimes:[\\\"text/javascript\\\",\\\"text/ecmascript\\\",\\\"application/javascript\\\",\\\"application/x-javascript\\\",\\\"application/ecmascript\\\"],mode:\\\"javascript\\\",ext:[\\\"js\\\"],alias:[\\\"ecmascript\\\",\\\"js\\\",\\\"node\\\"]},{name:\\\"JSON\\\",mimes:[\\\"application/json\\\",\\\"application/x-json\\\"],mode:\\\"javascript\\\",ext:[\\\"json\\\",\\\"map\\\"],alias:[\\\"json5\\\"]},{name:\\\"JSON-LD\\\",mime:\\\"application/ld+json\\\",mode:\\\"javascript\\\",ext:[\\\"jsonld\\\"],alias:[\\\"jsonld\\\"]},{name:\\\"Lua\\\",mime:\\\"text/x-lua\\\",mode:\\\"lua\\\",ext:[\\\"lua\\\"]},{name:\\\"Markdown\\\",mime:\\\"text/x-markdown\\\",mode:\\\"markdown\\\",ext:[\\\"markdown\\\",\\\"md\\\",\\\"mkd\\\"]},{name:\\\"MySQL\\\",mime:\\\"text/x-mysql\\\",mode:\\\"sql\\\"},{name:\\\"Plain Text\\\",mime:\\\"text/plain\\\",mode:\\\"null\\\",ext:[\\\"txt\\\",\\\"text\\\",\\\"conf\\\",\\\"def\\\",\\\"list\\\",\\\"log\\\"]},{name:\\\"Python\\\",mime:\\\"text/x-python\\\",mode:\\\"python\\\",ext:[\\\"BUILD\\\",\\\"bzl\\\",\\\"py\\\",\\\"pyw\\\"],file:/^(BUCK|BUILD)$/},{name:\\\"SCSS\\\",mime:\\\"text/x-scss\\\",mode:\\\"css\\\",ext:[\\\"scss\\\"]},{name:\\\"LaTeX\\\",mime:\\\"text/x-latex\\\",mode:\\\"stex\\\",ext:[\\\"text\\\",\\\"ltx\\\",\\\"tex\\\"],alias:[\\\"tex\\\"]},{name:\\\"TiddlyWiki \\\",mime:\\\"text/x-tiddlywiki\\\",mode:\\\"tiddlywiki\\\"}];for(var t=0;t\u003Ce.modeInfo.length;t++){var m=e.modeInfo[t];m.mimes&&(m.mime=m.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var m=0;m\u003Ce.modeInfo.length;m++){var i=e.modeInfo[m];if(i.mime==t)return i;if(i.mimes)for(var a=0;a\u003Ci.mimes.length;a++)if(i.mimes[a]==t)return i}return/\\\\+xml$/.test(t)?e.findModeByMIME(\\\"application/xml\\\"):/\\\\+json$/.test(t)?e.findModeByMIME(\\\"application/json\\\"):void 0},e.findModeByExtension=function(t){for(var m=0;m\u003Ce.modeInfo.length;m++){var i=e.modeInfo[m];if(i.ext)for(var a=0;a\u003Ci.ext.length;a++)if(i.ext[a]==t)return i}},e.findModeByFileName=function(t){for(var m=0;m\u003Ce.modeInfo.length;m++){var i=e.modeInfo[m];if(i.file&&i.file.test(t))return i}var a=t.lastIndexOf(\\\".\\\"),o=a>-1&&t.substring(a+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var m=0;m\u003Ce.modeInfo.length;m++){var i=e.modeInfo[m];if(i.name.toLowerCase()==t)return i;if(i.alias)for(var a=0;a\u003Ci.alias.length;a++)if(i.alias[a].toLowerCase()==t)return i}}});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/mode/tw-meta.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/keyboard\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/keyboard\",\"text\":\"\\n!!Default keyboard shortcuts\\n\\n!!!Basic shortcuts\\n\\n|Shortcut |Function |h\\n|Left |goCharLeft |\\n|Right |goCharRight |\\n|Up |goLineUp |\\n|Down |goLineDown |\\n|End |goLineEnd |\\n|Home |goLineStartSmart |\\n|~PageUp |goPageUp |\\n|~PageDown |goPageDown |\\n|Delete |delCharAfter |\\n|Backspace |delCharBefore |\\n|Shift-Backspace |delCharBefore |\\n|Tab |defaultTab |\\n|Shift-Tab |indentAuto |\\n|Enter |newlineAndIndent |\\n|Insert |toggleOverwrite |\\n|Ctrl-Esc |singleSelection |\\n\\n\\n!!!Shortcuts on Windows and Linux\\n\\n|Shortcut |Function |h\\n|Ctrl-A |selectAll |\\n|Ctrl-D |deleteLine |\\n|Ctrl-Z |undo |\\n|Shift-Ctrl-Z |redo |\\n|Ctrl-Y |redo |\\n|Ctrl-Home |goDocStart |\\n|Ctrl-End |goDocEnd |\\n|Ctrl-Up |goLineUp |\\n|Ctrl-Down |goLineDown |\\n|Ctrl-Left |goGroupLeft |\\n|Ctrl-Right |goGroupRight |\\n|Alt-Left |goLineStart |\\n|Alt-Right |goLineEnd |\\n|Ctrl-Backspace |delGroupBefore |\\n|Ctrl-Delete |delGroupAfter |\\n|Ctrl-F |find |\\n|Ctrl-G |findNext |\\n|Shift-Ctrl-G |findPrev |\\n|Shift-Ctrl-F |replace |\\n|Shift-Ctrl-R |replaceAll |\\n|Ctrl-[ |indentLess |\\n|Ctrl-] |indentMore |\\n|Alt-U |undoSelection |\\n|Shift-Ctrl-U |redoSelection |\\n|Shift-Alt-U |redoSelection |\\n\\n\\n!!!Shortcuts on ~MacOs\\n\\n|Shortcut |Function |h\\n|Cmd-A |selectAll |\\n|Cmd-D |deleteLine |\\n|Cmd-Z |undo |\\n|Shift-Cmd-Z |redo |\\n|Cmd-Y |redo |\\n|Cmd-Home |goDocStart |\\n|Cmd-Up |goDocStart |\\n|Cmd-End |goDocEnd |\\n|Cmd-Down |goDocEnd |\\n|Alt-Left |goGroupLeft |\\n|Alt-Right |goGroupRight |\\n|Cmd-Left |goLineLeft |\\n|Cmd-Right |goLineRight |\\n|Alt-Backspace |delGroupBefore |\\n|Ctrl-Alt-Backspace |delGroupAfter |\\n|Alt-Delete |delGroupAfter |\\n|Cmd-F |find |\\n|Cmd-G |findNext |\\n|Shift-Cmd-G |findPrev |\\n|Cmd-Alt-F |replace |\\n|Shift-Cmd-Alt-F |replaceAll |\\n|Cmd-[ |indentLess |\\n|Cmd-] |indentMore |\\n|Cmd-Backspace |delWrappedLineLeft |\\n|Cmd-Delete |delWrappedLineRight |\\n|Alt-U |undoSelection |\\n|Shift-Alt-U |redoSelection |\\n|Ctrl-Up |goDocStart |\\n|Ctrl-Down |goDocEnd |\\n|Ctrl-F |goCharRight |\\n|Ctrl-B |goCharLeft |\\n|Ctrl-P |goLineUp |\\n|Ctrl-N |goLineDown |\\n|Alt-F |goWordRight |\\n|Alt-B |goWordLeft |\\n|Ctrl-A |goLineStart |\\n|Ctrl-E |goLineEnd |\\n|Ctrl-V |goPageDown |\\n|Shift-Ctrl-V |goPageUp |\\n|Ctrl-D |delCharAfter |\\n|Ctrl-H |delCharBefore |\\n|Alt-D |delWordAfter |\\n|Alt-Backspace |delWordBefore |\\n|Ctrl-K |killLine |\\n|Alt-T |transposeChars |\\n|Ctrl-O |openLine |\\n\\n\\n\"},\"$:/plugins/tiddlywiki/codemirror/license\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/license\",\"text\":\"\\\"\\\"\\\"\\n~CodeMirror, copyright (c) by Marijn Haverbeke and others\\nDistributed under an MIT license: http://codemirror.net/LICENSE\\n\\nCopyright (c) 2004-2007, Jeremy Ruston\\nCopyright (c) 2007-2018, UnaMesa Association\\nDistributed under an BSD license: https://tiddlywiki.com/#License\\n\\\"\\\"\\\"\\n\"},\"$:/plugins/tiddlywiki/codemirror/readme\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/readme\",\"text\":\"This plugin provides an enhanced text editor component based on [[CodeMirror|http://codemirror.net]]. The basic configuration is designed to be as lightweight as possible and is just around 235kb of size. Additional features can be installed with ~CodeMirror ~AddOns from the plugin library.\\n\\n[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/codemirror]]\\n\\nBased on ~CodeMirror version 5.58.3\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/cursorBlinkRate\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/cursorBlinkRate\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/cursorBlinkRate/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/cursorBlinkRate/\\n\\n|\u003C$link to=\\\"$:/config/codemirror/cursorBlinkRate\\\">\u003C\u003Clingo hint>>\u003C/$link> |\u003C$edit-text tiddler=\\\"$:/config/codemirror/cursorBlinkRate\\\" default=\\\"\\\" placeholder=\\\"cursorBlinkRate\\\" tag=\\\"input\\\"/> |\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/editorFont\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/editorFont\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/editorFont/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/ThemeTweaks/\\n\\n|\u003C$link to=\\\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\\\">\u003C\u003Clingo Settings/EditorFontFamily>>\u003C/$link> |\u003C$edit-text tiddler=\\\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\\\" default=\\\"\\\" tag=\\\"input\\\"/> | |\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/indentUnit\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/indentUnit\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/indentUnit/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/indentUnit/\\n\\n|\u003C$link to=\\\"$:/config/codemirror/indentUnit\\\">\u003C\u003Clingo hint>>\u003C/$link> |\u003C$edit-text tiddler=\\\"$:/config/codemirror/indentUnit\\\" default=\\\"\\\" placeholder=\\\"indentUnit\\\" tag=\\\"input\\\"/> |\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/indentWithTabs\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/indentWithTabs\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/indentWithTabs/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/indentWithTabs/\\n\u003C\u003Clingo hint>>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/codemirror/indentWithTabs\\\" field=\\\"text\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"true\\\"> \u003C$link to=\\\"$:/config/codemirror/indentWithTabs\\\">\u003C\u003Clingo info>>\u003C/$link> \u003C/$checkbox>\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/keyMap\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/keyMap\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/keyMap/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/keyMap\\n\\n\u003C$link to=\\\"$:/config/codemirror/keyMap\\\">\u003C\u003Clingo hint>>\u003C/$link>\\n\\n\u003C$select tiddler=\\\"$:/config/codemirror/keyMap\\\" default=\\\"default\\\">\\n\u003Coption value=\\\"default\\\">default\u003C/option>\\n\u003C$list filter=\\\"[all[shadows+tiddlers]module-type[codemirror-keymap]!has[draft.of]get[text]]\\\">\\n\u003Coption value=\u003C\u003CcurrentTiddler>>>\u003C$transclude>\u003C$text text=\u003C\u003CcurrentTiddler>>/>\u003C/$transclude>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/lineNumbers\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/lineNumbers\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/lineNumbers/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/lineNumbers/\\n\u003C\u003Clingo hint>>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/codemirror/lineNumbers\\\" field=\\\"text\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"false\\\"> \u003C$link to=\\\"$:/config/codemirror/lineNumbers\\\">\u003C\u003Clingo info>>\u003C/$link> \u003C/$checkbox>\\n\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/lineWrapping\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/lineWrapping\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/lineWrapping/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/lineWrapping/\\n\u003C\u003Clingo hint>>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/codemirror/lineWrapping\\\" field=\\\"text\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"true\\\"> \u003C$link to=\\\"$:/config/codemirror/lineWrapping\\\">\u003C\u003Clingo info>>\u003C/$link> \u003C/$checkbox>\\n\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/showCursorWhenSelecting\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/showCursorWhenSelecting\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/showCursorWhenSelecting/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/showCursorWhenSelecting/\\n\u003C\u003Clingo hint>>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/codemirror/showCursorWhenSelecting\\\" field=\\\"text\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"true\\\"> \u003C$link to=\\\"$:/config/codemirror/showCursorWhenSelecting\\\">\u003C\u003Clingo info>>\u003C/$link> \u003C/$checkbox>\\n\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/smartIndent\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/smartIndent\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/smartIndent/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/smartIndent/\\n\u003C\u003Clingo hint>>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/codemirror/smartIndent\\\" field=\\\"text\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"true\\\"> \u003C$link to=\\\"$:/config/codemirror/smartIndent\\\">\u003C\u003Clingo info>>\u003C/$link> \u003C/$checkbox>\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/styleActiveLine\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/styleActiveLine\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/styleActiveLine/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/styleActiveLine/\\n\u003C\u003Clingo hint>>\\n\\n\u003C$checkbox tiddler=\\\"$:/config/codemirror/styleActiveLine\\\" field=\\\"text\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"false\\\"> \u003C$link to=\\\"$:/config/codemirror/styleActiveLine\\\">\u003C\u003Clingo info>>\u003C/$link> \u003C/$checkbox>\\n\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/tabSize\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/tabSize\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/tabSize/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/tabSize/\\n\\n|\u003C$link to=\\\"$:/config/codemirror/tabSize\\\">\u003C\u003Clingo hint>>\u003C/$link> |\u003C$edit-text tiddler=\\\"$:/config/codemirror/tabSize\\\" default=\\\"\\\" placeholder=\\\"tabSize\\\" tag=\\\"input\\\"/> |\\n\"},\"$:/core/ui/ControlPanel/Settings/codemirror/theme\":{\"title\":\"$:/core/ui/ControlPanel/Settings/codemirror/theme\",\"tags\":\"$:/tags/ControlPanel/Settings/CodeMirror\",\"caption\":\"{{$:/language/codemirror/theme/hint}}\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/\\n\\n\u003C$link to=\\\"$:/config/codemirror/theme\\\">\u003C\u003Clingo hint>>\u003C/$link>\\n\\n\u003C$select tiddler=\\\"$:/config/codemirror/theme\\\" default=\\\"default\\\">\\n\u003Coption value=\\\"default\\\">default\u003C/option>\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/Stylesheet]module-type[codemirror-theme]!has[draft.of]get[name]]\\\">\\n\u003Coption value=\u003C\u003CcurrentTiddler>>>\u003C$transclude field=\\\"name\\\">\u003C$text text=\u003C\u003CcurrentTiddler>>/>\u003C/$transclude>\u003C/option>\\n\u003C/$list>\\n\u003C/$select>\\n\\n//see the [[CodeMirror Usage|$:/plugins/tiddlywiki/codemirror/usage]] how to add themes//\\n\"},\"$:/plugins/tiddlywiki/codemirror/styles\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/styles\",\"tags\":\"[[$:/tags/Stylesheet]]\",\"module-type\":\"codemirror-theme\",\"name\":\"tiddlywiki\",\"text\":\"\\\\define set-fat-cursor-background-css(colour,colourA,colourB)\\n\u003C$set name=\\\"backgroundColour\\\" value=\u003C\u003Ccontrastcolour target:\\\"\\\"\\\"$colour$\\\"\\\"\\\" fallbackTarget:\\\"\\\"\\\"\\\"\\\"\\\" colourA:\\\"\\\"\\\"$colourA$\\\"\\\"\\\" colourB:\\\"\\\"\\\"$colourB$\\\"\\\"\\\">>>\\n.cm-s-tiddlywiki.cm-fat-cursor .CodeMirror-cursor { background: \u003C\u003CbackgroundColour>>; }\\n.cm-s-tiddlywiki .cm-animate-fat-cursor { background-color: \u003C\u003CbackgroundColour>>; }\\n\u003C/$set>\\n\\\\end\\n\\\\define set-fat-cursor-background-colours(palette)\\n\u003C$macrocall $name=\\\"set-fat-cursor-background-css\\\" colour={{$palette$##foreground}} colourA=\\\"#77ee77\\\" colourB=\\\"#586e75\\\"/>\\n\\\\end\\n\\\\define set-fat-cursor-background()\\n\u003C$macrocall $name=\\\"set-fat-cursor-background-colours\\\" palette={{$:/palette}}/>\\n\\\\end\\n\\\\define set-selection-background-css(colour,colourA,colourB,tiddlerEditorBackground)\\n\u003C$wikify name=\\\"tiddlerEditorBackground\\\" text={{{ [[$tiddlerEditorBackground$]lowercase[]] }}}>\\n\u003C$set name=\\\"backgroundColour\\\" value=\u003C\u003Ccontrastcolour target:\\\"\\\"\\\"$colour$\\\"\\\"\\\" fallbackTarget:\\\"\\\"\\\"\\\"\\\"\\\" colourA:\\\"\\\"\\\"$colourA$\\\"\\\"\\\" colourB:\\\"\\\"\\\"$colourB$\\\"\\\"\\\">>>\\n\u003C$set name=\\\"backgroundColour\\\" value={{{ [\u003CbackgroundColour>lowercase[]match\u003CtiddlerEditorBackground>then[]] ~[\u003CbackgroundColour>] }}}>\\n.cm-s-tiddlywiki div.CodeMirror-selected { background: \u003C\u003CbackgroundColour>>; color: \u003C\u003Ccolour foreground>>; }\\n.cm-s-tiddlywiki.CodeMirror ::selection { background: \u003C\u003CbackgroundColour>>; color: \u003C\u003Ccolour foreground>>; }\\n.cm-s-tiddlywiki .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: \u003C\u003CbackgroundColour>>; color: \u003C\u003Ccolour foreground>>; }\\n.cm-s-tiddlywiki .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: \u003C\u003CbackgroundColour>>; color: \u003C\u003Ccolour foreground>>; }\\n\u003C/$set>\\n\u003C/$set>\\n\u003C/$wikify>\\n\\\\end\\n\\\\define set-selection-background-colours(palette)\\n\u003C$macrocall $name=\\\"set-selection-background-css\\\" colour={{$palette$##foreground}} colourA={{{ [{$palette$##selection-background}!match[]!prefix[\u003C\u003C]!suffix[>>]] ~#073642 }}} colourB={{{ [{$palette$##selection-background}!match[]!prefix[\u003C\u003C]!suffix[>>]] ~#eee8d5 }}} tiddlerEditorBackground={{$palette$##tiddler-editor-background}}/>\\n\\\\end\\n\\\\define set-selection-background()\\n\u003C$macrocall $name=\\\"set-selection-background-colours\\\" palette={{$:/palette}}/>\\n\\\\end\\n\\n\\\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\\n\\n/* Make the editor resize to fit its content */\\n\\n.CodeMirror {\\n\\theight: auto;\\n\\tborder: 1px solid \u003C\u003Ccolour tiddler-editor-border>>;\\n\\tline-height: 1.5;\\n\\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\\n\\tfont-size: {{$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize}};\\n}\\n\\n.CodeMirror-scroll {\\n\\toverflow-x: auto;\\n\\toverflow-y: hidden;\\n}\\n\\n.cm-s-tiddlywiki {\\n color-profile: sRGB;\\n rendering-intent: auto;\\n}\\n\\n.cm-s-tiddlywiki.CodeMirror, .cm-s-tiddlywiki .CodeMirror-gutters { background-color: \u003C\u003Ccolour tiddler-editor-background>>; color: \u003C\u003Ccolour foreground>>; }\\n.cm-s-tiddlywiki .CodeMirror-gutters {background: \u003C\u003Ccolour tiddler-editor-background>>; border-right: 1px solid \u003C\u003Ccolour tiddler-editor-border>>;}\\n.cm-s-tiddlywiki .CodeMirror-linenumber {color: \u003C\u003Ccolour foreground>>;}\\n.cm-s-tiddlywiki .CodeMirror-cursor { border-left: 2px solid \u003C\u003Ccolour foreground>>; }\\n.cm-s-tiddlywiki span.cm-comment { color: #586e75; font-style:italic; font-weight:normal; }\\n.cm-s-tiddlywiki .CodeMirror-activeline-background, .cm-s-tiddlywiki .CodeMirror-activeline-gutter .CodeMirror-linenumber { background: rgba(127,127,127,0.2); }\\n.cm-s-tiddlywiki span.cm-matchhighlight { color: \u003C\u003Ccolour background>>; background-color: \u003C\u003Ccolour primary>>; font-weight: normal;}\\n.cm-s-tiddlywiki .CodeMirror-widget { text-shadow: none; }\\n.cm-s-tiddlywiki .CodeMirror-dialog { background: \u003C\u003Ccolour tiddler-background>>; }\\n.cm-s-tiddlywiki .cm-header { color: #586e75; }\\n.cm-s-tiddlywiki .cm-quote { color: #93a1a1; }\\n.cm-s-tiddlywiki .cm-keyword { color: #cb4b16; }\\n.cm-s-tiddlywiki .cm-atom { color: #d33682; }\\n.cm-s-tiddlywiki .cm-number { color: #d33682; }\\n.cm-s-tiddlywiki .cm-def { color: #2aa198; }\\n.cm-s-tiddlywiki .cm-variable { color: #839496; }\\n.cm-s-tiddlywiki .cm-variable-2 { color: #b58900; }\\n.cm-s-tiddlywiki .cm-variable-3, .cm-s-tiddlywiki .cm-type { color: #6c71c4; }\\n.cm-s-tiddlywiki .cm-property { color: #2aa198; }\\n.cm-s-tiddlywiki .cm-operator { color: #6c71c4; }\\n.cm-s-tiddlywiki .cm-comment { color: #586e75; font-style:italic; }\\n.cm-s-tiddlywiki .cm-string { color: #859900; }\\n.cm-s-tiddlywiki .cm-string-2 { color: #b58900; }\\n.cm-s-tiddlywiki .cm-meta { color: #859900; }\\n.cm-s-tiddlywiki .cm-qualifier { color: #b58900; }\\n.cm-s-tiddlywiki .cm-builtin { color: #d33682; }\\n.cm-s-tiddlywiki .cm-bracket { color: #cb4b16; }\\n.cm-s-tiddlywiki .CodeMirror-matchingbracket { color: #859900; }\\n.cm-s-tiddlywiki .CodeMirror-nonmatchingbracket { color: #dc322f; }\\n.cm-s-tiddlywiki .cm-tag { color: #93a1a1; }\\n.cm-s-tiddlywiki .cm-attribute { color: #2aa198; }\\n.cm-s-tiddlywiki .cm-hr { color: transparent; border-top: 1px solid #586e75; display: block; }\\n.cm-s-tiddlywiki .cm-link { color: #93a1a1; cursor: pointer; }\\n.cm-s-tiddlywiki .cm-special { color: #6c71c4; }\\n.cm-s-tiddlywiki .cm-em { color: #999; text-decoration: underline; text-decoration-style: dotted; }\\n.cm-s-tiddlywiki .cm-error,\\n.cm-s-tiddlywiki .cm-invalidchar { color: #586e75; border-bottom: 1px dotted #dc322f; }\\n.cm-s-tiddlywiki .CodeMirror-matchingbracket { color: #859900; }\\n.cm-s-tiddlywiki .CodeMirror-nonmatchingbracket { color: #dc322f; }\\n.cm-s-tiddlywiki .cm-searching { background: rgba(243, 155, 53, .3); outline: 1px solid #F39B35; }\\n\u003C\u003Cset-fat-cursor-background>>\\n\u003C\u003Cset-selection-background>>\\n\"},\"$:/core/ui/ControlPanel/Settings/CodeMirror\":{\"title\":\"$:/core/ui/ControlPanel/Settings/CodeMirror\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"caption\":\"CodeMirror\",\"list-after\":\"$:/core/ui/ControlPanel/Settings/TiddlyWiki\",\"text\":\"\\\\define lingo-base() $:/language/codemirror/controlPanel/\\n\\n\u003C\u003Clingo hint>>\\n\\n\u003C$link to=\\\"$:/plugins/tiddlywiki/codemirror/usage\\\">\u003C\u003Clingo usage>>\u003C/$link>\\n\\n\u003C$link to=\\\"$:/plugins/tiddlywiki/codemirror/keyboard\\\">\u003C\u003Clingo keyboard>>\u003C/$link>\\n\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings/CodeMirror]]\\\">\\n\\n\u003Cdiv style=\\\"border-top:1px solid #eee;\\\">\\n\\n!! \u003C$link>\u003C$transclude field=\\\"caption\\\"/>\u003C/$link>\\n\\n\u003C$transclude/>\\n\\n\u003C/div>\\n\\n\u003C/$list>\\n\"},\"$:/core/ui/ControlPanel/Settings\":{\"title\":\"$:/core/ui/ControlPanel/Settings\",\"tags\":\"$:/tags/ControlPanel\",\"caption\":\"{{$:/language/ControlPanel/Settings/Caption}}\",\"text\":\"\u003Cdiv class=\\\"tc-control-panel\\\">\\n\u003C$macrocall $name=\\\"tabs\\\" tabsList=\\\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/SettingsTab]!has[draft.of]]\\\" default=\\\"$:/core/ui/ControlPanel/Settings/TiddlyWiki\\\" explicitState=\\\"$:/state/tab--697582678\\\"/>\\n\u003C/div>\\n\"},\"$:/core/ui/ControlPanel/Settings/TiddlyWiki\":{\"title\":\"$:/core/ui/ControlPanel/Settings/TiddlyWiki\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"caption\":\"TiddlyWiki\",\"text\":\"\\\\define lingo-base() $:/language/ControlPanel/Settings/\\n\\n\u003C\u003Clingo Hint>>\\n\\n\u003C$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\\\">\\n\\n\u003Cdiv style=\\\"border-top:1px solid #eee;\\\">\\n\\n!! \u003C$link>\u003C$transclude field=\\\"caption\\\"/>\u003C/$link>\\n\\n\u003C$transclude/>\\n\\n\u003C/div>\\n\\n\u003C/$list>\\n\"},\"$:/plugins/tiddlywiki/codemirror/usage\":{\"title\":\"$:/plugins/tiddlywiki/codemirror/usage\",\"text\":\"! Configuration\\n\\nConfiguration for the ~CodeMirror text-editor can be done from within the CodeMirror Settings Tab in the [[ControlPanel|$:/ControlPanel]] (Settings - ~CodeMirror)\\n\\n\\n!!Setting a different Theme\\n\\n~CodeMirror themes are available in the [ext[official GitHub repository|https://github.com/codemirror/CodeMirror/tree/master/theme]]\\n\\nMore themes can be found at https://github.com/FarhadG/code-mirror-themes/tree/master/themes and previewed [ext[here|http://farhadg.github.io/code-mirror-themes/]]\\n\\n\\nTo add a theme to your wiki, follow these four steps:\\n\\n* choose one of the CSS files and copy its content to a new tiddler\\n* remove all comments from the top and tag the tiddler with \u003C\u003Ctag-pill \\\"$:/tags/Stylesheet\\\">>\\n* add a field \\\"module-type\\\" with the value \\\"codemirror-theme\\\". add a field \\\"name\\\" with the exact ''name'' of the theme as value\\n* save the tiddler and go to the Settings tab in $:/ControlPanel - look for the \\\"theme\\\" dropdown to select your newly added theme\\n\\n\\n!!Line Numbers\\n\\nTo show or hide the Line Numbers at the left, go to ~ControlPanel - Settings - ~CodeMirror and look for the \\\"Line Numbers\\\" checkbox\\n\\n\\n!!Line Wrapping\\n\\nControls if long lines get visually wrapped to a new line if they're too long to fit the editor width or if the editor should scroll horizontally\\n\\nTo change the line-wrapping behaviour, go to ~ControlPanel - Settings - ~CodeMirror and look for the \\\"Line Wrapping\\\" checkbox\\n\\n\\n!!Show Cursor when selecting\\n\\nDefines whether the Mouse cursor should be visually shown or hidden when making a text-selection\\n\\nTo change the show-cursor-when-selecting behaviour, go to ~ControlPanel - Settings - ~CodeMirror and look for the \\\"Show cursor when selecting\\\" checkbox\\n\\n\\n!!~CodeMirror Font Family\\n\\nThe Font-Family used within the ~CodeMirror text-editor defaults to \\\"monospace\\\" which will choose your configured monospace system-font\\n\\nThat setting can be overridden entering one or more Font-Families in the \\\"Font Family\\\" input field at ~ControlPanel - Settings - ~CodeMirror\\n\\n* The entries must be separated by semicolons ','\\n* Font-Family Names that contain spaces must be quoted like \\\"My Font\\\"\\n* If a list of Font-Families is specified, the last Font-Family found on the user-system gets used, non-existing fonts get ignored\\n* If none of the specified Font-Families is available, ~CodeMirror uses the default \\\"monospace\\\"\\n\\n\\n!!\\\"Hidden\\\" Settings:\\n\\n!!!Cursor Blink Rate\\n\\nThe cursor blink-rate defines how fast (in milliseconds) the cursor blinks inside the textarea\\n\\nYou can change it by editing $:/config/codemirror/cursorBlinkRate\\n\\\"0\\\" disables blinking\\n\\n!!!Tabsize\\n\\nThe Tabsize defines the width of a tab character. Default is 4.\\n\\nYou can change it by editing $:/config/codemirror/tabSize\\n\\n!!!Indent Unit\\n\\nNot enabled for vnd.tiddlywiki and x-tiddlywiki\\n\\nDefines how many spaces a text-block should be indented. Defaults to 2.\\n\\nYou can change it by editing $:/config/codemirror/indentUnit\\n\\n\"}}}"}, {"title":"$:/plugins/tiddlywiki/codemirror-autocomplete","name":"CodeMirror Autocomplete","description":"Autocompletion for CodeMirror","parent-plugin":"$:/plugins/tiddlywiki/codemirror","dependents":"$:/plugins/tiddlywiki/codemirror-mode-css","list":"readme","version":"5.2.3","plugin-type":"plugin","type":"application/json","text":"{\"tiddlers\":{\"$:/config/codemirror/autocomplete\":{\"title\":\"$:/config/codemirror/autocomplete\",\"extend\":\"extraKeys\",\"type\":\"json\",\"text\":\"{\\n\\t\\\"Ctrl-Space\\\": \\\"autocomplete\\\"\\n}\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/anyword-hint.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?e(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],e):e(CodeMirror)}(function(y){\\\"use strict\\\";var b=/[\\\\w$]+/;y.registerHelper(\\\"hint\\\",\\\"anyword\\\",function(e,r){for(var t=r&&r.word||b,o=r&&r.range||500,i=e.getCursor(),n=e.getLine(i.line),f=i.ch,s=f;s&&t.test(n.charAt(s-1));)--s;for(var a=s!=f&&n.slice(s,f),c=r&&r.list||[],l={},d=new RegExp(t.source,\\\"g\\\"),u=-1;u\u003C=1;u+=2)for(var p=i.line,g=Math.min(Math.max(p+u*o,e.firstLine()),e.lastLine())+u;p!=g;p+=u)for(var h,m=e.getLine(p);h=d.exec(m);)p==i.line&&h[0]===a||a&&0!=h[0].lastIndexOf(a,0)||Object.prototype.hasOwnProperty.call(l,h[0])||(l[h[0]]=!0,c.push(h[0]));return{list:c,from:y.Pos(i.line,s),to:y.Pos(i.line,f)}})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/anyword-hint.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?e(require(\\\"../../lib/codemirror\\\"),require(\\\"../../mode/css/css\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\",\\\"../../mode/css/css\\\"],e):e(CodeMirror)}(function(f){\\\"use strict\\\";var p={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,\\\"first-child\\\":1,\\\"first-letter\\\":1,\\\"first-line\\\":1,\\\"first-of-type\\\":1,focus:1,hover:1,\\\"in-range\\\":1,indeterminate:1,invalid:1,lang:1,\\\"last-child\\\":1,\\\"last-of-type\\\":1,link:1,not:1,\\\"nth-child\\\":1,\\\"nth-last-child\\\":1,\\\"nth-last-of-type\\\":1,\\\"nth-of-type\\\":1,\\\"only-of-type\\\":1,\\\"only-child\\\":1,optional:1,\\\"out-of-range\\\":1,placeholder:1,\\\"read-only\\\":1,\\\"read-write\\\":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};f.registerHelper(\\\"hint\\\",\\\"css\\\",function(e){var t=e.getCursor(),r=e.getTokenAt(t),o=f.innerMode(e.getMode(),r.state);if(\\\"css\\\"==o.mode.name){if(\\\"keyword\\\"==r.type&&0==\\\"!important\\\".indexOf(r.string))return{list:[\\\"!important\\\"],from:f.Pos(t.line,r.start),to:f.Pos(t.line,r.end)};var i=r.start,s=t.ch,n=r.string.slice(0,s-i);/[^\\\\w$_-]/.test(n)&&(n=\\\"\\\",i=s=t.ch);var a=f.resolveMode(\\\"text/css\\\"),d=[],l=o.state.state;return\\\"pseudo\\\"==l||\\\"variable-3\\\"==r.type?c(p):\\\"block\\\"==l||\\\"maybeprop\\\"==l?c(a.propertyKeywords):\\\"prop\\\"==l||\\\"parens\\\"==l||\\\"at\\\"==l||\\\"params\\\"==l?(c(a.valueKeywords),c(a.colorKeywords)):\\\"media\\\"!=l&&\\\"media_parens\\\"!=l||(c(a.mediaTypes),c(a.mediaFeatures)),d.length?{list:d,from:f.Pos(t.line,i),to:f.Pos(t.line,s)}:void 0}function c(e){for(var t in e)n&&0!=t.lastIndexOf(n,0)||d.push(t)}})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/css-hint.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/html-hint.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(l){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?l(require(\\\"../../lib/codemirror\\\"),require(\\\"./xml-hint\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\",\\\"./xml-hint\\\"],l):l(CodeMirror)}(function(n){\\\"use strict\\\";var l=\\\"ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu\\\".split(\\\" \\\"),t=[\\\"_blank\\\",\\\"_self\\\",\\\"_top\\\",\\\"_parent\\\"],e=[\\\"ascii\\\",\\\"utf-8\\\",\\\"utf-16\\\",\\\"latin1\\\",\\\"latin1\\\"],a=[\\\"get\\\",\\\"post\\\",\\\"put\\\",\\\"delete\\\"],r=[\\\"application/x-www-form-urlencoded\\\",\\\"multipart/form-data\\\",\\\"text/plain\\\"],o=[\\\"all\\\",\\\"screen\\\",\\\"print\\\",\\\"embossed\\\",\\\"braille\\\",\\\"handheld\\\",\\\"print\\\",\\\"projection\\\",\\\"screen\\\",\\\"tty\\\",\\\"tv\\\",\\\"speech\\\",\\\"3d-glasses\\\",\\\"resolution [>][\u003C][=] [X]\\\",\\\"device-aspect-ratio: X/Y\\\",\\\"orientation:portrait\\\",\\\"orientation:landscape\\\",\\\"device-height: [X]\\\",\\\"device-width: [X]\\\"],s={attrs:{}},u={a:{attrs:{href:null,ping:null,type:null,media:o,target:t,hreflang:l}},abbr:s,acronym:s,address:s,applet:s,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:o,hreflang:l,type:null,shape:[\\\"default\\\",\\\"rect\\\",\\\"circle\\\",\\\"poly\\\"]}},article:s,aside:s,audio:{attrs:{src:null,mediagroup:null,crossorigin:[\\\"anonymous\\\",\\\"use-credentials\\\"],preload:[\\\"none\\\",\\\"metadata\\\",\\\"auto\\\"],autoplay:[\\\"\\\",\\\"autoplay\\\"],loop:[\\\"\\\",\\\"loop\\\"],controls:[\\\"\\\",\\\"controls\\\"]}},b:s,base:{attrs:{href:null,target:t}},basefont:s,bdi:s,bdo:s,big:s,blockquote:{attrs:{cite:null}},body:s,br:s,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[\\\"\\\",\\\"autofocus\\\"],disabled:[\\\"\\\",\\\"autofocus\\\"],formenctype:r,formmethod:a,formnovalidate:[\\\"\\\",\\\"novalidate\\\"],formtarget:t,type:[\\\"submit\\\",\\\"reset\\\",\\\"button\\\"]}},canvas:{attrs:{width:null,height:null}},caption:s,center:s,cite:s,code:s,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:[\\\"command\\\",\\\"checkbox\\\",\\\"radio\\\"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:[\\\"\\\",\\\"disabled\\\"],checked:[\\\"\\\",\\\"checked\\\"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:[\\\"\\\",\\\"disabled\\\"],multiple:[\\\"\\\",\\\"multiple\\\"]}},datalist:{attrs:{data:null}},dd:s,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[\\\"\\\",\\\"open\\\"]}},dfn:s,dir:s,div:s,dl:s,dt:s,em:s,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[\\\"\\\",\\\"disabled\\\"],form:null,name:null}},figcaption:s,figure:s,font:s,footer:s,form:{attrs:{action:null,name:null,\\\"accept-charset\\\":e,autocomplete:[\\\"on\\\",\\\"off\\\"],enctype:r,method:a,novalidate:[\\\"\\\",\\\"novalidate\\\"],target:t}},frame:s,frameset:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,head:{attrs:{},children:[\\\"title\\\",\\\"base\\\",\\\"link\\\",\\\"style\\\",\\\"meta\\\",\\\"script\\\",\\\"noscript\\\",\\\"command\\\"]},header:s,hgroup:s,hr:s,html:{attrs:{manifest:null},children:[\\\"head\\\",\\\"body\\\"]},i:s,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:[\\\"allow-top-navigation\\\",\\\"allow-same-origin\\\",\\\"allow-forms\\\",\\\"allow-scripts\\\"],seamless:[\\\"\\\",\\\"seamless\\\"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:[\\\"anonymous\\\",\\\"use-credentials\\\"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:[\\\"audio/*\\\",\\\"video/*\\\",\\\"image/*\\\"],autocomplete:[\\\"on\\\",\\\"off\\\"],autofocus:[\\\"\\\",\\\"autofocus\\\"],checked:[\\\"\\\",\\\"checked\\\"],disabled:[\\\"\\\",\\\"disabled\\\"],formenctype:r,formmethod:a,formnovalidate:[\\\"\\\",\\\"novalidate\\\"],formtarget:t,multiple:[\\\"\\\",\\\"multiple\\\"],readonly:[\\\"\\\",\\\"readonly\\\"],required:[\\\"\\\",\\\"required\\\"],type:[\\\"hidden\\\",\\\"text\\\",\\\"search\\\",\\\"tel\\\",\\\"url\\\",\\\"email\\\",\\\"password\\\",\\\"datetime\\\",\\\"date\\\",\\\"month\\\",\\\"week\\\",\\\"time\\\",\\\"datetime-local\\\",\\\"number\\\",\\\"range\\\",\\\"color\\\",\\\"checkbox\\\",\\\"radio\\\",\\\"file\\\",\\\"submit\\\",\\\"image\\\",\\\"reset\\\",\\\"button\\\"]}},ins:{attrs:{cite:null,datetime:null}},kbd:s,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[\\\"\\\",\\\"autofocus\\\"],disabled:[\\\"\\\",\\\"disabled\\\"],keytype:[\\\"RSA\\\"]}},label:{attrs:{for:null,form:null}},legend:s,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:l,media:o,sizes:[\\\"all\\\",\\\"16x16\\\",\\\"16x16 32x32\\\",\\\"16x16 32x32 64x64\\\"]}},map:{attrs:{name:null}},mark:s,menu:{attrs:{label:null,type:[\\\"list\\\",\\\"context\\\",\\\"toolbar\\\"]}},meta:{attrs:{content:null,charset:e,name:[\\\"viewport\\\",\\\"application-name\\\",\\\"author\\\",\\\"description\\\",\\\"generator\\\",\\\"keywords\\\"],\\\"http-equiv\\\":[\\\"content-language\\\",\\\"content-type\\\",\\\"default-style\\\",\\\"refresh\\\"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:s,noframes:s,noscript:s,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:[\\\"\\\",\\\"typemustmatch\\\"]}},ol:{attrs:{reversed:[\\\"\\\",\\\"reversed\\\"],start:null,type:[\\\"1\\\",\\\"a\\\",\\\"A\\\",\\\"i\\\",\\\"I\\\"]}},optgroup:{attrs:{disabled:[\\\"\\\",\\\"disabled\\\"],label:null}},option:{attrs:{disabled:[\\\"\\\",\\\"disabled\\\"],label:null,selected:[\\\"\\\",\\\"selected\\\"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:s,param:{attrs:{name:null,value:null}},pre:s,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:s,rt:s,ruby:s,s:s,samp:s,script:{attrs:{type:[\\\"text/javascript\\\"],src:null,async:[\\\"\\\",\\\"async\\\"],defer:[\\\"\\\",\\\"defer\\\"],charset:e}},section:s,select:{attrs:{form:null,name:null,size:null,autofocus:[\\\"\\\",\\\"autofocus\\\"],disabled:[\\\"\\\",\\\"disabled\\\"],multiple:[\\\"\\\",\\\"multiple\\\"]}},small:s,source:{attrs:{src:null,type:null,media:null}},span:s,strike:s,strong:s,style:{attrs:{type:[\\\"text/css\\\"],media:o,scoped:null}},sub:s,summary:s,sup:s,table:s,tbody:s,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:[\\\"\\\",\\\"autofocus\\\"],disabled:[\\\"\\\",\\\"disabled\\\"],readonly:[\\\"\\\",\\\"readonly\\\"],required:[\\\"\\\",\\\"required\\\"],wrap:[\\\"soft\\\",\\\"hard\\\"]}},tfoot:s,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[\\\"row\\\",\\\"col\\\",\\\"rowgroup\\\",\\\"colgroup\\\"]}},thead:s,time:{attrs:{datetime:null}},title:s,tr:s,track:{attrs:{src:null,label:null,default:null,kind:[\\\"subtitles\\\",\\\"captions\\\",\\\"descriptions\\\",\\\"chapters\\\",\\\"metadata\\\"],srclang:l}},tt:s,u:s,ul:s,var:s,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:[\\\"anonymous\\\",\\\"use-credentials\\\"],preload:[\\\"auto\\\",\\\"metadata\\\",\\\"none\\\"],autoplay:[\\\"\\\",\\\"autoplay\\\"],mediagroup:[\\\"movie\\\"],muted:[\\\"\\\",\\\"muted\\\"],controls:[\\\"\\\",\\\"controls\\\"]}},wbr:s},i={accesskey:[\\\"a\\\",\\\"b\\\",\\\"c\\\",\\\"d\\\",\\\"e\\\",\\\"f\\\",\\\"g\\\",\\\"h\\\",\\\"i\\\",\\\"j\\\",\\\"k\\\",\\\"l\\\",\\\"m\\\",\\\"n\\\",\\\"o\\\",\\\"p\\\",\\\"q\\\",\\\"r\\\",\\\"s\\\",\\\"t\\\",\\\"u\\\",\\\"v\\\",\\\"w\\\",\\\"x\\\",\\\"y\\\",\\\"z\\\",\\\"0\\\",\\\"1\\\",\\\"2\\\",\\\"3\\\",\\\"4\\\",\\\"5\\\",\\\"6\\\",\\\"7\\\",\\\"8\\\",\\\"9\\\"],class:null,contenteditable:[\\\"true\\\",\\\"false\\\"],contextmenu:null,dir:[\\\"ltr\\\",\\\"rtl\\\",\\\"auto\\\"],draggable:[\\\"true\\\",\\\"false\\\",\\\"auto\\\"],dropzone:[\\\"copy\\\",\\\"move\\\",\\\"link\\\",\\\"string:\\\",\\\"file:\\\"],hidden:[\\\"hidden\\\"],id:null,inert:[\\\"inert\\\"],itemid:null,itemprop:null,itemref:null,itemscope:[\\\"itemscope\\\"],itemtype:null,lang:[\\\"en\\\",\\\"es\\\"],spellcheck:[\\\"true\\\",\\\"false\\\"],autocorrect:[\\\"true\\\",\\\"false\\\"],autocapitalize:[\\\"true\\\",\\\"false\\\"],style:null,tabindex:[\\\"1\\\",\\\"2\\\",\\\"3\\\",\\\"4\\\",\\\"5\\\",\\\"6\\\",\\\"7\\\",\\\"8\\\",\\\"9\\\"],title:null,translate:[\\\"yes\\\",\\\"no\\\"],onclick:null,rel:[\\\"stylesheet\\\",\\\"alternate\\\",\\\"author\\\",\\\"bookmark\\\",\\\"help\\\",\\\"license\\\",\\\"next\\\",\\\"nofollow\\\",\\\"noreferrer\\\",\\\"prefetch\\\",\\\"prev\\\",\\\"search\\\",\\\"tag\\\"]};function d(l){for(var t in i)i.hasOwnProperty(t)&&(l.attrs[t]=i[t])}for(var c in d(s),u)u.hasOwnProperty(c)&&u[c]!=s&&d(u[c]);n.htmlSchema=u,n.registerHelper(\\\"hint\\\",\\\"html\\\",function(l,t){var e={schemaInfo:u};if(t)for(var a in t)e[a]=t[a];return n.hint.xml(l,e)})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/html-hint.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/javascript-hint.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(t){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?t(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],t):t(CodeMirror)}(function(f){var c=f.Pos;function g(t,e){for(var r=0,n=t.length;r\u003Cn;++r)e(t[r])}function r(t,e,r,n){var i=t.getCursor(),o=r(t,i);if(!/\\\\b(?:string|comment)\\\\b/.test(o.type)){var s=f.innerMode(t.getMode(),o.state);if(\\\"json\\\"!==s.mode.helperType){o.state=s.state,/^[\\\\w$_]*$/.test(o.string)?o.end>i.ch&&(o.end=i.ch,o.string=o.string.slice(0,i.ch-o.start)):o={start:i.ch,end:i.ch,string:\\\"\\\",state:o.state,type:\\\".\\\"==o.string?\\\"property\\\":null};for(var a=o;\\\"property\\\"==a.type;){if(\\\".\\\"!=(a=r(t,c(i.line,a.start))).string)return;a=r(t,c(i.line,a.start));var l=l||[];l.push(a)}return{list:function(t,e,r,n){var i=[],o=t.string,s=n&&n.globalScope||window;function a(t){0!=t.lastIndexOf(o,0)||function(t,e){if(Array.prototype.indexOf)return-1!=t.indexOf(e);for(var r=t.length;r--;)if(t[r]===e)return 1}(i,t)||i.push(t)}function l(t){\\\"string\\\"==typeof t?g(y,a):t instanceof Array?g(h,a):t instanceof Function&&g(v,a),function(t,e){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var r=t;r;r=Object.getPrototypeOf(r))Object.getOwnPropertyNames(r).forEach(e);else for(var n in t)e(n)}(t,a)}if(e&&e.length){var f,c=e.pop();for(c.type&&0===c.type.indexOf(\\\"variable\\\")?(n&&n.additionalContext&&(f=n.additionalContext[c.string]),n&&!1===n.useGlobalScope||(f=f||s[c.string])):\\\"string\\\"==c.type?f=\\\"\\\":\\\"atom\\\"==c.type?f=1:\\\"function\\\"==c.type&&(null==s.jQuery||\\\"$\\\"!=c.string&&\\\"jQuery\\\"!=c.string||\\\"function\\\"!=typeof s.jQuery?null!=s._&&\\\"_\\\"==c.string&&\\\"function\\\"==typeof s._&&(f=s._()):f=s.jQuery());null!=f&&e.length;)f=f[e.pop().string];null!=f&&l(f)}else{for(var p=t.state.localVars;p;p=p.next)a(p.name);for(var u=t.state.context;u;u=u.prev)for(p=u.vars;p;p=p.next)a(p.name);for(p=t.state.globalVars;p;p=p.next)a(p.name);if(n&&null!=n.additionalContext)for(var d in n.additionalContext)a(d);n&&!1===n.useGlobalScope||l(s),g(r,a)}return i}(o,l,e,n),from:c(i.line,o.start),to:c(i.line,o.end)}}}}function n(t,e){var r=t.getTokenAt(e);return e.ch==r.start+1&&\\\".\\\"==r.string.charAt(0)?(r.end=r.start,r.string=\\\".\\\",r.type=\\\"property\\\"):/^\\\\.[\\\\w$_]*$/.test(r.string)&&(r.type=\\\"property\\\",r.start++,r.string=r.string.replace(/\\\\./,\\\"\\\")),r}f.registerHelper(\\\"hint\\\",\\\"javascript\\\",function(t,e){return r(t,i,function(t,e){return t.getTokenAt(e)},e)}),f.registerHelper(\\\"hint\\\",\\\"coffeescript\\\",function(t,e){return r(t,o,n,e)});var y=\\\"charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search\\\".split(\\\" \\\"),h=\\\"length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight \\\".split(\\\" \\\"),v=\\\"prototype apply call bind\\\".split(\\\" \\\"),i=\\\"break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield\\\".split(\\\" \\\"),o=\\\"and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes\\\".split(\\\" \\\")});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/javascript-hint.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/show-hint.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(t){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?t(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],t):t(CodeMirror)}(function(W){\\\"use strict\\\";var I=\\\"CodeMirror-hint-active\\\";function o(t,i){this.cm=t,this.options=i,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor(\\\"start\\\"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var e=this;t.on(\\\"cursorActivity\\\",this.activityFunc=function(){e.cursorActivity()})}W.showHint=function(t,i,e){if(!i)return t.showHint(e);e&&e.async&&(i.async=!0);var n={hint:i};if(e)for(var o in e)n[o]=e[o];return t.showHint(n)},W.defineExtension(\\\"showHint\\\",function(t){t=function(t,i,e){var n=t.options.hintOptions,o={};for(var s in l)o[s]=l[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(e)for(var s in e)void 0!==e[s]&&(o[s]=e[s]);o.hint.resolve&&(o.hint=o.hint.resolve(t,i));return o}(this,this.getCursor(\\\"start\\\"),t);var i=this.listSelections();if(!(1\u003Ci.length)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var e=0;e\u003Ci.length;e++)if(i[e].head.line!=i[e].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var n=this.state.completionActive=new o(this,t);n.options.hint&&(W.signal(this,\\\"startCompletion\\\",this),n.update(!0))}}),W.defineExtension(\\\"closeHint\\\",function(){this.state.completionActive&&this.state.completionActive.close()});var s=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;function B(t){return\\\"string\\\"==typeof t?t:t.text}function K(t,i){for(;i&&i!=t;){if(\\\"LI\\\"===i.nodeName.toUpperCase()&&i.parentNode==t)return i;i=i.parentNode}}function n(o,t){this.completion=o,this.data=t,this.picked=!1;var e=this,s=o.cm,c=s.getInputField().ownerDocument,r=c.defaultView||c.parentWindow,l=this.hints=c.createElement(\\\"ul\\\"),i=o.cm.options.theme;l.className=\\\"CodeMirror-hints \\\"+i,this.selectedHint=t.selectedHint||0;for(var n=t.list,h=0;h\u003Cn.length;++h){var a=l.appendChild(c.createElement(\\\"li\\\")),u=n[h],f=\\\"CodeMirror-hint\\\"+(h!=this.selectedHint?\\\"\\\":\\\" \\\"+I);null!=u.className&&(f=u.className+\\\" \\\"+f),a.className=f,u.render?u.render(a,t,u):a.appendChild(c.createTextNode(u.displayText||B(u))),a.hintId=h}var p,d,m,g=o.options.container||c.body,v=s.cursorCoords(o.options.alignWithWord?t.from:null),y=v.left,w=v.bottom,H=!0,C=0,b=0;g!==c.body&&(d=(p=-1!==[\\\"absolute\\\",\\\"relative\\\",\\\"fixed\\\"].indexOf(r.getComputedStyle(g).position)?g:g.offsetParent).getBoundingClientRect(),m=c.body.getBoundingClientRect(),C=d.left-m.left-p.scrollLeft,b=d.top-m.top-p.scrollTop),l.style.left=y-C+\\\"px\\\",l.style.top=w-b+\\\"px\\\";var k=r.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),A=r.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);g.appendChild(l);var x,T,S=l.getBoundingClientRect(),M=S.bottom-A,N=l.scrollHeight>l.clientHeight+1,F=s.getScrollInfo();0\u003CM&&(x=S.bottom-S.top,0\u003Cv.top-(v.bottom-S.top)-x?(l.style.top=(w=v.top-x-b)+\\\"px\\\",H=!1):A\u003Cx&&(l.style.height=A-5+\\\"px\\\",l.style.top=(w=v.bottom-S.top-b)+\\\"px\\\",T=s.getCursor(),t.from.ch!=T.ch&&(v=s.cursorCoords(T),l.style.left=(y=v.left-C)+\\\"px\\\",S=l.getBoundingClientRect())));var E,O=S.right-k;if(0\u003CO&&(S.right-S.left>k&&(l.style.width=k-5+\\\"px\\\",O-=S.right-S.left-k),l.style.left=(y=v.left-O-C)+\\\"px\\\"),N)for(var P=l.firstChild;P;P=P.nextSibling)P.style.paddingRight=s.display.nativeBarWidth+\\\"px\\\";return s.addKeyMap(this.keyMap=function(t,n){var o={Up:function(){n.moveFocus(-1)},Down:function(){n.moveFocus(1)},PageUp:function(){n.moveFocus(1-n.menuSize(),!0)},PageDown:function(){n.moveFocus(n.menuSize()-1,!0)},Home:function(){n.setFocus(0)},End:function(){n.setFocus(n.length-1)},Enter:n.pick,Tab:n.pick,Esc:n.close};/Mac/.test(navigator.platform)&&(o[\\\"Ctrl-P\\\"]=function(){n.moveFocus(-1)},o[\\\"Ctrl-N\\\"]=function(){n.moveFocus(1)});var i=t.options.customKeys,s=i?{}:o;function e(t,i){var e=\\\"string\\\"!=typeof i?function(t){return i(t,n)}:o.hasOwnProperty(i)?o[i]:i;s[t]=e}if(i)for(var c in i)i.hasOwnProperty(c)&&e(c,i[c]);var r=t.options.extraKeys;if(r)for(var c in r)r.hasOwnProperty(c)&&e(c,r[c]);return s}(o,{moveFocus:function(t,i){e.changeActive(e.selectedHint+t,i)},setFocus:function(t){e.changeActive(t)},menuSize:function(){return e.screenAmount()},length:n.length,close:function(){o.close()},pick:function(){e.pick()},data:t})),o.options.closeOnUnfocus&&(s.on(\\\"blur\\\",this.onBlur=function(){E=setTimeout(function(){o.close()},100)}),s.on(\\\"focus\\\",this.onFocus=function(){clearTimeout(E)})),s.on(\\\"scroll\\\",this.onScroll=function(){var t=s.getScrollInfo(),i=s.getWrapperElement().getBoundingClientRect(),e=w+F.top-t.top,n=e-(r.pageYOffset||(c.documentElement||c.body).scrollTop);if(H||(n+=l.offsetHeight),n\u003C=i.top||n>=i.bottom)return o.close();l.style.top=e+\\\"px\\\",l.style.left=y+F.left-t.left+\\\"px\\\"}),W.on(l,\\\"dblclick\\\",function(t){var i=K(l,t.target||t.srcElement);i&&null!=i.hintId&&(e.changeActive(i.hintId),e.pick())}),W.on(l,\\\"click\\\",function(t){var i=K(l,t.target||t.srcElement);i&&null!=i.hintId&&(e.changeActive(i.hintId),o.options.completeOnSingleClick&&e.pick())}),W.on(l,\\\"mousedown\\\",function(){setTimeout(function(){s.focus()},20)}),this.scrollToActive(),W.signal(t,\\\"select\\\",n[this.selectedHint],l.childNodes[this.selectedHint]),!0}function r(t,i,e,n){var o;t.async?t(i,n,e):(o=t(i,e))&&o.then?o.then(n):n(o)}o.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off(\\\"cursorActivity\\\",this.activityFunc),this.widget&&this.data&&W.signal(this.data,\\\"close\\\"),this.widget&&this.widget.close(),W.signal(this.cm,\\\"endCompletion\\\",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,i){var e=t.list[i],n=this;this.cm.operation(function(){e.hint?e.hint(n.cm,t,e):n.cm.replaceRange(B(e),e.from||t.from,e.to||t.to,\\\"complete\\\"),W.signal(t,\\\"pick\\\",e),n.cm.scrollIntoView()}),this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var i,e=this.cm.getCursor(),n=this.cm.getLine(e.line);e.line!=this.startPos.line||n.length-e.ch!=this.startLen-this.startPos.ch||e.ch\u003Ct.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(n.charAt(e.ch-1))?this.close():((i=this).debounce=s(function(){i.update()}),this.widget&&this.widget.disable())},update:function(i){var e,n;null!=this.tick&&(n=++(e=this).tick,r(this.options.hint,this.cm,this.options,function(t){e.tick==n&&e.finishUpdate(t,i)}))},finishUpdate:function(t,i){this.data&&W.signal(this.data,\\\"update\\\");var e=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),(this.data=t)&&t.list.length&&(e&&1==t.list.length?this.pick(t,0):(this.widget=new n(this,t),W.signal(t,\\\"shown\\\")))}},n.prototype={close:function(){var t;this.completion.widget==this&&(this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap),t=this.completion.cm,this.completion.options.closeOnUnfocus&&(t.off(\\\"blur\\\",this.onBlur),t.off(\\\"focus\\\",this.onFocus)),t.off(\\\"scroll\\\",this.onScroll))},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,i){var e;t>=this.data.list.length?t=i?this.data.list.length-1:0:t\u003C0&&(t=i?0:this.data.list.length-1),this.selectedHint!=t&&((e=this.hints.childNodes[this.selectedHint])&&(e.className=e.className.replace(\\\" \\\"+I,\\\"\\\")),(e=this.hints.childNodes[this.selectedHint=t]).className+=\\\" \\\"+I,this.scrollToActive(),W.signal(this.data,\\\"select\\\",this.data.list[this.selectedHint],e))},scrollToActive:function(){var t=this.completion.options.scrollMargin||0,i=this.hints.childNodes[Math.max(0,this.selectedHint-t)],e=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+t)],n=this.hints.firstChild;i.offsetTop\u003Cthis.hints.scrollTop?this.hints.scrollTop=i.offsetTop-n.offsetTop:e.offsetTop+e.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=e.offsetTop+e.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},W.registerHelper(\\\"hint\\\",\\\"auto\\\",{resolve:function(t,i){var e,c=t.getHelpers(i,\\\"hint\\\");if(c.length){var n=function(t,n,o){var s=function(t,i){if(!t.somethingSelected())return i;for(var e=[],n=0;n\u003Ci.length;n++)i[n].supportsSelection&&e.push(i[n]);return e}(t,c);!function i(e){if(e==s.length)return n(null);r(s[e],t,o,function(t){t&&0\u003Ct.list.length?n(t):i(e+1)})}(0)};return n.async=!0,n.supportsSelection=!0,n}return(e=t.getHelper(t.getCursor(),\\\"hintWords\\\"))?function(t){return W.hint.fromList(t,{words:e})}:W.hint.anyword?function(t,i){return W.hint.anyword(t,i)}:function(){}}}),W.registerHelper(\\\"hint\\\",\\\"fromList\\\",function(t,i){var e,n=t.getCursor(),o=t.getTokenAt(n),s=W.Pos(n.line,o.start),c=n;o.start\u003Cn.ch&&/\\\\w/.test(o.string.charAt(n.ch-o.start-1))?e=o.string.substr(0,n.ch-o.start):(e=\\\"\\\",s=n);for(var r=[],l=0;l\u003Ci.words.length;l++){var h=i.words[l];h.slice(0,e.length)==e&&r.push(h)}if(r.length)return{list:r,from:s,to:c}}),W.commands.autocomplete=W.showHint;var l={hint:W.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\\\\s()\\\\[\\\\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};W.defineOption(\\\"hintOptions\\\",null)});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/show-hint.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/show-hint.css\":{\"text\":\".CodeMirror-hints {\\n position: absolute;\\n z-index: 10;\\n overflow: hidden;\\n list-style: none;\\n\\n margin: 0;\\n padding: 2px;\\n\\n -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\\n -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\\n border-radius: 3px;\\n border: 1px solid silver;\\n\\n background: white;\\n font-size: 90%;\\n font-family: monospace;\\n\\n max-height: 20em;\\n overflow-y: auto;\\n}\\n\\n.CodeMirror-hint {\\n margin: 0;\\n padding: 0 4px;\\n border-radius: 2px;\\n white-space: pre;\\n color: black;\\n cursor: pointer;\\n}\\n\\nli.CodeMirror-hint-active {\\n background: #08f;\\n color: white;\\n}\\n\",\"type\":\"text/css\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/show-hint.css\",\"tags\":\"[[$:/tags/Stylesheet]]\"},\"$:/plugins/tiddlywiki/codemirror/addon/hint/xml-hint.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(t){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?t(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],t):t(CodeMirror)}(function(H){\\\"use strict\\\";var R=H.Pos;function z(t,e,r){return r?0\u003C=t.indexOf(e):0==t.lastIndexOf(e,0)}H.registerHelper(\\\"hint\\\",\\\"xml\\\",function(t,e){var r=e&&e.schemaInfo,n=e&&e.quoteChar||'\\\"',s=e&&e.matchInMiddle;if(r){var i=t.getCursor(),o=t.getTokenAt(i);if(o.end>i.ch&&(o.end=i.ch,o.string=o.string.slice(0,i.ch-o.start)),(p=H.innerMode(t.getMode(),o.state)).mode.xmlCurrentTag){var a,l,g,c=[],f=!1,h=/\\\\btag\\\\b/.test(o.type)&&!/>$/.test(o.string),u=h&&/^\\\\w/.test(o.string);u?(M=t.getLine(i.line).slice(Math.max(0,o.start-2),o.start),(g=/\u003C\\\\/$/.test(M)?\\\"close\\\":/\u003C$/.test(M)?\\\"open\\\":null)&&(l=o.start-(\\\"close\\\"==g?2:1))):h&&\\\"\u003C\\\"==o.string?g=\\\"open\\\":h&&\\\"\u003C/\\\"==o.string&&(g=\\\"close\\\");var d=p.mode.xmlCurrentTag(p.state);if(!h&&!d||g){u&&(a=o.string),f=g;var p,m=p.mode.xmlCurrentContext?p.mode.xmlCurrentContext(p.state):[],v=(p=m.length&&m[m.length-1])&&r[p],y=p?v&&v.children:r[\\\"!top\\\"];if(y&&\\\"close\\\"!=g)for(var x=0;x\u003Cy.length;++x)a&&!z(y[x],a,s)||c.push(\\\"\u003C\\\"+y[x]);else if(\\\"close\\\"!=g)for(var C in r)!r.hasOwnProperty(C)||\\\"!top\\\"==C||\\\"!attrs\\\"==C||a&&!z(C,a,s)||c.push(\\\"\u003C\\\"+C);p&&(!a||\\\"close\\\"==g&&z(p,a,s))&&c.push(\\\"\u003C/\\\"+p+\\\">\\\")}else{var b=(v=d&&r[d.name])&&v.attrs,O=r[\\\"!attrs\\\"];if(!b&&!O)return;if(b){if(O){var w={};for(var A in O)O.hasOwnProperty(A)&&(w[A]=O[A]);for(var A in b)b.hasOwnProperty(A)&&(w[A]=b[A]);b=w}}else b=O;if(\\\"string\\\"==o.type||\\\"=\\\"==o.string){var M,P,$,I,T,j=(M=t.getRange(R(i.line,Math.max(0,i.ch-60)),R(i.line,\\\"string\\\"==o.type?o.start:o.end))).match(/([^\\\\s\\\\u00a0=\u003C>\\\\\\\"\\\\']+)=$/);if(!j||!b.hasOwnProperty(j[1])||!(P=b[j[1]]))return;\\\"function\\\"==typeof P&&(P=P.call(this,t)),\\\"string\\\"==o.type&&(a=o.string,$=0,/['\\\"]/.test(o.string.charAt(0))&&(n=o.string.charAt(0),a=o.string.slice(1),$++),I=o.string.length,/['\\\"]/.test(o.string.charAt(I-1))&&(n=o.string.charAt(I-1),a=o.string.substr($,I-2)),!$||(T=t.getLine(i.line)).length>o.end&&T.charAt(o.end)==n&&o.end++,f=!0);var q=function(t){if(t)for(var e=0;e\u003Ct.length;++e)a&&!z(t[e],a,s)||c.push(n+t[e]+n);return k()};return P&&P.then?P.then(q):q(P)}for(var L in\\\"attribute\\\"==o.type&&(a=o.string,f=!0),b)!b.hasOwnProperty(L)||a&&!z(L,a,s)||c.push(L)}return k()}}function k(){return{list:c,from:f?R(i.line,null==l?o.start:l):i,to:f?R(i.line,o.end):i}}})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/hint/xml-hint.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror-autocomplete/readme\":{\"title\":\"$:/plugins/tiddlywiki/codemirror-autocomplete/readme\",\"text\":\"This plugin enhances the [[CodeMirror|http://codemirror.net]] text editor with Autocompletion functionality. It needs the latest [[CodeMirror plugin|$:/plugins/tiddlywiki/codemirror]] to be installed\\n\\nIt adds Autocompletion for ''html'', ''javascript'' and ''xml'' and also for ''already present words'' within a text-editor instance\\n\\nThe ''Keyboard Shortcut'' for autocompletion is `Ctrl+Space`\\n\\n\"}}}"}, {"title":"$:/plugins/tiddlywiki/codemirror-closebrackets","name":"CodeMirror Close Brackets","description":"Close brackets for CodeMirror","parent-plugin":"$:/plugins/tiddlywiki/codemirror","list":"readme","version":"5.2.3","plugin-type":"plugin","dependents":"","type":"application/json","text":"{\"tiddlers\":{\"$:/config/codemirror/autoCloseBrackets\":{\"title\":\"$:/config/codemirror/autoCloseBrackets\",\"type\":\"bool\",\"text\":\"true\"},\"$:/config/codemirror/matchBrackets\":{\"title\":\"$:/config/codemirror/matchBrackets\",\"type\":\"bool\",\"text\":\"true\\n\"},\"$:/plugins/tiddlywiki/codemirror/addon/edit/closebrackets.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?e(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],e):e(CodeMirror)}(function(C){var r={pairs:\\\"()[]{}''\\\\\\\"\\\\\\\"\\\",closeBefore:\\\")]}'\\\\\\\":;>\\\",triples:\\\"\\\",explode:\\\"[]{}\\\"},x=C.Pos;function P(e,t){return\\\"pairs\\\"==t&&\\\"string\\\"==typeof e?e:\\\"object\\\"==typeof e&&null!=e[t]?e[t]:r[t]}C.defineOption(\\\"autoCloseBrackets\\\",!1,function(e,t,r){r&&r!=C.Init&&(e.removeKeyMap(i),e.state.closeBrackets=null),t&&(n(P(t,\\\"pairs\\\")),e.state.closeBrackets=t,e.addKeyMap(i))});var i={Backspace:function(e){var t=k(e);if(!t||e.getOption(\\\"disableInput\\\"))return C.Pass;for(var r=P(t,\\\"pairs\\\"),n=e.listSelections(),i=0;i\u003Cn.length;i++){if(!n[i].empty())return C.Pass;var a=s(e,n[i].head);if(!a||r.indexOf(a)%2!=0)return C.Pass}for(i=n.length-1;0\u003C=i;i--){var o=n[i].head;e.replaceRange(\\\"\\\",x(o.line,o.ch-1),x(o.line,o.ch+1),\\\"+delete\\\")}},Enter:function(n){var e=k(n),t=e&&P(e,\\\"explode\\\");if(!t||n.getOption(\\\"disableInput\\\"))return C.Pass;for(var i=n.listSelections(),r=0;r\u003Ci.length;r++){if(!i[r].empty())return C.Pass;var a=s(n,i[r].head);if(!a||t.indexOf(a)%2!=0)return C.Pass}n.operation(function(){var e=n.lineSeparator()||\\\"\\\\n\\\";n.replaceSelection(e+e,null),n.execCommand(\\\"goCharLeft\\\"),i=n.listSelections();for(var t=0;t\u003Ci.length;t++){var r=i[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}})}};function n(e){for(var t=0;t\u003Ce.length;t++){var r=e.charAt(t),n=\\\"'\\\"+r+\\\"'\\\";i[n]||(i[n]=function(t){return function(e){return function(i,e){var t=k(i);if(!t||i.getOption(\\\"disableInput\\\"))return C.Pass;var r=P(t,\\\"pairs\\\"),n=r.indexOf(e);if(-1==n)return C.Pass;for(var a,o=P(t,\\\"closeBefore\\\"),s=P(t,\\\"triples\\\"),l=r.charAt(n+1)==e,c=i.listSelections(),f=n%2==0,h=0;h\u003Cc.length;h++){var u,d=c[h],p=d.head,g=i.getRange(p,x(p.line,p.ch+1));if(f&&!d.empty())u=\\\"surround\\\";else if(!l&&f||g!=e)if(l&&1\u003Cp.ch&&0\u003C=s.indexOf(e)&&i.getRange(x(p.line,p.ch-2),p)==e+e){if(2\u003Cp.ch&&/\\\\bstring/.test(i.getTokenTypeAt(x(p.line,p.ch-2))))return C.Pass;u=\\\"addFour\\\"}else if(l){var v=0==p.ch?\\\" \\\":i.getRange(x(p.line,p.ch-1),p);if(C.isWordChar(g)||v==e||C.isWordChar(v))return C.Pass;u=\\\"both\\\"}else{if(!f||!(0===g.length||/\\\\s/.test(g)||-1\u003Co.indexOf(g)))return C.Pass;u=\\\"both\\\"}else u=l&&function(e,t){var r=e.getTokenAt(x(t.line,t.ch+1));return/\\\\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\\\\bstring/.test(e.getTokenTypeAt(t)))}(i,p)?\\\"both\\\":0\u003C=s.indexOf(e)&&i.getRange(p,x(p.line,p.ch+3))==e+e+e?\\\"skipThree\\\":\\\"skip\\\";if(a){if(a!=u)return C.Pass}else a=u}var m=n%2?r.charAt(n-1):e,b=n%2?e:r.charAt(n+1);i.operation(function(){if(\\\"skip\\\"==a)i.execCommand(\\\"goCharRight\\\");else if(\\\"skipThree\\\"==a)for(var e=0;e\u003C3;e++)i.execCommand(\\\"goCharRight\\\");else if(\\\"surround\\\"==a){for(var t=i.getSelections(),e=0;e\u003Ct.length;e++)t[e]=m+t[e]+b;i.replaceSelections(t,\\\"around\\\"),t=i.listSelections().slice();for(e=0;e\u003Ct.length;e++)t[e]=(r=t[e],n=0\u003CC.cmpPos(r.anchor,r.head),{anchor:new x(r.anchor.line,r.anchor.ch+(n?-1:1)),head:new x(r.head.line,r.head.ch+(n?1:-1))});i.setSelections(t)}else\\\"both\\\"==a?(i.replaceSelection(m+b,null),i.triggerElectric(m+b),i.execCommand(\\\"goCharLeft\\\")):\\\"addFour\\\"==a&&(i.replaceSelection(m+m+m+m,\\\"before\\\"),i.execCommand(\\\"goCharRight\\\"));var r,n})}(e,t)}}(r))}}function k(e){var t=e.state.closeBrackets;return t&&!t.override&&e.getModeAt(e.getCursor()).closeBrackets||t}function s(e,t){var r=e.getRange(x(t.line,t.ch-1),x(t.line,t.ch+1));return 2==r.length?r:null}n(r.pairs+\\\"`\\\")});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/edit/closebrackets.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror/addon/edit/matchbrackets.js\":{\"text\":\"// CodeMirror, copyright (c) by Marijn Haverbeke and others\\n// Distributed under an MIT license: https://codemirror.net/LICENSE\\n!function(t){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?t(require(\\\"../../lib/codemirror\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"../../lib/codemirror\\\"],t):t(CodeMirror)}(function(i){var h=/MSIE \\\\d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode\u003C8),k=i.Pos,p={\\\"(\\\":\\\")>\\\",\\\")\\\":\\\"(\u003C\\\",\\\"[\\\":\\\"]>\\\",\\\"]\\\":\\\"[\u003C\\\",\\\"{\\\":\\\"}>\\\",\\\"}\\\":\\\"{\u003C\\\",\\\"\u003C\\\":\\\">>\\\",\\\">\\\":\\\"\u003C\u003C\\\"};function v(t){return t&&t.bracketRegex||/[(){}[\\\\]]/}function u(t,e,n){var r=t.getLineHandle(e.line),i=e.ch-1,c=n&&n.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var a=v(n),o=!c&&0\u003C=i&&a.test(r.text.charAt(i))&&p[r.text.charAt(i)]||a.test(r.text.charAt(i+1))&&p[r.text.charAt(++i)];if(!o)return null;var l=\\\">\\\"==o.charAt(1)?1:-1;if(n&&n.strict&&0\u003Cl!=(i==e.ch))return null;var s=t.getTokenTypeAt(k(e.line,i+1)),h=f(t,k(e.line,i+(0\u003Cl?1:0)),l,s||null,n);return null==h?null:{from:k(e.line,i),to:h&&h.pos,match:h&&h.ch==o.charAt(0),forward:0\u003Cl}}function f(t,e,n,r,i){for(var c=i&&i.maxScanLineLength||1e4,a=i&&i.maxScanLines||1e3,o=[],l=v(i),s=0\u003Cn?Math.min(e.line+a,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-a),h=e.line;h!=s;h+=n){var u=t.getLine(h);if(u){var f=0\u003Cn?0:u.length-1,m=0\u003Cn?u.length:-1;if(!(u.length>c))for(h==e.line&&(f=e.ch-(n\u003C0?1:0));f!=m;f+=n){var g=u.charAt(f);if(l.test(g)&&(void 0===r||t.getTokenTypeAt(k(h,f+1))==r)){var d=p[g];if(d&&\\\">\\\"==d.charAt(1)==0\u003Cn)o.push(g);else{if(!o.length)return{pos:k(h,f),ch:g};o.pop()}}}}}return h-n!=(0\u003Cn?t.lastLine():t.firstLine())&&null}function e(t,e,n){for(var r=t.state.matchBrackets.maxHighlightLineLength||1e3,i=[],c=t.listSelections(),a=0;a\u003Cc.length;a++){var o,l=c[a].empty()&&u(t,c[a].head,n);l&&t.getLine(l.from.line).length\u003C=r&&(o=l.match?\\\"CodeMirror-matchingbracket\\\":\\\"CodeMirror-nonmatchingbracket\\\",i.push(t.markText(l.from,k(l.from.line,l.from.ch+1),{className:o})),l.to&&t.getLine(l.to.line).length\u003C=r&&i.push(t.markText(l.to,k(l.to.line,l.to.ch+1),{className:o})))}if(i.length){h&&t.state.focused&&t.focus();function s(){t.operation(function(){for(var t=0;t\u003Ci.length;t++)i[t].clear()})}if(!e)return s;setTimeout(s,800)}}function c(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=e(t,!1,t.state.matchBrackets)})}i.defineOption(\\\"matchBrackets\\\",!1,function(t,e,n){function r(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}n&&n!=i.Init&&(t.off(\\\"cursorActivity\\\",c),t.off(\\\"focus\\\",c),t.off(\\\"blur\\\",r),r(t)),e&&(t.state.matchBrackets=\\\"object\\\"==typeof e?e:{},t.on(\\\"cursorActivity\\\",c),t.on(\\\"focus\\\",c),t.on(\\\"blur\\\",r))}),i.defineExtension(\\\"matchBrackets\\\",function(){e(this,!0)}),i.defineExtension(\\\"findMatchingBracket\\\",function(t,e,n){return!n&&\\\"boolean\\\"!=typeof e||(e=n?(n.strict=e,n):e?{strict:!0}:null),u(this,t,e)}),i.defineExtension(\\\"scanForBracket\\\",function(t,e,n,r){return f(this,t,e,n,r)})});\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/tiddlywiki/codemirror/addon/edit/matchbrackets.js\",\"module-type\":\"codemirror\"},\"$:/plugins/tiddlywiki/codemirror-closebrackets/readme\":{\"title\":\"$:/plugins/tiddlywiki/codemirror-closebrackets/readme\",\"text\":\"This plugin adds the ability to automatically insert the closing brackets when you type an opening bracket.\\nAlso enables highlighting of matching brackets.\\n\\nIt needs the latest [[CodeMirror plugin|$:/plugins/tiddlywiki/codemirror]] to be installed\\n\\n\"}}}"}, @@ -245,14 +246,15 @@ Error message and password prompt {"title":"$:/plugins/tobibeer/base64","description":"base64 encoding and decoding for ~TiddlyWiki","author":"Tobias Beer","version":"0.5.0","core-version":">=5.1.9","source":"https://github.com/tobibeer/tw5-base64","documentation":"https://tobibeer.github.io/tw5-base64","plugin-type":"plugin","requires":"","list":"readme","dependents":"","type":"application/json","text":"{\n \"tiddlers\": {\n \"$:/plugins/tobibeer/base64/filter.js\": {\n \"title\": \"$:/plugins/tobibeer/base64/filter.js\",\n \"text\": \"/*\\\\\\r\\ntitle: $:/plugins/tobibeer/base64/filter.js\\r\\ntype: application/javascript\\r\\nmodule-type: filteroperator\\r\\n\\r\\nA filter to encode and decode base64\\r\\n\\r\\n@preserve\\r\\n\\\\*/\\r\\n(function(){\\\"use strict\\\";exports.base64=function(e,r,t){var n=\\\"\\\",o=r.suffix==\\\"decode\\\";try{if(r.operand){n=r.operand}else{e(function(e,r){n+=r})}n=o?atob(n):btoa(n)}catch(i){return[\\\"Error in base64 filter trying to \\\"+(o?\\\"de\\\":\\\"en\\\")+\\\"code'\\\"+n+\\\"':\\\\n\\\"+i]}return[n]}})();\",\n \"type\": \"application/javascript\",\n \"module-type\": \"filteroperator\"\n },\n \"$:/plugins/tobibeer/base64/readme\": {\n \"title\": \"$:/plugins/tobibeer/base64/readme\",\n \"text\": \"The plugin $:/plugins/tobibeer/base64 provides:\\n\\n; base64[]\\r\\n: a filter to encode text to base64\\n\\n; base64:decode[]\\r\\n: and dencode base64 to text\\n\\n\u003Cbr>\\n\\n; documentation / examples / demos...\\r\\n: http://tobibeer.github.io/tw5-plugins#base64\"\n }\n }\n}"}, {"created":"20220920084517972","text":"Octt Knowledge Base || // Static version available at [ext[./Static.html]].//","title":"$:/SiteSubtitle","modified":"20230110220531245"}, {"created":"20220920084457368","title":"$:/SiteTitle","text":"OcttKB","modified":"20220920084507769"}, +{"created":"20230116211857857","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/bimlas/locator","text":"no","modified":"20230116211905602"}, {"created":"20230114232634691","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/flibbles/relink","text":"yes","modified":"20230114232634691"}, {"created":"20230114232642060","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/flibbles/relink-titles","text":"yes","modified":"20230114232642060"}, {"created":"20230114232107020","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/Gk0Wk/echarts","text":"yes","modified":"20230114232107020"}, {"created":"20230114232123587","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/Gk0Wk/echarts-gl","text":"no","modified":"20230114232132523"}, {"created":"20230114232116851","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/Gk0Wk/echarts-stat","text":"no","modified":"20230114232121115"}, -{"created":"20230114232623300","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/kookma/commander","text":"no","modified":"20230114232626611"}, +{"created":"20230114232623300","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/kookma/commander","text":"yes","modified":"20230116211923298"}, {"created":"20230114232152923","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/kookma/utility","text":"no","modified":"20230114232442987"}, -{"created":"20230114231944260","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/miao/tw-2048","text":"yes","modified":"20230114231944260"}, +{"created":"20230114231944260","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/miao/tw-2048","text":"no","modified":"20230116211840736"}, {"created":"20230114232200219","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/temp/RemoteAssetInfo/https://tiddly-gittly.github.io/TiddlyWiki-CPL/library/index.html/$:/plugins/wikilabs/uni-link","text":"no","modified":"20230114232441603"}, {"created":"20230112164411567","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/async","text":"no","modified":"20230112164413703"}, {"created":"20230108200138259","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/blog","text":"no","modified":"20230108200140755"}, @@ -262,6 +264,7 @@ Error message and password prompt {"created":"20221104182133139","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/codemirror-fullscreen","text":"no","modified":"20221104182138395"}, {"created":"20221108100403434","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/comments","text":"yes","modified":"20230114232532659"}, {"created":"20221108100414623","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/dynannotate","text":"no","modified":"20230108200210779"}, +{"created":"20230116211753384","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/freelinks","text":"yes","modified":"20230116211753384"}, {"created":"20230108200227620","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/github-fork-ribbon","text":"no","modified":"20230108200240469"}, {"created":"20221109142919515","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/internals","text":"no","modified":"20221109143020955"}, {"created":"20221108100451117","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/menubar","text":"no","modified":"20221108100454250"}, @@ -273,11 +276,12 @@ Error message and password prompt {"created":"20221109143004274","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/tw5.com-docs","text":"no","modified":"20221109143005435"}, {"created":"20221108100524743","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/xlsx-utils","text":"no","modified":"20221109143007747"}, {"created":"20230108200252323","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tiddlywiki.com/library/v5.2.3/index.html/$:/temp/RemoteAssetInfo/https://tiddlywiki.com/library/v5.2.3/index.html/$:/plugins/tiddlywiki/xmldom","text":"no","modified":"20230108200257364"}, +{"created":"20230116211824537","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/temp/RemoteAssetInfo/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/plugins/tobibeer/hash","text":"no","modified":"20230116211829680"}, {"created":"20230108200113123","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/temp/RemoteAssetInfo/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/plugins/tobibeer/plantuml","text":"no","modified":"20230108200117260"}, {"created":"20230108200054788","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/temp/RemoteAssetInfo/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/plugins/tobibeer/sparkl","text":"no","modified":"20230108200124531"}, -{"created":"20221109144756834","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/temp/RemoteAssetInfo/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/plugins/tobibeer/split","text":"no","modified":"20221109162504736"}, +{"created":"20221109144756834","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/temp/RemoteAssetInfo/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/plugins/tobibeer/split","text":"yes","modified":"20230116211830913"}, {"created":"20221109162512951","title":"$:/state/add-plugin-info/$:/temp/ServerConnection/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/temp/RemoteAssetInfo/https://tobibeer.github.io/tw5-plugins/library/index.html/$:/plugins/tobibeer/value","text":"no","modified":"20230108200106539"}, -{"created":"20221109142817793","title":"$:/state/addplugins/tab-1342078386","text":"$:/config/TiddlyWiki-CPL/GitHub","modified":"20230114232551660"}, +{"created":"20221109142817793","title":"$:/state/addplugins/tab-1342078386","text":"$:/config/TiddlyWiki-CPL/GitHub","modified":"20230116211834361"}, {"created":"20230109143853256","title":"$:/state/advancedsearch/currentTab","text":"$:/ThirdParty/TiddlyTools/FilterGenerators/Tags","modified":"20230111152605879"}, {"created":"20230112111303249","title":"$:/state/edit/references--1005422481","text":"show","modified":"20230112111303250"}, {"created":"20220920193053266","title":"$:/state/edit/references--1487996250","text":"hide","modified":"20220920193054202"}, @@ -289,7 +293,7 @@ Error message and password prompt {"created":"20230112154542269","title":"$:/state/edit/references-2099622070","text":"hide","modified":"20230112154544212"}, {"created":"20230112221558289","title":"$:/state/edit/references-332165217","text":"hide","modified":"20230112221559913"}, {"created":"20230110224547000","title":"$:/state/edit/references-828285479","text":"hide","modified":"20230110224548160"}, -{"created":"20220920191756623","title":"$:/state/editpreviewtype","text":"$:/plugins/tiddlywiki/internals/EditTemplate/body/preview/raw","modified":"20230109162935656"}, +{"created":"20220920191756623","title":"$:/state/editpreviewtype","text":"$:/core/ui/EditTemplate/body/preview/output","modified":"20230116141039810"}, {"created":"20221108223526572","title":"$:/state/folded/$:/Apps/Dashboard/index.html","text":"hide","modified":"20230109162823352"}, {"created":"20230108200647964","title":"$:/state/folded/$:/ControlPanel","text":"show","modified":"20230108212807728"}, {"created":"20221110131939563","title":"$:/state/folded/$:/Macros/b64TidUriEnc.js","text":"show","modified":"20221110151548461"}, @@ -316,6 +320,7 @@ Error message and password prompt {"created":"20230108200031179","title":"$:/state/plugin-info--1142360890-$:/plugins/tiddlywiki/internals---1137124216","text":"readme","modified":"20230108200031755"}, {"created":"20230108195742042","title":"$:/state/plugin-info--1198616570-$:/plugins/tiddlywiki/sax--581236916","text":"readme","modified":"20230110151436255"}, {"created":"20230108212813247","title":"$:/state/plugin-info--1704486200-$:/plugins/tiddlywiki/github-fork-ribbon--432450505","text":"contents","modified":"20230108212934488"}, +{"created":"20230116211956416","title":"$:/state/plugin-info--506288826-$:/plugins/kookma/commander---1769462396","text":"contents","modified":"20230116211957624"}, {"created":"20221109225117598","title":"$:/state/plugin-info--649947512-$:/plugins/tobibeer/base64---1531467439","text":"contents","modified":"20221109225117598"}, {"created":"20230108195622738","title":"$:/state/plugin-info--700587726-$:/plugins/tiddlywiki/railroad","text":"no","modified":"20230108195659610"}, {"created":"20230108195626498","title":"$:/state/plugin-info--700587726-$:/plugins/tiddlywiki/railroad--1474474028","text":"readme","modified":"20230108195657298"}, @@ -324,7 +329,7 @@ Error message and password prompt {"created":"20221108100203119","title":"$:/state/plugin-info-1785259528-$:/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki---1739364784","text":"contents","modified":"20221108100244432"}, {"created":"20220920140149154","title":"$:/state/plugin-info-1958370054-$:/core--2000059281","text":"contents","modified":"20220920140149154"}, {"created":"20230108195707554","title":"$:/state/plugin-info-1998008712-$:/plugins/tiddlywiki/railroad--119403598","text":"readme","modified":"20230108195709210"}, -{"created":"20220920140732083","title":"$:/state/showeditpreview","text":"no","modified":"20230112094840559"}, +{"created":"20220920140732083","title":"$:/state/showeditpreview","text":"no","modified":"20230116212214361"}, {"created":"20220920114858684","title":"$:/state/ShowPaletteEditor","text":"yes","modified":"20220920114858684"}, {"created":"20220920174307633","title":"$:/state/sidebar","text":"yes","modified":"20230114232458107"}, {"created":"20220922115715109","title":"$:/state/tab--1091387428","text":"Music Archiving Status/Desired","modified":"20220923072023997"}, @@ -347,8 +352,8 @@ Error message and password prompt {"created":"20230108195829187","title":"$:/state/tab-791689762","text":"$:/plugins/tiddlywiki/qrcode/MakeContactQR","modified":"20230108195830858"}, {"created":"20230110152841020","title":"$:/state/tab-914888664","text":"$:/core/ui/TiddlerInfo/References","modified":"20230110152841020"}, {"created":"20220921221238452","title":"$:/state/tab-99014043","text":"$:/core/ui/ControlPanel/EditTemplateBody","modified":"20220921221239099"}, -{"created":"20220920114911876","title":"$:/state/tab/moresidebar-1850697562","text":"$:/core/ui/MoreSideBar/All","modified":"20230114234221348"}, -{"created":"20220920092307479","title":"$:/state/tab/sidebar--595412856","text":"$:/core/ui/SideBar/More","modified":"20230114234220492"}, +{"created":"20220920114911876","title":"$:/state/tab/moresidebar-1850697562","text":"$:/core/ui/MoreSideBar/Shadows","modified":"20230116211945673"}, +{"created":"20220920092307479","title":"$:/state/tab/sidebar--595412856","text":"$:/core/ui/SideBar/Recent","modified":"20230116214541330"}, {"created":"20220920114638764","title":"$:/state/tabs/controlpanel/toolbars-1345989671","text":"$:/core/ui/ControlPanel/Toolbars/EditToolbar","modified":"20230109112510655"}, {"created":"20230109231545587","text":"inline","title":"$:/state/tag-cloud-count","modified":"20230109231831243"}, {"created":"20230111212759834","title":"$:/state/toc/TableOfContents-Apps--1089262602","text":"close","modified":"20230111212800395"}, @@ -404,11 +409,12 @@ Error message and password prompt {"created":"20230109220619790","title":"$:/state/tree/$:/ThirdParty/TiddlyTools/","text":"hide","modified":"20230110224427793"}, {"created":"20230109220622940","title":"$:/state/tree/$:/ThirdParty/TiddlyTools/FilterGenerators/","text":"show","modified":"20230109220622940"}, {"created":"20230109220622044","title":"$:/state/tree/$:/ThirdParty/TiddlyTools/Macros/","text":"hide","modified":"20230109220622628"}, -{"created":"20230110224557624","title":"$:/state/tree/$:/ThirdParty/tobibeer/","text":"hide","modified":"20230110224558304"}, +{"created":"20230110224557624","title":"$:/state/tree/$:/ThirdParty/tobibeer/","text":"hide","modified":"20230116211937929"}, {"created":"20230110224425624","title":"$:/state/tree/$:/ThirdParty/zemoxian/","text":"hide","modified":"20230111144254721"}, +{"created":"20230116211721929","title":"$:/state/tree/$:/Tools/","text":"show","modified":"20230116211721929"}, {"created":"20220920211944968","text":"{{$:/OcttKB/StaticBanner}}","tags":"","title":"$:/StaticBanner","modified":"20230112221911675"}, {"title":"$:/status/RequireReloadDueToPluginChange","text":"yes"}, -{"title":"$:/StoryList","created":"20230114123630759","text":"","list":"","modified":"20230114235704732"}, +{"title":"$:/StoryList","created":"20230116140958387","text":"","list":"","modified":"20230116222342574"}, {"created":"20230114161404958","text":"/*\\\nCredits: 1337box by Leah Rowe, Creative Commons Zero 1.0\nInfo: \u003Chttps://vimuser.org/1337box.html>\n\\*/\n.f, .f * {\n position: fixed;\n max-width: 100%;\n max-height: 100%;\n top: 50%;\n left: 50%\n}\n.f * { transform: translate(-50%,-50%) }\n.f {\n display: none;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n background:rgba(0,0,0,0.8);\n}\n*:focus + .f { display:block; }\nimg { cursor:pointer; }\n","title":"$:/Styles/1337box/shadow.css","modified":"20230114163044372","type":"text/css","tags":""}, {"created":"20230112154615238","text":"\\define --HeadingColor0() #c061cb;\n\n.iFrame100 {\nMargin: 0px;\nPadding: 0px;\nWidth: 100vw;\nHeight: 100vh;\n}\n\n.MediaWikiEmbed, .MediaWikiEmbedBlock {\n Border-Left: 4px Solid \u003C\u003C--HeadingColor0>>;\n Padding-Left: 1em /*8px*/;\n}\n\n.MediaWikiEmbedCover { float: right; }\n.MediaWikiEmbedCover > * { max-height: 35vh /*50vh*/; }\n\n.EmbedFrom, .Embed-From,\n.MediaWikiEmbed-From, .MediaWikiEmbedFrom {\n Font-Size: Smaller;\n Font-Style: Italic;\n}","tags":"$:/tags/Stylesheet","title":"$:/Styles/Embed","modified":"20230113120146141"}, {"created":"20230108190740128","text":"\\define --HeadingColor0() #c061cb;\n\n\\define sidebarbreakpoint()\n\u003C$text text={{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}/>\n\\end\n\n\\define if-fluid-fixed(text,hiddenSidebarText)\n\u003C$reveal state=\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\" type=\"match\" text=\"fluid-fixed\">\n$text$\n\u003C$reveal state=\"$:/state/sidebar\" type=\"nomatch\" text=\"yes\" default=\"yes\">\n$hiddenSidebarText$\n\u003C/$reveal>\n\u003C/$reveal>\n\\end\n\ndd:before {\n content: \"»\";\n}\nul dl {\n margin-left: 8px;\n}\nul dl dd {\n margin-left: 24px;\n}\n\n@media (min-width: \u003C\u003Csidebarbreakpoint>>) {\n .tc-sidebar-scrollable {\n padding-left: 0px;\n padding-right: 0px;\n }\n .tc-story-river {\n padding: {{$:/Config/OcttKB/Tweaks/Starlight/.tc-story-river Padding}};\n }\n .tc-tiddler-frame {\n padding: 20px /*24px 32px 24px 32px*/;\n margin-bottom: 20px;\n }\n\n\u003C\u003Cif-fluid-fixed text:\"\"\"\n .tc-story-river {\n margin-right: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth}};\n }\n\"\"\" hiddenSidebarText:\"\"\"\n .tc-story-river {\n margin-right: 0px;\n padding-right: 24px;\n }\n\"\"\">>\n}\n\n.tc-story-river {\n padding-bottom: 0px;\n}\n.tc-story-river ~ p {\n display: none;\n}\n\n.tc-tiddler-frame,\n.tc-tiddler-body p iframe {\n Box-Shadow: 2px 2px 12px RGBA(128, 128, 128, 0.5);\n}\n.tc-tiddler-body p iframe {\n Border: None;\n}\n\n.tc-tiddler-frame {\n border-radius: 4px;\n}\n\n/* Large tag selection menu, optimized for desktop + nicer tag button */\n.tc-edit-tags .tc-edit-add-tag .tc-block-tags-dropdown {\n position: revert;\n white-space: revert;\n}\n.tc-edit-tags .tc-edit-add-tag .tc-block-tags-dropdown a {\n display: inline-block;\n border-radius: 1em;\n}\n\n.DirList-Title, .DirList-Title * {\n Font-Style: Normal !Important;\n}\n\n.Separator-Right:last-of-type {\n Display: None;\n}\n\n.StartHere-Button {\n font-size: x-large /*smaller*/;\n text-decoration: none !important;\n user-select: none;\n}\n.StartHere-Button > img {\n width: 122px;\n image-rendering: crisp-edges;\n}\n.StartHere-Button > span {\n position: relative;\n top: -20px /*-10px*/;\n}\n\nImg.Img90, .Img90 Img {\n Max-Width: 90%;\n Max-Height: 90vh;\n}","tags":"$:/tags/Stylesheet","title":"$:/Styles/Main","modified":"20230114163813789"}, @@ -449,7 +455,7 @@ Error message and password prompt {"created":"20140114170004978","text":"Credits: [[https://tw5magick.tiddlyspot.com]]\n\nThis great trick was shown to the tiddlywiki google group by [[Alberto Molina|https://groups.google.com/forum/#!topic/tiddlywiki/OCntQ79DuwM]]. I enhanced it a bit.\n\n|!Search tag: | \u003C$edit-text tiddler=\"$:/temp/RenameTags/search\" tag=\"input\" type=\"text\"/> |\n|!Replace by: | \u003C$edit-text tiddler=\"$:/temp/RenameTags/replace\" tag=\"input\" type=\"text\"/> |\n\n---\n\u003C$reveal type=\"nomatch\" text=\"\" state=\"$:/temp/RenameTags/replace\">\n\n!First step\n!!//Apply the tag \u003C$tiddler tiddler={{$:/temp/RenameTags/replace}}>\u003C$transclude tiddler=\"$:/core/ui/TagTemplate\"/>\u003C/$tiddler> to the following tiddlers//\n\u003C$list filter=\"[!has[draft.of]tag{$:/temp/RenameTags/search}!tag{$:/temp/RenameTags/replace}sort[created]]\">\n\u003C$checkbox tag={{$:/temp/RenameTags/replace}}> \u003C$link to={{!!title}}>\u003C$view field=\"title\"/>\u003C/$link>\u003C/$checkbox>\u003Cbr/>\n\u003C/$list>\n\u003C/$reveal>\n\n\u003C$reveal type=\"nomatch\" text=\"\" state=\"$:/temp/RenameTags/search\">\n\n!Second step\n!!//Remove the tag \u003C$tiddler tiddler={{$:/temp/RenameTags/search}}>\u003C$transclude tiddler=\"$:/core/ui/TagTemplate\"/>\u003C/$tiddler> from the following tiddlers//\n\u003C$list filter=\"[!has[draft.of]tag{$:/temp/RenameTags/search}tag{$:/temp/RenameTags/replace}sort[created]]\">\n\u003C$checkbox tag={{$:/temp/RenameTags/search}}> ~~\u003C$link to={{!!title}}>\u003C$view field=\"title\"/>\u003C/$link>~~\u003C/$checkbox>\u003Cbr/>\n\u003C/$list>\n\u003C/$reveal>","title":"$:/Tools/RenameTags","tags":"","modifier":"Stephan Hradek","modified":"20220926114819573","description":"A great trick invented by Alberto Molina to search and replace tags.","creator":"Stephan Hradek"}, {"created":"20220920114605308","title":"$:/view","text":"classic","modified":"20220920114631852"}, {"created":"20220923133930693","text":"''1337x'' is a [[torrent|BitTorrent:en]] search engine.\n\n[img[https://upload.wikimedia.org/wikipedia/commons/b/bb/1337X_logo.svg]]\n\nIn recent years, the service has become more popular than some of its older alternatives, in part thanks to some of its quality-ensuring rules.\n\nThe site features text search, categories, and user profiles.","tags":"Internet i18n:en","title":"1337x:en","modified":"20220926115014338"}, -{"created":"20230111153852789","text":"\u003C\u003CMediaWiki 2048_(video_game) en 1>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://play2048.co\">>","tags":"i18n:en TODO Gaming Puzzle","title":"2048:en","modified":"20230113175835321"}, +{"created":"20230111153852789","text":"\u003C\u003CMediaWiki 2048_(video_game) en 1>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://play2048.co\">>\n\n!! ''Implementations''\n* ''Official (Gabriele Cirulli)'': [[Web|https://play2048.co]] | [[Git|https://github.com/gabrielecirulli/2048]]","tags":"i18n:en Gaming Puzzle TODO","title":"2048:en","modified":"20230116222045171"}, {"created":"20230108192258947","text":"\u003C\u003CMediaWiki ActivityPub en 1>>","title":"ActivityPub:en","modified":"20230111152725841","tags":"TODO"}, {"created":"20230110225425199","text":"\u003C\u003CMediaWiki Animal_Crossing en 2>>","tags":"Nintendo i18n:en Gaming TODO","title":"Animal Crossing:en","modified":"20230111152734576"}, {"created":"20230109155822410","text":"\u003C\u003CTCurDirList>>","title":"Apps","modified":"20230110165725755","tags":"TableOfContents"}, @@ -459,7 +465,10 @@ Error message and password prompt {"created":"20220923190200484","text":"''BitTorrent'' is an open [[peer-to-peer|peer-to-peer:en]] file sharing protocol. It is expecially common among the [[free sharing]] community.\n\nIts only requirement for each user is a client application, meaning that efficiently sharing with BitTorrent is effectively free, since a beefy server isn't needed to make the content circulate.\n\nFor this reason, the protocol is most commonly used to share large files that have a lot of people requesting them, such as movies, operating systems, and videogames.\n\nThis kind of information would be usually expensive to share using a traditional client-server infrastructure, but with BitTorrent every client can seed (send) data to other requesting clients, exponentially optimizing delivery.","tags":"Internet BitTorrent P2P i18n:en","title":"BitTorrent:en","modified":"20220926115016291"}, {"created":"20230112100848709","text":"\u003C\u003CMediaWiki Celeste_(video_game) en 3>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://www.lexaloffle.com/bbs/widget.php?pid=15133\" \" \" 'style=\"width:100%; height:512px\"'>>","tags":"Gaming i18n:en TODO Platformer","title":"Celeste:en","modified":"20230114151134183"}, {"created":"20220925131851817","text":"!! Creative Commons\n\n!!! ''Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)''\n\nThis is a human-readable summary of (and not a substitute for) the [[license|https://creativecommons.org/licenses/by-sa/4.0/legalcode]].\n\n\u003Cdetails>\n\u003Csummary>Disclaimer\u003C/summary>\n\u003Cp>This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.\u003C/p>\n\n\u003Cp>Creative Commons is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.\u003C/p>\n\u003C/details>\n\n[img[$:/ThirdParty/Buttons/CC BY-SA.svg]]\n\n!!!'' You are free to:''\n\n''Share'' — copy and redistribute the material in any medium or format\n\n''Adapt'' — remix, transform, and build upon the material\nfor any purpose, even commercially.\n\nThe licensor cannot revoke these freedoms as long as you follow the license terms.\n\n!!! ''Under the following terms:''\n\n''Attribution'' — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.\n\n''ShareAlike'' — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.\n\n''No additional restrictions'' — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.\n\n!!! ''Notices:''\nYou do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.\n\nNo warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.","title":"Creative Commons/BY-SA 4.0:en","modified":"20230112094422566","tags":"i18n:en TODO"}, +{"created":"20230116204701243","text":"''[[daedalOS|https://dustinbrett.com]]'' is an [[open-source]] [[pseudo-OS]] made for the Web browser.\n\n* Git: [[github.com/DustinBrett/daedalOS|https://github.com/DustinBrett/daedalOS]]\n\n!! ''Try it''\n\n\u003C\u003CiFrameFixed \"https://dustinbrett.com\">>","tags":"i18n:en","title":"daedalOS:en","modified":"20230116215530993"}, +{"created":"20230116202834289","text":"\u003C\u003CMediaWiki Doom_(franchise) en 4>>\n\n\u003C!--\n!! ''Gamin' Time''\n\n\n\u003C\u003CiFrameFixed \"https://dos.zone/player/?bundleUrl=https://cdn.dos.zone/custom/dos/doom.jsdos&exit=1\">>\n--->\n","tags":"i18n:en Retrogaming TODO FPS","title":"DOOM:en","modified":"20230116211221991"}, {"created":"20221107225602829","text":"!!! ''Outlook''\n* ''Username'': Full Email Address (e.g. `example@outlook.com`)\n* ''Password'': Standard Account Password\n* ''Server'': `smtp-mail.outlook.com`\n* ''Ports'':\n** ''TLS'': `587`\n** ''No Encryption'': `25`\n* ''Daily Limits'': 250 Mails, or [verification needed] 100 different Recipients\n\n!!! ''Yahoo Mail''\n\n* ''Username'': Full Email Address (e.g. `example@yahoo.com`)\n* ''Password'': App Password; Must be set from Yahoo's account security settings\n* ''Server'': `smtp.mail.yahoo.com`\n* Ports: 465 (With SSL)\n** ''SSL'': `465`\n** ''TLS'': `587`\n* ''Daily Limits''\u003Csup>[verification needed]\u003C/sup>: 500 Mails, or 100 Connections","tags":"i18n:en","title":"Email Settings","modified":"20221110230438336"}, +{"created":"20230116211647194","text":"\u003C\u003CMediaWiki Emulator en 1>>\n\n!! ''Resources''\n\n* https://old.reddit.com/r/iosgaming/comments/tcdpr4/list_of_browser_based_emulators/\n\n!!! ''Web Sites''\n* [[Emulation General Wiki|https://emulation.gametechwiki.com]]\n\n!!! ''Game Console Emulators''\n* https://github.com/EmulatorJS\n* https://github.com/44670/desmume-wasm\n* https://github.com/js-emulators/desmond\n* https://github.com/44670/44vba\n* https://github.com/skylersaleh/SkyEmu\n\n!!! ''Miscellaneous Emulators''\n* https://dos.zone/mobile/\n\n!!! ''Other''\n* [[Thumbnails for RetroArch|https://github.com/libretro-thumbnails/libretro-thumbnails]]\n* https://github.com/Abdess/retroarch_system\n* [[Emulator files|https://emulation.gametechwiki.com/index.php/Emulator_files]] (system BIOS and such)\n","tags":"i18n:en","title":"Emulation:en","modified":"20230116221652578"}, {"created":"20220922204615800","title":"English","icon":"$:/languages/en-GB/icon","modified":"20220922204615800"}, {"created":"20230113095118172","text":"''[[Eruda|https://eruda.liriliri.io]]'' is an open-source JavaScript applet for Web browsers, created to bring developer tools to those that lack them (like mobile ones). It provides the following features (from the project's README):\n\n* Console: Display JavaScript logs and run commands\n* Elements: Check the DOM's state\n* Network: Show requests status\n* Resources: Show localStorage and cookie information\n* Info: Show URL and user agent info\n* Snippets: Include snippets used most often\n* Sources: HTML/CSS/JS, source code viewer\n\n!!! ''More Resources''\n\n* Source Code and Documentation: [[github.com/liriliri/eruda|https://github.com/liriliri/eruda]]\n* \u003Ch3> ➡️\n\u003Ca href=\"\njavascript:(\nfunction () {\n if (!document.getElementById('eruda-main')) {\n var elem = document.createElement('script');\n elem.id = 'eruda-main';\n elem.src = 'https://cdn.jsdelivr.net/npm/eruda';\n document.body.appendChild(elem);\n elem.onload = function () {\n eruda.init();\n };\n };\n})();\">Inject Eruda into this page\u003C/a>\n\u003C/h3>","tags":"TODO i18n:en Apps","title":"Eruda:en","modified":"20230113230810190"}, {"created":"20230114124144464","text":"\u003C\u003CMediaWiki Fediverse en 1 Fediverse_logo_proposal.svg>>\n\n!! ''List of Platforms''\n\nExplore [[Fediverse Observer|https://hometown.fediverse.observer]], [[Fediverse.Party|https://fediverse.party]], or read below.\n\n!!! ''Media''\n\n* [[PeerTube|PeerTube:en]] - Video sharing\n* [[Pixelfed|Pixelfed:en]] - Image sharing\n\n!!! ''Microblogging''\n\n* [[GoToSocial|https://gotosocial.org]] - //Fast, fun, ActivityPub server, powered by Go//\n* [[Mastodon|Mastodon:en]] | [[Hometown|https://github.com/hometown-fork/hometown]] | [[glitch-soc|https://github.com/glitch-soc]]\n* [[Misskey|Misskey:en]] | [[Dolphin|https://github.com/syuilo/dolphin]]\n* [[Pleroma|https://pleroma.social]] | [[Akkoma|https://akkoma.social]] | [[Soapbox|https://soapbox.pub]]\n* [[Takahē|https://jointakahe.org]] - //An efficient ActivityPub Server, for small installs with multiple domains//\n\n!!! ''Other''\n\n* [[Epicyon|https://epicyon.net]] [[[Git|https://gitlab.com/bashrc2/epicyon]]] - //Designed for simplicity and accessibility, includes calendar, news and sharing economy features//\n* [[Friendica|Friendica:en]]\n* [[Lemmy|Lemmy:en]] [[[Git|https://github.com/ernestwisniewski/kbin]], [[Dev Instance|https://dev.karab.in]]] - //🐀 A link aggregator and forum for the fediverse//\n* [[/kbin|https://kbin.pub]] - //Fediverse of content//\n\n!!! ''Coming Soon''\n\n* [[Goldfish Social|https://github.com/Goldfish-Social/Goldfish]]","tags":"i18n:en TODO","title":"Fediverse","modified":"20230114235729238"}, @@ -468,9 +477,10 @@ Error message and password prompt {"created":"20230113225224277","text":"* https://freshrss.org\n* https://github.com/FreshRSS\n* https://hub.docker.com/r/linuxserver/freshrss","tags":"TODO i18n:en","title":"FreshRSS:en","modified":"20230113225506443"}, {"created":"20230113105935789","text":"\u003C\u003CMediaWiki Friendica en 2>>","tags":"i18n:en TODO Fediverse","title":"Friendica:en","modified":"20230113110013794"}, {"created":"20221006205957260","text":"* [[[PICO-8] Advanced Micro Platformer - Starter Kit|https://www.lexaloffle.com/bbs/?tid=28793]]","tags":"i18n:en Development Gaming","title":"GameDev Resources","modified":"20221006213515766"}, +{"created":"20230116202756249","text":"\u003C\u003CMediaWiki Video_game en 3>>\n","tags":"i18n:en","title":"Gaming:en","modified":"20230116221920786"}, {"created":"20221018083042590","text":"!!! ''Commands (+ Flags/Tips)''\n\n* `clone ${URL}`: Clone (download) a repo to the computer storage\n** `--depth=${n}`: Explicitly specify how many commits to download (starting from latest)\n\n* `add ${Path}`: Update Git's internal list of tracked files. This should be issued (ideally for the root directory, `.`) before trying to commit after creating/deleting/moving/renaming files/folders.\n** A `.gitignore` file, containing a list of files or folder paths (one per line) can be created in a repo's root, to make the `add` command ignore those: they won't be tracked by Git, and thus won't be committed or pushed. Note: adding already tracked paths to `.gitignore` doesn't make it so they stop being tracked, they must be manually be deleted and then the `add` command issued again.\n\n* `config`\n** `credential.helper store`\n\n!!! ''Miscellaneous Flags''\n\n* `--global`: Apply a config command to the global user configuration (omitting applies to current directory if it is a Git repo)","tags":"Snippets i18n:en","title":"Git/Snippets","modified":"20221105130334227"}, {"created":"20221105125144413","text":"!!! ''Commands (+ Flags/Tips)''\n* `--list-keys`: List installed keys.\n* `--import Public.pgp`: Import someone's public key.\n* `--gen-key`: Generate a new keypair, with default options.\n* `--full-generate-key`: Generate a new keypair, customizing all the options.\n* `--edit-key {FINGERPRINT}`: Edit the internal data of a key.\n* `--output Revoke.pgp --gen-revoke {FINGERPRINT}`: Generate and output the revoke certificate for a key.\n* `--output Public.pgp --export {USER@EMAIL}`: Export a public key file.\n* ⚠️ `--output Private.pgp --export-secret-key {USER@EMAIL}`: Export a private key file.\n* ⚠️ `--output BackupPrivate.pgp --export-secret-keys --export-options export-backup {USER@EMAIL}`: Export private key(s) in backup format.\n* `--import-options restore --import BackupPrivate.pgp`\n\n!!!! ''`--edit-key` Commands''\n* `list`: List identities of the keys.\n* `uid {n}`: Select an identity to operate on.\n* `notation`: Write new notations inside the key; Prepend a dash (`-`) when typing a notations to remove it from the key, if present; Type just `none` to delete all notations.\n* `save`: Write changes to the key and quit.\n\n!!!! ''`--export` Flags''\n* `--armor`: Explicitly export as ASCII-armored, aka in text format.\n\n!!! ''Configuration Options''\n\n//These are usually inserted one-per-line in `~/gpg.conf`.//\n\n* `keyserver {URL}`","tags":"Snippets i18n:en","title":"GnuPG/Snippets","modified":"20221105173958587"}, -{"created":"20230113095521581","text":"\u003C\u003CMediaWiki Hacker_News en 2>>\n\n!! ''The Latest News''\n\n\n\u003C\u003CiFrameBypass \"https://news.ycombinator.com\">>\n","tags":"i18n:en TODO","title":"Hacker News:en","modified":"20230113172701791"}, +{"created":"20230113095521581","text":"\u003C\u003CMediaWiki Hacker_News en 2>>\n\n!! ''The Latest News''\n\n\u003C\u003CiFrameBypass \"https://news.ycombinator.com\">>\n","tags":"i18n:en TODO","title":"Hacker News:en","modified":"20230116141005300"}, {"created":"20220922204301052","text":"Interesting news I collect from the hacky tech Internet sphere (HN primarily, but not exclusively).\n\n* [[TOTP tokens on my wrist with the smartest dumb watch|https://blog.singleton.io/posts/2022-10-17-otp-on-wrist]]\n* [[Boeing 787s must be turned off and on every 51 days to prevent 'misleading data' being shown to pilots|https://www.theregister.com/2020/04/02/boeing_787_power_cycle_51_days_stale_data]]\n* [[Disposable Root Servers|https://blog.thc.org/disposable-root-servers]]\n* [[Neurons in a dish learn to play Pong — what’s next?|https://www.nature.com/articles/d41586-022-03229-y]]\n* [[retrowin32, a win32 emulator|https://neugierig.org/software/blog/2022/10/retrowin32.html]]\n* [[Ray Tracing In Notepad.exe At 30 FPS|http://kylehalladay.com/blog/2020/05/20/Rendering-With-Notepad.html]]\n* [[You can't buy a Raspberry Pi right now|https://www.jeffgeerling.com/blog/2022/you-cant-buy-raspberry-pi-right-now]]\n* [[7 Cool HTML Elements Nobody Uses|https://tapajyoti-bose.medium.com/7-cool-html-elements-nobody-uses-436598d85668]]\n* [[Despite faster broadband every year, web pages don't load any faster|https://www.datafantic.com/how-much-time-do-we-waste-waiting-for-websites-to-load]] [//[[c|https://readhacker.news/c/5mBGU]]//]\n* [[Avoiding homework with code (and getting caught)|https://alistair.blog/mochip]] [//[[c|https://readhacker.news/c/5mBHL]]//]\n* [[Show HN: I made an open-source Bitly alternative|https://readhacker.news/c/5mzDH]]\n* [[If the Moon Were Only 1 Pixel (2014)|https://readhacker.news/c/5myKf]]","tags":"Reading i18n:en Tech","title":"Hacking News","modified":"20221018220810405"}, {"created":"20220926115058940","text":"","title":"i18n:en","icon":"$:/languages/en-GB/icon","modified":"20230110180103216"}, {"created":"20220926115105492","title":"i18n:it","icon":"$:/languages/it-IT/icon","modified":"20220926115105492"}, @@ -483,6 +493,7 @@ Error message and password prompt {"created":"20220923152137538","text":"[[johncena141|https://github.com/jc141x]] (jc141) is specialized in the field of compiling and distributing free repacks of current PC games for GNU+Linux.\n\nBefore their arrival to the GNU+Linux gaming scene in 2020-2021, obtaining known-safe and working repacks of games for the platform was a challenge, with native Linux repacks being almost impossible to find and Windows ones often not working.\n\nIn just about a year, johncena141 has become the most trusted repacker among GNU+Linux gamers, by putting the focus of their work directly and exclusively on GNU+Linux, as well as proving transparency and efficiency in their operations.","tags":"Gaming i18n:en","title":"johncena141:en","modified":"20220926115016387"}, {"created":"20221104183123144","text":"''Keyoxide'' is a libre, self-hostable tool to create and verify online identities, like different profiles, through cryptography.\n\n* Website, docs, and official instance: https://keyoxide.org\n* Source code: https://codeberg.org/keyoxide","tags":"i18n:en","title":"Keyoxide:en","modified":"20221104183453300"}, {"created":"20230113102628101","text":"\u003C\u003CMediaWiki Lemmy_(software) en 1>>\n\n* Website: [[join-lemmy.org|https://join-lemmy.org]]\n* Git: [[github.com/LemmyNet/lemmy|https://github.com/LemmyNet]]\n* Developer's Instance: [[lemmy.ml|https://lemmy.ml]]","tags":"TODO Fediverse i18n:en","title":"Lemmy:en","modified":"20230114143356230"}, +{"created":"20230116221513491","text":"","tags":"i18n:en TODO","title":"Libretro:en","modified":"20230116222001210"}, {"created":"20230111153758951","text":"\u003C\u003CMediaWiki Linux en 5>>","tags":"i18n:en TODO","title":"Linux:en","modified":"20230111153845225"}, {"created":"20230111114229130","text":"* ''2023-01-10'' \u003Cdiv>\n\n; \"This group is unavailable due to copyright infringement.\"\n: TODO\n\u003C/div>\n","tags":"i18n:it TODO","title":"Lista incidenti","modified":"20230114125132061"}, {"created":"20230110220005274","text":"\u003C\u003CMediaWiki Mastodon_(social_network) en 3>>","tags":"Fediverse i18n:en TODO","title":"Mastodon:en","modified":"20230113102539290"}, @@ -506,7 +517,7 @@ Error message and password prompt {"created":"20220923110724649","text":"''Nintendo DS'' is a family of portable game consoles created by [[Nintendo|Nintendo:en]], succeding and preceding the GBA and 3DS families respectively.\n\n\u003C\u003CLImg \"https://web.archive.org/web/20220923111238/http://pbs.twimg.com/media/E5An_LGVkAQv9ol?format=jpg&name=large\" \"https://twitter.com/HugeNintendoDS/status/1409670660402466819?cxt=HHwWhsCiueb_k5AnAAAA\">>","title":"Nintendo DS:en","modified":"20230108213456636","tags":"Gaming Nintendo NDS i18n:en"}, {"created":"20221018215927772","text":"!! ''Moved''\n\nMoved to https://cryptpad.devol.it/sheet/#/2/sheet/view/kcmKvZ03cftF2U9SMlMk8m4s5XRVIVkb0SZTZIDqvL8/embed/\n\n\u003Cdel>\n\n!!! ''Licensed Games''\n\n* ''Animal Crossing: Wild World'' • Top screen is required to see stars, flying balloons, and Gulliver. It also shows the title screen logo, and the 3D world when a menu is open. All gameplay, dialogues, and menus are on the bottom screen, and the stylus or the buttons can be used interchangeably.\n\n* ''Kirby: Mass Attack'' • Top screen shows title screen logo, some tooltips in game, and stats (level name, points, fruits, Kirbys, medals). Gameplay and menus are on bottom screen, and only controlled with the stylus.\n\n* ''Kirby: Power'' Paintbrush\n\n* [Patch] ''New Super Mario Bros.'' (Macro-Friendly)\n\n* [Partially] ''Nintendogs''\n\n* ''Picross 3D'' • Top screen holds text like menu details and guides (like the tutorials), and puzzle overviews (in the selection menu and while playing), with details and time. The gameplay itself is on the bottom screen, and requires stylus and D-Pad/ABXY. To play without a top screen, it's effectively necessary to learn the unique game mechanics elsewhere (like in video gameplays).\n\n* ''Picross DS'' • Top screen has some text, for menu items details, tutorials and explanations, overwiew of puzzles in the selection menu, and their status (as well as time) while playing them. Gameplay is on the bottom screen, and requires either the D-Pad, A, B buttons, or the stylus (as well as START to access the pause menu).\n\n* ''Pokemon Dash''\n\n* [?] ''Pokemon Link!''\n\n* ''Puyo Puyo!! 20th anniversary'' • Top screen has details for menu entries, some secondary dialogues (the story ones happen on the bottom), points and results, and decorative in-game character animations. Menus can be navigated with either the buttons or the touch screen; gameplay happens on the bottom screen with D-Pad and A/B buttons.\n\n* [?] ''Puzzle League DS''\n\n* ''Tetris DS''\n\n* ''The Legend of Zelda: Phantom Hourglass''\n\n* [?] ''The Legend of Zelda - Spirit Tracks''\n\n* [?] ''Tingle no Balloon Fight DS''\n\n* [?] ''WarioWare: Do It Yourself''\n\n* [?] ''WarioWare: Touched!''\n\n\n!!! ''Licensed Apps''\n\n* ''Nintendo DS Browser'' • Top screen shows software logos, current URL, WiFi signal status, loading animation, count of loaded/total page elements, random and contextual tooltips, and page scrollback buffer. Menu and web navigation happen entirely on the bottom screen, except when Panorama Mode (desktop view) is enabled. Navigation happens primarily with the stylus; buttons are supported only for some operations.\n\n\n!!! ''Homebrew Games''\n\n\n\n\n!!! ''Homebrew Apps''\n\n* ''Colors! DS'' • Top screen shows app logo while in the main menu, buttons legend while drawing, and the current drawing when opening a menu or optionally always. The touch screen is needed to select menu items, draw, and calibrate the digitizer; buttons are needed to operate drawing tools (moving, zooming, color picker, undo).\n\n\u003C/del>","tags":"Nintendo NDS Gaming i18n:en","title":"Nintendo DS/Software Requiring Only the Bottom Screen","modified":"20230114125554302"}, {"created":"20220925130302833","text":"''Nintendo Switch'' is a family of portable game consoles created by [[Nintendo|Nintendo:en]]. It is notorius for being made of [[papier-mâché|Papier-mâché]], essentially suffering from a variety of structural problems.\n\n\u003C\u003CLImg \"https://i.ytimg.com/vi_webp/Cb-srOfRqNc/maxresdefault.webp\" \"https://youtu.be/Cb-srOfRqNc\">>\n\nThe console's introduction was hyped due to it being the first ever Nintendo console to be created with both home and portable use in mind. The name itself comes from the fact that the console can //switch//, from being connected to a TV to being able to be used standalone.","tags":"Nintendo Gaming NX i18n:en","title":"Nintendo Switch:en","modified":"20230109105533455"}, -{"created":"20230110214847556","text":"''[[Nitter|https://github.com/zedeus/nitter]]'' is a free and open source alternative [[Twitter|Twitter:en]] front-end focused on privacy and performance.\n\nQuoting from the project's README:\n\n\u003C\u003C\u003C\nInspired by the Invidious project.\n\n* No JavaScript or ads\n* All requests go through the backend, client never talks to Twitter\n* Prevents Twitter from tracking your IP or JavaScript fingerprint\n* Uses Twitter's unofficial API (no rate limits or developer account required)\n* Lightweight (60KB vs 784KB from twitter.com)\n* RSS feeds\n* Themes\n* Mobile support (responsive design)\n* AGPLv3 licensed, no proprietary instances permitted\n\u003C\u003C\u003C\n","tags":"Internet i18n:en TODO","title":"Nitter:en","modified":"20230111153740426"}, +{"created":"20230110214847556","text":"''[[Nitter|https://github.com/zedeus/nitter]]'' is a free and open source alternative [[Twitter|Twitter:en]] front-end focused on privacy and performance.\n\nQuoting from the project's README:\n\n\u003C\u003C\u003C\nInspired by the Invidious project.\n\n* No JavaScript or ads\n* All requests go through the backend, client never talks to Twitter\n* Prevents Twitter from tracking your IP or JavaScript fingerprint\n* Uses Twitter's unofficial API (no rate limits or developer account required)\n* Lightweight (60KB vs 784KB from twitter.com)\n* RSS feeds\n* Themes\n* Mobile support (responsive design)\n* AGPLv3 licensed, no proprietary instances permitted\n\u003C\u003C\u003C\n","tags":"Internet i18n:en","title":"Nitter:en","modified":"20230116222336537"}, {"created":"20230111120518929","text":"\u003C\u003CMediaWiki Nonogram en 3>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://jokude.github.io/react-nonogram\">>","tags":"i18n:en TODO Gaming Puzzle","title":"Nonogram:en","modified":"20230113175921673"}, {"created":"20220920160811383","text":"!! Welcome to my Personal {Knowledge Base + Public Notebook}!\n\nGeneral information about the site will soon be available. Licensing information is available [[here|OcttKB/Licensing]].\n\n!!! ''Table of Contents''\n{{$:/OcttKB/ToC}}\n\n!!! ''External Links''\n* ''My Hub'', Global Home Page: https://hub.octt.eu.org - Links to my blog, webapps, and social profiles\n* ''KB Git Repo'' (deploy scripts, + some history): https://gitlab.com/octtspacc/OcttKB\n\n!!! ''Tags''\n{{$:/OcttKB/TagCloud}}\n\u003C!--\n\u003Cspan style=\"Line-Height:2em;\">\n\u003C$list filter=\"[tags[]!is[system]]\">\n\u003Cspan style=\"Padding:2px;\">\n\u003C$macrocall $name=\"tag\" tag={{!!caption}}/>\n\u003C/span>\n\u003C/$list>\n\u003C/span>\n--->\n\u003C!--\n\u003C\u003Clist-links filter:\"[!is[system]tags[]]\">>\n--->\n\n!!! ''All Entries''\n\u003Cdetails>{{$:/OcttKB/AllTiddlers}}\u003C/details>\n\n\u003Cbr>\u003Chr>\u003Cbr>\n\n(Partial) [[Copyright © 2022, OctoSpacc|OcttKB/Licensing]] || OcttKB is powered by [[TiddlyWiki|TiddlyWiki:en]].\n\n\u003Csmall>//As with any TiddlyWiki, you can make your own changes right here and save them locally for yourself.//\u003C/small>","tags":"i18n:en Meta TableOfContents","title":"OcttKB","modified":"20230110182657272"}, {"created":"20220920160642961","text":"!!! Macros\n> \u003C\u003CTDirList $:/Macros 4>>\n\n!!! Theming\n> \u003C\u003CTDirList $:/Styles 4>>\n* [[$:/palettes/Octt Light]]\n\n!!! Modified system files\n* $:/StaticBanner (Shown as banner in statically exported pages)\n* $:/core/templates/static.content (Shown as static HTML content in the standard TiddlyWiki file)\n* $:/core/templates/exporters/StaticRiver (Added meta viewport for correct viewing on mobile) [[[Pull Request|https://github.com/Jermolene/TiddlyWiki5/pull/6953]]]\n* ~~$:/themes/tiddlywiki/vanilla (Changed paddings)~~","tags":"TiddlyWiki i18n:en OcttKB","title":"OcttKB/Hacks","modified":"20230112221919315"}, @@ -524,9 +535,11 @@ Error message and password prompt {"created":"20230113212036797","text":"\u003C\u003CMediaWiki qBittorrent en 1>>","tags":"TODO i18n:en","title":"qBittorrent:en","modified":"20230113212121140"}, {"created":"20220922200129612","text":"\u003C!-- \u003C\u003Ci18n>> --->\n\n\u003C!--\nIl ''Rasperino'' (''Raspberry Pi'') è il Single-Board-Computer più epico mai creato.\n--->\n\nIl ''Rasperino'' (''Raspberry Pi'') è un Single-Board-Computer ormai dimostratosi non all'altezza, sia a livello tecnico e pratico, sia per via di come l'azienda opera da più di un anno.\n\n[img[https://assets.raspberrypi.com/static/raspberry-pi-4-labelled-f5e5dcdf6a34223235f83261fa42d1e8.png]]\n\nPiù informazioni al suo riguardo sono disponibili sul sito ufficiale: [[https://www.raspberrypi.com]].\n\nSotto lo stesso nome di Raspberry Pi, la Raspberry Foundation crea anche dei microcontrollori, oltre che questo tipo di computer completi.","tags":"Raspberry i18n:it","title":"Rasperry Pi:it","modified":"20230111190331544","i18n":"RasperryPi"}, {"created":"20230109104506263","text":"\u003C\u003CMediaWiki Reddit en 1>>","tags":"i18n:en Internet TODO","title":"Reddit:en","modified":"20230113105723193"}, -{"created":"20221102121324531","text":"\u003C\u003CMediaWiki Retrogaming en 1>>\n\n!! ''Resources''\n\n!!! ''ROMs''\n* [[r/Roms Megathread|https://r-roms.github.io]]\n* [[No-Intro Romsets|https://archive.org/details/no-intro_romsets]]\n* [[Redump Romsets|https://archive.org/details/redump]]\n\n!!! ''Other''\n* [[Thumbnails for RetroArch|https://github.com/libretro-thumbnails/libretro-thumbnails]]\n","tags":"i18n:en Emulation Retrogaming","title":"Retrogaming:en","modified":"20230111111700315"}, +{"created":"20230116222004372","text":"\u003C\u003CMediaWiki RetroArch en 3>>","tags":"i18n:en TODO","title":"RetroArch:en","modified":"20230116222135399"}, +{"created":"20221102121324531","text":"\u003C\u003CMediaWiki Retrogaming en 1>>\n\n!! ''Resources''\n\n!!! ''ROMs''\n* [[r/Roms Megathread|https://r-roms.github.io]]\n* [[No-Intro Romsets|https://archive.org/details/no-intro_romsets]]\n* [[Redump Romsets|https://archive.org/details/redump]]\n","tags":"i18n:en Emulation Retrogaming","title":"Retrogaming:en","modified":"20230116215456646"}, +{"created":"20230116211104011","text":"Random saved links that I should put somewhere...\n\n* https://www.goatcounter.com","tags":"i18n:en","title":"Saved Links","modified":"20230116211147983"}, {"created":"20220924130815541","text":"!!! Replace for all files in all subdirectories\n\n```sh\nfind ./ -type f -exec sed -i \"s/Old/New/g\" {} \\;\n```","tags":"Snippets i18n:en","title":"sed/Snippets","modified":"20230114125213734"}, -{"created":"20230114151517618","text":"\u003C\u003CMediaWiki Sokoban en 3>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://sokobanz.vercel.app\">>","tags":"i18n:en Puzzle Gaming TODO","title":"Sokoban:en","modified":"20230114154258584"}, +{"created":"20230114151517618","text":"\u003C\u003CMediaWiki Sokoban en 3>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://sokobanz.vercel.app\">>\n\n!! ''Implementations''\n\n* ''🧩 Sokoban game and automated puzzle solver (healeycodes)'': [[Web|https://sokobanz.vercel.app]] | [[Git|https://github.com/healeycodes/sokoban]]\n* 🐇 ''SokoBun'': [[Web|https://mewesk.github.io/sokobun]] | [[Git|https://github.com/MewesK/sokobun]]\n","tags":"i18n:en Puzzle Gaming","title":"Sokoban:en","modified":"20230116221314069"}, {"created":"20230109110607137","text":"\u003C\u003CMediaWiki Spacc/en wikispacc.miraheze.org>>","tags":"i18n:en TODO","title":"Spacc:en","modified":"20230111153654608"}, {"created":"20230110175138657","text":"\u003C\u003CMediaWiki Spacc/it wikispacc.miraheze.org>>","tags":"TableOfContents i18n:it","title":"Spacc:it","modified":"20230110175202204"}, {"created":"20230112104013755","text":"\u003C\u003CMediaWiki Splatoon en 3>>","tags":"i18n:en Gaming TODO Platformer TPS","title":"Splatoon:en","modified":"20230112104323443"}, @@ -536,11 +549,11 @@ Error message and password prompt {"created":"20230113231015907","text":"* https://github.com/26F-Studio/Techmino","tags":"i18n:en TODO","title":"Techmino:en","modified":"20230113231026790"}, {"created":"20230114125105418","text":"","tags":"TODO Gaming i18n:en","title":"Tetris Effect:en","modified":"20230114125518126"}, {"created":"20230112091241450","text":"\u003C\u003CMediaWiki Tetris en 3>>\n\n!! ''Gamin' Time''\n\n\u003C\u003CiFrameFixed \"https://reactgular.github.io/tetromino\">>","tags":"i18n:en Gaming TODO Puzzle","title":"Tetris:en","modified":"20230114124319245"}, -{"created":"20220924193842295","text":"[[TiddlyWiki|https://tiddlywiki.com]] is the software upon which this website is built.\n\nIt is a libre, JavaScript-rich, non-linear notebook, that can well adapt to anyone's way of building a logically interconnected information database.\n\n\u003C\u003CMediaWiki TiddlyWiki en 2>>\n\n!! ''Useful Resources''\n\n* Official Git Repos: [[TiddlyWiki5 Source|https://github.com/Jermolene/TiddlyWiki5]], [[Others|https://github.com/TiddlyWiki]]\n* Official Docs: [[Standard|https://tiddlywiki.com]], [[Dev|https://tiddlywiki.com/dev]]\n* [[Links Aggregator|https://links.tiddlywiki.org]]\n* [[Grok TiddlyWiki|https://groktiddlywiki.com]] - //Build a deep, lasting understanding of TiddlyWiki//\n* [[TiddlyWiki Toolmap|https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM]]\n\n!!! ''Other Wikis, Plugin Collections''\n\n* [[NoteSelf|https://noteself.org]] - TiddlyWiki fork/flavor with interesting features built-in - [[[Git|https://github.com/NoteSelf]]]\n* [[Tobias Beer's Plugins and Resources|https://tobibeer.github.io]] - [[[Git|https://github.com/tobibeer]]]\n* [[ZemoxWiki|https://zemox.tiddlyspot.com]] - //a haphazard meandering of notes, thoughts, experiments, links...//\n* [[The public musings of Soren Bjornstad (Zettelkasten)|https://zettelkasten.sorenbjornstad.com]]\n* [[kookma's codes, macros, and solutions in TW|https://kookma.github.io/TW-Scripts]]\n* [[Stroll|https://giffmex.org/stroll/stroll.html]] - //A Roam-like experience in a free, downloadable file//\n* [[TiddlyMap|http://tiddlymap.org]] - //Map drawing and topic visualization for your wiki!// - [[[Git|https://github.com/felixhayashi/TW5-TiddlyMap]]]\n* [[Projectify|https://thaddeusjiang.github.io/Projectify]] - //Project management for TiddlyWiki// - [[[Git|https://github.com/ThaddeusJiang/Projectify]]]\n* [[TW5 CPL Wiki|https://tw-cpl.netlify.app]] - //TiddlyWiki5 Plugin Library for TiddlyWiki Chinese Communities//\n* [[Joe's Blog|https://joearms.github.io]] - Contains the [[Chandler|https://joearms.github.io/#2018-12-26%20Fun%20with%20the%20TiddlyWiki]] prototype time-management tool\n\n!!!! ''Individual Plugins''\n\n* [[ECharts|https://tiddly-gittly.github.io/tw-echarts]] [[[Git|https://github.com/tiddly-gittly/tw-echarts]], [[Thread|https://talk.tiddlywiki.org/t/echarts-bringing-amazing-visualization-tools-to-tiddlywiki/1944]]] - //An All-in-one Visualization Framework for TiddlyWiki5 based on ECharts//\n* [[enable-js|http://tobibeer.github.io/tw/enable-js]] - //using inline script tags//\n* [[Relink|https://flibbles.github.io/tw5-relink]] - //flexibility when relinking renamed tiddlers//\n\n!!! ''Discussions''\nDiscussions that helped or might help me solve problems. And also some that are just plain interesing.\n\n* [[I want to edit something, oh no that's a transclusion|https://groups.google.com/g/TiddlyWiki/c/tYgM6kh9lNA]], [[How do I transclude an edit window of a tiddler?|https://groups.google.com/g/tiddlywiki/c/GsMkfxSPkmA/m/cxGdAieIBgAJ]], [[How to quickly navigate to a transcluded tiddler?|https://talk.tiddlywiki.org/t/how-to-quickly-navigate-to-a-transcluded-tiddler/4535/5]]\n* [[Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)|https://groups.google.com/g/tiddlywiki/c/NwOI-QER2ig/m/lSLS3XolwDoJ]]\n* [[[TW5] Tag (Text) Cloud for TW5?|https://groups.google.com/g/tiddlywiki/c/_YE1pjZMFkg]], [[TagCloud plugin|https://groups.google.com/g/tiddlywiki/c/VQPaJC6yyWM]]\n* [[Setting HTML attributes with a macro?|https://groups.google.com/g/tiddlywiki/c/Qp8Fzi0BR5I/m/N65Q6thTEwAJ]]\n* [[[Plugin] Presenting TW5-Uglify! Plugin compression the TiddlyWIki way!|https://groups.google.com/g/tiddlywiki/c/-kIVw00crRQ]]\n* [[Is there way to make TiddlyWiki system-wide case insensitive?|https://groups.google.com/g/tiddlywiki/c/BcEF4fTzCj8]]\n\n!! ''Notes/Personal''\n\n!!! ''WIP/TODO''\n\n* Custom proper reusable directory tree browser (maybe like the one we have with $:/OcttKB/ToC)\n** To use instead of the [[Directory macros|$:/Macros/Directory]], showing automatically on pages that are directories, and also as a file browser for the whole wiki\n* \"Path bar\" ~~(like on GNOME/KDE/Windows file explorer)~~ shown in tiddlers which are in a directory / Make it integrate in the tiddler title maybe, to save on space.\n* Personal easy notes on various technical things of TiddlyWiki\n* Organize all my customizations into plugins easily installable by anyone\n* Show date and time of last saving somewhere accessible (Index tab on sidebar?)\n* Data compression of everything\n* When opening missing tiddlers, show a preview from Wikipedia or from word dictionaries, with GUI to customize fetching options\n* To the possible extent, save Git deploy scripts for the KB inside itself, for easy editing needs\n* When tiddlers are transcluded show a small version of their action bar\n* Case insensitivity for tiddlers (?)\n* Handy button to reload direct scripts like $:/OcttKB/Functions.js\n* A way to reload any script, like JS macros or installed plugins, without reloading the entire wiki\n* Button to reload a single tiddler; if not possible, then the macros that can fail (e.g. MediaWiki, or all which fetch content from the Internet) should provide their own retry button\n* Lightboxes for images\n* Fix images embedded with CSS float, make them not go out of tiddler's body if too tall\n* Better positioning of open/close sidebar button (should move the tiddler action bar buttons slightly to the left on single-column layout at least)\n* Add a feature to let users send issues or pull requests\n* Maybe add normal user comments?\n* Find the best retro console HTML5 emulator to embed in tiddlers which talk about certain games\n* In here I put some tiddlers that are about a mainstream thing or topic just because they are connected to a more worthy tiddler; they should be tagged as Mainstream so that they can be filtered out in search and stuff\n\n!!!! ''i18n''\n* Make the language bar collapsed by default, or make it a menu callable by a button on the tiddler\n** Show the button as a country flag in the tiddler title maybe? Ideally showing it in place of the \":lang\" suffix when present\n* Selecting to open a language on a tiddler should ideally remove the previously open tiddler from the story river (or else if you switch language many times you have a cluttered river but no real advantage)\n* Automatically handle connections between different-language versions of a tiddler when the only difference in title is the \":lang\" suffix, without manually setting \"i18n\" attribute\n* Automatically handle eventual tiddlers which don't exist by their common i18n name (e.g \"Thing\") but do with a \":lang\" suffix, that should automatically transclude the //preferred language//\n** Preferred language could be enforced by the user with a global setting, or just be set softly based on the language of the last tiddler opened by the user (latter is ideal)\n\n!!!! ''External wikis''\n* Unified transclusion features for external TiddlyWikis and MediaWikis\n** Adapt the [[MediaWiki macro|$:/Macros/MediaWiki]] to:\n** Have internal links present\n*** Add lists of known wikis callable from a shorthand name\n*** Choosing number (by total from first/last, or ranges), or titles, of paragraphs or chapters to transclude (with support for specifying items to exclude)\n*** Retrieving and embedding files from wiki or Commons by known name (`File:`)\n*** It must also handle files that aren't images (audio/video)\n**** Default embed displays also the article cover image, allow setting a custom file or just `none`\n** Understand transclusions from external TiddlyWikis (it seems like people just use iframes, OK for showing things but not for choosing to display specific limited sections)\n* Somehow have working full-text search for tiddlers that transclude external wikis?\n\n!!!! ''Graphing and statistics''\n* Keyword (not tag) cloud ([[[tw5] Simple Word Clouds|https://talk.tiddlywiki.org/t/tw5-simple-word-clouds/3234]]?)\n* Need to get an automatic relationship map (like the one on [[https://baczek.me/map/]])\n* Activity view with calendar (like KOReader) or squares wall (Git)\n","title":"TiddlyWiki:en","modified":"20230114235659526","tags":"TiddlyWiki i18n:en TODO"}, +{"created":"20220924193842295","text":"[[TiddlyWiki|https://tiddlywiki.com]] is the software upon which this website is built.\n\nIt is a libre, JavaScript-rich, non-linear notebook, that can well adapt to anyone's way of building a logically interconnected information database.\n\n\u003C\u003CMediaWiki TiddlyWiki en 2>>\n\n!! ''Useful Resources''\n\n* Official Git Repos: [[TiddlyWiki5 Source|https://github.com/Jermolene/TiddlyWiki5]], [[Others|https://github.com/TiddlyWiki]]\n* Official Docs: [[Standard|https://tiddlywiki.com]], [[Dev|https://tiddlywiki.com/dev]]\n* [[Links Aggregator|https://links.tiddlywiki.org]]\n* [[Grok TiddlyWiki|https://groktiddlywiki.com]] - //Build a deep, lasting understanding of TiddlyWiki//\n* [[TiddlyWiki Toolmap|https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM]]\n\n!!! ''Other Wikis, Plugin Collections''\n\n* [[NoteSelf|https://noteself.org]] - TiddlyWiki fork/flavor with interesting features built-in - [[[Git|https://github.com/NoteSelf]]]\n* [[Tobias Beer's Plugins and Resources|https://tobibeer.github.io]] - [[[Git|https://github.com/tobibeer]]]\n* [[ZemoxWiki|https://zemox.tiddlyspot.com]] - //a haphazard meandering of notes, thoughts, experiments, links...//\n* [[The public musings of Soren Bjornstad (Zettelkasten)|https://zettelkasten.sorenbjornstad.com]]\n* [[kookma's codes, macros, and solutions in TW|https://kookma.github.io/TW-Scripts]]\n* [[Stroll|https://giffmex.org/stroll/stroll.html]] - //A Roam-like experience in a free, downloadable file//\n* [[TiddlyMap|http://tiddlymap.org]] - //Map drawing and topic visualization for your wiki!// - [[[Git|https://github.com/felixhayashi/TW5-TiddlyMap]]]\n* [[Projectify|https://thaddeusjiang.github.io/Projectify]] - //Project management for TiddlyWiki// - [[[Git|https://github.com/ThaddeusJiang/Projectify]]]\n* [[TW5 CPL Wiki|https://tw-cpl.netlify.app]] - //TiddlyWiki5 Plugin Library for TiddlyWiki Chinese Communities//\n* [[Joe's Blog|https://joearms.github.io]] - Contains the [[Chandler|https://joearms.github.io/#2018-12-26%20Fun%20with%20the%20TiddlyWiki]] prototype time-management tool\n\n!!!! ''Individual Plugins''\n\n* [[ECharts|https://tiddly-gittly.github.io/tw-echarts]] [[[Git|https://github.com/tiddly-gittly/tw-echarts]], [[Thread|https://talk.tiddlywiki.org/t/echarts-bringing-amazing-visualization-tools-to-tiddlywiki/1944]]] - //An All-in-one Visualization Framework for TiddlyWiki5 based on ECharts//\n* [[enable-js|http://tobibeer.github.io/tw/enable-js]] - //using inline script tags//\n* [[Relink|https://flibbles.github.io/tw5-relink]] - //flexibility when relinking renamed tiddlers//\n\n!!! ''Discussions''\nDiscussions that helped or might help me solve problems. And also some that are just plain interesing.\n\n* [[I want to edit something, oh no that's a transclusion|https://groups.google.com/g/TiddlyWiki/c/tYgM6kh9lNA]], [[How do I transclude an edit window of a tiddler?|https://groups.google.com/g/tiddlywiki/c/GsMkfxSPkmA/m/cxGdAieIBgAJ]], [[How to quickly navigate to a transcluded tiddler?|https://talk.tiddlywiki.org/t/how-to-quickly-navigate-to-a-transcluded-tiddler/4535/5]]\n* [[Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)|https://groups.google.com/g/tiddlywiki/c/NwOI-QER2ig/m/lSLS3XolwDoJ]]\n* [[[TW5] Tag (Text) Cloud for TW5?|https://groups.google.com/g/tiddlywiki/c/_YE1pjZMFkg]], [[TagCloud plugin|https://groups.google.com/g/tiddlywiki/c/VQPaJC6yyWM]]\n* [[Setting HTML attributes with a macro?|https://groups.google.com/g/tiddlywiki/c/Qp8Fzi0BR5I/m/N65Q6thTEwAJ]]\n* [[[Plugin] Presenting TW5-Uglify! Plugin compression the TiddlyWIki way!|https://groups.google.com/g/tiddlywiki/c/-kIVw00crRQ]]\n* [[Is there way to make TiddlyWiki system-wide case insensitive?|https://groups.google.com/g/tiddlywiki/c/BcEF4fTzCj8]]\n\n!! ''Notes/Personal''\n\n!!! ''WIP/TODO''\n\n* Custom proper reusable directory tree browser (maybe like the one we have with $:/OcttKB/ToC)\n** To use instead of the [[Directory macros|$:/Macros/Directory]], showing automatically on pages that are directories, and also as a file browser for the whole wiki\n* \"Path bar\" ~~(like on GNOME/KDE/Windows file explorer)~~ shown in tiddlers which are in a directory / Make it integrate in the tiddler title maybe, to save on space.\n* Personal easy notes on various technical things of TiddlyWiki\n* Organize all my customizations into plugins easily installable by anyone\n* Show date and time of last saving somewhere accessible (Index tab on sidebar?)\n* Data compression of everything\n* When opening missing tiddlers, show a preview from Wikipedia or from word dictionaries, with GUI to customize fetching options\n* To the possible extent, save Git deploy scripts for the KB inside itself, for easy editing needs\n* When tiddlers are transcluded show a small version of their action bar\n* Case insensitivity for tiddlers (?)\n* Handy button to reload direct scripts like $:/OcttKB/Functions.js\n* A way to reload any script, like JS macros or installed plugins, without reloading the entire wiki\n* Button to reload a single tiddler; if not possible, then the macros that can fail (e.g. MediaWiki, or all which fetch content from the Internet) should provide their own retry button\n* Lightboxes for images\n* Fix images embedded with CSS float, make them not go out of tiddler's body if too tall\n* Better positioning of open/close sidebar button (should move the tiddler action bar buttons slightly to the left on single-column layout at least)\n* Add a feature to let users send issues or pull requests\n* Maybe add normal user comments?\n* Rehost embedded games for better CSS\n** Find the best retro console HTML5 emulator to embed in tiddlers which talk about certain games - they also need to be adapted to load ROMs from URL\n* In here I put some tiddlers that are about a mainstream thing or topic just because they are connected to a more worthy tiddler; they should be tagged as Mainstream so that they can be filtered out in search and stuff\n\n!!!! ''i18n''\n* Make the language bar collapsed by default, or make it a menu callable by a button on the tiddler\n** Show the button as a country flag in the tiddler title maybe? Ideally showing it in place of the \":lang\" suffix when present\n* Selecting to open a language on a tiddler should ideally remove the previously open tiddler from the story river (or else if you switch language many times you have a cluttered river but no real advantage)\n* Automatically handle connections between different-language versions of a tiddler when the only difference in title is the \":lang\" suffix, without manually setting \"i18n\" attribute\n* Automatically handle eventual tiddlers which don't exist by their common i18n name (e.g \"Thing\") but do with a \":lang\" suffix, that should automatically transclude the //preferred language//\n** Preferred language could be enforced by the user with a global setting, or just be set softly based on the language of the last tiddler opened by the user (latter is ideal)\n\n!!!! ''External wikis''\n* Unified transclusion features for external TiddlyWikis and MediaWikis\n** Adapt the [[MediaWiki macro|$:/Macros/MediaWiki]] to:\n** Have internal links present\n*** Add lists of known wikis callable from a shorthand name\n*** Choosing number (by total from first/last, or ranges), or titles, of paragraphs or chapters to transclude (with support for specifying items to exclude)\n*** Retrieving and embedding files from wiki or Commons by known name (`File:`)\n*** It must also handle files that aren't images (audio/video)\n**** Default embed displays also the article cover image, allow setting a custom file or just `none`\n** Understand transclusions from external TiddlyWikis (it seems like people just use iframes, OK for showing things but not for choosing to display specific limited sections)\n* Somehow have working full-text search for tiddlers that transclude external wikis?\n\n!!!! ''Graphing and statistics''\n* Keyword (not tag) cloud ([[[tw5] Simple Word Clouds|https://talk.tiddlywiki.org/t/tw5-simple-word-clouds/3234]]?)\n* Need to get an automatic relationship map (like the one on [[https://baczek.me/map/]])\n* Activity view with calendar (like KOReader) or squares wall (Git)\n","title":"TiddlyWiki:en","modified":"20230116222303401","tags":"TiddlyWiki i18n:en TODO"}, {"created":"20220922163220116","text":"\u003Cstyle>\ntr:nth-child(even) {background-color: #f2f2f2;}\n\u003C/style>","tags":"Snippets TiddlyWiki","title":"TiddlyWiki/Snippets to Test","modified":"20230111082334125"}, {"created":"20230109104324882","text":"\u003C\u003CMediaWiki Twitter en 1>>","tags":"i18n:en Internet TODO","title":"Twitter:en","modified":"20230111153747555"}, {"created":"20230114161806791","text":"\u003C!--\n\\define URLRnd() https://source.unsplash.com/random?\u003C$macrocall $name=\"now\"/>\u003C\u003Cnow \"hh.mm.ss.XXX\">>\n--->\n\n\u003C\u003CMediaWiki Unsplash en 1>>\n\n!! ''Random Picture from the Gallery''\n\n\u003Ca href=\"https://unsplash.com\" rel=\"noopener noreferrer\" target=\"_blank\">\u003Cimg class=\"Img90\" src=\"https://source.unsplash.com/random\">\u003C/a>\n\n\u003C!--\n\u003Ca href=\"https://source.unsplash.com/random?{{{[\u003Cnow hh.mm.ss.XXX>]}}}\">a\u003C/a>\n--->","tags":"i18n:en TODO Internet","title":"Unsplash:en","modified":"20230114170906333"}, -{"created":"20230113225512278","text":"* https://wallabag.org\n* https://github.com/wallabag","tags":"i18n:en TODO","title":"wallabag:en","modified":"20230113225704405"}, +{"created":"20230113225512278","text":"//wallabag is a self hostable application for saving web pages: Save and classify articles. Read them later. Freely.//\n\n* https://wallabag.org\n* https://github.com/wallabag","tags":"i18n:en","title":"wallabag:en","modified":"20230116220602956"}, {"created":"20220923144125627","text":"The [[Wayback Machine|https://web.archive.org]] is a public website archiving service, provided by the [[Internet Archive|Internet Archive:en]].\n\n[img[https://upload.wikimedia.org/wikipedia/commons/0/01/Wayback_Machine_logo_2010.svg]]\n\nThe project exists to fulfill the goal of Web content preservation. It allows for users to visit a snapshot of a webpage captured in the past, serving as a way to preserve history, both in the case of the site owners altering the contents of a page, or simply the server going permanently down.","title":"Wayback Machine:en","modified":"20220926115014242","tags":"Archiving Internet i18n:en"}, {"created":"20230114234058763","text":"List of ''Web Apps'' to keep in mind.\n\n\u003C\u003CDirList \"Apps\">>\n\n\u003C!--\n\u003Cul>\n\u003C$list filter=\"[tag[Apps]tag[Web]]\">\n\u003Cli>\n \u003C$link link=\u003C\u003CcurrentTiddler>>/>\n\u003C/li>\n\u003C/$list>\n\u003C/ul>\n--->\n\n* [[SVG-Edit|https://svgedit.netlify.app/editor]]","tags":"i18n:en TODO","title":"Web Apps","modified":"20230114235402921"}, {"created":"20221103223952562","text":"Some ideas on //how// and //into what// to make a website I want to collect. Some I gather from other people's sites.\n\n* Site Changelog on Home page\n* Animated/Static Image Buttons for expressing ideas or linking to other websites\n* Shrines\n* Vast photo Galleries","tags":"Internet i18n:en","title":"Web design ideas","modified":"20221103231633336"}, @@ -548,7 +561,7 @@ Error message and password prompt {"created":"20221009212222560","text":"!! Flags\n\n* Download required page assets: `-p`\n* Convert internal links to relative: `-k`","tags":"i18n:en Snippets","title":"Wget/Snippets","modified":"20221105125638233"}, {"created":"20221202225934313","text":"\u003C\u003CMediaWiki Wikipedia en 1>>\n\nIt is truly one of the best places to gain general culture from. For anything that is not found on the [[OcttKB]], you should visit Wikipedia!","tags":"i18n:en Internet","title":"Wikipedia:en","modified":"20230113095348086"}, {"created":"20230113230346823","text":"* https://wikispacc.miraheze.org","tags":"TODO i18n:en","title":"WikiSpacc:en","modified":"20230113230407582"}, -{"created":"20230112115019993","text":"\u003C\u003CMediaWiki \"Help:Wikitext\" en 1>>\n\n!!! ''MediaWiki's vs TiddlyWiki's Wikitext''\n\n''Documentation'': [[Wikipedia's|https://en.m.wikipedia.org/wiki/Help:Wikitext]] | [[TiddlyWiki's|https://tiddlywiki.com/#WikiText]]\n\n!!!! ''Equalities''\n\n* ''Unordered and Ordered Lists''\n\n!!!! ''Differences''\n\n||''MediaWiki''|''TiddlyWiki''|\n|''Headings''|`=== Heading 3 ===`|`!!! Heading 3`|\n|''Bold''|||","tags":"i18n:en TODO TiddlyWiki MediaWiki","title":"Wikitext:en","modified":"20230114161257539"}, +{"created":"20230112115019993","text":"\u003C\u003CMediaWiki \"Help:Wikitext\" en 1>>\n\n!!! ''MediaWiki's vs TiddlyWiki's Wikitext''\n\n''Documentation'': [[Wikipedia's|https://en.m.wikipedia.org/wiki/Help:Wikitext]] | [[TiddlyWiki's|https://tiddlywiki.com/#WikiText]]\n\n!!!! ''Equalities''\n\n* ''Unordered and Ordered Lists''\n* ''Break lines'': A single newline doesn't break the text, an empty line starts a new paragraph.\n\n!!!! ''Differences''\n\n||''MediaWiki''|''TiddlyWiki''|\n|''Headings''|Name enclosed in a pair of //equals//:\u003Cbr>`=== Heading 3 ===`|Name preceded by //bangs//:\u003Cbr>`!!! Heading 3`|\n|''Bold'':\u003Cbr>Text enclosed in a pair of:|3 //apostrophes//:\u003Cbr>`'''Text'''`|2 //apostrophes//:\u003Cbr>`''Text''`|\n|''Italics'':\u003Cbr>Text enclosed in a pair of:|2 //apostrophes//:\u003Cbr>`''Text''`|2 //slashes//:\u003Cbr>`//Text//`|\n|''Indentation''|`Indentation as used on talk pages:`\u003Cbr>`:Each colon at the start of a line`\u003Cbr>`::causes the line to be indented by three more character positions.`|N/A|\n|''Horizontal Rule''|4 or more //dashes//:\u003Cbr>`----`|3 or more //dashes//:\u003Cbr>`---`|\n|''Hard Linebreaks''|N/A|Text enclosed in 3 //quotes//:\u003Cbr>`\"\"\"`\u003Cbr>`Text`\u003Cbr>`Still Text`\u003Cbr>`\"\"\"`|\n|''Links''|Target first, Name last|Name first, Target last|","tags":"i18n:en TiddlyWiki MediaWiki","title":"Wikitext:en","modified":"20230116221126055"}, {"created":"20220920144224759","text":"!! Multi-Screen Fixes\n\n!!! LG Flatron W1943SS (R) + TV Toshiba (L)\n\n```sh\nxrandr --output DVI-D-0 --addmode DVI-D-0 1920x1080\nxrandr --output DVI-D-0 --mode 1920x1080 -r 60.00\nxrandr --output DVI-D-0 --left-of HDMI-A-0\n```","tags":"Snippets i18n:en","title":"X11/Snippets","modified":"20221105125617281"}, {"created":"20230109104559438","text":"\u003C\u003CMediaWiki YouTube en 1>>","tags":"i18n:en Internet TODO","title":"YouTube:en","modified":"20230111153728680"} ]