diff --git a/tiddlers/$__config_Server_AllowAllExternalFilters.tid b/tiddlers/$__config_Server_AllowAllExternalFilters.tid new file mode 100644 index 0000000..c7f4e85 --- /dev/null +++ b/tiddlers/$__config_Server_AllowAllExternalFilters.tid @@ -0,0 +1,3 @@ +title: $:/config/Server/AllowAllExternalFilters + +yes \ No newline at end of file diff --git a/tiddlers/$__core_ui_sideBar_timeline.tid b/tiddlers/$__core_ui_sideBar_timeline.tid new file mode 100644 index 0000000..bbb44d6 --- /dev/null +++ b/tiddlers/$__core_ui_sideBar_timeline.tid @@ -0,0 +1,5 @@ +tags: $:/tags/Macro +title: $:/core/ui/sideBar/timeline +type: text/vnd.tiddlywiki + +\define timeline-title() <$transclude field="caption"><$view field="title"/> diff --git a/tiddlers/$__plugins_Gk0Wk_echarts.json b/tiddlers/$__plugins_Gk0Wk_echarts.json index 2f2f89e..1aa2c2d 100644 --- a/tiddlers/$__plugins_Gk0Wk_echarts.json +++ b/tiddlers/$__plugins_Gk0Wk_echarts.json @@ -1,17 +1,17 @@ [ { - "version": "0.2.12", - "type": "application/json", - "title": "$:/plugins/Gk0Wk/echarts", - "plugin-type": "plugin", - "name": "ECharts", - "list": "readme addons LICENSE", - "description": "ECharts for TiddlyWiki5", "author": "Gk0Wk", - "source": "https://github.com/tiddly-gittly/tw-echarts/tree/master/plugins/Gk0Wk/echarts", "dependents": "$:/plugins/Gk0Wk/focused-tiddler", - "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/Function-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/Function-readme\",\"text\":\"```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/Function.js\\\" func=\\\"x**2\\\" min=\\\"-3\\\" max=\\\"3\\\" />\\n```\\n\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/Function.js\\\" func=\\\"x**2\\\" min=\\\"-3\\\" max=\\\"3\\\" />\\n\\nAttributes:\\n\\n* func: function expression, default: x\\n* min: min value, default: -1\\n* max: max value, default: 1\\n* res: resolution, default: 200\\n* yaxis: name of y axis, default: f(x)\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap-readme\",\"text\":\"
\\n
\\n <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}subtract[1]!match[-1]] ~[subtract[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ◄\\n             <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}add[1]!match[1]] ~[add[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ►\\n \\n
\\n <$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" $width=\\\"100%\\\" $height=\\\"100%\\\" year={{$:/state/heatmap!!year}} subfilter=\\\"[all[tiddlers]!is[shadow]!is[system]!field:calendarEntry[yes]]\\\" />\\n
\\n\\nSimple usage:\\n\\n```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" />\\n```\\n\\nYou can add switch buttons like this:\\n\\n```html\\n
\\n
\\n <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}subtract[1]!match[-1]] ~[subtract[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ◄\\n             <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}add[1]!match[1]] ~[add[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ►\\n \\n
\\n <$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" $width=\\\"100%\\\" $height=\\\"100%\\\" year={{$:/state/heatmap!!year}} subfilter=\\\"[all[tiddlers]!is[shadow]!is[system]!field:calendarEntry[yes]]\\\" />\\n
\\n```\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\",\"type\":\"text/vnd.tiddlywiki\",\"caption\":\"PluginsSize\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/PluginsSize-readme}}\",\"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<$list filter=\\\"[!plugin-type[]!title[$:/core]!title[$:/temp/info-plugin]]\\\" variable=\\\"pluginName\\\" counter=\\\"counter1\\\">\\n` {\\n \\\"name\\\": \\\"`<$list filter=\\\"[has[name]]\\\"><$text text={{{ [get[name]] }}}/><$list filter=\\\"[!has[name]]\\\"><$text text={{{ [has[name]elsesplit[/]nth[4]] }}}/>`\\\",\\n \\\"value\\\": `<$text text={{{ [get[text]length[]else[0]] }}}/>`,\\n \\\"children\\\": [\\n`\\n<$list filter=\\\"[plugintiddlers[]]\\\" variable=\\\"pluginShadow\\\" counter=\\\"counter2\\\">\\n` {\\n \\\"name\\\": \\\"`<$text text={{{ [removeprefixremoveprefix[/]else] }}}/>`\\\",\\n \\\"value\\\": `<$text text={{{ [get[text]length[]else[0]] }}}/>`\\n }`<$list filter=\\\"[match[no]]\\\">`,``\\n`\\n\\n` ]\\n }`<$list filter=\\\"[match[no]]\\\">`,``\\n`\\n\\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/PluginsSize-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize-readme\",\"text\":\"Visualize plugins size:\\n\\n```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\\\" />\\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\":\"<$set name=\\\"tagName\\\" value={{$:/temp/Gk0Wk/echarts/addons/TagCloud/currentTag}}>\\n\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n!! 包含 <$link to=<>/> 标签的条目\\n\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\n!! Tiddlers tagged with <$link to=<>/>\\n\\n\\n\\n\\n
\\n<$macrocall $name=\\\"toc\\\" tag=<> sort=\\\"sort[title]\\\"/>\\n
\\n\\n\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TagCloud-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TagCloud-readme\",\"text\":\"```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\\\" />\\n```\\n\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\\\" />\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup\",\"text\":\"

<$text text=<> />

<$list filter=\\\"[tags[]count[]match[0]]\\\"><$transclude tiddler=\\\"$:/core/ui/ViewTemplate/tags\\\" /><$transclude tiddler=\\\"$:/core/ui/ViewTemplate/body\\\" mode=\\\"inline\\\" />\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrain-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrain-readme\",\"text\":\"<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" focussedTiddler=\\\"$:/plugins/Gk0Wk/echarts\\\" excludeFilter=\\\"[is[draft]]\\\" $width=\\\"100%\\\" $height=\\\"300px\\\" />\\n\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n聚焦图,灵感来源于 <$text text=\\\"TheBrain\\\" /> 与知识图谱理论,目的是在用户阅读条目时提供信息侧载,用直观的视觉信息告诉用户与该条目相关的信息,帮助用户在茫茫的知识海洋中自由漫步。\\n\\n因该图关注的是当前条目所发散的信息,因此成为「聚焦」,与Obsidian的全局知识图谱不同(全局图谱正在设计中,欢迎提出建议)。\\n\\n一般的使用方法:将该图放置于侧栏,并下载安装 <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" /> 插件([[CPL|https://tw-cpl.netlify.app/]]中有)。具体操作为:\\n\\n# 创建一个条目,并赋予其 `$:/tags/SideBar` 标签;\\n# 其中写如下内容:`<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" />`;\\n# 设置一下`caption`字段,作为侧栏的标题\\n# 保存,即可以在侧边栏看到它。\\n\\n聚焦图提供了一些参数,可以根据这些参数设定其行为:\\n\\n* `focussedTiddler` 用于设定当前聚焦的条目,即从该条目开始向外扩展。默认使用 <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" /> 提供的当前聚焦的条目。支持使用过滤表达式包含多个条目,如 `[tag[A]]`;\\n* `levels` 用于设定图的层级,即从当前条目开始,向外扩展几层。默认为 `1`,`Infinity`为无限扩展直到遍历所有关系,@@color:red; 层级越多就越有可能卡死页面,自己当心 @@;\\n* `graphTitle` 用于设定图的标题,即侧边栏的标题。默认为 `聚焦`;\\n* `aliasField` 用于设定别名字段,即在聚焦图中,显示的是别名字段的内容。默认为 `caption`;\\n* `excludeFilter` 用于设定排除的过滤器,即在聚焦图中,排除哪些条目。默认为 `[prefix[$:/]] [is[draft]]`,即排除所有系统条目和被编辑的条目;\\n* `previewDelay` 用于设定预览延迟,即鼠标悬停在节点上多久后显示预览。默认为 `1000`,即 1000ms,`-1` 表示不显示预览;\\n* `focusBlur` 在鼠标悬浮在某个节点上时,其他节点是否变淡。默认为 `true`,即变淡;\\n* `previewTemplate` 用于设定预览模板,渲染预览内容。默认为 `$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup`;\\n* `zoom` 用于设定初始缩放比例。默认为 `4`。\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\nFocus map, inspired by <$text text=\\\"TheBrain\\\" /> and knowledge graph theory, aims to provide information side-loading when users read a tiddler, and use intuitive visual information to tell users the information related to the tiddler, helping users to freely walk in the vast ocean of knowledge.\\n\\nBecause the graph focuses on the information diverging from the current tiddler, it names \\\"focus\\\", which is different from the global knowledge graph of Obsidian (the global graph is under design, suggestions are welcome).\\n\\nGeneral usage: place the graph in the sidebar, and install the <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" /> plugin (available in [[CPL|https://tw-cpl.netlify.app/]]). The specific operation is:\\n\\n# Create a tiddler and assign it the `$:/tags/SideBar` tag;\\n# Write the following content in it: `<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" />`;\\n# Set the `caption` field as the title of the sidebar;\\n# Save, and you can see it in the sidebar.\\n\\nThe focus map provides some parameters, which can be used to set its behavior:\\n\\n* `focussedTiddler` is used to set the current focused tiddler, that is, expand from this tiddler. The default is the current focused tiddler provided by <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" />. Multiple tiddlers can be included in the filter expression, such as `[tag[A]]`;\\n* `levels` is used to set the level of the graph, that is, expand several levels from the current tiddler. The default is `1`, `Infinity` means unlimited expansion until all relationships are traversed, @@color:red; the more levels, the more likely it is to freeze the page, be careful @@;\\n* `graphTitle` is used to set the title of the graph, that is, the title of the sidebar. The default is `Focusing Map`;\\n* `aliasField` is used to set the alias field, that is, the content of the alias field is displayed in the focus map. The default is `caption`;\\n* `excludeFilter` is used to set the exclude filter, that is, which tiddlers are excluded in the focus map. The default is `[prefix[$:/]] [is[draft]]`, that is, exclude all system tiddlers and editing tiddlers;\\n* `previewDelay` is used to set the preview delay, that is, how long the preview is displayed after the mouse hovers over the node. The default is `1000`, that is, 1000ms, `-1` means no preview;\\n* `focusBlur` is used to set whether other nodes become lighter when the mouse hovers over a node. The default is `true`, that is, lighter;\\n* `previewTemplate` is used to set the preview template to render the preview content. The default is `$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup`;\\n* `zoom` is used to set the initial zoom ratio. The default is `4`.\\n\\n\\n\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/BrainMap\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/BrainMap\",\"type\":\"text/vnd.tiddlywiki\",\"caption\":\"BrainMap\",\"echarts.author\":\"peterhajas\",\"echarts.readme\":\"\",\"text\":\"{\\n \\\"tooltip\\\": {\\n \\\"trigger\\\": \\\"item\\\"\\n },\\n \\\"series\\\": [{\\n \\\"type\\\": \\\"graph\\\",\\n \\\"layout\\\": \\\"force\\\",\\n \\\"roam\\\": true,\\n \\\"animation\\\": false,\\n \\\"label\\\": {\\n \\\"position\\\": \\\"right\\\",\\n \\\"formatter\\\": \\\"{b}\\\"\\n },\\n \\\"draggable\\\": false,\\n \\\"data\\\": [\\n <$list>\\n {\\\"name\\\": \\\"<>\\\"},\\n \\n ],\\n \\\"force\\\": {\\n \\\"edgeLength\\\": 25,\\n \\\"repulsion\\\": 50,\\n \\\"gravity\\\": 0.1\\n },\\n \\\"edges\\\": [\\n <$list>\\n <$set name=currentSource value=<> >\\n <$list filter=\\\"[all[current]links[]]\\\">\\n {\\\"source\\\":\\\"<>\\\", \\\"target\\\": \\\"{{!!title}}\\\"},\\n \\n \\n \\n ]\\n }]\\n}\\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/addon-author-template\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addon-author-template\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"
\\n <$macrocall\\n $name=\\\"tabs\\\"\\n tabsList=\\\"[all[shadows+tiddlers]field:echarts.authorsort[caption]]\\\"\\n default={{{ [all[shadows+tiddlers]field:echarts.authorsort[caption]first[]] }}}\\n class=\\\"tc-vertical\\\"\\n template=\\\"$:/plugins/Gk0Wk/echarts/addon-document-template\\\"\\n />\\n
\\n\"},\"$:/plugins/Gk0Wk/echarts/addon-document-template\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addon-document-template\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! <$text text={{{ [get[caption]] }}} />\\n\\n@@background:#0003;padding:5px 10px;border-left:3px solid #03fffc;font-weight:750;background-image:linear-gradient(0,#03fffc12,#03fffc12);\\n<$list filter=\\\"[has[echarts.author]]\\\">\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n作者: <$text text={{{ [get[echarts.author]] }}} />\\n\\n插件: <>\\n\\n文档需要改进?希望分享经验?欢迎提 [[Issue|https://github.com/tiddly-gittly/tw-echarts/issues]] 或者 QQ 群里联系我!\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\nAuthor: <$text text={{{ [get[echarts.author]] }}} />\\n\\nAddon: <>\\n\\nNeed to improve the documentation? Want to share your experience? Feel free for an [[Issue|https://github.com/tiddly-gittly/tw-echarts/issues]]!\\n\\n\\n\\n\\n@@\\n\\n<$transclude mode=\\\"block\\\" tiddler=<> field=\\\"echarts.readme\\\" />\\n\"},\"$:/plugins/Gk0Wk/echarts/addons\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"
\\n <$macrocall\\n $name=\\\"tabs\\\"\\n tabsList=\\\"[all[shadows+tiddlers]has[echarts.author]get[echarts.author]unique[]sort[]]\\\"\\n default={{{ [all[shadows+tiddlers]has[echarts.author]get[echarts.author]unique[]sort[]first[]] }}}\\n class=\\\"tc-vertical\\\"\\n template=\\\"$:/plugins/Gk0Wk/echarts/addon-author-template\\\"\\n />\\n
\\n\"},\"$:/plugins/Gk0Wk/echarts/echarts-wordcloud.min.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/echarts-wordcloud.min.js\",\"text\":\"/*! For license information please see echarts-wordcloud.min.js.LICENSE.txt */\\n!function(t,e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?module.exports=e(require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"echarts\\\"],e):\\\"object\\\"==typeof exports?exports[\\\"echarts-wordcloud\\\"]=e(require(\\\"echarts\\\")):t[\\\"echarts-wordcloud\\\"]=e(t.echarts)}(self,(function(t){return(()=>{\\\"use strict\\\";var e={638:(t,e,a)=>{a.r(e);var r=a(83);r.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=r.helper.createDimensions(t.data,{coordDimensions:[\\\"value\\\"]}),i=new r.List(a,this);return i.initData(t.data),i},defaultOption:{maskImage:null,shape:\\\"circle\\\",keepAspect:!1,left:\\\"center\\\",top:\\\"center\\\",width:\\\"70%\\\",height:\\\"80%\\\",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:\\\"normal\\\"}}}),r.extendChartView({type:\\\"wordCloud\\\",render:function(t,e,a){var i=this.group;i.removeAll();var o=t.getData(),n=t.get(\\\"gridSize\\\");t.layoutInstance.ondraw=function(e,a,s,l){var d=o.getItemModel(s),u=d.getModel(\\\"textStyle\\\"),f=new r.graphic.Text({style:r.helper.createTextStyle(u),scaleX:1/l.info.mu,scaleY:1/l.info.mu,x:(l.gx+l.info.gw/2)*n,y:(l.gy+l.info.gh/2)*n,rotation:l.rot});f.setStyle({x:l.info.fillTextOffsetX,y:l.info.fillTextOffsetY+.5*a,text:e,verticalAlign:\\\"middle\\\",fill:o.getItemVisual(s,\\\"style\\\").fill,fontSize:a}),i.add(f),o.setItemGraphicEl(s,f),f.ensureState(\\\"emphasis\\\").style=r.helper.createTextStyle(d.getModel([\\\"emphasis\\\",\\\"textStyle\\\"]),{state:\\\"emphasis\\\"}),f.ensureState(\\\"blur\\\").style=r.helper.createTextStyle(d.getModel([\\\"blur\\\",\\\"textStyle\\\"]),{state:\\\"blur\\\"}),r.helper.enableHoverEmphasis(f,d.get([\\\"emphasis\\\",\\\"focus\\\"]),d.get([\\\"emphasis\\\",\\\"blurScope\\\"])),f.stateTransition={duration:t.get(\\\"animation\\\")?t.get([\\\"stateAnimation\\\",\\\"duration\\\"]):0,easing:t.get([\\\"stateAnimation\\\",\\\"easing\\\"])},f.__highDownDispatcher=!0},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e=\\\"zero-timeout-message\\\";return window.addEventListener(\\\"message\\\",(function(a){if(\\\"string\\\"==typeof a.data&&a.data.substr(0,e.length)===e){a.stopImmediatePropagation();var r=parseInt(a.data.substr(e.length),36);t[r]&&(t[r](),t[r]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(a){var r=t.length;return t.push(a),window.postMessage(e+r.toString(36),\\\"*\\\"),r}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var i=function(){var t=document.createElement(\\\"canvas\\\");if(!t||!t.getContext)return!1;var e=t.getContext(\\\"2d\\\");return!!(e&&e.getImageData&&e.fillText&&Array.prototype.some&&Array.prototype.push)}(),o=function(){if(i){for(var t,e,a=document.createElement(\\\"canvas\\\").getContext(\\\"2d\\\"),r=20;r;){if(a.font=r.toString(10)+\\\"px sans-serif\\\",a.measureText(\\\"W\\\").width===t&&a.measureText(\\\"m\\\").width===e)return r+1;t=a.measureText(\\\"W\\\").width,e=a.measureText(\\\"m\\\").width,r--}return 0}}(),n=function(t){for(var e,a,r=t.length;r;)e=Math.floor(Math.random()*r),a=t[--r],t[r]=t[e],t[e]=a;return t},s={},l=function(t,e){if(i){var a=Math.floor(Math.random()*Date.now());Array.isArray(t)||(t=[t]),t.forEach((function(e,a){if(\\\"string\\\"==typeof e){if(t[a]=document.getElementById(e),!t[a])throw new Error(\\\"The element id specified is not found.\\\")}else if(!e.tagName&&!e.appendChild)throw new Error(\\\"You must pass valid HTML elements, or ID of the element.\\\")}));var r={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,shrinkToFit:!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(e)for(var l in e)l in r&&(r[l]=e[l]);if(\\\"function\\\"!=typeof r.weightFactor){var d=r.weightFactor;r.weightFactor=function(t){return t*d}}if(\\\"function\\\"!=typeof r.shape)switch(r.shape){case\\\"circle\\\":default:r.shape=\\\"circle\\\";break;case\\\"cardioid\\\":r.shape=function(t){return 1-Math.sin(t)};break;case\\\"diamond\\\":r.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case\\\"square\\\":r.shape=function(t){return Math.min(1/Math.abs(Math.cos(t)),1/Math.abs(Math.sin(t)))};break;case\\\"triangle-forward\\\":r.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\\\":r.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\\\":r.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case\\\"star\\\":r.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?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))}}r.gridSize=Math.max(Math.floor(r.gridSize),4);var u,f,c,h,m,g,w,v,p=r.gridSize,y=p-r.maskGapWidth,x=Math.abs(r.maxRotation-r.minRotation),M=Math.min(r.maxRotation,r.minRotation),S=r.rotationStep;switch(r.color){case\\\"random-dark\\\":w=function(){return L(10,50)};break;case\\\"random-light\\\":w=function(){return L(50,90)};break;default:\\\"function\\\"==typeof r.color&&(w=r.color)}\\\"function\\\"==typeof r.fontWeight&&(v=r.fontWeight);var b=null;\\\"function\\\"==typeof r.classes&&(b=r.classes);var I,T=!1,k=[],C=function(t){var e,a,r=t.currentTarget,i=r.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,a=t.touches[0].clientY):(e=t.clientX,a=t.clientY);var o=e-i.left,n=a-i.top,s=Math.floor(o*(r.width/i.width||1)/p),l=Math.floor(n*(r.height/i.height||1)/p);return k[s]?k[s][l]:null},E=function(t){var e=C(t);I!==e&&(I=e,e?r.hover(e.item,e.dimension,t):r.hover(void 0,void 0,t))},A=function(t){var e=C(t);e&&(r.click(e.item,e.dimension,t),t.preventDefault())},O=[],F=function(t){if(O[t])return O[t];var e=8*t,a=e,i=[];for(0===t&&i.push([h[0],h[1],0]);a--;){var o=1;\\\"circle\\\"!==r.shape&&(o=r.shape(a/e*2*Math.PI)),i.push([h[0]+t*o*Math.cos(-a/e*2*Math.PI),h[1]+t*o*Math.sin(-a/e*2*Math.PI)*r.ellipticity,a/e*2*Math.PI])}return O[t]=i,i},D=function(){return r.abortThreshold>0&&(new Date).getTime()-g>r.abortThreshold},P=function(e,a,r,i,o){e>=f||a>=c||e<0||a<0||(u[e][a]=!1,r&&t[0].getContext(\\\"2d\\\").fillRect(e*p,a*p,y,y),T&&(k[e][a]={item:o,dimension:i}))},R=function e(a,i){if(i>20)return null;var s,l,d;Array.isArray(a)?(s=a[0],l=a[1]):(s=a.word,l=a.weight,d=a.attributes);var h,g,y,I=0===r.rotateRatio||Math.random()>r.rotateRatio?0:0===x?M:M+Math.round(Math.random()*x/S)*S,k=function(t){if(Array.isArray(t)){var e=t.slice();return e.splice(0,2),e}return[]}(a),C=function(t,e,a,i){var n=r.weightFactor(e);if(n<=r.minSize)return!1;var s,l=1;nF[1]&&(F[1]=O),kF[2]&&(F[2]=k);break t}}return{mu:l,occupied:A,bounds:F,gw:S,gh:M,fillTextOffsetX:y,fillTextOffsetY:x,fillTextWidth:f,fillTextHeight:c,fontSize:n}}(s,l,I,k);if(!C)return!1;if(D())return!1;if(!r.drawOutOfBound&&!r.shrinkToFit){var E=C.bounds;if(E[1]-E[3]+1>f||E[2]-E[0]+1>c)return!1}for(var A=m+1;A--;){var O=F(m-A);r.shuffle&&(O=[].concat(O),n(O));for(var R=0;R=f||l>=c||s<0||l<0){if(!r.drawOutOfBound)return!1}else if(!u[s][l])return!1}return!0}(g,y,0,0,C.occupied)&&(function(e,a,i,o,n,s,l,d,u,f){var c,h,m,g=i.fontSize;c=w?w(o,n,g,s,l,f):r.color,h=v?v(o,n,g,f):r.fontWeight,m=b?b(o,n,g,f):r.classes,t.forEach((function(t){if(t.getContext){var n=t.getContext(\\\"2d\\\"),s=i.mu;n.save(),n.scale(1/s,1/s),n.font=h+\\\" \\\"+(g*s).toString(10)+\\\"px \\\"+r.fontFamily,n.fillStyle=c,n.translate((e+i.gw/2)*p*s,(a+i.gh/2)*p*s),0!==d&&n.rotate(-d),n.textBaseline=\\\"middle\\\",n.fillText(o,i.fillTextOffsetX*s,(i.fillTextOffsetY+.5*g)*s),n.restore()}else{var l=document.createElement(\\\"span\\\"),f=\\\"\\\";f=\\\"rotate(\\\"+-d/Math.PI*180+\\\"deg) \\\",1!==i.mu&&(f+=\\\"translateX(-\\\"+i.fillTextWidth/4+\\\"px) scale(\\\"+1/i.mu+\\\")\\\");var w={position:\\\"absolute\\\",display:\\\"block\\\",font:h+\\\" \\\"+g*i.mu+\\\"px \\\"+r.fontFamily,left:(e+i.gw/2)*p+i.fillTextOffsetX+\\\"px\\\",top:(a+i.gh/2)*p+i.fillTextOffsetY+\\\"px\\\",width:i.fillTextWidth+\\\"px\\\",height:i.fillTextHeight+\\\"px\\\",lineHeight:g+\\\"px\\\",whiteSpace:\\\"nowrap\\\",transform:f,webkitTransform:f,msTransform:f,transformOrigin:\\\"50% 40%\\\",webkitTransformOrigin:\\\"50% 40%\\\",msTransformOrigin:\\\"50% 40%\\\"};for(var v in c&&(w.color=c),l.textContent=o,w)l.style[v]=w[v];if(u)for(var y in u)l.setAttribute(y,u[y]);m&&(l.className+=m),t.appendChild(l)}}))}(g,y,C,s,l,m-A,h[2],I,d,k),function(e,a,i,o,n,s){var l,d,u=n.occupied,h=r.drawMask;if(h&&((l=t[0].getContext(\\\"2d\\\")).save(),l.fillStyle=r.maskColor),T){var m=n.bounds;d={x:(e+m[3])*p,y:(a+m[0])*p,w:(m[1]-m[3]+1)*p,h:(m[2]-m[0]+1)*p}}for(var g=u.length;g--;){var w=e+u[g][0],v=a+u[g][1];w>=f||v>=c||w<0||v<0||P(w,v,h,d,s)}h&&l.restore()}(g,y,0,0,C,a),{gx:g,gy:y,rot:I,info:C}));if(z)return z}}return r.shrinkToFit?(Array.isArray(a)?a[1]=3*a[1]/4:a.weight=3*a.weight/4,e(a,i+1)):null},z=function(e,a,r){if(a)return!t.some((function(t){var a=new CustomEvent(e,{detail:r||{}});return!t.dispatchEvent(a)}),this);t.forEach((function(t){var a=new CustomEvent(e,{detail:r||{}});t.dispatchEvent(a)}),this)};!function(){var e=t[0];if(e.getContext)f=Math.ceil(e.width/p),c=Math.ceil(e.height/p);else{var i=e.getBoundingClientRect();f=Math.ceil(i.width/p),c=Math.ceil(i.height/p)}if(z(\\\"wordcloudstart\\\",!0)){var o,n,l,d,w;if(h=r.origin?[r.origin[0]/p,r.origin[1]/p]:[f/2,c/2],m=Math.floor(Math.sqrt(f*f+c*c)),u=[],!e.getContext||r.clearCanvas)for(t.forEach((function(t){if(t.getContext){var e=t.getContext(\\\"2d\\\");e.fillStyle=r.backgroundColor,e.clearRect(0,0,f*(p+1),c*(p+1)),e.fillRect(0,0,f*(p+1),c*(p+1))}else t.textContent=\\\"\\\",t.style.backgroundColor=r.backgroundColor,t.style.position=\\\"relative\\\"})),o=f;o--;)for(u[o]=[],n=c;n--;)u[o][n]=!0;else{var v=document.createElement(\\\"canvas\\\").getContext(\\\"2d\\\");v.fillStyle=r.backgroundColor,v.fillRect(0,0,1,1);var y,x,M=v.getImageData(0,0,1,1).data,S=e.getContext(\\\"2d\\\").getImageData(0,0,f*p,c*p).data;for(o=f;o--;)for(u[o]=[],n=c;n--;){x=p;t:for(;x--;)for(y=p;y--;)for(l=4;l--;)if(S[4*((n*p+x)*f*p+(o*p+y))+l]!==M[l]){u[o][n]=!1;break t}!1!==u[o][n]&&(u[o][n]=!0)}S=v=M=void 0}if(r.hover||r.click){for(T=!0,o=f+1;o--;)k[o]=[];r.hover&&e.addEventListener(\\\"mousemove\\\",E),r.click&&(e.addEventListener(\\\"click\\\",A),e.addEventListener(\\\"touchstart\\\",A),e.addEventListener(\\\"touchend\\\",(function(t){t.preventDefault()})),e.style.webkitTapHighlightColor=\\\"rgba(0, 0, 0, 0)\\\"),e.addEventListener(\\\"wordcloudstart\\\",(function t(){e.removeEventListener(\\\"wordcloudstart\\\",t),e.removeEventListener(\\\"mousemove\\\",E),e.removeEventListener(\\\"click\\\",A),I=void 0}))}l=0;var b=!0;r.layoutAnimation?0!==r.wait?(d=window.setTimeout,w=window.clearTimeout):(d=window.setImmediate,w=window.clearImmediate):(d=function(t){t()},w=function(){b=!1});var C=function(e,a){t.forEach((function(t){t.removeEventListener(e,a)}),this)},O=function t(){C(\\\"wordcloudstart\\\",t),w(s[a])};!function(e,a){t.forEach((function(t){t.addEventListener(\\\"wordcloudstart\\\",a)}),this)}(0,O),s[a]=(r.layoutAnimation?d:setTimeout)((function t(){if(b){if(l>=r.list.length)return w(s[a]),z(\\\"wordcloudstop\\\",!1),C(\\\"wordcloudstart\\\",O),void delete s[a];g=(new Date).getTime();var e=R(r.list[l],0),i=!z(\\\"wordclouddrawn\\\",!0,{item:r.list[l],drawn:e});if(D()||i)return w(s[a]),r.abort(),z(\\\"wordcloudabort\\\",!1),z(\\\"wordcloudstop\\\",!1),void C(\\\"wordcloudstart\\\",O);l++,s[a]=d(t,r.wait)}}),r.wait)}}()}function L(t,e){return\\\"hsl(\\\"+(360*Math.random()).toFixed()+\\\",\\\"+(30*Math.random()+70).toFixed()+\\\"%,\\\"+(Math.random()*(e-t)+t).toFixed()+\\\"%)\\\"}};l.isSupported=i,l.minFontSize=o;const d=l;if(!d.isSupported)throw new Error(\\\"Sorry your browser not support wordCloud\\\");r.registerLayout((function(t,e){t.eachSeriesByType(\\\"wordCloud\\\",(function(a){var i=r.helper.getLayoutRect(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),o=a.get(\\\"keepAspect\\\"),n=a.get(\\\"maskImage\\\"),s=n?n.width/n.height:1;o&&function(t,e){var a=t.width,r=t.height;a>r*e?(t.x+=(a-r*e)/2,t.width=r*e):(t.y+=(r-a/e)/2,t.height=a/e)}(i,s);var l=a.getData(),u=document.createElement(\\\"canvas\\\");u.width=i.width,u.height=i.height;var f=u.getContext(\\\"2d\\\");if(n)try{f.drawImage(n,0,0,u.width,u.height),function(t){for(var e=t.getContext(\\\"2d\\\"),a=e.getImageData(0,0,t.width,t.height),r=e.createImageData(a),i=0,o=0,n=0;n128&&(i+=l=a.data[n]+a.data[n+1]+a.data[n+2],++o);var s=i/o;for(n=0;ns?(r.data[n]=0,r.data[n+1]=0,r.data[n+2]=0,r.data[n+3]=0):(r.data[n]=255,r.data[n+1]=255,r.data[n+2]=255,r.data[n+3]=255)}e.putImageData(r,0,0)}(u)}catch(t){console.error(\\\"Invalid mask image\\\"),console.error(t.toString())}var c=a.get(\\\"sizeRange\\\"),h=a.get(\\\"rotationRange\\\"),m=l.getDataExtent(\\\"value\\\"),g=Math.PI/180,w=a.get(\\\"gridSize\\\");function v(t){var e=t.detail.item;t.detail.drawn&&a.layoutInstance.ondraw&&(t.detail.drawn.gx+=i.x/w,t.detail.drawn.gy+=i.y/w,a.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}d(u,{list:l.mapArray(\\\"value\\\",(function(t,e){var a=l.getItemModel(e);return[l.getName(e),a.get(\\\"textStyle.fontSize\\\",!0)||r.number.linearMap(t,m,c),e]})).sort((function(t,e){return e[1]-t[1]})),fontFamily:a.get(\\\"textStyle.fontFamily\\\")||a.get(\\\"emphasis.textStyle.fontFamily\\\")||t.get(\\\"textStyle.fontFamily\\\"),fontWeight:a.get(\\\"textStyle.fontWeight\\\")||a.get(\\\"emphasis.textStyle.fontWeight\\\")||t.get(\\\"textStyle.fontWeight\\\"),gridSize:w,ellipticity:i.height/i.width,minRotation:h[0]*g,maxRotation:h[1]*g,clearCanvas:!n,rotateRatio:1,rotationStep:a.get(\\\"rotationStep\\\")*g,drawOutOfBound:a.get(\\\"drawOutOfBound\\\"),shrinkToFit:a.get(\\\"shrinkToFit\\\"),layoutAnimation:a.get(\\\"layoutAnimation\\\"),shuffle:!1,shape:a.get(\\\"shape\\\")}),u.addEventListener(\\\"wordclouddrawn\\\",v),a.layoutInstance&&a.layoutInstance.dispose(),a.layoutInstance={ondraw:null,dispose:function(){u.removeEventListener(\\\"wordclouddrawn\\\",v),u.addEventListener(\\\"wordclouddrawn\\\",(function(t){t.preventDefault()}))}}}))})),r.registerPreprocessor((function(t){var e=(t||{}).series;!r.util.isArray(e)&&(e=e?[e]:[]);var a=[\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"];function i(t){t&&r.util.each(a,(function(e){t.hasOwnProperty(e)&&(t[\\\"text\\\"+r.format.capitalFirst(e)]=t[e])}))}r.util.each(e,(function(t){if(t&&\\\"wordCloud\\\"===t.type){var e=t.textStyle||{};i(e.normal),i(e.emphasis)}}))}))},83:e=>{e.exports=t}},a={};function r(t){if(a[t])return a[t].exports;var i=a[t]={exports:{}};return e[t](i,i.exports,r),i.exports}return r.r=t=>{\\\"undefined\\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\\\"Module\\\"}),Object.defineProperty(t,\\\"__esModule\\\",{value:!0})},r(638)})()}));\\n//# sourceMappingURL=echarts-wordcloud.min.js.map\\n\",\"type\":\"application/javascript\",\"module-type\":\"echarts-extension\",\"Modern.TiddlyDev#Minify\":\"false\",\"version\":\"2.1.0\"},\"$:/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.echarts={})}(this,function(t){\\\"use strict\\\";function e(t,e){function n(){this.constructor=t}if(\\\"function\\\"!=typeof e&&null!==e)throw new TypeError(\\\"Class extends value \\\"+String(e)+\\\" is not a constructor or null\\\");ak(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,i=t.match(/Firefox\\\\/([\\\\d.]+)/),r=t.match(/MSIE\\\\s([\\\\d.]+)/)||t.match(/Trident\\\\/.+?rv:(([\\\\d.]+))/),o=t.match(/Edge?\\\\/([\\\\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(\\\".\\\")[0]>18),a&&(n.weChat=!0),e.svgSupported=\\\"undefined\\\"!=typeof SVGRect,e.touchEventsSupported=\\\"ontouchstart\\\"in window&&!n.ie&&!n.edge,e.pointerEventsSupported=\\\"onpointerdown\\\"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=\\\"undefined\\\"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&\\\"transition\\\"in s||n.edge||\\\"WebKitCSSMatrix\\\"in window&&\\\"m11\\\"in new WebKitCSSMatrix||\\\"MozPerspective\\\"in s)&&!(\\\"OTransition\\\"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t){var e={};if(\\\"undefined\\\"==typeof JSON)return e;for(var n=0;ni;i++)e[i]=s(t[i])}}else if(xk[n]){if(!X(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!mk[n]&&!X(t)&&!P(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==Dk&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!A(e)||!A(t))return n?s(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Dk){var r=t[i],o=e[i];!A(o)||!A(r)||M(o)||M(r)||P(o)||P(r)||k(o)||k(r)||X(o)||X(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Dk&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=b(e),r=0;rn;n++)if(t[n]===e)return n}return-1}function d(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(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),r=0;ri;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function v(t,e,n){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===Ik)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function x(t,e,n){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===Sk)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function _(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function b(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function w(t,e){for(var n=[],i=2;in;n++)if(null!=t[n])return t[n]}function B(t,e){return null!=t?t:e}function V(t,e,n){return null!=t?t:null!=e?e:n}function F(t){for(var e=[],n=1;np;p++){var f=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*_e(n,7,0===a?1:0,1<o;o++){var a=document.createElement(\\\"div\\\"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=[\\\"position: absolute\\\",\\\"visibility: hidden\\\",\\\"padding: 0\\\",\\\"margin: 0\\\",\\\"border-width: 0\\\",\\\"user-select: none\\\",\\\"width:0\\\",\\\"height:0\\\",i[l]+\\\":0\\\",r[u]+\\\":0\\\",i[1-l]+\\\":auto\\\",r[1-u]+\\\":auto\\\",\\\"\\\"].join(\\\"!important;\\\"),t.appendChild(a),n.push(a)}return n}function Ie(t,e,n){for(var i=n?\\\"invTrans\\\":\\\"trans\\\",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?be(s,a):be(a,s))}function Te(t){return\\\"CANVAS\\\"===t.nodeName.toUpperCase()}function Ce(t){return null==t?\\\"\\\":(t+\\\"\\\").replace(qk,function(t,e){return Kk[e]})}function De(t,e,n,i){return n=n||{},i?Ae(t,e,n):Qk&&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):Ae(t,e,n),n}function Ae(t,e,n){if(uk.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Te(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Se(Jk,t,i,r))return n.zrX=Jk[0],void(n.zrY=Jk[1])}n.zrX=n.zrY=0}function ke(t){return t||window.event}function Le(t,e,n){if(e=ke(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf(\\\"touch\\\")>=0;if(r){var o=\\\"touchend\\\"!==i?e.targetTouches[0]:e.changedTouches[0];o&&De(t,o,e,n)}else{De(t,e,e,n);var a=Pe(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&$k.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Pe(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=Math.abs(0!==i?i:n),o=i>0?-1:0>i?1:n>0?-1:1;return 3*r*o}function Oe(t,e,n,i){t.addEventListener(e,n,i)}function Re(t,e,n,i){t.removeEventListener(e,n,i)}function Ne(t){return 2===t.which||3===t.which}function Ee(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function ze(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Be(){return[1,0,0,1,0,0]}function Ve(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Fe(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 Ge(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=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]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function We(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 He(t,e,n){var i=e[0],r=e[2],o=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]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ye(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Xe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ue(t){var e=Be();return Fe(e,t),e}function Ze(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:je}}function je(){tL(this.event)}function qe(t,e,n){if(t[t.rectHover?\\\"rectContain\\\":\\\"contain\\\"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s?s:i.parent}return r?fL:!0}return!1}function Ke(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=qe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==fL)){e.target=a;break}}}function $e(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Je(t){for(var e=0;t>=bL;)e|=1&t,t>>=1;return t+e}function Qe(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;tn(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function tn(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function en(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function rn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function on(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]=r?a(i,r,o,h):s(i,r,o,h)))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)p[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,d,f,g=h;;){c=0,d=0,f=!1;do if(e(t[l],p[s])<0){if(t[u++]=t[l++],d++,c=0,0===--o){f=!0;break}}else if(t[u++]=p[s++],c++,d=0,1===--i){f=!0;break}while(g>(c|d));if(f)break;do{if(c=rn(t[l],p,s,i,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,i-=c,1>=i){f=!0;break}}if(t[u++]=t[l++],0===--o){f=!0;break}if(d=nn(p[s],t,l,o,0,e),0!==d){for(a=0;d>a;a++)t[u+a]=t[l+a];if(u+=d,l+=d,o-=d,0===o){f=!0;break}}if(t[u++]=p[s++],1===--i){f=!0;break}g--}while(c>=wL||d>=wL);if(f)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=p[s+a]}}else for(a=0;i>a;a++)t[u+a]=p[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,d=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];return void(t[u]=p[l])}for(var f=h;;){var g=0,y=0,v=!1;do if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0===--i){v=!0;break}}else if(t[u--]=p[l--],y++,g=0,1===--o){v=!0;break}while(f>(g|y));if(v)break;do{if(g=i-rn(p[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,d=u+1,c=s+1,a=g-1;a>=0;a--)t[d+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1===--o){v=!0;break}if(y=o-nn(t[s],p,0,o,o-1,e),0!==y){for(u-=y,l-=y,o-=y,d=u+1,c=l+1,a=0;y>a;a++)t[d+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--i){v=!0;break}f--}while(g>=wL||y>=wL);if(v)break;0>f&&(f=0),f+=2}if(h=f,1>h&&(h=1),1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=wL,c=0,p=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function an(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(bL>r)return o=Qe(t,n,i,e),void en(t,n,i,n+o,e);var a=on(t,e),s=Je(r);do{if(o=Qe(t,n,i,e),s>o){var l=r;l>s&&(l=s),en(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function sn(){TL||(TL=!0,console.warn(\\\"z / z2 / zlevel of displayable is invalid, which may cause unexpected errors\\\"))}function ln(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function un(t){return t>-PL&&PL>t}function hn(t){return t>PL||-PL>t}function cn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function pn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function dn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(un(h)&&un(c))if(un(s))o[0]=0;else{var f=-l/s;f>=0&&1>=f&&(o[d++]=f)}else{var g=c*c-4*h*p;if(un(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v)}else if(g>0){var m=LL(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m);x=0>x?-kL(-x,NL):kL(x,NL),_=0>_?-kL(-_,NL):kL(_,NL);var f=(-s-(x+_))/(3*a);f>=0&&1>=f&&(o[d++]=f)}else{var b=(2*h*s-3*a*c)/(2*LL(h*h*h)),w=Math.acos(b)/3,S=LL(h),M=Math.cos(w),f=(-s-2*S*M)/(3*a),v=(-s+S*(M+RL*Math.sin(w)))/(3*a),I=(-s+S*(M-RL*Math.sin(w)))/(3*a);f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v),I>=0&&1>=I&&(o[d++]=I)}}return d}function fn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(un(a)){if(hn(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(un(h))r[0]=-o/(2*a);else if(h>0){var c=LL(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function gn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function yn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;EL[0]=l,EL[1]=u;for(var m=0;1>m;m+=.05)zL[0]=cn(t,n,r,a,m),zL[1]=cn(e,i,o,s,m),f=Gk(EL,zL),v>f&&(c=m,v=f);v=1/0;for(var x=0;32>x&&!(OL>y);x++)p=c-y,d=c+y,zL[0]=cn(t,n,r,a,p),zL[1]=cn(e,i,o,s,p),f=Gk(zL,EL),p>=0&&v>f?(c=p,v=f):(BL[0]=cn(t,n,r,a,d),BL[1]=cn(e,i,o,s,d),g=Gk(BL,EL),1>=d&&v>g?(c=d,v=g):y*=.5);return h&&(h[0]=cn(t,n,r,a,c),h[1]=cn(e,i,o,s,c)),LL(v)}function vn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;l>=d;d++){var f=d*p,g=cn(t,n,r,a,f),y=cn(e,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function mn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function xn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function _n(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(un(o)){if(hn(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(un(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=LL(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function bn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function wn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Sn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;EL[0]=a,EL[1]=s;for(var p=0;1>p;p+=.05){zL[0]=mn(t,n,r,p),zL[1]=mn(e,i,o,p);var d=Gk(EL,zL);c>d&&(u=p,c=d)}c=1/0;for(var f=0;32>f&&!(OL>h);f++){var g=u-h,y=u+h;zL[0]=mn(t,n,r,g),zL[1]=mn(e,i,o,g);var d=Gk(zL,EL);if(g>=0&&c>d)u=g,c=d;else{BL[0]=mn(t,n,r,y),BL[1]=mn(e,i,o,y);var v=Gk(BL,EL);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=mn(t,n,r,u),l[1]=mn(e,i,o,u)),LL(c)}function Mn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,d=mn(t,n,r,p),f=mn(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}function In(t){var e=t&&VL.exec(t);if(e){var n=e[1].split(\\\",\\\"),i=+H(n[0]),r=+H(n[1]),o=+H(n[2]),a=+H(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:dn(0,i,o,1,t,s)&&cn(0,r,a,1,s[0])}}}function Tn(t){return t=Math.round(t),0>t?0:t>255?255:t}function Cn(t){return t=Math.round(t),0>t?0:t>360?360:t}function Dn(t){return 0>t?0:t>1?1:t}function An(t){var e=t;return Tn(e.length&&\\\"%\\\"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function kn(t){var e=t;return Dn(e.length&&\\\"%\\\"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ln(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Pn(t,e,n){return t+(e-t)*n}function On(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Nn(t,e){UL&&Rn(UL,e),UL=XL.put(t,UL||e.slice())}function En(t,e){if(t){e=e||[];var n=XL.get(t);if(n)return Rn(e,n);t+=\\\"\\\";var i=t.replace(/ /g,\\\"\\\").toLowerCase();if(i in YL)return Rn(e,YL[i]),Nn(t,e),e;var r=i.length;if(\\\"#\\\"!==i.charAt(0)){var o=i.indexOf(\\\"(\\\"),a=i.indexOf(\\\")\\\");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(\\\",\\\"),u=1;switch(s){case\\\"rgba\\\":if(4!==l.length)return 3===l.length?On(e,+l[0],+l[1],+l[2],1):On(e,0,0,0,1);u=kn(l.pop());case\\\"rgb\\\":return l.length>=3?(On(e,An(l[0]),An(l[1]),An(l[2]),3===l.length?u:kn(l[3])),Nn(t,e),e):void On(e,0,0,0,1);case\\\"hsla\\\":return 4!==l.length?void On(e,0,0,0,1):(l[3]=kn(l[3]),zn(l,e),Nn(t,e),e);case\\\"hsl\\\":return 3!==l.length?void On(e,0,0,0,1):(zn(l,e),Nn(t,e),e);default:return}}On(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(i.slice(1,4),16);return h>=0&&4095>=h?(On(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(i.slice(4),16)/15:1),Nn(t,e),e):void On(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(i.slice(1,7),16);return h>=0&&16777215>=h?(On(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(i.slice(7),16)/255:1),Nn(t,e),e):void On(e,0,0,0,1)}}}}function zn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=kn(t[1]),r=kn(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],On(e,Tn(255*Ln(a,o,n+1/3)),Tn(255*Ln(a,o,n)),Tn(255*Ln(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Bn(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function Vn(t,e){var n=En(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Xn(n,4===n.length?\\\"rgba\\\":\\\"rgb\\\")}}function Fn(t){var e=En(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Gn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Tn(Pn(a[0],s[0],l)),n[1]=Tn(Pn(a[1],s[1],l)),n[2]=Tn(Pn(a[2],s[2],l)),n[3]=Dn(Pn(a[3],s[3],l)),n}}function Wn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=En(e[r]),s=En(e[o]),l=i-r,u=Xn([Tn(Pn(a[0],s[0],l)),Tn(Pn(a[1],s[1],l)),Tn(Pn(a[2],s[2],l)),Dn(Pn(a[3],s[3],l))],\\\"rgba\\\");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Hn(t,e,n,i){var r=En(t);return t?(r=Bn(r),null!=e&&(r[0]=Cn(e)),null!=n&&(r[1]=kn(n)),null!=i&&(r[2]=kn(i)),Xn(zn(r),\\\"rgba\\\")):void 0}function Yn(t,e){var n=En(t);return n&&null!=e?(n[3]=Dn(e),Xn(n,\\\"rgba\\\")):void 0}function Xn(t,e){if(t&&t.length){var n=t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2];return(\\\"rgba\\\"===e||\\\"hsva\\\"===e||\\\"hsla\\\"===e)&&(n+=\\\",\\\"+t[3]),e+\\\"(\\\"+n+\\\")\\\"}}function Un(t,e){var n=En(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Zn(){return Xn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],\\\"rgb\\\")}function jn(t){var e;if(t&&\\\"transparent\\\"!==t){if(\\\"string\\\"==typeof t&&t.indexOf(\\\"rgba\\\")>-1){var n=En(t);n&&(t=\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\",e=n[3])}}else t=\\\"none\\\";return{color:t,opacity:null==e?1:e}}function qn(t){return $L>t&&t>-$L}function Kn(t){return KL(1e3*t)/1e3}function $n(t){return KL(1e4*t)/1e4}function Jn(t){return\\\"matrix(\\\"+Kn(t[0])+\\\",\\\"+Kn(t[1])+\\\",\\\"+Kn(t[2])+\\\",\\\"+Kn(t[3])+\\\",\\\"+$n(t[4])+\\\",\\\"+$n(t[5])+\\\")\\\"}function Qn(t,e,n){return\\\"top\\\"===n?t+=e/2:\\\"bottom\\\"===n&&(t-=e/2),t}function ti(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function ei(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(\\\",\\\")}function ni(t){return t&&!!t.image}function ii(t){return t&&!!t.svgElement}function ri(t){return ni(t)||ii(t)}function oi(t){return\\\"linear\\\"===t.type}function ai(t){return\\\"radial\\\"===t.type}function si(t){return t&&(\\\"linear\\\"===t.type||\\\"radial\\\"===t.type)}function li(t){return\\\"url(#\\\"+t+\\\")\\\"}function ui(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function hi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ek,r=B(t.scaleX,1),o=B(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!==r||1!==o)&&l.push(\\\"scale(\\\"+r+\\\",\\\"+o+\\\")\\\"),(a||s)&&l.push(\\\"skew(\\\"+KL(a*Ek)+\\\"deg, \\\"+KL(s*Ek)+\\\"deg)\\\"),l.join(\\\" \\\")}function ci(t,e,n){return(e-t)*n+t}function pi(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=ci(e[o],n[o],i);return t}function di(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=ci(e[a][s],n[a][s],i)}return t}function fi(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function gi(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function yi(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;a>l;l++)i.push(1===n?r[l]:tP.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;lh;h++)isNaN(i[l][h])&&(i[l][h]=r[l][h])}}function mi(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push(tP.call(t[i]));return n}return tP.call(t)}return t}function xi(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 _i(t){return g(t&&t[0])?2:1}function bi(t){return t===oP||t===aP}function wi(t){return t===nP||t===iP}function Si(){return(new Date).getTime()}function Mi(t){var e=t.pointerType;return\\\"pen\\\"===e||\\\"touch\\\"===e}function Ii(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Ti(t){t&&(t.zrByTouch=!0)}function Ci(t,e){return Le(t.dom,new vP(t,e),!0)}function Di(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}function Ai(t,e){var n=e.domHandlers;uk.pointerEventsSupported?y(fP.pointer,function(i){Li(e,i,function(e){n[i].call(t,e)})}):(uk.touchEventsSupported&&y(fP.touch,function(i){Li(e,i,function(r){n[i].call(t,r),Ii(e)})}),y(fP.mouse,function(i){Li(e,i,function(r){r=ke(r),e.touching||n[i].call(t,r)})}))}function ki(t,e){function n(n){function i(i){i=ke(i),Di(t,i.target)||(i=Ci(t,i),e.domHandlers[n].call(t,i))}Li(e,n,i,{capture:!0})}uk.pointerEventsSupported?y(gP.pointer,n):uk.touchEventsSupported||y(gP.mouse,n)}function Li(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Oe(t.domTarget,e,n,i)}function Pi(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Re(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function Oi(t){return t>AP||-AP>t}function Ri(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Wi(t,e,n){var i=e.position||\\\"inside\\\",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h=\\\"left\\\",c=\\\"top\\\";if(i instanceof Array)l+=Gi(i[0],n.width),u+=Gi(i[1],n.height),h=null,c=null;else switch(i){case\\\"left\\\":l-=r,u+=s,h=\\\"right\\\",c=\\\"middle\\\";break;case\\\"right\\\":l+=r+a,u+=s,c=\\\"middle\\\";break;case\\\"top\\\":l+=a/2,u-=r,h=\\\"center\\\",c=\\\"bottom\\\";break;case\\\"bottom\\\":l+=a/2,u+=o+r,h=\\\"center\\\";break;case\\\"inside\\\":l+=a/2,u+=s,h=\\\"center\\\",c=\\\"middle\\\";break;case\\\"insideLeft\\\":l+=r,u+=s,c=\\\"middle\\\";break;case\\\"insideRight\\\":l+=a-r,u+=s,h=\\\"right\\\",c=\\\"middle\\\";break;case\\\"insideTop\\\":l+=a/2,u+=r,h=\\\"center\\\";break;case\\\"insideBottom\\\":l+=a/2,u+=o-r,h=\\\"center\\\",c=\\\"bottom\\\";break;case\\\"insideTopLeft\\\":l+=r,u+=r;break;case\\\"insideTopRight\\\":l+=a-r,u+=r,h=\\\"right\\\";break;case\\\"insideBottomLeft\\\":l+=r,u+=o-r,c=\\\"bottom\\\";break;case\\\"insideBottomRight\\\":l+=a-r,u+=o-r,h=\\\"right\\\",c=\\\"bottom\\\"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Hi(t,e,n,i,r){n=n||{};var o=[];qi(t,\\\"\\\",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;pi;i++)t[i]=e[i]}function Xi(t){return g(t[0])}function Ui(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),L(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Yi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(Xi(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Yi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Yi(o,r,a);o.length=r.length}else t[n]=e[n]}function Zi(t,e){return t===e||g(t)&&g(e)&&ji(t,e)}function ji(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function qi(t,e,n,i,r,o,a,s){for(var l=b(i),u=r.duration,h=r.delay,c=r.additive,d=r.setToFinal,f=!A(o),y=t.animators,v=[],m=0;m0||r.force&&!a.length){var D=void 0,k=void 0,L=void 0;if(s){k={},d&&(D={});for(var M=0;S>M;M++){var _=v[M];k[_]=n[_],d?D[_]=i[_]:n[_]=i[_]}}else if(d){L={};for(var M=0;S>M;M++){var _=v[M];L[_]=mi(n[_]),Ui(n,i,_)}}var I=new hP(n,!1,!1,c?x(y,function(t){return t.targetName===e}):null);I.targetName=e,r.scope&&(I.scope=r.scope),d&&D&&I.whenWithKeys(0,D,v),L&&I.whenWithKeys(0,L,v),I.whenWithKeys(null==u?500:u,s?k:i,v).delay(h||0),t.addAnimator(I,e),a.push(I)}}function Ki(t){delete XP[t]}function $i(t){if(!t)return!1;if(\\\"string\\\"==typeof t)return Un(t,1)r;r++)n+=Un(e[r].color,1);return n/=i,MP>n}return!1}function Ji(t,e){var n=new UP(o(),t,e);return XP[n.id]=n,n}function Qi(t){t.dispose()}function tr(){for(var t in XP)XP.hasOwnProperty(t)&&XP[t].dispose();XP={}}function er(t){return XP[t]}function nr(t,e){YP[t]=e}function ir(t){return t.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\")}function rr(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function or(t,e){switch(t){case\\\"center\\\":case\\\"middle\\\":t=\\\"50%\\\";break;case\\\"left\\\":case\\\"top\\\":t=\\\"0%\\\";break;case\\\"right\\\":case\\\"bottom\\\":t=\\\"100%\\\"\\n}return T(t)?ir(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function ar(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),KP),t=(+t).toFixed(e),n?t:+t}function sr(t){return t.sort(function(t,e){return t-e}),t}function lr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ur(t)}function ur(t){var e=t.toString().toLowerCase(),n=e.indexOf(\\\"e\\\"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(\\\".\\\"),a=0>o?0:r-1-o;return Math.max(0,a-i)}function hr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function cr(t,e,n){if(!t[e])return 0;var i=pr(t,n);return i[e]||0}function pr(t,e){var n=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=v(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=v(r,function(t){return Math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=v(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return v(a,function(t){return t/i})}function dr(t,e){var n=Math.max(lr(t),lr(e)),i=t+e;return n>KP?i:ar(i,n)}function fr(t){var e=2*Math.PI;return(t%e+e)%e}function gr(t){return t>-qP&&qP>t}function yr(t){if(t instanceof Date)return t;if(T(t)){var e=JP.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return\\\"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))}return 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)}return new Date(null==t?0/0:Math.round(t))}function vr(t){return Math.pow(10,mr(t))}function mr(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function xr(t,e){var n,i=mr(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function _r(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function br(t){function e(t,n,i){return t.interval[i]s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function wr(t){var e=parseFloat(t);return e==t&&(0!==e||!T(t)||t.indexOf(\\\"x\\\")<=0)?e:0/0}function Sr(t){return!isNaN(wr(t))}function Mr(){return Math.round(9*Math.random())}function Ir(t,e){return 0===e?t:Ir(e,t%e)}function Tr(t,e){return null==t?e:null==e?t:t*e/Ir(t,e)}function Cr(t){throw new Error(t)}function Dr(t,e,n){return(e-t)*n+t}function Ar(t){return t instanceof Array?t:null==t?[]:[t]}function kr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Lr(t){return!A(t)||M(t)||t instanceof Date?t:t.value}function Pr(t){return A(t)&&!(t instanceof Array)}function Or(t,e,n){var i=\\\"normalMerge\\\"===n,r=\\\"replaceMerge\\\"===n,o=\\\"replaceAll\\\"===n;t=t||[],e=(e||[]).slice();var a=Z();y(e,function(t,n){return A(t)?void 0:void(e[n]=null)});var s=Rr(t,a,n);return(i||r)&&Nr(s,t,a,e),i&&Er(s,e),i||r?zr(s,e,r):o&&Br(s,e),Vr(s),s}function Rr(t,e,n){var i=[];if(\\\"replaceAll\\\"===n)return i;for(var r=0;ri;i++){var o=Wr(t[i].seriesId,null);if(null==o)return;for(var a=Ar(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;u>l;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}}function i(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var o=i(t[r],!0);o.length&&n.push({seriesId:r,dataIndex:o})}return n}var r={},o={};return n(t||[],r),n(e||[],o,r),[i(r),i(o)]}function qr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?v(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?v(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Kr(){var t=\\\"__ec_inner_\\\"+nO++;return function(e){return e[t]||(e[t]={})}}function $r(t,e,n){var i=Jr(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=Qr(t,i,e,{useDefault:l===i,enableAll:n&&null!=n.enableAll?n.enableAll:!0,enableNone:n&&null!=n.enableNone?n.enableNone:!0});s[i+\\\"Models\\\"]=r.models,s[i+\\\"Model\\\"]=r.models[0]}),s}function Jr(t,e){var n;if(T(t)){var i={};i[t+\\\"Index\\\"]=0,n=i}else n=t;var r=Z(),o={},a=!1;return y(n,function(t,n){if(\\\"dataIndex\\\"===n||\\\"dataIndexInside\\\"===n)return void(o[n]=t);var i=n.match(/^(\\\\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||\\\"\\\").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&p(e.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Qr(t,e,n,i){i=i||iO;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return\\\"none\\\"===r||r===!1?(W(i.enableNone,'`\\\"none\\\"` or `false` is not a valid value on index option.'),s.models=[],s):(\\\"all\\\"===r&&(W(i.enableAll,'`\\\"all\\\"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function to(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function eo(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function no(t){return\\\"auto\\\"===t?uk.domSupported?\\\"html\\\":\\\"richText\\\":t||\\\"html\\\"}function io(t,e){var n=Z(),i=[];return y(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function ro(t,e,n,i,r){var o=null==e||\\\"auto\\\"===e;if(null==i)return i;if(D(i)){var a=Dr(n||0,i,r);return ar(a,o?Math.max(lr(n||0),lr(i)):e)}if(T(i))return 1>r?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&\\\"ordinal\\\"===p.type)s[c]=(1>r&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,f=u[c],a=Dr(d,f,r);s[c]=ar(a,o?Math.max(lr(d),lr(f)):e)}}return s}function oo(t){var e={main:\\\"\\\",sub:\\\"\\\"};if(t){var n=t.split(oO);e.main=n[0]||\\\"\\\",e.sub=n[1]||\\\"\\\"}return e}function ao(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType \\\"'+t+'\\\" illegal')}function so(t){return!(!t||!t[sO])}function lo(t){t.$constructor=t,t.extend=function(t){var n,i=this;return uo(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},d(n,this)),h(n.prototype,t),n[sO]=!0,n.extend=this.extend,n.superCall=po,n.superApply=fo,n.superClass=i,n}}function uo(t){return I(t)&&/^class\\\\s/.test(Function.prototype.toString.call(t))}function ho(t,e){t.extend=e.extend}function co(t){var e=[\\\"__\\\\x00is_clz\\\",lO++].join(\\\"_\\\");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function po(t,e){for(var n=[],i=2;i=0||r&&p(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function vo(t){if(\\\"string\\\"==typeof t){var e=pO.get(t);return e&&e.image}return t}function mo(t,e,n,i,r){if(t){if(\\\"string\\\"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=pO.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!_o(e)&&o.pending.push(a)):(e=vk.loadImage(t,xo,xo),e.__zrImageSrc=t,pO.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function xo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ea;a++)o[a]=So(o[a],r);return o.join(\\\"\\\\n\\\")}function wo(t,e,n,i){i=i||{};var r=h({},i);r.font=e,n=B(n,\\\"...\\\"),r.maxIterations=B(i.maxIterations,2);var o=r.minChar=B(i.minChar,0);r.cnCharWidth=Ni(\\\"国\\\",e);var a=r.ascCharWidth=Ni(\\\"a\\\",e);r.placeholder=B(i.placeholder,\\\"\\\");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=Ni(n,e);return u>s&&(n=\\\"\\\",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function So(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return\\\"\\\";var o=Ni(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Mo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Ni(t,i)}return\\\"\\\"===t&&(t=e.placeholder),t}function Mo(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function Io(t,e){null!=t&&(t+=\\\"\\\");var n,i=e.overflow,r=e.padding,o=e.font,a=\\\"truncate\\\"===i,s=Fi(o),l=B(e.lineHeight,s),u=!!e.backgroundColor,h=\\\"truncate\\\"===e.lineOverflow,c=e.width;n=null==c||\\\"break\\\"!==i&&\\\"breakAll\\\"!==i?t?t.split(\\\"\\\\n\\\"):[]:t?ko(t,e.font,c,\\\"breakAll\\\"===i,0).lines:[];var p=n.length*l,d=B(e.height,p);if(p>d&&h){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=wo(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;yu&&Co(i,t.substring(u,h),e,l),Co(i,r[2],e,l,r[1]),u=dO.lastIndex}ua){b>0?(m.tokens=m.tokens.slice(0,b),n(m,_,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var D=S.width,A=null==D||\\\"auto\\\"===D;if(\\\"string\\\"==typeof D&&\\\"%\\\"===D.charAt(D.length-1))w.percentWidth=D,c.push(w),w.contentWidth=Ni(w.text,T);else{if(A){var k=S.backgroundColor,L=k&&k.image;L&&(L=vo(L),_o(L)&&(w.width=Math.max(w.width,L.width*C/L.height)))}var P=g&&null!=o?o-_:null;null!=P&&PP?(w.text=\\\"\\\",w.width=w.contentWidth=0):(w.text=bo(w.text,P-I,T,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Ni(w.text,T)):w.contentWidth=Ni(w.text,T)}w.width+=I,_+=w.width,S&&(x=Math.max(x,w.lineHeight))}n(m,_,x)}i.outerWidth=i.width=B(o,d),i.outerHeight=i.height=B(a,p),i.contentHeight=p,i.contentWidth=d,f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(var v=0;v0&&f+i.accumWidth>i.width&&(o=e.split(\\\"\\\\n\\\"),c=!0),i.accumWidth=f}else{var g=ko(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split(\\\"\\\\n\\\");for(var y=0;y=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}function Ao(t){return Do(t)?vO[t]?!0:!1:!0}function ko(t,e,n,i,r){for(var o=[],a=[],s=\\\"\\\",l=\\\"\\\",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l=\\\"\\\",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=d,s=\\\"\\\",h=u):(l&&(s+=l,l=\\\"\\\",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l=\\\"\\\",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s=\\\"\\\",l=\\\"\\\",u=0,h=0}return o.length||s||(s=t,l=\\\"\\\",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function Lo(t,e,n){return MO.copy(t.getBoundingRect()),t.transform&&MO.applyTransform(t.transform),IO.width=e,IO.height=n,!MO.intersect(IO)}function Po(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;ld;d++){var f=c(t,n,r,a,RO[d]);l[0]=TO(f,l[0]),u[0]=CO(f,u[0])}p=h(e,i,o,s,NO);for(var d=0;p>d;d++){var g=c(e,i,o,s,NO[d]);l[1]=TO(g,l[1]),u[1]=CO(g,u[1])}l[0]=TO(t,l[0]),u[0]=CO(t,u[0]),l[0]=TO(a,l[0]),u[0]=CO(a,u[0]),l[1]=TO(e,l[1]),u[1]=CO(e,u[1]),l[1]=TO(s,l[1]),u[1]=CO(s,u[1])}function No(t,e,n,i,r,o,a,s){var l=bn,u=mn,h=CO(TO(l(t,n,r),1),0),c=CO(TO(l(e,i,o),1),0),p=u(t,n,r,h),d=u(e,i,o,c);a[0]=TO(t,r,p),a[1]=TO(e,o,d),s[0]=CO(t,r,p),s[1]=CO(e,o,d)}function Eo(t,e,n,i,r,o,a,s,l){var u=me,h=xe,c=Math.abs(r-o);if(1e-4>c%kO&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(LO[0]=AO(r)*n+t,LO[1]=DO(r)*i+e,PO[0]=AO(o)*n+t,PO[1]=DO(o)*i+e,u(s,LO,PO),h(l,LO,PO),r%=kO,0>r&&(r+=kO),o%=kO,0>o&&(o+=kO),r>o&&!a?o+=kO:o>r&&a&&(r+=kO),a){var p=o;o=r,r=p}for(var d=0;o>d;d+=Math.PI/2)d>r&&(OO[0]=AO(d)*n+t,OO[1]=DO(d)*i+e,u(s,OO,s),h(l,OO,l))}function zo(t){var e=Math.round(t/jO*1e8)/1e8;return e%2*jO}function Bo(t,e){var n=zo(t[0]);0>n&&(n+=qO);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=qO?r=n+qO:e&&n-r>=qO?r=n-qO:!e&&n>r?r=n+(qO-zo(n-r)):e&&r>n&&(r=n-(qO-zo(r-n))),t[0]=n,t[1]=r}function Vo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Fo(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)return!1;var p=yn(t,e,n,i,r,o,a,s,u,h,null);return c/2>=p}function Go(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=Sn(t,e,n,i,r,o,s,l,null);return u/2>=h}function Wo(t){return t%=QO,0>t&&(t+=QO),t}function Ho(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%tR<1e-4)return!0;if(o){var c=i;i=Wo(r),r=Wo(c)}else i=Wo(i),r=Wo(r);i>r&&(r+=tR);var p=Math.atan2(l,s);return 0>p&&(p+=tR),p>=i&&r>=p||p+tR>=i&&r>=p+tR}function Yo(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function Xo(t,e){return Math.abs(t-e)e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=dn(e,i,o,s,u,rR);if(0===h)return 0;for(var c=0,p=-1,d=void 0,f=void 0,g=0;h>g;g++){var y=rR[g],v=0===y||1===y?.5:1,m=cn(t,n,r,a,y);l>m||(0>p&&(p=fn(e,i,o,s,oR),oR[1]1&&Uo(),d=cn(e,i,o,s,oR[0]),p>1&&(f=cn(e,i,o,s,oR[1]))),c+=2===p?yd?v:-v:yf?v:-v:f>s?v:-v:yd?v:-v:d>s?v:-v)}return c}function jo(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=_n(e,i,o,s,rR);if(0===l)return 0;var u=bn(e,i,o);if(u>=0&&1>=u){for(var h=0,c=mn(e,i,o,u),p=0;l>p;p++){var d=0===rR[p]||1===rR[p]?.5:1,f=mn(t,n,r,rR[p]);a>f||(h+=rR[p]c?d:-d:c>o?d:-d)}return h}var d=0===rR[0]||1===rR[0]?.5:1,f=mn(t,n,r,rR[0]);return a>f?0:e>o?d:-d}function qo(t,e,n,i,r,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);rR[0]=-l,rR[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=nR-1e-4){i=0,r=nR;var h=o?1:-1;return a>=rR[0]+t&&a<=rR[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=nR,r+=nR);for(var p=0,d=0;2>d;d++){var f=rR[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;0>g&&(g=nR+g),(g>=i&&r>=g||g+nR>=i&&r>=g+nR)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Ko(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;l>f;){var g=s[f++],y=1===f;switch(g===eR.M&&f>1&&(n||(u+=Yo(h,c,p,d,i,r))),y&&(h=s[f],c=s[f+1],p=h,d=c),g){case eR.M:p=s[f++],d=s[f++],h=p,c=d;break;case eR.L:if(n){if(Vo(h,c,s[f],s[f+1],e,i,r))return!0}else u+=Yo(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case eR.C:if(n){if(Fo(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Zo(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case eR.Q:if(n){if(Go(h,c,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=jo(h,c,s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case eR.A:var v=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(b)*x+v,a=Math.sin(b)*_+m,y?(p=o,d=a):u+=Yo(h,c,o,a,i,r);var M=(i-v)*_/x+v;if(n){if(Ho(v,m,_,b,b+w,S,e,M,r))return!0}else u+=qo(v,m,_,b,b+w,S,M,r);h=Math.cos(b+w)*x+v,c=Math.sin(b+w)*_+m;break;case eR.R:p=h=s[f++],d=c=s[f++];var I=s[f++],T=s[f++];if(o=p+I,a=d+T,n){if(Vo(p,d,o,d,e,i,r)||Vo(o,d,o,a,e,i,r)||Vo(o,a,p,a,e,i,r)||Vo(p,a,p,d,e,i,r))return!0}else u+=Yo(o,d,o,a,i,r),u+=Yo(p,a,p,d,i,r);break;case eR.Z:if(n){if(Vo(h,c,p,d,e,i,r))return!0}else u+=Yo(h,c,p,d,i,r);h=p,c=d}}return n||Xo(c,d)||(u+=Yo(h,c,p,d,i,r)||0),0!==u}function $o(t,e,n){return Ko(t,0,!1,e,n)}function Jo(t,e,n,i){return Ko(t,e,!0,n,i)}function Qo(t){return!!(t&&\\\"string\\\"!=typeof t&&t.width&&t.height)}function ta(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),\\\"number\\\"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function ea(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(gR(2*i)===gR(2*r)&&(t.x1=t.x2=ia(i,s,!0)),gR(2*o)===gR(2*a)&&(t.y1=t.y2=ia(o,s,!0)),t):t}}function na(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ia(i,s,!0),t.y=ia(r,s,!0),t.width=Math.max(ia(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ia(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ia(t,e,n){if(!e)return t;var i=gR(2*t);return(i+gR(e))%2===0?i/2:(i+(n?1:-1))/2}function ra(t){return\\\"string\\\"!=typeof t||-1===t.indexOf(\\\"px\\\")&&-1===t.indexOf(\\\"rem\\\")&&-1===t.indexOf(\\\"em\\\")?isNaN(+t)?hk+\\\"px\\\":t+\\\"px\\\":t}function oa(t,e){for(var n=0;n=e||\\\"transparent\\\"===t||\\\"none\\\"===t?null:t.image||t.colorStops?\\\"#000\\\":t}function ha(t){return null==t||\\\"none\\\"===t?null:t.image||t.colorStops?\\\"#000\\\":t}function ca(t,e,n){return\\\"right\\\"===e?t-n[1]:\\\"center\\\"===e?t+n[3]/2-n[1]/2:t+n[3]}function pa(t){var e=t.text;return null!=e&&(e+=\\\"\\\"),e}function da(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function fa(t){return null!=t&&\\\"none\\\"!==t}function ga(t){if(T(t)){var e=YR.get(t);return e||(e=Vn(t,-.1),YR.put(t,e)),e}if(O(t)){var n=h({},t);return n.colorStops=v(t.colorStops,function(t){return{offset:t.offset,color:Vn(t.color,-.1)}}),n}return t}function ya(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function va(t){ya(t,\\\"emphasis\\\",RR)}function ma(t){t.hoverState===RR&&ya(t,\\\"normal\\\",PR)}function xa(t){ya(t,\\\"blur\\\",OR)}function _a(t){t.hoverState===OR&&ya(t,\\\"normal\\\",PR)}function ba(t){t.selected=!0}function wa(t){t.selected=!1}function Sa(t,e,n){e(t,n)}function Ma(t,e,n){Sa(t,e,n),t.isGroup&&t.traverse(function(t){Sa(t,e,n)})}function Ia(t,e){switch(e){case\\\"emphasis\\\":t.hoverState=RR;break;case\\\"normal\\\":t.hoverState=PR;break;case\\\"blur\\\":t.hoverState=OR;break;case\\\"select\\\":t.selected=!0}}function Ta(t,e,n,i){for(var r=t.style,o={},a=0;a=0,o=!1;if(t instanceof uR){var a=kR(t),s=r?a.selectFill||a.normalFill:a.normalFill,l=r?a.selectStroke||a.normalStroke:a.normalStroke;if(fa(s)||fa(l)){i=i||{};var u=i.style||{};\\\"inherit\\\"===u.fill?(o=!0,i=h({},i),u=h({},u),u.fill=s):!fa(u.fill)&&fa(s)?(o=!0,i=h({},i),u=h({},u),u.fill=ga(s)):!fa(u.stroke)&&fa(l)&&(o||(i=h({},i),u=h({},u)),u.stroke=ga(l)),i.style=u}}if(i&&null==i.z2){o||(i=h({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:zR)}return i}function Da(t,e,n){if(n&&null==n.z2){n=h({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:BR)}return n}function Aa(t,e,n){var i=p(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:Ta(t,[\\\"opacity\\\"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:i?r:.1*o.opacity},a),n.style=a),n}function ka(t,e){var n=this.states[t];if(this.style){if(\\\"emphasis\\\"===t)return Ca(this,t,e,n);if(\\\"blur\\\"===t)return Aa(this,t,n);if(\\\"select\\\"===t)return Da(this,t,n)}return n}function La(t){t.stateProxy=ka;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ka),n&&(n.stateProxy=ka)}function Pa(t,e){!Fa(t,e)&&!t.__highByOuter&&Ma(t,va)}function Oa(t,e){!Fa(t,e)&&!t.__highByOuter&&Ma(t,ma)}function Ra(t,e){t.__highByOuter|=1<<(e||0),Ma(t,va)}function Na(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ma(t,ma)}function Ea(t){Ma(t,xa)}function za(t){Ma(t,_a)}function Ba(t){Ma(t,ba)}function Va(t){Ma(t,wa)}function Fa(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ga(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=LR(r),a=\\\"series\\\"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){_a(t)}),a&&n.push(r)),o.isBlured=!1}),y(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Wa(t,e,n,i){function r(t,e){for(var n=0;nl;)a=r.getItemGraphicEl(l++);if(a){var u=TR(a);Wa(i,u.focus,u.blurScope,n)}else{var h=t.get([\\\"emphasis\\\",\\\"focus\\\"]),c=t.get([\\\"emphasis\\\",\\\"blurScope\\\"]);null!=h&&Wa(i,h,c,n)}}}function Xa(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||\\\"series\\\"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function $a(t,e,n){ns(t,!0),Ma(t,La),ts(t,e,n)}function Ja(t){ns(t,!1)}function Qa(t,e,n,i){i?Ja(t):$a(t,e,n)}function ts(t,e,n){var i=TR(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function es(t,e,n,i){n=n||\\\"itemStyle\\\";for(var r=0;r=DR&&(e=AR[t]=DR++),e}function as(t){var e=t.type;return e===GR||e===WR||e===HR}function ss(t){var e=t.type;return e===VR||e===FR}function ls(t){var e=kR(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function us(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=ZR.M,c=ZR.C,p=ZR.L,d=ZR.R,f=ZR.A,g=ZR.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:i=1;break;case p:i=1;break;case c:i=3;break;case g:i=2;break;case f:var y=e[4],v=e[5],m=qR(e[0]*e[0]+e[1]*e[1]),x=qR(e[2]*e[2]+e[3]*e[3]),_=KR(-e[1]/x,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=x,l[r++]+=v,l[r++]*=m,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],ve(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ve(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var b=jR[a];b[0]=l[r++],b[1]=l[r++],ve(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}function hs(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function cs(t,e){return(t[0]*e[0]+t[1]*e[1])/(hs(t)*hs(e))}function ps(t,e){return(t[0]*e[1]1&&(a*=$R(f),s*=$R(f));var g=(r===o?-1:1)*$R((a*a*s*s-a*a*d*d-s*s*p*p)/(a*a*d*d+s*s*p*p))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+QR(c)*y-JR(c)*v,x=(e+i)/2+JR(c)*y+QR(c)*v,_=ps([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=ps(b,w);if(cs(b,w)<=-1&&(S=tN),cs(b,w)>=1&&(S=0),0>S){var M=Math.round(S/tN*1e6)/1e6;S=2*tN+M%2*tN}h.addData(u,m,x,a,s,_,S,c,o)}function fs(t){var e=new JO;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=JO.CMD,l=t.match(eN);if(!l)return e;for(var u=0;ug;g++)d[g]=parseFloat(d[g]);for(var y=0;f>y;){var v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=r,T=void 0,C=void 0;\\nswitch(c){case\\\"l\\\":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"L\\\":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"m\\\":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c=\\\"l\\\";break;case\\\"M\\\":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c=\\\"L\\\";break;case\\\"h\\\":i+=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"H\\\":i=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"v\\\":r+=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"V\\\":r=d[y++],p=s.L,e.addData(p,i,r);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],r=d[y-1];break;case\\\"c\\\":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case\\\"S\\\":v=i,m=r,T=e.len(),C=e.data,n===s.C&&(v+=i-C[T-4],m+=r-C[T-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],r=d[y++],e.addData(p,v,m,M,I,i,r);break;case\\\"s\\\":v=i,m=r,T=e.len(),C=e.data,n===s.C&&(v+=i-C[T-4],m+=r-C[T-3]),p=s.C,M=i+d[y++],I=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,v,m,M,I,i,r);break;case\\\"Q\\\":M=d[y++],I=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,M,I,i,r);break;case\\\"q\\\":M=d[y++]+i,I=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,M,I,i,r);break;case\\\"T\\\":v=i,m=r,T=e.len(),C=e.data,n===s.Q&&(v+=i-C[T-4],m+=r-C[T-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,v,m,i,r);break;case\\\"t\\\":v=i,m=r,T=e.len(),C=e.data,n===s.Q&&(v+=i-C[T-4],m+=r-C[T-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,v,m,i,r);break;case\\\"A\\\":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],M=i,I=r,i=d[y++],r=d[y++],p=s.A,ds(M,I,i,r,w,S,x,_,b,p,e);break;case\\\"a\\\":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],M=i,I=r,i+=d[y++],r+=d[y++],p=s.A,ds(M,I,i,r,w,S,x,_,b,p,e)}}(\\\"z\\\"===c||\\\"Z\\\"===c)&&(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}function gs(t){return null!=t.setData}function ys(t,e){var n=fs(t),i=h({},e);return i.buildPath=function(t){if(gs(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){us(n,t),this.dirtyShape()},i}function vs(t,e){return new iN(ys(t,e))}function ms(t,n){var i=ys(t,n),r=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(iN);return r}function xs(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new uR(e);return a.createPathProxy(),a.buildPath=function(t){if(gs(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function _s(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;return mN>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function bs(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/gN(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,y=(p+f)/2,v=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=r-o,w=p*g-f*d,S=(0>x?-1:1)*gN(yN(0,b*b*_-w*w)),M=(w*x-m*S)/_,I=(-w*m-x*S)/_,T=(w*x+m*S)/_,C=(-w*m+x*S)/_,D=M-y,A=I-v,k=T-y,L=C-v;return D*D+A*A>k*k+L*L&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}function ws(t){var e;if(M(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ss(t,e){var n,i=yN(e.r,0),r=yN(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,d=fN(u-l),f=d>uN&&d%uN;if(f>mN&&(d=f),i>mN)if(d>uN-mN)t.moveTo(h+i*cN(l),c+i*hN(l)),t.arc(h,c,i,l,u,!p),r>mN&&(t.moveTo(h+r*cN(u),c+r*hN(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=void 0,A=void 0,k=void 0,L=i*cN(l),P=i*hN(l),O=r*cN(u),R=r*hN(u),N=d>mN;if(N){var E=e.cornerRadius;E&&(n=ws(E),g=n[0],y=n[1],v=n[2],m=n[3]);var z=fN(i-r)/2;if(x=vN(z,v),_=vN(z,m),b=vN(z,g),w=vN(z,y),I=S=yN(x,_),T=M=yN(b,w),(S>mN||M>mN)&&(C=i*cN(u),D=i*hN(u),A=r*cN(l),k=r*hN(l),lN>d)){var B=_s(L,P,A,k,C,D,O,R);if(B){var V=L-B[0],F=P-B[1],G=C-B[0],W=D-B[1],H=1/hN(pN((V*G+F*W)/(gN(V*V+F*F)*gN(G*G+W*W)))/2),Y=gN(B[0]*B[0]+B[1]*B[1]);I=vN(S,(i-Y)/(H+1)),T=vN(M,(r-Y)/(H-1))}}}if(N)if(I>mN){var X=vN(v,I),U=vN(m,I),Z=bs(A,k,L,P,i,X,p),j=bs(C,D,O,R,i,U,p);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),S>I&&X===U?t.arc(h+Z.cx,c+Z.cy,I,dN(Z.y0,Z.x0),dN(j.y0,j.x0),!p):(X>0&&t.arc(h+Z.cx,c+Z.cy,X,dN(Z.y0,Z.x0),dN(Z.y1,Z.x1),!p),t.arc(h,c,i,dN(Z.cy+Z.y1,Z.cx+Z.x1),dN(j.cy+j.y1,j.cx+j.x1),!p),U>0&&t.arc(h+j.cx,c+j.cy,U,dN(j.y1,j.x1),dN(j.y0,j.x0),!p))}else t.moveTo(h+L,c+P),t.arc(h,c,i,l,u,!p);else t.moveTo(h+L,c+P);if(r>mN&&N)if(T>mN){var X=vN(g,T),U=vN(y,T),Z=bs(O,R,C,D,r,-U,p),j=bs(L,P,A,k,r,-X,p);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),M>T&&X===U?t.arc(h+Z.cx,c+Z.cy,T,dN(Z.y0,Z.x0),dN(j.y0,j.x0),!p):(U>0&&t.arc(h+Z.cx,c+Z.cy,U,dN(Z.y0,Z.x0),dN(Z.y1,Z.x1),!p),t.arc(h,c,r,dN(Z.cy+Z.y1,Z.cx+Z.x1),dN(j.cy+j.y1,j.cx+j.x1),p),X>0&&t.arc(h+j.cx,c+j.cy,X,dN(j.y1,j.x1),dN(j.y0,j.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}function Ms(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;d>p;p++)me(a,a,t[p]),xe(s,s,t[p]);me(a,a,i[0]),xe(s,s,i[1])}for(var p=0,d=t.length;d>p;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(ee(t[p]));continue}r=t[p-1],o=t[p+1]}oe(u,o,r),ce(u,u,e);var g=de(f,r),y=de(f,o),v=g+y;0!==v&&(g/=v,y/=v),ce(h,u,-g),ce(c,u,y);var m=ie([],f,h),x=ie([],f,c);i&&(xe(m,m,a),me(m,m,s),xe(x,x,a),me(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}function Is(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=Ms(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Ts(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?pn:cn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?pn:cn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?xn:mn)(t.x1,t.cpx1,t.x2,e),(n?xn:mn)(t.y1,t.cpy1,t.y2,e)]}function Cs(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=\\\"update\\\"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=B(i.duration,200),h=B(i.easing,\\\"cubicOut\\\"),c=0):(u=e.getShallow(l?\\\"animationDurationUpdate\\\":\\\"animationDuration\\\"),h=e.getShallow(l?\\\"animationEasingUpdate\\\":\\\"animationEasing\\\"),c=e.getShallow(l?\\\"animationDelayUpdate\\\":\\\"animationDelay\\\")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),I(c)&&(c=c(n,r)),I(u)&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function Ds(t,e,n,i,r,o,a){var s,l=!1;I(r)?(a=o,o=r,r=null):A(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u=\\\"leave\\\"===t;u||e.stopAnimation(\\\"leave\\\");var h=Cs(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,d=h.easing,f={duration:c,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function As(t,e,n,i,r,o){Ds(\\\"update\\\",t,e,n,i,r,o)}function ks(t,e,n,i,r,o){Ds(\\\"enter\\\",t,e,n,i,r,o)}function Ls(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?\\\"right\\\":\\\"left\\\":o[1]>0?\\\"bottom\\\":\\\"top\\\"}function qs(t){return!t.isGroup}function Ks(t){return null!=t.shape}function $s(t,e,n){function i(t){var e={};return t.traverse(function(t){qs(t)&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ks(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(qs(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),As(t,i,n,TR(t).dataIndex)}}})}}function Js(t,e){return v(t,function(t){var n=t[0];n=ZN(n,e.x),n=jN(n,e.x+e.width);var i=t[1];return i=ZN(i,e.y),i=jN(i,e.y+e.height),[n,i]})}function Qs(t,e){var n=ZN(t.x,e.x),i=jN(t.x+t.width,e.x+e.width),r=ZN(t.y,e.y),o=jN(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function tl(t,e,n){var i=h({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf(\\\"image://\\\")?(r.image=t.slice(8),c(r,n),new fR(i)):Fs(t.replace(\\\"path://\\\",\\\"\\\"),i,n,\\\"center\\\"):void 0}function el(t,e,n,i,r){for(var o=0,a=r[r.length-1];og||g>1)return!1;var y=il(d,f,h,c)/p;return 0>y||y>1?!1:!0}function il(t,e,n,i){return t*i-n*e}function rl(t){return 1e-6>=t&&t>=-1e-6}function ol(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=T(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:[\\\"name\\\"]};s[o+\\\"Index\\\"]=a;var l=t.formatterParamsExtra;l&&y(b(l),function(t){$(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=TR(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:c({content:i,formatterParams:s},r)}}function al(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function sl(t,e){if(t)if(M(t))for(var n=0;n=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(y(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(i.call(r,c,p.originalDeps.slice()),delete h[c]),y(p.successor,d?a:o)}y(h,function(){var t=\\\"\\\";throw new Error(t)})}}}function Sl(t,e){return l(l({},t,!0),e,!0)}function Ml(t,e){t=t.toUpperCase(),SE[t]=new gE(e),wE[t]=e}function Il(t){if(T(t)){var e=wE[t.toUpperCase()]||{};return t===xE||t===_E?s(e):l(s(e),s(wE[bE]),!1)}return l(s(t),s(wE[bE]),!1)}function Tl(t){return SE[t]}function Cl(){return SE[bE]}function Dl(t,e){return t+=\\\"\\\",\\\"0000\\\".substr(0,e-t.length)+t}function Al(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 kl(t){return t===Al(t)}function Ll(t){switch(t){case\\\"year\\\":case\\\"month\\\":return\\\"day\\\";case\\\"millisecond\\\":return\\\"millisecond\\\";default:return\\\"second\\\"}}function Pl(t,e,n,i){var r=yr(t),o=r[El(n)](),a=r[zl(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Bl(n)](),u=r[\\\"get\\\"+(n?\\\"UTC\\\":\\\"\\\")+\\\"Day\\\"](),h=r[Vl(n)](),c=(h-1)%12+1,p=r[Fl(n)](),d=r[Gl(n)](),f=r[Wl(n)](),g=i instanceof gE?i:Tl(i||ME)||Cl(),y=g.getModel(\\\"time\\\"),v=y.get(\\\"month\\\"),m=y.get(\\\"monthAbbr\\\"),x=y.get(\\\"dayOfWeek\\\"),_=y.get(\\\"dayOfWeekAbbr\\\");return(e||\\\"\\\").replace(/{yyyy}/g,o+\\\"\\\").replace(/{yy}/g,Dl(o%100+\\\"\\\",2)).replace(/{Q}/g,s+\\\"\\\").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Dl(a,2)).replace(/{M}/g,a+\\\"\\\").replace(/{dd}/g,Dl(l,2)).replace(/{d}/g,l+\\\"\\\").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+\\\"\\\").replace(/{HH}/g,Dl(h,2)).replace(/{H}/g,h+\\\"\\\").replace(/{hh}/g,Dl(c+\\\"\\\",2)).replace(/{h}/g,c+\\\"\\\").replace(/{mm}/g,Dl(p,2)).replace(/{m}/g,p+\\\"\\\").replace(/{ss}/g,Dl(d,2)).replace(/{s}/g,d+\\\"\\\").replace(/{SSS}/g,Dl(f,3)).replace(/{S}/g,f+\\\"\\\")}function Ol(t,e,n,i,r){var o=null;if(T(n))o=n;else if(I(n))o=n(t.value,e,{level:t.level});else{var a=h({},kE);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=Math.min(d,o.length-1),o=o[d]}}return Pl(new Date(t.value),o,r,i)}function Rl(t,e){var n=yr(t),i=n[zl(e)]()+1,r=n[Bl(e)](),o=n[Vl(e)](),a=n[Fl(e)](),s=n[Gl(e)](),l=n[Wl(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,d=p&&1===r,f=d&&1===i;return f?\\\"year\\\":d?\\\"month\\\":p?\\\"day\\\":c?\\\"hour\\\":h?\\\"minute\\\":u?\\\"second\\\":\\\"millisecond\\\"}function Nl(t,e,n){var i=D(t)?yr(t):t;switch(e=e||Rl(t,n)){case\\\"year\\\":return i[El(n)]();case\\\"half-year\\\":return i[zl(n)]()>=6?1:0;case\\\"quarter\\\":return Math.floor((i[zl(n)]()+1)/4);case\\\"month\\\":return i[zl(n)]();case\\\"day\\\":return i[Bl(n)]();case\\\"half-day\\\":return i[Vl(n)]()/24;case\\\"hour\\\":return i[Vl(n)]();case\\\"minute\\\":return i[Fl(n)]();case\\\"second\\\":return i[Gl(n)]();case\\\"millisecond\\\":return i[Wl(n)]()}}function El(t){return t?\\\"getUTCFullYear\\\":\\\"getFullYear\\\"}function zl(t){return t?\\\"getUTCMonth\\\":\\\"getMonth\\\"}function Bl(t){return t?\\\"getUTCDate\\\":\\\"getDate\\\"}function Vl(t){return t?\\\"getUTCHours\\\":\\\"getHours\\\"}function Fl(t){return t?\\\"getUTCMinutes\\\":\\\"getMinutes\\\"}function Gl(t){return t?\\\"getUTCSeconds\\\":\\\"getSeconds\\\"}function Wl(t){return t?\\\"getUTCMilliseconds\\\":\\\"getMilliseconds\\\"}function Hl(t){return t?\\\"setUTCFullYear\\\":\\\"setFullYear\\\"}function Yl(t){return t?\\\"setUTCMonth\\\":\\\"setMonth\\\"}function Xl(t){return t?\\\"setUTCDate\\\":\\\"setDate\\\"}function Ul(t){return t?\\\"setUTCHours\\\":\\\"setHours\\\"}function Zl(t){return t?\\\"setUTCMinutes\\\":\\\"setMinutes\\\"}function jl(t){return t?\\\"setUTCSeconds\\\":\\\"setSeconds\\\"}function ql(t){return t?\\\"setUTCMilliseconds\\\":\\\"setMilliseconds\\\"}function Kl(t,e,n,i,r,o,a,s){var l=new wR({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?\\\"truncate\\\":null,lineHeight:s}});return l.getBoundingRect()}function $l(t){if(!Sr(t))return T(t)?t:\\\"-\\\";var e=(t+\\\"\\\").split(\\\".\\\");return e[0].replace(/(\\\\d{1,3})(?=(?:\\\\d{3})+(?!\\\\d))/g,\\\"$1,\\\")+(e.length>1?\\\".\\\"+e[1]:\\\"\\\")}function Jl(t,e){return t=(t||\\\"\\\").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Ql(t,e,n){function i(t){return t&&H(t)?t:\\\"-\\\"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o=\\\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}\\\",a=\\\"time\\\"===e,s=t instanceof Date;if(a||s){var l=a?yr(t):t;if(!isNaN(+l))return Pl(l,o,n);if(s)return\\\"-\\\"}if(\\\"ordinal\\\"===e)return C(t)?i(t):D(t)&&r(t)?t+\\\"\\\":\\\"-\\\";var u=wr(t);return r(u)?$l(u):C(t)?i(t):\\\"boolean\\\"==typeof t?t+\\\"\\\":\\\"-\\\"}function tu(t,e,n){M(e)||(e=[e]);var i=e.length;if(!i)return\\\"\\\";for(var r=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';var a=n.markerId||\\\"markerX\\\";return{renderMode:o,content:\\\"{\\\"+a+\\\"|} \\\",style:\\\"subItem\\\"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function iu(t,e,n){(\\\"week\\\"===t||\\\"month\\\"===t||\\\"quarter\\\"===t||\\\"half-year\\\"===t||\\\"year\\\"===t)&&(t=\\\"MM-dd\\\\nyyyy\\\");var i=yr(e),r=n?\\\"getUTC\\\":\\\"get\\\",o=i[r+\\\"FullYear\\\"](),a=i[r+\\\"Month\\\"]()+1,s=i[r+\\\"Date\\\"](),l=i[r+\\\"Hours\\\"](),u=i[r+\\\"Minutes\\\"](),h=i[r+\\\"Seconds\\\"](),c=i[r+\\\"Milliseconds\\\"]();return t=t.replace(\\\"MM\\\",Dl(a,2)).replace(\\\"M\\\",a).replace(\\\"yyyy\\\",o).replace(\\\"yy\\\",Dl(o%100+\\\"\\\",2)).replace(\\\"dd\\\",Dl(s,2)).replace(\\\"d\\\",s).replace(\\\"hh\\\",Dl(l,2)).replace(\\\"h\\\",l).replace(\\\"mm\\\",Dl(u,2)).replace(\\\"m\\\",u).replace(\\\"ss\\\",Dl(h,2)).replace(\\\"s\\\",h).replace(\\\"SSS\\\",Dl(c,3))}function ru(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ou(t,e){return e=e||\\\"transparent\\\",T(t)?t:A(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function au(t,e){if(\\\"_blank\\\"===e||\\\"blank\\\"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}function su(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if(\\\"horizontal\\\"===t){var g=p.width+(f?-f.x+p.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);c=a+y,c>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),\\\"horizontal\\\"===t?o=h+n:a=c+n)})}function lu(t,e,n){var i=e.width,r=e.height,o=or(t.left,i),a=or(t.top,r),s=or(t.right,i),l=or(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=NE(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function uu(t,e,n){n=NE(n||0);var i=e.width,r=e.height,o=or(t.left,i),a=or(t.top,r),s=or(t.right,i),l=or(t.bottom,r),u=or(t.width,i),h=or(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case\\\"center\\\":o=i/2-u/2-n[3];break;case\\\"right\\\":o=i-u-p}switch(t.top||t.bottom){case\\\"middle\\\":case\\\"center\\\":a=r/2-h/2-n[0];break;case\\\"bottom\\\":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new dL(o+n[3],a+n[0],u,h);return f.margin=n,f}function hu(t,e,n,i,r,o){var a=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||\\\"all\\\";if(o=o||t,o.x=t.x,o.y=t.y,!a&&!s)return!1;var u;if(\\\"raw\\\"===l)u=\\\"group\\\"===t.type?new dL(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}var p=uu(c({width:u.width,height:u.height},e),n,i),d=a?p.x-u.x:0,f=s?p.y-u.y:0;return\\\"raw\\\"===l?(o.x=d,o.y=f):(o.x+=d,o.y+=f),o===t&&t.markRedraw(),!0}function cu(t,e){return null!=t[FE[e][0]]||null!=t[FE[e][1]]&&null!=t[FE[e][2]]}function pu(t){var e=t.layoutMode||t.constructor.layoutMode;return A(e)?e:e?{type:e}:null}function du(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(BE(n,function(e){u[e]=t[e]}),BE(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var p=0;pi;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=_u(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=oz(c).datasetMap,d=a.uid+\\\"_\\\"+n.seriesLayoutBy;t=t.slice(),y(t,function(e,n){var i=A(e)?e:t[n]={name:e};\\\"ordinal\\\"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var f=p.get(d)||p.set(d,{categoryWayDim:l,valueWayDim:0});return y(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=f.valueWayDim;i(o[n],l,a),i(h,l,a),f.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=f.categoryWayDim;i(o[n],l,a),i(h,l,a),f.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function xu(t,e,n){var i={},r=_u(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===JE||a===QE)&&y(s,function(t,e){\\\"name\\\"===(A(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var i={},r={},l=[],u=0,h=Math.min(5,n);h>u;u++){var c=Su(e.data,a,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var p=c===rz.Not;if(p&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v||!p&&l[i.n]===rz.Not)&&(i.n=u),t(i)&&l[i.n]!==rz.Not)return i;p||(c===rz.Might&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v)&&(r.n=u))}return t(i)?i:t(r)?r:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemName=[u],i.seriesName=[u]}return i}function _u(t){var e=t.get(\\\"data\\\",!0);return e?void 0:Qr(t.ecModel,\\\"dataset\\\",{index:t.get(\\\"datasetIndex\\\",!0),id:t.get(\\\"datasetId\\\",!0)},iO).models[0]}function bu(t){return t.get(\\\"transform\\\",!0)||t.get(\\\"fromTransformResult\\\",!0)?Qr(t.ecModel,\\\"dataset\\\",{index:t.get(\\\"fromDatasetIndex\\\",!0),id:t.get(\\\"fromDatasetId\\\",!0)},iO).models:[]}function wu(t,e){return Su(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Su(t,e,n,i,r,o){function a(t){var e=T(t);return null!=t&&isFinite(t)&&\\\"\\\"!==t?e?rz.Might:rz.Not:e&&\\\"-\\\"!==t?rz.Must:void 0}var s,l=5;if(L(t))return rz.Not;var u,h;if(i){var c=i[o];A(c)?(u=c.name,h=c.type):T(c)&&(u=c)}if(null!=h)return\\\"ordinal\\\"===h?rz.Must:rz.Not;if(e===$E){var p=t;if(n===iz){for(var d=p[o],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=a(d[r+f])))return s}else for(var f=0;ff;f++){var g=p[r+f];if(g&&null!=(s=a(g[o])))return s}}else if(e===JE){var y=t;if(!u)return rz.Not;for(var f=0;ff;f++){var v=y[f];if(v&&null!=(s=a(v[u])))return s}}else if(e===QE){var m=t;if(!u)return rz.Not;var d=m[u];if(!d||L(d))return rz.Not;for(var f=0;ff;f++)if(null!=(s=a(d[f])))return s}else if(e===KE)for(var x=t,f=0;ff;f++){var v=x[f],_=Lr(v);if(!M(_))return rz.Not;if(null!=(s=a(_[o])))return s}return rz.Not}function Mu(t,e){W(null==az.get(t)&&e),az.set(t,e)}function Iu(t,e,n){var i=az.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Tu(t,e,n,i){var r=Ar(t.get([\\\"aria\\\",\\\"decal\\\",\\\"decals\\\"]));return Du(t,lz,r,null,e,n,i)}function Cu(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function Du(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?Cu(i,a):n;if(h=h||n,h&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Au(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function ku(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Lu(t,e){var n=t.color&&!t.colorLayer;y(e,function(e,i){\\\"colorLayer\\\"===i&&n||HE.hasClass(i)||(\\\"object\\\"==typeof e?t[i]=t[i]?l(t[i],e,!1):s(e):null==t[i]&&(t[i]=e))})}function Pu(t,e,n){if(M(e)){var i=Z();return y(e,function(t){if(null!=t){var e=Wr(t,null);null!=e&&i.set(t,!0)}}),x(n,function(e){return e&&i.get(e[t])})}var r=Wr(e,null);return x(n,function(e){return e&&null!=r&&e[t]===r})}function Ou(t,e){return e.hasOwnProperty(\\\"subType\\\")?x(t,function(t){return t&&t.subType===e.subType}):t}function Ru(t){var e=Z();return t&&y(Ar(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Nu(t,e,n){function i(t){y(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&M(h)&&y(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),y(u,function(t){return i(t)}),y(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function Eu(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return y(t,function(t,e){var n=e.match(Sz);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();zu(i[a],t,o)||(r=!1)}}),r}function zu(t,e,n){return\\\"min\\\"===n?t>=e:\\\"max\\\"===n?e>=t:t===e}function Bu(t,e){return t.join(\\\",\\\")===e.join(\\\",\\\")}function Vu(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Cz.length;i>n;n++){var r=Cz[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?l(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?l(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Fu(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Gu(t){Fu(t,\\\"itemStyle\\\"),Fu(t,\\\"lineStyle\\\"),Fu(t,\\\"areaStyle\\\"),Fu(t,\\\"label\\\"),Fu(t,\\\"labelLine\\\"),Fu(t,\\\"upperLabel\\\"),Fu(t,\\\"edgeLabel\\\")}function Wu(t,e){var n=Tz(t)&&t[e],i=Tz(n)&&n.textStyle;if(i)for(var r=0,o=eO.length;o>r;r++){var a=eO[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Hu(t){t&&(Gu(t),Wu(t,\\\"label\\\"),t.emphasis&&Wu(t.emphasis,\\\"label\\\"))}function Yu(t){if(Tz(t)){Vu(t),Gu(t),Wu(t,\\\"label\\\"),Wu(t,\\\"upperLabel\\\"),Wu(t,\\\"edgeLabel\\\"),t.emphasis&&(Wu(t.emphasis,\\\"label\\\"),Wu(t.emphasis,\\\"upperLabel\\\"),Wu(t.emphasis,\\\"edgeLabel\\\"));var e=t.markPoint;e&&(Vu(e),Hu(e));var n=t.markLine;n&&(Vu(n),Hu(n));var i=t.markArea;i&&Hu(i);var r=t.data;if(\\\"graph\\\"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!L(o))for(var a=0;a=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,p)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if(\\\"all\\\"===l||\\\"positive\\\"===l&&v>0||\\\"negative\\\"===l&&0>v||\\\"samesign\\\"===l&&c>=0&&v>0||\\\"samesign\\\"===l&&0>=c&&0>v){c=dr(c,v),f=v;break}}}return i[0]=c,i[1]=f,i})})}function oh(t){return t instanceof Lz}function ah(t,e,n){n=n||uh(t);var i=e.seriesLayoutBy,r=hh(t,n,i,e.sourceHeader,e.dimensions),o=new Lz({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:s(e)});return o}function sh(t){return new Lz({data:t,sourceFormat:L(t)?tz:KE})}function lh(t){return new Lz({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function uh(t){var e=ez;if(L(t))e=tz;else if(M(t)){0===t.length&&(e=$E);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(M(r)){e=$E;break}if(A(r)){e=JE;break}}}}else if(A(t))for(var o in t)if($(t,o)&&g(t[o])){e=QE;break}return e}function hh(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:ph(r),startIndex:a,dimensionsDetectedCount:o};if(e===$E){var s=t;\\\"auto\\\"===i||null==i?dh(function(t){null!=t&&\\\"-\\\"!==t&&(T(t)?null==a&&(a=1):a=0)},n,s,10):a=D(i)?i:i?1:0,r||1!==a||(r=[],dh(function(t,e){r[e]=null!=t?t+\\\"\\\":\\\"\\\"},n,s,1/0)),o=r?r.length:n===iz?s.length:s[0]?s[0].length:null}else if(e===JE)r||(r=ch(t));else if(e===QE)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===KE){var l=Lr(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ph(r),dimensionsDetectedCount:o}}function ch(t){for(var e,n=0;nr;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;rr;r++)t(o[r],r)}function fh(t){var e=t.sourceFormat;return e===JE||e===QE}function gh(t,e){var n=Rz[mh(t,e)];return n}function yh(t,e){var n=Ez[mh(t,e)];return n}function vh(t){var e=Bz[t];return e}function mh(t,e){return t===$E?t+\\\"_\\\"+e:t}function xh(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return vh(o)(i,a,s)}var l=i;return o===KE&&(l=Lr(i)),l}}}function _h(t){var e,n;return A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function bh(t){return new Gz(t)}function wh(t,e){var n=e&&e.type;return\\\"ordinal\\\"===n?t:(\\\"time\\\"!==n||D(t)||null==t||\\\"-\\\"===t||(t=+yr(t)),null==t||\\\"\\\"===t?0/0:+t)}function Sh(t,e){var n=new Xz,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a=\\\"\\\";t.seriesLayoutBy!==nz&&Cr(a);var s=[],l={},u=t.dimensionsDefine;if(u)y(u,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r=\\\"\\\";$(l,n)&&Cr(r),l[n]=i}});else for(var h=0;ho;o++)r.push(n[o].slice());return r}if(e===JE){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function Th(t,e,n){return null!=n?D(n)||!isNaN(n)&&!$(e,n)?t[n]:$(e,n)?e[n]:void 0:void 0}function Ch(t){return s(t)}function Dh(t){t=s(t);var e=t.type,n=\\\"\\\";e||Cr(n);var i=e.split(\\\":\\\");2!==i.length&&Cr(n);var r=!1;\\\"echarts\\\"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,Uz.set(e,t)}function Ah(t,e,n){var i=Ar(t),r=i.length,o=\\\"\\\";r||Cr(o);for(var a=0,s=r;s>a;a++){var l=i[a];e=kh(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function kh(t,e){var n=\\\"\\\";e.length||Cr(n),A(t)||Cr(n);var i=t.type,r=Uz.get(i);r||Cr(n);var o=v(e,function(t){return Sh(t,r)}),a=Ar(r.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return v(a,function(t,n){var i=\\\"\\\";A(t)||Cr(i),t.data||Cr(i);var r=uh(t.data);Lh(r)||Cr(i);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:nz,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:nz,sourceHeader:0,dimensions:t.dimensions};return ah(t.data,o,null)})}function Lh(t){return t===$E||t===JE}function Ph(t){return t>65535?jz:qz}function Oh(){return[1/0,-1/0]}function Rh(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Nh(t,e,n,i,r){var o=Jz[n||\\\"float\\\"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function Eh(t){var e=t.option.transform;e&&Y(t.option.transform)}function zh(t){return\\\"series\\\"===t.mainType}function Bh(t){throw new Error(t)}function Vh(t,e){var n=t.color||\\\"#6e7079\\\",i=t.fontSize||12,r=t.fontWeight||\\\"400\\\",o=t.color||\\\"#464646\\\",a=t.fontSize||14,s=t.fontWeight||\\\"900\\\";return\\\"html\\\"===e?{nameStyle:\\\"font-size:\\\"+Ce(i+\\\"\\\")+\\\"px;color:\\\"+Ce(n)+\\\";font-weight:\\\"+Ce(r+\\\"\\\"),valueStyle:\\\"font-size:\\\"+Ce(a+\\\"\\\")+\\\"px;color:\\\"+Ce(o)+\\\";font-weight:\\\"+Ce(s+\\\"\\\")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function Fh(t,e){return e.type=t,e}function Gh(t){return\\\"section\\\"===t.type}function Wh(t){return Gh(t)?Yh:Xh}function Hh(t){if(Gh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return y(t.blocks,function(t){var n=Hh(t);n>=e&&(e=n+ +(i&&(!n||Gh(t)&&!t.noHeader)))}),e}return 0}function Yh(t,e,n,i){var r=e.noHeader,o=Zh(Hh(e)),a=[],s=e.blocks||[];W(!s||M(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:\\\"asc\\\",valueDesc:\\\"desc\\\"};if($(u,l)){var c=new Yz(u[l],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else\\\"seriesDesc\\\"===l&&s.reverse()}y(s,function(n,r){var s=e.valueFormatter,l=Wh(n)(s?h(h({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)});var p=\\\"richText\\\"===t.renderMode?a.join(o.richText):jh(a.join(\\\"\\\"),r?n:o.html);if(r)return p;var d=Ql(e.header,\\\"ordinal\\\",t.useUTC),f=Vh(i,t.renderMode).nameStyle;return\\\"richText\\\"===t.renderMode?$h(t,d,f)+o.richText+p:jh('
'+Ce(d)+\\\"
\\\"+p,n)}function Xh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=M(t)?t:[t],v(t,function(t,e){return Ql(t,M(d)?d[e]:d,u)})};if(!o||!a){var c=s?\\\"\\\":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||\\\"#333\\\",r),p=o?\\\"\\\":Ql(l,\\\"ordinal\\\",u),d=e.valueType,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,m=Vh(i,r),x=m.nameStyle,_=m.valueStyle;return\\\"richText\\\"===r?(s?\\\"\\\":c)+(o?\\\"\\\":$h(t,p,x))+(a?\\\"\\\":Jh(t,f,g,y,_)):jh((s?\\\"\\\":c)+(o?\\\"\\\":qh(p,!s,x))+(a?\\\"\\\":Kh(f,g,y,_)),n)}}function Uh(t,e,n,i,r,o){if(t){var a=Wh(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function Zh(t){return{html:nB[t],richText:iB[t]}}function jh(t,e){var n='
',i=\\\"margin: \\\"+e+\\\"px 0 0\\\";return'
'+t+n+\\\"
\\\"}function qh(t,e,n){var i=e?\\\"margin-left:2px\\\":\\\"\\\";return''+Ce(t)+\\\"\\\"}function Kh(t,e,n,i){var r=n?\\\"10px\\\":\\\"20px\\\",o=e?\\\"float:right;margin-left:\\\"+r:\\\"\\\";return t=M(t)?t:[t],''+v(t,function(t){return Ce(t)}).join(\\\"  \\\")+\\\"\\\"}function $h(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Jh(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:\\\"right\\\"}),t.markupStyleCreator.wrapRichTextStyle(M(e)?e.join(\\\" \\\"):e,o)}function Qh(t,e){var n=t.getData().getItemVisual(e,\\\"style\\\"),i=n[t.visualDrawType];return ou(i)}function tc(t,e){var n=t.get(\\\"padding\\\");return null!=n?n:\\\"richText\\\"===e?[8,10]:10}function ec(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll(\\\"defaultedTooltip\\\"),h=u.length,c=o.getRawValue(a),p=M(c),d=Qh(o,a);if(h>1||p&&!h){var f=nc(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=xh(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=Hr(o),v=y&&o.name||\\\"\\\",m=l.getName(a),x=s?v:m;return Fh(\\\"section\\\",{header:v,noHeader:s||!y,sortParam:r,blocks:[Fh(\\\"nameValue\\\",{markerType:\\\"item\\\",markerColor:d,name:x,noName:!H(x),value:e,valueType:n})].concat(i||[])})}function nc(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(Fh(\\\"nameValue\\\",{markerType:\\\"subItem\\\",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=m(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&i.tooltip!==!1&&null!=i.displayName},!1),l=[],u=[],h=[];return i.length?y(i,function(t){o(xh(a,n,t),t)}):y(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function ic(t,e){return t.getName(e)||t.getId(e)}function rc(t){var e=t.name;Hr(t)||(t.name=oc(t)||e)}function oc(t){var e=t.getRawData(),n=e.mapDimensionsAll(\\\"seriesName\\\"),i=[];return y(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(\\\" \\\")}function ac(t){return t.model.getRawData().count()}function sc(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),lc}function lc(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function uc(t,e){y(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(hc,e))})}function hc(t,e){var n=cc(t);return n&&n.setOutputEnd((e||this).count()),e}function cc(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function pc(){var t=Kr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&\\\"reset\\\"}}function dc(t,e,n){t&&is(t)&&(\\\"emphasis\\\"===e?Ra:Na)(t,n)}function fc(t,e,n){var i=qr(t,e),r=e&&null!=e.highlightKey?os(e.highlightKey):null;null!=i?y(Ar(i),function(e){dc(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){dc(t,n,r)})}function gc(t){return hB(t.model)}function yc(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&uB(r).updateMethod,l=o?\\\"incrementalPrepareRender\\\":s&&a[s]?s:\\\"render\\\";return\\\"render\\\"!==l&&a[l](e,n,i,r),dB[l]}function vc(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p=0?i():c=setTimeout(i,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function mc(t,e,n,i){var r=t[e];if(r){var o=r[fB]||r,a=r[yB],s=r[gB];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=vc(o,n,\\\"debounce\\\"===i),r[fB]=o,r[yB]=i,r[gB]=n}return r}}function xc(t,e){var n=t[e];n&&n[fB]&&(n.clear&&n.clear(),t[e]=n[fB])}function _c(t,e){var n=t.visualStyleMapper||mB[e];return n?n:(console.warn(\\\"Unknown style type '\\\"+e+\\\"'.\\\"),mB.itemStyle)}function bc(t,e){var n=t.visualDrawType||xB[e];return n?n:(console.warn(\\\"Unknown style type '\\\"+e+\\\"'.\\\"),\\\"fill\\\")}function wc(t,e){e=e||{},c(e,{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 n=new HP,i=new mR({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new wR({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new mR({style:{fill:\\\"none\\\"},textContent:r,textConfig:{position:\\\"right\\\",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new RN({shape:{startAngle:-MB/2,endAngle:-MB/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:\\\"round\\\",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*MB/2}).start(\\\"circularInOut\\\"),a.animateShape(!0).when(1e3,{startAngle:3*MB/2}).delay(300).start(\\\"circularInOut\\\"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Sc(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mc(t){return t.overallProgress&&Ic}function Ic(){this.agent.dirty(),this.getDownstream().dirty()}function Tc(){this.agent&&this.agent.dirty()}function Cc(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Dc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ar(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?v(e,function(t,e){return Ac(e)}):TB}function Ac(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=0&&Yc(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Zc(t,e,n){for(var i=\\\"radial\\\"===e.type?Uc(t,e,n):Xc(t,e,n),r=e.colorStops,o=0;o0?\\\"dashed\\\"===t?[4*e,2*e]:\\\"dotted\\\"===t?[e]:D(t)?[t]:M(t)?t:null:null}function Jc(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&$c(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=v(n,function(t){return t/r}),i/=r)}return[n,i]}function Qc(t){var e=t.stroke;return!(null==e||\\\"none\\\"===e||!(t.lineWidth>0))}function tp(t){return\\\"string\\\"==typeof t&&\\\"none\\\"!==t}function ep(t){var e=t.fill;return null!=e&&\\\"none\\\"!==e}function np(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function ip(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function rp(t,e,n){var i=mo(e.image,e.__image,n);if(_o(i)){var r=t.createPattern(i,e.repeat||\\\"repeat\\\");if(\\\"function\\\"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Ek),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function op(t,e,n,i){var r,o=Qc(n),a=ep(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||JB,c=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,y=a&&!!p.image,v=o&&!!d.image,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=c?Zc(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=c?Zc(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(_=c||!e.__canvasFillPattern?rp(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(b=c||!e.__canvasStrokePattern?rp(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=m:y&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:v&&(b?t.strokeStyle=b:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,I;t.setLineDash&&n.lineDash&&(r=Jc(e),M=r[0],I=r[1]);var T=!0;(u||c&IL)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),T=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),T&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=I),i||(n.strokeFirst?(o&&ip(t,n),a&&np(t,n)):(a&&np(t,n),o&&ip(t,n))),M&&t.setLineDash([])}function ap(t,e,n){var i=e.__image=mo(n.image,e.__image,e,e.onload);if(i&&_o(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(i,u,h,c,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function sp(t,e,n){var i,r=n.text;if(null!=r&&(r+=\\\"\\\"),r){t.font=n.font||pk,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=Jc(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Qc(n)&&t.strokeText(r,n.x,n.y),ep(n)&&t.fillText(r,n.x,n.y)):(ep(n)&&t.fillText(r,n.x,n.y),Qc(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}function lp(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){gp(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?xO.opacity:a}(i||e.blend!==n.blend)&&(o||(gp(t,r),o=!0),t.globalCompositeOperation=e.blend||xO.blend);for(var s=0;so;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mp(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mp(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function _p(t,e){function n(t){function e(){for(var t=1,e=0,n=v.length;n>e;++e)t=Tr(t,v[e]);for(var i=1,e=0,n=y.length;n>e;++e)i=Tr(i,y[e].length);t*=i;var r=m*v.length*y.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(r,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:i,h=Gc(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);if(o){var c=r.painter.renderOneToVNode(h);c&&_.children.push(c)}else vp(d,h)}d&&(d.clearRect(0,0,x.width,x.height),s.backgroundColor&&(d.fillStyle=s.backgroundColor,d.fillRect(0,0,x.width,x.height)));for(var e=0,n=0;n=e))for(var a=-m,l=0,u=0,h=0;a=S)break;if(v%2===0){var M=.5*(1-s.symbolSize),I=p+f[h][v]*M,T=a+g[l]*M,C=f[h][v]*s.symbolSize,D=g[l]*s.symbolSize,A=w/2%y[c].length;t(I,T,C,D,y[c][A])}p+=f[h][v],++w,++v,v===f[h].length&&(v=0)}++h,h===f.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[i],l=!0,u=0;u=0)){xF.push(n);var o=IB.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Kp(t,e){pF[t]=e}function $p(t){r({createCanvas:t})}function Jp(t,e,n){var i=Dp(\\\"registerMap\\\");i&&i(t,e,n)}function Qp(t){var e=Dp(\\\"getMap\\\");return e&&e(t)}function td(t){return null==t?0:t.length||1}function ed(t){return t}function nd(t,e){var n={},i=n.encode={},r=Z(),o=[],a=[],s={};y(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;id(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),od(n.type)&&(o[0]=e),id(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}qE.each(function(t,e){var r=id(i,e),o=n.otherDims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=v(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new kF(s,e),n}function id(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rd(t){return\\\"category\\\"===t?\\\"ordinal\\\":\\\"time\\\"===t?\\\"time\\\":\\\"float\\\"}function od(t){return!(\\\"ordinal\\\"===t||\\\"time\\\"===t)}function ad(t){return t instanceof RF}function sd(t){for(var e=Z(),n=0;n<(t||[]).length;n++){var i=t[n],r=A(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function ld(t){var e=PF(t);return e.dimNameMap||(e.dimNameMap=sd(t.dimensionsDefine))}function ud(t){return t>30}function hd(t,e){return cd(t,e).dimensions}function cd(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=A(n)?n:{name:n},r=new LF,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=qE.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}oh(t)||(t=sh(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Z(),l=[],u=dd(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&ud(u),d=a===t.dimensionsDefine,f=d?ld(t):sd(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var v=Z(g),m=new Kz(u),x=0;xx;x++)n(x);v.each(function(t,e){var r=Ar(t).slice();if(1===r.length&&!T(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);y(r,function(t,r){var a=T(t)?f.get(t):t;null!=a&&u>a&&(o[r]=a,i(n(a),e,r))})});var _=0;y(o,function(t){var e,r,o,a;if(T(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=v.get(e);if(l!==!1){if(l=Ar(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;u>_&&null!=n(_).coordDim;)_++;u>_&&l.push(_++)}y(l,function(t,s){var l=n(t);if(d&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!A(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var M=b||\\\"value\\\";if(p)y(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var I=0;u>I;I++){var C=n(I),D=C.coordDim;null==D&&(C.coordDim=fd(M,s,S),C.coordDimIndex=0,(!b||0>=w)&&(C.isExtraCoord=!0),w--),r(C),null!=C.type||wu(t,I)!==rz.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type=\\\"ordinal\\\")}return pd(l),new RF({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:p})}function pd(t){for(var e=Z(),n=0;n0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function dd(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return y(e,function(t){var e;A(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function fd(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function gd(t){var e=t.get(\\\"coordinateSystem\\\"),n=new HF(e),i=YF[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function yd(t){return\\\"category\\\"===t.get(\\\"type\\\")}function vd(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;md(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get(\\\"stack\\\"));if(y(i,function(t,e){T(t)&&(i[e]=t={name:t}),p&&!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=\\\"__\\\\x00ecstackresult_\\\"+t.id,c=\\\"__\\\\x00ecstackedover_\\\"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;y(i,function(t){t.coordDim===d&&g++});var v={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,f),m.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function md(t){return!ad(t.schema)}function xd(t,e){return!!e&&e===t.getCalculationInfo(\\\"stackedDimension\\\")}function _d(t,e){return xd(t,e)?t.getCalculationInfo(\\\"stackResultDimension\\\"):e}function bd(t,e){var n,i=t.get(\\\"coordinateSystem\\\"),r=wz.get(i);return e&&e.coordSysDims&&(n=v(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get(\\\"type\\\");n.type=rd(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[\\\"x\\\",\\\"y\\\"]),n}function wd(t,e,n){var i,r;return n&&y(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function Sd(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=sh(t)):(i=r.getSource(),o=i.sourceFormat===KE);var a=gd(e),s=bd(e,a),l=n.useEncodeDefaulter,u=I(l)?l:l?S(mu,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=cd(i,h),p=wd(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=vd(e,{schema:c,store:d}),g=new WF(c,e);g.setCalculationInfo(f);var y=null!=p&&Md(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:d,null,y),g}function Md(t){if(t.sourceFormat===KE){var e=Id(t.data||[]);return!M(Lr(e))}}function Id(t){for(var e=0;ea&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=kd(a),l=r.niceTickExtent=[ar(Math.ceil(t[0]/a)*a,s),ar(Math.floor(t[1]/a)*a,s)];return Pd(l,t),r}function Ad(t){var e=Math.pow(10,mr(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ar(n*e)}function kd(t){return lr(t)+2}function Ld(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Pd(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ld(t,0,e),Ld(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Od(t,e){return t>=e[0]&&t<=e[1]}function Rd(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Nd(t,e){return t*(e[1]-e[0])+e[0]}function Ed(t){return M(t)?$F?new Float32Array(t):t:new JF(t)}function zd(t){return t.get(\\\"stack\\\")||QF+t.seriesIndex}function Bd(t){return t.dim+t.index}function Vd(t){var e=[],n=t.axis,i=\\\"axis0\\\";if(\\\"category\\\"===n.type){for(var r=n.getBandWidth(),o=0;ol;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function Wd(t){var e=Gd(t),n=[];return y(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if(\\\"category\\\"===o.type)i=o.getBandWidth();else if(\\\"value\\\"===o.type||\\\"time\\\"===o.type){var s=o.dim+\\\"_\\\"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var p=t.getData();i=Math.abs(a[1]-a[0])/p.count()}var d=or(t.get(\\\"barWidth\\\"),i),f=or(t.get(\\\"barMaxWidth\\\"),i),g=or(t.get(\\\"barMinWidth\\\")||(jd(t)?.5:1),i),y=t.get(\\\"barGap\\\"),v=t.get(\\\"barCategoryGap\\\");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:Bd(o),stackId:zd(t)})}),Hd(n)}function Hd(t){var e={};y(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:\\\"20%\\\",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=b(i).length;o=Math.max(35-4*a,15)+\\\"%\\\"}var s=or(o,r),l=or(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),y(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,d=0;y(i,function(t){t.width||(t.width=c),p=t,d+=t.width*(1+l)}),p&&(d-=p.width*l);var f=-d/2;y(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function Yd(t,e,n){if(t&&e){var i=t[Bd(e)];return null!=i&&null!=n?i[zd(n)]:i}}function Xd(t,e){var n=Fd(t,e),i=Wd(n);y(n,function(t){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),o=zd(t),a=i[Bd(r)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})})}function Ud(t){return{seriesType:t,plan:pc(),reset:function(t){if(Zd(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get(\\\"showBackground\\\",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo(\\\"stackResultDimension\\\"),h=xd(e,l)&&!!e.getCalculationInfo(\\\"stackedOnSeries\\\"),c=r.isHorizontal(),p=qd(i,r),d=jd(t),f=t.get(\\\"barMinHeight\\\")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout(\\\"size\\\"),v=e.getLayout(\\\"offset\\\");return{progress:function(t,e){for(var i,r=t.count,l=d&&Ed(3*r),u=d&&s&&Ed(3*r),m=d&&Ed(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=p,T=void 0;h&&(T=+S-b.get(o,i));var C=void 0,D=void 0,A=void 0,k=void 0;if(c){var L=n.dataToPoint([S,M]);if(h){var P=n.dataToPoint([T,M]);I=P[0]}C=I,D=L[1]+v,A=L[0]-I,k=y,Math.abs(A)A?-1:1)*f)}else{var L=n.dataToPoint([M,S]);if(h){var P=n.dataToPoint([M,T]);I=P[1]}C=L[0]+v,D=I,A=y,k=L[1]-I,Math.abs(k)=k?-1:1)*f)}d?(l[w]=C,l[w+1]=D,l[w+2]=c?A:k,u&&(u[w]=c?x.x:C,u[w+1]=c?D:x.y,u[w+2]=_),m[i]=i):e.setItemLayout(i,{x:C,y:D,width:A,height:k}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}function Zd(t){return t.coordinateSystem&&\\\"cartesian2d\\\"===t.coordinateSystem.type}function jd(t){return t.pipelineContext&&t.pipelineContext.large}function qd(t,e){return e.toGlobalCoord(e.dataToCoord(\\\"log\\\"===e.type?1:0))}function Kd(t,e,n,i){var r=yr(e),o=yr(n),a=function(t){return Nl(r,t,i)===Nl(o,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\\\")},d=function(){return p()&&a(\\\"millisecond\\\")};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 d()}}function $d(t){return t/=DE,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Jd(t){var e=30*DE;return t/=e,t>6?6:t>3?3:t>2?2:1}function Qd(t){return t/=CE,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function tf(t,e){return t/=e?TE:IE,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ef(t){return xr(t,!0)}function nf(t,e,n){var i=new Date(t);switch(Al(e)){case\\\"year\\\":case\\\"month\\\":i[Yl(n)](0);case\\\"day\\\":i[Xl(n)](1);case\\\"hour\\\":i[Ul(n)](0);case\\\"minute\\\":i[Zl(n)](0);case\\\"second\\\":i[jl(n)](0),i[ql(n)](0)}return i.getTime()}function rf(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!Kd(Al(t),i[0],i[1],n)){l&&(o=[{value:nf(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u=i[0]&&_<=i[1]&&c++)}var b=(i[1]-i[0])/e;if(c>1.5*b&&p>b/1.5)break;if(u.push(y),c>b||t===s[d])break}h=[]}}}for(var w=x(v(u,function(t){return x(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),S=[],M=w.length-1,d=0;d0&&i>0||0>n&&0>i)}function df(t){var e=t.getLabelModel().get(\\\"formatter\\\"),n=\\\"category\\\"===t.type?t.scale.getExtent()[0]:null;return\\\"time\\\"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):T(e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace(\\\"{value}\\\",null!=i?i:\\\"\\\");return r}}(e):I(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(ff(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function ff(t,e){return\\\"category\\\"===t.type?t.scale.getLabel(e):e.value}function gf(t){var e=t.model,n=t.scale;if(e.get([\\\"axisLabel\\\",\\\"show\\\"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof jF?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=df(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},p=l(c,h),d=s.getTextRect(p),f=yf(d,s.get(\\\"rotate\\\")||0);a?a.union(f):a=f}return a}}function yf(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new dL(t.x,t.y,o,a);return s}function vf(t){var e=t.get(\\\"interval\\\");return null==e?\\\"auto\\\":e}function mf(t){return\\\"category\\\"===t.type&&0===vf(t.getLabelModel())}function xf(t,e){var n={};return y(t.mapDimensionsAll(e),function(e){n[_d(t,e)]=!0}),b(n)}function _f(t,e,n){e&&y(xf(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}function bf(t){return Sd(null,t)}function wf(t,e){var n=e;e instanceof gE||(n=new gE(e));var i=cf(n);return i.setExtent(t[0],t[1]),hf(i,n),i}function Sf(t){f(t,gG)}function Mf(t,e){return e=e||{},pl(t,null,null,\\\"normal\\\"!==e.state)}function If(t){return M(t)?void y(t,function(t){If(t)}):void(p(mG,t)>=0||(mG.push(t),I(t)&&(t={install:t}),t.install(xG)))}function Tf(t,e){return Math.abs(t-e)<_G}function Cf(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;os;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Lf(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return y(i,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case\\\"LineString\\\":e.coordinates=Of(r,i,n);break;case\\\"Polygon\\\":Pf(r,i,n);break;case\\\"MultiLineString\\\":Pf(r,i,n);break;case\\\"MultiPolygon\\\":y(r,function(t,e){return Pf(t,i[e],n)})}}),e.UTF8Encoding=!1,e}function Pf(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function Rf(t,e){return t=Lf(t),v(x(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case\\\"Polygon\\\":var o=i.coordinates;r.push(new SG(o[0],o.slice(1)));break;case\\\"MultiPolygon\\\":y(i.coordinates,function(t){t[0]&&r.push(new SG(t[0],t.slice(1)))});break;case\\\"LineString\\\":r.push(new MG([i.coordinates]));break;case\\\"MultiLineString\\\":r.push(new MG(i.coordinates))}var a=new IG(n[e||\\\"name\\\"],r,n.cp);return a.properties=n,a})}function Nf(t){return\\\"category\\\"===t.type?zf(t):Ff(t)}function Ef(t,e){return\\\"category\\\"===t.type?Vf(t,e):{ticks:v(t.scale.getTicks(),function(t){return t.value})}}function zf(t){var e=t.getLabelModel(),n=Bf(t,e);return!e.get(\\\"show\\\")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Bf(t,e){var n=Gf(t,\\\"labels\\\"),i=vf(e),r=Wf(n,i);if(r)return r;var o,a;return I(i)?o=jf(t,i):(a=\\\"auto\\\"===i?Yf(t):i,o=Zf(t,a)),Hf(n,i,{labels:o,labelCategoryInterval:a})}function Vf(t,e){var n=Gf(t,\\\"ticks\\\"),i=vf(e),r=Wf(n,i);if(r)return r;var o,a;if((!e.get(\\\"show\\\")||t.scale.isBlank())&&(o=[]),I(i))o=jf(t,i,!0);else if(\\\"auto\\\"===i){var s=Bf(t,t.getLabelModel());a=s.labelCategoryInterval,o=v(s.labels,function(t){return t.tickValue})}else a=i,o=Zf(t,a,!0);return Hf(n,i,{ticks:o,tickCategoryInterval:a})}function Ff(t){var e=t.scale.getTicks(),n=df(t);return{labels:v(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Gf(t,e){return PG(t)[e]||(PG(t)[e]=[])}function Wf(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f=0,g=0,y=zi(n({value:l}),e.font,\\\"center\\\",\\\"top\\\");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=PG(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function Uf(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get(\\\"rotate\\\")||0,font:e.getFont()}}function Zf(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=df(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=mf(t),d=s.get(\\\"showMinLabel\\\")||p,f=s.get(\\\"showMaxLabel\\\")||p;d&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return f&&g-u!==a[1]&&i(a[1]),l}function jf(t,e,n){var i=t.scale,r=df(t),o=[];return y(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function qf(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function Kf(t,e,n,i){function r(t,e){return t=ar(t),e=ar(e),p?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[1]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;y(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var p=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function $f(t){var e=HE.extend(t);return HE.registerClass(e),e}function Jf(t){var e=lB.extend(t);return lB.registerClass(e),e}function Qf(t){var e=sB.extend(t);return sB.registerClass(e),e}function tg(t){var e=cB.extend(t);return cB.registerClass(e),e}function eg(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case\\\"top\\\":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case\\\"bottom\\\":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case\\\"left\\\":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case\\\"right\\\":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function ng(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(i-r)%NG<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=Wo(r),r=Wo(p)}else i=Wo(i),r=Wo(r);i>r&&(r+=NG);var d=Math.atan2(s,a);if(0>d&&(d+=NG),d>=i&&r>=d||d+NG>=i&&r>=d+NG)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return x>m?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function ig(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var d=l*h+u*c,f=d/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var g=a[0]=t+f*h,y=a[1]=e+f*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function rg(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function og(t,e,n){var i=rg(e.x,e.y,e.width,e.height,t.x,t.y,BG);return n.set(BG[0],BG[1]),i}function ag(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,d=0;d=d&&(s=i,l=r);var S=(c-y)*x/m+y;g=ng(y,v,x,_,_+b,w,S,p,BG),o=Math.cos(_+b)*m+y,a=Math.sin(_+b)*x+v;break;case EG.R:s=o=h[d++],l=a=h[d++];var M=h[d++],I=h[d++];g=rg(s,l,M,I,c,p,BG);break;case EG.Z:g=ig(o,a,s,l,c,p,BG,!0),o=s,a=l}u>g&&(u=g,n.set(BG[0],BG[1]))}return u}function sg(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||zG,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Xe([],h),p=e.get(\\\"length2\\\")||0;u&&GG.copy(u);for(var d=0;dy&&(l=y,FG.transform(h),GG.transform(h),GG.toArray(o[0]),FG.toArray(o[1]),VG.toArray(o[2]))}lg(o,e.get(\\\"minTurnAngle\\\")),n.setShape({points:o})}}}function lg(t,e){if(180>=e&&e>0){e=e/180*Math.PI,VG.fromArray(t[0]),FG.fromArray(t[1]),GG.fromArray(t[2]),rL.sub(WG,VG,FG),rL.sub(HG,GG,FG);var n=WG.len(),i=HG.len();if(!(.001>n||.001>i)){WG.scale(1/n),HG.scale(1/i);var r=WG.dot(HG),o=Math.cos(e);if(r>o){var a=ig(FG.x,FG.y,GG.x,GG.y,VG.x,VG.y,YG,!1);XG.fromArray(YG),XG.scaleAndAdd(HG,a/Math.tan(Math.PI-e));var s=GG.x!==FG.x?(XG.x-FG.x)/(GG.x-FG.x):(XG.y-FG.y)/(GG.y-FG.y);if(isNaN(s))return;0>s?rL.copy(XG,FG):s>1&&rL.copy(XG,GG),XG.toArray(t[1])}}}}function ug(t,e,n){if(180>=n&&n>0){n=n/180*Math.PI,VG.fromArray(t[0]),FG.fromArray(t[1]),GG.fromArray(t[2]),rL.sub(WG,FG,VG),rL.sub(HG,GG,FG);var i=WG.len(),r=HG.len();if(!(.001>i||.001>r)){WG.scale(1/i),HG.scale(1/r);var o=WG.dot(e),a=Math.cos(n);if(a>o){var s=ig(FG.x,FG.y,GG.x,GG.y,VG.x,VG.y,YG,!1);XG.fromArray(YG);var l=Math.PI/2,u=Math.acos(HG.dot(e)),h=l+u-n;if(h>=l)rL.copy(XG,GG);else{XG.scaleAndAdd(HG,s/Math.tan(Math.PI/2-h));var c=GG.x!==FG.x?(XG.x-FG.x)/(GG.x-FG.x):(XG.y-FG.y)/(GG.y-FG.y);if(isNaN(c))return;0>c?rL.copy(XG,FG):c>1&&rL.copy(XG,GG)}XG.toArray(t[1])}}}}function hg(t,e,n,i){var r=\\\"normal\\\"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get(\\\"smooth\\\");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel(\\\"lineStyle\\\").getLineStyle();r?t.useStyle(s):o.style=s}function cg(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Fk(i[0],i[1]),o=Fk(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=ye([],i[1],i[0],a/r),l=ye([],i[1],i[2],a/o),u=ye([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;ht){var i=Math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(f=!0);for(var o=i;r>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n\\n}}function u(i,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;c-1>s;s++){var d=o[s]*p;l(d,0,s+1)}else for(var s=c-1;s>0;s--){var d=o[s-1]*p;l(-d,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,d=0,f=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],x=m.rect;p=x[e]-d,0>p&&(x[e]-=p,m.label[e]-=p,f=!0);var _=Math.max(-p,0);g.push(_),y+=_,d=x[e]+x[n]}y>0&&o&&l(-y/c,0,c);var b,w,S=t[0],M=t[c-1];return a(),0>b&&u(-b,.8),0>w&&u(w,.8),a(),s(b,w,1),s(w,b,-1),a(),0>b&&h(-b),0>w&&h(w),f}}function yg(t,e,n,i){return gg(t,\\\"x\\\",\\\"width\\\",e,n,i)}function vg(t,e,n,i){return gg(t,\\\"y\\\",\\\"height\\\",e,n,i)}function mg(t){function e(t){if(!t.ignore){var e=t.ensureState(\\\"emphasis\\\");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new dL(0,0,0,0),r=0;r10&&\\\"cartesian2d\\\"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){\\\"lttb\\\"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;T(r)?d=sW[r]:I(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,lW))}}}}}function Ag(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get([\\\"lineStyle\\\",\\\"width\\\"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new mR({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=I(r)?function(t){r(t,c)}:null;ks(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function kg(t,e,n){var i=t.getArea(),r=ar(i.r0,1),o=ar(i.r,1),a=new _N({shape:{cx:ar(t.cx,1),cy:ar(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=\\\"angle\\\"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,ks(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function Lg(t,e,n,i,r){return t?\\\"polar\\\"===t.type?kg(t,e,n):\\\"cartesian2d\\\"===t.type?Ag(t,e,n,i,r):null:null}function Pg(t,e){return t.type===e}function Og(t,e){var n=t.mapDimensionsAll(\\\"defaultedLabel\\\"),i=n.length;if(1===i){var r=xh(t,e,n[0]);return null!=r?r+\\\"\\\":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(\\\" \\\")}function Ng(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return Wi(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,d=(c+p)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(c-p)/2:0,m=Math.cos,x=Math.sin,_=u+c*m(f),b=h+c*x(f),w=\\\"left\\\",S=\\\"top\\\";switch(a){case\\\"startArc\\\":_=u+(p-s)*m(y),b=h+(p-s)*x(y),w=\\\"center\\\",S=\\\"top\\\";break;case\\\"insideStartArc\\\":_=u+(p+s)*m(y),b=h+(p+s)*x(y),w=\\\"center\\\",S=\\\"bottom\\\";break;case\\\"startAngle\\\":_=u+d*m(f)+zg(f,s+v,!1),b=h+d*x(f)+Bg(f,s+v,!1),w=\\\"right\\\",S=\\\"middle\\\";break;case\\\"insideStartAngle\\\":_=u+d*m(f)+zg(f,-s+v,!1),b=h+d*x(f)+Bg(f,-s+v,!1),w=\\\"left\\\",S=\\\"middle\\\";break;case\\\"middle\\\":_=u+d*m(y),b=h+d*x(y),w=\\\"center\\\",S=\\\"middle\\\";break;case\\\"endArc\\\":_=u+(c+s)*m(y),b=h+(c+s)*x(y),w=\\\"center\\\",S=\\\"bottom\\\";break;case\\\"insideEndArc\\\":_=u+(c-s)*m(y),b=h+(c-s)*x(y),w=\\\"center\\\",S=\\\"top\\\";break;case\\\"endAngle\\\":_=u+d*m(g)+zg(g,s+v,!0),b=h+d*x(g)+Bg(g,s+v,!0),w=\\\"left\\\",S=\\\"middle\\\";break;case\\\"insideEndAngle\\\":_=u+d*m(g)+zg(g,-s+v,!0),b=h+d*x(g)+Bg(g,-s+v,!0),w=\\\"right\\\",S=\\\"middle\\\";break;default:return Wi(e,i,r)}return e=e||{},e.x=_,e.y=b,e.align=w,e.verticalAlign=S,e}}function Eg(t,e,n,i){if(D(i))return void t.setTextConfig({rotation:i});if(M(e))return void t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case\\\"startArc\\\":case\\\"insideStartArc\\\":case\\\"middle\\\":case\\\"insideEndArc\\\":case\\\"endArc\\\":r=l;break;case\\\"startAngle\\\":case\\\"insideStartAngle\\\":r=a;break;case\\\"endAngle\\\":case\\\"insideEndAngle\\\":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;\\\"middle\\\"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}function zg(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Bg(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Vg(t,e,n){var i=t.get(\\\"borderRadius\\\");if(null==i)return n?{cornerRadius:0}:null;M(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:v(i,function(t){return Gi(t,r)})}}function Fg(t,e){var n=t.getArea&&t.getArea();if(Pg(t,\\\"cartesian2d\\\")){var i=t.getBaseAxis();if(\\\"category\\\"!==i.type||!i.onBand){var r=e.getLayout(\\\"bandWidth\\\");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function Gg(t,e){var n=t.get(\\\"realtimeSort\\\",!0),i=e.getBaseAxis();return n&&\\\"category\\\"===i.type&&\\\"cartesian2d\\\"===e.type?{baseAxis:i,otherAxis:e.getOtherAxis(i)}:void 0}function Wg(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?As:ks)(n,{shape:l},e,r,null);var h=e?t.baseAxis.model:null;(a?As:ks)(n,{shape:u},h,r)}function Hg(t,e){for(var n=0;n=r.r0?\\\"endArc\\\":\\\"startArc\\\":r.endAngle>=r.startAngle?\\\"endAngle\\\":\\\"startAngle\\\":a?r.height>=0?\\\"bottom\\\":\\\"top\\\":r.width>=0?\\\"right\\\":\\\"left\\\",g=cl(i);hl(t,g,{labelFetcher:o,labelDataIndex:n,defaultText:Og(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=t.getTextContent();if(s&&v){var m=i.get([\\\"label\\\",\\\"position\\\"]);t.textConfig.inside=\\\"middle\\\"===m?!0:null,Eg(t,\\\"outside\\\"===m?f:m,Xg(a),i.get([\\\"label\\\",\\\"rotate\\\"]))}ml(v,g,o.getRawValue(n),function(t){return Rg(e,t)});var x=i.getModel([\\\"emphasis\\\"]);Qa(t,x.get(\\\"focus\\\"),x.get(\\\"blurScope\\\"),x.get(\\\"disabled\\\")),es(t,i),Yg(r)&&(t.style.fill=\\\"none\\\",t.style.stroke=\\\"none\\\",y(t.states,function(t){t.style&&(t.style.fill=t.style.stroke=\\\"none\\\")}))}function Zg(t,e){var n=t.get([\\\"itemStyle\\\",\\\"borderColor\\\"]);if(!n||\\\"none\\\"===n)return 0;var i=t.get([\\\"itemStyle\\\",\\\"borderWidth\\\"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}function jg(t,e,n,i){var r=t.getData(),o=r.getLayout(\\\"valueAxisHorizontal\\\")?1:0,a=r.getLayout(\\\"largeDataIndices\\\"),s=r.getLayout(\\\"size\\\"),l=t.getModel(\\\"backgroundStyle\\\"),u=r.getLayout(\\\"largeBackgroundPoints\\\");if(u){var h=new SW({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new SW({shape:{points:r.getLayout(\\\"largePoints\\\")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(r.getVisual(\\\"style\\\")),TR(c).seriesIndex=t.seriesIndex,t.get(\\\"silent\\\")||(c.on(\\\"mousedown\\\",MW),c.on(\\\"mousemove\\\",MW)),n&&n.push(c)}function qg(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;c>h;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}function Kg(t,e,n){if(Pg(n,\\\"cartesian2d\\\")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var r=n.getArea(),o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function $g(t,e,n){var i=\\\"polar\\\"===t.type?_N:mR;return new i({shape:Kg(e,n,t),silent:!0,z2:0})}function Jg(t){t.registerChartView(gW),t.registerSeriesModel(hW),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(Xd,\\\"bar\\\")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ud(\\\"bar\\\")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dg(\\\"bar\\\")),t.registerAction({type:\\\"changeAxisOrder\\\",event:\\\"changeAxisOrder\\\",update:\\\"update\\\"},function(t,e){var n=t.componentType||\\\"series\\\";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})}function Qg(t,e){this.parent.drift(t,e)}function ty(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 ey(t){return null==t||A(t)||(t={isIgnore:t}),t||{}}function ny(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:cl(e),cursorStyle:e.get(\\\"cursor\\\")}}function iy(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=ry(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h=\\\"x\\\"===s||\\\"radius\\\"===s?1:0,c=v(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,d=e.getCalculationInfo(\\\"stackResultDimension\\\");return xd(e,c[0])&&(p=!0,c[0]=d),xd(e,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo(\\\"stackedOverDimension\\\")}}function ry(t,e){var n=0,i=t.scale.getExtent();return\\\"start\\\"===e?n=i[0]:\\\"end\\\"===e?n=i[1]:D(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function oy(t,e,n,i){var r=0/0;t.stacked&&(r=n.get(n.getCalculationInfo(\\\"stackedOverDimension\\\"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function ay(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:\\\"+\\\",idx:t})}).update(function(t,e){n.push({cmd:\\\"=\\\",idx:e,idx1:t})}).remove(function(t){n.push({cmd:\\\"-\\\",idx:t})}).execute(),n}function sy(t,e,n,i,r,o,a){for(var s=ay(t,e),l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=iy(r,e,a),y=t.getLayout(\\\"points\\\")||[],v=e.getLayout(\\\"points\\\")||[],m=0;my;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(ly(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?\\\"moveTo\\\":\\\"lineTo\\\"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(.5>x*x+_*_){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&i>y;)y++,b+=o,g+=o,w=e[2*b],S=e[2*b+1],v=e[2*g],m=e[2*g+1],x=v-u,_=m-h;var M=y+1;if(l)for(;ly(w,S)&&i>M;)M++,b+=o,w=e[2*b],S=e[2*b+1];var I=.5,T=0,C=0,D=void 0,A=void 0;if(M>=i||ly(w,S))d=v,f=m;else{T=w-u,C=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if(\\\"x\\\"===s){R=Math.abs(k),N=Math.abs(L);var E=T>0?1:-1;d=v-E*R*a,f=m,D=v+E*N*a,A=m}else if(\\\"y\\\"===s){R=Math.abs(P),N=Math.abs(O);var z=C>0?1:-1;d=v,f=m-z*R*a,D=v,A=m+z*N*a}else R=Math.sqrt(k*k+P*P),N=Math.sqrt(L*L+O*O),I=N/(N+R),d=v-T*a*(1-I),f=m-C*a*(1-I),D=v+T*a*I,A=m+C*a*I,D=DW(D,AW(w,v)),A=DW(A,AW(S,m)),D=AW(D,DW(w,v)),A=AW(A,DW(S,m)),T=D-v,C=A-m,d=v-T*R/N,f=m-C*R/N,d=DW(d,AW(u,v)),f=DW(f,AW(h,m)),d=AW(d,DW(u,v)),f=AW(f,DW(h,m)),T=v-d,C=m-f,D=v+T*N/R,A=m+C*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=D,p=A}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function hy(t,e){if(t.length===e.length){for(var n=0;no;o++){var a=oy(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function gy(t,e,n,i){var r=e.getBaseAxis(),o=\\\"x\\\"===r.dim||\\\"radius\\\"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;ss;s++){var l=t[s],u=l.coord;if(0>u)i=l;else{if(u>e){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}function vy(t,e,n){var i=t.getVisual(\\\"visualMeta\\\");if(i&&i.length&&t.count()&&\\\"cartesian2d\\\"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,\\\"x\\\"===r||\\\"y\\\"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=v(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=yy(u,\\\"x\\\"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=p[0].coord-f,m=p[d-1].coord+f,x=m-g;if(.001>x)return\\\"transparent\\\";y(p,function(t){t.offset=(t.coord-g)/x}),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\\\"});var _=new zN(0,0,0,0,p,!0);return _[r]=g,_[r+\\\"2\\\"]=m,_}}}function my(t,e,n){var i=t.get(\\\"showAllSymbol\\\"),r=\\\"auto\\\"===i;if(!i||r){var o=n.getAxesByScale(\\\"ordinal\\\")[0];if(o&&(!r||!xy(o,e))){var a=e.mapDimension(o.dim),s={};return y(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function xy(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*TW.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function _y(t,e){return isNaN(t)||isNaN(e)}function by(t){for(var e=t.length/2;e>0&&_y(t[2*e-2],t[2*e-1]);e--);return e-1}function wy(t,e){return[t[2*e],t[2*e+1]]}function Sy(t,e,n){for(var i,r,o=t.length/2,a=\\\"x\\\"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function My(t){if(t.get([\\\"endLabel\\\",\\\"show\\\"]))return!0;for(var e=0;ei?(i=c,x-=c):_+=t;var r=b+w*i;e.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:y?rr(t,m,[u,l]):l}),b=r}),NW>x&&p)if(.001>=x){var S=NW/p;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=S,i.startAngle=h+w*n*S,i.endAngle=h+w*(n+1)*S}})}else f=x/_,b=h,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===c?c:t*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}})})}function Py(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:\\\"legend\\\"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;rn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var p=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(p)d;d++)if(\\\"outer\\\"===t[d].position&&\\\"labelLine\\\"===t[d].labelAlignTo){var f=t[d].label.x-u;t[d].linePoints[1][0]+=f,t[d].label.x=u}vg(t,l,l+a)&&c(t)}}function Ry(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;pe||n){var c=o.height;if(u&&u.match(\\\"break\\\")){i.setStyle(\\\"backgroundColor\\\",null),i.setStyle(\\\"width\\\",e-l);var p=i.getBoundingRect();i.setStyle(\\\"width\\\",Math.ceil(p.width)),i.setStyle(\\\"backgroundColor\\\",a)}else{var d=e-l,f=h>e?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle(\\\"width\\\",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function Ey(t){return\\\"center\\\"===t.position}function zy(t){function e(t){t.ignore=!0}function n(t){if(!t.ignore)return!0;for(var e in t.states)if(t.states[e].ignore===!1)return!0;return!1}var i,r,o=t.getData(),a=[],s=!1,l=(t.get(\\\"minShowLabelAngle\\\")||0)*zW,u=o.getLayout(\\\"viewRect\\\"),h=o.getLayout(\\\"r\\\"),c=u.width,p=u.x,d=u.y,f=u.height;o.each(function(t){var u=o.getItemGraphicEl(t),d=u.shape,f=u.getTextContent(),g=u.getTextGuideLine(),v=o.getItemModel(t),m=v.getModel(\\\"label\\\"),x=m.get(\\\"position\\\")||v.get([\\\"emphasis\\\",\\\"label\\\",\\\"position\\\"]),_=m.get(\\\"distanceToLabelLine\\\"),b=m.get(\\\"alignTo\\\"),w=or(m.get(\\\"edgeDistance\\\"),c),S=m.get(\\\"bleedMargin\\\"),M=v.getModel(\\\"labelLine\\\"),I=M.get(\\\"length\\\");I=or(I,c);var T=M.get(\\\"length2\\\");if(T=or(T,c),Math.abs(d.endAngle-d.startAngle)O?-1:1)*T,G=V;C=\\\"edge\\\"===b?0>O?p+w:p+c-w:F+(0>O?-_:_),A=G,k=[[E,z],[B,V],[F,G]]}L=N?\\\"center\\\":\\\"edge\\\"===b?O>0?\\\"right\\\":\\\"left\\\":O>0?\\\"left\\\":\\\"right\\\"}var W=Math.PI,H=0,Y=m.get(\\\"rotate\\\");if(D(Y))H=Y*(W/180);else if(\\\"center\\\"===x)H=0;else if(\\\"radial\\\"===Y||Y===!0){var X=0>O?-P+W:-P;H=X}else if(\\\"tangential\\\"===Y&&\\\"outside\\\"!==x&&\\\"outer\\\"!==x){var U=Math.atan2(O,R);0>U&&(U=2*W+U);var Z=R>0;Z&&(U=W+U),H=U-W}if(s=!!H,f.x=C,f.y=A,f.rotation=H,f.setStyle({verticalAlign:\\\"middle\\\"}),N){f.setStyle({align:L});var j=f.states.select;j&&(j.x+=f.x,j.y+=f.y)}else{var q=f.getBoundingRect().clone();q.applyTransform(f.getComputedTransform());var K=(f.style.margin||0)+2.1;q.y-=K/2,q.height+=K,a.push({label:f,labelLine:g,position:x,len:I,len2:T,minTurnAngle:M.get(\\\"minTurnAngle\\\"),maxSurfaceAngle:M.get(\\\"maxSurfaceAngle\\\"),surfaceNormal:new rL(O,R),linePoints:k,textAlign:L,labelDistance:_,labelAlignTo:b,edgeDistance:w,bleedMargin:S,rect:q,unconstrainedWidth:q.width,labelStyleWidth:f.style.width})}u.setTextConfig({inside:N})}}),!s&&t.get(\\\"avoidLabelOverlap\\\")&&Ry(a,i,r,h,c,f,p,d);for(var g=0;gi?!1:!0})}}}function Fy(t){t.registerChartView(VW),t.registerSeriesModel(WW),Ec(\\\"pie\\\",t.registerAction),t.registerLayout(S(Ly,\\\"pie\\\")),t.registerProcessor(Py(\\\"pie\\\")),t.registerProcessor(Vy(\\\"pie\\\"))}function Gy(t,n,i,r){y(iH,function(o,a){var s=l(l({},nH[a],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+\\\"Axis.\\\"+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=pu(this),i=n?fu(t):{},r=e.getTheme();l(t,r.get(a+\\\"Axis\\\")),l(t,this.getDefaultOption()),t.type=Wy(t),n&&du(t,i,n)},i.prototype.optionUpdated=function(){var t=this.option;\\\"category\\\"===t.type&&(this.__ordinalMeta=ZF.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return\\\"category\\\"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+\\\"Axis.\\\"+a,i.defaultOption=s,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+\\\"Axis\\\",Wy)}function Wy(t){return t.type||(t.data?\\\"category\\\":\\\"value\\\")}function Hy(t){return\\\"interval\\\"===t.type||\\\"time\\\"===t.type}function Yy(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?\\\"onZero\\\":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get(\\\"offset\\\")||0,f=\\\"x\\\"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=[\\\"y\\\"===u?f[p[l]]:c[0],\\\"x\\\"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*(\\\"x\\\"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get([\\\"axisTick\\\",\\\"inside\\\"])&&(o.tickDirection=-o.tickDirection),z(n.labelInside,e.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(o.labelDirection=-o.labelDirection);var v=e.get([\\\"axisLabel\\\",\\\"rotate\\\"]);return o.labelRotate=\\\"top\\\"===l?-v:v,o.z2=1,o}function Xy(t){return\\\"cartesian2d\\\"===t.get(\\\"coordinateSystem\\\")}function Uy(t){var e={xAxisModel:null,yAxisModel:null};return y(e,function(n,i){var r=i.replace(/Model$/,\\\"\\\"),o=t.getReferringComponents(r,iO).models[0];e[i]=o}),e}function Zy(t,e,n){var i=KF.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=lf(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if(\\\"log\\\"===t.type){var p=lH(t.base);u=[lH(u[0])/p,lH(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=Ad(f),g=u[1]-f*a;else{var v=t.getTicks().length-1;v>a&&(f=Ad(f));var m=f*a;y=Math.ceil(u[1]/f)*f,g=ar(y-m),0>g&&u[0]>=0?(g=0,y=ar(m)):y>0&&u[1]<=0&&(y=0,g=-ar(m))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*x,y+f*_),i.setInterval.call(t,f),(x||_)&&i.setNiceExtent.call(t,g+f,y-f)}function jy(t,e){return t.getCoordSysModel()===e}function qy(t,e,n,i){function r(t){return t.dim+\\\"_\\\"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get([\\\"axisLine\\\",\\\"onZero\\\"]),u=s.get([\\\"axisLine\\\",\\\"onZeroAxisIndex\\\"]);if(l){if(null!=u)Ky(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Ky(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function Ky(t){return t&&\\\"category\\\"!==t.type&&\\\"time\\\"!==t.type&&pf(t)}function $y(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord=\\\"x\\\"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=\\\"x\\\"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function Jy(t,e,n,i){var r,o,a=fr(n-t),s=i[0]>i[1],l=\\\"start\\\"===e&&!s||\\\"start\\\"!==e&&s;return gr(a-hH/2)?(o=l?\\\"bottom\\\":\\\"top\\\",r=\\\"center\\\"):gr(a-1.5*hH)?(o=l?\\\"top\\\":\\\"bottom\\\",r=\\\"center\\\"):(o=\\\"middle\\\",r=1.5*hH>a&&a>hH/2?l?\\\"left\\\":\\\"right\\\":l?\\\"right\\\":\\\"left\\\"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Qy(t,e,n){if(!mf(t.axis)){var i=t.get([\\\"axisLabel\\\",\\\"showMinLabel\\\"]),r=t.get([\\\"axisLabel\\\",\\\"showMaxLabel\\\"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],p=n[n.length-2];i===!1?(tv(o),tv(u)):ev(o,a)&&(i?(tv(a),tv(h)):(tv(o),tv(u))),r===!1?(tv(s),tv(c)):ev(l,s)&&(r?(tv(l),tv(p)):(tv(s),tv(c)))}}function tv(t){t&&(t.ignore=!0)}function ev(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Ve([]);return He(r,r,-t.rotation),n.applyTransform(Ge([],r,t.getLocalTransform())),i.applyTransform(Ge([],r,e.getLocalTransform())),n.intersect(i)}}function nv(t){return\\\"middle\\\"===t||\\\"center\\\"===t}function iv(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function dv(t){var e=fv(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get(\\\"status\\\"),a=n.get(\\\"value\\\");null!=a&&(a=i.parse(a));var s=yv(n);null==o&&(r.status=s?\\\"show\\\":\\\"hide\\\");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0?\\\"borderColor\\\":\\\"borderColor0\\\"])||n.get([\\\"itemStyle\\\",t>0?\\\"color\\\":\\\"color0\\\"]);0===t&&(i=n.get([\\\"itemStyle\\\",\\\"borderColorDoji\\\"]));var r=n.getModel(\\\"itemStyle\\\").getItemStyle(CH);e.useStyle(r),e.style.fill=null,e.style.stroke=i}function kv(t){t&&M(t.series)&&y(t.series,function(t){A(t)&&\\\"k\\\"===t.type&&(t.type=\\\"candlestick\\\")})}function Lv(t,e,n,i,r,o){var a;return a=n>i?-1:i>n?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}function Pv(t,e){var n,i=t.getBaseAxis(),r=\\\"category\\\"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=or(B(t.get(\\\"barMaxWidth\\\"),r),r),a=or(B(t.get(\\\"barMinWidth\\\"),1),r),s=t.get(\\\"barWidth\\\");return null!=s?or(s,r):Math.max(Math.min(r/2,o),a)}function Ov(t){t.registerChartView(DH),t.registerSeriesModel(RH),t.registerPreprocessor(kv),t.registerVisual(FH),t.registerLayout(GH)}function Rv(t){t.eachSeriesByType(\\\"radar\\\",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();y(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=Nv(r)?r:Ev(i)})}),e.each(function(t){var r=_(n[t],function(t){return Nv(t)})||Ev(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])})}})}function Nv(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ev(t){return[t.cx,t.cy]}function zv(t){var e=t.polar;if(e){M(e)||(e=[e]);var n=[];y(e,function(e){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],M(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}y(t.series,function(t){t&&\\\"radar\\\"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}function Bv(t,e){return c({show:e},t)}function Vv(t){t.registerCoordinateSystem(\\\"radar\\\",qH),t.registerComponentModel(XH),t.registerComponentView(ZH),t.registerVisual({seriesType:\\\"radar\\\",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,\\\"legendIcon\\\",\\\"roundRect\\\")}),e.setVisual(\\\"legendIcon\\\",\\\"roundRect\\\")}})}function Fv(t){If(Vv),t.registerChartView(WH),t.registerSeriesModel(HH),t.registerLayout(Rv),t.registerProcessor(Py(\\\"radar\\\")),t.registerPreprocessor(zv)}function Gv(t,e,n){var i=t[1]-t[0];e=v(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var r=e.length,o=0;return function(t){var i;for(i=o;r>i;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&r>i&&n[i]}}function Wv(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function Hv(t){var e=t.dimensions;return\\\"lng\\\"===e[0]&&\\\"lat\\\"===e[1]}function Yv(t){t.registerChartView(JH),t.registerSeriesModel(QH)}function Xv(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function Uv(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){$v(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=Jv(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Zv(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function jv(t){return arguments.length?t:im}function qv(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Kv(t,e){return uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function $v(t){for(var e=t.children,n=e.length,i=0,r=0;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function Jv(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Qv(s),o=tm(o),s&&o;){r=Qv(r),a=tm(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);p>0&&(nm(em(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!Qv(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!tm(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}function Qv(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tm(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function em(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function nm(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function im(t,e){return t.parentNode===e.parentNode?1:2}function rm(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function om(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function am(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}function sm(t,e,n){var i=hm(t);i[e]=n}function lm(t,e,n){var i=hm(t),r=i[e];r===n&&(i[e]=null)}function um(t,e){return!!hm(t)[e]}function hm(t){return t[nY]||(t[nY]={})}function cm(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(tL(i.event),pm(t,e,n,i,r))}function pm(t,e,n,i,r){r.isAvailableBehavior=Lk(dm,null,n,i),t.trigger(e,r)}function dm(t,e,n){var i=n[t];return!t||i&&(!T(i)||e.event[i+\\\"Key\\\"])}function fm(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!rY.hasOwnProperty(i.mainType)&&r&&r.model!==n}function gm(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function ym(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual(\\\"style\\\").fill,u=a.isExpand===!1&&0!==a.children.length?l:\\\"#fff\\\",h=t.tree.root,c=a.parentNode===h?a:a.parentNode||a,p=t.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?(n=new TW(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,As(n,{x:g.x,y:g.y},r);var y=n.getSymbolPath();if(\\\"radial\\\"===r.get(\\\"layout\\\")){var v=h.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(g.x===m.x&&a.isExpand===!0&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};_=Math.atan2(w.y-m.y,w.x-m.x),0>_&&(_=2*Math.PI+_),b=w.x_&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&a.isExpand===!1?(b=g.xm.x,b||(_-=Math.PI));var S=b?\\\"left\\\":\\\"right\\\",M=s.getModel(\\\"label\\\"),I=M.get(\\\"rotate\\\"),T=I*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:M.get(\\\"position\\\")||S,rotation:null==I?-_:T,origin:\\\"center\\\"}),C.setStyle(\\\"verticalAlign\\\",\\\"middle\\\"))}var D=s.get([\\\"emphasis\\\",\\\"focus\\\"]),A=\\\"relative\\\"===D?j(a.getAncestorsIndices(),a.getDescendantIndices()):\\\"ancestor\\\"===D?a.getAncestorsIndices():\\\"descendant\\\"===D?a.getDescendantIndices():null;A&&(TR(n).focus=A),vm(r,a,h,n,f,d,g,i),n.__edge&&(n.onHoverStateChange=function(e){if(\\\"blur\\\"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===OR||Ia(n.__edge,e)}})}function vm(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get(\\\"edgeShape\\\"),h=t.get(\\\"layout\\\"),p=t.getOrient(),d=t.get([\\\"lineStyle\\\",\\\"curveness\\\"]),f=t.get(\\\"edgeForkPosition\\\"),g=l.getModel(\\\"lineStyle\\\").getLineStyle(),y=i.__edge;if(\\\"curve\\\"===u)e.parentNode&&e.parentNode!==n&&(y||(y=i.__edge=new PN({shape:bm(h,p,d,r,r)})),As(y,{shape:bm(h,p,d,o,a)},t));else if(\\\"polyline\\\"===u&&\\\"orthogonal\\\"===h&&e!==n&&e.children&&0!==e.children.length&&e.isExpand===!0){for(var v=e.children,m=[],x=0;x=0){var i=n.getData().tree.root,r=t.targetNode;if(T(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function Om(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function Rm(t,e){var n=Om(t);return p(n,e)>=0}function Nm(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}function Em(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function Bm(t,e){t.eachSeriesByType(\\\"tree\\\",function(t){Vm(t,e)})}function Vm(t,e){var n=Kv(t,e);t.layoutInfo=n;var i=t.get(\\\"layout\\\"),r=0,o=0,a=null;\\\"radial\\\"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=jv(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=jv());var s=t.getData().tree.root,l=s.children[0];if(l){Xv(s),Em(l,Uv,a),s.hierNode.modifier=-l.hierNode.prelim,zm(l,Zv);var u=l,h=l,c=l;zm(l,function(t){var e=t.getLayout().x;eh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if(\\\"radial\\\"===i)f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),zm(l,function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=qv(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)});else{var m=t.getOrient();\\\"RL\\\"===m||\\\"LR\\\"===m?(g=o/(h.getLayout().x+p+d),f=r/(c.depth-1||1),zm(l,function(t){v=(t.getLayout().x+d)*g,y=\\\"LR\\\"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})):(\\\"TB\\\"===m||\\\"BT\\\"===m)&&(f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),zm(l,function(t){y=(t.getLayout().x+d)*f,v=\\\"TB\\\"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))}}}function Fm(t){t.eachSeriesByType(\\\"tree\\\",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(t){var n=t.getModel(),i=n.getModel(\\\"itemStyle\\\").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\");h(r,i)})})}function Gm(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Wm(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Gm(t,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}t.scaleX*=a,t.scaleY*=a;var h=(e.originX-t.x)*(a-1),c=(e.originY-t.y)*(a-1);t.x-=h,t.y-=c,t.updateTransform(),t.setCenter(Gm(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}function Hm(t){t.registerAction({type:\\\"treeExpandAndCollapse\\\",event:\\\"treeExpandAndCollapse\\\",update:\\\"update\\\"},function(t,e){e.eachComponent({mainType:\\\"series\\\",subType:\\\"tree\\\",query:t},function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),t.registerAction({type:\\\"treeRoam\\\",event:\\\"treeRoam\\\",update:\\\"none\\\"},function(t,e,n){e.eachComponent({mainType:\\\"series\\\",subType:\\\"tree\\\",query:t},function(e){var i=e.coordinateSystem,r=Wm(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)})})}function Ym(t){t.registerChartView(sY),t.registerSeriesModel(cY),t.registerLayout(Bm),t.registerVisual(Fm),Hm(t)}function Xm(t){for(var e=0;e1;)n=n.parentNode;var r=Tu(t.ecModel,n.name||n.dataIndex+\\\"\\\",i);e.setVisual(\\\"decal\\\",r)})}function Zm(t){var e=0;y(t.children,function(t){Zm(t);var n=t.value;M(n)&&(n=n[0]),e+=n});var n=t.value;M(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),0>n&&(n=0),M(t.value)?t.value[0]=n:t.value=n}function jm(t,e){var n=Ar(e.get(\\\"color\\\")),i=Ar(e.get([\\\"aria\\\",\\\"decal\\\",\\\"decals\\\"]));if(n){t=t||[];var r,o;y(t,function(t){var e=new gE(t),n=e.get(\\\"color\\\"),i=e.get(\\\"decal\\\");(e.get([\\\"itemStyle\\\",\\\"color\\\"])||n&&\\\"none\\\"!==n)&&(r=!0),(e.get([\\\"itemStyle\\\",\\\"decal\\\"])||i&&\\\"none\\\"!==i)&&(o=!0)});var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}function qm(t,e,n,i,r,o){var a=[[r?t:t-yY,e],[t+n,e],[t+n,e+i],[r?t:t-yY,e+i]];return!o&&a.splice(2,0,[t+n+yY,e+i/2]),!r&&a.push([t,e+i/2]),a}function Km(t,e,n){TR(t).eventData={componentType:\\\"series\\\",componentSubType:\\\"treemap\\\",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:\\\"treemap\\\",selfType:\\\"breadcrumb\\\",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Nm(n,e)}}function $m(){return new mY}function Jm(){return{nodeGroup:[],background:[],content:[]}}function Qm(t,e,n,i,r,o,a,s,l,u){function c(e,n,i){var r=TR(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:w,height:S,r:N}),I)d(n);else{n.invisible=!1;var o=a.getVisual(\\\"style\\\"),s=o.stroke,l=DY(L);l.fill=s;var u=CY(P);u.fill=P.get(\\\"borderColor\\\");var h=CY(O);h.fill=O.get(\\\"borderColor\\\");var c=CY(R);if(c.fill=R.get(\\\"borderColor\\\"),i){var p=w-2*M;f(n,s,o.opacity,{x:M,y:0,width:p,height:A})}else n.removeTextContent();n.setStyle(l),n.ensureState(\\\"emphasis\\\").style=u,n.ensureState(\\\"blur\\\").style=h,n.ensureState(\\\"select\\\").style=c,La(n)}e.add(n)}function p(e,n){var i=TR(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(w-2*M,0),o=Math.max(S-2*M,0);if(n.culling=!0,n.setShape({x:M,y:M,width:r,height:o,r:N}),I)d(n);else{n.invisible=!1;var s=a.getVisual(\\\"style\\\"),l=s.fill,u=DY(L);u.fill=l,u.decal=s.decal;var h=CY(P),c=CY(O),p=CY(R);f(n,l,s.opacity,null),n.setStyle(u),n.ensureState(\\\"emphasis\\\").style=h,n.ensureState(\\\"blur\\\").style=c,n.ensureState(\\\"select\\\").style=p,La(n)}e.add(n)}function d(t){!t.invisible&&o.push(t)}function f(e,n,i,r){var o=b.getModel(r?SY:wY),s=Wr(b.get(\\\"name\\\"),null),l=o.getShallow(\\\"show\\\");hl(e,cl(b,r?SY:wY),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,c=G(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-c[1]-c[3],0),n=Math.max((r?r.height:e.shape.height)-c[0]-c[2],0);(h.width!==t||h.height!==n)&&u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow=\\\"truncate\\\",g(h,r,x);var p=u.getState(\\\"emphasis\\\");g(p?p.style:null,r,x)}}function g(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get(\\\"drillDownIcon\\\",!0);e.text=o?o+\\\" \\\"+r:r}}function y(t,i,o,a){var s=null!=C&&n[t][C],l=r[t];return s?(n[t][C]=null,v(l,s)):I||(s=new i,s instanceof SO&&(s.z2=tx(o,a)),m(l,s)),e[t][T]=s}function v(t,e){var n=t[T]={};e instanceof xY?(n.oldX=e.x,n.oldY=e.y):n.oldShape=h({},e.shape)}function m(t,e){var n=t[T]={},o=a.parentNode,s=e instanceof HP;if(o&&(!i||\\\"drillDown\\\"===i.direction)){var l=0,u=0,h=r.background[o.getRawIndex()];!i&&h&&h.oldShape&&(l=h.oldShape.width,u=h.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}if(a){var x=a.getLayout(),_=t.getData(),b=a.getModel();if(_.setItemGraphicEl(a.dataIndex,null),x&&x.isInView){var w=x.width,S=x.height,M=x.borderWidth,I=x.invisible,T=a.getRawIndex(),C=s&&s.getRawIndex(),D=a.viewChildren,A=x.upperHeight,k=D&&D.length,L=b.getModel(\\\"itemStyle\\\"),P=b.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),O=b.getModel([\\\"blur\\\",\\\"itemStyle\\\"]),R=b.getModel([\\\"select\\\",\\\"itemStyle\\\"]),N=L.get(\\\"borderRadius\\\")||0,E=y(\\\"nodeGroup\\\",xY);if(E){if(l.add(E),E.x=x.x||0,E.y=x.y||0,E.markRedraw(),AY(E).nodeWidth=w,AY(E).nodeHeight=S,x.isAboveViewRoot)return E;var z=y(\\\"background\\\",_Y,u,IY);z&&c(E,z,k&&x.upperLabelHeight);var B=b.getModel(\\\"emphasis\\\"),V=B.get(\\\"focus\\\"),F=B.get(\\\"blurScope\\\"),W=B.get(\\\"disabled\\\"),H=\\\"ancestor\\\"===V?a.getAncestorsIndices():\\\"descendant\\\"===V?a.getDescendantIndices():V;if(k)is(E)&&ns(E,!1),z&&(ns(z,!W),_.setItemGraphicEl(a.dataIndex,z),ts(z,H,F));else{var Y=y(\\\"content\\\",_Y,u,TY);Y&&p(E,Y),z.disableMorphing=!0,z&&is(z)&&ns(z,!1),ns(E,!W),_.setItemGraphicEl(a.dataIndex,E),ts(E,H,F)}return E}}}}function tx(t,e){return t*MY+e}function ex(t){var e=t.pieceList;t.hasSpecialVisual=!1,y(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}function nx(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(LY(e,function(t,e){n[t]=e}),!M(i)){var r=[];A(i)?LY(i,function(t,e){var i=n[e];r[null!=i?i:OY]=t}):r[OY]=i,i=cx(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function ix(t,e){var n=t.visual,i=[];A(n)?LY(n,function(t){i.push(t)}):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),cx(t,i)}function rx(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i(\\\"color\\\",t(n(\\\"color\\\"),r))},_normalizedToVisual:ux([0,1])}}function ox(t){var e=this.option.visual;return e[Math.round(rr(t,[0,1],[0,e.length-1],!0))]||{}}function ax(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function sx(t){var e=this.option.visual;return e[this.option.loop&&t!==OY?t%e.length:t]}function lx(){return this.option.visual[0]}function ux(t){return{linear:function(e){return rr(e,t,this.option.visual,!0)},category:sx,piecewise:function(e,n){var i=hx.call(this,n);return null==i&&(i=rr(e,t,this.option.visual,!0)),i},fixed:lx}}function hx(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=RY.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function cx(t,e){return t.visual=e,\\\"color\\\"===t.type&&(t.parsedVisual=v(e,function(t){var e=En(t);return e||[0,0,0,1]})),e}function px(t,e,n){return t?n>=e:n>e}function dx(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(EY),u=fx(l,e,i),h=a.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\"),c=l.get(\\\"borderColor\\\"),p=l.get(\\\"borderColorSaturation\\\");null!=p&&(s=gx(u),c=yx(p,s)),h.stroke=c;var d=t.viewChildren;if(d&&d.length){var f=mx(t,r,o,l,u,d);y(d,function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=_x(r,u,t,e,f,i);dx(t,o,n,i)}})}else s=gx(u),h.fill=s}}function fx(t,e,n){var i=h({},e),r=n.designatedVisualItemStyle;return y([\\\"color\\\",\\\"colorAlpha\\\",\\\"colorSaturation\\\"],function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)}),i}function gx(t){var e=vx(t,\\\"color\\\");if(e){var n=vx(t,\\\"colorAlpha\\\"),i=vx(t,\\\"colorSaturation\\\");return i&&(e=Hn(e,null,null,i)),n&&(e=Yn(e,n)),e}}function yx(t,e){return null!=e?Hn(e,null,null,t):null}function vx(t,e){var n=t[e];return null!=n&&\\\"none\\\"!==n?n:void 0}function mx(t,e,n,i,r,o){if(o&&o.length){var a=xx(e,\\\"color\\\")||null!=r.color&&\\\"none\\\"!==r.color&&(xx(e,\\\"colorAlpha\\\")||xx(e,\\\"colorSaturation\\\"));if(a){var s=e.get(\\\"visualMin\\\"),l=e.get(\\\"visualMax\\\"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var h=e.get(\\\"colorMappingBy\\\"),c={type:a.name,dataExtent:u,visual:a.range};\\\"color\\\"!==c.type||\\\"index\\\"!==h&&\\\"id\\\"!==h?c.mappingMethod=\\\"linear\\\":(c.mappingMethod=\\\"category\\\",c.loop=!0);var p=new RY(c);return zY(p).drColorMappingBy=h,p}}}function xx(t,e){var n=t.get(e);return M(n)&&n.length?{name:e,range:n}:null}function _x(t,e,n,i,r,o){var a=h({},e);if(r){var s=r.type,l=\\\"color\\\"===s&&zY(r).drColorMappingBy,u=\\\"index\\\"===l?i:\\\"id\\\"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get(\\\"visualDimension\\\"));a[s]=r.mapValueToVisual(u)}return a}function bx(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(HY),u=s.get(YY)/2,h=Px(s),c=Math.max(l,h),p=l-u,d=c-u;t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),r=VY(r-2*p,0),o=VY(o-p-d,0);var f=r*o,g=Sx(t,s,f,e,n,i);if(g.length){var y={x:p,y:d,width:r,height:o},v=FY(r,o),m=1/0,x=[];x.area=0;for(var _=0,b=g.length;b>_;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=Cx(x,v,e.squareRatio);m>=S?(_++,m=S):(x.area-=x.pop().getLayout().area,Dx(x,v,y,u,!1),v=FY(y.width,y.height),x.length=x.area=0,m=1/0)}if(x.length&&Dx(x,v,y,u,!0),!n){var M=s.get(\\\"childrenVisibleMin\\\");null!=M&&M>f&&(n=!0)}for(var _=0,b=g.length;b>_;_++)bx(g[_],e,n,i+1)}}}function Sx(t,e,n,i,r,o){var a=t.children||[],s=i.sort;\\\"asc\\\"!==s&&\\\"desc\\\"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=x(a,function(t){return!t.isRemoved()}),Ix(a,s);var u=Tx(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=Mx(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var h=0,c=a.length;c>h;h++){var p=a[h].getValue()/u.sum*n;a[h].setLayout({area:p})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function Mx(t,e,n,i,r){if(!i)return n;for(var o=t.get(\\\"visibleMin\\\"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r[\\\"asc\\\"===i?a-l-1:l].getValue();o>u/n*e&&(s=l,n-=u)}return\\\"asc\\\"===i?r.splice(0,a-s):r.splice(s,a-s),n}function Ix(t,e){return e&&t.sort(function(t,n){var i=\\\"asc\\\"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();\\nreturn 0===i?\\\"asc\\\"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}),t}function Tx(t,e,n){for(var i=0,r=0,o=e.length;o>r;r++)i+=e[r].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],WY(e,function(t){var e=t.getValue(s);ea[1]&&(a[1]=e)})):a=[0/0,0/0],{sum:i,dataExtent:a}}function Cx(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;s>o;o++)a=t[o].getLayout().area,a&&(r>a&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?VY(u*i/l,l/(u*r)):1/0}function Dx(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=[\\\"x\\\",\\\"y\\\"],l=[\\\"width\\\",\\\"height\\\"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;p>c;c++){var d=t[c],f={},g=h?d.getLayout().area/h:0,y=f[l[a]]=VY(h-2*i,0),v=n[s[o]]+n[l[o]]-u,m=c===p-1||g>v?v:g,x=f[l[o]]=VY(m-2*i,0);f[s[a]]=n[s[a]]+FY(i,y/2),f[s[o]]=u+FY(i,x/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function Ax(t,e,n,i,r){var o=(e||{}).node,a=[i,r];if(!o||o===n)return a;for(var s,l=i*r,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var h=0,c=s.children,p=0,d=c.length;d>p;p++)h+=c[p].getValue();var f=o.getValue();if(0===f)return a;u*=h/f;var g=s.getModel(),y=g.get(HY),v=Math.max(y,Px(g));u+=4*y*y+(3*y+v)*Math.pow(u,.5),u>$P&&(u=$P),o=s}l>u&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}function kx(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function Lx(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new dL(e.x-o.x,e.y-o.y,e.width,e.height);WY(t.viewChildren||[],function(t){Lx(t,l,n,i,r+1)})}}function Px(t){return t.get(XY)?t.get(UY):0}function Ox(t){t.registerSeriesModel(dY),t.registerChartView(kY),t.registerVisual(BY),t.registerLayout(ZY),Xm(t)}function Rx(t){t.registerAction({type:$Y,update:\\\"updateView\\\"},function(t,e){function n(e){var n=Pm(t,[$Y],e);if(n){var i=e.getViewRoot();i&&(t.direction=Rm(i,n.node)?\\\"rollUp\\\":\\\"drillDown\\\"),e.resetViewRoot(n.node)}}e.eachComponent({mainType:\\\"series\\\",subType:\\\"sunburst\\\",query:t},n)}),t.registerAction({type:JY,update:\\\"none\\\"},function(t,e,n){function i(e){var n=Pm(t,[JY],e);n&&(t.dataIndex=n.node.dataIndex)}t=h({},t),e.eachComponent({mainType:\\\"series\\\",subType:\\\"sunburst\\\",query:t},i),n.dispatchAction(h(t,{type:\\\"highlight\\\"}))}),t.registerAction({type:QY,update:\\\"updateView\\\"},function(t,e,n){t=h({},t),n.dispatchAction(h(t,{type:\\\"downplay\\\"}))})}function Nx(t){var e=0;y(t.children,function(t){Nx(t);var n=t.value;M(n)&&(n=n[0]),e+=n});var n=t.value;M(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),0>n&&(n=0),M(t.value)?t.value[0]=n:t.value=n}function Ex(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get(\\\"center\\\"),i=t.get(\\\"radius\\\");M(i)||(i=[0,i]),M(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=or(e[0],r),l=or(e[1],o),u=or(i[0],a/2),h=or(i[1],a/2),c=-t.get(\\\"startAngle\\\")*nX,p=t.get(\\\"minAngle\\\")*nX,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get(\\\"sort\\\");null!=v&&zx(f,v);var m=0;y(f.children,function(t){!isNaN(t.getValue())&&m++});var x=f.getValue(),_=Math.PI/(x||m)*2,b=f.depth>0,w=f.height-(b?-1:1),S=(h-u)/(w||1),I=t.get(\\\"clockwise\\\"),T=t.get(\\\"stillShowZeroSum\\\"),C=I?1:-1,D=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===x&&T?_:r*_;p>o&&(o=p),i=n+C*o;var h=e.depth-g-(b?-1:1),c=u+S*h,f=u+S*(h+1),v=t.getLevelModel(e);if(v){var m=v.get(\\\"r0\\\",!0),w=v.get(\\\"r\\\",!0),M=v.get(\\\"radius\\\",!0);null!=M&&(m=M[0],w=M[1]),null!=m&&(c=or(m,a/2)),null!=w&&(f=or(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:I,cx:s,cy:l,r0:c,r:f})}if(e.children&&e.children.length){var A=0;y(e.children,function(t){A+=D(t,n+A)})}return i-n}};if(b){var A=u,k=u+S,L=2*Math.PI;d.setLayout({angle:L,startAngle:c,endAngle:c+L,clockwise:I,cx:s,cy:l,r0:A,r:k})}D(f,c)})}function zx(t,e){var n=t.children||[];t.children=Bx(n,e),n.length&&y(t.children,function(t){zx(t,e)})}function Bx(t,e){if(I(e)){var n=v(t,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return n.sort(function(t,n){return e(t.params,n.params)}),v(n,function(e){return t[e.index]})}var i=\\\"asc\\\"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function Vx(t){function e(t,e,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=e.getColorFromPalette(r.name||r.dataIndex+\\\"\\\",n);return t.depth>1&&T(o)&&(o=Vn(o,(t.depth-1)/(i-1)*.5)),o}var n={};t.eachSeriesByType(\\\"sunburst\\\",function(t){var n=t.getData(),i=n.tree;i.eachNode(function(r){var o=r.getModel(),a=o.getModel(\\\"itemStyle\\\").getItemStyle();a.fill||(a.fill=e(r,t,i.root.height));var s=n.ensureUniqueItemVisual(r.dataIndex,\\\"style\\\");h(s,a)})})}function Fx(t){t.registerChartView(tX),t.registerSeriesModel(eX),t.registerLayout(S(Ex,\\\"sunburst\\\")),t.registerProcessor(S(Py,\\\"sunburst\\\")),t.registerVisual(Vx),Rx(t)}function Gx(t){if(T(t)){var e=new DOMParser;t=e.parseFromString(t,\\\"text/xml\\\")}var n=t;for(9===n.nodeType&&(n=n.firstChild);\\\"svg\\\"!==n.nodeName.toLowerCase()||1!==n.nodeType;)n=n.nextSibling;return n}function Wx(t,e){var n=t.getAttribute(\\\"gradientUnits\\\");\\\"userSpaceOnUse\\\"===n&&(e.global=!0)}function Hx(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&\\\"stop\\\"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute(\\\"offset\\\"),r=void 0;r=i&&i.indexOf(\\\"%\\\")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Jx(n,o,o);var a=o.stopColor||n.getAttribute(\\\"stop-color\\\")||\\\"#000000\\\";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function Yx(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),c(e.__inheritedStyle,t.__inheritedStyle))}function Xx(t){for(var e=Kx(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=Kx(a);switch(r=r||Be(),s){case\\\"translate\\\":We(r,r,[parseFloat(l[0]),parseFloat(l[1]||\\\"0\\\")]);break;case\\\"scale\\\":Ye(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case\\\"rotate\\\":He(r,r,-parseFloat(l[0])*dX);break;case\\\"skewX\\\":var u=Math.tan(parseFloat(l[0])*dX);Ge(r,[1,0,u,1,0,0],r);break;case\\\"skewY\\\":var h=Math.tan(parseFloat(l[0])*dX);Ge(r,[1,h,0,1,0,0],r);break;case\\\"matrix\\\":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}function Jx(t,e,n){var i=t.getAttribute(\\\"style\\\");if(i){fX.lastIndex=0;for(var r;null!=(r=fX.exec(i));){var o=r[1],a=$(rX,o)?rX[o]:null;a&&(e[a]=r[2]);var s=$(aX,o)?aX[o]:null;s&&(n[s]=r[2])}}}function Qx(t,e,n){for(var i=0;i=0)&&(p=r);var d=a?{normal:{align:\\\"center\\\",verticalAlign:\\\"middle\\\"}}:null;hl(e,cl(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(PX(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+\\\"%\\\",(a[1]-g.y)/g.height*100+\\\"%\\\"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function d_(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):TR(e).eventData={componentType:\\\"geo\\\",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function f_(t,e,n,i,r){t.data||ol({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get(\\\"tooltip\\\")})}function g_(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get(\\\"selectedMode\\\");var o=i.getModel(\\\"emphasis\\\"),a=o.get(\\\"focus\\\");return Qa(e,a,o.get(\\\"blurScope\\\"),o.get(\\\"disabled\\\")),t.isGeo&&rs(e,r,n),a}function y_(t,e,n){function i(){o=[]}function r(){o.length&&(a.push(o),o=[])}var o,a=[],s=e({polygonStart:i,polygonEnd:r,lineStart:i,lineEnd:r,point:function(t,e){isFinite(t)&&isFinite(e)&&o.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),y(t,function(t){s.lineStart();for(var e=0;eh;h++)s=Math.min(s,n[o][h]),l=Math.max(l,n[o][h]),a+=n[o][h];var c;return c=\\\"min\\\"===e?s:\\\"max\\\"===e?l:\\\"average\\\"===e?a/u:a,0===u?0/0:c})}function m_(t){var e={};t.eachSeriesByType(\\\"map\\\",function(t){var n=t.getHostGeoModel(),i=n?\\\"o\\\"+n.id:\\\"i\\\"+t.getMapType();(e[i]=e[i]||[]).push(t)}),y(e,function(t){for(var e=v_(v(t,function(t){return t.getData()}),t[0].get(\\\"mapValueCalculation\\\")),n=0;n=u;u++){var h=u/100,c=o.project([t+s*h,e+l*h]);me(i,i,c),xe(r,r,c)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else;}var c,p,d=this.getBoundingRect(),f=t.get(\\\"layoutCenter\\\"),g=t.get(\\\"layoutSize\\\"),y=e.getWidth(),v=e.getHeight(),m=d.width/d.height*this.aspectScale,x=!1;f&&g&&(c=[or(f[0],y),or(f[1],v)],p=or(g,Math.min(y,v)),isNaN(c[0])||isNaN(c[1])||isNaN(p)||(x=!0));var _;if(x)_={},m>1?(_.width=p,_.height=p/m):(_.height=p,_.width=p*m),_.y=c[1]-_.height/2,_.x=c[0]-_.width/2;else{var b=t.getBoxLayoutParams();b.aspect=m,_=uu(b,{width:y,height:v})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(t.get(\\\"center\\\"),e),this.setZoom(t.get(\\\"zoom\\\"))}function w_(t,e){y(e.get(\\\"geoCoord\\\"),function(e,n){t.addGeoCoord(n,e)})}function S_(t,e,n){CX.registerMap(t,e,n)}function M_(t){function e(e,n){n.update=\\\"geo:updateSelectStatus\\\",t.registerAction(n,function(t,n){var i={},r=[];return n.eachComponent({mainType:\\\"geo\\\",query:t},function(n){n[e](t.name);var o=n.coordinateSystem;y(o.regions,function(t){i[t.name]=n.isSelected(t.name)||!1});var a=[];y(i,function(t,e){i[e]&&a.push(e)}),r.push({geoIndex:n.componentIndex,name:a})}),{selected:i,allSelected:r,name:t.name}})}t.registerCoordinateSystem(\\\"geo\\\",FX),t.registerComponentModel(GX),t.registerComponentView(WX),t.registerImpl(\\\"registerMap\\\",S_),t.registerImpl(\\\"getMap\\\",function(t){return CX.getMapForUser(t)}),e(\\\"toggleSelected\\\",{type:\\\"geoToggleSelect\\\",event:\\\"geoselectchanged\\\"}),e(\\\"select\\\",{type:\\\"geoSelect\\\",event:\\\"geoselected\\\"}),e(\\\"unSelect\\\",{type:\\\"geoUnSelect\\\",event:\\\"geounselected\\\"}),t.registerAction({type:\\\"geoRoam\\\",event:\\\"geoRoam\\\",update:\\\"updateTransform\\\"},function(t,e,n){var i=t.componentType||\\\"series\\\";e.eachComponent({mainType:i,query:t},function(e){var r=e.coordinateSystem;if(\\\"geo\\\"===r.type){var o=Wm(r,t,e.get(\\\"scaleLimit\\\"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),\\\"series\\\"===i&&y(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})})}function I_(t){If(M_),t.registerChartView(RX),t.registerSeriesModel(NX),t.registerLayout(x_),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,m_),Ec(\\\"map\\\",t.registerAction)}function T_(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function C_(t){return\\\"_\\\"+t+\\\"Type\\\"}function D_(t,e,n){var i=e.getItemVisual(n,t);if(!i||\\\"none\\\"===i)return i;var r=e.getItemVisual(n,t+\\\"Size\\\"),o=e.getItemVisual(n,t+\\\"Rotate\\\"),a=e.getItemVisual(n,t+\\\"Offset\\\"),s=e.getItemVisual(n,t+\\\"KeepAspect\\\"),l=Wc(r),u=Hc(a||0,l);return i+l+u+(o||\\\"\\\")+(s||\\\"\\\")}function A_(t,e,n){var i=e.getItemVisual(n,t);if(i&&\\\"none\\\"!==i){var r=e.getItemVisual(n,t+\\\"Size\\\"),o=e.getItemVisual(n,t+\\\"Rotate\\\"),a=e.getItemVisual(n,t+\\\"Offset\\\"),s=e.getItemVisual(n,t+\\\"KeepAspect\\\"),l=Wc(r),u=Hc(a||0,l),h=Gc(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,h.name=t,h}}function k_(t){var e=new UX({name:\\\"line\\\",subPixelOptimize:!0});return L_(e.shape,t),e}function L_(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=0/0,t.cpy1=0/0)}function P_(t){return t.animators&&t.animators.length>0}function O_(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:cl(e)}}function R_(t){return isNaN(t[0])||isNaN(t[1])}function N_(t){return t&&!R_(t[0])&&!R_(t[1])}function E_(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=v(e,function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),u([n,t[0],t[1]])}))}function z_(t){return t instanceof Array||(t=[t,t]),t}function B_(t){t.registerChartView(iU),t.registerSeriesModel(aU),t.registerLayout(nU),t.registerVisual(sU)}function V_(t){var e=t.findComponents({mainType:\\\"legend\\\"});e&&e.length&&t.eachSeriesByType(\\\"graph\\\",function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf(function(t){var n=r.getItemModel(t),i=n.getShallow(\\\"category\\\");if(null!=i){D(i)&&(i=o[i]);for(var a=0;au&&(u=2*Math.PI+u);var c=l[0]o;o++){var y=i[o];y.fixed||(oe(e,l,y.p),xU(y.p,y.p,e,u*g))}for(var o=0;n>o;o++)for(var s=i[o],v=o+1;n>v;v++){var h=i[v];oe(e,h.p,s.p);var c=ae(e);0===c&&(ne(e,Math.random()-.5,Math.random()-.5),c=1);var m=(s.rep+h.rep)/c/c;!s.fixed&&xU(s.pp,s.pp,e,m),!h.fixed&&xU(h.pp,h.pp,e,-m)}for(var x=[],o=0;n>o;o++){var y=i[o];y.fixed||(oe(x,y.p,y.pp),xU(y.p,y.p,x,g),te(y.pp,y.p))}g=.992*g;var _=.01>g;d&&d(i,r,_),t&&t(_)}}}function eb(t){t.eachSeriesByType(\\\"graph\\\",function(t){var e=t.coordinateSystem;if(!e||\\\"view\\\"===e.type)if(\\\"force\\\"===t.get(\\\"layout\\\")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel(\\\"force\\\"),s=a.get(\\\"initLayout\\\");t.preservedPoints?r.each(function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[0/0,0/0])}):s&&\\\"none\\\"!==s?\\\"circular\\\"===s&&$_(t,\\\"value\\\"):U_(t);var l=r.getDataExtent(\\\"value\\\"),u=o.getDataExtent(\\\"value\\\"),h=a.get(\\\"repulsion\\\"),c=a.get(\\\"edgeLength\\\"),p=M(h)?h:[h,h],d=M(c)?c:[c,c];d=[d[1],d[0]];var f=r.mapArray(\\\"value\\\",function(t,e){var n=r.getItemLayout(e),i=rr(t,l,p);return isNaN(i)&&(i=(p[0]+p[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get(\\\"fixed\\\"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),g=o.mapArray(\\\"value\\\",function(e,n){var r=i.getEdgeByIndex(n),o=rr(e,u,d);isNaN(o)&&(o=(d[0]+d[1])/2);var a=r.getModel(),s=V(r.getModel().get([\\\"lineStyle\\\",\\\"curveness\\\"]),-X_(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get(\\\"ignoreForceLayout\\\")}}),y=e.getBoundingRect(),v=tb(f,g,{rect:y,gravity:a.get(\\\"gravity\\\"),friction:a.get(\\\"friction\\\")});v.beforeStep(function(t){for(var e=0,n=t.length;n>e;e++)t[e].fixed&&te(t[e].p,i.getNodeByIndex(e).getLayout())}),v.afterStep(function(t,e){for(var o=0,a=t.length;a>o;o++)t[o].fixed||i.getNodeByIndex(o).setLayout(t[o].p),n[r.getId(o)]=t[o].p;for(var o=0,a=e.length;a>o;o++){var s=e[o],l=i.getEdgeByIndex(o),u=s.n1.p,h=s.n2.p,c=l.getLayout();c=c?c.slice():[],c[0]=c[0]||[],c[1]=c[1]||[],te(c[0],u),te(c[1],h),+s.curveness&&(c[2]=[(u[0]+h[0])/2-(u[1]-h[1])*s.curveness,(u[1]+h[1])/2-(h[0]-u[0])*s.curveness]),l.setLayout(c)}}),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null})}function nb(t,e,n){var i=h(t.getBoxLayoutParams(),{aspect:n});return uu(i,{width:e.getWidth(),height:e.getHeight()})}function ib(t,e){var n=[];return t.eachSeriesByType(\\\"graph\\\",function(t){var i=t.get(\\\"coordinateSystem\\\");if(!i||\\\"view\\\"===i){var r=t.getData(),o=r.mapArray(function(t){var e=r.getItemModel(t);return[+e.get(\\\"x\\\"),+e.get(\\\"y\\\")]}),a=[],s=[];Po(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=nb(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var h=s[0]-a[0],c=s[1]-a[1],p=u.width,d=u.height,f=t.coordinateSystem=new eY;f.zoomLimit=t.get(\\\"scaleLimit\\\"),f.setBoundingRect(a[0],a[1],h,c),f.setViewRect(u.x,u.y,p,d),f.setCenter(t.get(\\\"center\\\"),e),f.setZoom(t.get(\\\"zoom\\\")),n.push(f)}}),n}function rb(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;.9>=h;h+=.1){_U[0]=SU(r[0],o[0],a[0],h),_U[1]=SU(r[1],o[1],a[1],h);var c=IU(MU(_U,e)-l);s>c&&(s=c,i=h)}for(var p=0;32>p;p++){var d=i+u;bU[0]=SU(r[0],o[0],a[0],i),bU[1]=SU(r[1],o[1],a[1],i),wU[0]=SU(r[0],o[0],a[0],d),wU[1]=SU(r[1],o[1],a[1],d);var c=MU(bU,e)-l;if(IU(c)<.01)break;var f=MU(wU,e)-l;u/=2,0>c?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function ob(t,e){var n=[],i=wn,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t){var s=t.getLayout(),l=t.getVisual(\\\"fromSymbol\\\"),u=t.getVisual(\\\"toSymbol\\\");s.__original||(s.__original=[ee(s[0]),ee(s[1])],s[2]&&s.__original.push(ee(s[2])));var h=s.__original;if(null!=s[2]){if(te(r[0],h[0]),te(r[1],h[2]),te(r[2],h[1]),l&&\\\"none\\\"!==l){var c=K_(t.node1),p=rb(r,h[0],c*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&\\\"none\\\"!==u){var c=K_(t.node2),p=rb(r,h[1],c*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}te(s[0],r[0]),te(s[1],r[2]),te(s[2],r[1])}else{if(te(o[0],h[0]),te(o[1],h[1]),oe(a,o[1],o[0]),pe(a,a),l&&\\\"none\\\"!==l){var c=K_(t.node1);re(o[0],o[0],a,c*e)}if(u&&\\\"none\\\"!==u){var c=K_(t.node2);re(o[1],o[1],a,-c*e)}te(s[0],o[0]),te(s[1],o[1])}})}function ab(t){return\\\"view\\\"===t.type}function sb(t){return\\\"_EC_\\\"+t}function lb(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||\\\"value\\\"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function ub(t,e,n,i,r){for(var o=new CU(i),a=0;a \\\"+d)),u++)}var f,g=n.get(\\\"coordinateSystem\\\");if(\\\"cartesian2d\\\"===g||\\\"polar\\\"===g)f=Sd(t,n);else{var y=wz.get(g),v=y?y.dimensions||[]:[];p(v,\\\"value\\\")<0&&v.concat([\\\"value\\\"]);var m=cd(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new WF(m,n),f.initData(t)}var x=new WF([\\\"value\\\"],n);return x.initData(l,s),r&&r(f,x),wm({mainData:f,struct:o,structAttr:\\\"graph\\\",datas:{node:f,edge:x},datasAttr:{node:\\\"data\\\",edge:\\\"edgeData\\\"}}),o.update(),o}function hb(t){t.registerChartView(TU),t.registerSeriesModel(kU),t.registerProcessor(V_),t.registerVisual(F_),t.registerVisual(W_),t.registerLayout(j_),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Q_),t.registerLayout(eb),t.registerCoordinateSystem(\\\"graphView\\\",{dimensions:eY.dimensions,create:ib}),t.registerAction({type:\\\"focusNodeAdjacency\\\",event:\\\"focusNodeAdjacency\\\",update:\\\"series:focusNodeAdjacency\\\"},J),t.registerAction({type:\\\"unfocusNodeAdjacency\\\",event:\\\"unfocusNodeAdjacency\\\",update:\\\"series:unfocusNodeAdjacency\\\"},J),t.registerAction(LU,function(t,e,n){e.eachComponent({mainType:\\\"series\\\",query:t},function(e){var i=e.coordinateSystem,r=Wm(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)})})}function cb(t,e,n,i,r){var o=t.ends,a=new NU({shape:{points:r?db(o,i,t):o}});return pb(t,a,e,n,r),a}function pb(t,e,n,i,r){var o=n.hostModel,a=QN[r?\\\"initProps\\\":\\\"updateProps\\\"];a(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,\\\"style\\\")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel(\\\"emphasis\\\");es(e,s),Qa(e,l.get(\\\"focus\\\"),l.get(\\\"blurScope\\\"),l.get(\\\"disabled\\\"))}function db(t,e,n){return v(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function fb(t){var e=gb(t);EU(e,function(t){var e=t.seriesModels;e.length&&(yb(t),EU(e,function(e,n){vb(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}function gb(t){var e=[],n=[];return t.eachSeriesByType(\\\"boxplot\\\",function(t){var i=t.getBaseAxis(),r=p(n,i);0>r&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)}),e}function yb(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if(\\\"category\\\"===n.type)e=n.getBandWidth();else{var l=0;EU(i,function(t){l=Math.max(l,t.getData().count())});var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}EU(i,function(t){var n=t.get(\\\"boxWidth\\\");M(n)||(n=[n,n]),s.push([or(n[0],e)||0,or(n[1],e)||0])});var h=.8*e-2,c=h/r*.3,p=(h-c*(r-1))/r,d=p/2-h/2;EU(i,function(t,e){a.push(d),d+=c+p,o.push(Math.min(Math.max(p,s[e][0]),s[e][1]))})}function vb(t,e,n){function i(t,n,i){var r=s.get(n,i),o=[];o[u]=t,o[h]=r;var l;return isNaN(t)||isNaN(r)?l=[0/0,0/0]:(l=a.dataToPoint(o),l[u]+=e),l}function r(t,e,n){var i=e.slice(),r=e.slice();i[u]+=l,r[u]-=l,n?t.push(i,r):t.push(r,i)}function o(t,e){var n=e.slice(),i=e.slice();n[u]-=l,i[u]+=l,t.push(n,i)}var a=t.coordinateSystem,s=t.getData(),l=n/2,u=\\\"horizontal\\\"===t.get(\\\"layout\\\")?0:1,h=1-u,c=[\\\"x\\\",\\\"y\\\"],p=s.mapDimension(c[u]),d=s.mapDimensionsAll(c[h]);if(!(null==p||d.length<5))for(var f=0;fx||x>g){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}function xb(t){t.registerSeriesModel(PU),t.registerChartView(OU),t.registerLayout(fb),t.registerTransform(zU)}function _b(t,e,n){var i=t.model,r=t.getRect(),o=new mR({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a=\\\"horizontal\\\"===i.get(\\\"layout\\\")?\\\"width\\\":\\\"height\\\";return o.setShape(a,0),ks(o,{shape:{width:r.width,height:r.height}},e,n),o}function bb(t,e,n,i){for(var r=[],o=0;oo&&(e[1-i]=e[i]+c.sign*o),e}function Ob(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:0>n?1:e?-1:1}}function Rb(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function Nb(t,e){return qU(KU(t,e[0]),e[1])}function Eb(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function zb(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return tuZ}function Kb(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function $b(t,e,n,i){var r=new HP;return r.add(new mR({name:\\\"main\\\",style:ew(n),silent:!0,draggable:!0,cursor:\\\"move\\\",drift:S(aw,t,e,r,[\\\"n\\\",\\\"s\\\",\\\"w\\\",\\\"e\\\"]),ondragend:S(jb,e,{isEnd:!0})})),y(i,function(n){r.add(new mR({name:n.join(\\\"\\\"),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:S(aw,t,e,r,n),ondragend:S(jb,e,{isEnd:!0})}))}),r}function Jb(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=aZ(r,hZ),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,h=n[0][1],c=n[1][1],p=h-o+r/2,d=c-o+r/2,f=h-a,g=c-s,y=f+r,v=g+r;tw(t,e,\\\"main\\\",a,s,f,g),i.transformable&&(tw(t,e,\\\"w\\\",l,u,o,v),tw(t,e,\\\"e\\\",p,u,o,v),tw(t,e,\\\"n\\\",l,u,y,o),tw(t,e,\\\"s\\\",l,d,y,o),tw(t,e,\\\"nw\\\",l,u,o,o),tw(t,e,\\\"ne\\\",p,u,o,o),tw(t,e,\\\"sw\\\",l,d,o,o),tw(t,e,\\\"se\\\",p,d,o,o))}function Qb(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(ew(n)),r.attr({silent:!i,cursor:i?\\\"move\\\":\\\"default\\\"}),y([[\\\"w\\\"],[\\\"e\\\"],[\\\"n\\\"],[\\\"s\\\"],[\\\"s\\\",\\\"e\\\"],[\\\"s\\\",\\\"w\\\"],[\\\"n\\\",\\\"e\\\"],[\\\"n\\\",\\\"w\\\"]],function(n){var r=e.childOfName(n.join(\\\"\\\")),o=1===n.length?rw(t,n[0]):ow(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?dZ[o]+\\\"-resize\\\":null})})}function tw(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(hw(uw(t,e,[[i,r],[i+o,r+a]])))}function ew(t){return c({strokeNoScale:!0},t.brushStyle)}function nw(t,e,n,i){var r=[oZ(t,n),oZ(e,i)],o=[aZ(t,n),aZ(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function iw(t){return Us(t.group)}function rw(t,e){var n={w:\\\"left\\\",e:\\\"right\\\",n:\\\"top\\\",s:\\\"bottom\\\"},i={left:\\\"w\\\",right:\\\"e\\\",top:\\\"n\\\",bottom:\\\"s\\\"},r=js(n[e],iw(t));return i[r]}function ow(t,e){var n=[rw(t,e[0]),rw(t,e[1])];return(\\\"e\\\"===n[0]||\\\"w\\\"===n[0])&&n.reverse(),n.join(\\\"\\\")}function aw(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=lw(e,r,o);y(i,function(t){var e=pZ[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(nw(s[0][0],s[1][0],s[0][1],s[1][1])),Hb(e,n),jb(e,{isEnd:!1})}function sw(t,e,n,i){var r=e.__brushOption.range,o=lw(t,n,i);y(r,function(t){t[0]+=o[0],t[1]+=o[1]}),Hb(t,e),jb(t,{isEnd:!1})}function lw(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function uw(t,e,n){var i=Ub(t,e);return i&&i!==rZ?i.clipPath(n,t._transform):s(n)}function hw(t){var e=oZ(t[0][0],t[1][0]),n=oZ(t[0][1],t[1][1]),i=aZ(t[0][0],t[1][0]),r=aZ(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function cw(t,e,n){if(t._brushType&&!vw(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=Xb(t,e,n);if(!t._dragging)for(var a=0;ae||e>i.getWidth()||0>n||n>i.getHeight()}function mw(t){return{createCover:function(e,n){return $b({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[[\\\"w\\\"],[\\\"e\\\"]],[[\\\"n\\\"],[\\\"s\\\"]]][t])},getCreatingRange:function(e){var n=Kb(e),i=oZ(n[0][t],n[1][t]),r=aZ(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=Ub(e,n);if(a!==rZ&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Jb(e,n,l,r)},updateCommon:Qb,contain:dw}}function xw(t){return t=ww(t),function(e){return Js(e,t)}}function _w(t,e){return t=ww(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function bw(t,e,n){var i=ww(t);return function(t,r){return i.contain(r[0],r[1])&&!fm(t,e,n)}}function ww(t){return dL.create(t)}function Sw(t,e,n){return n&&\\\"axisAreaSelect\\\"===n.type&&e.findComponents({mainType:\\\"parallelAxis\\\",query:n})[0]===t}function Mw(t){var e=t.axis;return v(t.activeIntervals,function(t){return{brushType:\\\"lineX\\\",panelId:\\\"pl\\\",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Iw(t,e){return e.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\"))}function Tw(t){t.registerAction(bZ,function(t,e){e.eachComponent({mainType:\\\"parallelAxis\\\",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),t.registerAction(\\\"parallelAxisExpand\\\",function(t,e){e.eachComponent({mainType:\\\"parallel\\\",query:t},function(e){e.setAxisExpand(t)})})}function Cw(t){t.registerComponentView(YU),t.registerComponentModel(UU),t.registerCoordinateSystem(\\\"parallel\\\",nZ),t.registerPreprocessor(Db),t.registerComponentModel(iZ),t.registerComponentView(_Z),Gy(t,\\\"parallel\\\",iZ,wZ),Tw(t)}function Dw(t){If(Cw),t.registerChartView(VU),t.registerSeriesModel(FU),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,WU)}function Aw(t,e){var n=t.get(\\\"center\\\"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=or(n[0],e.getWidth()),s=or(n[1],e.getHeight()),l=or(t.get(\\\"radius\\\"),o/2);return{cx:a,cy:s,r:l}}function kw(t,e){var n=null==t?\\\"\\\":t+\\\"\\\";return e&&(T(e)?n=e.replace(\\\"{value}\\\",n):I(e)&&(n=e(t))),n}function Lw(t){t.registerChartView(IZ),t.registerSeriesModel(TZ)}function Pw(t,e){return uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ow(t,e){for(var n=t.mapDimension(\\\"value\\\"),i=t.mapArray(n,function(t){return t}),r=[],o=\\\"ascending\\\"===e,a=0,s=t.count();s>a;a++)r[a]=a;return I(e)?r.sort(e):\\\"none\\\"!==e&&r.sort(function(t,e){return o?i[t]-i[e]:i[e]-i[t]}),r}function Rw(t){var e=t.hostModel,n=e.get(\\\"orient\\\");t.each(function(e){var i,r,o,a,s=t.getItemModel(e),l=s.getModel(\\\"label\\\"),u=l.get(\\\"position\\\"),h=s.getModel(\\\"labelLine\\\"),c=t.getItemLayout(e),p=c.points,d=\\\"inner\\\"===u||\\\"inside\\\"===u||\\\"center\\\"===u||\\\"insideLeft\\\"===u||\\\"insideRight\\\"===u;if(d)\\\"insideLeft\\\"===u?(r=(p[0][0]+p[3][0])/2+5,o=(p[0][1]+p[3][1])/2,i=\\\"left\\\"):\\\"insideRight\\\"===u?(r=(p[1][0]+p[2][0])/2-5,o=(p[1][1]+p[2][1])/2,i=\\\"right\\\"):(r=(p[0][0]+p[1][0]+p[2][0]+p[3][0])/4,o=(p[0][1]+p[1][1]+p[2][1]+p[3][1])/4,i=\\\"center\\\"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,y=void 0,v=void 0,m=h.get(\\\"length\\\");\\\"left\\\"===u?(f=(p[3][0]+p[0][0])/2,g=(p[3][1]+p[0][1])/2,y=f-m,r=y-5,i=\\\"right\\\"):\\\"right\\\"===u?(f=(p[1][0]+p[2][0])/2,g=(p[1][1]+p[2][1])/2,y=f+m,r=y+5,i=\\\"left\\\"):\\\"top\\\"===u?(f=(p[3][0]+p[0][0])/2,g=(p[3][1]+p[0][1])/2,v=g-m,o=v-5,i=\\\"center\\\"):\\\"bottom\\\"===u?(f=(p[1][0]+p[2][0])/2,g=(p[1][1]+p[2][1])/2,v=g+m,o=v+5,i=\\\"center\\\"):\\\"rightTop\\\"===u?(f=\\\"horizontal\\\"===n?p[3][0]:p[1][0],g=\\\"horizontal\\\"===n?p[3][1]:p[1][1],\\\"horizontal\\\"===n?(v=g-m,o=v-5,i=\\\"center\\\"):(y=f+m,r=y+5,i=\\\"top\\\")):\\\"rightBottom\\\"===u?(f=p[2][0],g=p[2][1],\\\"horizontal\\\"===n?(v=g+m,o=v+5,i=\\\"center\\\"):(y=f+m,r=y+5,i=\\\"bottom\\\")):\\\"leftTop\\\"===u?(f=p[0][0],g=\\\"horizontal\\\"===n?p[0][1]:p[1][1],\\\"horizontal\\\"===n?(v=g-m,o=v-5,i=\\\"center\\\"):(y=f-m,r=y-5,i=\\\"right\\\")):\\\"leftBottom\\\"===u?(f=\\\"horizontal\\\"===n?p[1][0]:p[3][0],g=\\\"horizontal\\\"===n?p[1][1]:p[2][1],\\\"horizontal\\\"===n?(v=g+m,o=v+5,i=\\\"center\\\"):(y=f-m,r=y-5,i=\\\"right\\\")):(f=(p[1][0]+p[2][0])/2,g=(p[1][1]+p[2][1])/2,\\\"horizontal\\\"===n?(v=g+m,o=v+5,i=\\\"center\\\"):(y=f+m,r=y+5,i=\\\"left\\\")),\\\"horizontal\\\"===n?(y=f,r=y):(v=g,o=v),a=[[f,g],[y,v]]}c.label={linePoints:a,x:r,y:o,verticalAlign:\\\"middle\\\",textAlign:i,inside:d}})}function Nw(t,e){t.eachSeriesByType(\\\"funnel\\\",function(t){var n=t.getData(),i=n.mapDimension(\\\"value\\\"),r=t.get(\\\"sort\\\"),o=Pw(t,e),a=t.get(\\\"orient\\\"),s=o.width,l=o.height,u=Ow(n,r),h=o.x,c=o.y,p=\\\"horizontal\\\"===a?[or(t.get(\\\"minSize\\\"),l),or(t.get(\\\"maxSize\\\"),l)]:[or(t.get(\\\"minSize\\\"),s),or(t.get(\\\"maxSize\\\"),s)],d=n.getDataExtent(i),f=t.get(\\\"min\\\"),g=t.get(\\\"max\\\");null==f&&(f=Math.min(d[0],0)),null==g&&(g=d[1]);var y=t.get(\\\"funnelAlign\\\"),v=t.get(\\\"gap\\\"),m=\\\"horizontal\\\"===a?s:l,x=(m-v*(n.count()-1))/n.count(),_=function(t,e){if(\\\"horizontal\\\"===a){var r=n.get(i,t)||0,o=rr(r,[f,g],p,!0),u=void 0;switch(y){case\\\"top\\\":u=c;break;case\\\"center\\\":u=c+(l-o)/2;break;case\\\"bottom\\\":u=c+(l-o)}return[[e,u],[e,u+o]]}var d,v=n.get(i,t)||0,m=rr(v,[f,g],p,!0);switch(y){case\\\"left\\\":d=h;break;case\\\"center\\\":d=h+(s-m)/2;break;case\\\"right\\\":d=h+s-m}return[[d,e],[d+m,e]]};\\\"ascending\\\"===r&&(x=-x,v=-v,\\\"horizontal\\\"===a?h+=s:c+=l,u=u.reverse());for(var b=0;b=0;v&&y.depth>d&&(d=y.depth),g.setLayout({depth:v?y.depth:c},!0),\\\"vertical\\\"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mc-1?d:c-1;a&&\\\"left\\\"!==a&&Xw(t,a,o,S);var M=\\\"vertical\\\"===o?(r-n)/S:(i-n)/S;Zw(t,M,o)}function Yw(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Xw(t,e,n,i){if(\\\"right\\\"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)l*=.99,Jw(s,l,a),$w(s,r,n,i,a),aS(s,l,a),$w(s,r,n,i,a)}function qw(t,e){var n=[],i=\\\"vertical\\\"===e?\\\"y\\\":\\\"x\\\",r=io(t,function(t){return t.getLayout()[i]});return r.keys.sort(function(t,e){return t-e}),y(r.keys,function(t){n.push(r.buckets.get(t))}),n}function Kw(t,e,n,i,r,o){var a=1/0;y(t,function(t){var e=t.length,s=0;y(t,function(t){s+=t.getLayout().value});var l=\\\"vertical\\\"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;a>l&&(a=l)}),y(t,function(t){y(t,function(t,e){var n=t.getLayout().value*a;\\\"vertical\\\"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),y(e,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})}function $w(t,e,n,i,r){var o=\\\"vertical\\\"===r?\\\"x\\\":\\\"y\\\";y(t,function(t){t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var a,s,l,u=0,h=t.length,c=\\\"vertical\\\"===r?\\\"dx\\\":\\\"dy\\\",p=0;h>p;p++)s=t[p],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,\\\"vertical\\\"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;var d=\\\"vertical\\\"===r?i:n;if(l=u-e-d,l>0){a=s.getLayout()[o]-l,\\\"vertical\\\"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(var p=h-2;p>=0;--p)s=t[p],l=s.getLayout()[o]+s.getLayout()[c]+e-u,l>0&&(a=s.getLayout()[o]-l,\\\"vertical\\\"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function Jw(t,e,n){y(t.slice().reverse(),function(t){y(t,function(t){if(t.outEdges.length){var i=oS(t.outEdges,Qw,n)/oS(t.outEdges,rS);if(isNaN(i)){var r=t.outEdges.length;i=r?oS(t.outEdges,tS,n)/r:0}if(\\\"vertical\\\"===n){var o=t.getLayout().x+(i-iS(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-iS(t,n))*e;t.setLayout({y:a},!0)}}})})}function Qw(t,e){return iS(t.node2,e)*t.getValue()}function tS(t,e){return iS(t.node2,e)}function eS(t,e){return iS(t.node1,e)*t.getValue()}function nS(t,e){return iS(t.node1,e)}function iS(t,e){return\\\"vertical\\\"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function rS(t){return t.getValue()}function oS(t,e,n){for(var i=0,r=t.length,o=-1;++oe&&(r=e),e>o&&(o=e)}),y(n,function(e){var n=new RY({type:\\\"color\\\",mappingMethod:\\\"linear\\\",dataExtent:[r,o],visual:t.get(\\\"color\\\")}),i=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get([\\\"itemStyle\\\",\\\"color\\\"]);null!=a?(e.setVisual(\\\"color\\\",a),e.setVisual(\\\"style\\\",{fill:a})):(e.setVisual(\\\"color\\\",i),e.setVisual(\\\"style\\\",{fill:i}))})}i.length&&y(i,function(t){var e=t.getModel().get(\\\"lineStyle\\\");t.setVisual(\\\"style\\\",e)})})}function uS(t){t.registerChartView(OZ),t.registerSeriesModel(RZ),t.registerLayout(Vw),t.registerVisual(lS),t.registerAction({type:\\\"dragNode\\\",event:\\\"dragnode\\\",update:\\\"update\\\"},function(t,e){e.eachComponent({mainType:\\\"series\\\",subType:\\\"sankey\\\",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}function hS(t,e,n){var i=new mR({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ks(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}function cS(t){t.eachSeriesByType(\\\"themeRiver\\\",function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get(\\\"boundaryGap\\\"),a=n.getAxis();if(i.boundaryGap=o,\\\"horizontal\\\"===a.orient){o[0]=or(o[0],r.height),o[1]=or(o[1],r.height);var s=r.height-o[0]-o[1];pS(e,t,s)}else{o[0]=or(o[0],r.width),o[1]=or(o[1],r.width);var l=r.width-o[0]-o[1];pS(e,t,l)}e.setLayout(\\\"layoutInfo\\\",i)})}function pS(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension(\\\"single\\\"),s=t.mapDimension(\\\"value\\\"),l=v(o,function(e){return v(e.indices,function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n})}),u=dS(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;d>f;++f){i=h[f]*c,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*c});for(var g=1;p>g;++g)i+=l[g-1][f][1]*c,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*c})}}function dS(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;n>a;++a){for(var s=0,l=0;e>l;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;n>u;++u)r[u]=(o-i[u])/2;o=0;for(var h=0;n>h;++h){var c=i[h]+r[h];c>o&&(o=c)}return{y0:r,max:o}}function fS(t){t.registerChartView(NZ),t.registerSeriesModel(zZ),t.registerLayout(cS),t.registerProcessor(Py(\\\"themeRiver\\\"))}function gS(t,e,n,i){var r=t.getItemLayout(e),o=n.get(\\\"symbolRepeat\\\"),a=n.get(\\\"symbolClip\\\"),s=n.get(\\\"symbolPosition\\\")||\\\"start\\\",l=n.get(\\\"symbolRotate\\\"),u=(l||0)*Math.PI/180||0,h=n.get(\\\"symbolPatternSize\\\")||2,c=n.isAnimationEnabled(),p={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\",style:t.getItemVisual(e,\\\"style\\\"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get(\\\"symbolRepeatDirection\\\"),symbolPatternSize:h,rotation:u,animationModel:c?n:null,hoverScale:c&&n.get([\\\"emphasis\\\",\\\"scale\\\"]),z2:n.getShallow(\\\"z\\\",!0)||0};yS(n,o,r,i,p),mS(t,e,r,o,a,p.boundingLength,p.pxSign,h,i,p),xS(n,p.symbolScale,u,i,p);var d=p.symbolSize,f=Hc(n.get(\\\"symbolOffset\\\"),d);return _S(n,d,r,o,a,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function yS(t,e,n,i,r){var o,a=i.valueDim,s=t.get(\\\"symbolBoundingData\\\"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(M(s)){var c=[vS(l,s[0])-u,vS(l,s[1])-u];c[1]0?1:-1}function vS(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function mS(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,\\\"symbolSize\\\");h=M(f)?f.slice():null==f?[\\\"100%\\\",\\\"100%\\\"]:[f,f],h[p.index]=or(h[p.index],d),h[c.index]=or(h[c.index],i?d:Math.abs(o)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}function xS(t,e,n,i,r){var o=t.get(BZ)||0;o&&(FZ.attr({scaleX:e[0],scaleY:e[1],rotation:n}),FZ.updateTransform(),o/=FZ.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}function _S(t,e,n,i,r,o,a,s,l,u,c,p){var d=c.categoryDim,f=c.valueDim,g=p.pxSign,y=Math.max(e[f.index]+s,0),v=y;if(i){var m=Math.abs(l),x=z(t.get(\\\"symbolMargin\\\"),\\\"15%\\\")+\\\"\\\",_=!1;x.lastIndexOf(\\\"!\\\")===x.length-1&&(_=!0,x=x.slice(0,x.length-1));var b=or(x,e[f.index]),w=Math.max(y+2*b,0),S=_?0:2*b,M=Sr(i),I=M?i:ES((m+S)/w),T=m-I*y;b=T/2/(_?I:Math.max(I-1,1)),w=y+2*b,S=_?0:2*b,M||\\\"fixed\\\"===i||(I=u?ES((Math.abs(u)+S)/w):0),v=I*w-S,p.repeatTimes=I,p.symbolMargin=b}var C=g*(v/2),D=p.pathPosition=[];D[d.index]=n[d.wh]/2,D[f.index]=\\\"start\\\"===a?C:\\\"end\\\"===a?l-C:l/2,o&&(D[0]+=o[0],D[1]+=o[1]);var A=p.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var k=p.barRectShape=h({},n);k[f.wh]=g*Math.max(Math.abs(n[f.wh]),Math.abs(D[f.index]+C)),k[d.wh]=n[d.wh];var L=p.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[f.xy]=0,L[f.wh]=n[f.wh]}function bS(t){var e=t.symbolPatternSize,n=Gc(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),\\\"image\\\"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function wS(t,e,n,i){function r(t){var e=l.slice(),i=n.pxSign,r=t;return(\\\"start\\\"===n.symbolRepeatDirection?i>0:0>i)&&(r=h-1-t),e[u.index]=p*(r-h/2+.5)+l[u.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}var o=t.__pictorialBundle,a=n.symbolSize,s=n.valueLineWidth,l=n.pathPosition,u=e.valueDim,h=n.repeatTimes||0,c=0,p=a[e.valueDim.index]+s+2*n.symbolMargin;for(OS(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,h>c?RS(t,null,r(c),n,i):RS(t,null,{scaleX:0,scaleY:0},n,i,function(){o.remove(t)}),c++});h>c;c++){var d=bS(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=h,o.add(d);var f=r(c);RS(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,i)}}function SS(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?RS(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=bS(n),r.add(o),RS(o,{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 MS(t,e,n){var i=h({},e.barRectShape),r=t.__pictorialBarRect;r?RS(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new mR({z2:2,shape:i,silent:!0,style:{stroke:\\\"transparent\\\",fill:\\\"transparent\\\",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function IS(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=h({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)As(r,{shape:o},s,l);else{o[a.wh]=0,r=new mR({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],QN[i?\\\"updateProps\\\":\\\"initProps\\\"](r,{shape:u},s,l)}}}function TS(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=CS,n.isAnimationEnabled=DS,n}function CS(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function DS(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(\\\"animation\\\")}function AS(t,e,n,i){var r=new HP,o=new HP;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?wS(r,e,n):SS(r,e,n),MS(r,n,i),IS(r,e,n,i),r.__pictorialShapeStr=PS(t,n),r.__pictorialSymbolMeta=n,r}function kS(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;As(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?wS(t,e,n,!0):SS(t,e,n,!0),MS(t,n,!0),IS(t,e,n,!0)}function LS(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];OS(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),y(o,function(t){Ps(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function PS(t,e){return[t.getItemVisual(e.dataIndex,\\\"symbol\\\")||\\\"none\\\",!!e.symbolRepeat,!!e.symbolClip].join(\\\":\\\")}function OS(t,e,n){y(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function RS(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&QN[r?\\\"updateProps\\\":\\\"initProps\\\"](t,n,i.animationModel,i.dataIndex,o)}function NS(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel(\\\"emphasis\\\"),a=o.getModel(\\\"itemStyle\\\").getItemStyle(),s=r.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),l=r.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),u=r.getShallow(\\\"cursor\\\"),c=o.get(\\\"focus\\\"),p=o.get(\\\"blurScope\\\"),d=o.get(\\\"scale\\\");OS(t,function(t){if(t instanceof fR){var e=t.style;t.useStyle(h({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState(\\\"emphasis\\\");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState(\\\"blur\\\").style=s,t.ensureState(\\\"select\\\").style=l,u&&(t.cursor=u),t.z2=n.z2});var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;hl(g,cl(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Og(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Qa(t,c,p,o.get(\\\"disabled\\\"))}function ES(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function zS(t){t.registerChartView(GZ),t.registerSeriesModel(WZ),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(Xd,\\\"pictorialBar\\\")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ud(\\\"pictorialBar\\\"))}function BS(t,e){return e=e||[0,0],v([\\\"x\\\",\\\"y\\\"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return\\\"category\\\"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function VS(t){var e=t.master.getRect();return{coordSys:{type:\\\"cartesian2d\\\",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Lk(BS,t)}}}function FS(t,e){return e=e||[0,0],v([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function GS(t){var e=t.getBoundingRect();return{coordSys:{type:\\\"geo\\\",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Lk(FS,t)}}}function WS(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return\\\"category\\\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function HS(t){var e=t.getRect();return{coordSys:{type:\\\"singleAxis\\\",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Lk(WS,t)}}}function YS(t,e){return e=e||[0,0],v([\\\"Radius\\\",\\\"Angle\\\"],function(n,i){var r=\\\"get\\\"+n+\\\"Axis\\\",o=this[r](),a=e[i],s=t[i]/2,l=\\\"category\\\"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return\\\"Angle\\\"===n&&(l=l*Math.PI/180),l},this)}function XS(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:\\\"polar\\\",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:Lk(YS,t)}}}function US(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:\\\"calendar\\\",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function ZS(t,e,n,i){return t&&(t.legacy||t.legacy!==!1&&!n&&!i&&\\\"tspan\\\"!==e&&(\\\"text\\\"===e||$(t,\\\"text\\\")))}function jS(t,e,n){var i,r,o,a=t;if(\\\"text\\\"===e)o=a;else{o={},$(a,\\\"text\\\")&&(o.text=a.text),$(a,\\\"rich\\\")&&(o.rich=a.rich),$(a,\\\"textFill\\\")&&(o.fill=a.textFill),$(a,\\\"textStroke\\\")&&(o.stroke=a.textStroke),$(a,\\\"fontFamily\\\")&&(o.fontFamily=a.fontFamily),$(a,\\\"fontSize\\\")&&(o.fontSize=a.fontSize),$(a,\\\"fontStyle\\\")&&(o.fontStyle=a.fontStyle),$(a,\\\"fontWeight\\\")&&(o.fontWeight=a.fontWeight),r={type:\\\"text\\\",style:o,silent:!0},i={};var s=$(a,\\\"textPosition\\\");n?i.position=s?a.textPosition:\\\"inside\\\":s&&(i.position=a.textPosition),$(a,\\\"textPosition\\\")&&(i.position=a.textPosition),$(a,\\\"textOffset\\\")&&(i.offset=a.textOffset),$(a,\\\"textRotation\\\")&&(i.rotation=a.textRotation),$(a,\\\"textDistance\\\")&&(i.distance=a.textDistance)}return qS(o,t),y(o.rich,function(t){qS(t,t)}),{textConfig:i,textContent:r}}function qS(t,e){e&&(e.font=e.textFont||e.font,$(e,\\\"textStrokeWidth\\\")&&(t.lineWidth=e.textStrokeWidth),$(e,\\\"textAlign\\\")&&(t.align=e.textAlign),$(e,\\\"textVerticalAlign\\\")&&(t.verticalAlign=e.textVerticalAlign),$(e,\\\"textLineHeight\\\")&&(t.lineHeight=e.textLineHeight),$(e,\\\"textWidth\\\")&&(t.width=e.textWidth),$(e,\\\"textHeight\\\")&&(t.height=e.textHeight),$(e,\\\"textBackgroundColor\\\")&&(t.backgroundColor=e.textBackgroundColor),$(e,\\\"textPadding\\\")&&(t.padding=e.textPadding),$(e,\\\"textBorderColor\\\")&&(t.borderColor=e.textBorderColor),$(e,\\\"textBorderWidth\\\")&&(t.borderWidth=e.textBorderWidth),$(e,\\\"textBorderRadius\\\")&&(t.borderRadius=e.textBorderRadius),$(e,\\\"textBoxShadowColor\\\")&&(t.shadowColor=e.textBoxShadowColor),$(e,\\\"textBoxShadowBlur\\\")&&(t.shadowBlur=e.textBoxShadowBlur),$(e,\\\"textBoxShadowOffsetX\\\")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),$(e,\\\"textBoxShadowOffsetY\\\")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))\\n}function KS(t,e,n){var i=t;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);var r=i.textPosition.indexOf(\\\"inside\\\")>=0,o=t.fill||\\\"#000\\\";$S(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||\\\"#fff\\\",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),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,y(e.rich,function(t){$S(t,t)}),i}function $S(t,e){e&&($(e,\\\"fill\\\")&&(t.textFill=e.fill),$(e,\\\"stroke\\\")&&(t.textStroke=e.fill),$(e,\\\"lineWidth\\\")&&(t.textStrokeWidth=e.lineWidth),$(e,\\\"font\\\")&&(t.font=e.font),$(e,\\\"fontStyle\\\")&&(t.fontStyle=e.fontStyle),$(e,\\\"fontWeight\\\")&&(t.fontWeight=e.fontWeight),$(e,\\\"fontSize\\\")&&(t.fontSize=e.fontSize),$(e,\\\"fontFamily\\\")&&(t.fontFamily=e.fontFamily),$(e,\\\"align\\\")&&(t.textAlign=e.align),$(e,\\\"verticalAlign\\\")&&(t.textVerticalAlign=e.verticalAlign),$(e,\\\"lineHeight\\\")&&(t.textLineHeight=e.lineHeight),$(e,\\\"width\\\")&&(t.textWidth=e.width),$(e,\\\"height\\\")&&(t.textHeight=e.height),$(e,\\\"backgroundColor\\\")&&(t.textBackgroundColor=e.backgroundColor),$(e,\\\"padding\\\")&&(t.textPadding=e.padding),$(e,\\\"borderColor\\\")&&(t.textBorderColor=e.borderColor),$(e,\\\"borderWidth\\\")&&(t.textBorderWidth=e.borderWidth),$(e,\\\"borderRadius\\\")&&(t.textBorderRadius=e.borderRadius),$(e,\\\"shadowColor\\\")&&(t.textBoxShadowColor=e.shadowColor),$(e,\\\"shadowBlur\\\")&&(t.textBoxShadowBlur=e.shadowBlur),$(e,\\\"shadowOffsetX\\\")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),$(e,\\\"shadowOffsetY\\\")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),$(e,\\\"textShadowColor\\\")&&(t.textShadowColor=e.textShadowColor),$(e,\\\"textShadowBlur\\\")&&(t.textShadowBlur=e.textShadowBlur),$(e,\\\"textShadowOffsetX\\\")&&(t.textShadowOffsetX=e.textShadowOffsetX),$(e,\\\"textShadowOffsetY\\\")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function JS(t,e,n,i,r){var o=t+\\\"Animation\\\",a=Cs(t,i,r)||{},s=KZ(e).userDuring;return a.duration>0&&(a.during=s?Lk(aM,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),h(a,n[o]),a}function QS(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=KZ(t),u=e.style;l.userDuring=e.during;var c={},p={};if(hM(t,e,p),lM(\\\"shape\\\",e,p),lM(\\\"extra\\\",e,p),!o&&s&&(uM(t,e,c),sM(\\\"shape\\\",t,e,c),sM(\\\"extra\\\",t,e,c),cM(t,e,u,c)),p.style=u,iM(t,p,a),oM(t,e),s)if(o){var d={};y(qZ,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),h(t?d[t]:d,n.enterFrom))});var f=JS(\\\"enter\\\",t,e,n,r);f.duration>0&&t.animateFrom(d,f)}else rM(t,e,r||0,n,c);tM(t,e),u?t.dirty():t.markRedraw()}function tM(t,e){for(var n=KZ(t).leaveToProps,i=0;i0&&t.animateFrom(r,o)}}function oM(t,e){$(e,\\\"silent\\\")&&(t.silent=e.silent),$(e,\\\"ignore\\\")&&(t.ignore=e.ignore),t instanceof SO&&$(e,\\\"invisible\\\")&&(t.invisible=e.invisible),t instanceof uR&&$(e,\\\"autoBatch\\\")&&(t.autoBatch=e.autoBatch)}function aM(){var t=this,e=t.el;if(e){var n=KZ(e).userDuring,i=t.userDuring;if(n!==i)return void(t.el=t.userDuring=null);$Z.el=e,i(JZ)}}function sM(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),nM(l))h(o,a);else for(var u=Ar(l),c=0;c=0){!o&&(o=i[t]={});for(var g=b(a),c=0;c=0)){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!r&&(r=i.style={});for(var g=b(n),u=0;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function u(n,i){null==i&&(i=b);var r=e.getItemVisual(i,\\\"style\\\"),s=r&&r.fill,l=r&&r.opacity,u=o(i,nj).getItemStyle();null!=s&&(u.fill=s),null!=l&&(u.opacity=l);var h={inheritColor:T(s)?s:\\\"#000\\\"},c=a(i,nj),f=pl(c,null,h,!1,!0);f.text=c.getShallow(\\\"show\\\")?B(t.getFormattedLabel(i,nj),Og(e,i)):null;var g=dl(c,h,!1);return d(n,u),u=KS(u,f,g),n&&p(u,n),u.legacy=!0,u}function h(n,i){null==i&&(i=b);var r=o(i,ej).getItemStyle(),s=a(i,ej),l=pl(s,null,null,!0,!0);l.text=s.getShallow(\\\"show\\\")?V(t.getFormattedLabel(i,ej),t.getFormattedLabel(i,nj),Og(e,i)):null;var u=dl(s,null,!0);return d(n,r),r=KS(r,l,u),n&&p(r,n),r.legacy=!0,r}function p(t,e){for(var n in e)$(e,n)&&(t[n]=e[n])}function d(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function f(t,n){if(null==n&&(n=b),$(HZ,t)){var i=e.getItemVisual(n,\\\"style\\\");return i?i[HZ[t]]:null}return $(YZ,t)?e.getItemVisual(n,t):void 0}function g(t){if(\\\"cartesian2d\\\"===x.type){var e=x.getBaseAxis();return Vd(c({axis:e},t))}}function y(){return n.getCurrentSeriesIndices()}function v(t){return vl(t,n)}var m=t.get(\\\"renderItem\\\"),x=t.coordinateSystem,_={};x&&(_=x.prepareCustoms?x.prepareCustoms(x):cj[x.type](x));for(var b,w,S=c({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:s,style:u,ordinalRawValue:l,styleEmphasis:h,visual:f,barLayout:g,currentSeriesIndices:y,font:v},_.api||{}),M={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:_.coordSys,dataInsideLength:e.count(),encode:MM(t.getData())},I={},C={},D={},A={},k=0;k=0?o.replaceAt(u,a):o.add(u),u}function CM(t,e,n){var i=XZ(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||\\\"path\\\"===r&&FM(o)&&VM(o)!==i.customPathData||\\\"image\\\"===r&&$(a,\\\"image\\\")&&a.image!==i.customImagePath}function DM(t,e,n,i,r){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&CM(a,o,i)&&(a=null),a||(a=mM(o),t.setClipPath(a)),xM(null,a,e,o,null,i,r)}}function AM(t,e,n,i,r,o){if(!t.isGroup){kM(n,null,o),kM(n,ej,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(a===!1)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:\\\"text\\\"},h?h.clearStates():(h=mM(a),t.setTextContent(h)),xM(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;ph;h++){var c=o[h],p=e.childAt(h);c?(null==c.ignore&&(c.ignore=!1),TM(t,p,n,c,r,e)):p.ignore=!0}for(var d=e.childCount()-1;d>=h;d--){var f=e.childAt(d);RM(e,f,r)}}}function RM(t,e,n){e&&eM(e,XZ(t).option,n)}function NM(t){new AF(t.oldChildren,t.newChildren,EM,EM,t).add(zM).update(zM).remove(BM).execute()}function EM(t,e){var n=t&&t.name;return null!=n?n:uj+e}function zM(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;TM(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function BM(t){var e=this.context,n=e.oldChildren[t];n&&eM(n,XZ(n).option,e.seriesModel)}function VM(t){return t&&(t.pathData||t.d)}function FM(t){return t&&($(t,\\\"pathData\\\")||$(t,\\\"d\\\"))}function GM(t){t.registerChartView(pj),t.registerSeriesModel(UZ)}function WM(t,e,n,i){HM(dj(n).lastProp,i)||(dj(n).lastProp=i,e?As(n,i,t):(n.stopAnimation(),n.attr(i)))}function HM(t,e){if(A(t)&&A(e)){var n=!0;return y(e,function(e,i){n=n&&HM(t[i],e)}),!!n}return t===e}function YM(t,e){t[e.get([\\\"label\\\",\\\"show\\\"])?\\\"show\\\":\\\"hide\\\"]()}function XM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function UM(t,e,n){var i=e.get(\\\"z\\\"),r=e.get(\\\"zlevel\\\");t&&t.traverse(function(t){\\\"group\\\"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function ZM(t){var e,n=t.get(\\\"type\\\"),i=t.getModel(n+\\\"Style\\\");return\\\"line\\\"===n?(e=i.getLineStyle(),e.fill=null):\\\"shadow\\\"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function jM(t,e,n,i,r){var o=n.get(\\\"value\\\"),a=KM(o,e.axis,e.ecModel,n.get(\\\"seriesDataIndices\\\"),{precision:n.get([\\\"label\\\",\\\"precision\\\"]),formatter:n.get([\\\"label\\\",\\\"formatter\\\"])}),s=n.getModel(\\\"label\\\"),l=NE(s.get(\\\"padding\\\")||0),u=s.getFont(),h=zi(a,u),c=r.position,p=h.width+l[1]+l[3],d=h.height+l[0]+l[2],f=r.align;\\\"right\\\"===f&&(c[0]-=p),\\\"center\\\"===f&&(c[0]-=p/2);var g=r.verticalAlign;\\\"bottom\\\"===g&&(c[1]-=d),\\\"middle\\\"===g&&(c[1]-=d/2),qM(c,p,d,i);var y=s.get(\\\"backgroundColor\\\");y&&\\\"auto\\\"!==y||(y=e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])),t.label={x:c[0],y:c[1],style:pl(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function qM(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function KM(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:ff(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};y(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),T(a)?o=a.replace(\\\"{value}\\\",o):I(a)&&(o=a(s))}return o}function $M(t,e,n){var i=Be();return He(i,i,n.rotation),We(i,i,n.position),Zs([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function JM(t,e,n,i,r,o){var a=cH.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get([\\\"label\\\",\\\"margin\\\"]),jM(e,i,r,o,{position:$M(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function QM(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function tI(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function eI(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}function nI(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=i.getRadiusAxis().getExtent();if(\\\"radius\\\"===o.dim){var p=Be();He(p,p,s),We(p,p,[i.cx,i.cy]),l=Zs([a,-r],p);var d=e.getModel(\\\"axisLabel\\\").get(\\\"rotate\\\")||0,f=cH.innerTextLayout(s,d*Math.PI/180,-1);u=f.textAlign,h=f.textVerticalAlign}else{var g=c[1];l=i.coordToPoint([g+r,a]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?\\\"center\\\":l[0]>y?\\\"left\\\":\\\"right\\\",h=Math.abs(l[1]-v)/g<.3?\\\"middle\\\":l[1]>v?\\\"top\\\":\\\"bottom\\\"}return{position:l,align:u,verticalAlign:h}}function iI(t,e){var n={};return n[e.dim+\\\"AxisIndex\\\"]=e.index,t.getCartesian(n)}function rI(t){return\\\"x\\\"===t.dim?0:1}function oI(t,e,n){if(!uk.node){var i=e.getZr();wj(i).records||(wj(i).records={}),aI(i,e);var r=wj(i).records[t]||(wj(i).records[t]={});r.handler=n}}function aI(t,e){function n(n,i){t.on(n,function(n){var r=hI(e);Sj(wj(t).records,function(t){t&&i(t,n,r.dispatchAction)}),sI(r.pendings,e)})}wj(t).initialized||(wj(t).initialized=!0,n(\\\"click\\\",S(uI,\\\"click\\\")),n(\\\"mousemove\\\",S(uI,\\\"mousemove\\\")),n(\\\"globalout\\\",lI))}function sI(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function lI(t,e,n){t.handler(\\\"leave\\\",null,n)}function uI(t,e,n,i){e.handler(t,n,i)}function hI(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function cI(t,e){if(!uk.node){var n=e.getZr(),i=(wj(n).records||{})[t];i&&(wj(n).records[t]=null)}}function pI(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=qr(o,t);if(null==a||0>a||M(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,d=\\\"x\\\"===c||\\\"radius\\\"===c?1:0,f=o.mapDimension(p),g=[];g[d]=o.get(f,a),g[1-d]=o.get(o.getCalculationInfo(\\\"stackResultDimension\\\"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(v(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}function dI(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Lk(n.dispatchAction,n),s=e.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(s){SI(r)&&(r=pI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=SI(r),u=o.axesInfo,h=s.axesInfo,c=\\\"leave\\\"===i||SI(r),p={},d={},f={list:[],map:{}},g={showPointer:S(yI,d),showTooltip:S(vI,f)};y(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);y(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=bI(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&fI(t,o,g,!1,p)}})});var v={};return y(h,function(t,e){var n=t.linkGroup;n&&!d[e]&&y(n.axesInfo,function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,wI(e),wI(t)))),v[t.key]=o}})}),y(v,function(t,e){fI(h[e],t,g,!0,p)}),mI(d,h,p),xI(f,r,t,a),_I(h,a,n),p}}function fI(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=gI(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&h(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function gI(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,\\\"category\\\"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,d=Math.abs(p);a>=d&&((a>d||p>=0&&0>s)&&(a=d,s=p,r=l,o.length=0),y(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function yI(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function vI(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=vv(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get([\\\"label\\\",\\\"precision\\\"]),formatter:s.get([\\\"label\\\",\\\"formatter\\\"])},seriesDataIndices:r.slice()})}}function mI(t,e,n){var i=n.axesInfo=[];y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status=\\\"show\\\"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status=\\\"hide\\\"),\\\"show\\\"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function xI(t,e,n,i){if(SI(e)||!t.list.length)return void i({type:\\\"hideTip\\\"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:\\\"showTip\\\",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function _I(t,e,n){var i=n.getZr(),r=\\\"axisPointerLastHighlights\\\",o=Ij(i)[r]||{},a=Ij(i)[r]={};y(t,function(t){var e=t.axisPointerModel.option;\\\"show\\\"===e.status&&t.triggerEmphasis&&y(e.seriesDataIndices,function(t){var e=t.seriesIndex+\\\" | \\\"+t.dataIndex;a[e]=t})});var s=[],l=[];y(o,function(t,e){!a[e]&&l.push(t)}),y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:\\\"downplay\\\",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:\\\"highlight\\\",escapeConnect:!0,notBlur:!0,batch:s})}function bI(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function wI(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 SI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function MI(t){fH.registerAxisPointerClass(\\\"CartesianAxisPointer\\\",xj),t.registerComponentModel(bj),t.registerComponentView(Mj),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!M(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent(\\\"axisPointer\\\").coordSysAxesInfo=sv(t,e)}),t.registerAction({type:\\\"updateAxisPointer\\\",event:\\\"updateAxisPointer\\\",update:\\\":updateAxisPointer\\\"},dI)}function II(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function TI(t,e,n){var i=e.get(\\\"center\\\"),r=n.getWidth(),o=n.getHeight();t.cx=or(i[0],r),t.cy=or(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get(\\\"radius\\\");null==l?l=[0,\\\"100%\\\"]:M(l)||(l=[0,l]);var u=[or(l[0],s),or(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function CI(t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===e){var r=t.getData();y(xf(r,\\\"radius\\\"),function(t){i.scale.unionExtentFromData(r,t)}),y(xf(r,\\\"angle\\\"),function(t){n.scale.unionExtentFromData(r,t)})}}),hf(n.scale,n.model),hf(i.scale,i.model),\\\"category\\\"===n.type&&!n.onBand){var r=n.getExtent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setExtent(r[0],r[1])}}function DI(t){return\\\"angleAxis\\\"===t.mainType}function AI(t,e){if(t.type=e.get(\\\"type\\\"),t.scale=cf(e),t.onBand=e.get(\\\"boundaryGap\\\")&&\\\"category\\\"===t.type,t.inverse=e.get(\\\"inverse\\\"),DI(e)){t.inverse=t.inverse!==e.get(\\\"clockwise\\\");var n=e.get(\\\"startAngle\\\");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}function kI(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function LI(t){var e=t.getRadiusAxis();return e.inverse?0:1}function PI(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}function OI(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel(\\\"axisLabel\\\").get(\\\"rotate\\\"),z2:1}}function RI(t){return t.get(\\\"stack\\\")||\\\"__ec_stack_\\\"+t.seriesIndex}function NI(t,e){return e.dim+t.model.componentIndex}function EI(t,e){var n={},i=zI(x(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&\\\"polar\\\"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if(\\\"polar\\\"===t.coordinateSystem.type){var e=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=NI(r,o),s=RI(t),l=i[a][s],u=l.offset,h=l.width,c=r.getOtherAxis(o),p=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get(\\\"barMinHeight\\\")||0,g=t.get(\\\"barMinAngle\\\")||0;n[s]=n[s]||[];for(var y=e.mapDimension(c.dim),v=e.mapDimension(o.dim),m=xd(e,y),x=\\\"radius\\\"!==o.dim||!t.get(\\\"roundCap\\\",!0),_=c.dataToCoord(0),b=0,w=e.count();w>b;b++){var S=e.get(y,b),M=e.get(v,b),I=S>=0?\\\"p\\\":\\\"n\\\",T=_;m&&(n[s][M]||(n[s][M]={p:_,n:_}),T=n[s][M][I]);var C=void 0,D=void 0,A=void 0,k=void 0;if(\\\"radius\\\"===c.dim){var L=c.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)L?-1:1)*f),C=T,D=T+L,A=P-u,k=A-h,m&&(n[s][M][I]=D)}else{var O=c.dataToCoord(S,x)-_,R=o.dataToCoord(M);Math.abs(O)O?-1:1)*g),C=R+u,D=C+h,A=T,k=T+O,m&&(n[s][M][I]=k)}e.setItemLayout(b,{cx:p,cy:d,r0:C,r:D,startAngle:-A*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:A>=k})}}})}function zI(t){var e={};y(t,function(t){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=NI(i,r),a=r.getExtent(),s=\\\"category\\\"===r.type?r.getBandWidth():Math.abs(a[1]-a[0])/n.count(),l=e[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:\\\"20%\\\",gap:\\\"30%\\\",stacks:{}},u=l.stacks;e[o]=l;var h=RI(t);u[h]||l.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var c=or(t.get(\\\"barWidth\\\"),s),p=or(t.get(\\\"barMaxWidth\\\"),s),d=t.get(\\\"barGap\\\"),f=t.get(\\\"barCategoryGap\\\");c&&!u[h].width&&(c=Math.min(l.remainedWidth,c),u[h].width=c,l.remainedWidth-=c),p&&(u[h].maxWidth=p),null!=d&&(l.gap=d),null!=f&&(l.categoryGap=f)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=or(t.categoryGap,r),a=or(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),y(i,function(t){var e=t.maxWidth;e&&u>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;y(i,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+a)}),h&&(c-=h.width*a);var p=-c/2;y(i,function(t,i){n[e][i]=n[e][i]||{offset:p,width:t.width},p+=t.width*(1+a)})}),n}function BI(t){If(MI),fH.registerAxisPointerClass(\\\"PolarAxisPointer\\\",vj),t.registerCoordinateSystem(\\\"polar\\\",Nj),t.registerComponentModel(Tj),t.registerComponentView(Xj),Gy(t,\\\"angle\\\",Dj,Hj),Gy(t,\\\"radius\\\",Aj,Yj),t.registerComponentView(zj),t.registerComponentView(Gj),t.registerLayout(S(EI,\\\"bar\\\"))}function VI(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=[\\\"vertical\\\"===a?u.vertical[o]:l[0],\\\"horizontal\\\"===a?u.horizontal[o]:l[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[a];var c={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=c[o],t.get([\\\"axisTick\\\",\\\"inside\\\"])&&(r.tickDirection=-r.tickDirection),z(e.labelInside,t.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(r.labelDirection=-r.labelDirection);var p=e.rotate;return null==p&&(p=t.get([\\\"axisLabel\\\",\\\"rotate\\\"])),r.labelRotation=\\\"top\\\"===o?-p:p,r.z2=1,r}function FI(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function GI(t,e){var n=[];return t.eachComponent(\\\"singleAxis\\\",function(i,r){var o=new Qj(i,t,e);o.name=\\\"single_\\\"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if(\\\"singleAxis\\\"===t.get(\\\"coordinateSystem\\\")){var e=t.getReferringComponents(\\\"singleAxis\\\",iO).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n}function WI(t){return t.isHorizontal()?0:1}function HI(t,e){var n=t.getRect();return[n[eq[e]],n[eq[e]]+n[nq[e]]]}function YI(t){If(MI),fH.registerAxisPointerClass(\\\"SingleAxisPointer\\\",iq),t.registerComponentView(oq),t.registerComponentView(jj),t.registerComponentModel(Kj),Gy(t,\\\"single\\\",Kj,Kj.defaultOption),t.registerCoordinateSystem(\\\"single\\\",tq)}function XI(t,e){var n,i=t.cellSize;n=M(i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=v([0,1],function(t){return cu(e,t)&&(n[t]=\\\"auto\\\"),null!=n[t]&&\\\"auto\\\"!==n[t]});du(t,e,{type:\\\"box\\\",ignoreSize:r})}function UI(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}function ZI(t){t.registerComponentModel(aq),t.registerComponentView(sq),t.registerCoordinateSystem(\\\"calendar\\\",uq)}function jI(t){t.registerComponentModel(hq),t.registerComponentView(cq)}function qI(t,e,n){var i=e.getBoxLayoutParams(),r=e.get(\\\"padding\\\"),o={width:n.getWidth(),height:n.getHeight()},a=uu(i,o,r);GE(e.get(\\\"orient\\\"),t,e.get(\\\"itemGap\\\"),a.width,a.height),hu(t,i,o,r)}function KI(t,e){var n=NE(e.get(\\\"padding\\\")),i=e.getItemStyle([\\\"color\\\",\\\"opacity\\\"]);return i.fill=e.get(\\\"backgroundColor\\\"),t=new mR({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})}function $I(t,e,n,i,r,o,a){function s(t,e){\\\"auto\\\"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),gq(t,function(n,i){\\\"inherit\\\"===t[i]&&(t[i]=e[i])})}var l=e.getModel(\\\"itemStyle\\\"),u=l.getItemStyle(),h=0===t.lastIndexOf(\\\"empty\\\",0)?\\\"fill\\\":\\\"stroke\\\",c=l.getShallow(\\\"decal\\\");u.decal=c&&\\\"inherit\\\"!==c?_p(c,a):i.decal,\\\"inherit\\\"===u.fill&&(u.fill=i[r]),\\\"inherit\\\"===u.stroke&&(u.stroke=i[h]),\\\"inherit\\\"===u.opacity&&(u.opacity=(\\\"fill\\\"===r?i:n).opacity),s(u,i);var p=e.getModel(\\\"lineStyle\\\"),d=p.getLineStyle();if(s(d,n),\\\"auto\\\"===u.fill&&(u.fill=i.fill),\\\"auto\\\"===u.stroke&&(u.stroke=i.fill),\\\"auto\\\"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get(\\\"inactiveBorderWidth\\\"),g=u[h];u.lineWidth=\\\"auto\\\"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get(\\\"inactiveColor\\\"),u.stroke=e.get(\\\"inactiveBorderColor\\\"),d.stroke=p.get(\\\"inactiveColor\\\"),d.lineWidth=p.get(\\\"inactiveWidth\\\")}return{itemStyle:u,lineStyle:d}}function JI(t){var e=t.icon||\\\"roundRect\\\",n=Gc(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf(\\\"empty\\\")>-1&&(n.style.stroke=n.style.fill,n.style.fill=\\\"#fff\\\",n.style.lineWidth=2),n}function QI(t,e,n,i){nT(t,e,n,i),n.dispatchAction({type:\\\"legendToggleSelect\\\",name:null!=t?t:e}),eT(t,e,n,i)}function tT(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function eT(t,e,n,i){tT(n)||n.dispatchAction({type:\\\"highlight\\\",seriesName:t,name:e,excludeSeriesId:i})}function nT(t,e,n,i){tT(n)||n.dispatchAction({type:\\\"downplay\\\",seriesName:t,name:e,excludeSeriesId:i})}function iT(t){var e=t.findComponents({mainType:\\\"legend\\\"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn;n++)if(t[n]in e)return t[n]}function pT(t,e){if(!t)return e;e=Jl(e,!0);var n=t.indexOf(e);return t=-1===n?e:\\\"-\\\"+t.slice(0,n)+\\\"-\\\"+e,t.toLowerCase()}function dT(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function fT(t){return t=\\\"left\\\"===t?\\\"right\\\":\\\"right\\\"===t?\\\"left\\\":\\\"top\\\"===t?\\\"bottom\\\":\\\"top\\\"}function gT(t,e,n){if(!T(n)||\\\"inside\\\"===n)return\\\"\\\";var i=t.get(\\\"backgroundColor\\\"),r=t.get(\\\"borderWidth\\\");e=ou(e);var o,a=fT(n),s=Math.max(1.5*Math.round(r),6),l=\\\"\\\",u=Cq+\\\":\\\";p([\\\"left\\\",\\\"right\\\"],a)>-1?(l+=\\\"top:50%\\\",u+=\\\"translateY(-50%) rotate(\\\"+(o=\\\"left\\\"===a?-225:-45)+\\\"deg)\\\"):(l+=\\\"left:50%\\\",u+=\\\"translateX(-50%) rotate(\\\"+(o=\\\"top\\\"===a?225:45)+\\\"deg)\\\");var h=o*Math.PI/180,c=s+r,d=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-c)/2))/100;l+=\\\";\\\"+a+\\\":-\\\"+f+\\\"px\\\";var g=e+\\\" solid \\\"+r+\\\"px;\\\",y=[\\\"position:absolute;width:\\\"+s+\\\"px;height:\\\"+s+\\\"px;z-index:-1;\\\",l+\\\";\\\"+u+\\\";\\\",\\\"border-bottom:\\\"+g,\\\"border-right:\\\"+g,\\\"background-color:\\\"+i+\\\";\\\"];return'
'}function yT(t,e){var n=\\\"cubic-bezier(0.23,1,0.32,1)\\\",i=\\\" \\\"+t/2+\\\"s \\\"+n,r=\\\"opacity\\\"+i+\\\",visibility\\\"+i;return e||(i=\\\" \\\"+t+\\\"s \\\"+n,r+=uk.transformSupported?\\\",\\\"+Cq+i:\\\",left\\\"+i+\\\",top\\\"+i),Tq+\\\":\\\"+r}function vT(t,e,n){var i=t.toFixed(0)+\\\"px\\\",r=e.toFixed(0)+\\\"px\\\";if(!uk.transformSupported)return n?\\\"top:\\\"+r+\\\";left:\\\"+i+\\\";\\\":[[\\\"top\\\",r],[\\\"left\\\",i]];var o=uk.transform3dSupported,a=\\\"translate\\\"+(o?\\\"3d\\\":\\\"\\\")+\\\"(\\\"+i+\\\",\\\"+r+(o?\\\",0\\\":\\\"\\\")+\\\")\\\";return n?\\\"top:0;left:0;\\\"+Cq+\\\":\\\"+a+\\\";\\\":[[\\\"top\\\",0],[\\\"left\\\",0],[Mq,a]]}function mT(t){var e=[],n=t.get(\\\"fontSize\\\"),i=t.getTextColor();i&&e.push(\\\"color:\\\"+i),e.push(\\\"font:\\\"+t.getFont()),n&&e.push(\\\"line-height:\\\"+Math.round(3*n/2)+\\\"px\\\");var r=t.get(\\\"textShadowColor\\\"),o=t.get(\\\"textShadowBlur\\\")||0,a=t.get(\\\"textShadowOffsetX\\\")||0,s=t.get(\\\"textShadowOffsetY\\\")||0;return r&&o&&e.push(\\\"text-shadow:\\\"+a+\\\"px \\\"+s+\\\"px \\\"+o+\\\"px \\\"+r),y([\\\"decoration\\\",\\\"align\\\"],function(n){var i=t.get(n);i&&e.push(\\\"text-\\\"+n+\\\":\\\"+i)}),e.join(\\\";\\\")}function xT(t,e,n){var i=[],r=t.get(\\\"transitionDuration\\\"),o=t.get(\\\"backgroundColor\\\"),a=t.get(\\\"shadowBlur\\\"),s=t.get(\\\"shadowColor\\\"),l=t.get(\\\"shadowOffsetX\\\"),u=t.get(\\\"shadowOffsetY\\\"),h=t.getModel(\\\"textStyle\\\"),c=tc(t,\\\"html\\\"),p=l+\\\"px \\\"+u+\\\"px \\\"+a+\\\"px \\\"+s;return i.push(\\\"box-shadow:\\\"+p),e&&r&&i.push(yT(r,n)),o&&i.push(\\\"background-color:\\\"+o),y([\\\"width\\\",\\\"color\\\",\\\"radius\\\"],function(e){var n=\\\"border-\\\"+e,r=Jl(n),o=t.get(r);null!=o&&i.push(n+\\\":\\\"+o+(\\\"color\\\"===e?\\\"\\\":\\\"px\\\"))}),i.push(mT(h)),null!=c&&i.push(\\\"padding:\\\"+NE(c).join(\\\"px \\\")+\\\"px\\\"),i.join(\\\";\\\")+\\\";\\\"}function _T(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&we(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function bT(t){return Math.max(0,t)}function wT(t){var e=bT(t.shadowBlur||0),n=bT(t.shadowOffsetX||0),i=bT(t.shadowOffsetY||0);return{left:bT(e-n),right:bT(e+n),top:bT(e-i),bottom:bT(e+i)}}function ST(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function MT(t,e,n){var i,r=e.ecModel;n?(i=new gE(n,r,r),i=new gE(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof gE&&(a=a.get(\\\"tooltip\\\",!0)),T(a)&&(a={formatter:a}),a&&(i=new gE(a,i,r)))}return i}function IT(t,e){return t.dispatchAction||Lk(e.dispatchAction,e)}function TT(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function CT(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function DT(t,e,n,i){var r=n[0],o=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-r/2,l=e.y+h/2-o/2;break;case\\\"top\\\":s=e.x+u/2-r/2,l=e.y-o-a;break;case\\\"bottom\\\":s=e.x+u/2-r/2,l=e.y+h+a;break;case\\\"left\\\":s=e.x-r-a,l=e.y+h/2-o/2;break;case\\\"right\\\":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function AT(t){return\\\"center\\\"===t||\\\"middle\\\"===t}function kT(t,e,n){var i=Jr(t).queryOptionMap,r=i.keys()[0];if(r&&\\\"series\\\"!==r){var o=Qr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse(function(e){var n=TR(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function LT(t){If(MI),t.registerComponentModel(Sq),t.registerComponentView(Pq),t.registerAction({type:\\\"showTip\\\",event:\\\"showTip\\\",update:\\\"tooltip:manuallyShowTip\\\"},J),t.registerAction({type:\\\"hideTip\\\",event:\\\"hideTip\\\",update:\\\"tooltip:manuallyHideTip\\\"},J)}function PT(t,e){if(!t)return!1;for(var n=M(t)?t:[t],i=0;i=0&&(a[o]=+a[o].toFixed(p)),[a,c]}function zT(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!NT(e)&&!M(e.coord)&&M(r)){var o=BT(e,n,i,t);if(e=s(e),e.type&&Eq[e.type]&&o.baseAxis&&o.valueAxis){var a=p(r,o.baseAxis.dim),l=p(r,o.valueAxis.dim),u=Eq[e.type](n,o.baseDataDim,o.valueDataDim,a,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&M(r))for(var h=e.coord,c=0;2>c;c++)Eq[h[c]]&&(h[c]=HT(n,n.mapDimension(r[c]),h[c]));else e.coord=[];return e}}function BT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(VT(i,r.valueDataDim)),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 VT(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function FT(t,e){return t&&t.containData&&e.coord&&!RT(e)?t.containData(e.coord):!0}function GT(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!RT(e)&&!RT(n)?t.containZone(e.coord,n.coord):!0}function WT(t,e){return t?function(t,n,i,r){var o=2>r?t.coord&&t.coord[r]:t.value;return wh(o,e[r])}:function(t,n,i,r){return wh(t.value,e[r])}}function HT(t,e,n){if(\\\"average\\\"===n){var i=0,r=0;return t.each(e,function(t){isNaN(t)||(i+=t,r++)}),i/r}return\\\"median\\\"===n?t.getMedian(e):t.getDataExtent(e)[\\\"max\\\"===n?1:0]}function YT(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=or(a.get(\\\"x\\\"),n.getWidth()),l=or(a.get(\\\"y\\\"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function XT(t,e,n){var i;i=t?v(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return h(h({},n),{name:t,ordinalMeta:null})}):[{name:\\\"value\\\",type:\\\"float\\\"}];var r=new WF(i,n),o=v(n.get(\\\"data\\\"),S(zT,e));t&&(o=x(o,S(FT,t)));var a=WT(!!t,i);return r.initData(o,null,a),r}function UT(t){t.registerComponentModel(Nq),t.registerComponentView(Vq),t.registerPreprocessor(function(t){PT(t.series,\\\"markPoint\\\")&&(t.markPoint=t.markPoint||{})})}function ZT(t){return!isNaN(t)&&!isFinite(t)}function jT(t,e,n,i){var r=1-t,o=i.dimensions[t];return ZT(e[r])&&ZT(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function qT(t,e){if(\\\"cartesian2d\\\"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(jT(1,n,i,t)||jT(0,n,i,t)))return!0}return FT(t,e[0])&&FT(t,e[1])}function KT(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=or(s.get(\\\"x\\\"),r.getWidth()),u=or(s.get(\\\"y\\\"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(Pg(a,\\\"cartesian2d\\\")){var d=a.getAxis(\\\"x\\\"),f=a.getAxis(\\\"y\\\"),h=a.dimensions;ZT(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):ZT(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}function $T(t,e,n){var i;i=t?v(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return h(h({},n),{name:t,ordinalMeta:null})}):[{name:\\\"value\\\",type:\\\"float\\\"}];var r=new WF(i,n),o=new WF(i,n),a=new WF([],n),s=v(n.get(\\\"data\\\"),S(Wq,e,t,n));t&&(s=x(s,S(qT,t)));var l=WT(!!t,i);return r.initData(v(s,function(t){return t[0]}),null,l),o.initData(v(s,function(t){return t[1]}),null,l),a.initData(v(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}function JT(t){t.registerComponentModel(Fq),t.registerComponentView(Hq),t.registerPreprocessor(function(t){PT(t.series,\\\"markLine\\\")&&(t.markLine=t.markLine||{})})}function QT(t){return!isNaN(t)&&!isFinite(t)}function tC(t,e,n){var i=1-t;return QT(e[i])&&QT(n[i])}function eC(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return Pg(t,\\\"cartesian2d\\\")?n&&i&&(tC(1,n,i,t)||tC(0,n,i,t))?!0:GT(t,r,o):FT(t,r)||FT(t,o)}function nC(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=or(s.get(n[0]),r.getWidth()),u=or(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues([\\\"x0\\\",\\\"y0\\\"],e),c=t.getValues([\\\"x1\\\",\\\"y1\\\"],e),p=a.clampData(h),d=a.clampData(c),f=[];f[0]=\\\"x0\\\"===n[0]?p[0]>d[0]?c[0]:h[0]:p[0]>d[0]?h[0]:c[0],f[1]=\\\"y0\\\"===n[1]?p[1]>d[1]?c[1]:h[1]:p[1]>d[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(Pg(a,\\\"cartesian2d\\\")){var m=a.getAxis(\\\"x\\\"),x=a.getAxis(\\\"y\\\"),g=t.get(n[0],e),y=t.get(n[1],e);QT(g)?o[0]=m.toGlobalCoord(m.getExtent()[\\\"x0\\\"===n[0]?0:1]):QT(y)&&(o[1]=x.toGlobalCoord(x.getExtent()[\\\"y0\\\"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}function iC(t,e,n){var i,r,o=[\\\"x0\\\",\\\"y0\\\",\\\"x1\\\",\\\"y1\\\"];if(t){var a=v(t&&t.dimensions,function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return h(h({},i),{name:t,ordinalMeta:null})});r=v(o,function(t,e){return{name:t,type:a[e%2].type}}),i=new WF(r,n)}else r=[{name:\\\"value\\\",type:\\\"float\\\"}],i=new WF(r,n);var s=v(n.get(\\\"data\\\"),S(Uq,e,t,n));t&&(s=x(s,S(eC,t)));var l=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return wh(o,r[i])}:function(t,e,n,i){return wh(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}function rC(t){t.registerComponentModel(Yq),t.registerComponentView(jq),t.registerPreprocessor(function(t){PT(t.series,\\\"markArea\\\")&&(t.markArea=t.markArea||{})})}function oC(t,e){if(e=e||t.get(\\\"type\\\"))switch(e){case\\\"category\\\":return new jF({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case\\\"time\\\":return new eG({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get(\\\"useUTC\\\")});default:return new KF}}function aC(t,e){return uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get(\\\"padding\\\"))}function sC(t,e,n,i){var r=i.style,o=tl(t.get([\\\"controlStyle\\\",e]),i||{},new dL(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function lC(t,e,n,i,r,o){var a=e.get(\\\"color\\\");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get(\\\"symbol\\\");r=Gc(s,-1,-1,2,2,a),r.setStyle(\\\"strokeNoScale\\\",!0),n.add(r),o&&o.onCreate(r)}var u=e.getItemStyle([\\\"color\\\"]);r.setStyle(u),i=l({rectHover:!0,z2:100},i,!0);var h=Wc(t.get(\\\"symbolSize\\\"));i.scaleX=h[0]/2,i.scaleY=h[1]/2;var c=Hc(t.get(\\\"symbolOffset\\\"),h);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var p=t.get(\\\"symbolRotate\\\");return i.rotation=(p||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function uC(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel(\\\"checkpointStyle\\\"),s=i.dataToCoord(r.getData().get(\\\"value\\\",n));if(o||!a.get(\\\"animation\\\",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get(\\\"animationDuration\\\",!0),easing:a.get(\\\"animationEasing\\\",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function hC(t){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)}),c({currentIndex:i.option.currentIndex},t)}),t.registerAction({type:\\\"timelinePlayChange\\\",event:\\\"timelinePlayChanged\\\",update:\\\"update\\\"},function(t,e){var n=e.getComponent(\\\"timeline\\\");n&&null!=t.playState&&n.setPlayState(t.playState)})}function cC(t){var e=t&&t.timeline;M(e)||(e=e?[e]:[]),y(e,function(t){t&&pC(t)})}function pC(t){var e=t.type,n={number:\\\"value\\\",time:\\\"time\\\"};if(n[e]&&(t.axisType=n[e],delete t.type),dC(t),fC(t,\\\"controlPosition\\\")){var i=t.controlStyle||(t.controlStyle={});fC(i,\\\"position\\\")||(i.position=t.controlPosition),\\\"none\\\"!==i.position||fC(i,\\\"show\\\")||(i.show=!1,delete i.position),delete t.controlPosition}y(t.data||[],function(t){A(t)&&!M(t)&&(!fC(t,\\\"value\\\")&&fC(t,\\\"name\\\")&&(t.value=t.name),dC(t))})}function dC(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};y(i,function(t,e){o[e]||fC(r,e)||(r[e]=t)}),n.label&&!fC(i,\\\"emphasis\\\")&&(i.emphasis=n.label,delete n.label)}function fC(t,e){return t.hasOwnProperty(e)}function gC(t){t.registerComponentModel(Kq),t.registerComponentView(eK),t.registerSubTypeDefaulter(\\\"timeline\\\",function(){return\\\"slider\\\"}),hC(t),t.registerPreprocessor(cC)}function yC(t){var e=t.get(\\\"coordinateSystem\\\");return p(iK,e)>=0}function vC(t){return t+\\\"Axis\\\"}function mC(t,e){function n(t){!l.get(t.uid)&&r(t)&&(i(t),u=!0)}function i(t){l.set(t.uid,!0),s.push(t),o(t)}function r(t){var e=!1;return t.eachTargetAxis(function(t,n){var i=a.get(t);i&&i[n]&&(e=!0)}),e}function o(t){t.eachTargetAxis(function(t,e){(a.get(t)||a.set(t,[]))[e]=!0})}var a=Z(),s=[],l=Z();t.eachComponent({mainType:\\\"dataZoom\\\",query:e},function(t){l.get(t.uid)||i(t)});var u;do u=!1,t.eachComponent(\\\"dataZoom\\\",n);while(u);return s}function xC(t){var e=t.ecModel,n={infoList:[],infoMap:Z()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(vC(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}function _C(t){var e={};return y([\\\"start\\\",\\\"end\\\",\\\"startValue\\\",\\\"endValue\\\",\\\"throttle\\\"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function bC(t,e,n){lK(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function wC(t,e){for(var n=lK(t).coordSysRecordMap,i=n.keys(),r=0;ri[n+e]&&(e=a),r=r&&o.get(\\\"preventDefaultMouseMove\\\",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function DC(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=lK(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Z());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:\\\"dataZoom\\\",subType:\\\"inside\\\"},function(t){var n=xC(t);y(n.infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,MC(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Z());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(!e)return void SC(i,t);var a=CC(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),mc(t,\\\"dispatchAction\\\",e.model.get(\\\"throttle\\\",!0),\\\"fixRate\\\")})})}function AC(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return Pb(l,a,[0,100],\\\"all\\\"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}function kC(t,e,n){var i=[1/0,-1/0];pK(n,function(t){_f(i,t.getData(),e)});var r=t.getAxisModel(),o=af(r.axis.scale,r,i).calculate();return[o.min,o.max]}function LC(t){t.registerAction(\\\"dataZoom\\\",function(t,e){var n=mC(e,t);y(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}function PC(t){yK||(yK=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,gK),LC(t),t.registerSubTypeDefaulter(\\\"dataZoom\\\",function(){return\\\"slider\\\"}))}function OC(t){PC(t),t.registerComponentModel(aK),t.registerComponentView(uK),DC(t)}function RC(t){var e={x:\\\"y\\\",y:\\\"x\\\",radius:\\\"angle\\\",angle:\\\"radius\\\"};return e[t]}function NC(t){return\\\"vertical\\\"===t?\\\"ns-resize\\\":\\\"ew-resize\\\"}function EC(t){t.registerComponentModel(vK),t.registerComponentView(DK),PC(t)}function zC(){If(OC),If(EC)}function BC(t,e){var n=Ar(t?t.brush:[]);if(n.length){var i=[];y(n,function(t){var e=t.hasOwnProperty(\\\"toolbox\\\")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;M(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),VC(s),e&&!s.length&&s.push.apply(s,AK)}}function VC(t){var e={};y(t,function(t){e[t]=1}),t.length=0,y(e,function(e,n){t.push(n)})}function FC(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function GC(t,e,n){function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var r={};return kK(e,function(e){var o=r[e]=i();kK(t[e],function(t,i){if(RY.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new RY(r),\\\"opacity\\\"===i&&(r=s(r),r.type=\\\"colorAlpha\\\",o.__hidden.__alphaForOpacity=new RY(r))}})}),r}function WC(t,e,n){var i;y(n,function(t){e.hasOwnProperty(t)&&FC(e[t])&&(i=!0)}),i&&y(n,function(n){e.hasOwnProperty(n)&&FC(e[n])?t[n]=s(e[n]):delete t[n]})}function HC(t,e,n,i,r,o){function a(t){return Oc(n,h,t)}function s(t,e){Nc(n,h,t,e)}function l(t,l){h=null==o?t:l;var c=n.getRawDataItem(h);if(!c||c.visualMap!==!1)for(var p=i.call(r,t),d=e[p],f=u[p],g=0,y=f.length;y>g;g++){var v=f[g];d[v]&&d[v].applyVisual(t,a,s)}}var u={};y(t,function(t){var n=RY.prepareVisualTypes(e[t]);u[t]=n});var h;null==o?n.each(l):n.each([o],l)}function YC(t,e,n,i){var r={};return y(t,function(t){var n=RY.prepareVisualTypes(e[t]);r[t]=n}),{progress:function(t,o){function a(t){return Oc(o,u,t)}function s(t,e){Nc(o,u,t,e)}var l;null!=i&&(l=o.getDimensionIndex(i));for(var u,h=o.getStore();null!=(u=t.next());){var c=o.getRawDataItem(u);if(!c||c.visualMap!==!1)for(var p=null!=i?h.get(l,u):u,d=n(p),f=e[d],g=r[d],y=0,v=g.length;v>y;y++){var m=g[y];f[m]&&f[m].applyVisual(p,a,s)}}}}}function XC(t){var e=t.brushType,n={point:function(i){return LK[e].point(i,n,t)},rect:function(i){return LK[e].rect(i,n,t)}};return n}function UC(t){var e=[\\\"x\\\",\\\"y\\\"],n=[\\\"width\\\",\\\"height\\\"];return{point:function(e,n,i){if(e){var r=i.range,o=e[t];return ZC(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]t[1]&&t.reverse(),t}function qC(t,e){return $r(t,e,{includeMainTypes:PK})}function KC(t,e,n,i){var r=n.getAxis([\\\"x\\\",\\\"y\\\"][t]),o=jC(v([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[0/0,0/0],{values:o,xyMinMax:a}}function $C(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function JC(t,e){var n=QC(t),i=QC(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function QC(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[0/0,0/0]}function tD(t){t.eachComponent({mainType:\\\"brush\\\"},function(e){var n=e.brushTargetManager=new OK(e.option,t);n.setInputRanges(e.areas,t)})}function eD(t,e,n){var i,r,o=[];t.eachComponent({mainType:\\\"brush\\\"},function(t){n&&\\\"takeGlobalCursor\\\"===n.type&&t.setBrushOption(\\\"brush\\\"===n.key?n.brushOption:{brushType:!1})}),tD(t),t.eachComponent({mainType:\\\"brush\\\"},function(e,n){function a(t){return\\\"all\\\"===f||!!g[t]}function l(t){return!!t.length}function u(t,e){var n=t.coordinateSystem;_=_||n.hasAxisBrushed(),a(e)&&n.eachActiveState(t.getData(),function(t,e){\\\"active\\\"===t&&(m[e]=1)})}function h(n,i,r){if(n.brushSelector&&!oD(e,i)&&(y(b,function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),_=_||l(r)}),a(i)&&l(r))){var o=n.getData();o.each(function(t){rD(n,r,o,t)&&(m[t]=1)})}}var p={brushId:e.id,brushIndex:n,brushName:e.name,areas:s(e.areas),selected:[]};o.push(p);var d=e.option,f=d.brushLink,g=[],m=[],x=[],_=!1;n||(i=d.throttleType,r=d.throttleDelay);var b=v(e.areas,function(t){var e=WK[t.brushType],n=c({boundingRect:e?e(t):void 0},t);return n.selectors=XC(n),n}),w=GC(e.option,VK,function(t){t.mappingMethod=\\\"fixed\\\"});M(f)&&y(f,function(t){g[t]=1}),t.eachSeries(function(t,e){var n=x[e]=[];\\\"parallel\\\"===t.subType?u(t,e):h(t,e,n)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};p.selected.push(n);var i=x[e],r=t.getData(),o=a(e)?function(t){return m[t]?(n.dataIndex.push(r.getRawIndex(t)),\\\"inBrush\\\"):\\\"outOfBrush\\\"}:function(e){return rD(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),\\\"inBrush\\\"):\\\"outOfBrush\\\"};(a(e)?_:l(i))&&HC(VK,w,r,o)})}),nD(e,i,r,o,n)}function nD(t,e,n,i,r){if(r){var o=t.getZr();if(!o[GK]){o[FK]||(o[FK]=iD);var a=mc(o,FK,n,e);a(t,i)}}}function iD(t,e){if(!t.isDisposed()){var n=t.getZr();n[GK]=!0,t.dispatchAction({type:\\\"brushSelect\\\",batch:e}),n[GK]=!1}}function rD(t,e,n,i){for(var r=0,o=e.length;o>r;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}function oD(t,e){var n=t.option.seriesIndex;return null!=n&&\\\"all\\\"!==n&&(M(n)?p(n,e)<0:e!==n)}function aD(t){return new dL(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function sD(t,e){return l({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new gE(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function lD(t,e){ZK[t]=e}function uD(t){return ZK[t]}function hD(t){t.registerComponentView(HK),t.registerComponentModel(XK),t.registerPreprocessor(BC),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,eD),t.registerAction({type:\\\"brush\\\",event:\\\"brush\\\",update:\\\"updateVisual\\\"},function(t,e){e.eachComponent({mainType:\\\"brush\\\",query:t},function(e){e.setAreas(t.areas)})}),t.registerAction({type:\\\"brushSelect\\\",event:\\\"brushSelected\\\",update:\\\"none\\\"},J),t.registerAction({type:\\\"brushEnd\\\",event:\\\"brushEnd\\\",update:\\\"none\\\"},J),lD(\\\"brush\\\",qK)}function cD(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;i>=s&&oh;h++)u[l$[1-a][h]]=l[h],u[s[h]]=2===h?n[0]:i[s[h]];var c=[[\\\"x\\\",\\\"width\\\",3],[\\\"y\\\",\\\"height\\\",0]][a],p=uu(u,o,i.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+.5*p[c[1]]<.5*o[c[1]]?0:1]}function dD(t,e){return y(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey=\\\"visualMap\\\"+(e?e.componentIndex:\\\"\\\")}),t}function fD(t,e,n,i){return new MN({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){tL(t.event)},ondragend:i})}function gD(t,e,n){var i=d$/2,r=t.get(\\\"hoverLinkDataSize\\\");return r&&(i=u$(r,e,n,!0)/2),i}function yD(t){var e=t.get(\\\"hoverLinkOnHandle\\\");return!!(null==e?t.get(\\\"realtime\\\"):e)}function vD(t){return\\\"vertical\\\"===t?\\\"ns-resize\\\":\\\"ew-resize\\\"}function mD(t,e,n,i){function r(t){return l[t]}function o(t,e){l[t]=e}for(var a=e.targetVisuals[i],s=RY.prepareVisualTypes(a),l={color:Rc(t.getData(),\\\"color\\\")},u=0,h=s.length;h>u;u++){var c=s[u],p=a[\\\"opacity\\\"===c?\\\"__alphaForOpacity\\\":c];p&&p.applyVisual(n,r,o)}return l.color}function xD(t){var e=t&&t.visualMap;M(e)||(e=e?[e]:[]),x$(e,function(t){if(t){_D(t,\\\"splitList\\\")&&!_D(t,\\\"pieces\\\")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&M(e)&&x$(e,function(t){A(t)&&(_D(t,\\\"start\\\")&&!_D(t,\\\"min\\\")&&(t.min=t.start),_D(t,\\\"end\\\")&&!_D(t,\\\"max\\\")&&(t.max=t.end))})}})}function _D(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function bD(t){_$||(_$=!0,t.registerSubTypeDefaulter(\\\"visualMap\\\",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?\\\"piecewise\\\":\\\"continuous\\\"}),t.registerAction(y$,v$),y(m$,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(xD))}function wD(t){t.registerComponentModel(a$),t.registerComponentView(g$),bD(t)}function SD(t,e){var n=t.inverse;(\\\"vertical\\\"===t.orient?!n:n)&&e.reverse()}function MD(t){t.registerComponentModel(b$),t.registerComponentView(S$),bD(t)}function ID(){If(wD),If(MD)}function TD(t){t.registerComponentModel(M$),t.registerComponentView(I$),PC(t)}function CD(t){return 0===t.indexOf(\\\"my\\\")}function DD(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||\\\"cartesian2d\\\"!==r.type&&\\\"polar\\\"!==r.type)n.push(t);else{var o=r.getBaseAxis();if(\\\"category\\\"===o.type){var a=o.dim+\\\"_\\\"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function AD(t){var e=[];return y(t,function(t){var n=t.categoryAxis,i=t.valueAxis,r=i.dim,o=[\\\" \\\"].concat(v(t.series,function(t){return t.name})),a=[n.model.getCategories()];y(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(R$)],l=0;la;a++)i[a]=arguments[a];n.push((o?o+R$:\\\"\\\")+i.join(R$))}),n.join(\\\"\\\\n\\\")}).join(\\\"\\\\n\\\\n\\\"+O$+\\\"\\\\n\\\\n\\\")}function LD(t){var e=DD(t);return{value:x([AD(e.seriesGroupByCategoryAxis),kD(e.other)],function(t){return!!t.replace(/[\\\\n\\\\t\\\\s]/g,\\\"\\\")}).join(\\\"\\\\n\\\\n\\\"+O$+\\\"\\\\n\\\\n\\\"),meta:e.meta}}function PD(t){return t.replace(/^\\\\s\\\\s*/,\\\"\\\").replace(/\\\\s\\\\s*$/,\\\"\\\")}function OD(t){var e=t.slice(0,t.indexOf(\\\"\\\\n\\\"));return e.indexOf(R$)>=0?!0:void 0}function RD(t){for(var e=t.split(/\\\\n+/g),n=PD(e.shift()).split(N$),i=[],r=v(n,function(t){return{name:t,data:[]}}),o=0;o=0;r--){var o=n[r];if(o[i])break}if(0>r){var a=t.queryComponents({mainType:\\\"dataZoom\\\",subType:\\\"select\\\",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),n.push(e)}function VD(t){var e=WD(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return z$(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}function FD(t){B$(t).snapshots=null}function GD(t){return WD(t).length}function WD(t){var e=B$(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}function HD(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}function YD(t,e){t.setIconStatus(\\\"back\\\",GD(e)>1?\\\"emphasis\\\":\\\"normal\\\")}function XD(t,e,n,i,r){var o=n._isZoomActive;i&&\\\"takeGlobalCursor\\\"===i.type&&(o=\\\"dataZoomSelect\\\"===i.key?i.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus(\\\"zoom\\\",o?\\\"emphasis\\\":\\\"normal\\\");var a=new OK(HD(t),e,{include:[\\\"grid\\\"]}),s=a.makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?\\\"lineX\\\":!t.xAxisDeclared&&t.yAxisDeclared?\\\"lineY\\\":\\\"rect\\\"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:\\\"auto\\\",brushStyle:t.getModel(\\\"brushStyle\\\").getItemStyle()}:!1)}function UD(t){t.registerComponentModel(T$),t.registerComponentView(C$),lD(\\\"saveAsImage\\\",D$),lD(\\\"magicType\\\",L$),lD(\\\"dataView\\\",E$),lD(\\\"dataZoom\\\",W$),lD(\\\"restore\\\",V$),If(TD)}function ZD(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function jD(t,e){var n;return y(e,function(e){null!=t[e]&&\\\"auto\\\"!==t[e]&&(n=!0)}),n}function qD(t,e,n){var i=h({},n),r=t[e],o=n.$action||\\\"merge\\\";\\\"merge\\\"===o?r?(l(r,i,!0),du(r,i,{ignoreSize:!0}),gu(n,r),KD(n,r),KD(n,r,\\\"shape\\\"),KD(n,r,\\\"style\\\"),KD(n,r,\\\"extra\\\"),n.clipPath=r.clipPath):t[e]=i:\\\"replace\\\"===o?t[e]=i:\\\"remove\\\"===o&&r&&(t[e]=null)}function KD(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?Y$:X$,r=0;ra)&&t(\\\"fill-opacity\\\",a)}else t(\\\"fill\\\",nJ);if(aA(e)){var s=jn(e.stroke);t(\\\"stroke\\\",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,c=e.strokeFirst;if((i||1!==u)&&t(\\\"stroke-width\\\",u),(i||c)&&t(\\\"paint-order\\\",c?\\\"stroke\\\":\\\"fill\\\"),(i||1>h)&&t(\\\"stroke-opacity\\\",h),e.lineDash){var p=Jc(n),d=p[0],f=p[1];d&&(f=iJ(f||0),t(\\\"stroke-dasharray\\\",d.join(\\\",\\\")),(f||i)&&t(\\\"stroke-dashoffset\\\",f))}else i&&t(\\\"stroke-dasharray\\\",nJ);for(var g=0;g\\\"}function cA(t){return\\\"\\\"}function pA(t,e){function n(t){var e=t.children,r=t.tag,o=t.attrs,a=t.text;return hA(r,o)+(\\\"style\\\"!==r?Ce(a):a||\\\"\\\")+(e?\\\"\\\"+i+v(e,function(t){return n(t)}).join(i)+i:\\\"\\\")+cA(r)}e=e||{};var i=e.newline?\\\"\\\\n\\\":\\\"\\\";return n(t)}function dA(t,e,n){n=n||{};var i=n.newline?\\\"\\\\n\\\":\\\"\\\",r=\\\" {\\\"+i,o=i+\\\"}\\\",a=v(b(t),function(e){return e+r+v(b(t[e]),function(n){return n+\\\":\\\"+t[e][n]+\\\";\\\"}).join(i)+o}).join(i),s=v(b(e),function(t){return\\\"@keyframes \\\"+t+r+v(b(e[t]),function(n){return n+r+v(b(e[t][n]),function(i){var r=e[t][n][i];return\\\"d\\\"===i&&(r='path(\\\"'+r+'\\\")'),i+\\\":\\\"+r+\\\";\\\"}).join(i)+o}).join(i)+o}).join(i);return a||s?[\\\"\\\"].join(i):\\\"\\\"}function fA(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gA(t,e,n,i){return uA(\\\"svg\\\",\\\"root\\\",{width:t,height:e,xmlns:aJ,\\\"xmlns:xlink\\\":sJ,version:\\\"1.1\\\",baseProfile:\\\"full\\\",viewBox:i?\\\"0 0 \\\"+t+\\\" \\\"+e:!1},n)}function yA(t,e,n){var i=h({},t.shape);h(i,e),t.buildPath(n,i);var r=new eJ;return r.reset(ui(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function vA(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[cJ]=n+\\\"px \\\"+i+\\\"px\\\")}function mA(t,e){var n=e.zrId+\\\"-ani-\\\"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function xA(t,e,n){var i,r,o=t.shape.paths,a={};if(y(o,function(t){var e=fA(n.zrId);e.animation=!0,bA(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=b(o),u=l.length;if(u){r=l[u-1];var h=o[r];for(var c in h){var p=h[c];a[c]=a[c]||{d:\\\"\\\"},a[c].d+=p.d||\\\"\\\"}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=mA(a,n);return i.replace(r,s)}}function _A(t){return T(t)?hJ[t]?\\\"cubic-bezier(\\\"+hJ[t]+\\\")\\\":In(t)?t:\\\"\\\":\\\"\\\"}function bA(t,e,n,i){function r(r){function o(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;od;d++){var f=a[d],g=f.targetName;g?\\\"shape\\\"===g&&o(f,u):!i&&o(f,l)}for(var y in l){var v={};Ri(v,t),h(v,l[y]);var m=hi(v),_=l[y][p];c[y]=m?{transform:m}:{},vA(c[y],v),_&&(c[y][p]=_)}var w,S=!0;for(var y in u){c[y]=c[y]||{};var M=!w,_=u[y][p];M&&(w=new JO);var I=w.len();w.reset(),c[y].d=yA(t,u[y],w);var C=w.len();if(!M&&I!==C){S=!1;break}_&&(c[y][p]=_)}if(!S)for(var y in c)delete c[y].d;if(!i)for(var d=0;s>d;d++){var f=a[d],g=f.targetName;\\\"style\\\"===g&&o(f,c,function(t){return pJ[t]})}for(var A,k=b(c),L=!0,d=1;d0}).length){var R=mA(c,n);return R+\\\" \\\"+r[0]+\\\" both\\\"}}var o=t.animators,a=o.length,s=[];if(t instanceof NN){var l=xA(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;a>c;c++){var p=o[c],d=[p.getMaxTime()/1e3+\\\"s\\\"],f=_A(p.getClip().easing),g=p.getDelay();d.push(f?f:\\\"linear\\\"),g&&d.push(g/1e3+\\\"s\\\"),p.getLoop()&&d.push(\\\"infinite\\\");var y=d.join(\\\" \\\");u[y]=u[y]||[y,[]],u[y][1].push(p)}for(var v in u){var l=r(u[v]);l&&s.push(l)}if(s.length){var m=n.zrId+\\\"-cls-\\\"+n.cssClassIdx++;n.cssNodes[\\\".\\\"+m]={animation:s.join(\\\",\\\")},e[\\\"class\\\"]=m}}function wA(t){return t&&T(t.src)}function SA(t){return t&&I(t.toDataURL)}function MA(t,e,n,i){sA(function(r,o){var a=\\\"fill\\\"===r||\\\"stroke\\\"===r;a&&si(o)?zA(e,t,r,i):a&&ri(o)?BA(n,t,r,i):t[r]=o},e,n,!1),EA(n,t,i)}function IA(t){return qn(t[0]-1)&&qn(t[1])&&qn(t[2])&&qn(t[3]-1)}function TA(t){return qn(t[4])&&qn(t[5])}function CA(t,e,n){if(e&&(!TA(e)||!IA(e))){var i=n?10:1e4;t.transform=IA(e)?\\\"translate(\\\"+dJ(e[4]*i)/i+\\\" \\\"+dJ(e[5]*i)/i+\\\")\\\":Jn(e)}}function DA(t,e,n){for(var i=t.points,r=[],o=0;ol){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var p=c.getVersion(),d=t,f=d.__svgPathBuilder;d.__svgPathVersion===p&&f&&l===d.__svgPathStrokePercent||(f||(f=d.__svgPathBuilder=new eJ),f.reset(u),c.rebuildPath(f,l),f.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);r[0](i,o,g)}return CA(o,t.transform),MA(o,n,t,e),e.animation&&bA(t,o,e),uA(s,t.id+\\\"\\\",o)}function OA(t,e){var n=t.style,i=n.image;if(i&&!T(i)&&(wA(i)?i=i.src:SA(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:i,width:a,height:s};return r&&(l.x=r),o&&(l.y=o),CA(l,t.transform),MA(l,n,t,e),e.animation&&bA(t,l,e),uA(\\\"image\\\",t.id+\\\"\\\",l)}}function RA(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=\\\"\\\"),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||pk,o=n.x||0,a=Qn(n.y||0,Fi(r),n.textBaseline),s=JL[n.textAlign]||n.textAlign,l={\\\"dominant-baseline\\\":\\\"central\\\",\\\"text-anchor\\\":s};if(aa(n)){var u=\\\"\\\",h=n.fontStyle,c=ra(n.fontSize);if(!parseFloat(c))return;var p=n.fontFamily||ck,d=n.fontWeight;u+=\\\"font-size:\\\"+c+\\\";font-family:\\\"+p+\\\";\\\",h&&\\\"normal\\\"!==h&&(u+=\\\"font-style:\\\"+h+\\\";\\\"),d&&\\\"normal\\\"!==d&&(u+=\\\"font-weight:\\\"+d+\\\";\\\"),l.style=u}else l.style=\\\"font: \\\"+r;return i.match(/\\\\s/)&&(l[\\\"xml:space\\\"]=\\\"preserve\\\"),o&&(l.x=o),a&&(l.y=a),CA(l,t.transform),MA(l,n,t,e),e.animation&&bA(t,l,e),uA(\\\"text\\\",t.id+\\\"\\\",l,void 0,i)}}function NA(t,e){return t instanceof uR?PA(t,e):t instanceof fR?OA(t,e):t instanceof cR?RA(t,e):void 0}function EA(t,e,n){var i=t.style;if(ti(i)){var r=ei(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,d=jn(i.shadowColor),f=d.opacity,g=d.color,y=p/2/l,v=p/2/u,m=y+\\\" \\\"+v;a=n.zrId+\\\"-s\\\"+n.shadowIdx++,n.defs[a]=uA(\\\"filter\\\",a,{id:a,x:\\\"-100%\\\",y:\\\"-100%\\\",width:\\\"300%\\\",height:\\\"300%\\\"},[uA(\\\"feDropShadow\\\",\\\"\\\",{dx:h/l,dy:c/u,stdDeviation:m,\\\"flood-color\\\":g,\\\"flood-opacity\\\":f})]),o[r]=a}e.filter=li(a)}}function zA(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?\\\"userSpaceOnUse\\\":\\\"objectBoundingBox\\\"};if(oi(o))r=\\\"linearGradient\\\",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!ai(o))return;r=\\\"radialGradient\\\",a.cx=B(o.x,.5),a.cy=B(o.y,.5),a.r=B(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;h>u;++u){var c=100*$n(s[u].offset)+\\\"%\\\",p=s[u].color,d=jn(p),f=d.color,g=d.opacity,y={offset:c};y[\\\"stop-color\\\"]=f,1>g&&(y[\\\"stop-opacity\\\"]=g),l.push(uA(\\\"stop\\\",u+\\\"\\\",y))}var v=uA(r,\\\"\\\",a,l),m=pA(v),x=i.gradientCache,_=x[m];_||(_=i.zrId+\\\"-g\\\"+i.gradientIdx++,x[m]=_,a.id=_,i.defs[_]=uA(r,_,a,l)),e[n]=li(_)}function BA(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),l={},u=o.repeat,h=\\\"no-repeat\\\"===u,c=\\\"repeat-x\\\"===u,p=\\\"repeat-y\\\"===u;if(ni(o)){var d=o.imageWidth,f=o.imageHeight,g=void 0,y=o.image;if(T(y)?g=y:wA(y)?g=y.src:SA(y)&&(g=y.toDataURL()),\\\"undefined\\\"==typeof Image){var v=\\\"Image width/height must been given explictly in svg-ssr renderer.\\\";W(d,v),W(f,v)}else if(null==d||null==f){var m=function(t,e){if(t){var n=t.elm,i=d||e.width,r=f||e.height;\\\"pattern\\\"===t.tag&&(c?(r=1,i/=a.width):p&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute(\\\"width\\\",i),n.setAttribute(\\\"height\\\",r))}},x=mo(g,null,t,function(t){h||m(S,t),m(r,t)});x&&x.width&&x.height&&(d=d||x.width,f=f||x.height)}r=uA(\\\"image\\\",\\\"img\\\",{href:g,width:d,height:f}),l.width=d,l.height=f}else o.svgElement&&(r=s(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var _,b;h?_=b=1:c?(b=1,_=l.width/a.width):p?(_=1,b=l.height/a.height):l.patternUnits=\\\"userSpaceOnUse\\\",null==_||isNaN(_)||(l.width=_),null==b||isNaN(b)||(l.height=b);var w=hi(o);w&&(l.patternTransform=w);var S=uA(\\\"pattern\\\",\\\"\\\",l,[r]),M=pA(S),I=i.patternCache,C=I[M];C||(C=i.zrId+\\\"-p\\\"+i.patternIdx++,I[M]=C,l.id=C,S=i.defs[C]=uA(\\\"pattern\\\",C,l,[r])),e[n]=li(C)}}function VA(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){o=n.zrId+\\\"-c\\\"+n.clipPathIdx++;var a={id:o};i[t.id]=o,r[o]=uA(\\\"clipPath\\\",o,a,[PA(t,n)])}e[\\\"clip-path\\\"]=li(o)}function FA(t){return document.createTextNode(t)}function GA(t,e,n){t.insertBefore(e,n)}function WA(t,e){t.removeChild(e)}function HA(t,e){t.appendChild(e)}function YA(t){return t.parentNode}function XA(t){return t.nextSibling}function UA(t,e){t.textContent=e}function ZA(t){return void 0===t}function jA(t){return void 0!==t}function qA(t,e,n){for(var i={},r=e;n>=r;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function KA(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function $A(t){var e,n=t.children,i=t.tag;if(jA(i)){var r=t.elm=lA(i);if(tk(vJ,t),M(n))for(e=0;e=i;++i){var o=n[i];null!=o&&GA(t,$A(o),e)}}function QA(t,e,n,i){for(;i>=n;++n){var r=e[n];if(null!=r)if(jA(r.tag)){var o=YA(r.elm);WA(o,r.elm)}else WA(t,r.elm)}}function tk(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(a===!0?i.setAttribute(n,\\\"\\\"):a===!1?i.removeAttribute(n):n.charCodeAt(0)!==yJ?i.setAttribute(n,a):\\\"xmlns:xlink\\\"===n||\\\"xmlns\\\"===n?i.setAttributeNS(lJ,n,a):n.charCodeAt(3)===gJ?i.setAttributeNS(uJ,n,a):n.charCodeAt(5)===gJ?i.setAttributeNS(sJ,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function ek(t,e,n){for(var i,r,o,a,s=0,l=0,u=e.length-1,h=e[0],c=e[u],p=n.length-1,d=n[0],f=n[p];u>=s&&p>=l;)null==h?h=e[++s]:null==c?c=e[--u]:null==d?d=n[++l]:null==f?f=n[--p]:KA(h,d)?(nk(h,d),h=e[++s],d=n[++l]):KA(c,f)?(nk(c,f),c=e[--u],f=n[--p]):KA(h,f)?(nk(h,f),GA(t,h.elm,XA(c.elm)),h=e[++s],f=n[--p]):KA(c,d)?(nk(c,d),GA(t,c.elm,h.elm),c=e[--u],d=n[++l]):(ZA(i)&&(i=qA(e,s,u)),r=i[d.key],ZA(r)?GA(t,$A(d),h.elm):(o=e[r],o.tag!==d.tag?GA(t,$A(d),h.elm):(nk(o,d),e[r]=void 0,GA(t,o.elm,h.elm))),d=n[++l]);(u>=s||p>=l)&&(s>u?(a=null==n[p+1]?null:n[p+1].elm,JA(t,a,n,l,p)):QA(t,e,s,u))}function nk(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(tk(t,e),ZA(e.text)?jA(i)&&jA(r)?i!==r&&ek(n,i,r):jA(r)?(jA(t.text)&&UA(n,\\\"\\\"),JA(n,null,r,0,r.length-1)):jA(i)?QA(n,i,0,i.length-1):jA(t.text)&&UA(n,\\\"\\\"):t.text!==e.text&&(jA(i)&&QA(n,i,0,i.length-1),UA(n,e.text)))}function ik(t,e){if(KA(t,e))nk(t,e);else{var n=t.elm,i=YA(n);$A(e),null!==i&&(GA(i,e.elm,XA(n)),QA(i,[t],0,0))}return e}function rk(){return function(){}}function ok(t,e,n,i){var r;if(n&&\\\"none\\\"!==n)if(r=uA(\\\"rect\\\",\\\"bg\\\",{width:t,height:e,x:\\\"0\\\",y:\\\"0\\\",id:\\\"0\\\"}),si(n))zA({fill:n},r.attrs,\\\"fill\\\",i);else if(ri(n))BA({style:{fill:n},dirty:J,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,\\\"fill\\\",i);else{var o=jn(n),a=o.color,s=o.opacity;r.attrs.fill=a,1>s&&(r.attrs[\\\"fill-opacity\\\"]=s)}return r}var ak=function(t,e){return(ak=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)},sk=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),lk=function(){function t(){this.browser=new sk,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}return t}(),uk=new lk;\\\"object\\\"==typeof wx&&\\\"function\\\"==typeof wx.getSystemInfoSync?(uk.wxa=!0,uk.touchEventsSupported=!0):\\\"undefined\\\"==typeof document&&\\\"undefined\\\"!=typeof self?uk.worker=!0:\\\"undefined\\\"==typeof navigator?(uk.node=!0,uk.svgSupported=!0):n(navigator.userAgent,uk);var hk=12,ck=\\\"sans-serif\\\",pk=hk+\\\"px \\\"+ck,dk=20,fk=100,gk=\\\"007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\\\\\\\\\\\\\WQb\\\\\\\\0FWLg\\\\\\\\bWb\\\\\\\\WQ\\\\\\\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\\\\\\\FFF5.5N\\\",yk=i(gk),vk={createCanvas:function(){return\\\"undefined\\\"!=typeof document&&document.createElement(\\\"canvas\\\")},measureText:function(){var t,e;return function(n,i){if(!t){var r=vk.createCanvas();t=r&&r.getContext(\\\"2d\\\")}if(t)return e!==i&&(e=t.font=i||pk),t.measureText(n);n=n||\\\"\\\",i=i||pk;var o=/(\\\\d+)px/.exec(i),a=o&&+o[1]||hk,s=0;if(i.indexOf(\\\"mono\\\")>=0)s=a*n.length;else for(var l=0;lr;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;ns;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){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)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;nl;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){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,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Uk=Math.log(2),Zk=\\\"___zrEVENTSAVED\\\",jk=[],qk=/([&<>\\\"'])/g,Kk={\\\"&\\\":\\\"&\\\",\\\"<\\\":\\\"<\\\",\\\">\\\":\\\">\\\",'\\\"':\\\""\\\",\\\"'\\\":\\\"'\\\"},$k=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jk=[],Qk=uk.browser.firefox&&+uk.browser.version.split(\\\".\\\")[0]<39,tL=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},eL=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=De(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in nL)if(nL.hasOwnProperty(e)){var n=nL[e](this._track,t);if(n)return n}},t}(),nL={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Ee(i)/Ee(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=ze(i);return e.pinchX=a[0],e.pinchY=a[1],{type:\\\"pinch\\\",target:t[0].target,event:e}}}}},iL=(Object.freeze||Object)({create:Be,identity:Ve,copy:Fe,mul:Ge,translate:We,rotate:He,scale:Ye,invert:Xe,clone:Ue}),rL=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),oL=Math.min,aL=Math.max,sL=new rL,lL=new rL,uL=new rL,hL=new rL,cL=new rL,pL=new rL,dL=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=oL(t.x,this.x),n=oL(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?aL(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?aL(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Be();return We(r,r,[-e.x,-e.y]),Ye(r,r,[n,i]),We(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),x=Math.min(g,y),_=Math.min(v,m);l>o||r>u?x>f&&(f=x,y>g?rL.set(pL,-g,0):rL.set(pL,y,0)):d>x&&(d=x,y>g?rL.set(cL,g,0):rL.set(cL,-y,0)),h>s||a>c?_>f&&(f=_,m>v?rL.set(pL,0,-v):rL.set(pL,0,m)):d>x&&(d=x,m>v?rL.set(cL,0,v):rL.set(cL,0,-m))}return n&&rL.copy(n,p?cL:pL),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}sL.x=uL.x=n.x,sL.y=hL.y=n.y,lL.x=hL.x=n.x+n.width,lL.y=uL.y=n.y+n.height,sL.transform(i),hL.transform(i),lL.transform(i),uL.transform(i),e.x=oL(sL.x,lL.x,uL.x,hL.x),e.y=oL(sL.y,lL.y,uL.y,hL.y);var l=aL(sL.x,lL.x,uL.x,hL.x),u=aL(sL.y,lL.y,uL.y,hL.y);e.width=l-e.x,e.height=u-e.y},t}(),fL=\\\"silent\\\",gL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Xk),yL=function(){function t(t,e){this.x=t,this.y=e}return t}(),vL=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],mL=new dL(0,0,0,0),xL=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new yL(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new gL,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Yk(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(vL,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=$e(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new yL(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:\\\"default\\\"),o&&s!==o&&this.dispatchToElement(r,\\\"mouseout\\\",t),this.dispatchToElement(a,\\\"mousemove\\\",t),s&&s!==o&&this.dispatchToElement(a,\\\"mouseover\\\",t)},n.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})},n.prototype.resize=function(){this._hovered=new yL(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r=\\\"on\\\"+e,o=Ze(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){\\\"function\\\"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new yL(t,e);if(Ke(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new dL(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(mL.copy(h.getBoundingRect()),h.transform&&mL.applyTransform(h.transform),mL.intersect(l)&&o.push(h))}if(o.length)for(var c=4,p=Math.PI/12,d=2*Math.PI,f=0;s>f;f+=c)for(var g=0;d>g;g+=p){var y=t+f*Math.cos(g),v=e+f*Math.sin(g);if(Ke(o,r,y,v,n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eL);var n=this._gestureMgr;\\\"start\\\"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(\\\"end\\\"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new yL;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(Xk);y([\\\"click\\\",\\\"mousedown\\\",\\\"mouseup\\\",\\\"mousewheel\\\",\\\"dblclick\\\",\\\"contextmenu\\\"],function(t){xL.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=$e(this,r,o);if(\\\"mouseup\\\"===t&&a||(n=this.findHover(r,o),i=n.target),\\\"mousedown\\\"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if(\\\"mouseup\\\"===t)this._upEl=i;else if(\\\"click\\\"===t){if(this._downEl!==this._upEl||!this._downPoint||Fk(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var _L,bL=32,wL=7,SL=1,ML=2,IL=4,TL=!1,CL=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ln}return t.prototype.traverse=function(t,e){for(var n=0;ni;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,an(n,ln)},t.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 r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s0&&(u.__clipPaths=[]),isNaN(u.z)&&(sn(),u.z=0),isNaN(u.z2)&&(sn(),u.z2=0),isNaN(u.zlevel)&&(sn(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=p(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();_L=uk.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var DL=_L,AL={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)\\n},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.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)<1?.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)<1?.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)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},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)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-AL.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*AL.bounceIn(2*t):.5*AL.bounceOut(2*t-1)+.5}},kL=Math.pow,LL=Math.sqrt,PL=1e-8,OL=1e-4,RL=LL(3),NL=1/3,EL=Q(),zL=Q(),BL=Q(),VL=/cubic-bezier\\\\(([0-9,\\\\.e ]+)\\\\)/,FL=function(){function t(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||J,this.ondestroy=t.ondestroy||J,this.onrestart=t.onrestart||J,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=I(t)?t:AL[t]||In(t)},t}(),GL=function(){function t(t){this.value=t}return t}(),WL=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new GL(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),HL=function(){function t(t){this._list=new WL,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new GL(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),YL={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]},XL=new HL(20),UL=null,ZL=Gn,jL=Wn,qL=(Object.freeze||Object)({parse:En,lift:Vn,toHex:Fn,fastLerp:Gn,fastMapToColor:ZL,lerp:Wn,mapToColor:jL,modifyHSL:Hn,modifyAlpha:Yn,stringify:Xn,lum:Un,random:Zn}),KL=Math.round,$L=1e-4,JL={left:\\\"start\\\",right:\\\"end\\\",center:\\\"middle\\\",middle:\\\"middle\\\"},QL=function(){return uk.hasGlobalWindow&&I(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:\\\"undefined\\\"!=typeof Buffer?function(t){return Buffer.from(t).toString(\\\"base64\\\")}:function(){return null}}(),tP=Array.prototype.slice,eP=0,nP=1,iP=2,rP=3,oP=4,aP=5,sP=6,lP=[0,0,0,0],uP=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=sP,s=e;if(g(e)){var l=_i(e);a=l,(1===l&&!D(e[0])||2===l&&!D(e[0][0]))&&(o=!0)}else if(D(e)&&!E(e))a=eP;else if(T(e))if(isNaN(+e)){var u=En(e);u&&(s=u,a=rP)}else a=eP;else if(O(e)){var c=h({},s);c.colorStops=v(e.colorStops,function(t){return{offset:t.offset,color:En(t.color)}}),oi(e)?a=oP:ai(e)&&(a=aP),s=c}0===r?this.valType=a:(a!==this.valType||a===sP)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=I(n)?n:AL[n]||In(n)),i.push(p),p},t.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,r=n.length,o=n[r-1],a=this.discrete,s=wi(i),l=bi(i),u=0;r>u;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?vi(c,p,i):l&&yi(c.colorStops,p.colorStops))}if(!a&&i!==aP&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,u=0;r>u;u++)i===eP?n[u].additiveValue=n[u].value-d:i===rP?n[u].additiveValue=fi([],n[u].value,d,-1):wi(i)&&(n[u].additiveValue=i===nP?fi([],n[u].value,d,-1):gi([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?\\\"additiveValue\\\":\\\"value\\\",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=s===rP,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var g=r.percent-i.percent,y=0===g?1:d((e-i.percent)/g,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:c?lP:t[h];if(!wi(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>y?i.rawValue:r.rawValue;else if(wi(s))s===nP?pi(m,i[a],r[a],y):di(m,i[a],r[a],y);else if(bi(s)){var x=i[a],_=r[a],b=s===oP;t[h]={type:b?\\\"linear\\\":\\\"radial\\\",x:ci(x.x,_.x,y),y:ci(x.y,_.y,y),colorStops:v(x.colorStops,function(t,e){var n=_.colorStops[e];return{offset:ci(t.offset,n.offset,y),color:xi(pi([],t.color,n.color,y))}}),global:_.global},b?(t[h].x2=ci(x.x2,_.x2,y),t[h].y2=ci(x.y2,_.y2,y)):t[h].r=ci(x.r,_.r,y)}else if(c)pi(m,i[a],r[a],y),o||(t[h]=xi(m));else{var w=ci(i[a],r[a],y);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===eP?t[n]=t[n]+i:e===rP?(En(t[n],lP),fi(lP,lP,i,1),t[n]=xi(lP)):e===nP?fi(t[n],t[n],i,1):e===iP&&gi(t[n],t[n],i,1)},t}(),hP=function(){function t(t,e,n,i){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void a(\\\"Can' use additive animation on looped animation.\\\"):(this._additiveAnimators=i,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,b(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,mi(l),i),this._trackKeys.push(a)}s.addKeyframe(t,mi(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.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;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),cP=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=Si()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger(\\\"frame\\\",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(DL(t),!e._paused&&e.update())}var e=this;this._running=!0,DL(t)},n.prototype.start=function(){this._running||(this._time=Si(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=Si(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=Si()-this._pauseStart,this._paused=!1)},n.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},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new hP(t,e.loop);return this.addAnimator(n),n},n}(Xk),pP=300,dP=uk.domSupported,fP=function(){var t=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"wheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],e=[\\\"touchstart\\\",\\\"touchend\\\",\\\"touchmove\\\"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=v(t,function(t){var e=t.replace(\\\"mouse\\\",\\\"pointer\\\");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:i}}(),gP={mouse:[\\\"mousemove\\\",\\\"mouseup\\\"],pointer:[\\\"pointermove\\\",\\\"pointerup\\\"]},yP=!1,vP=function(){function t(t,e){this.stopPropagation=J,this.stopImmediatePropagation=J,this.preventDefault=J,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mP={mousedown:function(t){t=Le(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger(\\\"mousedown\\\",t)},mousemove:function(t){t=Le(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=Le(this.dom,t),this.__togglePointerCapture(!1),this.trigger(\\\"mouseup\\\",t)},mouseout:function(t){t=Le(this.dom,t);var e=t.toElement||t.relatedTarget;Di(this,e)||(this.__pointerCapturing&&(t.zrEventControl=\\\"no_globalout\\\"),this.trigger(\\\"mouseout\\\",t))},wheel:function(t){yP=!0,t=Le(this.dom,t),this.trigger(\\\"mousewheel\\\",t)},mousewheel:function(t){yP||(t=Le(this.dom,t),this.trigger(\\\"mousewheel\\\",t))},touchstart:function(t){t=Le(this.dom,t),Ti(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,\\\"start\\\"),mP.mousemove.call(this,t),mP.mousedown.call(this,t)},touchmove:function(t){t=Le(this.dom,t),Ti(t),this.handler.processGesture(t,\\\"change\\\"),mP.mousemove.call(this,t)},touchend:function(t){t=Le(this.dom,t),Ti(t),this.handler.processGesture(t,\\\"end\\\"),mP.mouseup.call(this,t),+new Date-+this.__lastTouchMoment1e-10&&OP(t[3]-1)>1e-10?Math.sqrt(OP(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Ri(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=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;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&He(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),NP=[\\\"x\\\",\\\"y\\\",\\\"originX\\\",\\\"originY\\\",\\\"anchorX\\\",\\\"anchorY\\\",\\\"rotation\\\",\\\"scaleX\\\",\\\"scaleY\\\",\\\"skewX\\\",\\\"skewY\\\"],EP={},zP=\\\"__zr_normal__\\\",BP=NP.concat([\\\"ignore\\\"]),VP=m(NP,function(t,e){return t[e]=!0,t},{ignore:!1}),FP={},GP=new dL(0,0,0,0),WP=function(){function t(t){this.id=o(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case\\\"horizontal\\\":e=0;break;case\\\"vertical\\\":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=GP;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(FP,n,u):Wi(FP,n,u),r.x=FP.x,r.y=FP.y,o=FP.align,a=FP.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;\\\"center\\\"===h?(c=.5*u.width,p=.5*u.height):(c=Gi(h[0],u.width),p=Gi(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?\\\"string\\\"==typeof n.position&&n.position.indexOf(\\\"inside\\\")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,(null==y||\\\"auto\\\"===y)&&(y=this.getInsideTextFill()),(null==v||\\\"auto\\\"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,(null==y||\\\"auto\\\"===y)&&(y=this.getOutsideFill()),(null==v||\\\"auto\\\"===v)&&(v=this.getOutsideStroke(y),m=!0)),y=y||\\\"#000\\\",(y!==g.fill||v!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=SL,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return\\\"#fff\\\"},t.prototype.getInsideTextStroke=function(){return\\\"#000\\\"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?TP:IP},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e=\\\"string\\\"==typeof t&&En(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,Xn(e,\\\"rgba\\\")},t.prototype.traverse=function(){},t.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||{},h(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if(\\\"string\\\"==typeof t)this.attrKV(t,e);else if(A(t))for(var n=t,i=b(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(zP,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===zP,o=this.hasState();if(o||!r){var s=this.currentStates,l=this.stateTransition;if(!(p(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!r)return void a(\\\"State \\\"+t+\\\" not exists.\\\");r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,e,n,h),d&&d.useState(t,e,n,h),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~SL),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(\\\",\\\"),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~SL)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=p(i,t),o=p(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Hi(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Hi(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Hi(this,e,n,i),o=0;o=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=p(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=p(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&\\\"canvas\\\"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0&&(this._ux=ZO(n/SP/t)||0,this._uy=ZO(n/SP/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(EO.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ZO(t-this._xi),i=ZO(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(EO.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(EO.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(EO.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),$O[0]=i,$O[1]=r,Bo($O,o),i=$O[0],r=$O[1];var a=r-i;return this.addData(EO.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=XO(r)*n+t,this._yi=UO(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(EO.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(EO.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!KO||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();KO&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;at.length&&(this._expandData(),t=this.data);for(var e=0;e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){VO[0]=VO[1]=GO[0]=GO[1]=Number.MAX_VALUE,FO[0]=FO[1]=WO[0]=WO[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tc;){var p=t[c++],d=1===c;d&&(r=t[c],o=t[c+1],a=r,s=o);var f=-1;switch(p){case EO.M:r=a=t[c++],o=s=t[c++];break;case EO.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(ZO(v)>n||ZO(m)>i||c===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,o=y);break;case EO.C:var x=t[c++],_=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];f=vn(r,o,x,_,g,y,b,w,10),r=b,o=w;break;case EO.Q:var x=t[c++],_=t[c++],g=t[c++],y=t[c++];f=Mn(r,o,x,_,g,y,10),r=g,o=y;break;case EO.A:var S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],D=t[c++],A=D+C;c+=1;{!t[c++]}d&&(a=XO(C)*I+S,s=UO(C)*T+M),f=YO(I,T)*HO(qO,Math.abs(D)),r=XO(A)*I+S,o=UO(A)*T+M;break;case EO.R:a=r=t[c++],s=o=t[c++];var k=t[c++],L=t[c++];f=2*k+2*L;break;case EO.Z:var v=a-r,m=s-o;f=Math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=1>e,m=0,x=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var b=0;y>b;){var w=d[b++],S=1===b;switch(S&&(r=d[b],o=d[b+1],n=r,i=o),w!==EO.L&&_>0&&(t.lineTo(c,p),_=0),w){case EO.M:n=r=d[b++],i=o=d[b++],t.moveTo(r,o);break;case EO.L:a=d[b++],s=d[b++];var M=ZO(a-r),I=ZO(s-o);if(M>f||I>g){if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;t.lineTo(r*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),r=a,o=s,_=0}else{var D=M*M+I*I;D>_&&(c=a,p=s,_=D)}break;case EO.C:var A=d[b++],k=d[b++],L=d[b++],P=d[b++],O=d[b++],R=d[b++];if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;gn(r,A,L,O,C,zO),gn(o,k,P,R,C,BO),t.bezierCurveTo(zO[1],BO[1],zO[2],BO[2],zO[3],BO[3]);break t}m+=T}t.bezierCurveTo(A,k,L,P,O,R),r=O,o=R;break;case EO.Q:var A=d[b++],k=d[b++],L=d[b++],P=d[b++];if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;wn(r,A,L,C,zO),wn(o,k,P,C,BO),t.quadraticCurveTo(zO[1],BO[1],zO[2],BO[2]);break t}m+=T}t.quadraticCurveTo(A,k,L,P),r=L,o=P;break;case EO.A:var N=d[b++],E=d[b++],z=d[b++],B=d[b++],V=d[b++],F=d[b++],G=d[b++],W=!d[b++],H=z>B?z:B,Y=ZO(z-B)>.001,X=V+F,U=!1;if(v){var T=l[x++];m+T>h&&(X=V+F*(h-m)/T,U=!0),m+=T}if(Y&&t.ellipse?t.ellipse(N,E,z,B,G,V,X,W):t.arc(N,E,H,V,X,W),U)break t;S&&(n=XO(V)*z+N,i=UO(V)*B+E),r=XO(X)*z+N,o=UO(X)*B+E;break;case EO.R:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var Z=d[b++],j=d[b++];if(v){var T=l[x++];if(m+T>h){var q=h-m;t.moveTo(a,s),t.lineTo(a+HO(q,Z),s),q-=Z,q>0&&t.lineTo(a+Z,s+HO(q,j)),q-=j,q>0&&t.lineTo(a+YO(Z-q,0),s+j),q-=Z,q>0&&t.lineTo(a,s+YO(j-q,0));break t}m+=T}t.rect(a,s,Z,j);break;case EO.Z:if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;t.lineTo(r*(1-C)+n*C,o*(1-C)+i*C);break t}m+=T}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=EO,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),QO=2*Math.PI,tR=2*Math.PI,eR=JO.CMD,nR=2*Math.PI,iR=1e-4,rR=[-1,-1,-1],oR=[-1,-1],aR=c({fill:\\\"#000\\\",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:\\\"butt\\\",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xO),sR={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},_O.style)},lR=NP.concat([\\\"invisible\\\",\\\"culling\\\",\\\"z\\\",\\\"z2\\\",\\\"zlevel\\\",\\\"parent\\\"]),uR=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?IP:e>.2?CP:TP}if(t)return TP}return IP},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(T(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Un(t,0)0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&\\\"none\\\"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&IL)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Jo(o,a/s,t,e)))return!0}if(this.hasFill())return $o(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=IL,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate(\\\"shape\\\",t)},n.prototype.updateDuringAnimation=function(t){\\\"style\\\"===t?this.dirtyStyle():\\\"shape\\\"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){\\\"shape\\\"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),\\\"string\\\"==typeof t?n[t]=e:h(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&IL)},n.prototype.createStyle=function(t){return q(aR,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=h({},i.shape),h(s,n.shape)):(s=h({},r?this.shape:i.shape),h(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=b(s),p=0;p0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&\\\"none\\\"!==e},n.prototype.createStyle=function(t){return q(hR,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+=\\\"\\\":e=\\\"\\\";var n=zi(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=function(){var t=n.prototype;t.dirtyRectTolerance=10}(),n}(SO);cR.prototype.type=\\\"tspan\\\";var pR=c({x:0,y:0},xO),dR={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},_O.style)},fR=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return q(pR,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Qo(e.image)?e.image:this.__image;if(!i)return 0;var r=\\\"width\\\"===t?\\\"height\\\":\\\"width\\\",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize(\\\"width\\\")},n.prototype.getHeight=function(){return this._getSize(\\\"height\\\")},n.prototype.getAnimationStyleProps=function(){return dR},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new dL(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(SO);fR.prototype.type=\\\"image\\\";var gR=Math.round,yR=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),vR={},mR=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new yR},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=na(vR,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?ta(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(uR);mR.prototype.type=\\\"rect\\\";var xR={fill:\\\"#000\\\"},_R=2,bR={style:c({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},_O.style)},wR=function(t){function n(e){var n=t.call(this)||this;return n.type=\\\"text\\\",n._children=[],n._defaultStyle=xR,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,T=null!=t.width&&(\\\"truncate\\\"===t.overflow||\\\"break\\\"===t.overflow||\\\"breakAll\\\"===t.overflow),C=r.calculatedLineHeight,D=0;DM&&(D=_[M],!D.align||\\\"left\\\"===D.align);)this._placeToken(D,t,w,g,I,\\\"left\\\",v),S-=D.width,I+=D.width,M++;for(;C>=0&&(D=_[C],\\\"right\\\"===D.align);)this._placeToken(D,t,w,g,T,\\\"right\\\",v),S-=D.width,T-=D.width,C--;for(I+=(i-(I-f)-(y-T)-S)/2;C>=M;)D=_[M],this._placeToken(D,t,w,g,I+D.width/2,\\\"center\\\",v),I+=D.width,M++;g+=w}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;\\\"top\\\"===l?u=i+t.height/2:\\\"bottom\\\"===l&&(u=i+n-t.height/2);var h=!t.isLineHolder&&da(s);h&&this._renderBackground(s,e,\\\"right\\\"===o?r-t.width:\\\"center\\\"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(r=ca(r,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(cR),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=ha(\\\"fill\\\"in s?s.fill:\\\"fill\\\"in e?e.fill:(y=!0,g.fill)),x=ua(\\\"stroke\\\"in s?s.stroke:\\\"stroke\\\"in e?e.stroke:c||a||g.autoStroke&&!y?null:(v=_R,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||\\\"transparent\\\",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline=\\\"middle\\\",f.font=t.font||pk,f.opacity=V(s.opacity,e.opacity,1),oa(f,s),x&&(f.lineWidth=V(s.lineWidth,e.lineWidth,v),f.lineDash=B(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),m&&(f.fill=m);var b=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new dL(Bi(f.x,b,f.textAlign),Vi(f.y,w,f.textBaseline),b,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(mR),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=B(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(fR),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=B(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||\\\"transparent\\\",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=V(t.opacity,e.opacity,1)},n.makeFont=function(t){var e=\\\"\\\";return aa(t)&&(e=[t.fontStyle,t.fontWeight,ra(t.fontSize),t.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\")),e&&H(e)||t.textFont||t.font},n}(SO),SR={left:!0,right:1,center:1},MR={top:1,bottom:1,middle:1},IR=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\"],TR=Kr(),CR=function(t,e,n,i){if(i){var r=TR(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,\\\"group\\\"===i.type&&i.traverse(function(i){var r=TR(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e})}},DR=1,AR={},kR=Kr(),LR=Kr(),PR=0,OR=1,RR=2,NR=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],ER=[\\\"normal\\\",\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],zR=10,BR=9,VR=\\\"highlight\\\",FR=\\\"downplay\\\",GR=\\\"select\\\",WR=\\\"unselect\\\",HR=\\\"toggleSelect\\\",YR=new HL(100),XR=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],UR={itemStyle:\\\"getItemStyle\\\",lineStyle:\\\"getLineStyle\\\",areaStyle:\\\"getAreaStyle\\\"},ZR=JO.CMD,jR=[[],[],[]],qR=Math.sqrt,KR=Math.atan2,$R=Math.sqrt,JR=Math.sin,QR=Math.cos,tN=Math.PI,eN=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,nN=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g,iN=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(uR),rN=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),oN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new rN},n.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)},n}(uR);oN.prototype.type=\\\"circle\\\";var aN=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),sN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new aN},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(uR);sN.prototype.type=\\\"ellipse\\\";var lN=Math.PI,uN=2*lN,hN=Math.sin,cN=Math.cos,pN=Math.acos,dN=Math.atan2,fN=Math.abs,gN=Math.sqrt,yN=Math.max,vN=Math.min,mN=1e-4,xN=function(){function t(){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}return t}(),_N=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new xN},n.prototype.buildPath=function(t,e){Ss(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(uR);_N.prototype.type=\\\"sector\\\";var bN=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),wN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new bN},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(uR);wN.prototype.type=\\\"ring\\\";var SN=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),MN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new SN},n.prototype.buildPath=function(t,e){Is(t,e,!0)},n}(uR);MN.prototype.type=\\\"polygon\\\";var IN=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),TN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new IN},n.prototype.buildPath=function(t,e){Is(t,e,!1)},n}(uR);TN.prototype.type=\\\"polyline\\\";var CN={},DN=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),AN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new DN},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ea(CN,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(uR);AN.prototype.type=\\\"line\\\";var kN=[],LN=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),PN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new LN},n.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=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?(1>h&&(wn(n,a,r,h,kN),a=kN[1],r=kN[2],wn(i,s,o,h,kN),s=kN[1],o=kN[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(gn(n,a,l,r,h,kN),a=kN[1],l=kN[2],r=kN[3],gn(i,s,u,o,h,kN),s=kN[1],u=kN[2],o=kN[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return Ts(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=Ts(this.shape,t,!0);return pe(e,e)},n}(uR);PN.prototype.type=\\\"bezier-curve\\\";var ON=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),RN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new ON},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},n}(uR);RN.prototype.type=\\\"arc\\\";var NN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"compound\\\",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;nn;n++)this._corners[n]=new rL;for(var n=0;2>n;n++)this._axes[n]=new rL;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);rL.sub(i[0],n[1],n[0]),rL.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return GN.set(1/0,1/0),WN.set(0,0),!this._intersectCheckOneSide(this,t,GN,WN,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,GN,WN,i,-1)&&(n=!1,i)?n:(i||rL.copy(e,n?GN:WN),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,VN),this._getProjMinMaxOnAxis(s,e._corners,FN),VN[1]FN[1]){if(a=!1,r)return a;var u=Math.abs(FN[0]-VN[1]),h=Math.abs(VN[0]-FN[1]);Math.min(u,h)>i.len()&&(h>u?rL.scale(i,l,-u*o):rL.scale(i,l,h*o))}else if(n){var u=Math.abs(FN[0]-VN[1]),h=Math.abs(VN[0]-FN[1]);Math.min(u,h)u?rL.scale(n,l,u*o):rL.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l-1?xE:bE}():bE;Ml(_E,vE),Ml(xE,mE);var IE=1e3,TE=60*IE,CE=60*TE,DE=24*CE,AE=365*DE,kE={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}\\\"},LE=\\\"{yyyy}-{MM}-{dd}\\\",PE={year:\\\"{yyyy}\\\",month:\\\"{yyyy}-{MM}\\\",day:LE,hour:LE+\\\" \\\"+kE.hour,minute:LE+\\\" \\\"+kE.minute,second:LE+\\\" \\\"+kE.second,millisecond:kE.none},OE=[\\\"year\\\",\\\"month\\\",\\\"day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"],RE=[\\\"year\\\",\\\"half-year\\\",\\\"quarter\\\",\\\"month\\\",\\\"week\\\",\\\"half-week\\\",\\\"day\\\",\\\"half-day\\\",\\\"quarter-day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"],NE=G,EE=[\\\"a\\\",\\\"b\\\",\\\"c\\\",\\\"d\\\",\\\"e\\\",\\\"f\\\",\\\"g\\\"],zE=function(t,e){return\\\"{\\\"+t+(null==e?\\\"\\\":e)+\\\"}\\\"},BE=y,VE=[\\\"left\\\",\\\"right\\\",\\\"top\\\",\\\"bottom\\\",\\\"width\\\",\\\"height\\\"],FE=[[\\\"width\\\",\\\"left\\\",\\\"right\\\"],[\\\"height\\\",\\\"top\\\",\\\"bottom\\\"]],GE=su,WE=(S(su,\\\"vertical\\\"),S(su,\\\"horizontal\\\"),Kr()),HE=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=_l(\\\"ec_cpt_model\\\"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=pu(this),i=n?fu(t):{},r=e.getTheme();l(t,r.get(this.mainType)),l(t,this.getDefaultOption()),n&&du(t,i,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=pu(this);e&&du(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!so(t))return t.defaultOption;var e=WE(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+\\\"Index\\\",i=t+\\\"Id\\\";return Qr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get(\\\"left\\\"),top:t.get(\\\"top\\\"),right:t.get(\\\"right\\\"),bottom:t.get(\\\"bottom\\\"),width:t.get(\\\"width\\\"),height:t.get(\\\"height\\\")}},n.prototype.getZLevelKey=function(){return\\\"\\\"},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type=\\\"component\\\",t.id=\\\"\\\",t.name=\\\"\\\",t.mainType=\\\"\\\",t.subType=\\\"\\\",t.componentIndex=0}(),n}(gE);ho(HE,gE),go(HE),bl(HE),wl(HE,yu);var YE=\\\"\\\";\\\"undefined\\\"!=typeof navigator&&(YE=navigator.platform||\\\"\\\");var XE,UE,ZE=\\\"rgba(0, 0, 0, 0.2)\\\",jE={darkMode:\\\"auto\\\",colorBy:\\\"series\\\",color:[\\\"#5470c6\\\",\\\"#91cc75\\\",\\\"#fac858\\\",\\\"#ee6666\\\",\\\"#73c0de\\\",\\\"#3ba272\\\",\\\"#fc8452\\\",\\\"#9a60b4\\\",\\\"#ea7ccc\\\"],gradientColor:[\\\"#f6efa6\\\",\\\"#d88273\\\",\\\"#bf444c\\\"],aria:{decal:{decals:[{color:ZE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ZE,symbol:\\\"circle\\\",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ZE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ZE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ZE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ZE,symbol:\\\"triangle\\\",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:YE.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},qE=Z([\\\"tooltip\\\",\\\"label\\\",\\\"itemName\\\",\\\"itemId\\\",\\\"itemGroupId\\\",\\\"seriesName\\\"]),KE=\\\"original\\\",$E=\\\"arrayRows\\\",JE=\\\"objectRows\\\",QE=\\\"keyedColumns\\\",tz=\\\"typedArray\\\",ez=\\\"unknown\\\",nz=\\\"column\\\",iz=\\\"row\\\",rz={Must:1,Might:2,Not:3},oz=Kr(),az=Z(),sz=Kr(),lz=Kr(),uz=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Ar(this.get(\\\"color\\\",!0)),r=this.get(\\\"colorLayer\\\",!0);return Du(this,sz,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Au(this,sz)},t}(),hz=\\\"\\\\x00_ec_inner\\\",cz=1,pz=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new gE(i),this._locale=new gE(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=Ru(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Ru(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||\\\"recreate\\\"===t){var r=i.mountOption(\\\"recreate\\\"===t);this.option&&\\\"recreate\\\"!==t?(this.restoreData(),this._mergeOption(r,e)):UE(this,r),n=!0}if((\\\"timeline\\\"===t||\\\"media\\\"===t)&&this.restoreData(),!t||\\\"recreate\\\"===t||\\\"timeline\\\"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||\\\"recreate\\\"===t||\\\"media\\\"===t){var a=i.getMediaOption(this);a.length&&y(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Iu(this,e,Ar(t[e])),a=r.get(e),s=a?c&&c.get(e)?\\\"replaceMerge\\\":\\\"normalMerge\\\":\\\"replaceAll\\\",l=Or(a,n,s);Ur(l,e,HE),i[e]=null,r.set(e,null),o.set(e,0);var u,p=[],d=[],f=0;y(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o=\\\"series\\\"===e,a=HE.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(\\\"tooltip\\\"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=h({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),h(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))},this),i[e]=p,r.set(e,d),o.set(e,f),\\\"series\\\"===e&&XE(this)}var i=this.option,r=this._componentsMap,o=this._componentsCount,a=[],u=Z(),c=e&&e.replaceMergeMainTypeMap;vu(this),y(t,function(t,e){null!=t&&(HE.hasClass(e)?e&&(a.push(e),u.set(e,!0)):i[e]=null==i[e]?s(t):l(i[e],t,!0))}),c&&c.each(function(t,e){HE.hasClass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),HE.topologicalTravel(a,HE.getAllClassMainTypes(),n,this),this._seriesIndices||XE(this)},n.prototype.getOption=function(){var t=s(this.option);return y(t,function(e,n){if(HE.hasClass(n)){for(var i=Ar(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Yr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[hz],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.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 r=0;ra;a++)Eu(n[a].query,t,e)&&r.push(a);return!r.length&&i&&(r=[-1]),r.length&&!Bu(r,this._currentMediaIndices)&&(o=v(r,function(t){return s(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,o},t}(),Iz=y,Tz=A,Cz=[\\\"areaStyle\\\",\\\"lineStyle\\\",\\\"nodeStyle\\\",\\\"linkStyle\\\",\\\"chordStyle\\\",\\\"label\\\",\\\"labelLine\\\"],Dz=[[\\\"x\\\",\\\"left\\\"],[\\\"y\\\",\\\"top\\\"],[\\\"x2\\\",\\\"right\\\"],[\\\"y2\\\",\\\"bottom\\\"]],Az=[\\\"grid\\\",\\\"geo\\\",\\\"parallel\\\",\\\"legend\\\",\\\"toolbox\\\",\\\"title\\\",\\\"visualMap\\\",\\\"dataZoom\\\",\\\"timeline\\\"],kz=[[\\\"borderRadius\\\",\\\"barBorderRadius\\\"],[\\\"borderColor\\\",\\\"barBorderColor\\\"],[\\\"borderWidth\\\",\\\"barBorderWidth\\\"]],Lz=function(){function t(t){this.data=t.data||(t.sourceFormat===QE?{}:[]),this.sourceFormat=t.sourceFormat||ez,this.seriesLayoutBy=t.seriesLayoutBy||nz,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;no;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;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;h>p;p++){var d=r[p*o+a];c[t+p]=d,l>d&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[$E+\\\"_\\\"+nz]={pure:!0,appendData:t},e[$E+\\\"_\\\"+iz]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: \\\"row\\\".')}},e[JE]={pure:!0,appendData:t},e[QE]={pure:!0,appendData:function(t){var e=this._data;y(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[KE]={appendData:t},e[tz]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},yz=e}(),t}(),Oz=function(t,e,n,i){return t[i]},Rz=(dz={},dz[$E+\\\"_\\\"+nz]=function(t,e,n,i){return t[i+e]},dz[$E+\\\"_\\\"+iz]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s=0&&(s=o.interpolatedValue[l])}return null!=s?s+\\\"\\\":\\\"\\\"})}},t.prototype.getRawValue=function(t,e){return xh(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),Gz=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o=\\\"reset\\\");var h;(this._dirty||\\\"reset\\\"===o)&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||d>p)){var f=this._progress;if(M(f))for(var g=0;gi?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),Hz=(Z({number:function(t){return parseFloat(t)},time:function(t){return+yr(t)},trim:function(t){return T(t)?H(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),Yz=(function(){function t(t,e){if(!D(e)){var n=\\\"\\\";Cr(n)}this._opFn=Hz[t],this._rvalFloat=wr(e)}return t.prototype.evaluate=function(t){return D(t)?this._opFn(t,this._rvalFloat):this._opFn(wr(t),this._rvalFloat)},t}(),function(){function t(t,e){var n=\\\"desc\\\"===t;this._resultLT=n?1:-1,null==e&&(e=n?\\\"min\\\":\\\"max\\\"),this._incomparable=\\\"min\\\"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=D(t)?t:wr(t),i=D(e)?e:wr(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=T(t),s=T(e);a&&(n=s?t:0),s&&(i=a?e:0)}return i>n?this._resultLT:n>i?-this._resultLT:0},t}()),Xz=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=wr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||\\\"number\\\"!==n&&\\\"number\\\"!==this._rvalTypeof||(e=wr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error(\\\"not supported\\\")},t.prototype.getRawDataItem=function(){throw new Error(\\\"not supported\\\")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return wh(t,e)},t}()),Uz=Z(),Zz=\\\"undefined\\\",jz=typeof Uint32Array===Zz?Array:Uint32Array,qz=typeof Uint16Array===Zz?Array:Uint16Array,Kz=typeof Int32Array===Zz?Array:Int32Array,$z=typeof Float64Array===Zz?Array:Float64Array,Jz={\\\"float\\\":$z,\\\"int\\\":Kz,ordinal:Array,number:Array,time:$z},Qz=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=mz[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];fh(i);this._dimensions=v(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Jz[e||\\\"float\\\"](this._rawCount),this._rawExtent[r]=Oh(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=Oh());for(var s=r[t],l=o;a>l;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\\\"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];Nh(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,d=0;r>d;d++){var u=i[d],f=mz.arrayRows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=o[d];fg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=v(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=Oh()),Nh(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=i.getItem(p,c);for(var d=0;a>d;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d);f[p]=g;var y=s[d];gy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&er;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&ei;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=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},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n=i;){var o=(i+r)/2|0;if(e[o]t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],d=Math.abs(p);n>=d&&((a>d||d===a&&p>=0&&0>s)&&(a=d,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=Ph(this._rawCount);t=new n(this.count());for(var r=0;rc;c++){var p=void 0,d=n.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var f=h[u][d];p=e(f,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][d];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=d)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=b(t),r=i.length;if(!r)return this;var o=e.count(),a=Ph(e._rawCount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var g=p[i[0]],y=0;n>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=f),f++}d=!0}else if(2===r){for(var g=p[i[0]],m=p[i[1]],x=t[i[1]][0],_=t[i[1]][1],y=0;n>y;y++){var v=g[y],w=m[y];(v>=h&&c>=v||isNaN(v))&&(w>=x&&_>=w||isNaN(w))&&(s[l++]=f),f++}d=!0}}if(!d)if(1===r)for(var y=0;o>y;y++){var S=e.getRawIndex(y),v=p[i[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var M=!0,S=e.getRawIndex(y),I=0;r>I;I++){var T=i[I],v=p[T][S];(vt[T][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;uh;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){\\\"object\\\"!=typeof d&&(r[0]=d,d=r);for(var u=0;uy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Ph(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;l-1>d;d+=h){for(var f=Math.min(d+h,l-1),g=Math.min(d+2*h,l),y=(g+f)/2,v=0,m=f;g>m;m++){var x=this.getRawIndex(m),_=s[x];isNaN(_)||(v+=_)}v/=g-f;var b=d,w=Math.min(d+h,l),S=d-1,M=s[c];n=-1,r=b;for(var I=-1,T=0,m=b;w>m;m++){var x=this.getRawIndex(m),_=s[x];isNaN(_)?(T++,0>I&&(I=x)):(i=Math.abs((S-y)*(_-M)-(S-m)*(v-M)),i>n&&(n=i,r=x))}T>0&&w-b>T&&(p[u++]=Math.min(I,r),r=Math.max(I,r)),p[u++]=r,c=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Oh(),c=new(Ph(this._rawCount))(Math.ceil(u/s)),p=0,d=0;u>d;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;s>f;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));l[v]=y,yh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Oh();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var a=i[0],s=i[1],l=0;r>l;l++){var u=this.getRawIndex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;ri;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return wh(t[i],this._dimensions[i])}mz={arrayRows:t,objectRows:function(t,e,n,i){return wh(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return wh(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),tB=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+\\\"_\\\"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(zh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get(\\\"data\\\",!0),s=L(a)?tz:KE,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=B(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=B(h.sourceHeader,c.sourceHeader),f=B(h.dimensions,c.dimensions),g=p!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||f;t=g?[ah(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var y=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{var m=y.get(\\\"source\\\",!0);t=[ah(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get(\\\"transform\\\",!0),i=e.get(\\\"fromTransformResult\\\",!0);if(null!=i){var r=\\\"\\\";1!==t.length&&Bh(r)}var o,a=[],s=[];return y(t,function(t){t.prepareSource();var e=t.getSource(i||0),n=\\\"\\\";null==i||e||Bh(n),a.push(e),s.push(t._getVersionSign())}),n?o=Ah(n,a,{datasetIndex:e.componentIndex}):null!=i&&(o=[lh(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;ethis.getShallow(\\\"animationThreshold\\\")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=uz.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get(\\\"progressive\\\")},n.prototype.getProgressiveThreshold=function(){return this.get(\\\"progressiveThreshold\\\")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if(\\\"series\\\"===i||\\\"all\\\"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return(\\\"all\\\"===n||n[ic(i,t)])&&!i.getItemModel(t).get([\\\"select\\\",\\\"disabled\\\"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[aB])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if(\\\"series\\\"===o)r.selectedMap=\\\"all\\\";else if(\\\"multiple\\\"===o){A(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=ic(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if(\\\"single\\\"===o||o===!0){var c=e[a-1],h=ic(t,c);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(c),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);\\ni&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return HE.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type=\\\"series.__base__\\\",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol=\\\"circle\\\",t.visualStyleAccessPath=\\\"itemStyle\\\",t.visualDrawType=\\\"fill\\\"}(),n}(HE);f(sB,Fz),f(sB,uz),ho(sB,HE);var lB=function(){function t(){this.group=new HP,this.uid=_l(\\\"viewComponent\\\")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();lo(lB),go(lB);var uB=Kr(),hB=pc(),cB=function(){function t(){this.group=new HP,this.uid=_l(\\\"viewChart\\\"),this.renderTask=bh({plan:gc,reset:yc}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&fc(r,i,\\\"emphasis\\\")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&fc(r,i,\\\"normal\\\")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){sl(this.group,t)},t.markUpdateMethod=function(t,e){uB(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type=\\\"chart\\\"}(),t}();lo(cB,[\\\"dispose\\\"]),go(cB);var pB,dB={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)}}},fB=\\\"\\\\x00__throttleOriginMethod\\\",gB=\\\"\\\\x00__throttleRate\\\",yB=\\\"\\\\x00__throttleType\\\",vB=Kr(),mB={itemStyle:yo(pE,!0),lineStyle:yo(uE,!0)},xB={lineStyle:\\\"stroke\\\",itemStyle:\\\"fill\\\"},_B={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||\\\"itemStyle\\\",r=t.getModel(i),o=_c(t,i),a=o(r),s=r.getShallow(\\\"decal\\\");s&&(n.setVisual(\\\"decal\\\",s),s.dirty=!0);var l=bc(t,i),u=a[l],c=I(u)?u:null,p=\\\"auto\\\"===a.fill||\\\"auto\\\"===a.stroke;if(!a[l]||c||p){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual(\\\"colorFromPalette\\\",!0)),a.fill=\\\"auto\\\"===a.fill||I(a.fill)?d:a.fill,a.stroke=\\\"auto\\\"===a.stroke||I(a.stroke)?d:a.stroke}return n.setVisual(\\\"style\\\",a),n.setVisual(\\\"drawType\\\",l),!e.isSeriesFiltered(t)&&c?(n.setVisual(\\\"colorFromPalette\\\",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=h({},a);r[l]=c(i),e.setItemVisual(n,\\\"style\\\",r)}}):void 0}},bB=new gE,wB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||\\\"itemStyle\\\",r=_c(t,i),o=n.getVisual(\\\"drawType\\\");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){bB.option=n[i];var a=r(bB),s=t.ensureUniqueItemVisual(e,\\\"style\\\");h(s,a),bB.option.decal&&(t.setItemVisual(e,\\\"decal\\\",bB.option.decal),bB.option.decal.dirty=!0),o in a&&t.setItemVisual(e,\\\"colorFromPalette\\\",!1)}}:null}}}},SB={performRawSeries:!0,overallReset:function(t){var e=Z();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+\\\"-\\\"+n,r=e.get(i);r||(r={},e.set(i,r)),vB(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=vB(e).scope,a=e.visualStyleAccessPath||\\\"itemStyle\\\",s=bc(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t],l=r.getItemVisual(a,\\\"colorFromPalette\\\");if(l){var u=r.ensureUniqueItemVisual(a,\\\"style\\\"),h=n.getName(t)||t+\\\"\\\",c=n.count();u[s]=e.getColorFromPalette(h,o,c)}})}})}},MB=Math.PI,IB=function(){function t(t,e,n,i){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get(\\\"large\\\")&&r>=t.get(\\\"largeThreshold\\\"),s=\\\"mod\\\"===t.get(\\\"progressiveChunkMode\\\")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Z();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;y(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o=\\\"\\\";W(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;y(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,i.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){\\\"remain\\\"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||bh({plan:Cc,reset:Dc,count:kc}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Z(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,bh({reset:Mc,onDirty:Tc})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||bh({reset:Sc});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Z(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1,d=\\\"\\\";W(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,r):h?h(n,i).each(r):(c=!1,y(n.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return I(t)&&(t={overallReset:t,seriesType:Lc(t)}),t.uid=_l(\\\"stageHandler\\\"),e&&(t.visualType=e),t},t}(),TB=Ac(0),CB={},DB={};Pc(CB,pz),Pc(DB,_z),CB.eachSeriesByType=CB.eachRawSeriesByType=function(t){pB=t},CB.eachComponent=function(t){\\\"series\\\"===t.mainType&&t.subType&&(pB=t.subType)};var AB=[\\\"#37A2DA\\\",\\\"#32C5E9\\\",\\\"#67E0E3\\\",\\\"#9FE6B8\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#fb7293\\\",\\\"#E062AE\\\",\\\"#E690D1\\\",\\\"#e7bcf3\\\",\\\"#9d96f5\\\",\\\"#8378EA\\\",\\\"#96BFFF\\\"],kB={color:AB,colorLayer:[[\\\"#37A2DA\\\",\\\"#ffd85c\\\",\\\"#fd7b5f\\\"],[\\\"#37A2DA\\\",\\\"#67E0E3\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#E062AE\\\",\\\"#9d96f5\\\"],[\\\"#37A2DA\\\",\\\"#32C5E9\\\",\\\"#9FE6B8\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#fb7293\\\",\\\"#e7bcf3\\\",\\\"#8378EA\\\",\\\"#96BFFF\\\"],AB]},LB=\\\"#B9B8CE\\\",PB=\\\"#100C2A\\\",OB=function(){return{axisLine:{lineStyle:{color:LB}},splitLine:{lineStyle:{color:\\\"#484753\\\"}},splitArea:{areaStyle:{color:[\\\"rgba(255,255,255,0.02)\\\",\\\"rgba(255,255,255,0.05)\\\"]}},minorSplitLine:{lineStyle:{color:\\\"#20203B\\\"}}}},RB=[\\\"#4992ff\\\",\\\"#7cffb2\\\",\\\"#fddd60\\\",\\\"#ff6e76\\\",\\\"#58d9f9\\\",\\\"#05c091\\\",\\\"#ff8a45\\\",\\\"#8d48e3\\\",\\\"#dd79ff\\\"],NB={darkMode:!0,color:RB,backgroundColor:PB,axisPointer:{lineStyle:{color:\\\"#817f91\\\"},crossStyle:{color:\\\"#817f91\\\"},label:{color:\\\"#fff\\\"}},legend:{textStyle:{color:LB}},textStyle:{color:LB},title:{textStyle:{color:\\\"#EEF1FA\\\"},subtextStyle:{color:\\\"#B9B8CE\\\"}},toolbox:{iconStyle:{borderColor:LB}},dataZoom:{borderColor:\\\"#71708A\\\",textStyle:{color:LB},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:LB}},timeline:{lineStyle:{color:LB},label:{color:LB},controlStyle:{color:LB,borderColor:LB}},calendar:{itemStyle:{color:PB},dayLabel:{color:LB},monthLabel:{color:LB},yearLabel:{color:LB}},timeAxis:OB(),logAxis:OB(),valueAxis:OB(),categoryAxis:OB(),line:{symbol:\\\"circle\\\"},graph:{color:RB},gauge:{title:{color:LB},axisLine:{lineStyle:{color:[[1,\\\"rgba(207,212,219,0.2)\\\"]]}},axisLabel:{color:LB},detail:{color:\\\"#EEF1FA\\\"}},candlestick:{itemStyle:{color:\\\"#f64e56\\\",color0:\\\"#54ea92\\\",borderColor:\\\"#f64e56\\\",borderColor0:\\\"#54ea92\\\"}}};NB.categoryAxis.splitLine.show=!1;var EB=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(T(t)){var r=oo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=[\\\"Index\\\",\\\"Name\\\",\\\"Id\\\"],a={name:1,dataIndex:1,dataType:1};y(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);\\\"data\\\"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,\\\"mainType\\\")&&n(l,a,\\\"subType\\\")&&n(l,a,\\\"index\\\",\\\"componentIndex\\\")&&n(l,a,\\\"name\\\")&&n(l,a,\\\"id\\\")&&n(u,o,\\\"name\\\")&&n(u,o,\\\"dataIndex\\\")&&n(u,o,\\\"dataType\\\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),zB=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolRotate\\\",\\\"symbolOffset\\\"],BB=zB.concat([\\\"symbolKeepAspect\\\"]),VB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[AV]&&!this._disposed){var i,r,o;if(A(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[AV]=!0,!this._model||e){var a=new Mz(this._api),s=this._theme,l=this._model=new pz;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},uF);var u={seriesTransition:o,optionChanged:!0};if(n)this[kV]={silent:i,updateParams:u},this[AV]=!1,this.getZr().wakeUp();else{try{VV(this),WV.update.call(this,null,u)}catch(h){throw this[kV]=null,this[AV]=!1,h}this._ssr||this._zr.flush(),this[kV]=null,this[AV]=!1,UV.call(this,i),ZV.call(this,i)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||uk.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get(\\\"backgroundColor\\\"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(uk.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return y(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;y(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=\\\"svg\\\"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL(\\\"image/\\\"+(t&&t.type||\\\"png\\\"));return y(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e=\\\"svg\\\"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(fF[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();y(dF,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(s(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),l=i(d.top,l),u=r(d.right,u),h=r(d.bottom,h),c.push({dom:p,left:d.left,top:d.top})}}),a*=p,l*=p,u*=p,h*=p;var d=u-a,f=h-l,g=vk.createCanvas(),v=Ji(g,{renderer:e?\\\"svg\\\":\\\"canvas\\\"});if(v.resize({width:d,height:f}),e){var m=\\\"\\\";return y(c,function(t){var e=t.left-a,n=t.top-l;m+=''+t.dom+\\\"\\\"}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new mR({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),y(c,function(t){var e=new fR({style:{x:t.left*p-a,y:t.top*p-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL(\\\"image/\\\"+(t&&t.type||\\\"png\\\"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return HV(this,\\\"convertToPixel\\\",t,e)},n.prototype.convertFromPixel=function(t,e){return HV(this,\\\"convertFromPixel\\\",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=$r(i,t);return y(r,function(t,i){i.indexOf(\\\"Models\\\")>=0&&y(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if(\\\"seriesModels\\\"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,i=$r(n,t,{defaultMainType:\\\"series\\\"}),r=i.seriesModel,o=r.getData(),a=i.hasOwnProperty(\\\"dataIndexInside\\\")?i.dataIndexInside:i.hasOwnProperty(\\\"dataIndex\\\")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Oc(o,a,e):Rc(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;y(oF,function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a=\\\"globalout\\\"===e;if(a?i={}:o&&Vc(o,function(t){var e=TR(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}return e.eventData?(i=h({},e.eventData),!0):void 0},!0),i){var s=i.componentType,l=i.componentIndex;(\\\"markLine\\\"===s||\\\"markPoint\\\"===s||\\\"markArea\\\"===s)&&(s=\\\"series\\\",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t[\\\"series\\\"===u.mainType?\\\"_chartsMap\\\":\\\"_componentsMap\\\"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),y(sF,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),y([\\\"selectchanged\\\"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),Bc(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.getDom();t&&to(this.getDom(),vF,\\\"\\\");var e=this,n=e._api,i=e._model;y(e._componentsViews,function(t){t.dispose(i,n)}),y(e._chartsViews,function(t){t.dispose(i,n)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete dF[e.id]}},n.prototype.resize=function(t){if(!this[AV]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption(\\\"media\\\"),i=t&&t.silent;this[kV]&&(null==i&&(i=this[kV].silent),n=!0,this[kV]=null),this[AV]=!0;try{n&&VV(this),WV.update.call(this,{type:\\\"resize\\\",animation:h({duration:0},t&&t.animation)})}catch(r){throw this[AV]=!1,r}this[AV]=!1,UV.call(this,i),ZV.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(A(t)&&(e=t,t=\\\"\\\"),t=t||\\\"default\\\",this.hideLoading(),pF[t])){var n=pF[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=h({},t);return e.type=sF[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(A(e)||(e={silent:!!e}),aF[t.type]&&this._model)){if(this[AV])return void this._pendingActions.push(t);var n=e.silent;XV.call(this,t,n);var i=e.flush;i?this._zr.flush():i!==!1&&uk.browser.weChat&&this._throttledZrFlush(),UV.call(this,n),ZV.call(this,n)}},n.prototype.updateLabelLayout=function(){lV.trigger(\\\"series:layoutlabels\\\",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get(\\\"zlevel\\\")||0,a=r.get(\\\"z\\\")||0,s=r.getZLevelKey();i=i||!!s,(\\\"series\\\"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);an(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),y(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=\\\"\\\"),r=i,n.setZLevel(i)})}}function i(t){for(var e=[],n=t.currentStates,i=0;ie.get(\\\"hoverLayerThreshold\\\")&&!uk.node&&!uk.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get(\\\"blendMode\\\")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get(\\\"z\\\")||0,i=t.get(\\\"zlevel\\\")||0;e.eachRendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:n.get(\\\"delay\\\"),easing:n.get(\\\"easing\\\")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(Ls(t))return;if(t instanceof uR&&ls(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}})}VV=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),FV(t,!0),FV(t,!1),e.plan()},FV=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u=\\\"_ec_\\\"+t.id+\\\"_\\\"+t.type,h=!n&&a[u];if(!h){var c=oo(t.type),p=e?lB.getClass(c.main,c.sub):cB.getClass(c.sub);h=new p,h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,\\\"_oldKeyGetter\\\"),this._initIndexMap(e,i,o,\\\"_newKeyGetter\\\");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)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(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;oo;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\\\\`/g,\\\"`1\\\").replace(/\\\\$/g,\\\"`2\\\"):s),i+=\\\"$\\\",i+=OF[l]||\\\"f\\\",u&&(i+=u.uid),i+=\\\"$\\\"}var p=this.source,d=[p.seriesLayoutBy,p.startIndex,i].join(\\\"$$\\\");return{dimensions:r,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-i;this._nameList[a]=e[s],o&&CF(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===KE;if(s&&!i.pure)for(var l=[],u=t;e>u;u++){var h=i.getItem(u,l);if(!this.hasItemOption&&Pr(h)&&(this.hasItemOption=!0),h){var c=h.name;null==r[u]&&null!=c&&(r[u]=Wr(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=Wr(p,null))}}if(this._shouldMakeIdFromName())for(var u=t;e>u;u++)CF(this,u);bF(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){NF(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=SF(this,this._nameDimIdx,e)),null==n&&(n=\\\"\\\"),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return wF(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return M(t)?i.getValues(EF(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?VF:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){I(t)&&(n=e,e=t,t=[]);var i=n||this,r=EF(MF(t),this._getStoreDimIndex,this);this._store.each(r,i?Lk(e,i):e)},t.prototype.filterSelf=function(t,e,n){I(t)&&(n=e,e=t,t=[]);var i=n||this,r=EF(MF(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Lk(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=b(t),r=[];return y(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){I(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=EF(MF(t),this._getStoreDimIndex,this),a=TF(this);return a._store=this._store.map(o,r?Lk(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=EF(MF(t),this._getStoreDimIndex,this);this._store.modify(o,r?Lk(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=TF(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=TF(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new gE(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new AF(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return wF(t,e)},function(t){return wF(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},NF(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),M(r)?r=r.slice():NF(r)&&(r=h({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,NF(e)?h(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){NF(t)?h(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;CR(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){y(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:EF(this.dimensions,this._getDimInfo,this),this.hostModel)),IF(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];I(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(F(arguments)))})},t.internalField=function(){bF=function(t){var e=t._invertedIndicesMap;y(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new zF(o.categories.length);for(var s=0;s1&&(s+=\\\"__ec__\\\"+u),i[e]=s}}}(),t}(),HF=function(){function t(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return t}(),YF={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents(\\\"xAxis\\\",iO).models[0],o=t.getReferringComponents(\\\"yAxis\\\",iO).models[0];e.coordSysDims=[\\\"x\\\",\\\"y\\\"],n.set(\\\"x\\\",r),n.set(\\\"y\\\",o),yd(r)&&(i.set(\\\"x\\\",r),e.firstCategoryDimIndex=0),yd(o)&&(i.set(\\\"y\\\",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents(\\\"singleAxis\\\",iO).models[0];e.coordSysDims=[\\\"single\\\"],n.set(\\\"single\\\",r),yd(r)&&(i.set(\\\"single\\\",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents(\\\"polar\\\",iO).models[0],o=r.findAxisModel(\\\"radiusAxis\\\"),a=r.findAxisModel(\\\"angleAxis\\\");e.coordSysDims=[\\\"radius\\\",\\\"angle\\\"],n.set(\\\"radius\\\",o),n.set(\\\"angle\\\",a),yd(o)&&(i.set(\\\"radius\\\",o),e.firstCategoryDimIndex=0),yd(a)&&(i.set(\\\"angle\\\",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=[\\\"lng\\\",\\\"lat\\\"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\")),a=e.coordSysDims=o.dimensions.slice();y(o.parallelAxisIndex,function(t,o){var s=r.getComponent(\\\"parallelAxis\\\",t),l=a[o];n.set(l,s),yd(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},XF=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();go(XF);var UF=0,ZF=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++UF}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&v(i,Td);return new t({categories:r,needCollect:!r,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!T(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},t}(),jF=function(t){function n(e){var n=t.call(this,e)||this;n.type=\\\"ordinal\\\";var i=n.getSetting(\\\"ordinalMeta\\\");return i||(i=new ZF({})),M(i)&&(i=new ZF({categories:v(i,function(t){return A(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting(\\\"extent\\\")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?0/0:T(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Od(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Rd(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(Nd(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type=\\\"ordinal\\\",n}(XF);XF.registerClass(jF);var qF=ar,KF=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"interval\\\",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Od(t,this._extent)},n.prototype.normalize=function(t){return Rd(t,this._extent)},n.prototype.scale=function(t){return Nd(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=kd(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[];var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&o.push(t?{value:qF(l+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;rs;){var c=qF(a.value+(s+1)*h);c>i[0]&&cr&&(r=-r,i.reverse());var o=Dd(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=qF(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=qF(Math.ceil(e[1]/r)*r))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type=\\\"interval\\\",n}(XF);XF.registerClass(KF);var $F=\\\"undefined\\\"!=typeof Float32Array,JF=$F?Float32Array:Array,QF=\\\"__ec_stack_\\\",tG=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]n&&(this._approxInterval=n);var o=nG.length,a=Math.min(tG(nG,this._approxInterval,0,o),o-1);this._interval=nG[a][1],this._minLevelUnit=nG[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return D(t)?t:+yr(t)},n.prototype.contain=function(t){return Od(this.parse(t),this._extent)},n.prototype.normalize=function(t){return Rd(this.parse(t),this._extent)},n.prototype.scale=function(t){return Nd(t,this._extent)},n.type=\\\"time\\\",n}(KF),nG=[[\\\"second\\\",IE],[\\\"minute\\\",TE],[\\\"hour\\\",CE],[\\\"quarter-day\\\",6*CE],[\\\"half-day\\\",12*CE],[\\\"day\\\",1.2*DE],[\\\"half-week\\\",3.5*DE],[\\\"week\\\",7*DE],[\\\"month\\\",31*DE],[\\\"quarter\\\",95*DE],[\\\"half-year\\\",AE/2],[\\\"year\\\",AE]];XF.registerClass(eG);var iG=XF.prototype,rG=KF.prototype,oG=ar,aG=Math.floor,sG=Math.ceil,lG=Math.pow,uG=Math.log,hG=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"log\\\",e.base=10,e._originalScale=new KF,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=rG.getTicks.call(this,t);return v(r,function(t){var e=t.value,r=ar(lG(this.base,e));return r=e===n[0]&&this._fixMin?of(r,i[0]):r,r=e===n[1]&&this._fixMax?of(r,i[1]):r,{value:r}},this)},n.prototype.setExtent=function(t,e){var n=uG(this.base);t=uG(Math.max(0,t))/n,e=uG(Math.max(0,e))/n,rG.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=iG.getExtent.call(this);e[0]=lG(t,e[0]),e[1]=lG(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=of(e[0],i[0])),this._fixMax&&(e[1]=of(e[1],i[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=uG(t[0])/uG(e),t[1]=uG(t[1])/uG(e),iG.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=vr(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[ar(sG(e[0]/i)*i),ar(aG(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){rG.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=uG(t)/uG(this.base),Od(t,this._extent)},n.prototype.normalize=function(t){return t=uG(t)/uG(this.base),Rd(t,this._extent)},n.prototype.scale=function(t){return t=Nd(t,this._extent),lG(this.base,t)},n.type=\\\"log\\\",n}(XF),cG=hG.prototype;cG.getMinorTicks=rG.getMinorTicks,cG.getLabel=rG.getLabel,XF.registerClass(hG);var pG=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[fG[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=dG[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),dG={min:\\\"_determinedMin\\\",max:\\\"_determinedMax\\\"},fG={min:\\\"_dataMin\\\",max:\\\"_dataMax\\\"},gG=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),yG={isDimensionStacked:xd,enableDataStack:vd,getStackedDimension:_d},vG=(Object.freeze||Object)({createList:bf,getLayoutRect:uu,dataStack:yG,createScale:wf,mixinAxisModelCommonMethods:Sf,getECData:TR,createTextStyle:Mf,createDimensions:hd,createSymbol:Gc,enableHoverEmphasis:$a}),mG=[],xG={registerPreprocessor:Vp,registerProcessor:Fp,registerPostInit:Gp,registerPostUpdate:Wp,registerUpdateLifecycle:Hp,registerAction:Yp,registerCoordinateSystem:Xp,registerLayout:Zp,registerVisual:jp,registerTransform:_F,registerLoading:Kp,registerMap:Jp,registerImpl:Cp,PRIORITY:DV,ComponentModel:HE,ComponentView:lB,SeriesModel:sB,ChartView:cB,registerComponentModel:function(t){HE.registerClass(t)},registerComponentView:function(t){lB.registerClass(t)},registerSeriesModel:function(t){sB.registerClass(t)},registerChartView:function(t){cB.registerClass(t)},registerSubTypeDefaulter:function(t,e){HE.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){nr(t,e)}},_G=1e-8,bG=[],wG=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),SG=function(){function t(t,e){this.type=\\\"polygon\\\",this.exterior=t,this.interiors=e}return t}(),MG=function(){function t(t){this.type=\\\"linestring\\\",this.points=t}return t}(),IG=function(t){function n(e,n,i){var r=t.call(this,e)||this;return r.type=\\\"geoJSON\\\",r.geometries=n,r._center=i&&[i[0],i[1]],r}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;in&&(t=r,n=a)}if(t)return kf(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return y(r,function(e){\\\"polygon\\\"===e.type?Af(e.exterior,n,i,t):y(e.points,function(e){Af(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new dL(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++){var o=n[i];if(\\\"polygon\\\"===o.type){var a=o.exterior,s=o.interiors;if(Cf(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Cf(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new dL(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return hr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&\\\"ordinal\\\"===i.type&&(n=n.slice(),qf(n,i.count())),rr(t,OG,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&\\\"ordinal\\\"===i.type&&(n=n.slice(),qf(n,i.count()));var r=rr(t,n,OG,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Ef(this,e),i=n.ticks,r=v(i,function(t){return{coord:this.dataToCoord(\\\"ordinal\\\"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),o=e.get(\\\"alignWithLabel\\\");return Kf(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if(\\\"ordinal\\\"===this.scale.type)return[];var t=this.model.getModel(\\\"minorTick\\\"),e=t.get(\\\"splitNumber\\\");e>0&&100>e||(e=5);var n=this.scale.getMinorTicks(e),i=v(n,function(t){return v(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return i},t.prototype.getViewLabels=function(){return Nf(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel(\\\"axisLabel\\\")},t.prototype.getTickModel=function(){return this.model.getModel(\\\"axisTick\\\")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return Xf(this)},t}(),NG=2*Math.PI,EG=JO.CMD,zG=[\\\"top\\\",\\\"right\\\",\\\"bottom\\\",\\\"left\\\"],BG=[],VG=new rL,FG=new rL,GG=new rL,WG=new rL,HG=new rL,YG=[],XG=new rL,UG=[\\\"align\\\",\\\"verticalAlign\\\",\\\"width\\\",\\\"height\\\",\\\"fontSize\\\"],ZG=new RP,jG=Kr(),qG=Kr(),KG=[\\\"x\\\",\\\"y\\\",\\\"rotation\\\"],$G=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();dL.applyTransform(u,u,l),l?ZG.setLocalTransform(l):(ZG.x=ZG.y=ZG.rotation=ZG.originX=ZG.originY=0,ZG.scaleX=ZG.scaleY=1),ZG.rotation=Wo(ZG.rotation);var h,c=i.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();dL.applyTransform(h,h,p)}var d=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ZG.x,y:ZG.y,scaleX:ZG.scaleX,scaleY:ZG.scaleY,rotation:ZG.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get(\\\"labelLayout\\\");(I(i)||b(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=TR(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){sg(t,e)}}for(var n=t.getWidth(),i=t.getHeight(),r=0;r=0&&n.attr(r.oldLayoutSelect),p(h,\\\"emphasis\\\")>=0&&n.attr(r.oldLayoutEmphasis)),As(n,l,e,s)}else if(n.attr(l),!rE(n).valueAnimation){var c=B(n.style.opacity,1);n.style.opacity=0,ks(n,{style:{opacity:c}},e,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};bg(d,l,KG),bg(d,n.states.select,KG)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};bg(f,l,KG),bg(f,n.states.emphasis,KG)}xl(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=qG(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),As(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,ks(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),JG=Kr();If(wg);var QG=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;i=i||SP,\\\"string\\\"==typeof e?o=Sg(e,n,i):A(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(K(o),o.onselectstart=function(){return!1},a.padding=\\\"0\\\",a.margin=\\\"0\\\",a.borderWidth=\\\"0\\\"),r.painter=n,r.dpr=i,r}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext(\\\"2d\\\"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Sg(\\\"back-\\\"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext(\\\"2d\\\"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new dL(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;ug&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new dL(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new dL(0,0,0,0),u=this.__startIndex;uo;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(tW)),i||(i=n.ctx,i.save()),mp(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(tW)},t.prototype.paintOne=function(t,e){vp(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;DL(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(eW).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a15)break}}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)m=s.__endIndex;else for(var _=p.dpr,b=0;b0&&t>i[0]){for(s=0;r-1>s&&!(i[s]t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?nW:0),this._needsManuallyCompositing),h.__builtin__||a(\\\"ZLevel \\\"+u+\\\" has been used by unkown layer \\\"+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.__drawIndex=h.incremental?-1:o,e(o),s=h),i.__dirty&SL&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,y(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l(n[t],e,!0):n[t]=e;for(var i=0;is;s++){var u=a[s];mp(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),oW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"dataset\\\",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new tB(this),Eh(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Eh(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type=\\\"dataset\\\",n.defaultOption={seriesLayoutBy:nz},n}(HE),aW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"dataset\\\",e}return e(n,t),n.type=\\\"dataset\\\",n}(lB);If([Tg,Cg]),If(wg);var sW={average:function(t){for(var e=0,n=0,i=0;ie&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;nd)l=p;else if(null!=l&&d>a){u=(p+l)/2;break}1===c&&(h=d-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}});else{var a=this.getData(),s=a.getLayout(\\\"offset\\\"),l=a.getLayout(\\\"size\\\"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[0/0,0/0]},n.type=\\\"series.__base_bar__\\\",n.defaultOption={z:2,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\\\"mod\\\"},n}(sB);sB.registerClass(uW);var hW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(\\\"realtimeSort\\\",!0)||null})},n.prototype.getProgressive=function(){return this.get(\\\"large\\\")?this.get(\\\"progressive\\\"):!1},n.prototype.getProgressiveThreshold=function(){var t=this.get(\\\"progressiveThreshold\\\"),e=this.get(\\\"largeThreshold\\\");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type=\\\"series.bar\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\"],n.defaultOption=Sl(uW.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}),n}(uW),cW=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),pW=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"sausage\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new cW},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?c>u-l:c>l-u;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},n}(uR),dW=Math.max,fW=Math.min,gW=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isFirstFrame=!0,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get(\\\"coordinateSystem\\\");(\\\"cartesian2d\\\"===r||\\\"polar\\\"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},n.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},n.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},n.prototype.eachRendered=function(t){sl(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t,e,n,i){function r(t){var e=bW[u.type](s,t),n=$g(u,o,e);return n.useStyle(v.getItemStyle()),\\\"cartesian2d\\\"===u.type?n.setShape(\\\"r\\\",m):n.setShape(\\\"cornerRadius\\\",m),x[t]=n,n}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();\\\"cartesian2d\\\"===u.type?o=h.isHorizontal():\\\"polar\\\"===u.type&&(o=\\\"angle\\\"===h.dim);var c=t.isAnimationEnabled()?t:null,p=Gg(t,u);p&&this._enableRealtimeSort(p,s,n);var d=t.get(\\\"clip\\\",!0)||p,f=Fg(u,s);a.removeClipPath();var g=t.get(\\\"roundCap\\\",!0),y=t.get(\\\"showBackground\\\",!0),v=t.getModel(\\\"backgroundStyle\\\"),m=v.get(\\\"borderRadius\\\")||0,x=[],_=this._backgroundEls,b=i&&i.isInitSort,w=i&&\\\"changeAxisOrder\\\"===i.type;s.diff(l).add(function(e){var n=s.getItemModel(e),i=bW[u.type](s,e,n);if(y&&r(e),s.hasValue(e)&&_W[u.type](i)){var l=!1;d&&(l=yW[u.type](f,i));var v=vW[u.type](t,s,e,i,o,c,h.model,!1,g);p&&(v.forceLabelAnimation=!0),Ug(v,s,e,n,i,t,o,\\\"polar\\\"===u.type),b?v.attr({shape:i}):p?Wg(p,c,v,i,e,o,!1,!1):ks(v,{shape:i},t,e),s.setItemGraphicEl(e,v),a.add(v),v.ignore=l}}).update(function(e,n){var i=s.getItemModel(e),S=bW[u.type](s,e,i);if(y){var M=void 0;0===_.length?M=r(n):(M=_[n],M.useStyle(v.getItemStyle()),\\\"cartesian2d\\\"===u.type?M.setShape(\\\"r\\\",m):M.setShape(\\\"cornerRadius\\\",m),x[e]=M);var I=bW[u.type](s,e),T=Kg(o,I,u);As(M,{shape:T},c,e)}var C=l.getItemGraphicEl(n);if(!s.hasValue(e)||!_W[u.type](S))return void a.remove(C);var D=!1;if(d&&(D=yW[u.type](f,S),D&&a.remove(C)),C?Ns(C):C=vW[u.type](t,s,e,S,o,c,h.model,!!C,g),p&&(C.forceLabelAnimation=!0),w){var A=C.getTextContent();if(A){var k=rE(A);null!=k.prevValue&&(k.prevValue=k.value)}}else Ug(C,s,e,i,S,t,o,\\\"polar\\\"===u.type);b?C.attr({shape:S}):p?Wg(p,c,C,S,e,o,!0,w):As(C,{shape:S},t,e,null),s.setItemGraphicEl(e,C),C.ignore=D,a.add(C)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&Rs(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new HP);S.removeAll();for(var M=0;Ma;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=0>l?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o>=r;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:n.dim+\\\"Axis\\\",axisId:n.index,sortInfo:r}))}},n.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:i.dim+\\\"Axis\\\",isInitSort:!0,axisId:i.index,sortInfo:r})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off(\\\"rendered\\\",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){Rs(e,t,TR(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type=\\\"bar\\\",n}(cB),yW={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=dW(e.x,t.x),s=fW(e.x+e.width,r),l=dW(e.y,t.y),u=fW(e.y+e.height,o),h=a>s,c=l>u;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}var r=fW(e.r,t.r),o=dW(e.r0,t.r0);e.r=r,e.r0=o;var a=0>r-o;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}return a}},vW={cartesian2d:function(t,e,n,i,r,o){var a=new mR({shape:h({},i),z2:1});if(a.__dataIndex=n,a.name=\\\"item\\\",o){var s=a.shape,l=r?\\\"height\\\":\\\"width\\\";s[l]=0}return a},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?pW:_N,h=new u({shape:i,z2:1});h.name=\\\"item\\\";var c=Xg(r);if(h.calculateTextPosition=Ng(c,{isRoundCap:u===pW}),o){var p=h.shape,d=r?\\\"r\\\":\\\"endAngle\\\",f={};p[d]=r?i.r0:i.startAngle,f[d]=i[d],(s?As:ks)(h,{shape:f},o)}return h}},mW=[\\\"x\\\",\\\"y\\\",\\\"width\\\",\\\"height\\\"],xW=[\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"startAngle\\\",\\\"endAngle\\\"],_W={cartesian2d:function(t){return!Hg(t,mW)},polar:function(t){return!Hg(t,xW)}},bW={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?Zg(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}},wW=function(){function t(){}return t}(),SW=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"largeBar\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new wW},n.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null},30,!1);If(Jg);var IW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new HP,n=Gc(\\\"line\\\",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual(\\\"symbol\\\"),r=this.getData().getVisual(\\\"symbolRotate\\\"),o=\\\"none\\\"===i?\\\"circle\\\":i,a=.8*t.itemHeight,s=Gc(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l=\\\"inherit\\\"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf(\\\"empty\\\")>-1&&(s.style.stroke=s.style.fill,s.style.fill=\\\"#fff\\\",s.style.lineWidth=2),e},n.type=\\\"series.line\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\"],n.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},n}(sB),TW=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Gc(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Qg,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){Ra(this.childAt(0))},n.prototype.downplay=function(){Na(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?\\\"move\\\":n.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,\\\"symbolKeepAspect\\\");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):As(c,p,a,e),Ns(c)}if(this._updateCommon(t,e,s,i,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ks(c,p,a,e)}}u&&this.childAt(0).stopAnimation(\\\"leave\\\")},n.prototype._updateCommon=function(t,e,n,i,r){function o(e){return C?t.getName(e):Og(t,e)}var a,s,l,u,c,p,d,f,g,y=this.childAt(0),v=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,l=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,f=i.hoverScale,g=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),x=m.getModel(\\\"emphasis\\\");a=x.getModel(\\\"itemStyle\\\").getItemStyle(),l=m.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),s=m.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),u=x.get(\\\"focus\\\"),c=x.get(\\\"blurScope\\\"),p=x.get(\\\"disabled\\\"),d=cl(m),f=x.getShallow(\\\"scale\\\"),g=m.getShallow(\\\"cursor\\\")}var _=t.getItemVisual(e,\\\"symbolRotate\\\");y.attr(\\\"rotation\\\",(_||0)*Math.PI/180||0);var b=Hc(t.getItemVisual(e,\\\"symbolOffset\\\"),n);b&&(y.x=b[0],y.y=b[1]),g&&y.attr(\\\"cursor\\\",g);var w=t.getItemVisual(e,\\\"style\\\"),S=w.fill;if(y instanceof fR){var M=y.style;y.useStyle(h({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else y.useStyle(y.__isEmptyBrush?h({},w):w),y.style.decal=null,y.setColor(S,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var I=t.getItemVisual(e,\\\"liftZ\\\"),T=this._z2;null!=I?null==T&&(this._z2=y.z2,y.z2+=I):null!=T&&(y.z2=T,this._z2=null);var C=r&&r.useNameLabel;hl(y,d,{labelFetcher:v,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=y.ensureState(\\\"emphasis\\\");D.style=a,y.ensureState(\\\"select\\\").style=l,y.ensureState(\\\"blur\\\").style=s;var A=null==f||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*A,D.scaleY=this._sizeY*A,this.setSymbolScale(1),Qa(this,u,c,p)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=TR(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ps(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ps(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return Wc(t.getItemVisual(e,\\\"symbolSize\\\"))},n}(HP),CW=function(){function t(t){this.group=new HP,this._SymbolCtor=t||TW}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ey(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=ny(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(ty(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!ty(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,\\\"symbol\\\")||\\\"circle\\\",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),p=new o(t,h,s,l),p.setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):As(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ny(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}this._progressiveEls=[],n=ey(n);for(var r=t.start;r0&&ly(n[2*r-2],n[2*r-1]);r--);for(;r>i&&ly(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=uy(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=JO.CMD,s=\\\"x\\\"===e,l=[],u=0;u=v&&v>=0){var m=s?(p-i)*v+i:(c-n)*v+n;return s?[t,m]:[m,t]}n=c,i=p;break;case a.C:c=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++],y=o[u++];var x=s?dn(n,c,d,g,t,l):dn(i,p,f,y,t,l);if(x>0)for(var _=0;x>_;_++){var b=l[_];if(1>=b&&b>=0){var m=s?cn(i,p,f,y,b):cn(n,c,d,g,b);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(uR),PW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(kW),OW=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"ec-polygon\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new PW},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&ly(n[2*o-2],n[2*o-1]);o--);for(;o>r&&ly(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=uy(t,n,r,o,o,1,e.smooth,a,e.connectNulls);uy(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(uR),RW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new HP,e=new CW;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel(\\\"lineStyle\\\"),l=t.getModel(\\\"areaStyle\\\"),u=a.getLayout(\\\"points\\\")||[],h=\\\"polar\\\"===r.type,p=this._coordSys,d=this._symbolDraw,f=this._polyline,g=this._polygon,y=this._lineGroup,v=!e.ssr&&t.isAnimationEnabled(),m=!l.isEmpty(),x=l.get(\\\"origin\\\"),_=iy(r,a,x),b=m&&fy(r,a,_),w=t.get(\\\"showSymbol\\\"),S=t.get(\\\"connectNulls\\\"),M=w&&!h&&my(t,a,r),I=this._data;I&&I.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),I.setItemGraphicEl(e,null))}),w||d.remove(),o.add(y);var T,C=h?!1:t.get(\\\"step\\\");r&&r.getArea&&t.get(\\\"clip\\\",!0)&&(T=r.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var D=vy(a,r,n)||a.getVisual(\\\"style\\\")[a.getVisual(\\\"drawType\\\")];if(f&&p.type===r.type&&C===this._step){m&&!g?g=this._newPolygon(u,b):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,ou(D));var A=y.getClipPath();if(A){var k=Iy(this,r,!1,t);ks(A,{shape:k.shape},t)}else y.setClipPath(Iy(this,r,!0,t));w&&d.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),hy(this._stackedOnPoints,b)&&hy(this._points,u)||(v?this._doUpdateAnimation(a,b,r,n,C,x,S):(C&&(u=gy(u,r,C,S),b&&(b=gy(b,r,C,S))),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))}else w&&d.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,T),C&&(u=gy(u,r,C,S),b&&(b=gy(b,r,C,S))),f=this._newPolyline(u),m?g=this._newPolygon(u,b):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,ou(D)),y.setClipPath(Iy(this,r,!0,t));var L=t.getModel(\\\"emphasis\\\"),P=L.get(\\\"focus\\\"),O=L.get(\\\"blurScope\\\"),R=L.get(\\\"disabled\\\");if(f.useStyle(c(s.getLineStyle(),{fill:\\\"none\\\",stroke:D,lineJoin:\\\"bevel\\\"})),es(f,t,\\\"lineStyle\\\"),f.style.lineWidth>0&&\\\"bolder\\\"===t.get([\\\"emphasis\\\",\\\"lineStyle\\\",\\\"width\\\"])){var N=f.getState(\\\"emphasis\\\").style;N.lineWidth=+f.style.lineWidth+1}TR(f).seriesIndex=t.seriesIndex,Qa(f,P,O,R);var E=dy(t.get(\\\"smooth\\\")),z=t.get(\\\"smoothMonotone\\\");if(f.setShape({smooth:E,smoothMonotone:z,connectNulls:S}),g){var B=a.getCalculationInfo(\\\"stackedOnSeries\\\"),V=0;g.useStyle(c(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:\\\"bevel\\\",decal:a.getVisual(\\\"style\\\").decal})),B&&(V=dy(B.get(\\\"smooth\\\"))),g.setShape({smooth:E,stackedOnSmooth:V,smoothMonotone:z,connectNulls:S}),es(g,t,\\\"areaStyle\\\"),TR(g).seriesIndex=t.seriesIndex,Qa(g,P,O,R)}var F=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=F)}),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=x,t.get(\\\"triggerLineEvent\\\")&&(this.packEventData(t,f),g&&this.packEventData(t,g))},n.prototype.packEventData=function(t,e){TR(e).eventData={componentType:\\\"series\\\",componentSubType:\\\"line\\\",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:\\\"line\\\"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=qr(r,i);if(this._changePolyState(\\\"emphasis\\\"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout(\\\"points\\\"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get(\\\"zlevel\\\")||0,c=t.get(\\\"z\\\")||0;s=new TW(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else cB.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=qr(r,i);if(this._changePolyState(\\\"normal\\\"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else cB.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;Ia(this._polyline,t),e&&Ia(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new LW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new OW({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;\\\"cartesian2d\\\"===e.type?(i=o.isHorizontal(),r=!1):\\\"polar\\\"===e.type&&(i=\\\"angle\\\"===o.dim,r=!0);var s=t.hostModel,l=s.get(\\\"animationDuration\\\");I(l)&&(l=l(null));var u=s.get(\\\"animationDelay\\\")||0,h=I(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=I(u)?u(o):l*m+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel(\\\"endLabel\\\");if(My(t)){var r=t.getData(),o=this._polyline,a=r.getLayout(\\\"points\\\");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new wR({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=by(a);l>=0&&(hl(o,cl(t,\\\"endLabel\\\"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Rg(r,n):Og(r,t)},enableTextSetter:!0},Ty(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout(\\\"points\\\"),h=n.hostModel,c=h.get(\\\"connectNulls\\\"),p=o.get(\\\"precision\\\"),d=o.get(\\\"distance\\\")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?\\\"x\\\":\\\"y\\\",w=Sy(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=wy(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{var T=l.getPointOn(m,b);T&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(I=ro(n,p,C,D,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0,T=wy(u,A);r&&(I=h.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var k=rE(s);\\\"function\\\"==typeof k.setLabelText&&k.setLabelText(I)}}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=sy(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=h.current,p=h.stackedOnCurrent,d=h.next,f=h.stackedOnNext;if(r&&(c=gy(h.current,n,r,a),p=gy(h.stackedOnCurrent,n,r,a),d=gy(h.next,n,r,a),f=gy(h.stackedOnNext,n,r,a)),py(c,d)>3e3||l&&py(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),As(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),As(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;m0){for(var s=r.getItemLayout(0),l=1;isNaN(s&&s.startAngle)&&l=i.r0}},n.type=\\\"pie\\\",n}(cB),FW=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),GW=Kr(),WW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FW(Lk(this.getData,this),Lk(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return By(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:S(xu,this)})},n.prototype.getDataParams=function(e){var n=this.getData(),i=GW(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension(\\\"value\\\"),function(t){o.push(t)}),r=i.seats=pr(o,n.hostModel.get(\\\"percentPrecision\\\"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push(\\\"percent\\\"),a},n.prototype._defaultLabelLine=function(t){kr(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},n.type=\\\"series.pie\\\",n.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\\\"},n}(sB);If(Fy);var HW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{useEncodeDefaulter:!0})},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get(\\\"progressive\\\"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get(\\\"progressiveThreshold\\\"):t},n.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},n.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:\\\"\\\"},n.type=\\\"series.scatter\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],n.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\\\"}},n}(sB),YW=4,XW=function(){function t(){}return t}(),UW=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.getDefaultShape=function(){return new XW},n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&u+o>=t&&h+a>=e)return s}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=e+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),jW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=t.getData(),n=this._updateSymbolDraw(e,t);n.updateData(e,{clipShape:this._getClipShape(t)}),this._finished=!0},n.prototype.incrementalPrepareRender=function(t){var e=t.getData(),n=this._updateSymbolDraw(e,t);n.incrementalPrepareUpdate(e),this._finished=!1},n.prototype.incrementalRender=function(t,e){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},n.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Cy(\\\"\\\").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},n.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)\\n},n.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get(\\\"clip\\\",!0)?n:null},n.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new ZW:new CW,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},n.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},n.prototype.dispose=function(){},n.type=\\\"scatter\\\",n}(cB),qW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type=\\\"grid\\\",n.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\"],n.layoutMode=\\\"box\\\",n.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\\\"},n}(HE),KW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"grid\\\",iO).models[0]},n.type=\\\"cartesian2dAxis\\\",n}(HE);f(KW,gG);var $W={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)\\\"]}}},JW=l({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\\\"auto\\\"},axisLabel:{interval:\\\"auto\\\"}},$W),QW=l({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}}},$W),tH=l({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:\\\"bold\\\"}}},splitLine:{show:!1}},QW),eH=c({logBase:10},QW),nH={category:JW,value:QW,time:tH,log:eH},iH={value:1,category:1,time:1,log:1},rH=function(){function t(t){this.type=\\\"cartesian\\\",this._dimList=[],this._axes={},this.name=t||\\\"\\\"}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return v(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),x(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),oH=[\\\"x\\\",\\\"y\\\"],aH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"cartesian2d\\\",e.dimensions=oH,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis(\\\"x\\\").scale,e=this.getAxis(\\\"y\\\").scale;if(Hy(t)&&Hy(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Xe([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAxis(\\\"x\\\")},n.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]))},n.prototype.containData=function(t){return this.getAxis(\\\"x\\\").containData(t[0])&&this.getAxis(\\\"y\\\").containData(t[1])},n.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new dL(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ve(n,t,this._transform);var o=this.getAxis(\\\"x\\\"),a=this.getAxis(\\\"y\\\");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis(\\\"x\\\").scale,i=this.getAxis(\\\"y\\\").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ve(n,t,this._invTransform);var i=this.getAxis(\\\"x\\\"),r=this.getAxis(\\\"y\\\");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis(\\\"x\\\"===t.dim?\\\"y\\\":\\\"x\\\")},n.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]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new dL(n,i,r,o)},n}(rH),sH=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||\\\"value\\\",a.position=o||\\\"bottom\\\",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return\\\"top\\\"===t||\\\"bottom\\\"===t},n.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},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[\\\"x\\\"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return\\\"category\\\"!==this.type?!1:(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(RG),lH=Math.log,uH=function(){function t(t,e,n){this.type=\\\"grid\\\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=oH,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=b(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Cd(u)&&l.get(\\\"alignTicks\\\")&&null==l.get(\\\"interval\\\")?r.push(s):(hf(u,l),Cd(u)&&(e=s))}r.length&&(e||(e=r.pop(),hf(e.scale,e.model)),y(r,function(t){Zy(t.scale,t.model,e.scale)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};y(i.x,function(t){qy(i,\\\"y\\\",t,r)}),y(i.y,function(t){qy(i,\\\"x\\\",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){y(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),$y(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get(\\\"containLabel\\\"),a=uu(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(y(s,function(t){if(!t.model.get([\\\"axisLabel\\\",\\\"inside\\\"])){var e=gf(t);if(e){var 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)}}}),i()),y(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n=\\\"x\\\"+t+\\\"y\\\"+e;return this._coordsMap[n]}A(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i0?\\\"top\\\":\\\"bottom\\\",i=\\\"center\\\"):gr(o-hH)?(r=n>0?\\\"bottom\\\":\\\"top\\\",i=\\\"center\\\"):(r=\\\"middle\\\",i=o>0&&hH>o?n>0?\\\"right\\\":\\\"left\\\":n>0?\\\"left\\\":\\\"right\\\"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+\\\"Index\\\"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get(\\\"tooltip\\\");return t.get(\\\"silent\\\")||!(t.get(\\\"triggerEvent\\\")||e&&e.show)},t}(),pH={axisLine:function(t,e,n,i){var r=e.get([\\\"axisLine\\\",\\\"show\\\"]);if(\\\"auto\\\"===r&&t.handleAutoShown&&(r=t.handleAutoShown(\\\"axisLine\\\")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ve(s,s,a),ve(l,l,a));var c=h({lineCap:\\\"round\\\"},e.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]).getLineStyle()),p=new AN({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ys(p.shape,p.style.lineWidth),p.anid=\\\"line\\\",n.add(p);var d=e.get([\\\"axisLine\\\",\\\"symbol\\\"]);if(null!=d){var f=e.get([\\\"axisLine\\\",\\\"symbolSize\\\"]);T(d)&&(d=[d,d]),(T(f)||D(f))&&(f=[f,f]);var g=Hc(e.get([\\\"axisLine\\\",\\\"symbolOffset\\\"])||0,f),v=f[0],m=f[1];y([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if(\\\"none\\\"!==d[i]&&null!=d[i]){var r=Gc(d[i],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=rv(n,i,e,t),o=av(n,i,e,t);if(Qy(e,o,r),ov(n,i,e,t.tickDirection),e.get([\\\"axisLabel\\\",\\\"hideOverlap\\\"])){var a=fg(v(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}));mg(a)}},axisName:function(t,e,n,i){var r=z(t.axisName,e.get(\\\"name\\\"));if(r){var o,a=e.get(\\\"nameLocation\\\"),s=t.nameDirection,l=e.getModel(\\\"nameTextStyle\\\"),u=e.get(\\\"nameGap\\\")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=[\\\"start\\\"===a?h[0]-c*u:\\\"end\\\"===a?h[1]+c*u:(h[0]+h[1])/2,nv(a)?t.labelOffset+s*u:0],d=e.get(\\\"nameRotate\\\");null!=d&&(d=d*hH/180);var f;nv(a)?o=cH.innerTextLayout(t.rotation,null!=d?d:t.rotation,s):(o=Jy(t.rotation,a,d||0,h),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(o.rotation)),!isFinite(f)&&(f=null)));var g=l.getFont(),y=e.get(\\\"nameTruncate\\\",!0)||{},v=y.ellipsis,m=z(t.nameTruncateMaxWidth,y.maxWidth,f),x=new wR({x:p[0],y:p[1],rotation:o.rotation,silent:cH.isLabelSilent(e),style:pl(l,{text:r,font:g,overflow:\\\"truncate\\\",width:m,ellipsis:v,fill:l.getTextColor()||e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),align:l.get(\\\"align\\\")||o.textAlign,verticalAlign:l.get(\\\"verticalAlign\\\")||o.textVerticalAlign}),z2:1});if(ol({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid=\\\"name\\\",e.get(\\\"triggerEvent\\\")){var _=cH.makeAxisEventDataBase(e);_.targetType=\\\"axisName\\\",_.name=r,TR(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}},dH={},fH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&dv(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=gv(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){dH[t]=e},n.getAxisPointerClass=function(t){return t&&dH[t]},n.type=\\\"axis\\\",n}(lB),gH=Kr(),yH=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],vH=[\\\"splitArea\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\"],mH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass=\\\"CartesianAxisPointer\\\",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new HP,this.group.add(this._axisGroup),e.get(\\\"show\\\")){var a=e.getCoordSysModel(),s=Yy(a,e),l=new cH(e,h({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;no;o++){var a=Gc(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/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(),r.add(a)}wv(r,t)},n.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=[\\\"symbolType\\\",\\\"period\\\",\\\"rippleScale\\\",\\\"rippleNumber\\\"],r=0;r0?BH:VH)}function i(t,e){return e.get(0===t?zH:t>0?NH:EH)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,\\\"style\\\");h(l,s)}}}}}},GH={seriesType:\\\"candlestick\\\",plan:pc(),reset:function(t){function e(t,e){function n(t,e){var n=[];return n[a]=e,n[s]=t,isNaN(e)||isNaN(t)?[0/0,0/0]:i.dataToPoint(n)}function r(t,e,n){var i=e.slice(),r=e.slice();i[a]=JN(i[a]+o/2,1,!1),r[a]=JN(r[a]-o/2,1,!0),n?t.push(i,r):t.push(r,i)}function l(t,e,i){var r=n(t,i),l=n(e,i);return r[a]-=o/2,l[a]-=o/2,{x:r[0],y:r[1],width:s?o:l[0]-r[0],height:s?l[1]-r[1]:o}}function h(t){return t[a]=JN(t[a],1),t}for(var g,y=e.getStore();null!=(g=t.next());){var v=y.get(u,g),m=y.get(c,g),x=y.get(p,g),_=y.get(d,g),b=y.get(f,g),w=Math.min(m,x),S=Math.max(m,x),M=n(w,v),I=n(S,v),T=n(_,v),C=n(b,v),D=[];r(D,I,0),r(D,M,1),D.push(h(C),h(I),h(T),h(M));var A=e.getItemModel(g),k=!!A.get([\\\"itemStyle\\\",\\\"borderColorDoji\\\"]);e.setItemLayout(g,{sign:Lv(y,g,m,x,p,k),initBaseline:m>x?I[s]:M[s],ends:D,brushRect:l(_,b,v)})}}function n(e,n){for(var r,o,l=Ed(4*e.count),h=0,g=[],y=[],v=n.getStore(),m=!!t.get([\\\"itemStyle\\\",\\\"borderColorDoji\\\"]);null!=(o=e.next());){var x=v.get(u,o),_=v.get(c,o),b=v.get(p,o),w=v.get(d,o),S=v.get(f,o);isNaN(x)||isNaN(w)||isNaN(S)?(l[h++]=0/0,h+=3):(l[h++]=Lv(v,o,_,b,p,m),g[a]=x,g[s]=w,r=i.dataToPoint(g,null,y),l[h++]=r?r[0]:0/0,l[h++]=r?r[1]:0/0,g[s]=S,r=i.dataToPoint(g,null,y),l[h++]=r?r[1]:0/0)}n.setLayout(\\\"largePoints\\\",l)}var i=t.coordinateSystem,r=t.getData(),o=Pv(t,r),a=0,s=1,l=[\\\"x\\\",\\\"y\\\"],u=r.getDimensionIndex(r.mapDimension(l[a])),h=v(r.mapDimensionsAll(l[s]),r.getDimensionIndex,r),c=h[0],p=h[1],d=h[2],f=h[3];return r.setLayout({candleWidth:o,isSimpleBox:1.3>=o}),0>u||h.length<4?void 0:{progress:t.pipelineContext.large?n:e}}};If(Ov);var WH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){function e(t,e){var n=t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\";if(\\\"none\\\"!==n){var i=Wc(t.getItemVisual(e,\\\"symbolSize\\\")),r=Gc(n,-1,-1,2,2),o=t.getItemVisual(e,\\\"symbolRotate\\\")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function n(n,i,r,o,a,s){r.removeAll();for(var l=0;lr;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},n.type=\\\"series.radar\\\",n.dependencies=[\\\"radar\\\"],n.defaultOption={z:2,colorBy:\\\"data\\\",coordinateSystem:\\\"radar\\\",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:\\\"solid\\\",join:\\\"round\\\"},label:{position:\\\"top\\\"},symbolSize:8},n}(sB),YH=nH.value,XH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){var t=this.get(\\\"boundaryGap\\\"),e=this.get(\\\"splitNumber\\\"),n=this.get(\\\"scale\\\"),i=this.get(\\\"axisLine\\\"),r=this.get(\\\"axisTick\\\"),o=this.get(\\\"axisLabel\\\"),a=this.get(\\\"axisName\\\"),u=this.get([\\\"axisName\\\",\\\"show\\\"]),h=this.get([\\\"axisName\\\",\\\"formatter\\\"]),p=this.get(\\\"axisNameGap\\\"),d=this.get(\\\"triggerEvent\\\"),g=v(this.get(\\\"indicator\\\")||[],function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var y=a;null!=g.color&&(y=c({color:g.color},a));var v=l(s(g),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:g.text,showName:u,nameLocation:\\\"end\\\",nameGap:p,nameTextStyle:y,triggerEvent:d},!1);if(T(h)){var m=v.name;v.name=h.replace(\\\"{value}\\\",null!=m?m:\\\"\\\")}else I(h)&&(v.name=h(v.name,v));var x=new gE(v,null,this.ecModel);return f(x,gG.prototype),x.mainType=\\\"radar\\\",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=g},n.prototype.getIndicatorModels=function(){return this._indicatorModels},n.type=\\\"radar\\\",n.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:l({lineStyle:{color:\\\"#bbb\\\"}},YH.axisLine),axisLabel:Bv(YH.axisLabel,!1),axisTick:Bv(YH.axisTick,!1),splitLine:Bv(YH.splitLine,!0),splitArea:Bv(YH.splitArea,!0),indicator:[]},n}(HE),UH=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],ZH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=this.group;e.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},n.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=v(n,function(t){var n=t.model.get(\\\"showName\\\")?t.name:\\\"\\\",i=new cH(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i});y(i,function(t){y(UH,t.add,t),this.group.add(t.getGroup())},this)},n.prototype._buildSplitLineAndArea=function(t){function e(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}var n=t.coordinateSystem,i=n.getIndicatorAxes();if(i.length){var r=t.get(\\\"shape\\\"),o=t.getModel(\\\"splitLine\\\"),a=t.getModel(\\\"splitArea\\\"),s=o.getModel(\\\"lineStyle\\\"),l=a.getModel(\\\"areaStyle\\\"),u=o.get(\\\"show\\\"),h=a.get(\\\"show\\\"),p=s.get(\\\"color\\\"),d=l.get(\\\"color\\\"),f=M(p)?p:[p],g=M(d)?d:[d],m=[],x=[];if(\\\"circle\\\"===r)for(var _=i[0].getTicksCoords(),b=n.cx,w=n.cy,S=0;S<_.length;S++){if(u){var I=e(m,f,S);m[I].push(new oN({shape:{cx:b,cy:w,r:_[S].coord}}))}if(h&&S<_.length-1){var I=e(x,g,S);x[I].push(new wN({shape:{cx:b,cy:w,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,C=v(i,function(t,e){var i=t.getTicksCoords();return T=null==T?i.length-1:Math.min(i.length-1,T),v(i,function(t){return n.coordToPoint(t.coord,e)})}),D=[],S=0;T>=S;S++){for(var A=[],k=0;kh&&(r=u,s=l,a=h)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get(\\\"center\\\"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=or(n[0],i),this.cy=or(n[1],r),this.startAngle=t.get(\\\"startAngle\\\")*Math.PI/180;var a=t.get(\\\"radius\\\");(T(a)||D(a))&&(a=[0,a]),this.r0=or(a[0],o),this.r=or(a[1],o),y(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)},t.prototype.update=function(t){var e=this._indicatorAxes,n=this._model;y(e,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType(\\\"radar\\\",function(i){if(\\\"radar\\\"===i.get(\\\"coordinateSystem\\\")&&t.getComponent(\\\"radar\\\",i.get(\\\"radarIndex\\\"))===n){var r=i.getData();y(e,function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))})}},this);var i=n.get(\\\"splitNumber\\\"),r=new KF;r.setExtent(0,i),r.setInterval(1),y(e,function(t){Zy(t.scale,t.model,r)})},t.prototype.convertToPixel=function(){return console.warn(\\\"Not implemented.\\\"),null},t.prototype.convertFromPixel=function(){return console.warn(\\\"Not implemented.\\\"),null},t.prototype.containPoint=function(){return console.warn(\\\"Not implemented.\\\"),!1},t.create=function(e,n){var i=[];return e.eachComponent(\\\"radar\\\",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType(\\\"radar\\\",function(t){\\\"radar\\\"===t.get(\\\"coordinateSystem\\\")&&(t.coordinateSystem=i[t.get(\\\"radarIndex\\\")||0])}),i},t.dimensions=[],t}();If(Fv);var KH=256,$H=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=vk.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,\\\"inRange\\\"),l=this._getGradient(r,\\\"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;p>d;++d){var f=t[d],g=f[0],y=f[1],v=f[2],m=i(v);c.globalAlpha=m,c.drawImage(a,g-u,y-u)}if(!h.width||!h.height)return h;for(var x=c.getImageData(0,0,h.width,h.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity,I=M-S;w>b;){var m=_[b+3]/256,T=4*Math.floor(m*(KH-1));if(m>0){var C=o(m)?s:l;m>0&&(m=m*I+S),_[b++]=C[T],_[b++]=C[T+1],_[b++]=C[T+2],_[b++]=C[T+3]*m*256}else b+=4}return c.putImageData(x,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=vk.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=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},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;256>a;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),JH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i;e.eachComponent(\\\"visualMap\\\",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;\\\"cartesian2d\\\"===r.type||\\\"calendar\\\"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Hv(r)&&this._renderOnGeo(r,t,i,n)},n.prototype.incrementalPrepareRender=function(){this.group.removeAll()},n.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(Hv(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},n.prototype.eachRendered=function(t){sl(this._progressiveEls||this.group,t)},n.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=Pg(u,\\\"cartesian2d\\\");if(h){var c=u.getAxis(\\\"x\\\"),p=u.getAxis(\\\"y\\\");o=c.getBandWidth()+.5,a=p.getBandWidth()+.5,s=c.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]).getItemStyle(),y=t.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),v=t.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),m=t.get([\\\"itemStyle\\\",\\\"borderRadius\\\"]),x=cl(t),_=t.getModel(\\\"emphasis\\\"),b=_.get(\\\"focus\\\"),w=_.get(\\\"blurScope\\\"),S=_.get(\\\"disabled\\\"),M=h?[f.mapDimension(\\\"x\\\"),f.mapDimension(\\\"y\\\"),f.mapDimension(\\\"value\\\")]:[f.mapDimension(\\\"time\\\"),f.mapDimension(\\\"value\\\")],I=n;i>I;I++){var T=void 0,C=f.getItemVisual(I,\\\"style\\\");if(h){var D=f.get(M[0],I),A=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(D)||isNaN(A)||Ds[1]||Al[1])continue;var k=u.dataToPoint([D,A]);T=new mR({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new mR({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel(\\\"emphasis\\\");g=P.getModel(\\\"itemStyle\\\").getItemStyle(),y=L.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),v=L.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),m=L.get([\\\"itemStyle\\\",\\\"borderRadius\\\"]),b=P.get(\\\"focus\\\"),w=P.get(\\\"blurScope\\\"),S=P.get(\\\"disabled\\\"),x=cl(L)}T.shape.r=m;var O=t.getRawValue(I),R=\\\"-\\\";O&&null!=O[2]&&(R=O[2]+\\\"\\\"),hl(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState(\\\"emphasis\\\").style=g,T.ensureState(\\\"blur\\\").style=y,T.ensureState(\\\"select\\\").style=v,Qa(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},n.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new $H;s.blurSize=e.get(\\\"blurSize\\\"),s.pointSize=e.get(\\\"pointSize\\\"),s.minOpacity=e.get(\\\"minOpacity\\\"),s.maxOpacity=e.get(\\\"maxOpacity\\\");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),d=Math.min(l.height+l.y,i.getHeight()),f=p-h,g=d-c,y=[a.mapDimension(\\\"lng\\\"),a.mapDimension(\\\"lat\\\"),a.mapDimension(\\\"value\\\")],v=a.mapArray(y,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r}),m=n.getExtent(),x=\\\"visualMap.continuous\\\"===n.type?Wv(m,n.option.range):Gv(m,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new fR({style:{width:f,height:g,x:h,y:c,image:s.canvas},silent:!0});this.group.add(_)},n.type=\\\"heatmap\\\",n}(cB),QH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{generateCoord:\\\"value\\\"})},n.prototype.preventIncremental=function(){var t=wz.get(this.get(\\\"coordinateSystem\\\"));return t&&t.dimensions?\\\"lng\\\"===t.dimensions[0]&&\\\"lat\\\"===t.dimensions[1]:void 0},n.type=\\\"series.heatmap\\\",n.dependencies=[\\\"grid\\\",\\\"geo\\\",\\\"calendar\\\"],n.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:\\\"#212121\\\"}}},n}(sB);If(Yv);var tY=ve,eY=function(t){function n(e){var n=t.call(this)||this;return n.type=\\\"view\\\",n.dimensions=[\\\"x\\\",\\\"y\\\"],n._roamTransformable=new RP,n._rawTransformable=new RP,n.name=e,n}return e(n,t),n.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new dL(t,e,n,i),this._rect},n.prototype.getBoundingRect=function(){return this._rect},n.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new dL(t,e,n,i)},n.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new dL(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},n.prototype.setCenter=function(t,e){t&&(this._center=[or(t[0],e.getWidth()),or(t[1],e.getHeight())],this._updateCenterAndZoom())},n.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()},n.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},n.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},n.prototype.getZoom=function(){return this._zoom||1},n.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},n.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=ve([],i,t),n=ve([],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=r,this._updateTransform()},n.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Fe(this.transform||(this.transform=[]),e.transform||Be()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Xe(this.invTransform,this.transform),this.decomposeTransform()},n.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new RP;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}}},n.prototype.getViewRect=function(){return this._viewRect},n.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},n.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?tY(n,t,i):te(n,t)},n.prototype.pointToData=function(t){var e=this.invTransform;return e?tY([],t,e):[t[0],t[1]]},n.prototype.convertToPixel=function(t,e,n){var i=rm(e);return i===this?i.dataToPoint(n):null},n.prototype.convertFromPixel=function(t,e,n){var i=rm(e);return i===this?i.pointToData(n):null},n.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},n.dimensions=[\\\"x\\\",\\\"y\\\"],n}(RP),nY=\\\"\\\\x00_ec_interaction_mutex\\\";Yp({type:\\\"takeGlobalCursor\\\",event:\\\"globalCursorTaken\\\",update:\\\"update\\\"},J);var iY=function(t){function n(e){var n=t.call(this)||this;n._zr=e;var i=Lk(n._mousedownHandler,n),r=Lk(n._mousemoveHandler,n),o=Lk(n._mouseupHandler,n),a=Lk(n._mousewheelHandler,n),l=Lk(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=c(s(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(t===!0||\\\"move\\\"===t||\\\"pan\\\"===t)&&(e.on(\\\"mousedown\\\",i),e.on(\\\"mousemove\\\",r),e.on(\\\"mouseup\\\",o)),(t===!0||\\\"scale\\\"===t||\\\"zoom\\\"===t)&&(e.on(\\\"mousewheel\\\",a),e.on(\\\"pinch\\\",l))},n.disable=function(){e.off(\\\"mousedown\\\",i),e.off(\\\"mousemove\\\",r),e.off(\\\"mouseup\\\",o),e.off(\\\"mousewheel\\\",a),e.off(\\\"pinch\\\",l)},n}return e(n,t),n.prototype.isDragging=function(){return this._dragging},n.prototype.isPinching=function(){return this._pinching},n.prototype.setPointerChecker=function(t){this.pointerChecker=t},n.prototype.dispose=function(){this.disable()},n.prototype._mousedownHandler=function(t){if(!Ne(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},n.prototype._mousemoveHandler=function(t){if(this._dragging&&dm(\\\"moveOnMouseMove\\\",t,this._opt)&&\\\"pinch\\\"!==t.gestureEvent&&!um(this._zr,\\\"globalPan\\\")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&tL(t.event),pm(this,\\\"pan\\\",\\\"moveOnMouseMove\\\",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},n.prototype._mouseupHandler=function(t){Ne(t)||(this._dragging=!1)},n.prototype._mousewheelHandler=function(t){var e=dm(\\\"zoomOnMouseWheel\\\",t,this._opt),n=dm(\\\"moveOnMouseWheel\\\",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;cm(this,\\\"zoom\\\",\\\"zoomOnMouseWheel\\\",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),h=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);cm(this,\\\"scrollMove\\\",\\\"moveOnMouseWheel\\\",t,{scrollDelta:h,originX:o,originY:a,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(t){if(!um(this._zr,\\\"globalPan\\\")){var e=t.pinchScale>1?1.1:1/1.1;cm(this,\\\"zoom\\\",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},n}(Xk),rY={axisPointer:1,tooltip:1,brush:1},oY=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),aY=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new oY},n.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l=\\\"TB\\\"===s||\\\"BT\\\"===s?0:1,u=1-l,h=or(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;i-1>p;p++){var d=n[p];t.moveTo(d[0],d[1]),c[l]=d[l],t.lineTo(c[0],c[1])}},n}(uR),sY=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._mainGroup=new HP,e}return e(n,t),n.prototype.init=function(t,e){this._controller=new iY(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},n.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup,a=t.get(\\\"layout\\\");\\\"radial\\\"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add(function(e){gm(i,e)&&ym(i,e,null,o,t)}).update(function(e,n){var r=s.getItemGraphicEl(n);return gm(i,e)?void ym(i,e,r,o,t):void(r&&_m(s,n,r,o,t))}).remove(function(e){var n=s.getItemGraphicEl(e);n&&_m(s,e,n,o,t)}).execute(),this._nodeScaleRatio=t.get(\\\"nodeScaleRatio\\\"),this._updateNodeAndLinkScale(t),t.get(\\\"expandAndCollapse\\\")===!0&&i.eachItemGraphicEl(function(e,i){e.off(\\\"click\\\").on(\\\"click\\\",function(){n.dispatchAction({type:\\\"treeExpandAndCollapse\\\",seriesId:t.id,dataIndex:i})})}),this._data=i},n.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])});var r=[],o=[];Po(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new eY;l.zoomLimit=t.get(\\\"scaleLimit\\\"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get(\\\"center\\\"),e),l.setZoom(t.get(\\\"zoom\\\")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},n.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fm(e,n,t)}),r.enable(t.get(\\\"roam\\\")),o.zoomLimit=t.get(\\\"scaleLimit\\\"),o.zoom=t.coordinateSystem.getZoom(),r.off(\\\"pan\\\").off(\\\"zoom\\\").on(\\\"pan\\\",function(e){om(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:\\\"treeRoam\\\",dx:e.dx,dy:e.dy})}).on(\\\"zoom\\\",function(e){am(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:\\\"treeRoam\\\",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},n.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t){t.setSymbolScale(n)})},n.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if(\\\"view\\\"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,r=e.getZoom(),o=(r-1)*n+1;return o/i},n.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},n.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},n.type=\\\"tree\\\",n}(cB),lY=Kr(),uY=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||\\\"\\\",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){I(t)&&(n=e,e=t,t=null),t=t||{},T(t)&&(t={order:t});var i,r=t.order||\\\"preorder\\\",o=this[t.attr||\\\"children\\\"];\\\"preorder\\\"===r&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;i>e;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;i>e;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||\\\"value\\\"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;en;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();i>n;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){function r(t,e){var n=t.value;s=Math.max(s,M(n)?n.length:1),a.push(t);var i=new uY(Wr(t.name,\\\"\\\"),o);e?Lm(i,e):o.root=i,o._nodes.push(i);var l=t.children;if(l)for(var u=0;ua&&(a=t.depth)});var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;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<=l}),o.data},n.prototype.getOrient=function(){var t=this.get(\\\"orient\\\");return\\\"horizontal\\\"===t?t=\\\"LR\\\":\\\"vertical\\\"===t&&(t=\\\"TB\\\"),t},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.formatTooltip=function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+\\\".\\\"+o,i=i.parentNode;return Fh(\\\"nameValue\\\",{name:o,value:r,noValue:isNaN(r)||null==r})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Nm(i,this),n.collapsed=!i.isExpand,n},n.type=\\\"series.tree\\\",n.layoutMode=\\\"box\\\",n.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},n}(sB);If(Ym);var pY=[\\\"treemapZoomToNode\\\",\\\"treemapRender\\\",\\\"treemapMove\\\"],dY=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.preventUsingHoverLayer=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){function n(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=l.getNodeByDataIndex(e),i=n?s[n.depth]:null;return t.parentModel=i||a,t})}var i={name:t.name,children:t.data};Zm(i);var r=t.levels||[],o=this.designatedVisualItemStyle={},a=new gE({itemStyle:o},this,e);r=t.levels=jm(r,e);var s=v(r||[],function(t){return new gE(t,a,e)},this),l=hY.createTree(i,this,n);return l.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),i=e.getName(t);return Fh(\\\"nameValue\\\",{name:i,value:n})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Nm(i,this),n.treePathInfo=n.treeAncestors,n},n.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},h(this.layoutInfo,t)},n.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Z(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},n.prototype.getViewRoot=function(){return this._viewRoot},n.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)},n.prototype.enableAriaDecal=function(){Um(this)},n.type=\\\"series.treemap\\\",n.layoutMode=\\\"box\\\",n.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\\\"}},emphasis:{itemStyle:{color:\\\"rgba(0,0,0,0.9)\\\"}}},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:[]},n}(sB),fY=8,gY=8,yY=5,vY=function(){function t(t){this.group=new HP,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel(\\\"breadcrumb\\\"),o=this.group;if(o.removeAll(),r.get(\\\"show\\\")&&n){var a=r.getModel(\\\"itemStyle\\\"),s=r.getModel(\\\"emphasis\\\"),l=a.getModel(\\\"textStyle\\\"),u=s.getModel([\\\"itemStyle\\\",\\\"textStyle\\\"]),h={pos:{left:r.get(\\\"left\\\"),right:r.get(\\\"right\\\"),top:r.get(\\\"top\\\"),bottom:r.get(\\\"bottom\\\")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get(\\\"emptyItemWidth\\\"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,s,l,u,i),hu(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Wr(i.getModel().get(\\\"name\\\"),\\\"\\\"),o=n.getTextRect(r),a=Math.max(o.width+2*fY,e.emptyItemWidth);e.totalWidth+=a+gY,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get([\\\"breadcrumb\\\",\\\"height\\\"]),h=lu(e.pos,e.box),p=e.totalWidth,d=e.renderList,f=i.getModel(\\\"itemStyle\\\").getItemStyle(),g=d.length-1;g>=0;g--){var y=d[g],v=y.node,m=y.width,x=y.text;p>h.width&&(p-=m-l,m=l,x=null);var _=new MN({shape:{points:qm(s,0,m,u,g===d.length-1,0===g)},style:c(n.getItemStyle(),{lineJoin:\\\"bevel\\\"}),textContent:new wR({style:pl(r,{text:x})}),textConfig:{position:\\\"inside\\\"},z2:1e4*zR,onclick:S(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState(\\\"emphasis\\\").style=pl(o,{text:x}),_.ensureState(\\\"emphasis\\\").style=f,Qa(_,i.get(\\\"focus\\\"),i.get(\\\"blurScope\\\"),i.get(\\\"disabled\\\")),this.group.add(_),Km(_,t,v),s+=m+gY}},t.prototype.remove=function(){this.group.removeAll()},t}(),mY=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,0>=e&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;r>i;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}(),xY=HP,_Y=mR,bY=3,wY=\\\"label\\\",SY=\\\"upperLabel\\\",MY=10*zR,IY=2*zR,TY=3*zR,CY=yo([[\\\"fill\\\",\\\"color\\\"],[\\\"stroke\\\",\\\"strokeColor\\\"],[\\\"lineWidth\\\",\\\"strokeWidth\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"]]),DY=function(t){var e=CY(t);\\nreturn e.stroke=e.fill=e.lineWidth=null,e},AY=Kr(),kY=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._state=\\\"ready\\\",e._storage=Jm(),e}return e(n,t),n.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:\\\"series\\\",subType:\\\"treemap\\\",query:i});if(!(p(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],a=Pm(i,o,t),s=i&&i.type,l=t.layoutInfo,u=!this._oldTree,h=this._storage,c=\\\"treemapRootToNode\\\"===s&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),f=t.get(\\\"animation\\\"),g=this._doRender(d,t,c);!f||u||s&&\\\"treemapZoomToNode\\\"!==s&&\\\"treemapRootToNode\\\"!==s?g.renderFinally():this._doAnimation(d,g,t,c),this._resetController(n),this._renderBreadcrumb(t,n,a)}},n.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new xY,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},n.prototype._doRender=function(t,e,n){function i(t,i,r,o){return Qm(e,h,c,n,u,p,t,i,r,o)}function r(t,e,n,o,a){function s(t){return t.getId()}function l(s,l){var u=null!=s?t[s]:null,h=null!=l?e[l]:null,c=i(u,h,n,a);c&&r(u&&u.viewChildren||[],h&&h.viewChildren||[],c,o,a+1)}o?(e=t,y(t,function(t,e){!t.isRemoved()&&l(e,e)})):new AF(e,t,s,s).add(l).update(l).remove(S(l,null)).execute()}function o(t){var e=Jm();return t&&y(t,function(t,n){var i=e[n];y(t,function(t){t&&(i.push(t),AY(t).willDelete=!0)})}),e}function a(){y(d,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(p,function(t){t.invisible=!0,t.dirty()})}var s=e.getData().tree,l=this._oldTree,u=Jm(),h=Jm(),c=this._storage,p=[];r(s.root?[s.root]:[],l&&l.root?[l.root]:[],t,s===l||!l,0);var d=o(c);return this._oldTree=s,this._storage=h,{lastsForAnimation:u,willDeleteEls:d,renderFinally:a}},n.prototype._doAnimation=function(t,e,n,i){var r=n.get(\\\"animationDurationUpdate\\\"),o=n.get(\\\"animationEasing\\\"),a=(I(r)?0:r)||0,s=(I(o)?null:o)||\\\"cubicOut\\\",l=$m();y(e.willDeleteEls,function(t,e){y(t,function(t){if(!t.invisible){var n,r=t.parent,o=AY(r);if(i&&\\\"drillDown\\\"===i.direction)n=r===i.rootNodeGroup?{shape:{x:0,y:0,width:o.nodeWidth,height:o.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;o.willDelete||(u=o.nodeWidth/2,h=o.nodeHeight/2),n=\\\"nodeGroup\\\"===e?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}n&&l.add(t,n,a,0,s)}})}),y(this._storage,function(t,n){y(t,function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof HP?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=h({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle(\\\"opacity\\\",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state=\\\"animating\\\",l.finished(Lk(function(){this._state=\\\"ready\\\",e.renderFinally()},this)).start()},n.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new iY(t.getZr()),e.enable(this.seriesModel.get(\\\"roam\\\")),e.on(\\\"pan\\\",Lk(this._onPan,this)),e.on(\\\"zoom\\\",Lk(this._onZoom,this)));var n=new dL(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,i){return n.contain(e,i)})},n.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},n.prototype._onPan=function(t){if(\\\"animating\\\"!==this._state&&(Math.abs(t.dx)>bY||Math.abs(t.dy)>bY)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:\\\"treemapMove\\\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},n.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if(\\\"animating\\\"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new dL(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=Be();We(s,s,[-e,-n]),Ye(s,s,[t.scale,t.scale]),We(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:\\\"treemapRender\\\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},n.prototype._initEvents=function(t){var e=this;t.on(\\\"click\\\",function(t){if(\\\"ready\\\"===e._state){var n=e.seriesModel.get(\\\"nodeClick\\\",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if(\\\"zoomToNode\\\"===n)e._zoomToNode(i);else if(\\\"link\\\"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get(\\\"link\\\",!0),s=o.get(\\\"target\\\",!0)||\\\"blank\\\";a&&au(a,s)}}}}},this)},n.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get(\\\"leafDepth\\\",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vY(this.group))).render(t,e,n.node,function(e){\\\"animating\\\"!==i._state&&(Rm(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},n.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Jm(),this._state=\\\"ready\\\",this._breadcrumb&&this._breadcrumb.remove()},n.prototype.dispose=function(){this._clearController()},n.prototype._zoomToNode=function(t){this.api.dispatchAction({type:\\\"treemapZoomToNode\\\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype._rootToNode=function(t){this.api.dispatchAction({type:\\\"treemapRootToNode\\\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:\\\"viewChildren\\\",order:\\\"preorder\\\"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},n.type=\\\"treemap\\\",n}(cB),LY=y,PY=A,OY=-1,RY=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=s(e);this.type=i,this.mappingMethod=n,this._normalizeData=NY[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],\\\"piecewise\\\"===n?(ix(r),ex(r)):\\\"category\\\"===n?r.categories?nx(r):ix(r,!0):(W(\\\"linear\\\"!==n||r.dataExtent),ix(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Lk(this._normalizeData,this)},t.listVisualTypes=function(){return b(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){A(t)?y(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=M(e)?[]:A(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&LY(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(M(t))t=t.slice();else{if(!PY(t))return[];var e=[];LY(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return\\\"color\\\"===e&&\\\"color\\\"!==t&&0===t.indexOf(\\\"color\\\")?1:-1}),t},t.dependsOn=function(t,e){return\\\"color\\\"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){function i(e,n){var i=Math.abs(e-t);o>i&&(o=i,r=n)}for(var r,o=1/0,a=0,s=e.length;s>a;a++){var l=e[a].value;if(null!=l){if(l===t||T(l)&&l===t+\\\"\\\")return a;n&&i(l,a)}}for(var a=0,s=e.length;s>a;a++){var u=e[a],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if(px(c[1],t,h[1]))return a}else if(1/0===h[1]){if(px(c[0],h[0],t))return a}else if(px(c[0],h[0],t)&&px(c[1],t,h[1]))return a;n&&i(h[0],a),n&&i(h[1],a)}}return n?1/0===t?e.length-1:t===-1/0?0:r:void 0},t.visualHandlers={color:{applyVisual:ax(\\\"color\\\"),getColorMapper:function(){var t=this.option;return Lk(\\\"category\\\"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),sx.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Gn(e,t.parsedVisual,i),r?i:Xn(i,\\\"rgba\\\")},this)},_normalizedToVisual:{linear:function(t){return Xn(Gn(t,this.option.parsedVisual),\\\"rgba\\\")},category:sx,piecewise:function(t,e){var n=hx.call(this,e);return null==n&&(n=Xn(Gn(t,this.option.parsedVisual),\\\"rgba\\\")),n},fixed:lx}},colorHue:rx(function(t,e){return Hn(t,e)}),colorSaturation:rx(function(t,e){return Hn(t,null,e)}),colorLightness:rx(function(t,e){return Hn(t,null,null,e)}),colorAlpha:rx(function(t,e){return Yn(t,e)}),decal:{applyVisual:ax(\\\"decal\\\"),_normalizedToVisual:{linear:null,category:sx,piecewise:null,fixed:null}},opacity:{applyVisual:ax(\\\"opacity\\\"),_normalizedToVisual:ux([0,1])},liftZ:{applyVisual:ax(\\\"liftZ\\\"),_normalizedToVisual:{linear:lx,category:lx,piecewise:lx,fixed:lx}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n(\\\"symbol\\\",i)},_normalizedToVisual:{linear:ox,category:sx,piecewise:function(t,e){var n=hx.call(this,e);return null==n&&(n=ox.call(this,t)),n},fixed:lx}},symbolSize:{applyVisual:ax(\\\"symbolSize\\\"),_normalizedToVisual:ux([0,1])}},t}(),NY={linear:function(t){return rr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=RY.findPieceIndex(t,e,!0);return null!=n?rr(n,[0,e.length-1],[0,1],!0):void 0},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?OY:e},fixed:J},EY=\\\"itemStyle\\\",zY=Kr(),BY={seriesType:\\\"treemap\\\",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||dx(n,{},t.getViewRoot().getAncestors(),t)}},VY=Math.max,FY=Math.min,GY=z,WY=y,HY=[\\\"itemStyle\\\",\\\"borderWidth\\\"],YY=[\\\"itemStyle\\\",\\\"gapWidth\\\"],XY=[\\\"upperLabel\\\",\\\"show\\\"],UY=[\\\"upperLabel\\\",\\\"height\\\"],ZY={seriesType:\\\"treemap\\\",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=uu(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=or(GY(s.width,l[0]),r),c=or(GY(s.height,l[1]),o),p=i&&i.type,d=[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],f=Pm(i,d,t),g=\\\"treemapRender\\\"===p||\\\"treemapMove\\\"===p?i.rootRect:null,y=t.getViewRoot(),v=Om(y);if(\\\"treemapMove\\\"!==p){var m=\\\"treemapZoomToNode\\\"===p?Ax(t,f,y,u,c):g?[g.width,g.height]:[u,c],x=a.sort;x&&\\\"asc\\\"!==x&&\\\"desc\\\"!==x&&(x=\\\"desc\\\");var _={squareRatio:a.squareRatio,sort:x,leafDepth:a.leafDepth};y.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};y.setLayout(b),bx(y,_,!1,0),b=y.getLayout(),WY(v,function(t,e){var n=(v[e+1]||y).getValue();t.setLayout(h({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))})}var w=t.getData().tree.root;w.setLayout(kx(s,g,f),!0),t.setLayoutInfo(s),Lx(w,new dL(-s.x,-s.y,r,o),v,y,0)}};If(Ox);var jY=2,qY=4,KY=function(t){function n(e,n,i,r){var o=t.call(this)||this;o.z2=jY,o.textConfig={inside:!0},TR(o).seriesIndex=n.seriesIndex;var a=new wR({z2:qY,silent:e.getModel().get([\\\"label\\\",\\\"silent\\\"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return e(n,t),n.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;TR(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel(\\\"emphasis\\\"),l=e.getLayout(),u=h({},l);u.label=null;var c=e.getVisual(\\\"style\\\");c.lineJoin=\\\"bevel\\\";var p=e.getVisual(\\\"decal\\\");p&&(c.decal=_p(p,r));var d=Vg(a.getModel(\\\"itemStyle\\\"),u,!0);h(u,d),y(NR,function(t){var e=o.ensureState(t),n=a.getModel([t,\\\"itemStyle\\\"]);e.style=n.getItemStyle();var i=Vg(n,u);i&&(e.shape=i)}),t?(o.setShape(u),o.shape.r=l.r0,ks(o,{shape:{r:l.r}},n,e.dataIndex)):(As(o,{shape:u},n),Ns(o)),o.useStyle(c),this._updateLabel(n);var f=a.getShallow(\\\"cursor\\\");f&&o.attr(\\\"cursor\\\",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get(\\\"focus\\\"),v=\\\"ancestor\\\"===g?e.getAncestorsIndices():\\\"descendant\\\"===g?e.getDescendantIndices():g;Qa(this,v,s.get(\\\"blurScope\\\"),s.get(\\\"disabled\\\"))},n.prototype._updateLabel=function(t){function e(t,e){var n=t.get(e);return null==n?r.get(e):n}var n=this,i=this.node.getModel(),r=i.getModel(\\\"label\\\"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),h=this,c=h.getTextContent(),p=this.node.dataIndex,d=r.get(\\\"minAngle\\\")/180*Math.PI,f=r.get(\\\"show\\\")&&!(null!=d&&Math.abs(a)Math.PI/2?\\\"right\\\":\\\"left\\\"):S&&\\\"center\\\"!==S?\\\"left\\\"===S?(b=o.r0+w,s>Math.PI/2&&(S=\\\"right\\\")):\\\"right\\\"===S&&(b=o.r-w,s>Math.PI/2&&(S=\\\"left\\\")):(b=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,S=\\\"center\\\"),g.style.align=S,g.style.verticalAlign=e(d,\\\"verticalAlign\\\")||\\\"middle\\\",g.x=b*l+o.cx,g.y=b*u+o.cy;var M=e(d,\\\"rotate\\\"),I=0;\\\"radial\\\"===M?(I=Wo(-s),I>Math.PI/2&&I<1.5*Math.PI&&(I+=Math.PI)):\\\"tangential\\\"===M?(I=Math.PI/2-s,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):D(M)&&(I=M*Math.PI/180),g.rotation=Wo(I)}),c.dirtyStyle()},n}(_N),$Y=\\\"sunburstRootToNode\\\",JY=\\\"sunburstHighlight\\\",QY=\\\"sunburstUnhighlight\\\",tX=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){function i(t,e){function n(t){return t.getId()}function i(n,i){var o=null==n?null:t[n],a=null==i?null:e[i];r(o,a)}(0!==t.length||0!==e.length)&&new AF(e,t,n,n).add(i).update(i).remove(S(i,null)).execute()}function r(i,r){if(p||!i||i.getValue()||(i=null),i!==u&&r!==u)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),l.setItemGraphicEl(i.dataIndex,r.piece)):o(r);else if(i){var a=new KY(i,t,e,n);c.add(a),l.setItemGraphicEl(i.dataIndex,a)}}function o(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function a(i,r){r.depth>0?(s.virtualPiece?s.virtualPiece.updateData(!1,i,t,e,n):(s.virtualPiece=new KY(i,t,e,n),c.add(s.virtualPiece)),r.piece.off(\\\"click\\\"),s.virtualPiece.on(\\\"click\\\",function(){s._rootToNode(r.parentNode)})):s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}var s=this;this.seriesModel=t,this.api=n,this.ecModel=e;var l=t.getData(),u=l.tree.root,h=t.getViewRoot(),c=this.group,p=t.get(\\\"renderLabelForZeroData\\\"),d=[];h.eachNode(function(t){d.push(t)});var f=this._oldChildren||[];i(d,f),a(u,h),this._initEvents(),this._oldChildren=d},n.prototype._initEvents=function(){var t=this;this.group.off(\\\"click\\\"),this.group.on(\\\"click\\\",function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get(\\\"nodeClick\\\");if(\\\"rootToNode\\\"===r)t._rootToNode(i);else if(\\\"link\\\"===r){var o=i.getModel(),a=o.get(\\\"link\\\");if(a){var s=o.get(\\\"target\\\",!0)||\\\"_blank\\\";au(a,s)}}n=!0}})})},n.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$Y,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},n.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},n.type=\\\"sunburst\\\",n}(cB),eX=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.ignoreStyleOnData=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){function n(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=o.getNodeByDataIndex(e),i=r[n.depth];return i&&(t.parentModel=i),t})}var i={name:t.name,children:t.data};Nx(i);var r=this._levelModels=v(t.levels||[],function(t){return new gE(t,this,e)},this),o=hY.createTree(i,this,n);return o.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Nm(i,this),n},n.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},n.prototype.getViewRoot=function(){return this._viewRoot},n.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)},n.prototype.enableAriaDecal=function(){Um(this)},n.type=\\\"series.sunburst\\\",n.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\\\"},n}(sB),nX=Math.PI/180;If(Fx);for(var iX,rX={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\\\"},oX=b(rX),aX={\\\"alignment-baseline\\\":\\\"textBaseline\\\",\\\"stop-color\\\":\\\"stopColor\\\"},sX=b(aX),lX=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=Gx(t);this._defsUsePending=[];var i=new HP;this._root=i;var r=[],o=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),Ux(n,i,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,i,r,null,!1,!1),l=l.nextSibling;qx(this._defs,this._defsUsePending),this._defsUsePending=[];var u,h;if(o){var c=Kx(o);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&null!=a&&null!=s&&(h=t_(u,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;i=new HP,i.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new mR({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:u,viewBoxTransform:h,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if(\\\"defs\\\"===s&&(r=!0),\\\"text\\\"===s&&(o=!0),\\\"defs\\\"===s||\\\"switch\\\"===s)a=e;else{if(!r){var u=iX[s];if(u&&$(iX,s)){a=u.call(this,t,e);var h=t.getAttribute(\\\"name\\\");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),\\\"g\\\"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=uX[s];if(p&&$(uX,s)){var d=p.call(this,t),f=t.getAttribute(\\\"id\\\");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new cR({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Yx(e,n),Ux(t,n,this._defsUsePending,!1,!1),Zx(n,e);var i=n.style,r=i.fontSize;r&&9>r&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+\\\"px\\\",i.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){iX={g:function(t,e){var n=new HP;return Yx(e,n),Ux(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new mR;return Yx(e,n),Ux(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 oN;return Yx(e,n),Ux(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 AN;return Yx(e,n),Ux(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 sN;return Yx(e,n),Ux(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&&(n=Xx(i));var r=new MN({shape:{points:n||[]},silent:!0});return Yx(e,r),Ux(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute(\\\"points\\\");i&&(n=Xx(i));var r=new TN({shape:{points:n||[]},silent:!0});return Yx(e,r),Ux(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new fR;return Yx(e,n),Ux(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\\\",r=t.getAttribute(\\\"dx\\\")||\\\"0\\\",o=t.getAttribute(\\\"dy\\\")||\\\"0\\\";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new HP;return Yx(e,a),Ux(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute(\\\"x\\\"),i=t.getAttribute(\\\"y\\\");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute(\\\"dx\\\")||\\\"0\\\",o=t.getAttribute(\\\"dy\\\")||\\\"0\\\",a=new HP;return Yx(e,a),Ux(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute(\\\"d\\\")||\\\"\\\",i=vs(n);return Yx(e,i),Ux(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),uX={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),r=parseInt(t.getAttribute(\\\"y2\\\")||\\\"0\\\",10),o=new zN(e,n,i,r);return Wx(t,o),Hx(t,o),o},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),r=new BN(e,n,i);return Wx(t,r),Hx(t,r),r}},hX=/^url\\\\(\\\\s*#(.*?)\\\\)/,cX=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g,pX=/(translate|scale|rotate|skewX|skewY|matrix)\\\\(([\\\\-\\\\s0-9\\\\.eE,]*)\\\\)/g,dX=Math.PI/180,fX=/([^\\\\s:;]+)\\\\s*:\\\\s*([^:;]+)/g,gX=Z([\\\"rect\\\",\\\"circle\\\",\\\"line\\\",\\\"ellipse\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"path\\\",\\\"text\\\",\\\"tspan\\\",\\\"g\\\"]),yX=function(){function t(t,e){this.type=\\\"geoSVG\\\",this._usedGraphicMap=Z(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Gx(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=i_(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&e_(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,W(null!=n)}catch(i){throw new Error(\\\"Invalid svg format\\\\n\\\"+i.message)}var r=new HP;r.add(n),r.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,c=void 0,p=void 0;if(null!=o?(u=0,c=o):s&&(u=s.x,c=s.width),null!=a?(h=0,p=a):s&&(h=s.y,p=s.height),null==u||null==h){var d=n.getBoundingRect();null==u&&(u=d.x,c=d.width),null==h&&(h=d.y,p=d.height)}l=this._boundingRect=new dL(u,h,c,p)}if(s){var f=t_(s,l);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}r.setClipPath(new mR({shape:l.plain()}));var g=[];return y(e.named,function(t){null!=gX.get(t.svgNodeTagLower)&&(g.push(t),n_(t.el))}),{root:r,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n?n:(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}(),vX=[126,25],mX=\\\"南海诸岛\\\",xX=[[[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]]],_X=0;_X0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:c};\\\"geoJSON\\\"===s.resourceType?this._buildGeoJSON(g):\\\"geoSVG\\\"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){function e(t,e){return e&&(t=e(t)),t&&[t[0]*s.scaleX+s.x,t[1]*s.scaleY+s.y]}function n(t){for(var n=[],i=!c&&h&&h.project,r=0;ri;i++){var o=t.getName(i);e.set(o,!0)}var a=CX.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y(a.regions,function(t){var i=t.name;e.get(i)||n.push(i)}),t.appendValues([],n),t},n.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent(\\\"geo\\\",t):null},n.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},n.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension(\\\"value\\\"),t)},n.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},n.prototype.formatTooltip=function(t){for(var e=this.getData(),n=this.getRawValue(t),i=e.getName(t),r=this.seriesGroup,o=[],a=0;a-1&&(n.style.stroke=n.style.fill,n.style.fill=\\\"#fff\\\",n.style.lineWidth=2),n},n.type=\\\"series.map\\\",n.dependencies=[\\\"geo\\\"],n.layoutMode=\\\"box\\\",n.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\\\"},n}(sB),EX={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},zX=[\\\"lng\\\",\\\"lat\\\"],BX=function(t){function n(e,n,i){var r=t.call(this,e)||this;r.dimensions=zX,r.type=\\\"geo\\\",r._nameCoordMap=Z(),r.map=n;var o=i.projection,a=CX.load(n,i.nameMap,i.nameProperty),s=CX.getGeoResource(n),l=(r.resourceType=s?s.type:null,r.regions=a.regions),u=EX[s.type];r._regionsMap=a.regionsMap,r.regions=a.regions,r.projection=o;var h;if(o)for(var c=0;c0&&(x[0]=-x[0],x[1]=-x[1]);var b=m[0]<0?-1:1;if(\\\"start\\\"!==r.__position&&\\\"end\\\"!==r.__position){var w=-Math.atan2(m[1],m[0]);h[0].8?\\\"left\\\":c[0]<-.8?\\\"right\\\":\\\"center\\\",d=c[1]>.8?\\\"top\\\":c[1]<-.8?\\\"bottom\\\":\\\"middle\\\";break;case\\\"start\\\":r.x=-c[0]*g+u[0],r.y=-c[1]*y+u[1],p=c[0]>.8?\\\"right\\\":c[0]<-.8?\\\"left\\\":\\\"center\\\",d=c[1]>.8?\\\"bottom\\\":c[1]<-.8?\\\"top\\\":\\\"middle\\\";break;case\\\"insideStartTop\\\":case\\\"insideStart\\\":case\\\"insideStartBottom\\\":r.x=g*b+u[0],r.y=u[1]+S,p=m[0]<0?\\\"right\\\":\\\"left\\\",r.originX=-g*b,r.originY=-S;break;case\\\"insideMiddleTop\\\":case\\\"insideMiddle\\\":case\\\"insideMiddleBottom\\\":case\\\"middle\\\":r.x=_[0],r.y=_[1]+S,p=\\\"center\\\",r.originY=-S;break;case\\\"insideEndTop\\\":case\\\"insideEnd\\\":case\\\"insideEndBottom\\\":r.x=-g*b+h[0],r.y=h[1]+S,p=m[0]>=0?\\\"right\\\":\\\"left\\\",r.originX=g*b,r.originY=-S}r.scaleX=r.scaleY=o,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||p})}}}},n}(HP),qX=function(){function t(t){this.group=new HP,this._LineCtor=t||jX}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=O_(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=O_(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||P_(t)||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=I(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},n.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate(\\\"\\\",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},n.prototype._getLineLength=function(t){return Fk(t.__p1,t.__cp1)+Fk(t.__cp1,t.__p2)},n.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]},n.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},n.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=mn,l=xn;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(h,u)-Math.PI/2,(\\\"line\\\"===this._symbolType||\\\"rect\\\"===this._symbolType||\\\"roundRect\\\"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;r>o&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),u=n[o],h=n[o+1];t.x=u[0]*(1-l)+l*h[0],t.y=u[1]*(1-l)+l*h[1];var c=t.__t<1?h[0]-u[0]:u[0]-h[0],p=t.__t<1?h[1]-u[1]:u[1]-h[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},n}(KX),QX=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),tU=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new QX},n.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;o>a;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},n.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;l>c;c++){var p=i[s++],d=i[s++];if(Vo(u,h,p,d,o,t,e))return a}a++}else for(var a=0,s=0;s0){var f=(u+p)/2-(h-d)*r,g=(h+d)/2-(p-u)*r;if(Go(u,h,f,g,p,d,o,t,e))return a}else if(Vo(u,h,p,d,o,t,e))return a;a++}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(r.dataIndex=e+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),nU={seriesType:\\\"lines\\\",plan:pc(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get(\\\"polyline\\\"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;hf;f++)p=e.dataToPoint(a[f],!1,p),s[c++]=p[0],s[c++]=p[1]}o.setLayout(\\\"linesPoints\\\",s)}else for(var h=r.start;hv;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get([\\\"lineStyle\\\",\\\"curveness\\\"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(h,y)}}}}}},iU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get(\\\"zlevel\\\"),a=t.get([\\\"effect\\\",\\\"trailLength\\\"]),s=n.getZr(),l=\\\"svg\\\"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get(\\\"clip\\\",!0)&&Lg(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},n.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},n.prototype.incrementalRender=function(t,e){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},n.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},n.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=nU.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},n.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get(\\\"polyline\\\"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new eU:new qX(r?i?JX:$X:i?KX:jX),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},n.prototype._showEffect=function(t){return!!t.get([\\\"effect\\\",\\\"show\\\"])},n.prototype._clearLayer=function(t){var e=t.getZr(),n=\\\"svg\\\"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},n.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},n.prototype.dispose=function(t,e){this.remove(t,e)},n.type=\\\"lines\\\",n}(cB),rU=\\\"undefined\\\"==typeof Uint32Array?Array:Uint32Array,oU=\\\"undefined\\\"==typeof Float64Array?Array:Float64Array,aU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath=\\\"lineStyle\\\",e.visualDrawType=\\\"stroke\\\",e}return e(n,t),n.prototype.init=function(e){e.data=e.data||[],E_(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},n.prototype.mergeOption=function(e){if(E_(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},n.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=j(this._flatCoords,e.flatCoords),this._flatCoordsOffset=j(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},n.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow(\\\"coords\\\");return n},n.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},n.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;i>r;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}for(var o=this._getCoordsFromItemModel(t),r=0;rl;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var h=0;u>h;h++){var c=t[l++],p=t[l++];r[o++]=c,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},n.prototype.getInitialData=function(t){var e=new WF([\\\"value\\\"],this);return e.hasItemOption=!1,e.initData(t.data,[],function(t,n,i,r){if(t instanceof Array)return 0/0;e.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),e},n.prototype.formatTooltip=function(t){var e=this.getData(),n=e.getItemModel(t),i=n.get(\\\"name\\\");if(i)return i;var r=n.get(\\\"fromName\\\"),o=n.get(\\\"toName\\\"),a=[];return null!=r&&a.push(r),null!=o&&a.push(o),Fh(\\\"nameValue\\\",{name:a.join(\\\" > \\\")})},n.prototype.preventIncremental=function(){return!!this.get([\\\"effect\\\",\\\"show\\\"])},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get(\\\"progressive\\\"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get(\\\"progressiveThreshold\\\"):t},n.prototype.getZLevelKey=function(){var t=this.getModel(\\\"effect\\\"),e=t.get(\\\"trailLength\\\");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get(\\\"show\\\")&&e>0?e+\\\"\\\":\\\"\\\"},n.type=\\\"series.lines\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"calendar\\\"],n.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}},n}(sB),sU={seriesType:\\\"lines\\\",reset:function(t){function e(t,e){var n=t.getItemModel(e),i=z_(n.getShallow(\\\"symbol\\\",!0)),r=z_(n.getShallow(\\\"symbolSize\\\",!0));\\ni[0]&&t.setItemVisual(e,\\\"fromSymbol\\\",i[0]),i[1]&&t.setItemVisual(e,\\\"toSymbol\\\",i[1]),r[0]&&t.setItemVisual(e,\\\"fromSymbolSize\\\",r[0]),r[1]&&t.setItemVisual(e,\\\"toSymbolSize\\\",r[1])}var n=z_(t.get(\\\"symbol\\\")),i=z_(t.get(\\\"symbolSize\\\")),r=t.getData();return r.setVisual(\\\"fromSymbol\\\",n&&n[0]),r.setVisual(\\\"toSymbol\\\",n&&n[1]),r.setVisual(\\\"fromSymbolSize\\\",i&&i[0]),r.setVisual(\\\"toSymbolSize\\\",i&&i[1]),{dataEach:r.hasItemOption?e:null}}};If(B_);var lU=\\\"-->\\\",uU=function(t){return t.get(\\\"autoCurveness\\\")||null},hU=function(t,e){var n=uU(t),i=20,r=[];if(D(n))i=n;else if(M(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;o>a;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},cU=function(t,e,n){var i=[t.id,t.dataIndex].join(\\\".\\\"),r=[e.id,e.dataIndex].join(\\\".\\\");return[n.uid,i,r].join(lU)},pU=function(t){var e=t.split(lU);return[e[0],e[2],e[1]].join(lU)},dU=function(t,e){var n=cU(t.node1,t.node2,e);return e.__edgeMap[n]},fU=function(t,e){var n=gU(cU(t.node1,t.node2,e),e),i=gU(cU(t.node2,t.node1,e),e);return n+i},gU=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0},yU=Math.PI,vU=[],mU={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum(\\\"value\\\"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue(\\\"value\\\"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n})},symbolSize:function(t,e,n,i,r,o,a){var s=0;vU.length=a;var l=q_(t);e.eachNode(function(t){var e=K_(t);isNaN(e)&&(e=2),0>e&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=yU/2),vU[t.dataIndex]=n,s+=2*n});var u=(2*yU-s)/a/2,h=0;e.eachNode(function(t){var e=u+vU[t.dataIndex];h+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(h)+r,i*Math.sin(h)+o]),h+=e})}},xU=re,_U=[],bU=[],wU=[],SU=mn,MU=Gk,IU=Math.abs,TU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){var n=new CW,i=new qX,r=this.group;this._controller=new iY(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(ab(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):As(s,l,t)}ob(t.getGraph(),q_(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get([\\\"force\\\",\\\"layoutAnimation\\\"]);c&&this._startForceLayoutIteration(c,p);var d=t.get(\\\"layout\\\");u.graph.eachNode(function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off(\\\"drag\\\").off(\\\"dragend\\\");var a=o.get(\\\"draggable\\\");a&&r.on(\\\"drag\\\",function(o){switch(d){case\\\"force\\\":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case\\\"circular\\\":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),$_(t,\\\"symbolSize\\\",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case\\\"none\\\":default:u.setItemLayout(n,[r.x,r.y]),Z_(t.getGraph(),t),i.updateLayout(t)}}).on(\\\"dragend\\\",function(){c&&c.setUnfixed(n)}),r.setDraggable(a,!!o.get(\\\"cursor\\\"));var s=o.get([\\\"emphasis\\\",\\\"focus\\\"]);\\\"adjacency\\\"===s&&(TR(r).focus=e.getAdjacentDataIndices())}}),u.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get([\\\"emphasis\\\",\\\"focus\\\"]);e&&\\\"adjacency\\\"===n&&(TR(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f=\\\"circular\\\"===t.get(\\\"layout\\\")&&t.get([\\\"circular\\\",\\\"rotateLabel\\\"]),g=u.getLayout(\\\"cx\\\"),y=u.getLayout(\\\"cy\\\");u.graph.eachNode(function(t){J_(t,f,g,y)}),this._firstRender=!1},n.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},n.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},n.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;return r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fm(e,n,t)}),ab(t.coordinateSystem)?(r.enable(t.get(\\\"roam\\\")),o.zoomLimit=t.get(\\\"scaleLimit\\\"),o.zoom=t.coordinateSystem.getZoom(),void r.off(\\\"pan\\\").off(\\\"zoom\\\").on(\\\"pan\\\",function(e){om(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:\\\"graphRoam\\\",dx:e.dx,dy:e.dy})}).on(\\\"zoom\\\",function(e){am(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:\\\"graphRoam\\\",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),ob(t.getGraph(),q_(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):void r.disable()},n.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=q_(t);e.eachItemGraphicEl(function(t){t&&t.setSymbolScale(n)})},n.prototype.updateLayout=function(t){ob(t.getGraph(),q_(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},n.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},n.type=\\\"graph\\\",n}(cB),CU=function(){function t(t){this.type=\\\"graph\\\",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?\\\"\\\"+e:\\\"\\\"+t;var n=this._nodesMap;if(!n[sb(t)]){var i=new DU(t,e);return i.hostGraph=this,this.nodes.push(i),n[sb(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[sb(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(D(t)&&(t=this.nodes[t]),D(e)&&(e=this.nodes[e]),t instanceof DU||(t=i[sb(t)]),e instanceof DU||(e=i[sb(e)]),t&&e){var o=t.id+\\\"-\\\"+e.id,a=new AU(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof DU&&(t=t.id),e instanceof DU&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+\\\"-\\\"+e]:n[t+\\\"-\\\"+e]||n[e+\\\"-\\\"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;i>r;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;i>r;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof DU||(e=this._nodesMap[sb(e)]),e){for(var r=\\\"out\\\"===n?\\\"outEdges\\\":\\\"in\\\"===n?\\\"inEdges\\\":\\\"edges\\\",o=0;or;r++)n[r].dataIndex=-1;for(var r=0,o=t.count();o>r;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;o>r;r++)i[r].dataIndex=-1;for(var r=0,o=e.count();o>r;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r \\\"),value:r.value,noValue:null==r.value})}var u=ec({series:this,dataIndex:t,multipleSeries:e});return u},n.prototype._updateCategoriesData=function(){var t=v(this.option.categories||[],function(t){return null!=t.value?t:h({value:0},t)}),e=new WF([\\\"value\\\"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(\\\"force\\\"===this.get(\\\"layout\\\")&&this.get([\\\"force\\\",\\\"layoutAnimation\\\"]))},n.type=\\\"series.graph\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],n.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\\\"}}},n}(sB),LU={type:\\\"graphRoam\\\",event:\\\"graphRoam\\\",update:\\\"none\\\"};If(hb);var PU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.defaultValueDimensions=[{name:\\\"min\\\",defaultTooltip:!0},{name:\\\"Q1\\\",defaultTooltip:!0},{name:\\\"median\\\",defaultTooltip:!0},{name:\\\"Q3\\\",defaultTooltip:!0},{name:\\\"max\\\",defaultTooltip:!0}],e.visualDrawType=\\\"stroke\\\",e}return e(n,t),n.type=\\\"series.boxplot\\\",n.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"grid\\\"],n.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},n}(sB);f(PU,OH,!0);var OU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=t.getData(),n=this.group,i=this._data;this._data||n.removeAll();var r=\\\"horizontal\\\"===t.get(\\\"layout\\\")?1:0;e.diff(i).add(function(t){if(e.hasValue(t)){var i=e.getItemLayout(t),o=cb(i,e,t,r,!0);e.setItemGraphicEl(t,o),n.add(o)}}).update(function(t,o){var a=i.getItemGraphicEl(o);if(!e.hasValue(t))return void n.remove(a);var s=e.getItemLayout(t);a?(Ns(a),pb(s,a,e,t)):a=cb(s,e,t,r),n.add(a),e.setItemGraphicEl(t,a)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)}).execute(),this._data=e},n.prototype.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},n.type=\\\"boxplot\\\",n}(cB),RU=function(){function t(){}return t}(),NU=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"boxplotBoxPath\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new RU},n.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;4>i;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();iHU)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);\\\"none\\\"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Lb(this,\\\"mousemove\\\")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;\\\"jump\\\"===i&&this._throttledDispatchExpand.debounceNextCall(e.get(\\\"axisExpandDebounce\\\")),this._throttledDispatchExpand(\\\"none\\\"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:\\\"jump\\\"===i?null:{duration:0}})}}},UU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},n.prototype.mergeOption=function(t){var e=this.option;t&&l(e,t,!0),this._initDimensions()},n.prototype.contains=function(t,e){var n=t.get(\\\"parallelIndex\\\");return null!=n&&e.getComponent(\\\"parallel\\\",n)===this},n.prototype.setAxisExpand=function(t){y([\\\"axisExpandable\\\",\\\"axisExpandCenter\\\",\\\"axisExpandCount\\\",\\\"axisExpandWidth\\\",\\\"axisExpandWindow\\\"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},n.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=x(this.ecModel.queryComponents({mainType:\\\"parallelAxis\\\"}),function(t){return(t.get(\\\"parallelIndex\\\")||0)===this.componentIndex},this);y(n,function(n){t.push(\\\"dim\\\"+n.get(\\\"dim\\\")),e.push(n.componentIndex)})},n.type=\\\"parallel\\\",n.dependencies=[\\\"parallelAxis\\\"],n.layoutMode=\\\"box\\\",n.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},n}(HE),ZU=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||\\\"value\\\",a.axisIndex=o,a}return e(n,t),n.prototype.isHorizontal=function(){return\\\"horizontal\\\"!==this.coordinateSystem.getModel().get(\\\"layout\\\")},n}(RG),jU=y,qU=Math.min,KU=Math.max,$U=Math.floor,JU=Math.ceil,QU=ar,tZ=Math.PI,eZ=function(){function t(t,e,n){this.type=\\\"parallel\\\",this._axesMap=Z(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e){var n=t.dimensions,i=t.parallelAxisIndex;jU(n,function(t,n){var r=i[n],o=e.getComponent(\\\"parallelAxis\\\",r),a=this._axesMap.set(t,new ZU(t,cf(o),[0,0],o.get(\\\"type\\\"),r)),s=\\\"category\\\"===a.type;a.onBand=s&&o.get(\\\"boundaryGap\\\"),a.inverse=o.get(\\\"inverse\\\"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();jU(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),hf(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=[\\\"x\\\",\\\"y\\\"],r=[\\\"width\\\",\\\"height\\\"],o=e.get(\\\"layout\\\"),a=\\\"horizontal\\\"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=Nb(e.get(\\\"axisExpandWidth\\\"),l),c=Nb(e.get(\\\"axisExpandCount\\\")||0,[0,u]),p=e.get(\\\"axisExpandable\\\")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get(\\\"axisExpandWindow\\\");if(d)t=Nb(d[1]-d[0],l),d[1]=d[0]+t;else{t=Nb(h*(c-1),l);var f=e.get(\\\"axisExpandCenter\\\")||$U(u/2);d=[h*f-t/2],d[1]=d[0]+t}var g=(s-t)/(u-c);3>g&&(g=0);var y=[$U(QU(d[0]/h,1))+1,JU(QU(d[1]/h,1))-1],v=g/h*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),jU(n,function(e,n){var o=(i.axisExpandable?zb:Eb)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:tZ/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=Be();He(h,h,u),We(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];y(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;i>u;u++){var h=void 0;if(l){h=\\\"active\\\";for(var c=t.getValues(a,u),p=0,d=o.length;d>p;p++){var f=s[p].getActiveState(c[p]);if(\\\"inactive\\\"===f){h=\\\"inactive\\\";break}}}else h=\\\"normal\\\";e(h,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;r>i;i++)\\\"normal\\\"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Zs([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return s(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:\\\"none\\\",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l=\\\"slide\\\",u=e.axisCollapseWidth,h=this._model.get(\\\"axisExpandSlideTriggerArea\\\"),c=null!=h[0];if(u)c&&u&&sr*(1-h[0])?(l=\\\"jump\\\",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?Pb(a,i,o,\\\"all\\\"):l=\\\"none\\\";else{var p=i[1]-i[0],d=o[1]*s/p;i=[KU(0,d-p/2)],i[1]=qU(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},t}(),nZ={create:Bb},iZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.activeIntervals=[],e}return e(n,t),n.prototype.getAreaSelectStyle=function(){return yo([[\\\"fill\\\",\\\"color\\\"],[\\\"lineWidth\\\",\\\"borderWidth\\\"],[\\\"stroke\\\",\\\"borderColor\\\"],[\\\"width\\\",\\\"width\\\"],[\\\"opacity\\\",\\\"opacity\\\"]])(this.getModel(\\\"areaSelectStyle\\\"))},n.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=s(t);if(e)for(var n=e.length-1;n>=0;n--)sr(e[n])},n.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return\\\"normal\\\";if(null==t||isNaN(+t))return\\\"inactive\\\";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return\\\"active\\\"}else for(var i=0,r=e.length;r>i;i++)if(e[i][0]<=t&&t<=e[i][1])return\\\"active\\\";return\\\"inactive\\\"},n}(HE);f(iZ,gG);var rZ=!0,oZ=Math.min,aZ=Math.max,sZ=Math.pow,lZ=1e4,uZ=6,hZ=6,cZ=\\\"globalPan\\\",pZ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},dZ={w:\\\"ew\\\",e:\\\"ew\\\",n:\\\"ns\\\",s:\\\"ns\\\",ne:\\\"nesw\\\",sw:\\\"nesw\\\",nw:\\\"nwse\\\",se:\\\"nwse\\\"},fZ={brushStyle:{lineWidth:2,stroke:\\\"rgba(210,219,238,0.3)\\\",fill:\\\"#D2DBEE\\\"},transformable:!0,brushMode:\\\"single\\\",removeOnClick:!1},gZ=0,yZ=function(t){function n(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new HP,n._uid=\\\"brushController_\\\"+gZ++,y(vZ,function(t,e){this._handlers[e]=Lk(t,this)},n),n}return e(n,t),n.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},n.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||sm(e,cZ,this._uid),y(this._handlers,function(t,n){e.on(n,t)}),this._brushType=t.brushType,this._brushOption=l(s(fZ),t,!0)},n.prototype._doDisableBrush=function(){var t=this._zr;lm(t,cZ,this._uid),y(this._handlers,function(e,n){t.off(n,e)}),this._brushType=this._brushOption=null},n.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};y(t,function(t){e[t.panelId]=s(t)})}else this._panels=null;return this},n.prototype.mount=function(t){t=t||{},this._enableGlobalPan=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},n.prototype.updateCovers=function(t){function e(t,e){return(null!=t.id?t.id:o+e)+\\\"-\\\"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function i(e,n){var i=t[e];if(null!=n&&a[n]===c)u[e]=a[n];else{var r=u[e]=null!=n?(a[n].__brushOption=i,a[n]):Fb(h,Vb(h,i));Hb(h,r)}}function r(t){a[t]!==c&&h.group.remove(a[t])}t=v(t,function(t){return l(s(fZ),t,!0)});var o=\\\"\\\\x00-brush-index-\\\",a=this._covers,u=this._covers=[],h=this,c=this._creatingCover;return new AF(a,t,n,e).add(i).update(i).remove(r).execute(),this},n.prototype.unmount=function(){return this.enableBrush(!1),Zb(this),this._zr.remove(this.group),this},n.prototype.dispose=function(){this.unmount(),this.off()},n}(Xk),vZ={mousedown:function(t){if(this._dragging)yw(this,t);else if(!t.target||!t.target.draggable){pw(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=Xb(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(cw(this,t,i),this._dragging){pw(t);var r=fw(this,t,i,!1);r&&jb(this,r)}},mouseup:function(t){yw(this,t)}},mZ={lineX:mw(0),lineY:mw(1),rect:{createCover:function(t,e){function n(t){return t}return $b({toRectRange:n,fromRectRange:n},t,e,[[\\\"w\\\"],[\\\"e\\\"],[\\\"n\\\"],[\\\"s\\\"],[\\\"s\\\",\\\"e\\\"],[\\\"s\\\",\\\"w\\\"],[\\\"n\\\",\\\"e\\\"],[\\\"n\\\",\\\"w\\\"]])},getCreatingRange:function(t){var e=Kb(t);return nw(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Jb(t,e,n,i)},updateCommon:Qb,contain:dw},polygon:{createCover:function(t,e){var n=new HP;return n.add(new TN({name:\\\"main\\\",style:ew(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new MN({name:\\\"main\\\",draggable:!0,drift:S(sw,t,e),ondragend:S(jb,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n){e.childAt(0).setShape({points:uw(t,e,n)})},updateCommon:Qb,contain:dw}},xZ=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],_Z=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new yZ(n.getZr())).on(\\\"brush\\\",Lk(this._onBrush,this))},n.prototype.render=function(t,e,n,i){if(!Sw(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new HP,this.group.add(this._axisGroup),t.get(\\\"show\\\")){var o=Iw(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),p=h({strokeContainThreshold:l},c),d=new cH(t,p);y(xZ,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(p,s,t,o,l,n),$s(r,this._axisGroup,t)}}},n.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=dL.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:\\\"pl\\\",clipPath:xw(u),isTargetByCursor:bw(u,o,i),getLinearBrushOtherExtent:_w(u,0)}]).enableBrush({brushType:\\\"lineX\\\",brushStyle:e,removeOnClick:!0}).updateCovers(Mw(n))},n.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=v(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:r})},n.prototype.dispose=function(){this._brushController.dispose()},n.type=\\\"parallelAxis\\\",n}(lB),bZ={type:\\\"axisAreaSelect\\\",event:\\\"axisAreaSelected\\\"},wZ={type:\\\"value\\\",areaSelectStyle:{width:20,borderWidth:1,borderColor:\\\"rgba(160,197,232)\\\",color:\\\"rgba(160,197,232)\\\",opacity:.3},realtime:!0,z:10};If(Dw);var SZ=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),MZ=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"pointer\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new SZ},n.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},n}(uR),IZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),r=Aw(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},n.prototype.dispose=function(){},n.prototype._renderMain=function(t,e,n,i,r){var o=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\\\"),c=h?pW:_N,p=u.get(\\\"show\\\"),d=u.getModel(\\\"lineStyle\\\"),f=d.get(\\\"width\\\"),g=[s,l];\\nBo(g,!a),s=g[0],l=g[1];for(var v=l-s,m=s,x=[],_=0;p&&_=t)return i[0][1];var e;for(e=0;e=t&&(0===e?0:i[e-1][0])=L;L++){if(u=Math.cos(M),h=Math.sin(M),v.get(\\\"show\\\")){var P=k?k+l:l,O=new AN({shape:{x1:u*(f-P)+p,y1:h*(f-P)+d,x2:u*(f-w-P)+p,y2:h*(f-w-P)+d},style:C,silent:!0});\\\"auto\\\"===C.stroke&&O.setStyle({stroke:i(L/_)}),c.add(O)}if(x.get(\\\"show\\\")){var P=x.get(\\\"distance\\\")+k,R=kw(ar(L/_*(y-g)+g),x.get(\\\"formatter\\\")),N=i(L/_),E=u*(f-w-P)+p,z=h*(f-w-P)+d,B=x.get(\\\"rotate\\\"),V=0;\\\"radial\\\"===B?(V=-M+2*Math.PI,V>Math.PI/2&&(V+=Math.PI)):\\\"tangential\\\"===B?V=-M-Math.PI/2:D(B)&&(V=B*Math.PI/180),c.add(0===V?new wR({style:pl(x,{text:R,x:E,y:z,verticalAlign:-.8>h?\\\"top\\\":h>.8?\\\"bottom\\\":\\\"middle\\\",align:-.4>u?\\\"left\\\":u>.4?\\\"right\\\":\\\"center\\\"},{inheritColor:N}),silent:!0}):new wR({style:pl(x,{text:R,x:E,y:z,verticalAlign:\\\"middle\\\",align:\\\"center\\\"},{inheritColor:N}),silent:!0,originX:E,originY:z,rotation:V}))}if(m.get(\\\"show\\\")&&L!==_){var P=m.get(\\\"distance\\\");P=P?P+l:l;for(var F=0;b>=F;F++){u=Math.cos(M),h=Math.sin(M);var G=new AN({shape:{x1:u*(f-P)+p,y1:h*(f-P)+d,x2:u*(f-S-P)+p,y2:h*(f-S-P)+d},silent:!0,style:A});\\\"auto\\\"===A.stroke&&G.setStyle({stroke:i((L+F/b)/_)}),c.add(G),M+=T}M-=T}else M+=I}},n.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){function u(e,n){var i,o=x.getItemModel(e),a=o.getModel(\\\"pointer\\\"),s=or(a.get(\\\"width\\\"),r.r),l=or(a.get(\\\"length\\\"),r.r),u=t.get([\\\"pointer\\\",\\\"icon\\\"]),h=a.get(\\\"offsetCenter\\\"),c=or(h[0],r.r),p=or(h[1],r.r),d=a.get(\\\"keepAspect\\\");return i=u?Gc(u,c-s/2,p-l,s,l,null,d):new MZ({shape:{angle:-Math.PI/2,width:s,r:l,x:c,y:p}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function c(t,e){var n=v.get(\\\"roundCap\\\"),i=n?pW:_N,a=v.get(\\\"overlap\\\"),u=a?v.get(\\\"width\\\"):l/x.count(),h=a?r.r-u:r.r-(t+1)*u,c=a?r.r:r.r-t*u,p=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:h,r:c}});return a&&(p.z2=w-x.get(_,t)%w),p}var p=this.group,d=this._data,f=this._progressEls,g=[],y=t.get([\\\"pointer\\\",\\\"show\\\"]),v=t.getModel(\\\"progress\\\"),m=v.get(\\\"show\\\"),x=t.getData(),_=x.mapDimension(\\\"value\\\"),b=+t.get(\\\"min\\\"),w=+t.get(\\\"max\\\"),S=[b,w],M=[o,a];(m||y)&&(x.diff(d).add(function(e){var n=x.get(_,e);if(y){var i=u(e,o);ks(i,{rotation:-((isNaN(+n)?M[0]:rr(n,S,M,!0))+Math.PI/2)},t),p.add(i),x.setItemGraphicEl(e,i)}if(m){var r=c(e,o),a=v.get(\\\"clip\\\");ks(r,{shape:{endAngle:rr(n,S,M,a)}},t),p.add(r),CR(t.seriesIndex,x.dataType,e,r),g[e]=r}}).update(function(e,n){var i=x.get(_,e);if(y){var r=d.getItemGraphicEl(n),a=r?r.rotation:o,s=u(e,a);s.rotation=a,As(s,{rotation:-((isNaN(+i)?M[0]:rr(i,S,M,!0))+Math.PI/2)},t),p.add(s),x.setItemGraphicEl(e,s)}if(m){var l=f[n],h=l?l.shape.endAngle:o,b=c(e,h),w=v.get(\\\"clip\\\");As(b,{shape:{endAngle:rr(i,S,M,w)}},t),p.add(b),CR(t.seriesIndex,x.dataType,e,b),g[e]=b}}).execute(),x.each(function(t){var e=x.getItemModel(t),n=e.getModel(\\\"emphasis\\\"),r=n.get(\\\"focus\\\"),o=n.get(\\\"blurScope\\\"),a=n.get(\\\"disabled\\\");if(y){var s=x.getItemGraphicEl(t),l=x.getItemVisual(t,\\\"style\\\"),u=l.fill;if(s instanceof fR){var c=s.style;s.useStyle(h({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),\\\"pointer\\\"!==s.type&&s.setColor(u);s.setStyle(e.getModel([\\\"pointer\\\",\\\"itemStyle\\\"]).getItemStyle()),\\\"auto\\\"===s.style.fill&&s.setStyle(\\\"fill\\\",i(rr(x.get(_,t),S,[0,1],!0))),s.z2EmphasisLift=0,es(s,e),Qa(s,r,o,a)}if(m){var p=g[t];p.useStyle(x.getItemVisual(t,\\\"style\\\")),p.setStyle(e.getModel([\\\"progress\\\",\\\"itemStyle\\\"]).getItemStyle()),p.z2EmphasisLift=0,es(p,e),Qa(p,r,o,a)}}),this._progressEls=g)},n.prototype._renderAnchor=function(t,e){var n=t.getModel(\\\"anchor\\\"),i=n.get(\\\"show\\\");if(i){var r=n.get(\\\"size\\\"),o=n.get(\\\"icon\\\"),a=n.get(\\\"offsetCenter\\\"),s=n.get(\\\"keepAspect\\\"),l=Gc(o,e.cx-r/2+or(a[0],e.r),e.cy-r/2+or(a[1],e.r),r,r,null,s);l.z2=n.get(\\\"showAbove\\\")?1:0,l.setStyle(n.getModel(\\\"itemStyle\\\").getItemStyle()),this.group.add(l)}},n.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension(\\\"value\\\"),l=+t.get(\\\"min\\\"),u=+t.get(\\\"max\\\"),h=new HP,c=[],p=[],d=t.isAnimationEnabled(),f=t.get([\\\"pointer\\\",\\\"showAbove\\\"]);a.diff(this._data).add(function(t){c[t]=new wR({silent:!0}),p[t]=new wR({silent:!0})}).update(function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new HP,y=i(rr(o,[l,u],[0,1],!0)),v=n.getModel(\\\"title\\\");if(v.get(\\\"show\\\")){var m=v.get(\\\"offsetCenter\\\"),x=r.cx+or(m[0],r.r),_=r.cy+or(m[1],r.r),b=c[e];b.attr({z2:f?0:2,style:pl(v,{x:x,y:_,text:a.getName(e),align:\\\"center\\\",verticalAlign:\\\"middle\\\"},{inheritColor:y})}),g.add(b)}var w=n.getModel(\\\"detail\\\");if(w.get(\\\"show\\\")){var S=w.get(\\\"offsetCenter\\\"),M=r.cx+or(S[0],r.r),I=r.cy+or(S[1],r.r),T=or(w.get(\\\"width\\\"),r.r),C=or(w.get(\\\"height\\\"),r.r),D=t.get([\\\"progress\\\",\\\"show\\\"])?a.getItemVisual(e,\\\"style\\\").fill:y,b=p[e],A=w.get(\\\"formatter\\\");b.attr({z2:f?0:2,style:pl(w,{x:M,y:I,text:kw(o,A),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},{inheritColor:D})}),ml(b,{normal:w},o,function(t){return kw(t,A)}),d&&xl(b,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return kw(a?a.interpolatedValue:o,A)}}),g.add(b)}h.add(g)}),this.group.add(h),this._titleEls=c,this._detailEls=p},n.type=\\\"gauge\\\",n}(cB),TZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath=\\\"itemStyle\\\",e}return e(n,t),n.prototype.getInitialData=function(){return By(this,[\\\"value\\\"])},n.type=\\\"series.gauge\\\",n.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,rotate:0},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}},n}(sB);If(Lw);var CZ=[\\\"itemStyle\\\",\\\"opacity\\\"],DZ=function(t){function n(e,n){var i=t.call(this)||this,r=i,o=new TN,a=new wR;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return e(n,t),n.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel(\\\"emphasis\\\"),l=o.get(CZ);l=null==l?1:l,n||Ns(i),i.useStyle(t.getItemVisual(e,\\\"style\\\")),i.style.lineJoin=\\\"round\\\",n?(i.setShape({points:a.points}),i.style.opacity=0,ks(i,{style:{opacity:l}},r,e)):As(i,{style:{opacity:l},shape:{points:a.points}},r,e),es(i,o),this._updateLabel(t,e),Qa(this,s.get(\\\"focus\\\"),s.get(\\\"blurScope\\\"),s.get(\\\"disabled\\\"))},n.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,\\\"style\\\"),h=u.fill;hl(r,cl(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:h,outsideFill:h});var c=l.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new rL(c[0][0],c[0][1]):null},As(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),pg(n,dg(a),{stroke:h})},n}(MN),AZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.ignoreLabelLineUpdate=!0,e}return e(n,t),n.prototype.render=function(t){var e=t.getData(),n=this._data,i=this.group;e.diff(n).add(function(t){var n=new DZ(e,t);e.setItemGraphicEl(t,n),i.add(n)}).update(function(t,r){var o=n.getItemGraphicEl(r);o.updateData(e,t),i.add(o),e.setItemGraphicEl(t,o)}).remove(function(e){var i=n.getItemGraphicEl(e);Rs(i,t,e)}).execute(),this._data=e},n.prototype.remove=function(){this.group.removeAll(),this._data=null},n.prototype.dispose=function(){},n.type=\\\"funnel\\\",n}(cB),kZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FW(Lk(this.getData,this),Lk(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.getInitialData=function(){return By(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:S(xu,this)})},n.prototype._defaultLabelLine=function(t){kr(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},n.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension(\\\"value\\\"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push(\\\"percent\\\"),i},n.type=\\\"series.funnel\\\",n.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\\\"}}},n}(sB);If(Ew);var LZ=function(){function t(){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}return t}(),PZ=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new LZ},n.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()},n.prototype.highlight=function(){Ra(this)},n.prototype.downplay=function(){Na(this)},n}(uR),OZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._focusAdjacencyDisabled=!1,e}return e(n,t),n.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),h=t.getData(\\\"edge\\\"),c=t.get(\\\"orient\\\");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge(function(e){var n=new PZ,i=TR(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType=\\\"edge\\\";var r,a,u,p,d,f,g,y,v=e.getModel(),m=v.getModel(\\\"lineStyle\\\"),x=m.get(\\\"curveness\\\"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get(\\\"localX\\\"),S=b.get(\\\"localY\\\"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get(\\\"localX\\\"),C=I.get(\\\"localY\\\"),D=e.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=c,\\\"vertical\\\"===c?(r=(null!=w?w*s:_.x)+D.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=T?T*s:M.x)+D.ty,p=null!=C?C*l:M.y,d=r,f=a*(1-x)+p*x,g=u,y=a*x+p*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+D.sy,u=null!=T?T*s:M.x,p=(null!=C?C*l:M.y)+D.ty,d=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),y=p),n.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:d,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),zw(n.style,c,e);var A=\\\"\\\"+v.get(\\\"value\\\"),k=cl(v,\\\"edgeLabel\\\");hl(n,k,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,\\\"edge\\\",r,V(o,k.normal&&k.normal.get(\\\"formatter\\\"),A),a)}},labelDataIndex:e.dataIndex,defaultText:A}),n.setTextConfig({position:\\\"inside\\\"});var L=v.getModel(\\\"emphasis\\\");es(n,v,\\\"lineStyle\\\",function(t){var n=t.getItemStyle();return zw(n,c,e),n}),o.add(n),h.setItemGraphicEl(e.dataIndex,n);var P=L.get(\\\"focus\\\");Qa(n,\\\"adjacency\\\"===P?e.getAdjacentDataIndices():\\\"trajectory\\\"===P?e.getTrajectoryDataIndices():P,L.get(\\\"blurScope\\\"),L.get(\\\"disabled\\\"))}),r.eachNode(function(e){var n=e.getLayout(),i=e.getModel(),r=i.get(\\\"localX\\\"),a=i.get(\\\"localY\\\"),h=i.getModel(\\\"emphasis\\\"),c=new mR({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel(\\\"itemStyle\\\").getItemStyle(),z2:10});hl(c,cl(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,\\\"node\\\")}},labelDataIndex:e.dataIndex,defaultText:e.id}),c.disableLabelAnimation=!0,c.setStyle(\\\"fill\\\",e.getVisual(\\\"color\\\")),c.setStyle(\\\"decal\\\",e.getVisual(\\\"style\\\").decal),es(c,i),o.add(c),u.setItemGraphicEl(e.dataIndex,c),TR(c).dataType=\\\"node\\\";var p=h.get(\\\"focus\\\");Qa(c,\\\"adjacency\\\"===p?e.getAdjacentDataIndices():\\\"trajectory\\\"===p?e.getTrajectoryDataIndices():p,h.get(\\\"blurScope\\\"),h.get(\\\"disabled\\\"))}),u.eachItemGraphicEl(function(e,r){var o=u.getItemModel(r);o.get(\\\"draggable\\\")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:\\\"dragNode\\\",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor=\\\"move\\\")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Bw(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData()},n.prototype.dispose=function(){},n.type=\\\"sankey\\\",n}(cB),RZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(t,e){function n(t,e){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}),e.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t})}var i=t.edges||t.links,r=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var a=this.levelModels,s=0;s=0&&(a[o[s].depth]=new gE(o[s],this,e));if(r&&i){var l=ub(r,i,this,!0,n);return l.data}},n.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},n.prototype.getGraph=function(){return this.getData().graph},n.prototype.getEdgeData=function(){return this.getGraph().edgeData},n.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if(\\\"edge\\\"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+\\\" -- \\\"+o.target;return Fh(\\\"nameValue\\\",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,h=this.getDataParams(t,n).data.name;return Fh(\\\"nameValue\\\",{name:null!=h?h+\\\"\\\":null,value:u,noValue:i(u)})},n.prototype.optionUpdated=function(){},n.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&\\\"node\\\"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},n.type=\\\"series.sankey\\\",n.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},edgeLabel:{show:!1,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},n}(sB);If(uS);var NZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._layers=[],e}return e(n,t),n.prototype.render=function(t){function e(t){return t.name}function n(e,n,s){var l=r._layers;if(\\\"remove\\\"===e)return void o.remove(l[n]);for(var u,h=[],p=[],d=a[n].indices,f=0;fa;++a){for(var s=r[a].name,l=0;li;++i)n[i]=i;var r=t.mapDimension(\\\"single\\\"),o=io(n,function(e){return t.get(\\\"name\\\",e)}),a=[];return o.buckets.each(function(e,n){e.sort(function(e,n){return t.get(r,e)-t.get(r,n)}),a.push({name:n,indices:e})}),a},n.prototype.getAxisTooltipData=function(t,e){M(t)||(t=t?[t]:[]);for(var n,i=this.getData(),r=this.getLayerSeries(),o=[],a=r.length,s=0;a>s;++s){for(var l=Number.MAX_VALUE,u=-1,h=r[s].indices.length,c=0;h>c;++c){var p=i.get(t[0],r[s].indices[c]),d=Math.abs(p-e);l>=d&&(n=p,l=d,u=r[s].indices[c])}o.push(u)}return{dataIndices:o,nestestValue:n}},n.prototype.formatTooltip=function(t){var e=this.getData(),n=e.getName(t),i=e.get(e.mapDimension(\\\"value\\\"),t);return Fh(\\\"nameValue\\\",{name:n,value:i})},n.type=\\\"series.themeRiver\\\",n.dependencies=[\\\"singleAxis\\\"],n.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}}},n}(sB);If(fS);var BZ=[\\\"itemStyle\\\",\\\"borderWidth\\\"],VZ=[{xy:\\\"x\\\",wh:\\\"width\\\",index:0,posDesc:[\\\"left\\\",\\\"right\\\"]},{xy:\\\"y\\\",wh:\\\"height\\\",index:1,posDesc:[\\\"top\\\",\\\"bottom\\\"]}],FZ=new oN,GZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:VZ[+l],categoryDim:VZ[1-+l]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=TS(r,t),n=gS(r,t,e,h),o=AS(r,h,n);r.setItemGraphicEl(t,o),i.add(o),NS(o,h,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!r.hasValue(t))return void i.remove(n);var a=TS(r,t),s=gS(r,t,a,h),l=PS(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?kS(n,h,s):n=AS(r,h,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),NS(n,h,s)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&LS(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},n.prototype.remove=function(t){var e=this.group,n=this._data;t.get(\\\"animation\\\")?n&&n.eachItemGraphicEl(function(e){LS(n,TR(e).dataIndex,t,e)}):e.removeAll()},n.type=\\\"pictorialBar\\\",n}(cB),WZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e.defaultSymbol=\\\"roundRect\\\",e}return e(n,t),n.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},n.type=\\\"series.pictorialBar\\\",n.dependencies=[\\\"grid\\\"],n.defaultOption=Sl(uW.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\\\"}}}),n}(uW);If(zS);var HZ={color:\\\"fill\\\",borderColor:\\\"stroke\\\"},YZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},XZ=Kr(),UZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){this.currentZLevel=this.get(\\\"zlevel\\\",!0),this.currentZ=this.get(\\\"z\\\",!0)},n.prototype.getInitialData=function(){return Sd(null,this)},n.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=XZ(i).info),r},n.type=\\\"series.custom\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],n.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,legendHoverLink:!0,clip:!1},n}(sB),ZZ={position:[\\\"x\\\",\\\"y\\\"],scale:[\\\"scaleX\\\",\\\"scaleY\\\"],origin:[\\\"originX\\\",\\\"originY\\\"]},jZ=b(ZZ),qZ=(m(NP,function(t,e){return t[e]=1,t},{}),NP.join(\\\", \\\"),[\\\"\\\",\\\"style\\\",\\\"shape\\\",\\\"extra\\\"]),KZ=Kr(),$Z={},JZ={setTransform:function(t,e){return $Z.el[t]=e,this},getTransform:function(t){return $Z.el[t]},setShape:function(t,e){var n=$Z.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=$Z.el.shape;return e?e[t]:void 0},setStyle:function(t,e){var n=$Z.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=$Z.el.style;return e?e[t]:void 0},setExtra:function(t,e){var n=$Z.el.extra||($Z.el.extra={});return n[t]=e,this},getExtra:function(t){var e=$Z.el.extra;return e?e[t]:void 0}},QZ=Kr(),tj=[\\\"percent\\\",\\\"easing\\\",\\\"shape\\\",\\\"style\\\",\\\"extra\\\"],ej=\\\"emphasis\\\",nj=\\\"normal\\\",ij=\\\"blur\\\",rj=\\\"select\\\",oj=[nj,ej,ij,rj],aj={normal:[\\\"itemStyle\\\"],emphasis:[ej,\\\"itemStyle\\\"],blur:[ij,\\\"itemStyle\\\"],select:[rj,\\\"itemStyle\\\"]},sj={normal:[\\\"label\\\"],emphasis:[ej,\\\"label\\\"],blur:[ij,\\\"label\\\"],select:[rj,\\\"label\\\"]},lj=[\\\"x\\\",\\\"y\\\"],uj=\\\"e\\\\x00\\\\x00\\\",hj={normal:{},emphasis:{},blur:{},select:{}},cj={cartesian2d:VS,geo:GS,single:HS,polar:XS,calendar:US},pj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=SM(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){IM(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&eM(n,XZ(n).option,t)}).update(function(e,l){var u=r.getItemGraphicEl(l);IM(n,u,e,s(e,i),t,a,o)}).execute();var l=t.get(\\\"clip\\\",!0)?Lg(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},n.prototype.incrementalPrepareRender=function(){this.group.removeAll(),this._data=null},n.prototype.incrementalRender=function(t,e,n,i,r){function o(t){t.isGroup||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}for(var a=e.getData(),s=SM(e,a,n,i),l=this._progressiveEls=[],u=t.start;ua)return!0;if(o){var s=fv(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return n===!0},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=dj(t).pointerEl=new QN[n.type](fj(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=dj(t).labelEl=new wR(fj(e.label));t.add(r),YM(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=dj(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=dj(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),YM(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel(\\\"handle\\\"),o=e.get(\\\"status\\\");if(!r.get(\\\"show\\\")||!o||\\\"hide\\\"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=tl(r.get(\\\"icon\\\"),{cursor:\\\"move\\\",draggable:!0,onmousemove:function(t){tL(t.event)},onmousedown:gj(this._onHandleDragMove,this,0,0),drift:gj(this._onHandleDragMove,this),ondragend:gj(this._onHandleDragEnd,this)}),n.add(i)),UM(i,e,!1),i.setStyle(r.getItemStyle(null,[\\\"color\\\",\\\"borderColor\\\",\\\"borderWidth\\\",\\\"opacity\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"]));var s=r.get(\\\"size\\\");M(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,mc(this,\\\"_doDispatchAxisPointer\\\",r.get(\\\"throttle\\\")||0,\\\"fixRate\\\"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){WM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,XM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(XM(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(XM(i)),dj(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:\\\"updateAxisPointer\\\",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get(\\\"value\\\");this._moveHandleToValue(e),this._api.dispatchAction({type:\\\"hideTip\\\"})}},t.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),xc(this,\\\"_doDispatchAxisPointer\\\")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),vj=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;\\\"angle\\\"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),h=i.get(\\\"type\\\");if(h&&\\\"none\\\"!==h){var c=ZM(i),p=mj[h](o,a,u,l);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get([\\\"label\\\",\\\"margin\\\"]),f=nI(e,n,i,a,d);jM(t,n,i,r,f)},n}(yj),mj={line:function(t,e,n,i){return\\\"angle\\\"===t.dim?{type:\\\"Line\\\",shape:QM(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 r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return\\\"angle\\\"===t.dim?{type:\\\"Sector\\\",shape:eI(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:\\\"Sector\\\",shape:eI(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},xj=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get(\\\"type\\\"),l=iI(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&\\\"none\\\"!==s){var h=ZM(i),c=_j[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var p=Yy(a.model,n);JM(e,t,p,n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=Yy(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]);var r=$M(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=iI(r,i).getOtherAxis(i).getGlobalExtent(),s=\\\"x\\\"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:\\\"middle\\\"},{align:\\\"center\\\"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},n}(yj),_j={line:function(t,e,n){var i=QM([e,n[0]],[e,n[1]],rI(t));return{type:\\\"Line\\\",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:\\\"Rect\\\",shape:tI([e-i/2,n[0]],[i,r],rI(t))}}},bj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"axisPointer\\\",n.defaultOption={show:\\\"auto\\\",z:50,type:\\\"line\\\",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}},n\\n}(HE),wj=Kr(),Sj=y,Mj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent(\\\"tooltip\\\"),r=t.get(\\\"triggerOn\\\")||i&&i.get(\\\"triggerOn\\\")||\\\"mousemove|click\\\";oI(\\\"axisPointer\\\",n,function(t,e,n){\\\"none\\\"!==r&&(\\\"leave\\\"===t||r.indexOf(t)>=0)&&n({type:\\\"updateAxisPointer\\\",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){cI(\\\"axisPointer\\\",e)},n.prototype.dispose=function(t,e){cI(\\\"axisPointer\\\",e)},n.type=\\\"axisPointer\\\",n}(lB),Ij=Kr(),Tj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},n.type=\\\"polar\\\",n.dependencies=[\\\"radiusAxis\\\",\\\"angleAxis\\\"],n.defaultOption={z:0,center:[\\\"50%\\\",\\\"50%\\\"],radius:\\\"80%\\\"},n}(HE),Cj=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"polar\\\",iO).models[0]},n.type=\\\"polarAxis\\\",n}(HE);f(Cj,gG);var Dj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"angleAxis\\\",n}(Cj),Aj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"radiusAxis\\\",n}(Cj),kj=function(t){function n(e,n){return t.call(this,\\\"radius\\\",e,n)||this}return e(n,t),n.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[\\\"radius\\\"===this.dim?0:1]},n}(RG);kj.prototype.dataToRadius=RG.prototype.dataToCoord,kj.prototype.radiusToData=RG.prototype.coordToData;var Lj=Kr(),Pj=function(t){function n(e,n){return t.call(this,\\\"angle\\\",e,n||[0,360])||this}return e(n,t),n.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[\\\"radius\\\"===this.dim?0:1]},n.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=zi(null==o?\\\"\\\":o+\\\"\\\",e.getFont(),\\\"center\\\",\\\"top\\\"),u=Math.max(l.height,7),h=u/s;isNaN(h)&&(h=1/0);var c=Math.max(0,Math.floor(h)),p=Lj(t.model),d=p.lastAutoInterval,f=p.lastTickCount;return null!=d&&null!=f&&Math.abs(d-c)<=1&&Math.abs(f-r)<=1&&d>c?c=d:(p.lastTickCount=r,p.lastAutoInterval=c),c},n}(RG);Pj.prototype.dataToAngle=RG.prototype.dataToCoord,Pj.prototype.angleToData=RG.prototype.coordToData;var Oj=[\\\"radius\\\",\\\"angle\\\"],Rj=function(){function t(t){this.dimensions=Oj,this.type=\\\"polar\\\",this.cx=0,this.cy=0,this._radiusAxis=new kj,this._angleAxis=new Pj,this.axisPointerEnabled=!0,this.name=t||\\\"\\\",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e=\\\"_\\\"+t+\\\"Axis\\\";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.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},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&\\\"auto\\\"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=o>l?1:-1;o>l||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return o*o>=r&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=II(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=II(e);return i===this?this.pointToData(n):null},t}(),Nj={dimensions:Oj,create:function(t,e){var n=[];return t.eachComponent(\\\"polar\\\",function(t,i){var r=new Rj(i+\\\"\\\");r.update=CI;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel(\\\"radiusAxis\\\"),l=t.findAxisModel(\\\"angleAxis\\\");AI(o,s),AI(a,l),TI(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if(\\\"polar\\\"===t.get(\\\"coordinateSystem\\\")){var e=t.getReferringComponents(\\\"polar\\\",iO).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},Ej=[\\\"axisLine\\\",\\\"axisLabel\\\",\\\"axisTick\\\",\\\"minorTick\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\",\\\"splitArea\\\"],zj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass=\\\"PolarAxisPointer\\\",e}return e(n,t),n.prototype.render=function(t){if(this.group.removeAll(),t.get(\\\"show\\\")){var e=t.axis,n=e.polar,i=n.getRadiusAxis().getExtent(),r=e.getTicksCoords(),o=e.getMinorTicksCoords(),a=v(e.getViewLabels(),function(t){t=s(t);var n=e.scale,i=\\\"ordinal\\\"===n.type?n.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=e.dataToCoord(i),t});PI(a),PI(r),y(Ej,function(s){!t.get([s,\\\"show\\\"])||e.scale.isBlank()&&\\\"axisLine\\\"!==s||Bj[s](this.group,t,n,r,o,i,a)},this)}},n.type=\\\"angleAxis\\\",n}(fH),Bj={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]),l=LI(n),u=l?0:1;a=0===o[u]?new oN({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new wN({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel(\\\"axisTick\\\"),s=(a.get(\\\"inside\\\")?-1:1)*a.get(\\\"length\\\"),l=o[LI(n)],u=v(i,function(t){return new AN({shape:kI(n,[l,l+s],t.coord)})});t.add($N(u,{style:c(a.getModel(\\\"lineStyle\\\").getLineStyle(),{stroke:e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel(\\\"axisTick\\\"),s=e.getModel(\\\"minorTick\\\"),l=(a.get(\\\"inside\\\")?-1:1)*s.get(\\\"length\\\"),u=o[LI(n)],h=[],p=0;pd?\\\"left\\\":\\\"right\\\",y=Math.abs(p[1]-f)/c<.3?\\\"middle\\\":p[1]>f?\\\"top\\\":\\\"bottom\\\";if(s&&s[a]){var v=s[a];A(v)&&v.textStyle&&(r=new gE(v.textStyle,l,l.ecModel))}var m=new wR({silent:cH.isLabelSilent(e),style:pl(r,{x:p[0],y:p[1],fill:r.getTextColor()||e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),text:i.formattedLabel,align:g,verticalAlign:y})});if(t.add(m),h){var x=cH.makeAxisEventDataBase(e);x.targetType=\\\"axisLabel\\\",x.value=i.rawLabel,TR(m).eventData=x}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel(\\\"splitLine\\\"),s=a.getModel(\\\"lineStyle\\\"),l=s.get(\\\"color\\\"),u=0;l=l instanceof Array?l:[l];for(var h=[],p=0;p=v;v++){var x=v===m?i[0].coord:i[v].coord,_=u++%l.length;h[_]=h[_]||[],h[_].push(new _N({shape:{cx:n.cx,cy:n.cy,r0:f,r:g,startAngle:d,endAngle:-x*p,clockwise:y},silent:!0})),d=-x*p}for(var v=0;v=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[\\\"horizontal\\\"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r=\\\"horizontal\\\"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=FI(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=FI(e);return i===this?this.pointToData(n):null},t}(),tq={create:GI,dimensions:Jj},eq=[\\\"x\\\",\\\"y\\\"],nq=[\\\"width\\\",\\\"height\\\"],iq=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=HI(a,1-WI(o)),l=a.dataToPoint(e)[0],u=i.get(\\\"type\\\");if(u&&\\\"none\\\"!==u){var h=ZM(i),c=rq[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}var p=VI(n);JM(e,t,p,n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=VI(e,{labelInside:!1});i.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]);var r=$M(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.coordinateSystem,o=WI(i),a=HI(r,o),s=[t.x,t.y];s[o]+=e[o],s[o]=Math.min(a[1],s[o]),s[o]=Math.max(a[0],s[o]);var l=HI(r,1-o),u=(l[1]+l[0])/2,h=[u,u];return h[o]=s[o],{x:s[0],y:s[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:\\\"middle\\\"}}},n}(yj),rq={line:function(t,e,n){var i=QM([e,n[0]],[e,n[1]],WI(t));return{type:\\\"Line\\\",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:\\\"Rect\\\",shape:tI([e-i/2,n[0]],[i,r],WI(t))}}},oq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"single\\\",n}(lB);If(YI);var aq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e){var n=fu(e);t.prototype.init.apply(this,arguments),XI(e,n)},n.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),XI(this.option,e)},n.prototype.getCellSize=function(){return this.option.cellSize},n.type=\\\"calendar\\\",n.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}},n}(HE),sq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e){var n=this.group;n.removeAll();var i=t.coordinateSystem,r=i.getRangeInfo(),o=i.getOrient(),a=e.getLocaleModel();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,a,o,n),this._renderWeekText(t,a,r,o,n)},n.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel(\\\"itemStyle\\\").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new mR({shape:{x:l[0],y:l[1],width:o,height:a},cursor:\\\"default\\\",style:r});n.add(u)}},n.prototype._renderLines=function(t,e,n,i){function r(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var r=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(r[0]),o._blpoints.push(r[r.length-1]),l&&o._drawSplitline(r,s,i)}var o=this,a=t.coordinateSystem,s=t.getModel([\\\"splitLine\\\",\\\"lineStyle\\\"]).getLineStyle(),l=t.get([\\\"splitLine\\\",\\\"show\\\"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){r(h.formatedDate),0===c&&(h=a.getDateInfo(e.start.y+\\\"-\\\"+e.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=a.getDateInfo(p)}r(a.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,n),s,i),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,n),s,i)},n.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=\\\"horizontal\\\"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},n.prototype._drawSplitline=function(t,e,n){var i=new TN({z2:20,shape:{points:t},style:e});n.add(i)},n.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;7>a;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l[\\\"horizontal\\\"===n?\\\"bl\\\":\\\"tr\\\"]}return o},n.prototype._formatterLabel=function(t,e){return T(t)&&t?eu(t,e):I(t)?t(e):e.nameMap},n.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=[\\\"center\\\",\\\"bottom\\\"];\\\"bottom\\\"===i?(a+=r,s=[\\\"center\\\",\\\"top\\\"]):\\\"left\\\"===i?o-=r:\\\"right\\\"===i?(o+=r,s=[\\\"center\\\",\\\"top\\\"]):a-=r;var l=0;return(\\\"left\\\"===i||\\\"right\\\"===i)&&(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},n.prototype._renderYearText=function(t,e,n,i){var r=t.getModel(\\\"yearLabel\\\");if(r.get(\\\"show\\\")){var o=r.get(\\\"margin\\\"),a=r.get(\\\"position\\\");a||(a=\\\"horizontal\\\"!==n?\\\"top\\\":\\\"left\\\");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h=\\\"horizontal\\\"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+\\\"-\\\"+e.end.y);var d=r.get(\\\"formatter\\\"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),y=new wR({z2:30,style:pl(r,{text:g})});y.attr(this._yearTextPositionControl(y,c[a],n,a,o)),i.add(y)}},n.prototype._monthTextPositionControl=function(t,e,n,i,r){var o=\\\"left\\\",a=\\\"top\\\",s=t[0],l=t[1];return\\\"horizontal\\\"===n?(l+=r,e&&(o=\\\"center\\\"),\\\"start\\\"===i&&(a=\\\"bottom\\\")):(s+=r,e&&(a=\\\"middle\\\"),\\\"start\\\"===i&&(o=\\\"right\\\")),{x:s,y:l,align:o,verticalAlign:a}},n.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel(\\\"monthLabel\\\");if(r.get(\\\"show\\\")){var o=r.get(\\\"nameMap\\\"),a=r.get(\\\"margin\\\"),s=r.get(\\\"position\\\"),l=r.get(\\\"align\\\"),u=[this._tlpoints,this._blpoints];(!o||T(o))&&(o&&(e=Tl(o)||e),o=e.get([\\\"time\\\",\\\"monthAbbr\\\"])||[]);var c=\\\"start\\\"===s?0:1,p=\\\"horizontal\\\"===n?0:1;a=\\\"start\\\"===s?-a:a;for(var d=\\\"center\\\"===l,f=0;fg;g++){var y=a.getNextNDay(d,g),m=a.dataToRect([y.time],!1).center,x=g;x=Math.abs((g+c)%7);var _=new wR({z2:30,style:h(pl(o,{text:l[x]}),this._weekTextPositionControl(m,i,s,u,f))});r.add(_)}}},n.type=\\\"calendar\\\",n}(lB),lq=864e5,uq=function(){function t(e){this.type=\\\"calendar\\\",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:\\\"time\\\",type:\\\"time\\\"},\\\"value\\\"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=yr(t);var e=t.getFullYear(),n=t.getMonth()+1,i=10>n?\\\"0\\\"+n:\\\"\\\"+n,r=t.getDate(),o=10>r?\\\"0\\\"+r:\\\"\\\"+r,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+\\\"\\\",m:i,d:o,day:a,time:t.getTime(),formatedDate:e+\\\"-\\\"+i+\\\"-\\\"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},t.prototype.update=function(t,e){function n(t,e){return null!=t[e]&&\\\"auto\\\"!==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 i=this._rangeInfo.weeks||1,r=[\\\"width\\\",\\\"height\\\"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=\\\"horizontal\\\"===this._orient?[i,7]:[7,i];y([0,1],function(t){n(o,t)&&(a[r[t]]=o[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=uu(a,l);y([0,1],function(t){n(o,t)||(o[t]=u[r[t]]/s[t])}),this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(t,e){M(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/lq)-Math.floor(n[0].time/lq)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?-u+1:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent(\\\"calendar\\\",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){\\\"calendar\\\"===t.get(\\\"coordinateSystem\\\")&&(t.coordinateSystem=i[t.get(\\\"calendarIndex\\\")||0])}),i},t.dimensions=[\\\"time\\\",\\\"value\\\"],t}();If(ZI);var hq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:\\\"box\\\",ignoreSize:!0},e}return e(n,t),n.type=\\\"title\\\",n.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\\\"}},n}(HE),cq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get(\\\"show\\\")){var i=this.group,r=t.getModel(\\\"textStyle\\\"),o=t.getModel(\\\"subtextStyle\\\"),a=t.get(\\\"textAlign\\\"),s=B(t.get(\\\"textBaseline\\\"),t.get(\\\"textVerticalAlign\\\")),l=new wR({style:pl(r,{text:t.get(\\\"text\\\"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get(\\\"subtext\\\"),c=new wR({style:pl(o,{text:h,fill:o.getTextColor(),y:u.height+t.get(\\\"itemGap\\\"),verticalAlign:\\\"top\\\"},{disableBox:!0}),z2:10}),p=t.get(\\\"link\\\"),d=t.get(\\\"sublink\\\"),f=t.get(\\\"triggerEvent\\\",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on(\\\"click\\\",function(){au(p,\\\"_\\\"+t.get(\\\"target\\\"))}),d&&c.on(\\\"click\\\",function(){au(d,\\\"_\\\"+t.get(\\\"subtarget\\\"))}),TR(l).eventData=TR(c).eventData=f?{componentType:\\\"title\\\",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=uu(y,{width:n.getWidth(),height:n.getHeight()},t.get(\\\"padding\\\"));a||(a=t.get(\\\"left\\\")||t.get(\\\"right\\\"),\\\"middle\\\"===a&&(a=\\\"center\\\"),\\\"right\\\"===a?v.x+=v.width:\\\"center\\\"===a&&(v.x+=v.width/2)),s||(s=t.get(\\\"top\\\")||t.get(\\\"bottom\\\"),\\\"center\\\"===s&&(s=\\\"middle\\\"),\\\"bottom\\\"===s?v.y+=v.height:\\\"middle\\\"===s&&(v.y+=v.height/2),s=s||\\\"top\\\"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle([\\\"color\\\",\\\"opacity\\\"]);_.fill=t.get(\\\"backgroundColor\\\");var b=new mR({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get(\\\"borderRadius\\\")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},n.type=\\\"title\\\",n}(lB);If(jI);var pq=function(t,e){return\\\"all\\\"===e?{type:\\\"all\\\",title:t.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"all\\\"])}:\\\"inverse\\\"===e?{type:\\\"inverse\\\",title:t.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"inverse\\\"])}:void 0},dq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:\\\"box\\\",ignoreSize:!0},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},n.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;e===!0&&(e=t.selector=[\\\"all\\\",\\\"inverse\\\"]),M(e)&&y(e,function(t,i){T(t)&&(t={type:t}),e[i]=l(t,pq(n,t.type))})},n.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=0},n.prototype.getOrient=function(){return\\\"vertical\\\"===this.get(\\\"orient\\\")?{index:1,name:\\\"vertical\\\"}:{index:0,name:\\\"horizontal\\\"}},n.type=\\\"legend.plain\\\",n.dependencies=[\\\"series\\\"],n.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}},n}(HE),fq=S,gq=y,yq=HP,vq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new yq),this.group.add(this._selectorGroup=new yq),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get(\\\"show\\\",!0)){var r=t.get(\\\"align\\\"),o=t.get(\\\"orient\\\");r&&\\\"auto\\\"!==r||(r=\\\"right\\\"===t.get(\\\"left\\\")&&\\\"vertical\\\"===o?\\\"right\\\":\\\"left\\\");var a=t.get(\\\"selector\\\",!0),s=t.get(\\\"selectorPosition\\\",!0);!a||s&&\\\"auto\\\"!==s||(s=\\\"horizontal\\\"===o?\\\"end\\\":\\\"start\\\"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get(\\\"padding\\\"),p=uu(l,u,h),d=this.layoutInner(t,r,p,i,a,s),f=uu(c({width:d.width,height:d.height},l),u,h);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KI(d,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=Z(),u=e.get(\\\"selectedMode\\\"),c=[];n.eachRawSeries(function(t){!t.get(\\\"legendHoverLink\\\")&&c.push(t.id)}),gq(e.getData(),function(r,o){var a=r.get(\\\"name\\\");if(!this.newlineDisabled&&(\\\"\\\"===a||\\\"\\\\n\\\"===a)){var p=new yq;return p.newline=!0,void s.add(p)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var f=d.getData(),g=f.getVisual(\\\"legendLineStyle\\\")||{},y=f.getVisual(\\\"legendIcon\\\"),v=f.getVisual(\\\"style\\\"),m=this._createItem(d,a,o,r,e,t,g,v,y,u,i);m.on(\\\"click\\\",fq(QI,a,null,i,c)).on(\\\"mouseover\\\",fq(eT,d.name,null,i,c)).on(\\\"mouseout\\\",fq(nT,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),d=s.getItemVisual(p,\\\"style\\\"),f=s.getItemVisual(p,\\\"legendIcon\\\"),g=En(d.fill);g&&0===g[3]&&(g[3]=.2,d=h(h({},d),{fill:Xn(g,\\\"rgba\\\")}));var y=this._createItem(n,a,o,r,e,t,{},d,f,u,i);y.on(\\\"click\\\",fq(QI,null,a,i,c)).on(\\\"mouseover\\\",fq(eT,null,a,i,c)).on(\\\"mouseout\\\",fq(nT,null,a,i,c)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},n.prototype._createSelector=function(t,e,n){var i=this.getSelectorGroup();gq(t,function(t){var r=t.type,o=new wR({style:{x:0,y:0,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},onclick:function(){n.dispatchAction({type:\\\"all\\\"===r?\\\"legendAllSelect\\\":\\\"legendInverseSelect\\\"})}});i.add(o);var a=e.getModel(\\\"selectorLabel\\\"),s=e.getModel([\\\"emphasis\\\",\\\"selectorLabel\\\"]);hl(o,{normal:a,emphasis:s},{defaultText:t.title}),$a(o)})},n.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get(\\\"itemWidth\\\"),d=r.get(\\\"itemHeight\\\"),f=r.isSelected(e),g=i.get(\\\"symbolRotate\\\"),y=i.get(\\\"symbolKeepAspect\\\"),v=i.get(\\\"icon\\\");l=v||l||\\\"roundRect\\\";var m=$I(l,i,a,s,c,f,h),x=new yq,_=i.getModel(\\\"textStyle\\\");if(!I(t.getLegendIcon)||v&&\\\"inherit\\\"!==v){var b=\\\"inherit\\\"===v&&t.getData().getVisual(\\\"symbol\\\")?\\\"inherit\\\"===g?t.getData().getVisual(\\\"symbolRotate\\\"):g:0;x.add(JI({itemWidth:p,itemHeight:d,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var w=\\\"left\\\"===o?p+5:-5,S=o,M=r.get(\\\"formatter\\\"),C=e;T(M)&&M?C=M.replace(\\\"{name}\\\",null!=e?e:\\\"\\\"):I(M)&&(C=M(e));var D=f?_.getTextColor():i.get(\\\"inactiveColor\\\");x.add(new wR({style:pl(_,{text:C,x:w,y:d/2,fill:D,align:S,verticalAlign:\\\"middle\\\"},{inheritColor:D})}));var A=new mR({shape:x.getBoundingRect(),invisible:!0}),k=i.getModel(\\\"tooltip\\\");return k.get(\\\"show\\\")&&ol({el:A,componentModel:r,itemName:e,itemTooltipOption:k.option}),x.add(A),x.eachChild(function(t){t.silent=!0}),A.silent=!u,this.getContentGroup().add(x),$a(x),x.__legendDataIndex=n,x},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();GE(t.get(\\\"orient\\\"),a,t.get(\\\"itemGap\\\"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){GE(\\\"horizontal\\\",s,t.get(\\\"selectorItemGap\\\",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get(\\\"selectorButtonGap\\\",!0),d=t.getOrient().index,f=0===d?\\\"width\\\":\\\"height\\\",g=0===d?\\\"height\\\":\\\"width\\\",y=0===d?\\\"y\\\":\\\"x\\\";\\\"end\\\"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type=\\\"legend.plain\\\",n}(lB),mq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},n.prototype.init=function(e,n,i){var r=fu(e);t.prototype.init.call(this,e,n,i),sT(this,e,r)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),sT(this,this.option,e)},n.type=\\\"legend.scroll\\\",n.defaultOption=Sl(dq.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}),n}(dq),xq=HP,_q=[\\\"width\\\",\\\"height\\\"],bq=[\\\"x\\\",\\\"y\\\"],wq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new xq),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xq)},n.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(e,n,i,r,o,a,s){function l(t,e){var i=t+\\\"DataIndex\\\",o=tl(n.get(\\\"pageIcons\\\",!0)[n.getOrient().name][e],{onclick:Lk(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,h.add(o)}var u=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var h=this._controllerGroup,c=n.get(\\\"pageIconSize\\\",!0),p=M(c)?c:[c,c];l(\\\"pagePrev\\\",0);var d=n.getModel(\\\"pageTextStyle\\\");h.add(new wR({name:\\\"pageText\\\",style:{text:\\\"xx/xx\\\",fill:d.getTextColor(),font:d.getFont(),verticalAlign:\\\"middle\\\",align:\\\"center\\\"},silent:!0})),l(\\\"pageNext\\\",1)},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),l=t.getOrient().index,u=_q[l],h=bq[l],c=_q[1-l],p=bq[1-l];r&&GE(\\\"horizontal\\\",a,t.get(\\\"selectorItemGap\\\",!0));var d=t.get(\\\"selectorButtonGap\\\",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],y=s(n);r&&(y[u]=n[u]-f[u]-d);var v=this._layoutContentAndController(t,i,y,l,u,c,p,h);if(r){if(\\\"end\\\"===o)g[l]+=v[u]+d;else{var m=f[u]+d;g[l]-=m,v[h]-=m}v[u]+=f[u]+d,g[1-l]+=v[p]+v[c]/2-f[c]/2,v[c]=Math.max(v[c],f[c]),v[p]=Math.min(v[p],f[p]+g[1-l]),a.x=g[0],a.y=g[1],a.markRedraw()}return v},n.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;GE(t.get(\\\"orient\\\"),l,t.get(\\\"itemGap\\\"),i?n.width:null,i?null:n.height),GE(\\\"horizontal\\\",h,t.get(\\\"pageButtonItemGap\\\",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=B(t.get(\\\"pageButtonGap\\\",!0),t.get(\\\"itemGap\\\",!0));if(d){var m=t.get(\\\"pageButtonPosition\\\",!0);\\\"end\\\"===m?y[i]+=n[r]-p[r]:g[i]+=p[r]+v}y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var x={x:0,y:0};if(x[r]=d?n[r]:c[r],x[o]=Math.max(c[o],p[o]),x[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-v,0),_[o]=x[o],u.setClipPath(new mR({shape:_})),u.__rectSize=_[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return null!=b.pageIndex&&As(l,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),x},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:\\\"legendScroll\\\",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;y([\\\"pagePrev\\\",\\\"pageNext\\\"],function(i){var r=i+\\\"DataIndex\\\",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle(\\\"fill\\\",o?t.get(\\\"pageIconColor\\\",!0):t.get(\\\"pageIconInactiveColor\\\",!0)),a.cursor=o?\\\"pointer\\\":\\\"default\\\")});var i=n.childOfName(\\\"pageText\\\"),r=t.get(\\\"pageFormatter\\\"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle(\\\"text\\\",T(r)?r.replace(\\\"{current}\\\",null==a?\\\"\\\":a+\\\"\\\").replace(\\\"{total}\\\",null==s?\\\"\\\":s+\\\"\\\"):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get(\\\"scrollDataIndex\\\",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=_q[a],l=bq[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=e(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,x=null;p>=y;++y)x=e(h[y]),(!x&&m.e>v.s+o||x&&!n(x,v.s))&&(v=m.i>v.i?m:x,v&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount)),m=x;for(var y=u-1,v=g,m=g,x=null;y>=-1;--y)x=e(h[y]),x&&n(m,x.s)||!(v.i=0?this._tryShow(n,i):\\\"leave\\\"===t&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get(\\\"triggerOn\\\");if(null!=this._lastX&&null!=this._lastY&&\\\"none\\\"!==i&&\\\"click\\\"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!uk.node&&n.getDom()){var r=IT(i,n);this._ticket=\\\"\\\";var o=i.dataByCoordSys,a=kT(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:\\\"bottom\\\"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Lq;l.x=i.x,l.y=i.y,l.update(),TR(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=pI(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:\\\"bottom\\\"},r)}else 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},r))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get(\\\"hideDelay\\\")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(IT(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=MT([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if(\\\"axis\\\"===u.get(\\\"trigger\\\"))return n.dispatchAction({type:\\\"updateAxisPointer\\\",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){this._lastDataByCoordSys=null;var o,a;Vc(n,function(t){return null!=TR(t).dataIndex?(o=t,!0):null!=TR(t).tooltipConfig?(a=t,!0):void 0},!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get(\\\"showDelay\\\");e=Lk(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=MT([e.tooltipOption],i),a=this._renderMode,s=[],l=Fh(\\\"section\\\",{blocks:[],noHeader:!0}),u=[],c=new rB;y(t,function(t){y(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+\\\"Axis\\\",t.axisIndex),r=t.value;if(e&&null!=r){var o=KM(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=Fh(\\\"section\\\",{header:o,noHeader:!H(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),y(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,g=d.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=ff(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker(\\\"item\\\",ou(g.color),a);var y=_h(d.formatTooltip(f,!0,null)),v=y.frag;if(v){var m=MT([d],i).get(\\\"valueFormatter\\\");p.blocks.push(m?h({valueFormatter:m},v):v)}y.text&&u.push(y.text),s.push(g)}})}})}),l.blocks.reverse(),u.reverse();var p=e.position,d=o.get(\\\"order\\\"),f=Uh(l,c,a,d,n.get(\\\"useUTC\\\"),o.get(\\\"textStyle\\\"));f&&u.unshift(f);var g=\\\"richText\\\"===a?\\\"\\\\n\\\\n\\\":\\\"
\\\",v=u.join(g);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+\\\"\\\",r[0],r[1],p,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=TR(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),p=this._renderMode,d=t.positionDefault,f=MT([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=f.get(\\\"trigger\\\");if(null==g||\\\"item\\\"===g){var y=s.getDataParams(l,u),v=new rB;y.marker=v.makeTooltipMarker(\\\"item\\\",ou(y.color),p);var m=_h(s.formatTooltip(l,!1,u)),x=f.get(\\\"order\\\"),_=f.get(\\\"valueFormatter\\\"),b=m.frag,w=b?Uh(_?h({valueFormatter:_},b):b,v,p,x,i.get(\\\"useUTC\\\"),f.get(\\\"textStyle\\\")):m.text,S=\\\"item_\\\"+s.name+\\\"_\\\"+l;this._showOrMove(f,function(){this._showTooltipContent(f,w,y,S,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:\\\"showTip\\\",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=TR(e),r=i.tooltipConfig,o=r.option||{};if(T(o)){var a=o;o={content:a,formatter:a}}var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=MT(l,this._tooltipModel,h?{position:h}:null),p=c.get(\\\"content\\\"),d=Math.random()+\\\"\\\",f=new rB;this._showOrMove(c,function(){var n=s(c.get(\\\"formatterParams\\\")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:\\\"showTip\\\",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket=\\\"\\\",t.get(\\\"showContent\\\")&&t.get(\\\"show\\\")){var u=this._tooltipContent;u.setEnterable(t.get(\\\"enterable\\\"));var h=t.get(\\\"formatter\\\");a=a||t.get(\\\"position\\\");var c=e,p=this._getNearestPoint([r,o],n,t.get(\\\"trigger\\\"),t.get(\\\"borderColor\\\")),d=p.color;if(h)if(T(h)){var f=t.ecModel.get(\\\"useUTC\\\"),g=M(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf(\\\"time\\\")>=0;c=h,y&&(c=Pl(g.axisValue,c,f)),c=tu(c,n,!0)}else if(I(h)){var v=Lk(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return\\\"axis\\\"===n||M(e)?{color:i||(\\\"html\\\"===this._renderMode?\\\"#fff\\\":\\\"none\\\")}:M(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get(\\\"position\\\");var u=r.getSize(),h=t.get(\\\"align\\\"),c=t.get(\\\"verticalAlign\\\"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),I(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),M(e))n=or(e[0],s),i=or(e[1],l);else if(A(e)){var d=e;d.width=u[0],d.height=u[1];var f=uu(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(T(e)&&a){var g=DT(e,p,u,t.get(\\\"borderWidth\\\"));n=g[0],i=g[1]}else{var g=TT(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=AT(h)?u[0]/2:\\\"right\\\"===h?u[0]:0),c&&(i-=AT(c)?u[1]/2:\\\"bottom\\\"===c?u[1]:0),hT(t)){var g=CT(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&y(n,function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&y(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&y(a,function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&y(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:\\\"hideTip\\\",from:this.uid})},n.prototype.dispose=function(t,e){!uk.node&&e.getDom()&&(xc(this,\\\"_updatePosition\\\"),this._tooltipContent.dispose(),cI(\\\"itemTooltip\\\",e))},n.type=\\\"tooltip\\\",n}(lB);If(LT);var Oq=Kr(),Rq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.createdBySelf=!1,e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},n.prototype.isAnimationEnabled=function(){if(uk.node)return!1;var t=this.__hostSeries;return this.getShallow(\\\"animation\\\")&&t&&t.isAnimationEnabled()},n.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},n.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=Oq(t)[r];return n&&n.data?(o?o._mergeOption(n,e,!0):(i&&OT(n),y(n.data,function(t){t instanceof Array?(OT(t[0]),OT(t[1])):OT(t)}),o=this.createMarkerModelFromSeries(n,this,e),h(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(Oq(t)[r]=o)):void(Oq(t)[r]=null)},this)},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),i=e.getName(t);return Fh(\\\"section\\\",{header:this.name,blocks:[Fh(\\\"nameValue\\\",{name:i,value:n,noName:!i,noValue:null==n})]})},n.prototype.getData=function(){return this._data},n.prototype.setData=function(t){this._data=t},n.getMarkerModelFromSeries=function(t,e){return Oq(t)[e]},n.type=\\\"marker\\\",n.dependencies=[\\\"series\\\",\\\"grid\\\",\\\"polar\\\",\\\"geo\\\"],n}(HE);f(Rq,Fz.prototype);var Nq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type=\\\"markPoint\\\",n.defaultOption={z:5,symbol:\\\"pin\\\",symbolSize:50,tooltip:{trigger:\\\"item\\\"},label:{show:!0,position:\\\"inside\\\"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},n}(Rq),Eq={min:S(ET,\\\"min\\\"),max:S(ET,\\\"max\\\"),average:S(ET,\\\"average\\\"),median:S(ET,\\\"median\\\")},zq=Kr(),Bq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markerGroupMap=Z()},n.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){zq(t).keep=!1}),e.eachSeries(function(t){var r=Rq.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){!zq(t).keep&&i.group.remove(t.group)})},n.prototype.markKeep=function(t){zq(t).keep=!0},n.prototype.toggleBlurSeries=function(t,e){var n=this;y(t,function(t){var i=Rq.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl(function(t){t&&(e?Ea(t):za(t))})}})},n.type=\\\"marker\\\",n}(lB),Vq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Rq.getMarkerModelFromSeries(t,\\\"markPoint\\\");e&&(YT(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new CW),u=XT(r,t,e);e.setData(u),YT(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow(\\\"symbol\\\"),r=n.getShallow(\\\"symbolSize\\\"),o=n.getShallow(\\\"symbolRotate\\\"),s=n.getShallow(\\\"symbolOffset\\\"),l=n.getShallow(\\\"symbolKeepAspect\\\");if(I(i)||I(r)||I(o)||I(s)){var h=e.getRawValue(t),c=e.getDataParams(t);I(i)&&(i=i(h,c)),I(r)&&(r=r(h,c)),I(o)&&(o=o(h,c)),I(s)&&(s=s(h,c))}var p=n.getModel(\\\"itemStyle\\\").getItemStyle(),d=Rc(a,\\\"color\\\");p.fill||(p.fill=d),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){TR(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get(\\\"silent\\\")||t.get(\\\"silent\\\")},n.type=\\\"markPoint\\\",n}(Bq);If(UT);var Fq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type=\\\"markLine\\\",n.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\\\"},n}(Rq),Gq=Kr(),Wq=function(t,e,n,i){var r,o=t.getData();if(M(i))r=i;else{var a=i.type;if(\\\"min\\\"===a||\\\"max\\\"===a||\\\"average\\\"===a||\\\"median\\\"===a||null!=i.xAxis||null!=i.yAxis){var u=void 0,c=void 0;if(null!=i.yAxis||null!=i.xAxis)u=e.getAxis(null!=i.yAxis?\\\"y\\\":\\\"x\\\"),c=z(i.yAxis,i.xAxis);else{var p=BT(i,o,e,t);u=p.valueAxis;var d=_d(o,p.valueDataDim);c=HT(o,d,a)}var f=\\\"x\\\"===u.dim?0:1,g=1-f,y=s(i),v={coord:[]};y.type=null,y.coord=[],y.coord[g]=-1/0,v.coord[g]=1/0;var m=n.get(\\\"precision\\\");m>=0&&D(c)&&(c=+c.toFixed(Math.min(m,20))),y.coord[f]=v.coord[f]=c,r=[y,v,{type:a,valueIndex:i.valueIndex,value:c}]}else r=[]}var x=[zT(t,r[0]),zT(t,r[1]),h({},r[2])];return x[2].type=x[2].type||null,l(x[2],x[0]),l(x[2],x[1]),x\\n},Hq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Rq.getMarkerModelFromSeries(t,\\\"markLine\\\");if(e){var i=e.getData(),r=Gq(e).from,o=Gq(e).to;r.each(function(e){KT(r,e,!0,t,n),KT(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},n.prototype.renderSeries=function(t,e,n,i){function r(e,n,r){var o=e.getItemModel(n);KT(e,n,r,t,i);var a=o.getModel(\\\"itemStyle\\\").getItemStyle();null==a.fill&&(a.fill=Rc(s,\\\"color\\\")),e.setItemVisual(n,{symbolKeepAspect:o.get(\\\"symbolKeepAspect\\\"),symbolOffset:B(o.get(\\\"symbolOffset\\\",!0),v[r?0:1]),symbolRotate:B(o.get(\\\"symbolRotate\\\",!0),y[r?0:1]),symbolSize:B(o.get(\\\"symbolSize\\\"),g[r?0:1]),symbol:B(o.get(\\\"symbol\\\",!0),f[r?0:1]),style:a})}var o=t.coordinateSystem,a=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new qX);this.group.add(u.group);var h=$T(o,t,e),c=h.from,p=h.to,d=h.line;Gq(e).from=c,Gq(e).to=p,e.setData(d);var f=e.get(\\\"symbol\\\"),g=e.get(\\\"symbolSize\\\"),y=e.get(\\\"symbolRotate\\\"),v=e.get(\\\"symbolOffset\\\");M(f)||(f=[f,f]),M(g)||(g=[g,g]),M(y)||(y=[y,y]),M(v)||(v=[v,v]),h.from.each(function(t){r(c,t,!0),r(p,t,!1)}),d.each(function(t){var e=d.getItemModel(t).getModel(\\\"lineStyle\\\").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),p.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,\\\"style\\\").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,\\\"symbolKeepAspect\\\"),fromSymbolOffset:c.getItemVisual(t,\\\"symbolOffset\\\"),fromSymbolRotate:c.getItemVisual(t,\\\"symbolRotate\\\"),fromSymbolSize:c.getItemVisual(t,\\\"symbolSize\\\"),fromSymbol:c.getItemVisual(t,\\\"symbol\\\"),toSymbolKeepAspect:p.getItemVisual(t,\\\"symbolKeepAspect\\\"),toSymbolOffset:p.getItemVisual(t,\\\"symbolOffset\\\"),toSymbolRotate:p.getItemVisual(t,\\\"symbolRotate\\\"),toSymbolSize:p.getItemVisual(t,\\\"symbolSize\\\"),toSymbol:p.getItemVisual(t,\\\"symbol\\\"),style:e})}),u.updateData(d),h.line.eachItemGraphicEl(function(t){TR(t).dataModel=e,t.traverse(function(t){TR(t).dataModel=e})}),this.markKeep(u),u.group.silent=e.get(\\\"silent\\\")||t.get(\\\"silent\\\")},n.type=\\\"markLine\\\",n}(Bq);If(JT);var Yq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type=\\\"markArea\\\",n.defaultOption={z:1,tooltip:{trigger:\\\"item\\\"},animation:!1,label:{show:!0,position:\\\"top\\\"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:\\\"top\\\"}}},n}(Rq),Xq=Kr(),Uq=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=zT(t,r),s=zT(t,o),l=a.coord,h=s.coord;l[0]=z(l[0],-1/0),l[1]=z(l[1],-1/0),h[0]=z(h[0],1/0),h[1]=z(h[1],1/0);var c=u([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}},Zq=[[\\\"x0\\\",\\\"y0\\\"],[\\\"x1\\\",\\\"y0\\\"],[\\\"x1\\\",\\\"y1\\\"],[\\\"x0\\\",\\\"y1\\\"]],jq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Rq.getMarkerModelFromSeries(t,\\\"markArea\\\");if(e){var i=e.getData();i.each(function(e){var r=v(Zq,function(r){return nC(i,e,r,t,n)});i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape(\\\"points\\\",r)})}},this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new HP});this.group.add(l.group),this.markKeep(l);var u=iC(r,t,e);e.setData(u),u.each(function(e){var n=v(Zq,function(n){return nC(u,e,n,t,i)}),o=r.getAxis(\\\"x\\\").scale,s=r.getAxis(\\\"y\\\").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get(\\\"x0\\\",e)),o.parse(u.get(\\\"x1\\\",e))],p=[s.parse(u.get(\\\"y0\\\",e)),s.parse(u.get(\\\"y1\\\",e))];sr(c),sr(p);var d=!(l[0]>c[1]||l[1]p[1]||h[1]=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},n.prototype.getCurrentIndex=function(){return this.option.currentIndex},n.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},n.prototype.setPlayState=function(t){this.option.autoPlay=!!t},n.prototype.getPlayState=function(){return!!this.option.autoPlay},n.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];\\\"category\\\"===i?(t=[],y(n,function(e,n){var i,o=Wr(Lr(e),\\\"\\\");A(e)?(i=s(e),i.value=n):i=n,t.push(i),r.push(o)})):t=n;var o={category:\\\"ordinal\\\",time:\\\"time\\\",value:\\\"number\\\"}[i]||\\\"number\\\",a=this._data=new WF([{name:\\\"value\\\",type:o}],this);a.initData(t,r)},n.prototype.getData=function(){return this._data},n.prototype.getCategories=function(){return\\\"category\\\"===this.get(\\\"axisType\\\")?this._names.slice():void 0},n.type=\\\"timeline\\\",n.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:[]},n}(HE),Kq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"timeline.slider\\\",n.defaultOption=Sl(qq.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:[]}),n}(qq);f(Kq,Fz.prototype);var $q=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"timeline\\\",n}(lB),Jq=function(t){function n(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||\\\"value\\\",o}return e(n,t),n.prototype.getLabelModel=function(){return this.model.getModel(\\\"label\\\")},n.prototype.isHorizontal=function(){return\\\"horizontal\\\"===this.model.get(\\\"orient\\\")},n}(RG),Qq=Math.PI,tK=Kr(),eK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.api=e},n.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get(\\\"show\\\",!0)){var i=this._layout(t,n),r=this._createGroup(\\\"_mainGroup\\\"),o=this._createGroup(\\\"_labelGroup\\\"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Fh(\\\"nameValue\\\",{noName:!0,value:e})},y([\\\"AxisLine\\\",\\\"AxisTick\\\",\\\"Control\\\",\\\"CurrentPointer\\\"],function(e){this[\\\"_render\\\"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},n.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},n.prototype.dispose=function(){this._clearTimer()},n.prototype._layout=function(t,e){var n,i=t.get([\\\"label\\\",\\\"position\\\"]),r=t.get(\\\"orient\\\"),o=aC(t,e);n=null==i||\\\"auto\\\"===i?\\\"horizontal\\\"===r?o.y+o.height/2=0||\\\"+\\\"===n?\\\"left\\\":\\\"right\\\"},s={horizontal:n>=0||\\\"+\\\"===n?\\\"top\\\":\\\"bottom\\\",vertical:\\\"middle\\\"},l={horizontal:0,vertical:Qq/2},u=\\\"vertical\\\"===r?o.height:o.width,h=t.getModel(\\\"controlStyle\\\"),c=h.get(\\\"show\\\",!0),p=c?h.get(\\\"itemSize\\\"):0,d=c?h.get(\\\"itemGap\\\"):0,f=p+d,g=t.get([\\\"label\\\",\\\"rotate\\\"])||0;g=g*Qq/180;var y,v,m,x=h.get(\\\"position\\\",!0),_=c&&h.get(\\\"showPlayBtn\\\",!0),b=c&&h.get(\\\"showPrevBtn\\\",!0),w=c&&h.get(\\\"showNextBtn\\\",!0),S=0,M=u;\\\"left\\\"===x||\\\"bottom\\\"===x?(_&&(y=[0,0],S+=f),b&&(v=[S,0],S+=f),w&&(m=[M-p,0],M-=f)):(_&&(y=[M-p,0],M-=f),b&&(v=[0,0],S+=f),w&&(m=[M-p,0],M-=f));var I=[S,M];return t.get(\\\"inverse\\\")&&I.reverse(),{viewRect:o,mainLength:u,orient:r,rotation:l[r],labelRotation:g,labelPosOpt:n,labelAlign:t.get([\\\"label\\\",\\\"align\\\"])||a[r],labelBaseline:t.get([\\\"label\\\",\\\"verticalAlign\\\"])||t.get([\\\"label\\\",\\\"baseline\\\"])||s[r],playPosition:y,prevBtnPosition:v,nextBtnPosition:m,axisExtent:I,controlSize:p,controlGap:d}},n.prototype._position=function(t){function e(t){t.originX=h[0][0]-t.x,t.originY=h[1][0]-t.y}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function i(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}var r=this._mainGroup,o=this._labelGroup,a=t.viewRect;if(\\\"vertical\\\"===t.orient){var s=Be(),l=a.x,u=a.y+a.height;We(s,s,[-l,-u]),He(s,s,-Qq/2),We(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var h=n(a),c=n(r.getBoundingRect()),p=n(o.getBoundingRect()),d=[r.x,r.y],f=[o.x,o.y];f[0]=d[0]=h[0][0];var g=t.labelPosOpt;if(null==g||T(g)){var y=\\\"+\\\"===g?0:1;i(d,c,h,1,y),i(f,p,h,1,1-y)}else{var y=g>=0?0:1;i(d,c,h,1,y),f[1]=d[1]+g}r.setPosition(d),o.setPosition(f),r.rotation=o.rotation=t.rotation,e(r),e(o)},n.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get(\\\"axisType\\\"),r=oC(e,i);r.getTicks=function(){return n.mapArray([\\\"value\\\"],function(t){return{value:t}})};var o=n.getDataExtent(\\\"value\\\");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new Jq(\\\"value\\\",r,t.axisExtent,i);return a.model=e,a},n.prototype._createGroup=function(t){var e=this[t]=new HP;return this.group.add(e),e},n.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get([\\\"lineStyle\\\",\\\"show\\\"])){var o=new AN({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:h({lineCap:\\\"round\\\"},i.getModel(\\\"lineStyle\\\").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new AN({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:c({lineCap:\\\"round\\\",lineWidth:o.style.lineWidth},i.getModel([\\\"progress\\\",\\\"lineStyle\\\"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},n.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],y(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel(\\\"itemStyle\\\"),u=s.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),h=s.getModel([\\\"progress\\\",\\\"itemStyle\\\"]),c={x:a,y:0,onclick:Lk(r._changeTimeline,r,t.value)},p=lC(s,l,e,c);p.ensureState(\\\"emphasis\\\").style=u.getItemStyle(),p.ensureState(\\\"progress\\\").style=h.getItemStyle(),$a(p);var d=TR(p);s.get(\\\"tooltip\\\")?(d.dataIndex=t.value,d.dataModel=i):d.dataIndex=d.dataModel=null,r._tickSymbols.push(p)})},n.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get(\\\"show\\\")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],y(s,function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel(\\\"label\\\"),u=s.getModel([\\\"emphasis\\\",\\\"label\\\"]),h=s.getModel([\\\"progress\\\",\\\"label\\\"]),c=n.dataToCoord(i.tickValue),p=new wR({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:Lk(r._changeTimeline,r,o),silent:!1,style:pl(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState(\\\"emphasis\\\").style=pl(u),p.ensureState(\\\"progress\\\").style=pl(h),e.add(p),$a(p),tK(p).dataIndex=o,r._tickLabels.push(p)})}},n.prototype._renderControl=function(t,e,n,i){function r(t,n,r,u){if(t){var h=Gi(B(i.get([\\\"controlStyle\\\",n+\\\"BtnSize\\\"]),o),o),c=[0,-h/2,h,h],p=sC(i,n+\\\"Icon\\\",c,{x:t[0],y:t[1],originX:o/2,originY:0,rotation:u?-a:0,rectHover:!0,style:s,onclick:r});p.ensureState(\\\"emphasis\\\").style=l,e.add(p),$a(p)}}var o=t.controlSize,a=t.rotation,s=i.getModel(\\\"controlStyle\\\").getItemStyle(),l=i.getModel([\\\"emphasis\\\",\\\"controlStyle\\\"]).getItemStyle(),u=i.getPlayState(),h=i.get(\\\"inverse\\\",!0);r(t.nextBtnPosition,\\\"next\\\",Lk(this._changeTimeline,this,h?\\\"-\\\":\\\"+\\\")),r(t.prevBtnPosition,\\\"prev\\\",Lk(this._changeTimeline,this,h?\\\"+\\\":\\\"-\\\")),r(t.playPosition,u?\\\"stop\\\":\\\"play\\\",Lk(this._handlePlayClick,this,!u),!0)},n.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel(\\\"checkpointStyle\\\"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Lk(s._handlePointerDrag,s),t.ondragend=Lk(s._handlePointerDragend,s),uC(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){uC(t,s._progressLine,o,n,i)}};this._currentPointer=lC(a,a,this._mainGroup,{},this._currentPointer,l)},n.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:\\\"timelinePlayChange\\\",playState:t,from:this.uid})},n.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},n.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},n.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=sr(i.getExtent().slice());n>r[1]&&(n=r[1]),ns&&(i=s,e=o)}),e},n.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},n.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})},n.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;ii);if(n)for(var i=0;i0?100:20}},n.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get(\\\"rangeMode\\\");y([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]=\\\"percent\\\":!o&&a?e[r]=\\\"value\\\":n?e[r]=n[r]:o&&(e[r]=\\\"percent\\\")})},n.prototype.noTarget=function(){return this._noTarget},n.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(vC(e),n))},this),t},n.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){y(n.indexList,function(n){t.call(e,i,n)})})},n.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);return n?n.__dzAxisProxy:void 0},n.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);return n&&n.indexMap[e]?this.ecModel.getComponent(vC(t),e):void 0},n.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;y([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},n.prototype.setCalculatedRange=function(t){var e=this.option;y([\\\"start\\\",\\\"startValue\\\",\\\"end\\\",\\\"endValue\\\"],function(n){e[n]=t[n]})},n.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},n.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},n.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Pb(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:AC(function(t,e,n,i,r,o){var a=cK[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:AC(function(t,e,n,i,r,o){var a=cK[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta})},cK={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],\\\"x\\\"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.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=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],\\\"horizontal\\\"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},pK=y,dK=sr,fK=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(yC(e)){var n=vC(this._dimName),i=e.getReferringComponents(n,iO).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+\\\"Axis\\\",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return s(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){function e(t,e,n,i,r){var a=r?\\\"Span\\\":\\\"ValueSpan\\\";Pb(0,t,n,\\\"all\\\",h[\\\"min\\\"+a],h[\\\"max\\\"+a]);for(var s=0;2>s;s++)e[s]=rr(t[s],n,i,!0),r&&(e[s]=o.parse(e[s]))}var n,i=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];pK([\\\"start\\\",\\\"end\\\"],function(e,r){var h=t[e],c=t[e+\\\"Value\\\"];\\\"percent\\\"===a[r]?(null==h&&(h=s[r]),c=o.parse(rr(h,s,i))):(n=!0,c=null==c?i[r]:o.parse(c),h=rr(c,i,s)),u[r]=null==c||isNaN(c)?i[r]:c,l[r]=null==h||isNaN(h)?s[r]:h}),dK(u),dK(l);var h=this._minMaxSpan;return n?e(u,l,i,s,!1):e(l,u,s,i,!0),{valueWindow:u,percentWindow:l}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=kC(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get(\\\"filterMode\\\"),o=this._valueWindow;\\\"none\\\"!==r&&pK(i,function(t){var i=t.getData(),a=i.mapDimensionsAll(n);if(a.length){if(\\\"weakFilter\\\"===r){var s=i.getStore(),l=v(a,function(t){return i.getDimensionIndex(t)},i);i.filterSelf(function(t){for(var e,n,i,r=0;ro[1];if(h&&!c&&!p)return!0;h&&(i=!0),c&&(e=!0),p&&(n=!0)}return i&&e&&n})}else pK(a,function(n){if(\\\"empty\\\"===r)t.setData(i=i.map(n,function(t){return e(t)?t:0/0}));else{var a={};a[n]=o,i.selectRange(a)}});pK(a,function(t){i.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;pK([\\\"min\\\",\\\"max\\\"],function(i){var r=e.get(i+\\\"Span\\\"),o=e.get(i+\\\"ValueSpan\\\");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=rr(n[0]+o,n,[0,100],!0):null!=r&&(o=rr(r,[0,100],n,!0)-n[0]),t[i+\\\"Span\\\"]=r,t[i+\\\"ValueSpan\\\"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=hr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax(\\\"min\\\",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax(\\\"max\\\",+n[1].toFixed(i)),r.freeze()}},t}(),gK={getTargetSeries:function(t){function e(e){t.eachComponent(\\\"dataZoom\\\",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(vC(i),r);e(i,r,o,n)})})}e(function(t,e,n){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new fK(e,i,o,t),n.push(r.__dzAxisProxy))});var i=Z();return y(n,function(t){y(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent(\\\"dataZoom\\\",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent(\\\"dataZoom\\\",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},yK=!1,vK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"dataZoom.slider\\\",n.layoutMode=\\\"box\\\",n.defaultOption=Sl(oK.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\\\"}}}),n}(oK),mK=mR,xK=7,_K=1,bK=30,wK=7,SK=\\\"horizontal\\\",MK=\\\"vertical\\\",IK=5,TK=[\\\"line\\\",\\\"bar\\\",\\\"candlestick\\\",\\\"scatter\\\"],CK={easing:\\\"cubicOut\\\",duration:100,delay:0},DK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._displayables={},e}return e(n,t),n.prototype.init=function(t,e){this.api=e,this._onBrush=Lk(this._onBrush,this),this._onBrushEnd=Lk(this._onBrushEnd,this)},n.prototype.render=function(e,n,i,r){return t.prototype.render.apply(this,arguments),mc(this,\\\"_dispatchZoomAction\\\",e.get(\\\"throttle\\\"),\\\"fixRate\\\"),this._orient=e.getOrient(),e.get(\\\"show\\\")===!1?void this.group.removeAll():e.noTarget()?(this._clear(),void this.group.removeAll()):(r&&\\\"dataZoom\\\"===r.type&&r.from===this.uid||this._buildView(),void this._updateView())},n.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){xc(this,\\\"_dispatchZoomAction\\\");var t=this.api.getZr();t.off(\\\"mousemove\\\",this._onBrush),t.off(\\\"mouseup\\\",this._onBrushEnd)},n.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new HP;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},n.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get(\\\"brushSelect\\\"),i=n?wK:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===SK?{right:o.width-r.x-r.width,top:o.height-bK-xK-i,width:r.width,height:bK}:{right:xK,top:r.y,width:bK,height:r.height},s=fu(t.option);y([\\\"right\\\",\\\"top\\\",\\\"width\\\",\\\"height\\\"],function(t){\\\"ph\\\"===s[t]&&(s[t]=a[t])});var l=uu(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===MK&&this._size.reverse()},n.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get(\\\"inverse\\\"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;\\no.attr(n!==SK||r?n===SK&&r?{scaleY:a?1:-1,scaleX:-1}:n!==MK||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},n.prototype._getViewExtent=function(){return[0,this._size[0]]},n.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get(\\\"brushSelect\\\");n.add(new mK({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(\\\"backgroundColor\\\")},z2:-40}));var r=new mK({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:\\\"transparent\\\"},z2:0,onclick:Lk(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on(\\\"mousedown\\\",this._onBrushStart,this),r.cursor=\\\"crosshair\\\",o.on(\\\"mousemove\\\",this._onBrush),o.on(\\\"mouseup\\\",this._onBrushEnd)):(o.off(\\\"mousemove\\\",this._onBrush),o.off(\\\"mouseup\\\",this._onBrushEnd)),n.add(r)},n.prototype._renderDataShadow=function(){function t(t){var e=_.getModel(t?\\\"selectedDataBackground\\\":\\\"dataBackground\\\"),n=new HP,i=new MN({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel(\\\"areaStyle\\\").getAreaStyle(),silent:!0,z2:-20}),r=new TN({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel(\\\"lineStyle\\\").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var n=this._size,i=this._shadowSize||[],r=e.series,o=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),s=a&&o.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(null!=s){var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(s),c=.3*(h[1]-h[0]);h=[h[0]-c,h[1]+c];var p,d=[0,n[1]],f=[0,n[0]],g=[[n[0],0],[0,0]],y=[],v=f[1]/(o.count()-1),m=0,x=Math.round(o.count()/n[0]);o.each([s],function(t,e){if(x>0&&e%x)return void(m+=v);var n=null==t||isNaN(t)||\\\"\\\"===t,i=n?0:rr(t,h,d,!0);n&&!p&&e?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&p&&(g.push([m,0]),y.push([m,0])),g.push([m,i]),y.push([m,i]),m+=v,p=n}),l=this._shadowPolygonPts=g,u=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=s,this._shadowSize=[n[0],n[1]];for(var _=this.dataZoomModel,b=0;3>b;b++){var w=t(1===b);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}},n.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get(\\\"showDataShadow\\\");if(e!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();y(a,function(t){if(!(n||e!==!0&&p(TK,t.get(\\\"type\\\"))<0)){var a,s=i.getComponent(vC(r),o).axis,l=RC(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},n.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get(\\\"borderRadius\\\")||0,u=a.get(\\\"brushSelect\\\"),h=e.filler=new mK({silent:u,style:{fill:a.get(\\\"fillerColor\\\")},textConfig:{position:\\\"inside\\\"}});r.add(h),r.add(new mK({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get(\\\"dataBackgroundColor\\\")||a.get(\\\"borderColor\\\"),lineWidth:_K,fill:\\\"rgba(0,0,0,0)\\\"}})),y([0,1],function(e){var o=a.get(\\\"handleIcon\\\");!KB[o]&&o.indexOf(\\\"path://\\\")<0&&o.indexOf(\\\"image://\\\")<0&&(o=\\\"path://\\\"+o);var s=Gc(o,-1,0,2,2,null,!0);s.attr({cursor:NC(this._orient),draggable:!0,drift:Lk(this._onDragMove,this,e),ondragend:Lk(this._onDragEnd,this),onmouseover:Lk(this._showDataInfo,this,!0),onmouseout:Lk(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get(\\\"handleSize\\\");this._handleHeight=or(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel(\\\"handleStyle\\\").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(\\\"emphasis\\\").style=a.getModel([\\\"emphasis\\\",\\\"handleStyle\\\"]).getItemStyle(),$a(s);var h=a.get(\\\"handleColor\\\");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel(\\\"textStyle\\\");t.add(i[e]=new wR({silent:!0,invisible:!0,style:pl(c,{x:0,y:0,text:\\\"\\\",verticalAlign:\\\"middle\\\",align:\\\"center\\\",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=or(a.get(\\\"moveHandleSize\\\"),o[1]),d=e.moveHandle=new mR({style:a.getModel(\\\"moveHandleStyle\\\").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=Gc(a.get(\\\"moveHandleIcon\\\"),-f/2,-f/2,f,f,\\\"#fff\\\",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState(\\\"emphasis\\\").style=a.getModel([\\\"emphasis\\\",\\\"moveHandleStyle\\\"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));c=e.moveZone=new mR({invisible:!0,shape:{y:o[1]-v,height:p+v}}),c.on(\\\"mouseover\\\",function(){s.enterEmphasis(d)}).on(\\\"mouseout\\\",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:NC(this._orient),drift:Lk(this._onDragMove,this,\\\"all\\\"),ondragstart:Lk(this._showDataInfo,this,!0),ondragend:Lk(this._onDragEnd,this),onmouseover:Lk(this._showDataInfo,this,!0),onmouseout:Lk(this._showDataInfo,this,!1)})},n.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rr(t[0],[0,100],e,!0),rr(t[1],[0,100],e,!0)]},n.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Pb(e,i,r,n.get(\\\"zoomLock\\\")?\\\"all\\\":t,null!=o.minSpan?rr(o.minSpan,a,r,!0):null,null!=o.maxSpan?rr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=sr([rr(i[0],r,a,!0),rr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},n.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=sr(n.slice()),r=this._size;y([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr(\\\"x\\\",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval(\\\"all\\\",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},n.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new rL(e,n),this._brushing=!0,this._brushStartTime=+new Date},n.prototype._onBrushEnd=function(){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(\\\"ignore\\\",!0);var e=t.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(e.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=sr([rr(e.x,i,r,!0),rr(e.x+e.width,i,r,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)}}}},n.prototype._onBrush=function(t){this._brushing&&(tL(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},n.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new mK({silent:!0,style:i.getModel(\\\"brushStyle\\\").getItemStyle()}),n.sliderGroup.add(r)),r.attr(\\\"ignore\\\",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},n.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:\\\"dataZoom\\\",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?CK:null,start:e[0],end:e[1]})},n.prototype._findCoordRect=function(){var t,e=xC(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},n.type=\\\"dataZoom.slider\\\",n}(sK);If(zC);var AK=[\\\"rect\\\",\\\"polygon\\\",\\\"keep\\\",\\\"clear\\\"],kK=y,LK={lineX:UC(0),lineY:UC(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])&&Cf(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return Cf(i,r,o)||Cf(i,r+a,o)||Cf(i,r,o+s)||Cf(i,r+a,o+s)||dL.create(t).contain(l[0],l[1])||el(r,o,r+a,o,i)||el(r,o,r,o+s,i)||el(r+a,o,r+a,o+s,i)||el(r,o+s,r+a,o+s,i)?!0:void 0}}},PK=[\\\"grid\\\",\\\"xAxis\\\",\\\"yAxis\\\",\\\"geo\\\",\\\"graph\\\",\\\"polar\\\",\\\"radiusAxis\\\",\\\"angleAxis\\\",\\\"bmap\\\"],OK=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=qC(e,t);y(RK,function(t,e){(!n||!n.include||p(n.include,e)>=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=zK[t.brushType](0,n,e);t.__rangeOffset={offset:BK[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){y(t,function(t){var i=this.findTargetInfo(t,e);i&&i!==!0&&y(i.coordSyses,function(i){var r=zK[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){y(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&n!==!0){t.panelId=n.panelId;var i=zK[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?BK[t.brushType](i.values,r.offset,JC(i.xyMinMax,r.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(t,e){return v(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:xw(i),isTargetByCursor:bw(i,t,n.coordSysModel),getLinearBrushOtherExtent:_w(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&p(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=qC(e,t),r=0;r=0||p(i,t.getAxis(\\\"y\\\").model)>=0)&&o.push(t)}),e.push({panelId:\\\"grid--\\\"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:EK.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){y(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:\\\"geo--\\\"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:EK.geo})})}},NK=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],EK={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Us(t)),e}},zK={lineX:S(KC,0),lineY:S(KC,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[jC([r[0],o[0]]),jC([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=v(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o});return{values:o,xyMinMax:r}}},BK={lineX:S($C,0),lineY:S($C,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,e,n){return v(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}},VK=[\\\"inBrush\\\",\\\"outOfBrush\\\"],FK=\\\"__ecBrushSelect\\\",GK=\\\"__ecInBrushSelectEvent\\\",WK={rect:function(t){return aD(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;r>i;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&aD(e)}},HK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new yZ(e.getZr())).on(\\\"brush\\\",Lk(this._onBrush,this)).mount()},n.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},n.prototype.updateTransform=function(t,e,n,i){tD(e),this._updateController(t,e,n,i)},n.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},n.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},n.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())},n.prototype.dispose=function(){this._brushController.dispose()},n.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:s(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:\\\"brushEnd\\\",brushId:e,areas:s(n),$from:e})},n.type=\\\"brush\\\",n}(lB),YK=\\\"#ddd\\\",XK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.areas=[],e.brushOption={},e}return e(n,t),n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&WC(n,t,[\\\"inBrush\\\",\\\"outOfBrush\\\"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:YK},i.hasOwnProperty(\\\"liftZ\\\")||(i.liftZ=5)},n.prototype.setAreas=function(t){t&&(this.areas=v(t,function(t){return sD(this.option,t)},this))},n.prototype.setBrushOption=function(t){this.brushOption=sD(this.option,t),this.brushType=this.brushOption.brushType},n.type=\\\"brush\\\",n.dependencies=[\\\"geo\\\",\\\"grid\\\",\\\"xAxis\\\",\\\"yAxis\\\",\\\"parallel\\\",\\\"series\\\"],n.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},n}(HE),UK=function(){function t(){}return t}(),ZK={},jK=[\\\"rect\\\",\\\"polygon\\\",\\\"lineX\\\",\\\"lineY\\\",\\\"keep\\\",\\\"clear\\\"],qK=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e){var n,i,r;e.eachComponent({mainType:\\\"brush\\\"},function(t){n=t.brushType,i=t.brushOption.brushMode||\\\"single\\\",r=r||!!t.areas.length}),this._brushType=n,this._brushMode=i,y(t.get(\\\"type\\\",!0),function(e){t.setIconStatus(e,(\\\"keep\\\"===e?\\\"multiple\\\"===i:\\\"clear\\\"===e?r:e===n)?\\\"emphasis\\\":\\\"normal\\\")})},n.prototype.updateView=function(t,e,n){this.render(t,e,n)},n.prototype.getIcons=function(){var t=this.model,e=t.get(\\\"icon\\\",!0),n={};return y(t.get(\\\"type\\\",!0),function(t){e[t]&&(n[t]=e[t])}),n},n.prototype.onclick=function(t,e,n){var i=this._brushType,r=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?!1:n,brushMode:\\\"keep\\\"===n?\\\"multiple\\\"===r?\\\"single\\\":\\\"multiple\\\":r}})},n.getDefaultOption=function(t){var e={show:!0,type:jK.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\\\"])};return e},n}(UK);If(hD);var KK={get:function(t,e,n){var i=s(($K[t]||{})[e]);return n&&M(i)?i[i.length-1]:i}},$K={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]}},JK=RY.mapVisual,QK=RY.eachVisual,t$=M,e$=y,n$=sr,i$=rr,r$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.stateList=[\\\"inRange\\\",\\\"outOfRange\\\"],e.replacableOptionKeys=[\\\"inRange\\\",\\\"outOfRange\\\",\\\"target\\\",\\\"controller\\\",\\\"color\\\"],e.layoutMode={type:\\\"box\\\",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&WC(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel(\\\"textStyle\\\"),this.resetItemSize(),this.completeVisualOption()},n.prototype.resetVisual=function(t){var e=this.stateList;t=Lk(t,this),this.controllerVisuals=GC(this.option.controller,e,t),this.targetVisuals=GC(this.option.target,e,t)},n.prototype.getItemSymbol=function(){return null},n.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||\\\"all\\\"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Ar(t),e},n.prototype.eachTargetSeries=function(t,e){y(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},n.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},n.prototype.formatValueText=function(t,e,n){function i(t){return t===s[0]?\\\"min\\\":t===s[1]?\\\"max\\\":(+t).toFixed(Math.min(a,20))}var r,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;n=n||[\\\"<\\\",\\\">\\\"],M(t)&&(t=t.slice(),r=!0);var u=e?t:r?[i(t[0]),i(t[1])]:i(t);return T(l)?l.replace(\\\"{value}\\\",r?u[0]:u).replace(\\\"{value2}\\\",r?u[1]:u):I(l)?r?l(t[0],t[1]):l(t):r?t[0]===s[0]?n[0]+\\\" \\\"+u[1]:t[1]===s[1]?n[1]+\\\" \\\"+u[0]:u[0]+\\\" - \\\"+u[1]:u},n.prototype.resetExtent=function(){var t=this.option,e=n$([t.min,t.max]);this._dataExtent=e},n.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;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},n.prototype.getExtent=function(){return this._dataExtent.slice()},n.prototype.completeVisualOption=function(){function t(t){t$(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice().reverse()}),t.inRange=t.inRange||{color:i.get(\\\"gradientColor\\\")}}function e(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},e$(i,function(t,e){if(RY.isValidType(e)){var n=KK.get(e,\\\"inactive\\\",h);null!=n&&(r[e]=n,\\\"color\\\"!==e||r.hasOwnProperty(\\\"opacity\\\")||r.hasOwnProperty(\\\"colorAlpha\\\")||(r.opacity=[0,0]))}}))}function n(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get(\\\"inactiveColor\\\"),r=this.getItemSymbol(),o=r||\\\"roundRect\\\";e$(this.stateList,function(r){var a=this.itemSize,l=t[r];l||(l=t[r]={color:h?i:[i]}),null==l.symbol&&(l.symbol=e&&s(e)||(h?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&s(n)||(h?a[0]:[a[0],a[0]])),l.symbol=JK(l.symbol,function(t){return\\\"none\\\"===t?o:t});var u=l.symbolSize;if(null!=u){var c=-1/0;QK(u,function(t){t>c&&(c=t)}),l.symbolSize=JK(u,function(t){return i$(t,[0,c],[0,a[0]],!0)})}},this)}var i=this.ecModel,r=this.option,o={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),u=r.controller||(r.controller={});l(a,o),l(u,o);var h=this.isCategory();t.call(this,a),t.call(this,u),e.call(this,a,\\\"inRange\\\",\\\"outOfRange\\\"),n.call(this,u)},n.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(\\\"itemWidth\\\")),parseFloat(this.get(\\\"itemHeight\\\"))]},n.prototype.isCategory=function(){return!!this.option.categories},n.prototype.setSelected=function(){},n.prototype.getSelected=function(){return null},n.prototype.getValueState=function(){return null},n.prototype.getVisualMeta=function(){return null},n.type=\\\"visualMap\\\",n.dependencies=[\\\"series\\\"],n.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\\\"}},n}(HE),o$=[20,140],a$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=\\\"linear\\\",t.dataExtent=this.getExtent()}),this._resetRange()},n.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=o$[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=o$[1])},n.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):M(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},n.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),y(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},n.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},n.prototype.getSelected=function(){var t=this.getExtent(),e=sr((this.get(\\\"range\\\")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?\\\"inRange\\\":\\\"outOfRange\\\"},n.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},n.prototype.getVisualMeta=function(t){function e(e,n){r.push({value:e,color:t(e,n)})}for(var n=cD(this,\\\"outOfRange\\\",this.getExtent()),i=cD(this,\\\"inRange\\\",this.option.range.slice()),r=[],o=0,a=0,s=i.length,l=n.length;l>a&&(!i.length||n[a]<=i[0]);a++)n[a]o;o++,u=0)u&&r.length&&e(i[o],\\\"outOfRange\\\"),e(i[o],\\\"inRange\\\");for(var u=1;l>a;a++)(!i.length||i[i.length-1]o;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,\\\"color\\\",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],\\\"color\\\",e),offset:1}),i},n.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]]]},n.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get(\\\"inverse\\\");return new HP(\\\"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})},n.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();h$([0,1],function(l){var u=r[l];u.setStyle(\\\"fill\\\",e.handlesColor[l]),u.y=t[l];var h=u$(t[l],[0,a[1]],s,!0),c=this.getControllerVisual(h,\\\"symbolSize\\\");u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2;var p=Zs(n.handleLabelPoints[l],Us(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:\\\"middle\\\",align:\\\"vertical\\\"===this._orient?this._applyTransform(\\\"left\\\",n.mainGroup):\\\"center\\\"})},this)}},n.prototype._showIndicator=function(t,e,n){var i=this.visualMapModel,r=i.getExtent(),o=i.itemSize,a=[0,o[1]],s=this._shapes,l=s.indicator;if(l){l.attr(\\\"invisible\\\",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,\\\"color\\\",u),c=this.getControllerVisual(t,\\\"symbolSize\\\"),p=u$(t,r,a,!0),d=o[0]-c/2,f={x:l.x,y:l.y};l.y=p,l.x=d;var g=Zs(s.indicatorLabelPoint,Us(l,this.group)),y=s.indicatorLabel;y.attr(\\\"invisible\\\",!1);var v=this._applyTransform(\\\"left\\\",s.mainGroup),m=this._orient,x=\\\"horizontal\\\"===m;y.setStyle({text:(n?n:\\\"\\\")+i.formatValueText(e),verticalAlign:x?v:\\\"middle\\\",align:x?\\\"center\\\":v});var _={x:d,y:p,style:{fill:h}},b={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:\\\"cubicInOut\\\",additive:!0};l.x=f.x,l.y=f.y,l.animateTo(_,w),y.animateTo(b,w)}else l.attr(_),y.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var M=0;Mr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],\\\"< \\\",a):1/0===u[1]?this._showIndicator(l,u[0],\\\"> \\\",a):this._showIndicator(l,l,\\\"≈ \\\",a));var h=this._hoverLinkDataIndices,c=[];(e||yD(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=jr(h,c);this._dispatchHighDown(\\\"downplay\\\",dD(p[0],n)),this._dispatchHighDown(\\\"highlight\\\",dD(p[1],n))}},n.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Vc(t.target,function(t){var n=TR(t);return null!=n.dataIndex?(e=n,!0):void 0},!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},n.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr(\\\"invisible\\\",!0),t.indicatorLabel&&t.indicatorLabel.attr(\\\"invisible\\\",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual(\\\"visualMeta\\\",i)}}],x$=y,_$=!1,b$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._pieceList=[],e}return e(n,t),n.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],w$[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){\\\"categories\\\"===i?(t.mappingMethod=\\\"category\\\",t.categories=s(r)):(t.dataExtent=this.getExtent(),t.mappingMethod=\\\"piecewise\\\",t.pieceList=v(this._pieceList,function(t){return t=s(t),\\\"inRange\\\"!==e&&(t.visual=null),t}))})},n.prototype.completeVisualOption=function(){function e(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}var n=this.option,i={},r=RY.listVisualTypes(),o=this.isCategory();y(n.pieces,function(t){y(r,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),y(i,function(t,i){var r=!1;y(this.stateList,function(t){r=r||e(n,t,i)||e(n.target,t,i)},this),!r&&y(this.stateList,function(t){(n[t]||(n[t]={}))[i]=KK.get(i,\\\"inRange\\\"===t?\\\"active\\\":\\\"inactive\\\",o)})},this),t.prototype.completeVisualOption.apply(this,arguments)},n.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,y(i,function(t){var e=this.getSelectedMapKey(t);r.hasOwnProperty(e)||(r[e]=!0)},this),\\\"single\\\"===n.selectedMode){var o=!1;y(i,function(t){var e=this.getSelectedMapKey(t);r[e]&&(o?r[e]=!1:o=!0)},this)}},n.prototype.getItemSymbol=function(){return this.get(\\\"itemSymbol\\\")},n.prototype.getSelectedMapKey=function(t){return\\\"categories\\\"===this._mode?t.value+\\\"\\\":t.index+\\\"\\\"},n.prototype.getPieceList=function(){return this._pieceList},n.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?\\\"pieces\\\":this.option.categories?\\\"categories\\\":\\\"splitNumber\\\"},n.prototype.setSelected=function(t){this.option.selected=s(t)},n.prototype.getValueState=function(t){var e=RY.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?\\\"inRange\\\":\\\"outOfRange\\\"},n.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){var o=RY.findPieceIndex(e,n);o===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},n.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&1/0===n[1]?0:(n[0]+n[1])/2}return e},n.prototype.getVisualMeta=function(t){function e(e,o){var a=r.getRepresentValue({interval:e});o||(o=r.getValueState(a));var s=t(a,o);e[0]===-1/0?i[0]=s:1/0===e[1]?i[1]=s:n.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var n=[],i=[\\\"\\\",\\\"\\\"],r=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],1/0!==a&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return y(o,function(t){var n=t.interval;n&&(n[0]>s&&e([s,n[0]],\\\"outOfRange\\\"),e(n.slice()),s=n[1])},this),{stops:n,outerColors:i}}},n.type=\\\"visualMap.piecewise\\\",n.defaultOption=Sl(r$.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}),n}(r$),w$={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&5>n;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];r>a;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),br(t),y(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;y(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),SD(e,t)},pieces:function(t){var e=this.option;y(e.pieces,function(e,n){A(e)||(e={value:e});var i={text:\\\"\\\",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty(\\\"value\\\")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],h=0;2>h;h++){for(var c=[[\\\"gte\\\",\\\"gt\\\",\\\"min\\\"],[\\\"lte\\\",\\\"lt\\\",\\\"max\\\"]][h],p=0;3>p&&null==o[h];p++)o[h]=e[c[p]],a[h]=s[p],u[h]=2===p;null==o[h]&&(o[h]=l[h])}u[0]&&1/0===o[1]&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=RY.retrieveVisuals(e),t.push(i)},this),SD(e,t),br(t),y(t,function(t){var e=t.close,n=[[\\\"<\\\",\\\"≤\\\"][e[1]],[\\\">\\\",\\\"≥\\\"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}},S$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get(\\\"textGap\\\"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=z(e.get(\\\"showLabel\\\",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),y(l.viewPieceList,function(i){var l=i.piece,u=new HP;u.onclick=Lk(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var p=this.visualMapModel.getValueState(c);u.add(new wR({style:{x:\\\"right\\\"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:\\\"middle\\\",align:a,font:r,fill:o,opacity:\\\"outOfRange\\\"===p?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),GE(e.get(\\\"orient\\\"),t,e.get(\\\"itemGap\\\")),this.renderBackground(t),this.positionGroup(t)},n.prototype._enableHoverLink=function(t,e){var n=this;t.on(\\\"mouseover\\\",function(){return i(\\\"highlight\\\")}).on(\\\"mouseout\\\",function(){return i(\\\"downplay\\\")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:dD(i.findTargetDataIndices(e),i)})}},n.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if(\\\"vertical\\\"===e.orient)return pD(t,this.api,t.itemSize);var n=e.align;return n&&\\\"auto\\\"!==n||(n=\\\"left\\\"),n},n.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new HP,a=this.visualMapModel.textStyleModel;o.add(new wR({style:pl(a,{x:i?\\\"right\\\"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:\\\"middle\\\",align:i?r:\\\"center\\\",text:e})})),t.add(o)}},n.prototype._getViewData=function(){var t=this.visualMapModel,e=v(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get(\\\"text\\\"),i=t.get(\\\"orient\\\"),r=t.get(\\\"inverse\\\");return(\\\"horizontal\\\"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},n.prototype._createItemSymbol=function(t,e,n){t.add(Gc(this.getControllerVisual(e,\\\"symbol\\\"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,\\\"color\\\")))},n.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=s(n.selected),o=e.getSelectedMapKey(t);\\\"single\\\"===i||i===!0?(r[o]=!0,y(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:\\\"selectDataRange\\\",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},n.type=\\\"visualMap.piecewise\\\",n}(s$);If(ID);var M$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"dataZoom.select\\\",n}(oK),I$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"dataZoom.select\\\",n}(sK),T$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;y(this.option.feature,function(t,n){var i=uD(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),l(t,i.defaultOption))})},n.type=\\\"toolbox\\\",n.layoutMode={type:\\\"box\\\",ignoreSize:!0},n.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\\\"}},n}(HE),C$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n,i){function r(r,a){var s,l=c[r],p=c[a],d=u[l],f=new gE(d,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===l&&(d.title=i.newTitle),l&&!p){if(CD(l))s={onclick:f.option.onclick,featureName:l};else{var g=uD(l);if(!g)return;s=new g}h[l]=s}else if(s=h[p],!s)return;s.uid=_l(\\\"toolbox-feature\\\"),s.model=f,s.ecModel=e,s.api=n;var y=s instanceof UK;return!l&&p?void(y&&s.dispose&&s.dispose(e,n)):!f.get(\\\"show\\\")||y&&s.unusable?void(y&&s.remove&&s.remove(e,n)):(o(f,s,l),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&(\\\"emphasis\\\"===e?Ra:Na)(i[t])},void(s instanceof UK&&s.render&&s.render(f,e,n,i)))}function o(i,r,o){var u,h,c=i.getModel(\\\"iconStyle\\\"),p=i.getModel([\\\"emphasis\\\",\\\"iconStyle\\\"]),d=r instanceof UK&&r.getIcons?r.getIcons():i.get(\\\"icon\\\"),f=i.get(\\\"title\\\")||{};T(d)?(u={},u[o]=d):u=d,T(f)?(h={},h[o]=f):h=f;var g=i.iconPaths={};y(u,function(o,u){var d=tl(o,{},{x:-s/2,y:-s/2,width:s,height:s});d.setStyle(c.getItemStyle());var f=d.ensureState(\\\"emphasis\\\");f.style=p.getItemStyle();var y=new wR({style:{text:h[u],align:p.get(\\\"textAlign\\\"),borderRadius:p.get(\\\"textBorderRadius\\\"),padding:p.get(\\\"textPadding\\\"),fill:null},ignore:!0});d.setTextContent(y),ol({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),d.__title=h[u],d.on(\\\"mouseover\\\",function(){var e=p.getItemStyle(),i=l?null==t.get(\\\"right\\\")&&\\\"right\\\"!==t.get(\\\"left\\\")?\\\"right\\\":\\\"left\\\":null==t.get(\\\"bottom\\\")&&\\\"bottom\\\"!==t.get(\\\"top\\\")?\\\"bottom\\\":\\\"top\\\";y.setStyle({fill:p.get(\\\"textFill\\\")||e.fill||e.stroke||\\\"#000\\\",backgroundColor:p.get(\\\"textBackgroundColor\\\")}),d.setTextConfig({position:p.get(\\\"textPosition\\\")||i}),y.ignore=!t.get(\\\"showTitle\\\"),n.enterEmphasis(this)}).on(\\\"mouseout\\\",function(){\\\"emphasis\\\"!==i.get([\\\"iconStatus\\\",u])&&n.leaveEmphasis(this),y.hide()}),(\\\"emphasis\\\"===i.get([\\\"iconStatus\\\",u])?Ra:Na)(d),a.add(d),d.on(\\\"click\\\",Lk(r.onclick,r,e,n,u)),g[u]=d})}var a=this.group;if(a.removeAll(),t.get(\\\"show\\\")){var s=+t.get(\\\"itemSize\\\"),l=\\\"vertical\\\"===t.get(\\\"orient\\\"),u=t.get(\\\"feature\\\")||{},h=this._features||(this._features={}),c=[];y(u,function(t,e){c.push(e)}),new AF(this._featureNames||[],c).add(r).update(r).remove(S(r,null)).execute(),this._featureNames=c,qI(a,t,n),a.add(KI(a.getBoundingRect(),t)),l||a.eachChild(function(t){var e=t.__title,i=t.ensureState(\\\"emphasis\\\"),r=i.textConfig||(i.textConfig={}),o=t.getTextContent(),l=o&&o.ensureState(\\\"emphasis\\\");if(l&&!I(l)&&e){var u=l.style||(l.style={}),h=zi(e,wR.makeFont(u)),c=t.x+a.x,p=t.y+a.y+s,d=!1;p+h.height>n.getHeight()&&(r.position=\\\"top\\\",d=!0);var f=d?-5-h.height:s+10;c+h.width/2>n.getWidth()?(r.position=[\\\"100%\\\",f],u.align=\\\"right\\\"):c-h.width/2<0&&(r.position=[0,f],u.align=\\\"left\\\")}})}},n.prototype.updateView=function(t,e,n,i){y(this._features,function(t){t instanceof UK&&t.updateView&&t.updateView(t.model,e,n,i)})},n.prototype.remove=function(t,e){y(this._features,function(n){n instanceof UK&&n.remove&&n.remove(t,e)}),this.group.removeAll()},n.prototype.dispose=function(t,e){y(this._features,function(n){n instanceof UK&&n.dispose&&n.dispose(t,e)})},n.type=\\\"toolbox\\\",n}(lB),D$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){var n=this.model,i=n.get(\\\"name\\\")||t.get(\\\"title.0.text\\\")||\\\"echarts\\\",r=\\\"svg\\\"===e.getZr().painter.getType(),o=r?\\\"svg\\\":n.get(\\\"type\\\",!0)||\\\"png\\\",a=e.getConnectedDataURL({type:o,backgroundColor:n.get(\\\"backgroundColor\\\",!0)||t.get(\\\"backgroundColor\\\")||\\\"#fff\\\",connectedBackgroundColor:n.get(\\\"connectedBackgroundColor\\\"),excludeComponents:n.get(\\\"excludeComponents\\\"),pixelRatio:n.get(\\\"pixelRatio\\\")}),s=uk.browser;if(I(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement(\\\"a\\\");l.download=i+\\\".\\\"+o,l.target=\\\"_blank\\\",l.href=a;var u=new MouseEvent(\\\"click\\\",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var h=a.split(\\\",\\\"),c=h[0].indexOf(\\\"base64\\\")>-1,p=r?decodeURIComponent(h[1]):h[1];c&&(p=window.atob(p));var d=i+\\\".\\\"+o;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,g=new Uint8Array(f);f--;)g[f]=p.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var v=document.createElement(\\\"iframe\\\");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open(\\\"image/svg+xml\\\",\\\"replace\\\"),x.write(p),x.close(),m.focus(),x.execCommand(\\\"SaveAs\\\",!0,d),document.body.removeChild(v)}}else{var _=n.get(\\\"lang\\\"),b='',w=window.open();w.document.write(b),w.document.title=i}},n.getDefaultOption=function(t){var e={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\\\"])};return e},n}(UK),A$=\\\"__ec_magicType_stack__\\\",k$=[[\\\"line\\\",\\\"bar\\\"],[\\\"stack\\\"]],L$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getIcons=function(){var t=this.model,e=t.get(\\\"icon\\\"),n={};return y(t.get(\\\"type\\\"),function(t){e[t]&&(n[t]=e[t])}),n},n.getDefaultOption=function(t){var e={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:{}};return e},n.prototype.onclick=function(t,e,n){var i=this.model,r=i.get([\\\"seriesIndex\\\",n]);if(P$[n]){var o={series:[]},a=function(t){var e=t.subType,r=t.id,a=P$[n](e,r,t,i);a&&(c(a,t.option),o.series.push(a));var s=t.coordinateSystem;if(s&&\\\"cartesian2d\\\"===s.type&&(\\\"line\\\"===n||\\\"bar\\\"===n)){var l=s.getAxesByScale(\\\"ordinal\\\")[0];if(l){var u=l.dim,h=u+\\\"Axis\\\",p=t.getReferringComponents(h,iO).models[0],d=p.componentIndex;o[h]=o[h]||[];for(var f=0;d>=f;f++)o[h][d]=o[h][d]||{};o[h][d].boundaryGap=\\\"bar\\\"===n}}};y(k$,function(t){p(t,n)>=0&&y(t,function(t){i.setIconStatus(t,\\\"normal\\\")})}),i.setIconStatus(n,\\\"emphasis\\\"),t.eachComponent({mainType:\\\"series\\\",query:null==r?null:{seriesIndex:r}},a);var s,u=n;\\\"stack\\\"===n&&(s=l({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),\\\"emphasis\\\"!==i.get([\\\"iconStatus\\\",n])&&(u=\\\"tiled\\\")),e.dispatchAction({type:\\\"changeMagicType\\\",currentType:u,newOption:o,newTitle:s,featureName:\\\"magicType\\\"})}},n}(UK),P$={line:function(t,e,n,i){return\\\"bar\\\"===t?l({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):void 0},bar:function(t,e,n,i){return\\\"line\\\"===t?l({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):void 0},stack:function(t,e,n,i){var r=n.get(\\\"stack\\\")===A$;return\\\"line\\\"===t||\\\"bar\\\"===t?(i.setIconStatus(\\\"stack\\\",r?\\\"normal\\\":\\\"emphasis\\\"),l({id:e,stack:r?\\\"\\\":A$},i.get([\\\"option\\\",\\\"stack\\\"])||{},!0)):void 0}};Yp({type:\\\"changeMagicType\\\",event:\\\"magicTypeChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){e.mergeOption(t.newOption)});var O$=new Array(60).join(\\\"-\\\"),R$=\\\" \\\",N$=new RegExp(\\\"[\\\"+R$+\\\"]+\\\",\\\"g\\\"),E$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){function n(){i.removeChild(o),_._dom=null}setTimeout(function(){e.dispatchAction({type:\\\"hideTip\\\"})});var i=e.getDom(),r=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement(\\\"div\\\");o.style.cssText=\\\"position:absolute;top:0;bottom:0;left:0;right:0;padding:5px\\\",o.style.backgroundColor=r.get(\\\"backgroundColor\\\")||\\\"#fff\\\";var a=document.createElement(\\\"h4\\\"),s=r.get(\\\"lang\\\")||[];a.innerHTML=s[0]||r.get(\\\"title\\\"),a.style.cssText=\\\"margin:10px 20px\\\",a.style.color=r.get(\\\"textColor\\\");var l=document.createElement(\\\"div\\\"),u=document.createElement(\\\"textarea\\\");l.style.cssText=\\\"overflow:auto\\\";var h=r.get(\\\"optionToContent\\\"),c=r.get(\\\"contentToOption\\\"),p=LD(t);if(I(h)){var d=h(e.getOption());T(d)?l.innerHTML=d:P(d)&&l.appendChild(d)}else{u.readOnly=r.get(\\\"readOnly\\\");var f=u.style;f.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\\\",f.color=r.get(\\\"textColor\\\"),f.borderColor=r.get(\\\"textareaBorderColor\\\"),f.backgroundColor=r.get(\\\"textareaColor\\\"),u.value=p.value,l.appendChild(u)}var g=p.meta,y=document.createElement(\\\"div\\\");y.style.cssText=\\\"position:absolute;bottom:5px;left:0;right:0\\\";var v=\\\"float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px\\\",m=document.createElement(\\\"div\\\"),x=document.createElement(\\\"div\\\");v+=\\\";background-color:\\\"+r.get(\\\"buttonColor\\\"),v+=\\\";color:\\\"+r.get(\\\"buttonTextColor\\\");var _=this;Oe(m,\\\"click\\\",n),Oe(x,\\\"click\\\",function(){if(null==c&&null!=h||null!=c&&null==h)return void n();var t;try{t=I(c)?c(l,e.getOption()):ED(u.value,g)}catch(i){throw n(),new Error(\\\"Data view format error \\\"+i)}t&&e.dispatchAction({type:\\\"changeDataView\\\",newOption:t}),n()}),m.innerHTML=s[1],x.innerHTML=s[2],x.style.cssText=m.style.cssText=v,!r.get(\\\"readOnly\\\")&&y.appendChild(x),y.appendChild(m),o.appendChild(a),o.appendChild(l),o.appendChild(y),l.style.height=i.clientHeight-80+\\\"px\\\",i.appendChild(o),this._dom=o},n.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},n.prototype.dispose=function(t,e){this.remove(t,e)},n.getDefaultOption=function(t){var e={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\\\"};return e},n}(UK);Yp({type:\\\"changeDataView\\\",event:\\\"dataViewChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){var n=[];y(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get(\\\"data\\\");n.push({name:t.name,data:zD(t.data,r)})}else n.push(h({type:\\\"scatter\\\"},t))}),e.mergeOption(c({series:n},t.newOption))});var z$=y,B$=Kr(),V$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){FD(t),e.dispatchAction({type:\\\"restore\\\",from:this.uid})},n.getDefaultOption=function(t){var e={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\\\"])};return e},n}(UK);Yp({type:\\\"restore\\\",event:\\\"restore\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){e.resetOption(\\\"recreate\\\")});var F$=y,G$=Xr(\\\"toolbox-dataZoom_\\\"),W$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new yZ(n.getZr()),this._brushController.on(\\\"brush\\\",Lk(this._onBrush,this)).mount()),XD(t,e,this,i,n),YD(t,e)},n.prototype.onclick=function(t,e,n){H$[n].call(this)},n.prototype.remove=function(){this._brushController&&this._brushController.unmount()},n.prototype.dispose=function(){this._brushController&&this._brushController.dispose()},n.prototype._onBrush=function(t){function e(t,e,i){var a=e.getAxis(t),s=a.model,l=n(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();(null!=u.minValueSpan||null!=u.maxValueSpan)&&(i=Pb(0,i.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,n){var i;return n.eachComponent({mainType:\\\"dataZoom\\\",subType:\\\"select\\\"},function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)}),i}var i=t.areas;if(t.isEnd&&i.length){var r={},o=this.ecModel;this._brushController.updateCovers([]);var a=new OK(HD(this.model),o,{include:[\\\"grid\\\"]});a.matchOutputRanges(i,o,function(t,n,i){if(\\\"cartesian2d\\\"===i.type){var r=t.brushType;\\\"rect\\\"===r?(e(\\\"x\\\",i,n[0]),e(\\\"y\\\",i,n[1])):e({lineX:\\\"x\\\",lineY:\\\"y\\\"}[r],i,n)}}),BD(o,r),this._dispatchZoomAction(r)}},n.prototype._dispatchZoomAction=function(t){var e=[];F$(t,function(t){e.push(s(t))}),e.length&&this.api.dispatchAction({type:\\\"dataZoom\\\",from:this.uid,batch:e})},n.getDefaultOption=function(t){var e={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)\\\"}};return e},n}(UK),H$={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:\\\"takeGlobalCursor\\\",key:\\\"dataZoomSelect\\\",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(VD(this.ecModel))}};Mu(\\\"dataZoom\\\",function(t){function e(t,e,n){var i=t.componentIndex,a={type:\\\"select\\\",$fromToolbox:!0,filterMode:r.get(\\\"filterMode\\\",!0)||\\\"filter\\\",id:G$+e+i};a[n]=i,o.push(a)}var n=t.getComponent(\\\"toolbox\\\",0),i=[\\\"feature\\\",\\\"dataZoom\\\"];if(n&&null!=n.get(i)){var r=n.getModel(i),o=[],a=HD(r),s=$r(t,a);return F$(s.xAxisModels,function(t){return e(t,\\\"xAxis\\\",\\\"xAxisIndex\\\")}),F$(s.yAxisModels,function(t){return e(t,\\\"yAxis\\\",\\\"yAxisIndex\\\")}),o}}),If(UD);var Y$=[\\\"transition\\\",\\\"enterFrom\\\",\\\"leaveTo\\\"],X$=Y$.concat([\\\"enterAnimation\\\",\\\"updateAnimation\\\",\\\"leaveAnimation\\\"]),U$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.preventAutoZ=!0,e}return e(n,t),n.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},n.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Or(r,o,\\\"normalMerge\\\"),s=this._elOptionsToUpdate=[];y(a,function(t,e){var n=t.newOption;n&&(s.push(n),ZD(t,n),qD(r,e,n),$D(r[e],n))},this),n.elements=x(r,function(t){return t&&delete t.$action,null!=t})},n.prototype._flatten=function(t,e,n){y(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}},this)},n.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},n.type=\\\"graphic\\\",n.defaultOption={elements:[]},n}(HE),Z$={path:null,compoundPath:null,group:HP,image:fR,text:wR},j$=Kr(),q$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this._elMap=Z()},n.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},n.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get(\\\"z\\\"),o=t.get(\\\"zlevel\\\");y(e,function(e){var a=Wr(e.id,null),s=null!=a?n.get(a):null,l=Wr(e.parentId,null),u=null!=l?n.get(l):i,h=e.type,c=e.style;\\\"text\\\"===h&&c&&e.hv&&e.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var p=e.textContent,d=e.textConfig;if(c&&ZS(c,h,!!d,!!p)){var f=jS(c,h,!0);!d&&f.textConfig&&(d=e.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=nA(e),y=e.$action||\\\"merge\\\",v=\\\"merge\\\"===y,m=\\\"replace\\\"===y;if(v){var x=!s,_=s;x?_=QD(a,u,e.type,n):(_&&(j$(_).isNew=!1),dM(_)),_&&(QS(_,g,t,{isInit:x}),eA(_,e,r,o))}else if(m){tA(s,e,n,t);var b=QD(a,u,e.type,n);b&&(QS(b,g,t,{isInit:!0}),eA(b,e,r,o))}else\\\"remove\\\"===y&&(tM(s,e),tA(s,e,n,t));var w=n.get(a);if(w&&p)if(v){var S=w.getTextContent();S?S.attr(p):w.setTextContent(new wR(p))}else m&&w.setTextContent(new wR(p));if(w){var M=e.clipPath;if(M){var I=M.type,T=void 0,x=!1;if(v){var C=w.getClipPath();x=!C||j$(C).type!==I,T=x?JD(I):C}else m&&(x=!0,T=JD(I));w.setClipPath(T),QS(T,M,t,{isInit:x}),fM(T,M.keyframeAnimation,t)}var D=j$(w);w.setTextConfig(d),D.option=e,iA(w,t,e),ol({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),fM(w,e.keyframeAnimation,t)}})}},n.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=[\\\"x\\\",\\\"y\\\"],l=0;l=0;l--){var u=n[l],h=Wr(u.id,null),c=null!=h?r.get(h):null;if(c){var d=c.parent,y=j$(d),v=d===i?{width:o,height:a}:{width:y.width,height:y.height},m={},x=hu(c,u,v,null,{hv:u.hv,boundingMode:u.bounding},m);if(!j$(c).isNew&&x){for(var _=u.transition,b={},w=0;w=0)?b[S]=M:c[S]=M}As(c,b,t,0)}else c.attr(m)}}},n.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){tA(n,j$(n).option,e,t._lastGraphicModel)}),this._elMap=Z()},n.prototype.dispose=function(){this._clear()},n.type=\\\"graphic\\\",n}(lB);If(rA);var K$=Math.sin,$$=Math.cos,J$=Math.PI,Q$=2*Math.PI,tJ=180/J$,eJ=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str=\\\"\\\",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add(\\\"M\\\",t,e)},t.prototype.lineTo=function(t,e){this._add(\\\"L\\\",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add(\\\"C\\\",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add(\\\"Q\\\",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=qn(h-Q$)||(u?l>=Q$:-l>=Q$),p=l>0?l%Q$:l%Q$+Q$,d=!1;d=c?!0:qn(h)?!1:p>=J$==!!u;var f=t+n*$$(o),g=e+i*K$(o);this._start&&this._add(\\\"M\\\",f,g);var y=Math.round(r*tJ);if(c){var v=1/this._p,m=(u?1:-1)*(Q$-v);this._add(\\\"A\\\",n,i,y,1,+u,t+n*$$(o+m),e+i*K$(o+m)),v>.01&&this._add(\\\"A\\\",n,i,y,0,+u,f,g)}else{var x=t+n*$$(a),_=e+i*K$(a);this._add(\\\"A\\\",n,i,y,+d,+u,x,_)}},t.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\\\")},t.prototype.closePath=function(){this._d.length>0&&this._add(\\\"Z\\\")},t.prototype._add=function(t){for(var e=[],n=this._p,i=1;iu;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,p=c&&c.length||0,d=r&&r.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)s--,i=a[s-1];for(var y=f+1;p>y;y++){var v={};VA(c[y],v,e);var m=uA(\\\"g\\\",\\\"clip-g-\\\"+l++,v,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=c;var x=NA(h,e);x&&(i?i.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display=\\\"none\\\",t=Kc(i,0,n),e=Kc(i,1,n),r.style.display=\\\"\\\"),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+\\\"px\\\",o.height=e+\\\"px\\\"}if(ri(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute(\\\"width\\\",t),a.setAttribute(\\\"height\\\",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(\\\"width\\\",t),s.setAttribute(\\\"height\\\",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=\\\"\\\"),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n=\\\"data:image/svg+xml;\\\";return t?(e=QL(e),e&&n+\\\"base64,\\\"+e):n+\\\"charset=UTF-8,\\\"+encodeURIComponent(e)},t}();nr(\\\"svg\\\",xJ),t.version=hV,t.dependencies=cV,t.PRIORITY=DV,t.init=Pp,t.connect=Op,t.disconnect=Rp,t.disConnect=mF,t.dispose=Np,t.getInstanceByDom=Ep,t.getInstanceById=zp,t.registerTheme=Bp,t.registerPreprocessor=Vp,t.registerProcessor=Fp,t.registerPostInit=Gp,t.registerPostUpdate=Wp,t.registerUpdateLifecycle=Hp,t.registerAction=Yp,t.registerCoordinateSystem=Xp,t.getCoordinateSystemDimensions=Up,t.registerLayout=Zp,t.registerVisual=jp,t.registerLoading=Kp,t.setCanvasCreator=$p,t.registerMap=Jp,t.getMap=Qp,t.registerTransform=_F,t.dataTool=DF,t.registerLocale=Ml,t.zrender=jP,t.matrix=iL,t.vector=Wk,t.zrUtil=zk,t.color=qL,t.helper=vG,t.number=CG,t.time=DG,t.graphic=AG,t.format=kG,t.util=LG,t.List=WF,t.ComponentModel=HE,t.ComponentView=lB,t.SeriesModel=sB,t.ChartView=cB,t.extendComponentModel=$f,t.extendComponentView=Jf,t.extendSeriesModel=Qf,t.extendChartView=tg,t.throttle=vc,t.use=If,t.setPlatformAPI=r,t.parseGeoJSON=Rf,t.parseGeoJson=Rf,t.env=uk,t.Model=gE,t.Axis=RG,t.innerDrawElementOnCanvas=vp});\",\"type\":\"application/javascript\",\"module-type\":\"library\",\"Modern.TiddlyDev#Minify\":\"false\",\"version\":\"5.4.3\"},\"$:/plugins/Gk0Wk/echarts/readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/readme\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n将强大的可视化工具 [[ECharts|https://echarts.apache.org/zh/index.html]] 以优雅的方式与 TiddlyWiki 相结合。\\n\\n插件说明与使用教程较长,请参考 https://tiddly-gittly.github.io/tw-echarts/\\n\\n> 本插件使用灵活而强大的 <$text text=\\\"TiddlyWiki\\\" /> 开发框架 [[Tiddly.ModernDev|https://github.com/tiddly-gittly/Modern.TiddlyDev]]\\n\\n\\n\\n<$list filter=\\\"[!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> This plugin uses the flexible and powerful <$text text=\\\"TiddlyWiki\\\" /> development framework [[Tiddly.ModernDev|https://github.com/tiddly-gittly/Modern.TiddlyDev]]\\n\\n\\n\\n\\n[img[$:/plugins/Gk0Wk/echarts/banner]]\\n\"},\"$:/plugins/Gk0Wk/echarts/Snippets/GitHubHeatMap\":{\"title\":\"$:/plugins/Gk0Wk/echarts/Snippets/GitHubHeatMap\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/TextEditor/Snippet\",\"caption\":\"Add a ~GitHub style ~HeatMap\",\"text\":\"
\\n
\\n <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}subtract[1]!match[-1]] ~[subtract[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ◄\\n ''<$text text={{{[{$:/state/heatmap!!year}match[]thenelse{$:/state/heatmap!!year}]}}}/>'' <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}add[1]!match[1]] ~[add[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ►\\n \\n
\\n <$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" $width=\\\"100%\\\" $height=\\\"100%\\\" year={{$:/state/heatmap!!year}}/>\\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\":\"<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" aliasField=\\\"caption\\\" levels=2 focussedTiddler=\\\"Index\\\" graphTitle=\\\"Graph\\\" />\"},\"$:/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<$set name=\\\"textortiddler\\\" value=\\\"\\\"\\\"$textortiddler$\\\"\\\"\\\">\\n<$list filter=\\\"[is[tiddler]] [is[shadow]]\\\">\\n<$echarts $tiddler=<> $height=\\\"$height$\\\" $width=\\\"$width$\\\" $class=\\\"$class$\\\" $theme=\\\"$theme$\\\" $renderer=\\\"$renderer$\\\" $fillSidebar=\\\"$fillSidebar$\\\"/>\\n\\n<$list filter=\\\"[!is[tiddler]!is[shadow]]\\\">\\n<$echarts $text=<> $height=\\\"$height$\\\" $width=\\\"$width$\\\" $class=\\\"$class$\\\" $theme=\\\"$theme$\\\" $renderer=\\\"$renderer$\\\" $fillSidebar=\\\"$fillSidebar$\\\"/>\\n\\n\\n\\\\end\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/Function.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/Function.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"caption\":\"Function\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/Function-readme}}\",\"Modern.TiddlyDev#IncludeSource\":\"false\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/Function/Function.ts\",\"text\":\"\\\"use strict\\\";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(t,o,n,r)=>{if(o&&\\\"object\\\"==typeof o||\\\"function\\\"==typeof o)for(let e of __getOwnPropNames(o))__hasOwnProp.call(t,e)||e===n||__defProp(t,e,{get:()=>o[e],enumerable:!(r=__getOwnPropDesc(o,e))||r.enumerable});return t},__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),Function_exports={},addon=(__export(Function_exports,{\\\"default\\\":()=>Function_default}),module.exports=__toCommonJS(Function_exports),{shouldUpdate:(e,t,o)=>0<$tw.utils.count(o),onUpdate:(e,t,o)=>{var n=Math.max(1,Math.min(1e5,parseInt(o.res,10)||200));let r=Number(o.min)||-1,i=Number(o.max)||1;Number.isFinite(r)||(r=-1),Number.isFinite(i)||(i=1),r>i&&([i,r]=[r,i]);const a=new Function(\\\"x\\\",`return ${o.func};`||\\\"return x;\\\");var s=e=>Math.max(-9e8,Math.min(9e8,a(e))),p=[],_=(i-r)/Math.min(n,1e5);for(let u=0,m=r;u{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(t,r,a,o)=>{if(r&&\\\"object\\\"==typeof r||\\\"function\\\"==typeof r)for(let e of __getOwnPropNames(r))__hasOwnProp.call(t,e)||e===a||__defProp(t,e,{get:()=>r[e],enumerable:!(o=__getOwnPropDesc(r,e))||o.enumerable});return t},__toESM=(e,t,r)=>(r=null!=e?__create(__getProtoOf(e)):{},__copyProps(!t&&e&&e.__esModule?r:__defProp(r,\\\"default\\\",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),GitHubHeatMap_exports={},ECharts=(__export(GitHubHeatMap_exports,{\\\"default\\\":()=>GitHubHeatMap_default}),module.exports=__toCommonJS(GitHubHeatMap_exports),__toESM(require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\"))),getFilterByDate=e=>`[sameday:created[${e}]] [sameday:modified[${e}]]`,yearDates=new Map,dayTime=864e5,getData=(t,a)=>{if(!yearDates.has(t)){var r=ECharts.number.parseDate(t+\\\"-01-01\\\").getTime(),o=ECharts.number.parseDate(t+1+\\\"-01-01\\\").getTime(),l=[];for(let e=r;e{var r=$tw.wiki.filterTiddlers(getFilterByDate(t),void 0,a).length;return s+=r,[e,r]}),s]},getPlatteColor=e=>$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",`<$transclude tiddler={{$:/palette}} index=\\\"${e}\\\"><$transclude tiddler=\\\"$:/palettes/Vanilla\\\" index=\\\"${e}\\\"><$transclude tiddler=\\\"$:/config/DefaultColourMappings/${e}\\\"/>`,{}),checkIfChinese=()=>{var e;return!0===(null==(e=$tw.wiki.getTiddlerText(\\\"$:/language\\\"))?void 0:e.includes(\\\"zh\\\"))},checkIfDarkMode=()=>{var e;return\\\"dark\\\"===(null==(e=null==(e=$tw.wiki.getTiddler($tw.wiki.getTiddlerText(\\\"$:/palette\\\")))?void 0:e.fields)?void 0:e[\\\"color-scheme\\\"])},GitHubHeatMapAddon={onMount:(e,t)=>({filter:t.subfilter||\\\"[all[tiddlers]!is[shadow]!is[system]]\\\"}),shouldUpdate:(e,t,r,a)=>{e.filter=a.subfilter||e.filter||\\\"[all[tiddlers]!is[shadow]!is[system]]\\\";var o=$tw.wiki.makeTiddlerIterator(Object.keys(t));return 0<$tw.utils.count($tw.wiki.filterTiddlers(e.filter,void 0,o))},onUpdate:(e,t,r)=>{var a=parseInt(r.year,10)||(new Date).getFullYear();const p=$tw.wiki.makeTiddlerIterator($tw.wiki.filterTiddlers(t.filter));var[o,l]=getData(a,p);let i=\\\"\\\",d=0,s;var n=checkIfDarkMode(),c=checkIfChinese();e.setOption({title:{top:0,left:\\\"center\\\",text:c?`今年产出 ${l} 篇文章`:`Produced ${l} tiddlers this year`},tooltip:{position:\\\"top\\\",formatter:({value:[e,t]})=>(e===i&&t===d&&s||(s=((e,t)=>{if(0===t)return checkIfChinese()?ECharts.format.formatTime(\\\"yyyy年M月d日\\\",e)+\\\" 无条目。\\\":$tw.utils.formatDateString($tw.utils.parseDate(e.replace(/-/g,\\\"\\\")),\\\"MMM DDD, YYYY\\\")+\\\" no tiddler.\\\";var r=$tw.utils.domMaker(\\\"p\\\",{text:checkIfChinese()?ECharts.format.formatTime(\\\"yyyy年M月d日\\\",e)+` 共有 ${t} 篇:`:$tw.utils.formatDateString($tw.utils.parseDate(e.replace(/-/g,\\\"\\\")),\\\"MMM DDD, YYYY\\\")+` ${t} tiddler${1(new $tw.Story).navigateTiddler(n)),i.appendChild(d),a.appendChild(i)}return[r,a]})(e,t),i=e,d=t),s),triggerOn:\\\"mousemove|click\\\",enterable:!0,hideDelay:800,backgroundColor:getPlatteColor(\\\"page-background\\\"),borderColor:getPlatteColor(\\\"very-muted-foreground\\\")},visualMap:{type:\\\"piecewise\\\",orient:\\\"horizontal\\\",calculable:!0,showLabel:!1,right:0,top:175,pieces:[{lte:0,color:n?\\\"#161B22\\\":\\\"#EBEDF0\\\"},{gt:0,lte:3,color:n?\\\"#0E4429\\\":\\\"#39D353\\\"},{gt:3,lte:7,color:n?\\\"#006D32\\\":\\\"#26A641\\\"},{gt:7,lte:15,color:n?\\\"#26A641\\\":\\\"#006D32\\\"},{gt:15,color:n?\\\"#39D353\\\":\\\"#0E4429\\\"}]},calendar:{top:60,left:0,right:0,cellSize:15,orient:\\\"horizontal\\\",range:a,itemStyle:{borderWidth:3,borderCap:\\\"round\\\",borderJoin:\\\"round\\\",borderColor:getPlatteColor(\\\"background\\\")},splitLine:{show:!1},dayLabel:{show:!0,nameMap:c?\\\"ZH\\\":\\\"EN\\\"},monthLabel:{show:!0,nameMap:c?\\\"ZH\\\":\\\"EN\\\"},yearLabel:{show:!0,position:\\\"bottom\\\",margin:12,verticalAlign:\\\"top\\\"}},series:{type:\\\"heatmap\\\",coordinateSystem:\\\"calendar\\\",calendarIndex:0,data:o}})}},GitHubHeatMap_default=GitHubHeatMapAddon;\"},\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"caption\":\"TagCloud\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/TagCloud-readme}}\",\"Modern.TiddlyDev#IncludeSource\":\"false\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/TagCloud/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={},getPlatteColor=(__export(TagCloud_exports,{\\\"default\\\":()=>TagCloud_default}),module.exports=__toCommonJS(TagCloud_exports),t=>$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",`<$transclude tiddler={{$:/palette}} index=\\\"${t}\\\"><$transclude tiddler=\\\"$:/palettes/Vanilla\\\" index=\\\"${t}\\\"><$transclude tiddler=\\\"$:/config/DefaultColourMappings/${t}\\\"/>`,{})),addon={shouldUpdate:(t,e)=>0<$tw.utils.count(e),onUpdate:t=>{const r=new Map;let e=\\\"\\\",o;var a=t.getOption();const l=!0===a.darkMode;a=a.filter||\\\"[tags[]!is[system]sort[title]]\\\",l,l,r.clear(),a=$tw.wiki.filterTiddlers(a).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<3;t++)o.push(l?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:a,layoutAnimation:!0,textStyle:{fontFamily:\\\"sans-serif\\\",fontWeight:\\\"bold\\\"},emphasis:{focus:\\\"self\\\",textStyle:{textShadowBlur:10,textShadowColor:\\\"#333\\\"}}}],tooltip:{position:\\\"top\\\",formatter:({data:{name:t}})=>(t===e&&o||(o=(t=>{var e=$tw.utils.domMaker(\\\"ul\\\",{}),o=$tw.wiki.getTiddlersWithTag(t),r=o.length;for(let d=0;d(new $tw.Story).navigateTiddler(n)),a.appendChild(l),e.appendChild(a)}return[e]})(t),e=t),o),triggerOn:\\\"mousemove|click\\\",enterable:!0,hideDelay:800,textStyle:{color:\\\"inherit\\\",fontFamily:\\\"inherit\\\",fontSize:\\\"inherit\\\"},backgroundColor:getPlatteColor(\\\"page-background\\\"),borderColor:getPlatteColor(\\\"very-muted-foreground\\\")}})}},TagCloud_default=addon;\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"caption\":\"FocusMap\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/TheBrain-readme}}\",\"Modern.TiddlyDev#IncludeSource\":\"false\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/TheBrain/TheBrain.ts\",\"text\":\"\\\"use strict\\\";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(t,o,i,r)=>{if(o&&\\\"object\\\"==typeof o||\\\"function\\\"==typeof o)for(let e of __getOwnPropNames(o))__hasOwnProp.call(t,e)||e===i||__defProp(t,e,{get:()=>o[e],enumerable:!(r=__getOwnPropDesc(o,e))||r.enumerable});return t},__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),TheBrain_exports={},colors=(__export(TheBrain_exports,{\\\"default\\\":()=>TheBrain_default}),module.exports=__toCommonJS(TheBrain_exports),[\\\"#5470c6\\\",\\\"#91cc75\\\",\\\"#fac858\\\",\\\"#ee6666\\\",\\\"#73c0de\\\",\\\"#3ba272\\\",\\\"#fc8452\\\",\\\"#9a60b4\\\",\\\"#ea7ccc\\\"]),CategoriesEn=[\\\"Focusing\\\",\\\"History\\\",\\\"Link To\\\",\\\"Backlink From\\\",\\\"Tag To\\\",\\\"Tag By\\\",\\\"Transclude\\\"].map((e,t)=>({name:e,itemStyle:{color:colors[t%colors.length]}})),CategoriesZh=[\\\"聚焦\\\",\\\"历史\\\",\\\"链接\\\",\\\"反链\\\",\\\"标签\\\",\\\"作为标签\\\",\\\"嵌套\\\"].map((e,t)=>({name:e,itemStyle:{color:colors[t%colors.length]}})),attributes=new Set([\\\"focussedTiddler\\\",\\\"levels\\\",\\\"graphTitle\\\",\\\"aliasField\\\",\\\"excludeFilter\\\",\\\"previewDelay\\\",\\\"focusBlur\\\",\\\"previewTemplate\\\",\\\"zoom\\\"]),getPlatteColor=e=>$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",`<$transclude tiddler={{$:/palette}} index=\\\"${e}\\\"><$transclude tiddler=\\\"$:/palettes/Vanilla\\\" index=\\\"${e}\\\"><$transclude tiddler=\\\"$:/config/DefaultColourMappings/${e}\\\"/>`,{}),findIcon=e=>{var t,o=null==(o=$tw.wiki.getTiddler(e))?void 0:o.fields;if(null!=o&&o.icon)return(t=null==(t=$tw.wiki.getTiddler(o.icon))?void 0:t.fields)?t._canonical_uri?\\\"image://\\\"+t._canonical_uri:t.title.startsWith(\\\"$:/core/images/\\\")?void 0:`image://data:${t.type};base64,`+t.text:/^https?:\\\\/\\\\//.test(o.icon)?\\\"image://\\\"+o.icon:void 0},getAliasOrTitle=(e,t)=>{var o;return void 0===t||\\\"title\\\"===t?[e,Boolean($tw.wiki.getTiddler(e))]:(o=$tw.wiki.getTiddler(e))?[\\\"string\\\"==typeof(o=o.fields[t])?$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",o,{variables:{currentTiddler:e}}):e,!0]:[e,!1]},TheBrainAddon={onMount:(s,e)=>{s.on(\\\"click\\\",{dataType:\\\"node\\\"},e=>{(new $tw.Story).navigateTiddler(e.data.name)});let n=4,c,p;const t=setInterval(()=>{var t=s.getOption(),o=null==(o=null==(o=null==t?void 0:t.series)?void 0:o[0])?void 0:o.zoom;if(\\\"number\\\"==typeof o){c||(c=t.tooltip.triggerOn,p=t.tooltip.showDelay);let e=!1;var i=Math.floor(4*o),r=2.5<=o,o=3<=o?p:2*p;if(t.series[0].label.show!==r&&(t.series[0].label.show=r,t.tooltip.triggerOn=r?c:\\\"none\\\",e=!0),t.tooltip.showDelay!==o&&(t.tooltip.showDelay=o,e=!0),i!==n){n=i,t.series[0].label.fontSize=Math.min(.5*n+2,24)+\\\"px\\\",t.series[0].lineStyle.width=Math.min(Math.max(.0625*n,.5),6),t.series[0].label.position=160{clearInterval(t)}}},onUnmount:({unmount:e})=>{e()},shouldUpdate:({viewingTiddlers:t,focusing:e,currentlyFocused:o},i,r)=>{var l;return Object.keys(i).some(e=>t.has(e))||Object.keys(r).some(e=>attributes.has(e))||void 0===e&&!0!==(null==o?void 0:o.has(null!=(l=$tw.wiki.getTiddlerText(\\\"$:/temp/focussedTiddler\\\"))?l:\\\"\\\"))},onUpdate:(i,r,u)=>{var e;let l=new Set;for(const t of u.focussedTiddler?$tw.wiki.filterTiddlers(u.focussedTiddler):[null!=(n=$tw.wiki.getTiddlerText(\\\"$:/temp/focussedTiddler\\\"))?n:\\\"\\\"])null!=(e=null==(e=$tw.wiki.getTiddler(t))?void 0:e.fields)&&e[\\\"draft.of\\\"]||l.add(t);if(0!==l.size){var d=new Set;for(const x of l){var s=null==(s=$tw.wiki.getTiddler(x))?void 0:s.fields[\\\"draft.of\\\"];s?d.add(s):d.add(x)}l=d,r.focusing=u.focussedTiddler,r.currentlyFocused=l,r.viewingTiddlers.clear();for(const O of l)r.viewingTiddlers.add(O);const T=[],k=[];var n=!0===(null==(n=$tw.wiki.getTiddlerText(\\\"$:/language\\\"))?void 0:n.includes(\\\"zh\\\"));let e=Number(u.levels);Number.isNaN(e)&&(e=1),e=Math.max(e,-1);var g=u.graphTitle||(n?\\\"聚焦\\\":\\\"Focusing Map\\\");const $=u.aliasField||\\\"caption\\\",S=\\\"\\\"===u.excludeFilter?void 0:$tw.wiki.compileFilter(null!=(h=u.excludeFilter)?h:\\\"[prefix[$:/]] [is[draft]]\\\"),_=new Map;for(const C of l)T.push({name:C,category:0,label:{formatter:getAliasOrTitle(C,$)[0],fontWeight:\\\"bold\\\",fontSize:\\\"15px\\\"},symbol:findIcon(C),symbolSize:15,select:{disabled:!0},itemStyle:{opacity:1,borderColor:colors[0]+\\\"66\\\",borderWidth:15},isTag:!1,tooltip:{show:!1}});let a=[];_.set(\\\"\\\",!1);for(const P of l)a.push(P),_.set(P,!0);if(S){var f=new Set(a);for(const M of S.call($tw.wiki,a))f[\\\"delete\\\"](M);a=Array.from(f)}for(var y=(e,t,o)=>{var i,r,l;return!(S&&0({name:B,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(B),category:2,isTag:!1}),e=>({source:z,target:B,lineStyle:{color:colors[2],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const N of $tw.wiki.getTiddlerBacklinks(z))y(N,(e,t)=>({name:N,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(N),category:3,isTag:!1}),e=>({source:N,target:z,lineStyle:{color:colors[3],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const F of null!=(w=null==(w=null==(w=$tw.wiki.getTiddler(z))?void 0:w.fields)?void 0:w.tags)?w:[])y(F,(e,t)=>({name:F,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(F),category:4,isTag:!0}),e=>({source:z,target:F,lineStyle:{color:colors[4],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const I of $tw.wiki.getTiddlersWithTag(z))y(I,(e,t)=>({name:I,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(I),category:5,isTag:!1}),e=>({source:I,target:z,lineStyle:{color:colors[5],type:e?\\\"solid\\\":\\\"dashed\\\"}}));var w=$tw.wiki.getTiddler(z);if(w){w=w.fields.type||\\\"text/vnd.tiddlywiki\\\";if(\\\"text/vnd.tiddlywiki\\\"===w||\\\"text/x-markdown\\\"===w){const D=new Set,A=e=>{var t=e[\\\"length\\\"];for(let r=0;r({name:W,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(W),category:6,isTag:!1}),e=>({source:z,target:W,lineStyle:{color:colors[6],type:e?\\\"solid\\\":\\\"dashed\\\"}}))}}}}if(1===l.size){var h=l.values().next().value;let t=h;var v=new Set;for(let e=r.historyTiddlers.length-2;0<=e;e--){const j=r.historyTiddlers[e];v.has(j)||j===t||j.startsWith(\\\"$:/\\\")||(y(j,(e,t)=>({name:j,label:{formatter:e},category:1,symbol:findIcon(j),symbolSize:3,itemStyle:{opacity:t?.65:.4},isTag:!1}),e=>({source:j,target:t,lineStyle:{color:colors[1],type:e?\\\"dashed\\\":\\\"dotted\\\",opacity:.5}})),t=j)}var b=r.historyTiddlers.indexOf(h);-1e.name),icon:\\\"circle\\\"}],title:{text:g,show:!0,top:\\\"bottom\\\",left:\\\"right\\\"},toolbox:{show:!0,left:0,bottom:0,feature:{restore:{},saveAsImage:{}}},tooltip:{position:\\\"top\\\",formatter:({data:{name:t,isTag:e},dataType:o})=>{if(\\\"node\\\"!==o)return[];if(t!==c||!p){var i=$tw.utils.domMaker(\\\"div\\\",{style:{maxWidth:\\\"40vw\\\",maxHeight:\\\"50vh\\\",overflowY:\\\"auto\\\",whiteSpace:\\\"normal\\\"},\\\"class\\\":\\\"gk0wk-echarts-thebrain-popuptiddler-container\\\"});if(e){var r=$tw.utils.domMaker(\\\"ul\\\",{}),l=$tw.wiki.getTiddlersWithTag(t),a=l.length;for(let e=0;e(new $tw.Story).navigateTiddler(n)),d.appendChild(s),r.appendChild(d)}p=[r]}else $tw.wiki.makeWidget($tw.wiki.parseTiddler(u.previewTemplate||\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup\\\"),{document:document,parseAsInline:!0,variables:{currentTiddler:t}}).render(i,null),p=[i,$tw.utils.domMaker(\\\"style\\\",{innerHTML:\\\".gk0wk-echarts-thebrain-popuptiddler-container::-webkit-scrollbar {display: none;} .gk0wk-echarts-thebrain-popuptiddler-container .tc-tiddler-controls { display: none; }\\\"})];c=t}return p},triggerOn:0<=o?\\\"mousemove\\\":\\\"none\\\",enterable:!0,showDelay:Math.max(0,o),hideDelay:200,confine:!0,textStyle:{color:\\\"inherit\\\",fontFamily:\\\"inherit\\\",fontSize:\\\"inherit\\\"},appendToBody:!0,backgroundColor:getPlatteColor(\\\"page-background\\\"),borderColor:getPlatteColor(\\\"very-muted-foreground\\\")},series:[{name:g,type:\\\"graph\\\",layout:\\\"force\\\",top:0,bottom:0,left:0,right:0,height:\\\"100%\\\",width:\\\"100%\\\",nodes:T,edges:k,categories:n?CategoriesZh:CategoriesEn,roam:!0,draggable:!1,zoom:t,label:{position:\\\"right\\\",show:!0,fontSize:\\\"10px\\\",backgroundColor:\\\"transparent\\\"},labelLayout:{moveOverlap:!0},edgeLabel:{show:!1},force:{repulsion:50},cursor:\\\"pointer\\\",symbolSize:6,edgeSymbol:[\\\"none\\\",\\\"arrow\\\"],edgeSymbolSize:[0,5],lineStyle:{width:1,opacity:.75,curveness:.15},itemStyle:{opacity:.9},emphasis:{disabled:!b,focus:\\\"adjacency\\\",scale:1.2},blur:{itemStyle:{opacity:.3},lineStyle:{opacity:.3}}}]})}}},TheBrain_default=TheBrainAddon;\"},\"$:/plugins/Gk0Wk/echarts/widget.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/widget.js\",\"type\":\"application/javascript\",\"module-type\":\"widget\",\"Modern.TiddlyDev#Origin\":\"widget/index.ts\",\"text\":\"\\\"use strict\\\";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__copyProps=(e,i,r,s)=>{if(i&&\\\"object\\\"==typeof i||\\\"function\\\"==typeof i)for(let t of __getOwnPropNames(i))__hasOwnProp.call(e,t)||t===r||__defProp(e,t,{get:()=>i[t],enumerable:!(s=__getOwnPropDesc(i,t))||s.enumerable});return e},__toESM=(t,e,i)=>(i=null!=t?__create(__getProtoOf(t)):{},__copyProps(!e&&t&&t.__esModule?i:__defProp(i,\\\"default\\\",{value:t,enumerable:!0}),t)),import_widget=require(\\\"$:/core/modules/widgets/widget.js\\\"),ECharts=__toESM(require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\")),Function_=Function;if($tw.browser){globalThis.echarts=ECharts;try{$tw.modules.forEachModuleOfType(\\\"echarts-extension\\\",(t,e)=>{var i,r,s,n,h;\\\"$:/plugins/Gk0Wk/echarts-stat/ecStat.min.js\\\"===t&&(({transform:{histogram:r,clustering:s,regression:n},statistics:h}=e),null!=(i=ECharts.registerTransform)&&i(r),null!=(r=ECharts.registerTransform)&&r(s),null!=(i=ECharts.registerTransform)&&i(n),globalThis.EChartsStat=h)})}catch(error){console.error(error)}}var eChartsInstanceUnmountCheckTimer,echartWidgets=new Set,registerInstance=t=>{$tw.browser&&void 0===eChartsInstanceUnmountCheckTimer&&(echartWidgets.add(t),eChartsInstanceUnmountCheckTimer=setInterval(()=>{var t=[];for(const e of echartWidgets)document.contains(e.containerDom)||(unmountAddon(e.tiddlerTitle,e.state,e.echartsInstance),e.clearInstance(),t.push(e));for(const i of echartWidgets)echartWidgets[\\\"delete\\\"](i);echartWidgets.size<1&&(eChartsInstanceUnmountCheckTimer=void 0,clearInterval(eChartsInstanceUnmountCheckTimer))},1e3))},unmountAddon=(t,e,i)=>{var r,s,n,h,a;try{i.off(\\\"restore\\\"),t&&\\\"application/javascript\\\"===(null==(s=null==(r=$tw.wiki.getTiddler(t))?void 0:r.fields)?void 0:s.type)&&(a=(null!=(n=(h=require(t))[\\\"default\\\"])?n:h)[\\\"onUnmount\\\"],\\\"function\\\"==typeof a)&&a(e)}catch(error){console.error(error)}},nextId=0,EChartsWidget=class extends import_widget.widget{constructor(){super(...arguments),this.uuid=\\\"gk0wk-echarts-container-\\\"+nextId++,this.width=\\\"100%\\\",this.height=\\\"300px\\\",this[\\\"class\\\"]=\\\"gk0wk-echarts-body\\\",this.fillSidebar=!0,this.renderer=\\\"canvas\\\",this.skipDraftTiddle=!0}initialise(t,e){super.initialise(t,e),this.computeAttributes()}execute(){switch(this.tiddlerTitle=this.getAttribute(\\\"$tiddler\\\",\\\"\\\")||void 0,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\\\").toLowerCase(),this.getAttribute(\\\"$theme\\\",\\\"auto\\\")){case\\\"light\\\":this.theme=void 0;break;case\\\"dark\\\":this.theme=\\\"dark\\\";break;default:this.theme=0<$tw.wiki.filterTiddlers(\\\"[{$:/palette}field:color-scheme[dark]]\\\").length?\\\"dark\\\":void 0}this.renderer=\\\"svg\\\"===this.getAttribute(\\\"$renderer\\\",\\\"canvas\\\")?\\\"svg\\\":\\\"canvas\\\",this.text=this.getAttribute(\\\"$text\\\",\\\"\\\").trim()||void 0;var t=this.getAttribute(\\\"$throttle\\\");t?(t=parseInt(t,10),this.throttle=Number.isSafeInteger(t)?Math.max(0,10):1e3):this.throttle=1e3,this.skipDraftTiddle=\\\"false\\\"!==this.getAttribute(\\\"$skipDraftTiddle\\\",\\\"true\\\")}render(t,e){this.parentDomNode=t,this.execute(),this.containerDom=$tw.utils.domMaker(\\\"div\\\",{\\\"class\\\":this[\\\"class\\\"],document:this.document,style:{width:this.width,height:this.height}}),this.containerDom.id=this.uuid,t.insertBefore(this.containerDom,e),this.domNodes.push(this.containerDom);try{if(!(this.tiddlerTitle&&$tw.wiki.getTiddler(this.tiddlerTitle)||this.text))throw new Error(\\\"Widget need either $tiddler or $text attribute!\\\");var i=Boolean(t.isTiddlyWikiFakeDom);this.rebuildInstance(i),this.initAddon(),this.renderAddon(),i?(Number.isSafeInteger(Number(this.width.replace(\\\"px\\\",\\\"\\\")))&&Number.isSafeInteger(Number(this.height.replace(\\\"px\\\",\\\"\\\")))||console.error(\\\"If you require SSR(server side render), you need to define $height and $width with format like '300px'\\\"),this.parentDomNode.innerHTML=this.echartsInstance.renderToSVGString()):registerInstance(this)}catch(error){console.error(error),this.containerDom.innerText=String(error),this.containerDom.style.color=\\\"white\\\",this.containerDom.style.background=\\\"red\\\",this.containerDom.style.fontSize=\\\"12px\\\"}}refresh(e){if(void 0!==this.timer)void 0!==this.tmpChangedTiddlers?this.tmpChangedTiddlers={...this.tmpChangedTiddlers,...e}:this.tmpChangedTiddlers=e;else{this.refresh_(e);let t=5;this.timer=setInterval(()=>{t--<=0&&void 0===this.tmpChangedTiddlers&&(clearInterval(this.timer),this.timer=void 0),void 0!==this.tmpChangedTiddlers&&(this.refresh_(this.tmpChangedTiddlers),this.tmpChangedTiddlers=void 0,t=Math.min(5,t+2))},this.throttle)}}refresh_(t){var e=this.tiddlerTitle;const i=this.computeAttributes();let r=0;if(0<$tw.utils.count(i)){let e=0;$tw.utils.each([\\\"$theme\\\",\\\"$fillSidebar\\\",\\\"$renderer\\\"],t=>{void 0!==i[t]&&e++}),0e&&(r|=1)}void 0!==this.text||1&r||!(this.tiddlerTitle&&t[this.tiddlerTitle]||this.askForAddonUpdate(t,i))||(r|=1);var s=this.theme;this.execute(),s!==this.theme&&(r|=2),2&r?!(s=this.rebuildInstance())||1&r?(unmountAddon(void 0!==this.text?void 0:e,this.state,this.echartsInstance),this.initAddon(),this.renderAddon()):this.echartsInstance.setOption(s):1&r&&this.renderAddon()}askForAddonUpdate(t,e){var i,r,s,n,h,a,d,o,l,c;try{return this.tiddlerTitle&&$tw.wiki.getTiddler(this.tiddlerTitle)?(h=$tw.wiki.getTiddler(this.tiddlerTitle).fields,!(this.skipDraftTiddle&&h[\\\"draft.of\\\"]||\\\"_is_skinny\\\"in h&&null===$tw.wiki.getTiddlerText(this.tiddlerTitle))&&(a=h.type||\\\"text/vnd.tiddlywiki\\\",\\\"text/vnd.tiddlywiki\\\"===(d=null!=(r=(null!=(i=$tw.config.contentTypeInfo[a])?i:{}).deserializerType)?r:a)||\\\"application/json\\\"===d?(this._state=JSON.stringify($tw.wiki.filterTiddlers(h[\\\"echarts-refresh-trigger\\\"])),this._state!==this.state):\\\"application/javascript\\\"===d&&(void 0===(c=null!=(n=(l=null!=(s=(o=require(this.tiddlerTitle))[\\\"default\\\"])?s:o).shouldUpdate)?n:l.shouldRefresh)||(\\\"string\\\"==typeof c?(this._state=JSON.stringify($tw.wiki.filterTiddlers(c)),this._state!==this.state):\\\"function\\\"!=typeof c||c(this.state,t,e,this.attributes))))):!1}catch(error){return console.error(error),!1}}clearInstance(){let t;return this.echartsInstance&&(t=this.echartsInstance.getOption(),this.echartsInstance.isDisposed()||this.echartsInstance.dispose(),this.echartsInstance=void 0),this.containerDom.innerHTML=\\\"\\\",this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),t}rebuildInstance(t=!1){var e=this.clearInstance();return this.echartsInstance=ECharts.init(t?null:this.containerDom,this.theme,t?{ssr:!0,renderer:\\\"svg\\\",height:Number(this.height.replace(\\\"px\\\",\\\"\\\"))||300,width:Number(this.width.replace(\\\"px\\\",\\\"\\\"))||400}:{renderer:this.renderer}),this.echartsInstance.setOption({darkMode:\\\"dark\\\"===this.theme,backgroundColor:\\\"transparent\\\"}),globalThis.ResizeObserver&&$tw.browser&&!t&&(this.resizeObserver=new ResizeObserver(r=>{requestAnimationFrame(()=>{var e;if(this.echartsInstance){var i=document.querySelector(\\\".tc-sidebar-scrollable\\\");let t=r[0].contentRect[\\\"height\\\"];this.fillSidebar&&null!=(e=null==i?void 0:i.contains)&&e.call(i,this.containerDom)&&(t=window.innerHeight-this.parentDomNode.getBoundingClientRect().top-(Number(getComputedStyle(i).paddingBottom.replace(\\\"px\\\",\\\"\\\"))||0)),this.echartsInstance.resize({width:r[0].contentRect.width,height:t})}})}),this.resizeObserver.observe(this.containerDom)),e}initAddon(){var t,e,i,r,s;try{if(void 0===this.text){if(!this.tiddlerTitle||!$tw.wiki.getTiddler(this.tiddlerTitle))return;var n=$tw.wiki.getTiddler(this.tiddlerTitle).fields;if(\\\"_is_skinny\\\"in n&&null===$tw.wiki.getTiddlerText(this.tiddlerTitle))return;var h=n.type||\\\"text/vnd.tiddlywiki\\\",a=null!=(e=(null!=(t=$tw.config.contentTypeInfo[h])?t:{}).deserializerType)?e:h;if(\\\"text/vnd.tiddlywiki\\\"===a||\\\"application/json\\\"===a)this.state=null!=(i=this._state)?i:JSON.stringify($tw.wiki.filterTiddlers(n[\\\"echarts-refresh-trigger\\\"])),this._state=void 0;else{if(\\\"application/javascript\\\"!==a)return;var d=require(this.tiddlerTitle),o=null!=(r=d[\\\"default\\\"])?r:d,l=null!=(s=o.onMount)?s:o.onInit;\\\"function\\\"==typeof l&&(this.state=l(this.echartsInstance,this.attributes,this))}}this.echartsInstance.on(\\\"restore\\\",()=>this.renderAddon())}catch(error){console.error(error)}}async renderAddon(){var t,e,i;if(this.echartsInstance){this.echartsInstance.showLoading();try{if(void 0===this.text){if(!this.tiddlerTitle||!$tw.wiki.getTiddler(this.tiddlerTitle))return void this.echartsInstance.hideLoading();var r=$tw.wiki.getTiddler(this.tiddlerTitle).fields;if(\\\"_is_skinny\\\"in r&&null===$tw.wiki.getTiddlerText(this.tiddlerTitle))return;var s,n,h,a=r.type||\\\"text/vnd.tiddlywiki\\\",d=null!=(e=(null!=(t=$tw.config.contentTypeInfo[a])?t:{}).deserializerType)?e:a;\\\"text/vnd.tiddlywiki\\\"===d?(s=$tw.wiki.renderTiddler(\\\"text/plain\\\",this.tiddlerTitle,{variables:this.attributes}),n=new Function_(`return (${s})`)(),this.echartsInstance.setOption(n)):\\\"application/json\\\"===d?this.echartsInstance.setOption(JSON.parse($tw.wiki.getTiddlerText(this.tiddlerTitle))):\\\"application/javascript\\\"===d&&(null!=(i=(h=require(this.tiddlerTitle))[\\\"default\\\"])?i:h).onUpdate(this.echartsInstance,this.state,this.attributes)}else new Function_(\\\"myChart\\\",\\\"chartDom\\\",\\\"echarts\\\",\\\"$tw\\\",`var option;${this.text};if (option instanceof Object) myChart.setOption(option);`)(this.echartsInstance,this.containerDom,ECharts,$tw);var o=e=>t=>new Function_(\\\"params\\\",\\\"parentWidget\\\",`(${e})(params, parentWidget);`)(t,this.parentWidget),l=this.getAttribute(\\\"dblclick\\\");l&&this.echartsInstance.on(\\\"dblclick\\\",o(l))}catch(error){console.error(error)}this.echartsInstance.hideLoading()}}};exports.echarts=EChartsWidget;\"}}}", - "Modern.TiddlyDev#SHA256-Hashed": "4a2984fee93b3b4a7b3e13fbec621defc1b2328093f7fecae43a71ec77e8b886", + "description": "ECharts for TiddlyWiki5", + "list": "readme addons LICENSE", + "name": "ECharts", + "plugin-type": "plugin", + "source": "https://github.com/tiddly-gittly/tw-echarts/tree/master/plugins/Gk0Wk/echarts", + "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/Function-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/Function-readme\",\"text\":\"```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/Function.js\\\" func=\\\"x**2\\\" min=\\\"-3\\\" max=\\\"3\\\" />\\n```\\n\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/Function.js\\\" func=\\\"x**2\\\" min=\\\"-3\\\" max=\\\"3\\\" />\\n\\nAttributes:\\n\\n* func: function expression, default: x\\n* min: min value, default: -1\\n* max: max value, default: 1\\n* res: resolution, default: 200\\n* yaxis: name of y axis, default: f(x)\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap-readme\",\"text\":\"
\\n
\\n <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}subtract[1]!match[-1]] ~[subtract[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ◄\\n             <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}add[1]!match[1]] ~[add[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ►\\n \\n
\\n <$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" $width=\\\"100%\\\" $height=\\\"100%\\\" year={{$:/state/heatmap!!year}} subfilter=\\\"[all[tiddlers]!is[shadow]!is[system]!field:calendarEntry[yes]]\\\" />\\n
\\n\\nSimple usage:\\n\\n```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" />\\n```\\n\\nYou can add switch buttons like this:\\n\\n```html\\n
\\n
\\n <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}subtract[1]!match[-1]] ~[subtract[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ◄\\n             <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}add[1]!match[1]] ~[add[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ►\\n \\n
\\n <$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" $width=\\\"100%\\\" $height=\\\"100%\\\" year={{$:/state/heatmap!!year}} subfilter=\\\"[all[tiddlers]!is[shadow]!is[system]!field:calendarEntry[yes]]\\\" />\\n
\\n```\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\",\"type\":\"text/vnd.tiddlywiki\",\"caption\":\"PluginsSize\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/PluginsSize-readme}}\",\"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<$list filter=\\\"[!plugin-type[]!title[$:/core]!title[$:/temp/info-plugin]]\\\" variable=\\\"pluginName\\\" counter=\\\"counter1\\\">\\n` {\\n \\\"name\\\": \\\"`<$list filter=\\\"[has[name]]\\\"><$text text={{{ [get[name]] }}}/><$list filter=\\\"[!has[name]]\\\"><$text text={{{ [has[name]elsesplit[/]nth[4]] }}}/>`\\\",\\n \\\"value\\\": `<$text text={{{ [get[text]length[]else[0]] }}}/>`,\\n \\\"children\\\": [\\n`\\n<$list filter=\\\"[plugintiddlers[]]\\\" variable=\\\"pluginShadow\\\" counter=\\\"counter2\\\">\\n` {\\n \\\"name\\\": \\\"`<$text text={{{ [removeprefixremoveprefix[/]else] }}}/>`\\\",\\n \\\"value\\\": `<$text text={{{ [get[text]length[]else[0]] }}}/>`\\n }`<$list filter=\\\"[match[no]]\\\">`,``\\n`\\n\\n` ]\\n }`<$list filter=\\\"[match[no]]\\\">`,``\\n`\\n\\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/PluginsSize-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize-readme\",\"text\":\"Visualize plugins size:\\n\\n```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/PluginsSize\\\" />\\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\":\"<$set name=\\\"tagName\\\" value={{$:/temp/Gk0Wk/echarts/addons/TagCloud/currentTag}}>\\n\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n!! 包含 <$link to=<>/> 标签的条目\\n\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\n!! Tiddlers tagged with <$link to=<>/>\\n\\n\\n\\n\\n
\\n<$macrocall $name=\\\"toc\\\" tag=<> sort=\\\"sort[title]\\\"/>\\n
\\n\\n\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TagCloud-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TagCloud-readme\",\"text\":\"```html\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\\\" />\\n```\\n\\n<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\\\" />\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup\",\"text\":\"

<$text text=<> />

<$list filter=\\\"[tags[]count[]match[0]]\\\"><$transclude tiddler=\\\"$:/core/ui/ViewTemplate/tags\\\" /><$transclude tiddler=\\\"$:/core/ui/ViewTemplate/body\\\" mode=\\\"inline\\\" />\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrain-readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrain-readme\",\"text\":\"<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" focussedTiddler=\\\"$:/plugins/Gk0Wk/echarts\\\" excludeFilter=\\\"[is[draft]]\\\" $width=\\\"100%\\\" $height=\\\"300px\\\" />\\n\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n聚焦图,灵感来源于 <$text text=\\\"TheBrain\\\" /> 与知识图谱理论,目的是在用户阅读条目时提供信息侧载,用直观的视觉信息告诉用户与该条目相关的信息,帮助用户在茫茫的知识海洋中自由漫步。\\n\\n因该图关注的是当前条目所发散的信息,因此成为「聚焦」,与Obsidian的全局知识图谱不同(全局图谱正在设计中,欢迎提出建议)。\\n\\n一般的使用方法:将该图放置于侧栏,并下载安装 <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" /> 插件([[CPL|https://tw-cpl.netlify.app/]]中有)。具体操作为:\\n\\n# 创建一个条目,并赋予其 `$:/tags/SideBar` 标签;\\n# 其中写如下内容:`<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" />`;\\n# 设置一下`caption`字段,作为侧栏的标题\\n# 保存,即可以在侧边栏看到它。\\n\\n聚焦图提供了一些参数,可以根据这些参数设定其行为:\\n\\n* `focussedTiddler` 用于设定当前聚焦的条目,即从该条目开始向外扩展。默认使用 <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" /> 提供的当前聚焦的条目。支持使用过滤表达式包含多个条目,如 `[tag[A]]`;\\n* `levels` 用于设定图的层级,即从当前条目开始,向外扩展几层。默认为 `1`,`Infinity`为无限扩展直到遍历所有关系,@@color:red; 层级越多就越有可能卡死页面,自己当心 @@;\\n* `graphTitle` 用于设定图的标题,即侧边栏的标题。默认为 `聚焦`;\\n* `aliasField` 用于设定别名字段,即在聚焦图中,显示的是别名字段的内容。默认为 `caption`;\\n* `excludeFilter` 用于设定排除的过滤器,即在聚焦图中,排除哪些条目,多个筛选器之间用空格隔开即可。默认为 `[prefix[$:/]] [is[draft]]`,即排除所有系统条目和被编辑的条目;\\n* `excludeTitles` 用于设定排除的标题,即在聚焦图中,直接排除哪些标题。可以直接填写标题 `任务` 或使用太微的列表标题格式如 `[[任务]]`\\n** 上面的例子等价于在 `excludeFilter` 中加上 `[field:title[任务]]` 这样的筛选器,但更加简练。默认为空;\\n** `excludeTitles` 与 `excludeFilter` 可以同时存在,会排除所有满足条件的条目;\\n* `previewDelay` 用于设定预览延迟,即鼠标悬停在节点上多久后显示预览。默认为 `1000`,即 1000ms,`-1` 表示不显示预览;\\n* `focusBlur` 在鼠标悬浮在某个节点上时,其他节点是否变淡。默认为 `true`,即变淡;\\n* `previewTemplate` 用于设定预览模板,渲染预览内容。默认为 `$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup`;\\n* `zoom` 用于设定初始缩放比例。默认为 `4`。\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\nFocus map, inspired by <$text text=\\\"TheBrain\\\" /> and knowledge graph theory, aims to provide information side-loading when users read a tiddler, and use intuitive visual information to tell users the information related to the tiddler, helping users to freely walk in the vast ocean of knowledge.\\n\\nBecause the graph focuses on the information diverging from the current tiddler, it names \\\"focus\\\", which is different from the global knowledge graph of Obsidian (the global graph is under design, suggestions are welcome).\\n\\nGeneral usage: place the graph in the sidebar, and install the <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" /> plugin (available in [[CPL|https://tw-cpl.netlify.app/]]). The specific operation is:\\n\\n# Create a tiddler and assign it the `$:/tags/SideBar` tag;\\n# Write the following content in it: `<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" />`;\\n# Set the `caption` field as the title of the sidebar;\\n# Save, and you can see it in the sidebar.\\n\\nThe focus map provides some parameters, which can be used to set its behavior:\\n\\n* `focussedTiddler` is used to set the current focused tiddler, that is, expand from this tiddler. The default is the current focused tiddler provided by <$text text=\\\"$:/plugins/Gk0Wk/focused-tiddler\\\" />. Multiple tiddlers can be included in the filter expression, such as `[tag[A]]`;\\n* `levels` is used to set the level of the graph, that is, expand several levels from the current tiddler. The default is `1`, `Infinity` means unlimited expansion until all relationships are traversed, @@color:red; the more levels, the more likely it is to freeze the page, be careful @@;\\n* `graphTitle` is used to set the title of the graph, that is, the title of the sidebar. The default is `Focusing Map`;\\n* `aliasField` is used to set the alias field, that is, the content of the alias field is displayed in the focus map. The default is `caption`;\\n* `excludeFilter` is used to set the filters for exclusion, i.e. which tiddlers to exclude in the focus map, multiple filters separated by spaces is sufficient. Default is `[prefix[$:/]] [is[draft]]`, i.e. exclude all system tiddlers and edited tiddlers;\\n* `excludeTitles` is used to set excluded titles, i.e. which titles are directly excluded in the focus map. This can be done by filling in the title `tasks` directly or by using a list title format such as `[[task]]`.\\n** The above example is equivalent to adding a filter like `[field:title[task]]` to `excludeFilter`, but more concise. Defaults to empty;\\n** `excludeTitles` and `excludeFilter` can co-exist and will exclude all tiddlers that fulfill the conditions;\\n* `previewDelay` is used to set the preview delay, that is, how long the preview is displayed after the mouse hovers over the node. The default is `1000`, that is, 1000ms, `-1` means no preview;\\n* `focusBlur` is used to set whether other nodes become lighter when the mouse hovers over a node. The default is `true`, that is, lighter;\\n* `previewTemplate` is used to set the preview template to render the preview content. The default is `$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup`;\\n* `zoom` is used to set the initial zoom ratio. The default is `4`.\\n\\n\\n\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/BrainMap\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/BrainMap\",\"type\":\"text/vnd.tiddlywiki\",\"caption\":\"BrainMap\",\"echarts.author\":\"peterhajas\",\"echarts.readme\":\"\",\"text\":\"{\\n \\\"tooltip\\\": {\\n \\\"trigger\\\": \\\"item\\\"\\n },\\n \\\"series\\\": [{\\n \\\"type\\\": \\\"graph\\\",\\n \\\"layout\\\": \\\"force\\\",\\n \\\"roam\\\": true,\\n \\\"animation\\\": false,\\n \\\"label\\\": {\\n \\\"position\\\": \\\"right\\\",\\n \\\"formatter\\\": \\\"{b}\\\"\\n },\\n \\\"draggable\\\": false,\\n \\\"data\\\": [\\n <$list>\\n {\\\"name\\\": \\\"<>\\\"},\\n \\n ],\\n \\\"force\\\": {\\n \\\"edgeLength\\\": 25,\\n \\\"repulsion\\\": 50,\\n \\\"gravity\\\": 0.1\\n },\\n \\\"edges\\\": [\\n <$list>\\n <$set name=currentSource value=<> >\\n <$list filter=\\\"[all[current]links[]]\\\">\\n {\\\"source\\\":\\\"<>\\\", \\\"target\\\": \\\"{{!!title}}\\\"},\\n \\n \\n \\n ]\\n }]\\n}\\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/addon-author-template\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addon-author-template\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"
\\n <$macrocall\\n $name=\\\"tabs\\\"\\n tabsList=\\\"[all[shadows+tiddlers]field:echarts.authorsort[caption]]\\\"\\n default={{{ [all[shadows+tiddlers]field:echarts.authorsort[caption]first[]] }}}\\n class=\\\"tc-vertical\\\"\\n template=\\\"$:/plugins/Gk0Wk/echarts/addon-document-template\\\"\\n />\\n
\\n\"},\"$:/plugins/Gk0Wk/echarts/addon-document-template\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addon-document-template\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! <$text text={{{ [get[caption]] }}} />\\n\\n@@background:#0003;padding:5px 10px;border-left:3px solid #03fffc;font-weight:750;background-image:linear-gradient(0,#03fffc12,#03fffc12);\\n<$list filter=\\\"[has[echarts.author]]\\\">\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n作者: <$text text={{{ [get[echarts.author]] }}} />\\n\\n插件: <>\\n\\n文档需要改进?希望分享经验?欢迎提 [[Issue|https://github.com/tiddly-gittly/tw-echarts/issues]] 或者 QQ 群里联系我!\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\nAuthor: <$text text={{{ [get[echarts.author]] }}} />\\n\\nAddon: <>\\n\\nNeed to improve the documentation? Want to share your experience? Feel free for an [[Issue|https://github.com/tiddly-gittly/tw-echarts/issues]]!\\n\\n\\n\\n\\n@@\\n\\n<$transclude mode=\\\"block\\\" tiddler=<> field=\\\"echarts.readme\\\" />\\n\"},\"$:/plugins/Gk0Wk/echarts/addons\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"
\\n <$macrocall\\n $name=\\\"tabs\\\"\\n tabsList=\\\"[all[shadows+tiddlers]has[echarts.author]get[echarts.author]unique[]sort[]]\\\"\\n default={{{ [all[shadows+tiddlers]has[echarts.author]get[echarts.author]unique[]sort[]first[]] }}}\\n class=\\\"tc-vertical\\\"\\n template=\\\"$:/plugins/Gk0Wk/echarts/addon-author-template\\\"\\n />\\n
\\n\"},\"$:/plugins/Gk0Wk/echarts/echarts-wordcloud.min.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/echarts-wordcloud.min.js\",\"text\":\"/*! For license information please see echarts-wordcloud.min.js.LICENSE.txt */\\n!function(t,e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?module.exports=e(require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\")):\\\"function\\\"==typeof define&&define.amd?define([\\\"echarts\\\"],e):\\\"object\\\"==typeof exports?exports[\\\"echarts-wordcloud\\\"]=e(require(\\\"echarts\\\")):t[\\\"echarts-wordcloud\\\"]=e(t.echarts)}(self,(function(t){return(()=>{\\\"use strict\\\";var e={638:(t,e,a)=>{a.r(e);var r=a(83);r.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=r.helper.createDimensions(t.data,{coordDimensions:[\\\"value\\\"]}),i=new r.List(a,this);return i.initData(t.data),i},defaultOption:{maskImage:null,shape:\\\"circle\\\",keepAspect:!1,left:\\\"center\\\",top:\\\"center\\\",width:\\\"70%\\\",height:\\\"80%\\\",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:\\\"normal\\\"}}}),r.extendChartView({type:\\\"wordCloud\\\",render:function(t,e,a){var i=this.group;i.removeAll();var o=t.getData(),n=t.get(\\\"gridSize\\\");t.layoutInstance.ondraw=function(e,a,s,l){var d=o.getItemModel(s),u=d.getModel(\\\"textStyle\\\"),f=new r.graphic.Text({style:r.helper.createTextStyle(u),scaleX:1/l.info.mu,scaleY:1/l.info.mu,x:(l.gx+l.info.gw/2)*n,y:(l.gy+l.info.gh/2)*n,rotation:l.rot});f.setStyle({x:l.info.fillTextOffsetX,y:l.info.fillTextOffsetY+.5*a,text:e,verticalAlign:\\\"middle\\\",fill:o.getItemVisual(s,\\\"style\\\").fill,fontSize:a}),i.add(f),o.setItemGraphicEl(s,f),f.ensureState(\\\"emphasis\\\").style=r.helper.createTextStyle(d.getModel([\\\"emphasis\\\",\\\"textStyle\\\"]),{state:\\\"emphasis\\\"}),f.ensureState(\\\"blur\\\").style=r.helper.createTextStyle(d.getModel([\\\"blur\\\",\\\"textStyle\\\"]),{state:\\\"blur\\\"}),r.helper.enableHoverEmphasis(f,d.get([\\\"emphasis\\\",\\\"focus\\\"]),d.get([\\\"emphasis\\\",\\\"blurScope\\\"])),f.stateTransition={duration:t.get(\\\"animation\\\")?t.get([\\\"stateAnimation\\\",\\\"duration\\\"]):0,easing:t.get([\\\"stateAnimation\\\",\\\"easing\\\"])},f.__highDownDispatcher=!0},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e=\\\"zero-timeout-message\\\";return window.addEventListener(\\\"message\\\",(function(a){if(\\\"string\\\"==typeof a.data&&a.data.substr(0,e.length)===e){a.stopImmediatePropagation();var r=parseInt(a.data.substr(e.length),36);t[r]&&(t[r](),t[r]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},function(a){var r=t.length;return t.push(a),window.postMessage(e+r.toString(36),\\\"*\\\"),r}}()||function(t){window.setTimeout(t,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)});var i=function(){var t=document.createElement(\\\"canvas\\\");if(!t||!t.getContext)return!1;var e=t.getContext(\\\"2d\\\");return!!(e&&e.getImageData&&e.fillText&&Array.prototype.some&&Array.prototype.push)}(),o=function(){if(i){for(var t,e,a=document.createElement(\\\"canvas\\\").getContext(\\\"2d\\\"),r=20;r;){if(a.font=r.toString(10)+\\\"px sans-serif\\\",a.measureText(\\\"W\\\").width===t&&a.measureText(\\\"m\\\").width===e)return r+1;t=a.measureText(\\\"W\\\").width,e=a.measureText(\\\"m\\\").width,r--}return 0}}(),n=function(t){for(var e,a,r=t.length;r;)e=Math.floor(Math.random()*r),a=t[--r],t[r]=t[e],t[e]=a;return t},s={},l=function(t,e){if(i){var a=Math.floor(Math.random()*Date.now());Array.isArray(t)||(t=[t]),t.forEach((function(e,a){if(\\\"string\\\"==typeof e){if(t[a]=document.getElementById(e),!t[a])throw new Error(\\\"The element id specified is not found.\\\")}else if(!e.tagName&&!e.appendChild)throw new Error(\\\"You must pass valid HTML elements, or ID of the element.\\\")}));var r={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,shrinkToFit:!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(e)for(var l in e)l in r&&(r[l]=e[l]);if(\\\"function\\\"!=typeof r.weightFactor){var d=r.weightFactor;r.weightFactor=function(t){return t*d}}if(\\\"function\\\"!=typeof r.shape)switch(r.shape){case\\\"circle\\\":default:r.shape=\\\"circle\\\";break;case\\\"cardioid\\\":r.shape=function(t){return 1-Math.sin(t)};break;case\\\"diamond\\\":r.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case\\\"square\\\":r.shape=function(t){return Math.min(1/Math.abs(Math.cos(t)),1/Math.abs(Math.sin(t)))};break;case\\\"triangle-forward\\\":r.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\\\":r.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\\\":r.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case\\\"star\\\":r.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?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))}}r.gridSize=Math.max(Math.floor(r.gridSize),4);var u,f,c,h,m,g,w,v,p=r.gridSize,y=p-r.maskGapWidth,x=Math.abs(r.maxRotation-r.minRotation),M=Math.min(r.maxRotation,r.minRotation),S=r.rotationStep;switch(r.color){case\\\"random-dark\\\":w=function(){return L(10,50)};break;case\\\"random-light\\\":w=function(){return L(50,90)};break;default:\\\"function\\\"==typeof r.color&&(w=r.color)}\\\"function\\\"==typeof r.fontWeight&&(v=r.fontWeight);var b=null;\\\"function\\\"==typeof r.classes&&(b=r.classes);var I,T=!1,k=[],C=function(t){var e,a,r=t.currentTarget,i=r.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,a=t.touches[0].clientY):(e=t.clientX,a=t.clientY);var o=e-i.left,n=a-i.top,s=Math.floor(o*(r.width/i.width||1)/p),l=Math.floor(n*(r.height/i.height||1)/p);return k[s]?k[s][l]:null},E=function(t){var e=C(t);I!==e&&(I=e,e?r.hover(e.item,e.dimension,t):r.hover(void 0,void 0,t))},A=function(t){var e=C(t);e&&(r.click(e.item,e.dimension,t),t.preventDefault())},O=[],F=function(t){if(O[t])return O[t];var e=8*t,a=e,i=[];for(0===t&&i.push([h[0],h[1],0]);a--;){var o=1;\\\"circle\\\"!==r.shape&&(o=r.shape(a/e*2*Math.PI)),i.push([h[0]+t*o*Math.cos(-a/e*2*Math.PI),h[1]+t*o*Math.sin(-a/e*2*Math.PI)*r.ellipticity,a/e*2*Math.PI])}return O[t]=i,i},D=function(){return r.abortThreshold>0&&(new Date).getTime()-g>r.abortThreshold},P=function(e,a,r,i,o){e>=f||a>=c||e<0||a<0||(u[e][a]=!1,r&&t[0].getContext(\\\"2d\\\").fillRect(e*p,a*p,y,y),T&&(k[e][a]={item:o,dimension:i}))},R=function e(a,i){if(i>20)return null;var s,l,d;Array.isArray(a)?(s=a[0],l=a[1]):(s=a.word,l=a.weight,d=a.attributes);var h,g,y,I=0===r.rotateRatio||Math.random()>r.rotateRatio?0:0===x?M:M+Math.round(Math.random()*x/S)*S,k=function(t){if(Array.isArray(t)){var e=t.slice();return e.splice(0,2),e}return[]}(a),C=function(t,e,a,i){var n=r.weightFactor(e);if(n<=r.minSize)return!1;var s,l=1;nF[1]&&(F[1]=O),kF[2]&&(F[2]=k);break t}}return{mu:l,occupied:A,bounds:F,gw:S,gh:M,fillTextOffsetX:y,fillTextOffsetY:x,fillTextWidth:f,fillTextHeight:c,fontSize:n}}(s,l,I,k);if(!C)return!1;if(D())return!1;if(!r.drawOutOfBound&&!r.shrinkToFit){var E=C.bounds;if(E[1]-E[3]+1>f||E[2]-E[0]+1>c)return!1}for(var A=m+1;A--;){var O=F(m-A);r.shuffle&&(O=[].concat(O),n(O));for(var R=0;R=f||l>=c||s<0||l<0){if(!r.drawOutOfBound)return!1}else if(!u[s][l])return!1}return!0}(g,y,0,0,C.occupied)&&(function(e,a,i,o,n,s,l,d,u,f){var c,h,m,g=i.fontSize;c=w?w(o,n,g,s,l,f):r.color,h=v?v(o,n,g,f):r.fontWeight,m=b?b(o,n,g,f):r.classes,t.forEach((function(t){if(t.getContext){var n=t.getContext(\\\"2d\\\"),s=i.mu;n.save(),n.scale(1/s,1/s),n.font=h+\\\" \\\"+(g*s).toString(10)+\\\"px \\\"+r.fontFamily,n.fillStyle=c,n.translate((e+i.gw/2)*p*s,(a+i.gh/2)*p*s),0!==d&&n.rotate(-d),n.textBaseline=\\\"middle\\\",n.fillText(o,i.fillTextOffsetX*s,(i.fillTextOffsetY+.5*g)*s),n.restore()}else{var l=document.createElement(\\\"span\\\"),f=\\\"\\\";f=\\\"rotate(\\\"+-d/Math.PI*180+\\\"deg) \\\",1!==i.mu&&(f+=\\\"translateX(-\\\"+i.fillTextWidth/4+\\\"px) scale(\\\"+1/i.mu+\\\")\\\");var w={position:\\\"absolute\\\",display:\\\"block\\\",font:h+\\\" \\\"+g*i.mu+\\\"px \\\"+r.fontFamily,left:(e+i.gw/2)*p+i.fillTextOffsetX+\\\"px\\\",top:(a+i.gh/2)*p+i.fillTextOffsetY+\\\"px\\\",width:i.fillTextWidth+\\\"px\\\",height:i.fillTextHeight+\\\"px\\\",lineHeight:g+\\\"px\\\",whiteSpace:\\\"nowrap\\\",transform:f,webkitTransform:f,msTransform:f,transformOrigin:\\\"50% 40%\\\",webkitTransformOrigin:\\\"50% 40%\\\",msTransformOrigin:\\\"50% 40%\\\"};for(var v in c&&(w.color=c),l.textContent=o,w)l.style[v]=w[v];if(u)for(var y in u)l.setAttribute(y,u[y]);m&&(l.className+=m),t.appendChild(l)}}))}(g,y,C,s,l,m-A,h[2],I,d,k),function(e,a,i,o,n,s){var l,d,u=n.occupied,h=r.drawMask;if(h&&((l=t[0].getContext(\\\"2d\\\")).save(),l.fillStyle=r.maskColor),T){var m=n.bounds;d={x:(e+m[3])*p,y:(a+m[0])*p,w:(m[1]-m[3]+1)*p,h:(m[2]-m[0]+1)*p}}for(var g=u.length;g--;){var w=e+u[g][0],v=a+u[g][1];w>=f||v>=c||w<0||v<0||P(w,v,h,d,s)}h&&l.restore()}(g,y,0,0,C,a),{gx:g,gy:y,rot:I,info:C}));if(z)return z}}return r.shrinkToFit?(Array.isArray(a)?a[1]=3*a[1]/4:a.weight=3*a.weight/4,e(a,i+1)):null},z=function(e,a,r){if(a)return!t.some((function(t){var a=new CustomEvent(e,{detail:r||{}});return!t.dispatchEvent(a)}),this);t.forEach((function(t){var a=new CustomEvent(e,{detail:r||{}});t.dispatchEvent(a)}),this)};!function(){var e=t[0];if(e.getContext)f=Math.ceil(e.width/p),c=Math.ceil(e.height/p);else{var i=e.getBoundingClientRect();f=Math.ceil(i.width/p),c=Math.ceil(i.height/p)}if(z(\\\"wordcloudstart\\\",!0)){var o,n,l,d,w;if(h=r.origin?[r.origin[0]/p,r.origin[1]/p]:[f/2,c/2],m=Math.floor(Math.sqrt(f*f+c*c)),u=[],!e.getContext||r.clearCanvas)for(t.forEach((function(t){if(t.getContext){var e=t.getContext(\\\"2d\\\");e.fillStyle=r.backgroundColor,e.clearRect(0,0,f*(p+1),c*(p+1)),e.fillRect(0,0,f*(p+1),c*(p+1))}else t.textContent=\\\"\\\",t.style.backgroundColor=r.backgroundColor,t.style.position=\\\"relative\\\"})),o=f;o--;)for(u[o]=[],n=c;n--;)u[o][n]=!0;else{var v=document.createElement(\\\"canvas\\\").getContext(\\\"2d\\\");v.fillStyle=r.backgroundColor,v.fillRect(0,0,1,1);var y,x,M=v.getImageData(0,0,1,1).data,S=e.getContext(\\\"2d\\\").getImageData(0,0,f*p,c*p).data;for(o=f;o--;)for(u[o]=[],n=c;n--;){x=p;t:for(;x--;)for(y=p;y--;)for(l=4;l--;)if(S[4*((n*p+x)*f*p+(o*p+y))+l]!==M[l]){u[o][n]=!1;break t}!1!==u[o][n]&&(u[o][n]=!0)}S=v=M=void 0}if(r.hover||r.click){for(T=!0,o=f+1;o--;)k[o]=[];r.hover&&e.addEventListener(\\\"mousemove\\\",E),r.click&&(e.addEventListener(\\\"click\\\",A),e.addEventListener(\\\"touchstart\\\",A),e.addEventListener(\\\"touchend\\\",(function(t){t.preventDefault()})),e.style.webkitTapHighlightColor=\\\"rgba(0, 0, 0, 0)\\\"),e.addEventListener(\\\"wordcloudstart\\\",(function t(){e.removeEventListener(\\\"wordcloudstart\\\",t),e.removeEventListener(\\\"mousemove\\\",E),e.removeEventListener(\\\"click\\\",A),I=void 0}))}l=0;var b=!0;r.layoutAnimation?0!==r.wait?(d=window.setTimeout,w=window.clearTimeout):(d=window.setImmediate,w=window.clearImmediate):(d=function(t){t()},w=function(){b=!1});var C=function(e,a){t.forEach((function(t){t.removeEventListener(e,a)}),this)},O=function t(){C(\\\"wordcloudstart\\\",t),w(s[a])};!function(e,a){t.forEach((function(t){t.addEventListener(\\\"wordcloudstart\\\",a)}),this)}(0,O),s[a]=(r.layoutAnimation?d:setTimeout)((function t(){if(b){if(l>=r.list.length)return w(s[a]),z(\\\"wordcloudstop\\\",!1),C(\\\"wordcloudstart\\\",O),void delete s[a];g=(new Date).getTime();var e=R(r.list[l],0),i=!z(\\\"wordclouddrawn\\\",!0,{item:r.list[l],drawn:e});if(D()||i)return w(s[a]),r.abort(),z(\\\"wordcloudabort\\\",!1),z(\\\"wordcloudstop\\\",!1),void C(\\\"wordcloudstart\\\",O);l++,s[a]=d(t,r.wait)}}),r.wait)}}()}function L(t,e){return\\\"hsl(\\\"+(360*Math.random()).toFixed()+\\\",\\\"+(30*Math.random()+70).toFixed()+\\\"%,\\\"+(Math.random()*(e-t)+t).toFixed()+\\\"%)\\\"}};l.isSupported=i,l.minFontSize=o;const d=l;if(!d.isSupported)throw new Error(\\\"Sorry your browser not support wordCloud\\\");r.registerLayout((function(t,e){t.eachSeriesByType(\\\"wordCloud\\\",(function(a){var i=r.helper.getLayoutRect(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),o=a.get(\\\"keepAspect\\\"),n=a.get(\\\"maskImage\\\"),s=n?n.width/n.height:1;o&&function(t,e){var a=t.width,r=t.height;a>r*e?(t.x+=(a-r*e)/2,t.width=r*e):(t.y+=(r-a/e)/2,t.height=a/e)}(i,s);var l=a.getData(),u=document.createElement(\\\"canvas\\\");u.width=i.width,u.height=i.height;var f=u.getContext(\\\"2d\\\");if(n)try{f.drawImage(n,0,0,u.width,u.height),function(t){for(var e=t.getContext(\\\"2d\\\"),a=e.getImageData(0,0,t.width,t.height),r=e.createImageData(a),i=0,o=0,n=0;n128&&(i+=l=a.data[n]+a.data[n+1]+a.data[n+2],++o);var s=i/o;for(n=0;ns?(r.data[n]=0,r.data[n+1]=0,r.data[n+2]=0,r.data[n+3]=0):(r.data[n]=255,r.data[n+1]=255,r.data[n+2]=255,r.data[n+3]=255)}e.putImageData(r,0,0)}(u)}catch(t){console.error(\\\"Invalid mask image\\\"),console.error(t.toString())}var c=a.get(\\\"sizeRange\\\"),h=a.get(\\\"rotationRange\\\"),m=l.getDataExtent(\\\"value\\\"),g=Math.PI/180,w=a.get(\\\"gridSize\\\");function v(t){var e=t.detail.item;t.detail.drawn&&a.layoutInstance.ondraw&&(t.detail.drawn.gx+=i.x/w,t.detail.drawn.gy+=i.y/w,a.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}d(u,{list:l.mapArray(\\\"value\\\",(function(t,e){var a=l.getItemModel(e);return[l.getName(e),a.get(\\\"textStyle.fontSize\\\",!0)||r.number.linearMap(t,m,c),e]})).sort((function(t,e){return e[1]-t[1]})),fontFamily:a.get(\\\"textStyle.fontFamily\\\")||a.get(\\\"emphasis.textStyle.fontFamily\\\")||t.get(\\\"textStyle.fontFamily\\\"),fontWeight:a.get(\\\"textStyle.fontWeight\\\")||a.get(\\\"emphasis.textStyle.fontWeight\\\")||t.get(\\\"textStyle.fontWeight\\\"),gridSize:w,ellipticity:i.height/i.width,minRotation:h[0]*g,maxRotation:h[1]*g,clearCanvas:!n,rotateRatio:1,rotationStep:a.get(\\\"rotationStep\\\")*g,drawOutOfBound:a.get(\\\"drawOutOfBound\\\"),shrinkToFit:a.get(\\\"shrinkToFit\\\"),layoutAnimation:a.get(\\\"layoutAnimation\\\"),shuffle:!1,shape:a.get(\\\"shape\\\")}),u.addEventListener(\\\"wordclouddrawn\\\",v),a.layoutInstance&&a.layoutInstance.dispose(),a.layoutInstance={ondraw:null,dispose:function(){u.removeEventListener(\\\"wordclouddrawn\\\",v),u.addEventListener(\\\"wordclouddrawn\\\",(function(t){t.preventDefault()}))}}}))})),r.registerPreprocessor((function(t){var e=(t||{}).series;!r.util.isArray(e)&&(e=e?[e]:[]);var a=[\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"];function i(t){t&&r.util.each(a,(function(e){t.hasOwnProperty(e)&&(t[\\\"text\\\"+r.format.capitalFirst(e)]=t[e])}))}r.util.each(e,(function(t){if(t&&\\\"wordCloud\\\"===t.type){var e=t.textStyle||{};i(e.normal),i(e.emphasis)}}))}))},83:e=>{e.exports=t}},a={};function r(t){if(a[t])return a[t].exports;var i=a[t]={exports:{}};return e[t](i,i.exports,r),i.exports}return r.r=t=>{\\\"undefined\\\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\\\"Module\\\"}),Object.defineProperty(t,\\\"__esModule\\\",{value:!0})},r(638)})()}));\\n//# sourceMappingURL=echarts-wordcloud.min.js.map\\n\",\"type\":\"application/javascript\",\"module-type\":\"echarts-extension\",\"Modern.TiddlyDev#Minify\":\"false\",\"version\":\"2.1.0\"},\"$:/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.echarts={})}(this,function(t){\\\"use strict\\\";function e(t,e){function n(){this.constructor=t}if(\\\"function\\\"!=typeof e&&null!==e)throw new TypeError(\\\"Class extends value \\\"+String(e)+\\\" is not a constructor or null\\\");ak(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function n(t,e){var n=e.browser,i=t.match(/Firefox\\\\/([\\\\d.]+)/),r=t.match(/MSIE\\\\s([\\\\d.]+)/)||t.match(/Trident\\\\/.+?rv:(([\\\\d.]+))/),o=t.match(/Edge?\\\\/([\\\\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(\\\".\\\")[0]>18),a&&(n.weChat=!0),e.svgSupported=\\\"undefined\\\"!=typeof SVGRect,e.touchEventsSupported=\\\"ontouchstart\\\"in window&&!n.ie&&!n.edge,e.pointerEventsSupported=\\\"onpointerdown\\\"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=\\\"undefined\\\"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&\\\"transition\\\"in s||n.edge||\\\"WebKitCSSMatrix\\\"in window&&\\\"m11\\\"in new WebKitCSSMatrix||\\\"MozPerspective\\\"in s)&&!(\\\"OTransition\\\"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}function i(t){var e={};if(\\\"undefined\\\"==typeof JSON)return e;for(var n=0;ni;i++)e[i]=s(t[i])}}else if(xk[n]){if(!X(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var i=0,r=t.length;r>i;i++)e[i]=t[i]}}}else if(!mk[n]&&!X(t)&&!P(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==Dk&&(e[a]=s(t[a]))}return e}function l(t,e,n){if(!A(e)||!A(t))return n?s(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==Dk){var r=t[i],o=e[i];!A(o)||!A(r)||M(o)||M(r)||P(o)||P(r)||k(o)||k(r)||X(o)||X(r)?!n&&i in t||(t[i]=s(e[i])):l(r,o,n)}return t}function u(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=l(n,t[i],e);return n}function h(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Dk&&(t[n]=e[n]);return t}function c(t,e,n){for(var i=b(e),r=0;rn;n++)if(t[n]===e)return n}return-1}function d(t,e){function n(){}var i=t.prototype;n.prototype=e.prototype,t.prototype=new n;for(var r in i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function f(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),r=0;ri;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function v(t,e,n){if(!t)return[];if(!e)return F(t);if(t.map&&t.map===Ik)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function m(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function x(t,e,n){if(!t)return[];if(!e)return F(t);if(t.filter&&t.filter===Sk)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function _(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function b(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function w(t,e){for(var n=[],i=2;in;n++)if(null!=t[n])return t[n]}function B(t,e){return null!=t?t:e}function V(t,e,n){return null!=t?t:null!=e?e:n}function F(t){for(var e=[],n=1;np;p++){var f=1<a;a++)for(var s=0;8>s;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*_e(n,7,0===a?1:0,1<o;o++){var a=document.createElement(\\\"div\\\"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=[\\\"position: absolute\\\",\\\"visibility: hidden\\\",\\\"padding: 0\\\",\\\"margin: 0\\\",\\\"border-width: 0\\\",\\\"user-select: none\\\",\\\"width:0\\\",\\\"height:0\\\",i[l]+\\\":0\\\",r[u]+\\\":0\\\",i[1-l]+\\\":auto\\\",r[1-u]+\\\":auto\\\",\\\"\\\"].join(\\\"!important;\\\"),t.appendChild(a),n.push(a)}return n}function Ie(t,e,n){for(var i=n?\\\"invTrans\\\":\\\"trans\\\",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;4>u;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?be(s,a):be(a,s))}function Te(t){return\\\"CANVAS\\\"===t.nodeName.toUpperCase()}function Ce(t){return null==t?\\\"\\\":(t+\\\"\\\").replace(qk,function(t,e){return Kk[e]})}function De(t,e,n,i){return n=n||{},i?Ae(t,e,n):Qk&&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):Ae(t,e,n),n}function Ae(t,e,n){if(uk.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Te(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Se(Jk,t,i,r))return n.zrX=Jk[0],void(n.zrY=Jk[1])}n.zrX=n.zrY=0}function ke(t){return t||window.event}function Le(t,e,n){if(e=ke(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf(\\\"touch\\\")>=0;if(r){var o=\\\"touchend\\\"!==i?e.targetTouches[0]:e.changedTouches[0];o&&De(t,o,e,n)}else{De(t,e,e,n);var a=Pe(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&$k.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function Pe(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=Math.abs(0!==i?i:n),o=i>0?-1:0>i?1:n>0?-1:1;return 3*r*o}function Oe(t,e,n,i){t.addEventListener(e,n,i)}function Re(t,e,n,i){t.removeEventListener(e,n,i)}function Ne(t){return 2===t.which||3===t.which}function Ee(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function ze(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}function Be(){return[1,0,0,1,0,0]}function Ve(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Fe(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 Ge(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=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]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function We(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 He(t,e,n){var i=e[0],r=e[2],o=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]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ye(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Xe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ue(t){var e=Be();return Fe(e,t),e}function Ze(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:je}}function je(){tL(this.event)}function qe(t,e,n){if(t[t.rectHover?\\\"rectContain\\\":\\\"contain\\\"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s?s:i.parent}return r?fL:!0}return!1}function Ke(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=qe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==fL)){e.target=a;break}}}function $e(t,e,n){var i=t.painter;return 0>e||e>i.getWidth()||0>n||n>i.getHeight()}function Je(t){for(var e=0;t>=bL;)e|=1&t,t>>=1;return t+e}function Qe(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;n>r&&i(t[r],t[r-1])<0;)r++;tn(t,e,r)}else for(;n>r&&i(t[r],t[r-1])>=0;)r++;return r-e}function tn(t,e,n){for(n--;n>e;){var i=t[e];t[e++]=t[n],t[n--]=i}}function en(t,e,n,i,r){for(i===e&&i++;n>i;i++){for(var o,a=t[i],s=e,l=i;l>s;)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;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(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function nn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;s>l&&o(t,e[n+r+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;s>l&&o(t,e[n+r-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function rn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;s>l&&o(t,e[n+r-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;s>l&&o(t,e[n+r+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;l>a;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function on(t,e){function n(t,e){l[c]=t,u[c]=e,c+=1}function i(){for(;c>1;){var t=c-2;if(t>=1&&u[t-1]<=u[t]+u[t+1]||t>=2&&u[t-2]<=u[t]+u[t-1])u[t-1]u[t+1])break;o(t)}}function r(){for(;c>1;){var t=c-2;t>0&&u[t-1]=r?a(i,r,o,h):s(i,r,o,h)))}function a(n,i,r,o){var a=0;for(a=0;i>a;a++)p[a]=t[n+a];var s=0,l=r,u=n;if(t[u++]=t[l++],0!==--o){if(1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];return void(t[u+o]=p[s])}for(var c,d,f,g=h;;){c=0,d=0,f=!1;do if(e(t[l],p[s])<0){if(t[u++]=t[l++],d++,c=0,0===--o){f=!0;break}}else if(t[u++]=p[s++],c++,d=0,1===--i){f=!0;break}while(g>(c|d));if(f)break;do{if(c=rn(t[l],p,s,i,0,e),0!==c){for(a=0;c>a;a++)t[u+a]=p[s+a];if(u+=c,s+=c,i-=c,1>=i){f=!0;break}}if(t[u++]=t[l++],0===--o){f=!0;break}if(d=nn(p[s],t,l,o,0,e),0!==d){for(a=0;d>a;a++)t[u+a]=t[l+a];if(u+=d,l+=d,o-=d,0===o){f=!0;break}}if(t[u++]=p[s++],1===--i){f=!0;break}g--}while(c>=wL||d>=wL);if(f)break;0>g&&(g=0),g+=2}if(h=g,1>h&&(h=1),1===i){for(a=0;o>a;a++)t[u+a]=t[l+a];t[u+o]=p[s]}else{if(0===i)throw new Error;for(a=0;i>a;a++)t[u+a]=p[s+a]}}else for(a=0;i>a;a++)t[u+a]=p[s+a]}function s(n,i,r,o){var a=0;for(a=0;o>a;a++)p[a]=t[r+a];var s=n+i-1,l=o-1,u=r+o-1,c=0,d=0;if(t[u--]=t[s--],0!==--i){if(1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];return void(t[u]=p[l])}for(var f=h;;){var g=0,y=0,v=!1;do if(e(p[l],t[s])<0){if(t[u--]=t[s--],g++,y=0,0===--i){v=!0;break}}else if(t[u--]=p[l--],y++,g=0,1===--o){v=!0;break}while(f>(g|y));if(v)break;do{if(g=i-rn(p[l],t,n,i,i-1,e),0!==g){for(u-=g,s-=g,i-=g,d=u+1,c=s+1,a=g-1;a>=0;a--)t[d+a]=t[c+a];if(0===i){v=!0;break}}if(t[u--]=p[l--],1===--o){v=!0;break}if(y=o-nn(t[s],p,0,o,o-1,e),0!==y){for(u-=y,l-=y,o-=y,d=u+1,c=l+1,a=0;y>a;a++)t[d+a]=p[c+a];if(1>=o){v=!0;break}}if(t[u--]=t[s--],0===--i){v=!0;break}f--}while(g>=wL||y>=wL);if(v)break;0>f&&(f=0),f+=2}if(h=f,1>h&&(h=1),1===o){for(u-=i,s-=i,d=u+1,c=s+1,a=i-1;a>=0;a--)t[d+a]=t[c+a];t[u]=p[l]}else{if(0===o)throw new Error;for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}}else for(c=u-(o-1),a=0;o>a;a++)t[c+a]=p[a]}var l,u,h=wL,c=0,p=[];return l=[],u=[],{mergeRuns:i,forceMergeRuns:r,pushRun:n}}function an(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(2>r)){var o=0;if(bL>r)return o=Qe(t,n,i,e),void en(t,n,i,n+o,e);var a=on(t,e),s=Je(r);do{if(o=Qe(t,n,i,e),s>o){var l=r;l>s&&(l=s),en(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}function sn(){TL||(TL=!0,console.warn(\\\"z / z2 / zlevel of displayable is invalid, which may cause unexpected errors\\\"))}function ln(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}function un(t){return t>-PL&&PL>t}function hn(t){return t>PL||-PL>t}function cn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function pn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function dn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(un(h)&&un(c))if(un(s))o[0]=0;else{var f=-l/s;f>=0&&1>=f&&(o[d++]=f)}else{var g=c*c-4*h*p;if(un(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v)}else if(g>0){var m=LL(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m);x=0>x?-kL(-x,NL):kL(x,NL),_=0>_?-kL(-_,NL):kL(_,NL);var f=(-s-(x+_))/(3*a);f>=0&&1>=f&&(o[d++]=f)}else{var b=(2*h*s-3*a*c)/(2*LL(h*h*h)),w=Math.acos(b)/3,S=LL(h),M=Math.cos(w),f=(-s-2*S*M)/(3*a),v=(-s+S*(M+RL*Math.sin(w)))/(3*a),I=(-s+S*(M-RL*Math.sin(w)))/(3*a);f>=0&&1>=f&&(o[d++]=f),v>=0&&1>=v&&(o[d++]=v),I>=0&&1>=I&&(o[d++]=I)}}return d}function fn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(un(a)){if(hn(o)){var u=-s/o;u>=0&&1>=u&&(r[l++]=u)}}else{var h=o*o-4*a*s;if(un(h))r[0]=-o/(2*a);else if(h>0){var c=LL(h),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function gn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function yn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;EL[0]=l,EL[1]=u;for(var m=0;1>m;m+=.05)zL[0]=cn(t,n,r,a,m),zL[1]=cn(e,i,o,s,m),f=Gk(EL,zL),v>f&&(c=m,v=f);v=1/0;for(var x=0;32>x&&!(OL>y);x++)p=c-y,d=c+y,zL[0]=cn(t,n,r,a,p),zL[1]=cn(e,i,o,s,p),f=Gk(zL,EL),p>=0&&v>f?(c=p,v=f):(BL[0]=cn(t,n,r,a,d),BL[1]=cn(e,i,o,s,d),g=Gk(BL,EL),1>=d&&v>g?(c=d,v=g):y*=.5);return h&&(h[0]=cn(t,n,r,a,c),h[1]=cn(e,i,o,s,c)),LL(v)}function vn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;l>=d;d++){var f=d*p,g=cn(t,n,r,a,f),y=cn(e,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function mn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function xn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function _n(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(un(o)){if(hn(a)){var u=-s/a;u>=0&&1>=u&&(r[l++]=u)}}else{var h=a*a-4*o*s;if(un(h)){var u=-a/(2*o);u>=0&&1>=u&&(r[l++]=u)}else if(h>0){var c=LL(h),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&1>=u&&(r[l++]=u),p>=0&&1>=p&&(r[l++]=p)}}return l}function bn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function wn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Sn(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;EL[0]=a,EL[1]=s;for(var p=0;1>p;p+=.05){zL[0]=mn(t,n,r,p),zL[1]=mn(e,i,o,p);var d=Gk(EL,zL);c>d&&(u=p,c=d)}c=1/0;for(var f=0;32>f&&!(OL>h);f++){var g=u-h,y=u+h;zL[0]=mn(t,n,r,g),zL[1]=mn(e,i,o,g);var d=Gk(zL,EL);if(g>=0&&c>d)u=g,c=d;else{BL[0]=mn(t,n,r,y),BL[1]=mn(e,i,o,y);var v=Gk(BL,EL);1>=y&&c>v?(u=y,c=v):h*=.5}}return l&&(l[0]=mn(t,n,r,u),l[1]=mn(e,i,o,u)),LL(c)}function Mn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;a>=c;c++){var p=c*h,d=mn(t,n,r,p),f=mn(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}function In(t){var e=t&&VL.exec(t);if(e){var n=e[1].split(\\\",\\\"),i=+H(n[0]),r=+H(n[1]),o=+H(n[2]),a=+H(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return 0>=t?0:t>=1?1:dn(0,i,o,1,t,s)&&cn(0,r,a,1,s[0])}}}function Tn(t){return t=Math.round(t),0>t?0:t>255?255:t}function Cn(t){return t=Math.round(t),0>t?0:t>360?360:t}function Dn(t){return 0>t?0:t>1?1:t}function An(t){var e=t;return Tn(e.length&&\\\"%\\\"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function kn(t){var e=t;return Dn(e.length&&\\\"%\\\"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function Ln(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function Pn(t,e,n){return t+(e-t)*n}function On(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Nn(t,e){UL&&Rn(UL,e),UL=XL.put(t,UL||e.slice())}function En(t,e){if(t){e=e||[];var n=XL.get(t);if(n)return Rn(e,n);t+=\\\"\\\";var i=t.replace(/ /g,\\\"\\\").toLowerCase();if(i in YL)return Rn(e,YL[i]),Nn(t,e),e;var r=i.length;if(\\\"#\\\"!==i.charAt(0)){var o=i.indexOf(\\\"(\\\"),a=i.indexOf(\\\")\\\");if(-1!==o&&a+1===r){var s=i.substr(0,o),l=i.substr(o+1,a-(o+1)).split(\\\",\\\"),u=1;switch(s){case\\\"rgba\\\":if(4!==l.length)return 3===l.length?On(e,+l[0],+l[1],+l[2],1):On(e,0,0,0,1);u=kn(l.pop());case\\\"rgb\\\":return l.length>=3?(On(e,An(l[0]),An(l[1]),An(l[2]),3===l.length?u:kn(l[3])),Nn(t,e),e):void On(e,0,0,0,1);case\\\"hsla\\\":return 4!==l.length?void On(e,0,0,0,1):(l[3]=kn(l[3]),zn(l,e),Nn(t,e),e);case\\\"hsl\\\":return 3!==l.length?void On(e,0,0,0,1):(zn(l,e),Nn(t,e),e);default:return}}On(e,0,0,0,1)}else{if(4===r||5===r){var h=parseInt(i.slice(1,4),16);return h>=0&&4095>=h?(On(e,(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,5===r?parseInt(i.slice(4),16)/15:1),Nn(t,e),e):void On(e,0,0,0,1)}if(7===r||9===r){var h=parseInt(i.slice(1,7),16);return h>=0&&16777215>=h?(On(e,(16711680&h)>>16,(65280&h)>>8,255&h,9===r?parseInt(i.slice(7),16)/255:1),Nn(t,e),e):void On(e,0,0,0,1)}}}}function zn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=kn(t[1]),r=kn(t[2]),o=.5>=r?r*(i+1):r+i-r*i,a=2*r-o;return e=e||[],On(e,Tn(255*Ln(a,o,n+1/3)),Tn(255*Ln(a,o,n)),Tn(255*Ln(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Bn(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function Vn(t,e){var n=En(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Xn(n,4===n.length?\\\"rgba\\\":\\\"rgb\\\")}}function Fn(t){var e=En(t);return e?((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1):void 0}function Gn(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=Tn(Pn(a[0],s[0],l)),n[1]=Tn(Pn(a[1],s[1],l)),n[2]=Tn(Pn(a[2],s[2],l)),n[3]=Dn(Pn(a[3],s[3],l)),n}}function Wn(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=En(e[r]),s=En(e[o]),l=i-r,u=Xn([Tn(Pn(a[0],s[0],l)),Tn(Pn(a[1],s[1],l)),Tn(Pn(a[2],s[2],l)),Dn(Pn(a[3],s[3],l))],\\\"rgba\\\");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Hn(t,e,n,i){var r=En(t);return t?(r=Bn(r),null!=e&&(r[0]=Cn(e)),null!=n&&(r[1]=kn(n)),null!=i&&(r[2]=kn(i)),Xn(zn(r),\\\"rgba\\\")):void 0}function Yn(t,e){var n=En(t);return n&&null!=e?(n[3]=Dn(e),Xn(n,\\\"rgba\\\")):void 0}function Xn(t,e){if(t&&t.length){var n=t[0]+\\\",\\\"+t[1]+\\\",\\\"+t[2];return(\\\"rgba\\\"===e||\\\"hsva\\\"===e||\\\"hsla\\\"===e)&&(n+=\\\",\\\"+t[3]),e+\\\"(\\\"+n+\\\")\\\"}}function Un(t,e){var n=En(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Zn(){return Xn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],\\\"rgb\\\")}function jn(t){var e;if(t&&\\\"transparent\\\"!==t){if(\\\"string\\\"==typeof t&&t.indexOf(\\\"rgba\\\")>-1){var n=En(t);n&&(t=\\\"rgb(\\\"+n[0]+\\\",\\\"+n[1]+\\\",\\\"+n[2]+\\\")\\\",e=n[3])}}else t=\\\"none\\\";return{color:t,opacity:null==e?1:e}}function qn(t){return $L>t&&t>-$L}function Kn(t){return KL(1e3*t)/1e3}function $n(t){return KL(1e4*t)/1e4}function Jn(t){return\\\"matrix(\\\"+Kn(t[0])+\\\",\\\"+Kn(t[1])+\\\",\\\"+Kn(t[2])+\\\",\\\"+Kn(t[3])+\\\",\\\"+$n(t[4])+\\\",\\\"+$n(t[5])+\\\")\\\"}function Qn(t,e,n){return\\\"top\\\"===n?t+=e/2:\\\"bottom\\\"===n&&(t-=e/2),t}function ti(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function ei(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(\\\",\\\")}function ni(t){return t&&!!t.image}function ii(t){return t&&!!t.svgElement}function ri(t){return ni(t)||ii(t)}function oi(t){return\\\"linear\\\"===t.type}function ai(t){return\\\"radial\\\"===t.type}function si(t){return t&&(\\\"linear\\\"===t.type||\\\"radial\\\"===t.type)}function li(t){return\\\"url(#\\\"+t+\\\")\\\"}function ui(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function hi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ek,r=B(t.scaleX,1),o=B(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!==r||1!==o)&&l.push(\\\"scale(\\\"+r+\\\",\\\"+o+\\\")\\\"),(a||s)&&l.push(\\\"skew(\\\"+KL(a*Ek)+\\\"deg, \\\"+KL(s*Ek)+\\\"deg)\\\"),l.join(\\\" \\\")}function ci(t,e,n){return(e-t)*n+t}function pi(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=ci(e[o],n[o],i);return t}function di(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=ci(e[a][s],n[a][s],i)}return t}function fi(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function gi(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function yi(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;a>l;l++)i.push(1===n?r[l]:tP.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;lh;h++)isNaN(i[l][h])&&(i[l][h]=r[l][h])}}function mi(t){if(g(t)){var e=t.length;if(g(t[0])){for(var n=[],i=0;e>i;i++)n.push(tP.call(t[i]));return n}return tP.call(t)}return t}function xi(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 _i(t){return g(t&&t[0])?2:1}function bi(t){return t===oP||t===aP}function wi(t){return t===nP||t===iP}function Si(){return(new Date).getTime()}function Mi(t){var e=t.pointerType;return\\\"pen\\\"===e||\\\"touch\\\"===e}function Ii(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Ti(t){t&&(t.zrByTouch=!0)}function Ci(t,e){return Le(t.dom,new vP(t,e),!0)}function Di(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}function Ai(t,e){var n=e.domHandlers;uk.pointerEventsSupported?y(fP.pointer,function(i){Li(e,i,function(e){n[i].call(t,e)})}):(uk.touchEventsSupported&&y(fP.touch,function(i){Li(e,i,function(r){n[i].call(t,r),Ii(e)})}),y(fP.mouse,function(i){Li(e,i,function(r){r=ke(r),e.touching||n[i].call(t,r)})}))}function ki(t,e){function n(n){function i(i){i=ke(i),Di(t,i.target)||(i=Ci(t,i),e.domHandlers[n].call(t,i))}Li(e,n,i,{capture:!0})}uk.pointerEventsSupported?y(gP.pointer,n):uk.touchEventsSupported||y(gP.mouse,n)}function Li(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Oe(t.domTarget,e,n,i)}function Pi(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Re(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}function Oi(t){return t>AP||-AP>t}function Ri(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Wi(t,e,n){var i=e.position||\\\"inside\\\",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h=\\\"left\\\",c=\\\"top\\\";if(i instanceof Array)l+=Gi(i[0],n.width),u+=Gi(i[1],n.height),h=null,c=null;else switch(i){case\\\"left\\\":l-=r,u+=s,h=\\\"right\\\",c=\\\"middle\\\";break;case\\\"right\\\":l+=r+a,u+=s,c=\\\"middle\\\";break;case\\\"top\\\":l+=a/2,u-=r,h=\\\"center\\\",c=\\\"bottom\\\";break;case\\\"bottom\\\":l+=a/2,u+=o+r,h=\\\"center\\\";break;case\\\"inside\\\":l+=a/2,u+=s,h=\\\"center\\\",c=\\\"middle\\\";break;case\\\"insideLeft\\\":l+=r,u+=s,c=\\\"middle\\\";break;case\\\"insideRight\\\":l+=a-r,u+=s,h=\\\"right\\\",c=\\\"middle\\\";break;case\\\"insideTop\\\":l+=a/2,u+=r,h=\\\"center\\\";break;case\\\"insideBottom\\\":l+=a/2,u+=o-r,h=\\\"center\\\",c=\\\"bottom\\\";break;case\\\"insideTopLeft\\\":l+=r,u+=r;break;case\\\"insideTopRight\\\":l+=a-r,u+=r,h=\\\"right\\\";break;case\\\"insideBottomLeft\\\":l+=r,u+=o-r,c=\\\"bottom\\\";break;case\\\"insideBottomRight\\\":l+=a-r,u+=o-r,h=\\\"right\\\",c=\\\"bottom\\\"}return t=t||{},t.x=l,t.y=u,t.align=h,t.verticalAlign=c,t}function Hi(t,e,n,i,r){n=n||{};var o=[];qi(t,\\\"\\\",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,h=function(){s=!0,a--,0>=a&&(s?l&&l():u&&u())},c=function(){a--,0>=a&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;pi;i++)t[i]=e[i]}function Xi(t){return g(t[0])}function Ui(t,e,n){if(g(e[n]))if(g(t[n])||(t[n]=[]),L(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Yi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(Xi(r))for(var s=r[0].length,l=0;a>l;l++)o[l]?Yi(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Yi(o,r,a);o.length=r.length}else t[n]=e[n]}function Zi(t,e){return t===e||g(t)&&g(e)&&ji(t,e)}function ji(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;n>i;i++)if(t[i]!==e[i])return!1;return!0}function qi(t,e,n,i,r,o,a,s){for(var l=b(i),u=r.duration,h=r.delay,c=r.additive,d=r.setToFinal,f=!A(o),y=t.animators,v=[],m=0;m0||r.force&&!a.length){var D=void 0,k=void 0,L=void 0;if(s){k={},d&&(D={});for(var M=0;S>M;M++){var _=v[M];k[_]=n[_],d?D[_]=i[_]:n[_]=i[_]}}else if(d){L={};for(var M=0;S>M;M++){var _=v[M];L[_]=mi(n[_]),Ui(n,i,_)}}var I=new hP(n,!1,!1,c?x(y,function(t){return t.targetName===e}):null);I.targetName=e,r.scope&&(I.scope=r.scope),d&&D&&I.whenWithKeys(0,D,v),L&&I.whenWithKeys(0,L,v),I.whenWithKeys(null==u?500:u,s?k:i,v).delay(h||0),t.addAnimator(I,e),a.push(I)}}function Ki(t){delete XP[t]}function $i(t){if(!t)return!1;if(\\\"string\\\"==typeof t)return Un(t,1)r;r++)n+=Un(e[r].color,1);return n/=i,MP>n}return!1}function Ji(t,e){var n=new UP(o(),t,e);return XP[n.id]=n,n}function Qi(t){t.dispose()}function tr(){for(var t in XP)XP.hasOwnProperty(t)&&XP[t].dispose();XP={}}function er(t){return XP[t]}function nr(t,e){YP[t]=e}function ir(t){return t.replace(/^\\\\s+|\\\\s+$/g,\\\"\\\")}function rr(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(r>=t)return a;if(t>=o)return s}else{if(t>=r)return a;if(o>=t)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function or(t,e){switch(t){case\\\"center\\\":case\\\"middle\\\":t=\\\"50%\\\";break;case\\\"left\\\":case\\\"top\\\":t=\\\"0%\\\";break;case\\\"right\\\":case\\\"bottom\\\":t=\\\"100%\\\"\\n}return T(t)?ir(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?0/0:+t}function ar(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),KP),t=(+t).toFixed(e),n?t:+t}function sr(t){return t.sort(function(t,e){return t-e}),t}function lr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;15>n;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ur(t)}function ur(t){var e=t.toString().toLowerCase(),n=e.indexOf(\\\"e\\\"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(\\\".\\\"),a=0>o?0:r-1-o;return Math.max(0,a-i)}function hr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function cr(t,e,n){if(!t[e])return 0;var i=pr(t,n);return i[e]||0}function pr(t,e){var n=m(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),r=v(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,a=v(r,function(t){return Math.floor(t)}),s=m(a,function(t,e){return t+e},0),l=v(r,function(t,e){return t-a[e]});o>s;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;p>c;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return v(a,function(t){return t/i})}function dr(t,e){var n=Math.max(lr(t),lr(e)),i=t+e;return n>KP?i:ar(i,n)}function fr(t){var e=2*Math.PI;return(t%e+e)%e}function gr(t){return t>-qP&&qP>t}function yr(t){if(t instanceof Date)return t;if(T(t)){var e=JP.exec(t);if(!e)return new Date(0/0);if(e[8]){var n=+e[4]||0;return\\\"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))}return 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)}return new Date(null==t?0/0:Math.round(t))}function vr(t){return Math.pow(10,mr(t))}function mr(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function xr(t,e){var n,i=mr(t),r=Math.pow(10,i),o=t/r;return n=e?1.5>o?1:2.5>o?2:4>o?3:7>o?5:10:1>o?1:2>o?2:3>o?3:5>o?5:10,t=n*r,i>=-20?+t.toFixed(0>i?-i:0):t}function _r(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function br(t){function e(t,n,i){return t.interval[i]s;s++)o[s]<=n&&(o[s]=n,a[s]=s?1:1-i),n=o[s],i=a[s];o[0]===o[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t}function wr(t){var e=parseFloat(t);return e==t&&(0!==e||!T(t)||t.indexOf(\\\"x\\\")<=0)?e:0/0}function Sr(t){return!isNaN(wr(t))}function Mr(){return Math.round(9*Math.random())}function Ir(t,e){return 0===e?t:Ir(e,t%e)}function Tr(t,e){return null==t?e:null==e?t:t*e/Ir(t,e)}function Cr(t){throw new Error(t)}function Dr(t,e,n){return(e-t)*n+t}function Ar(t){return t instanceof Array?t:null==t?[]:[t]}function kr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;r>i;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}function Lr(t){return!A(t)||M(t)||t instanceof Date?t:t.value}function Pr(t){return A(t)&&!(t instanceof Array)}function Or(t,e,n){var i=\\\"normalMerge\\\"===n,r=\\\"replaceMerge\\\"===n,o=\\\"replaceAll\\\"===n;t=t||[],e=(e||[]).slice();var a=Z();y(e,function(t,n){return A(t)?void 0:void(e[n]=null)});var s=Rr(t,a,n);return(i||r)&&Nr(s,t,a,e),i&&Er(s,e),i||r?zr(s,e,r):o&&Br(s,e),Vr(s),s}function Rr(t,e,n){var i=[];if(\\\"replaceAll\\\"===n)return i;for(var r=0;ri;i++){var o=Wr(t[i].seriesId,null);if(null==o)return;for(var a=Ar(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;u>l;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}}function i(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var o=i(t[r],!0);o.length&&n.push({seriesId:r,dataIndex:o})}return n}var r={},o={};return n(t||[],r),n(e||[],o,r),[i(r),i(o)]}function qr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?M(e.dataIndex)?v(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?M(e.name)?v(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function Kr(){var t=\\\"__ec_inner_\\\"+nO++;return function(e){return e[t]||(e[t]={})}}function $r(t,e,n){var i=Jr(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(e,i){var r=Qr(t,i,e,{useDefault:l===i,enableAll:n&&null!=n.enableAll?n.enableAll:!0,enableNone:n&&null!=n.enableNone?n.enableNone:!0});s[i+\\\"Models\\\"]=r.models,s[i+\\\"Model\\\"]=r.models[0]}),s}function Jr(t,e){var n;if(T(t)){var i={};i[t+\\\"Index\\\"]=0,n=i}else n=t;var r=Z(),o={},a=!1;return y(n,function(t,n){if(\\\"dataIndex\\\"===n||\\\"dataIndexInside\\\"===n)return void(o[n]=t);var i=n.match(/^(\\\\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||\\\"\\\").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&p(e.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}function Qr(t,e,n,i){i=i||iO;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return\\\"none\\\"===r||r===!1?(W(i.enableNone,'`\\\"none\\\"` or `false` is not a valid value on index option.'),s.models=[],s):(\\\"all\\\"===r&&(W(i.enableAll,'`\\\"all\\\"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function to(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function eo(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function no(t){return\\\"auto\\\"===t?uk.domSupported?\\\"html\\\":\\\"richText\\\":t||\\\"html\\\"}function io(t,e){var n=Z(),i=[];return y(t,function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)}),{keys:i,buckets:n}}function ro(t,e,n,i,r){var o=null==e||\\\"auto\\\"===e;if(null==i)return i;if(D(i)){var a=Dr(n||0,i,r);return ar(a,o?Math.max(lr(n||0),lr(i)):e)}if(T(i))return 1>r?n:i;for(var s=[],l=n,u=i,h=Math.max(l?l.length:0,u.length),c=0;h>c;++c){var p=t.getDimensionInfo(c);if(p&&\\\"ordinal\\\"===p.type)s[c]=(1>r&&l?l:u)[c];else{var d=l&&l[c]?l[c]:0,f=u[c],a=Dr(d,f,r);s[c]=ar(a,o?Math.max(lr(d),lr(f)):e)}}return s}function oo(t){var e={main:\\\"\\\",sub:\\\"\\\"};if(t){var n=t.split(oO);e.main=n[0]||\\\"\\\",e.sub=n[1]||\\\"\\\"}return e}function ao(t){W(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType \\\"'+t+'\\\" illegal')}function so(t){return!(!t||!t[sO])}function lo(t){t.$constructor=t,t.extend=function(t){var n,i=this;return uo(i)?n=function(t){function n(){return t.apply(this,arguments)||this}return e(n,t),n}(i):(n=function(){(t.$constructor||i).apply(this,arguments)},d(n,this)),h(n.prototype,t),n[sO]=!0,n.extend=this.extend,n.superCall=po,n.superApply=fo,n.superClass=i,n}}function uo(t){return I(t)&&/^class\\\\s/.test(Function.prototype.toString.call(t))}function ho(t,e){t.extend=e.extend}function co(t){var e=[\\\"__\\\\x00is_clz\\\",lO++].join(\\\"_\\\");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function po(t,e){for(var n=[],i=2;i=0||r&&p(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}function vo(t){if(\\\"string\\\"==typeof t){var e=pO.get(t);return e&&e.image}return t}function mo(t,e,n,i,r){if(t){if(\\\"string\\\"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=pO.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!_o(e)&&o.pending.push(a)):(e=vk.loadImage(t,xo,xo),e.__zrImageSrc=t,pO.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function xo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;ea;a++)o[a]=So(o[a],r);return o.join(\\\"\\\\n\\\")}function wo(t,e,n,i){i=i||{};var r=h({},i);r.font=e,n=B(n,\\\"...\\\"),r.maxIterations=B(i.maxIterations,2);var o=r.minChar=B(i.minChar,0);r.cnCharWidth=Ni(\\\"国\\\",e);var a=r.ascCharWidth=Ni(\\\"a\\\",e);r.placeholder=B(i.placeholder,\\\"\\\");for(var s=t=Math.max(0,t-1),l=0;o>l&&s>=a;l++)s-=a;var u=Ni(n,e);return u>s&&(n=\\\"\\\",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function So(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return\\\"\\\";var o=Ni(t,i);if(n>=o)return t;for(var a=0;;a++){if(r>=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Mo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Ni(t,i)}return\\\"\\\"===t&&(t=e.placeholder),t}function Mo(t,e,n,i){for(var r=0,o=0,a=t.length;a>o&&e>r;o++){var s=t.charCodeAt(o);r+=s>=0&&127>=s?n:i}return o}function Io(t,e){null!=t&&(t+=\\\"\\\");var n,i=e.overflow,r=e.padding,o=e.font,a=\\\"truncate\\\"===i,s=Fi(o),l=B(e.lineHeight,s),u=!!e.backgroundColor,h=\\\"truncate\\\"===e.lineOverflow,c=e.width;n=null==c||\\\"break\\\"!==i&&\\\"breakAll\\\"!==i?t?t.split(\\\"\\\\n\\\"):[]:t?ko(t,e.font,c,\\\"breakAll\\\"===i,0).lines:[];var p=n.length*l,d=B(e.height,p);if(p>d&&h){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=wo(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;yu&&Co(i,t.substring(u,h),e,l),Co(i,r[2],e,l,r[1]),u=dO.lastIndex}ua){b>0?(m.tokens=m.tokens.slice(0,b),n(m,_,x),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var D=S.width,A=null==D||\\\"auto\\\"===D;if(\\\"string\\\"==typeof D&&\\\"%\\\"===D.charAt(D.length-1))w.percentWidth=D,c.push(w),w.contentWidth=Ni(w.text,T);else{if(A){var k=S.backgroundColor,L=k&&k.image;L&&(L=vo(L),_o(L)&&(w.width=Math.max(w.width,L.width*C/L.height)))}var P=g&&null!=o?o-_:null;null!=P&&PP?(w.text=\\\"\\\",w.width=w.contentWidth=0):(w.text=bo(w.text,P-I,T,e.ellipsis,{minChar:e.truncateMinChar}),w.width=w.contentWidth=Ni(w.text,T)):w.contentWidth=Ni(w.text,T)}w.width+=I,_+=w.width,S&&(x=Math.max(x,w.lineHeight))}n(m,_,x)}i.outerWidth=i.width=B(o,d),i.outerHeight=i.height=B(a,p),i.contentHeight=p,i.contentWidth=d,f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(var v=0;v0&&f+i.accumWidth>i.width&&(o=e.split(\\\"\\\\n\\\"),c=!0),i.accumWidth=f}else{var g=ko(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split(\\\"\\\\n\\\");for(var y=0;y=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}function Ao(t){return Do(t)?vO[t]?!0:!1:!0}function ko(t,e,n,i,r){for(var o=[],a=[],s=\\\"\\\",l=\\\"\\\",u=0,h=0,c=0;cn:r+h+d>n)?h?(s||l)&&(f?(s||(s=l,l=\\\"\\\",u=0,h=u),o.push(s),a.push(h-u),l+=p,u+=d,s=\\\"\\\",h=u):(l&&(s+=l,l=\\\"\\\",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l=\\\"\\\",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s=\\\"\\\",l=\\\"\\\",u=0,h=0}return o.length||s||(s=t,l=\\\"\\\",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}function Lo(t,e,n){return MO.copy(t.getBoundingRect()),t.transform&&MO.applyTransform(t.transform),IO.width=e,IO.height=n,!MO.intersect(IO)}function Po(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;ld;d++){var f=c(t,n,r,a,RO[d]);l[0]=TO(f,l[0]),u[0]=CO(f,u[0])}p=h(e,i,o,s,NO);for(var d=0;p>d;d++){var g=c(e,i,o,s,NO[d]);l[1]=TO(g,l[1]),u[1]=CO(g,u[1])}l[0]=TO(t,l[0]),u[0]=CO(t,u[0]),l[0]=TO(a,l[0]),u[0]=CO(a,u[0]),l[1]=TO(e,l[1]),u[1]=CO(e,u[1]),l[1]=TO(s,l[1]),u[1]=CO(s,u[1])}function No(t,e,n,i,r,o,a,s){var l=bn,u=mn,h=CO(TO(l(t,n,r),1),0),c=CO(TO(l(e,i,o),1),0),p=u(t,n,r,h),d=u(e,i,o,c);a[0]=TO(t,r,p),a[1]=TO(e,o,d),s[0]=CO(t,r,p),s[1]=CO(e,o,d)}function Eo(t,e,n,i,r,o,a,s,l){var u=me,h=xe,c=Math.abs(r-o);if(1e-4>c%kO&&c>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(LO[0]=AO(r)*n+t,LO[1]=DO(r)*i+e,PO[0]=AO(o)*n+t,PO[1]=DO(o)*i+e,u(s,LO,PO),h(l,LO,PO),r%=kO,0>r&&(r+=kO),o%=kO,0>o&&(o+=kO),r>o&&!a?o+=kO:o>r&&a&&(r+=kO),a){var p=o;o=r,r=p}for(var d=0;o>d;d+=Math.PI/2)d>r&&(OO[0]=AO(d)*n+t,OO[1]=DO(d)*i+e,u(s,OO,s),h(l,OO,l))}function zo(t){var e=Math.round(t/jO*1e8)/1e8;return e%2*jO}function Bo(t,e){var n=zo(t[0]);0>n&&(n+=qO);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=qO?r=n+qO:e&&n-r>=qO?r=n-qO:!e&&n>r?r=n+(qO-zo(n-r)):e&&r>n&&(r=n-(qO-zo(r-n))),t[0]=n,t[1]=r}function Vo(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>i+s||e-s>a&&i-s>a||o>t+s&&o>n+s||t-s>o&&n-s>o)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var h=l*o-a+u,c=h*h/(l*l+1);return s/2*s/2>=c}function Fo(t,e,n,i,r,o,a,s,l,u,h){if(0===l)return!1;var c=l;if(h>e+c&&h>i+c&&h>o+c&&h>s+c||e-c>h&&i-c>h&&o-c>h&&s-c>h||u>t+c&&u>n+c&&u>r+c&&u>a+c||t-c>u&&n-c>u&&r-c>u&&a-c>u)return!1;var p=yn(t,e,n,i,r,o,a,s,u,h,null);return c/2>=p}function Go(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||e-u>l&&i-u>l&&o-u>l||s>t+u&&s>n+u&&s>r+u||t-u>s&&n-u>s&&r-u>s)return!1;var h=Sn(t,e,n,i,r,o,s,l,null);return u/2>=h}function Wo(t){return t%=QO,0>t&&(t+=QO),t}function Ho(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var h=Math.sqrt(s*s+l*l);if(h-u>n||n>h+u)return!1;if(Math.abs(i-r)%tR<1e-4)return!0;if(o){var c=i;i=Wo(r),r=Wo(c)}else i=Wo(i),r=Wo(r);i>r&&(r+=tR);var p=Math.atan2(l,s);return 0>p&&(p+=tR),p>=i&&r>=p||p+tR>=i&&r>=p+tR}function Yo(t,e,n,i,r,o){if(o>e&&o>i||e>o&&i>o)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=e>i?1:-1;(1===a||0===a)&&(s=e>i?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}function Xo(t,e){return Math.abs(t-e)e&&u>i&&u>o&&u>s||e>u&&i>u&&o>u&&s>u)return 0;var h=dn(e,i,o,s,u,rR);if(0===h)return 0;for(var c=0,p=-1,d=void 0,f=void 0,g=0;h>g;g++){var y=rR[g],v=0===y||1===y?.5:1,m=cn(t,n,r,a,y);l>m||(0>p&&(p=fn(e,i,o,s,oR),oR[1]1&&Uo(),d=cn(e,i,o,s,oR[0]),p>1&&(f=cn(e,i,o,s,oR[1]))),c+=2===p?yd?v:-v:yf?v:-v:f>s?v:-v:yd?v:-v:d>s?v:-v)}return c}function jo(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||e>s&&i>s&&o>s)return 0;var l=_n(e,i,o,s,rR);if(0===l)return 0;var u=bn(e,i,o);if(u>=0&&1>=u){for(var h=0,c=mn(e,i,o,u),p=0;l>p;p++){var d=0===rR[p]||1===rR[p]?.5:1,f=mn(t,n,r,rR[p]);a>f||(h+=rR[p]c?d:-d:c>o?d:-d)}return h}var d=0===rR[0]||1===rR[0]?.5:1,f=mn(t,n,r,rR[0]);return a>f?0:e>o?d:-d}function qo(t,e,n,i,r,o,a,s){if(s-=e,s>n||-n>s)return 0;var l=Math.sqrt(n*n-s*s);rR[0]=-l,rR[1]=l;var u=Math.abs(i-r);if(1e-4>u)return 0;if(u>=nR-1e-4){i=0,r=nR;var h=o?1:-1;return a>=rR[0]+t&&a<=rR[1]+t?h:0}if(i>r){var c=i;i=r,r=c}0>i&&(i+=nR,r+=nR);for(var p=0,d=0;2>d;d++){var f=rR[d];if(f+t>a){var g=Math.atan2(s,f),h=o?1:-1;0>g&&(g=nR+g),(g>=i&&r>=g||g+nR>=i&&r>=g+nR)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Ko(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,h=0,c=0,p=0,d=0,f=0;l>f;){var g=s[f++],y=1===f;switch(g===eR.M&&f>1&&(n||(u+=Yo(h,c,p,d,i,r))),y&&(h=s[f],c=s[f+1],p=h,d=c),g){case eR.M:p=s[f++],d=s[f++],h=p,c=d;break;case eR.L:if(n){if(Vo(h,c,s[f],s[f+1],e,i,r))return!0}else u+=Yo(h,c,s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case eR.C:if(n){if(Fo(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Zo(h,c,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case eR.Q:if(n){if(Go(h,c,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=jo(h,c,s[f++],s[f++],s[f],s[f+1],i,r)||0;h=s[f++],c=s[f++];break;case eR.A:var v=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);o=Math.cos(b)*x+v,a=Math.sin(b)*_+m,y?(p=o,d=a):u+=Yo(h,c,o,a,i,r);var M=(i-v)*_/x+v;if(n){if(Ho(v,m,_,b,b+w,S,e,M,r))return!0}else u+=qo(v,m,_,b,b+w,S,M,r);h=Math.cos(b+w)*x+v,c=Math.sin(b+w)*_+m;break;case eR.R:p=h=s[f++],d=c=s[f++];var I=s[f++],T=s[f++];if(o=p+I,a=d+T,n){if(Vo(p,d,o,d,e,i,r)||Vo(o,d,o,a,e,i,r)||Vo(o,a,p,a,e,i,r)||Vo(p,a,p,d,e,i,r))return!0}else u+=Yo(o,d,o,a,i,r),u+=Yo(p,a,p,d,i,r);break;case eR.Z:if(n){if(Vo(h,c,p,d,e,i,r))return!0}else u+=Yo(h,c,p,d,i,r);h=p,c=d}}return n||Xo(c,d)||(u+=Yo(h,c,p,d,i,r)||0),0!==u}function $o(t,e,n){return Ko(t,0,!1,e,n)}function Jo(t,e,n,i){return Ko(t,e,!0,n,i)}function Qo(t){return!!(t&&\\\"string\\\"!=typeof t&&t.width&&t.height)}function ta(t,e){var n,i,r,o,a=e.x,s=e.y,l=e.width,u=e.height,h=e.r;0>l&&(a+=l,l=-l),0>u&&(s+=u,u=-u),\\\"number\\\"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0;var c;n+i>l&&(c=n+i,n*=l/c,i*=l/c),r+o>l&&(c=r+o,r*=l/c,o*=l/c),i+r>u&&(c=i+r,i*=u/c,r*=u/c),n+o>u&&(c=n+o,n*=u/c,o*=u/c),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.arc(a+l-i,s+i,i,-Math.PI/2,0),t.lineTo(a+l,s+u-r),0!==r&&t.arc(a+l-r,s+u-r,r,0,Math.PI/2),t.lineTo(a+o,s+u),0!==o&&t.arc(a+o,s+u-o,o,Math.PI/2,Math.PI),t.lineTo(a,s+n),0!==n&&t.arc(a+n,s+n,n,Math.PI,1.5*Math.PI)}function ea(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(gR(2*i)===gR(2*r)&&(t.x1=t.x2=ia(i,s,!0)),gR(2*o)===gR(2*a)&&(t.y1=t.y2=ia(o,s,!0)),t):t}}function na(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ia(i,s,!0),t.y=ia(r,s,!0),t.width=Math.max(ia(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ia(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ia(t,e,n){if(!e)return t;var i=gR(2*t);return(i+gR(e))%2===0?i/2:(i+(n?1:-1))/2}function ra(t){return\\\"string\\\"!=typeof t||-1===t.indexOf(\\\"px\\\")&&-1===t.indexOf(\\\"rem\\\")&&-1===t.indexOf(\\\"em\\\")?isNaN(+t)?hk+\\\"px\\\":t+\\\"px\\\":t}function oa(t,e){for(var n=0;n=e||\\\"transparent\\\"===t||\\\"none\\\"===t?null:t.image||t.colorStops?\\\"#000\\\":t}function ha(t){return null==t||\\\"none\\\"===t?null:t.image||t.colorStops?\\\"#000\\\":t}function ca(t,e,n){return\\\"right\\\"===e?t-n[1]:\\\"center\\\"===e?t+n[3]/2-n[1]/2:t+n[3]}function pa(t){var e=t.text;return null!=e&&(e+=\\\"\\\"),e}function da(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function fa(t){return null!=t&&\\\"none\\\"!==t}function ga(t){if(T(t)){var e=YR.get(t);return e||(e=Vn(t,-.1),YR.put(t,e)),e}if(O(t)){var n=h({},t);return n.colorStops=v(t.colorStops,function(t){return{offset:t.offset,color:Vn(t.color,-.1)}}),n}return t}function ya(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function va(t){ya(t,\\\"emphasis\\\",RR)}function ma(t){t.hoverState===RR&&ya(t,\\\"normal\\\",PR)}function xa(t){ya(t,\\\"blur\\\",OR)}function _a(t){t.hoverState===OR&&ya(t,\\\"normal\\\",PR)}function ba(t){t.selected=!0}function wa(t){t.selected=!1}function Sa(t,e,n){e(t,n)}function Ma(t,e,n){Sa(t,e,n),t.isGroup&&t.traverse(function(t){Sa(t,e,n)})}function Ia(t,e){switch(e){case\\\"emphasis\\\":t.hoverState=RR;break;case\\\"normal\\\":t.hoverState=PR;break;case\\\"blur\\\":t.hoverState=OR;break;case\\\"select\\\":t.selected=!0}}function Ta(t,e,n,i){for(var r=t.style,o={},a=0;a=0,o=!1;if(t instanceof uR){var a=kR(t),s=r?a.selectFill||a.normalFill:a.normalFill,l=r?a.selectStroke||a.normalStroke:a.normalStroke;if(fa(s)||fa(l)){i=i||{};var u=i.style||{};\\\"inherit\\\"===u.fill?(o=!0,i=h({},i),u=h({},u),u.fill=s):!fa(u.fill)&&fa(s)?(o=!0,i=h({},i),u=h({},u),u.fill=ga(s)):!fa(u.stroke)&&fa(l)&&(o||(i=h({},i),u=h({},u)),u.stroke=ga(l)),i.style=u}}if(i&&null==i.z2){o||(i=h({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:zR)}return i}function Da(t,e,n){if(n&&null==n.z2){n=h({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:BR)}return n}function Aa(t,e,n){var i=p(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:Ta(t,[\\\"opacity\\\"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=h({},n),a=h({opacity:i?r:.1*o.opacity},a),n.style=a),n}function ka(t,e){var n=this.states[t];if(this.style){if(\\\"emphasis\\\"===t)return Ca(this,t,e,n);if(\\\"blur\\\"===t)return Aa(this,t,n);if(\\\"select\\\"===t)return Da(this,t,n)}return n}function La(t){t.stateProxy=ka;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ka),n&&(n.stateProxy=ka)}function Pa(t,e){!Fa(t,e)&&!t.__highByOuter&&Ma(t,va)}function Oa(t,e){!Fa(t,e)&&!t.__highByOuter&&Ma(t,ma)}function Ra(t,e){t.__highByOuter|=1<<(e||0),Ma(t,va)}function Na(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Ma(t,ma)}function Ea(t){Ma(t,xa)}function za(t){Ma(t,_a)}function Ba(t){Ma(t,ba)}function Va(t){Ma(t,wa)}function Fa(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ga(t){var e=t.getModel(),n=[],i=[];e.eachComponent(function(e,r){var o=LR(r),a=\\\"series\\\"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse(function(t){_a(t)}),a&&n.push(r)),o.isBlured=!1}),y(i,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Wa(t,e,n,i){function r(t,e){for(var n=0;nl;)a=r.getItemGraphicEl(l++);if(a){var u=TR(a);Wa(i,u.focus,u.blurScope,n)}else{var h=t.get([\\\"emphasis\\\",\\\"focus\\\"]),c=t.get([\\\"emphasis\\\",\\\"blurScope\\\"]);null!=h&&Wa(i,h,c,n)}}}function Xa(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||\\\"series\\\"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function $a(t,e,n){ns(t,!0),Ma(t,La),ts(t,e,n)}function Ja(t){ns(t,!1)}function Qa(t,e,n,i){i?Ja(t):$a(t,e,n)}function ts(t,e,n){var i=TR(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}function es(t,e,n,i){n=n||\\\"itemStyle\\\";for(var r=0;r=DR&&(e=AR[t]=DR++),e}function as(t){var e=t.type;return e===GR||e===WR||e===HR}function ss(t){var e=t.type;return e===VR||e===FR}function ls(t){var e=kR(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}function us(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=ZR.M,c=ZR.C,p=ZR.L,d=ZR.R,f=ZR.A,g=ZR.Q;for(r=0,o=0;u>r;){switch(n=l[r++],o=r,i=0,n){case h:i=1;break;case p:i=1;break;case c:i=3;break;case g:i=2;break;case f:var y=e[4],v=e[5],m=qR(e[0]*e[0]+e[1]*e[1]),x=qR(e[2]*e[2]+e[3]*e[3]),_=KR(-e[1]/x,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=x,l[r++]+=v,l[r++]*=m,l[r++]*=x,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case d:s[0]=l[r++],s[1]=l[r++],ve(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],ve(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;i>a;a++){var b=jR[a];b[0]=l[r++],b[1]=l[r++],ve(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}function hs(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function cs(t,e){return(t[0]*e[0]+t[1]*e[1])/(hs(t)*hs(e))}function ps(t,e){return(t[0]*e[1]1&&(a*=$R(f),s*=$R(f));var g=(r===o?-1:1)*$R((a*a*s*s-a*a*d*d-s*s*p*p)/(a*a*d*d+s*s*p*p))||0,y=g*a*d/s,v=g*-s*p/a,m=(t+n)/2+QR(c)*y-JR(c)*v,x=(e+i)/2+JR(c)*y+QR(c)*v,_=ps([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=ps(b,w);if(cs(b,w)<=-1&&(S=tN),cs(b,w)>=1&&(S=0),0>S){var M=Math.round(S/tN*1e6)/1e6;S=2*tN+M%2*tN}h.addData(u,m,x,a,s,_,S,c,o)}function fs(t){var e=new JO;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=JO.CMD,l=t.match(eN);if(!l)return e;for(var u=0;ug;g++)d[g]=parseFloat(d[g]);for(var y=0;f>y;){var v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=i,I=r,T=void 0,C=void 0;\\nswitch(c){case\\\"l\\\":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"L\\\":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"m\\\":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c=\\\"l\\\";break;case\\\"M\\\":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c=\\\"L\\\";break;case\\\"h\\\":i+=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"H\\\":i=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"v\\\":r+=d[y++],p=s.L,e.addData(p,i,r);break;case\\\"V\\\":r=d[y++],p=s.L,e.addData(p,i,r);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],r=d[y-1];break;case\\\"c\\\":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case\\\"S\\\":v=i,m=r,T=e.len(),C=e.data,n===s.C&&(v+=i-C[T-4],m+=r-C[T-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],r=d[y++],e.addData(p,v,m,M,I,i,r);break;case\\\"s\\\":v=i,m=r,T=e.len(),C=e.data,n===s.C&&(v+=i-C[T-4],m+=r-C[T-3]),p=s.C,M=i+d[y++],I=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,v,m,M,I,i,r);break;case\\\"Q\\\":M=d[y++],I=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,M,I,i,r);break;case\\\"q\\\":M=d[y++]+i,I=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,M,I,i,r);break;case\\\"T\\\":v=i,m=r,T=e.len(),C=e.data,n===s.Q&&(v+=i-C[T-4],m+=r-C[T-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,v,m,i,r);break;case\\\"t\\\":v=i,m=r,T=e.len(),C=e.data,n===s.Q&&(v+=i-C[T-4],m+=r-C[T-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,v,m,i,r);break;case\\\"A\\\":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],M=i,I=r,i=d[y++],r=d[y++],p=s.A,ds(M,I,i,r,w,S,x,_,b,p,e);break;case\\\"a\\\":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],M=i,I=r,i+=d[y++],r+=d[y++],p=s.A,ds(M,I,i,r,w,S,x,_,b,p,e)}}(\\\"z\\\"===c||\\\"Z\\\"===c)&&(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}function gs(t){return null!=t.setData}function ys(t,e){var n=fs(t),i=h({},e);return i.buildPath=function(t){if(gs(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){us(n,t),this.dirtyShape()},i}function vs(t,e){return new iN(ys(t,e))}function ms(t,n){var i=ys(t,n),r=function(t){function n(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return e(n,t),n}(iN);return r}function xs(t,e){for(var n=[],i=t.length,r=0;i>r;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new uR(e);return a.createPathProxy(),a.buildPath=function(t){if(gs(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function _s(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;return mN>p*p?void 0:(p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u])}function bs(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/gN(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,f=n+h,g=i+c,y=(p+f)/2,v=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=r-o,w=p*g-f*d,S=(0>x?-1:1)*gN(yN(0,b*b*_-w*w)),M=(w*x-m*S)/_,I=(-w*m-x*S)/_,T=(w*x+m*S)/_,C=(-w*m+x*S)/_,D=M-y,A=I-v,k=T-y,L=C-v;return D*D+A*A>k*k+L*L&&(M=T,I=C),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}function ws(t){var e;if(M(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ss(t,e){var n,i=yN(e.r,0),r=yN(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var h=e.cx,c=e.cy,p=!!e.clockwise,d=fN(u-l),f=d>uN&&d%uN;if(f>mN&&(d=f),i>mN)if(d>uN-mN)t.moveTo(h+i*cN(l),c+i*hN(l)),t.arc(h,c,i,l,u,!p),r>mN&&(t.moveTo(h+r*cN(u),c+r*hN(u)),t.arc(h,c,r,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,T=void 0,C=void 0,D=void 0,A=void 0,k=void 0,L=i*cN(l),P=i*hN(l),O=r*cN(u),R=r*hN(u),N=d>mN;if(N){var E=e.cornerRadius;E&&(n=ws(E),g=n[0],y=n[1],v=n[2],m=n[3]);var z=fN(i-r)/2;if(x=vN(z,v),_=vN(z,m),b=vN(z,g),w=vN(z,y),I=S=yN(x,_),T=M=yN(b,w),(S>mN||M>mN)&&(C=i*cN(u),D=i*hN(u),A=r*cN(l),k=r*hN(l),lN>d)){var B=_s(L,P,A,k,C,D,O,R);if(B){var V=L-B[0],F=P-B[1],G=C-B[0],W=D-B[1],H=1/hN(pN((V*G+F*W)/(gN(V*V+F*F)*gN(G*G+W*W)))/2),Y=gN(B[0]*B[0]+B[1]*B[1]);I=vN(S,(i-Y)/(H+1)),T=vN(M,(r-Y)/(H-1))}}}if(N)if(I>mN){var X=vN(v,I),U=vN(m,I),Z=bs(A,k,L,P,i,X,p),j=bs(C,D,O,R,i,U,p);t.moveTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),S>I&&X===U?t.arc(h+Z.cx,c+Z.cy,I,dN(Z.y0,Z.x0),dN(j.y0,j.x0),!p):(X>0&&t.arc(h+Z.cx,c+Z.cy,X,dN(Z.y0,Z.x0),dN(Z.y1,Z.x1),!p),t.arc(h,c,i,dN(Z.cy+Z.y1,Z.cx+Z.x1),dN(j.cy+j.y1,j.cx+j.x1),!p),U>0&&t.arc(h+j.cx,c+j.cy,U,dN(j.y1,j.x1),dN(j.y0,j.x0),!p))}else t.moveTo(h+L,c+P),t.arc(h,c,i,l,u,!p);else t.moveTo(h+L,c+P);if(r>mN&&N)if(T>mN){var X=vN(g,T),U=vN(y,T),Z=bs(O,R,C,D,r,-U,p),j=bs(L,P,A,k,r,-X,p);t.lineTo(h+Z.cx+Z.x0,c+Z.cy+Z.y0),M>T&&X===U?t.arc(h+Z.cx,c+Z.cy,T,dN(Z.y0,Z.x0),dN(j.y0,j.x0),!p):(U>0&&t.arc(h+Z.cx,c+Z.cy,U,dN(Z.y0,Z.x0),dN(Z.y1,Z.x1),!p),t.arc(h,c,r,dN(Z.cy+Z.y1,Z.cx+Z.x1),dN(j.cy+j.y1,j.cx+j.x1),p),X>0&&t.arc(h+j.cx,c+j.cy,X,dN(j.y1,j.x1),dN(j.y0,j.x0),!p))}else t.lineTo(h+O,c+R),t.arc(h,c,r,u,l,p);else t.lineTo(h+O,c+R)}else t.moveTo(h,c);t.closePath()}}}function Ms(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;d>p;p++)me(a,a,t[p]),xe(s,s,t[p]);me(a,a,i[0]),xe(s,s,i[1])}for(var p=0,d=t.length;d>p;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(ee(t[p]));continue}r=t[p-1],o=t[p+1]}oe(u,o,r),ce(u,u,e);var g=de(f,r),y=de(f,o),v=g+y;0!==v&&(g/=v,y/=v),ce(h,u,-g),ce(c,u,y);var m=ie([],f,h),x=ie([],f,c);i&&(xe(m,m,a),me(m,m,s),xe(x,x,a),me(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}function Is(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=Ms(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;(n?a:a-1)>s;s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;c>s;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}function Ts(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?pn:cn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?pn:cn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?xn:mn)(t.x1,t.cpx1,t.x2,e),(n?xn:mn)(t.y1,t.cpy1,t.y2,e)]}function Cs(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=\\\"update\\\"===t;if(s){var u=void 0,h=void 0,c=void 0;i?(u=B(i.duration,200),h=B(i.easing,\\\"cubicOut\\\"),c=0):(u=e.getShallow(l?\\\"animationDurationUpdate\\\":\\\"animationDuration\\\"),h=e.getShallow(l?\\\"animationEasingUpdate\\\":\\\"animationEasing\\\"),c=e.getShallow(l?\\\"animationDelayUpdate\\\":\\\"animationDelay\\\")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(c=o.delay)),I(c)&&(c=c(n,r)),I(u)&&(u=u(n));var p={duration:u||0,delay:c,easing:h};return p}return null}function Ds(t,e,n,i,r,o,a){var s,l=!1;I(r)?(a=o,o=r,r=null):A(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u=\\\"leave\\\"===t;u||e.stopAnimation(\\\"leave\\\");var h=Cs(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var c=h.duration,p=h.delay,d=h.easing,f={duration:c,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function As(t,e,n,i,r,o){Ds(\\\"update\\\",t,e,n,i,r,o)}function ks(t,e,n,i,r,o){Ds(\\\"enter\\\",t,e,n,i,r,o)}function Ls(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?\\\"right\\\":\\\"left\\\":o[1]>0?\\\"bottom\\\":\\\"top\\\"}function qs(t){return!t.isGroup}function Ks(t){return null!=t.shape}function $s(t,e,n){function i(t){var e={};return t.traverse(function(t){qs(t)&&t.anid&&(e[t.anid]=t)}),e}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ks(t)&&(e.shape=h({},t.shape)),e}if(t&&e){var o=i(t);e.traverse(function(t){if(qs(t)&&t.anid){var e=o[t.anid];if(e){var i=r(t);t.attr(r(e)),As(t,i,n,TR(t).dataIndex)}}})}}function Js(t,e){return v(t,function(t){var n=t[0];n=ZN(n,e.x),n=jN(n,e.x+e.width);var i=t[1];return i=ZN(i,e.y),i=jN(i,e.y+e.height),[n,i]})}function Qs(t,e){var n=ZN(t.x,e.x),i=jN(t.x+t.width,e.x+e.width),r=ZN(t.y,e.y),o=jN(t.y+t.height,e.y+e.height);return i>=n&&o>=r?{x:n,y:r,width:i-n,height:o-r}:void 0}function tl(t,e,n){var i=h({rectHover:!0},e),r=i.style={strokeNoScale:!0};return n=n||{x:-1,y:-1,width:2,height:2},t?0===t.indexOf(\\\"image://\\\")?(r.image=t.slice(8),c(r,n),new fR(i)):Fs(t.replace(\\\"path://\\\",\\\"\\\"),i,n,\\\"center\\\"):void 0}function el(t,e,n,i,r){for(var o=0,a=r[r.length-1];og||g>1)return!1;var y=il(d,f,h,c)/p;return 0>y||y>1?!1:!0}function il(t,e,n,i){return t*i-n*e}function rl(t){return 1e-6>=t&&t>=-1e-6}function ol(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=T(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:[\\\"name\\\"]};s[o+\\\"Index\\\"]=a;var l=t.formatterParamsExtra;l&&y(b(l),function(t){$(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=TR(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:c({content:i,formatterParams:s},r)}}function al(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function sl(t,e){if(t)if(M(t))for(var n=0;n=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,i,r){function o(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function a(t){h[t]=!0,o(t)}if(t.length){var s=n(e),l=s.graph,u=s.noEntryList,h={};for(y(t,function(t){h[t]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(i.call(r,c,p.originalDeps.slice()),delete h[c]),y(p.successor,d?a:o)}y(h,function(){var t=\\\"\\\";throw new Error(t)})}}}function Sl(t,e){return l(l({},t,!0),e,!0)}function Ml(t,e){t=t.toUpperCase(),SE[t]=new gE(e),wE[t]=e}function Il(t){if(T(t)){var e=wE[t.toUpperCase()]||{};return t===xE||t===_E?s(e):l(s(e),s(wE[bE]),!1)}return l(s(t),s(wE[bE]),!1)}function Tl(t){return SE[t]}function Cl(){return SE[bE]}function Dl(t,e){return t+=\\\"\\\",\\\"0000\\\".substr(0,e-t.length)+t}function Al(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 kl(t){return t===Al(t)}function Ll(t){switch(t){case\\\"year\\\":case\\\"month\\\":return\\\"day\\\";case\\\"millisecond\\\":return\\\"millisecond\\\";default:return\\\"second\\\"}}function Pl(t,e,n,i){var r=yr(t),o=r[El(n)](),a=r[zl(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Bl(n)](),u=r[\\\"get\\\"+(n?\\\"UTC\\\":\\\"\\\")+\\\"Day\\\"](),h=r[Vl(n)](),c=(h-1)%12+1,p=r[Fl(n)](),d=r[Gl(n)](),f=r[Wl(n)](),g=i instanceof gE?i:Tl(i||ME)||Cl(),y=g.getModel(\\\"time\\\"),v=y.get(\\\"month\\\"),m=y.get(\\\"monthAbbr\\\"),x=y.get(\\\"dayOfWeek\\\"),_=y.get(\\\"dayOfWeekAbbr\\\");return(e||\\\"\\\").replace(/{yyyy}/g,o+\\\"\\\").replace(/{yy}/g,Dl(o%100+\\\"\\\",2)).replace(/{Q}/g,s+\\\"\\\").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Dl(a,2)).replace(/{M}/g,a+\\\"\\\").replace(/{dd}/g,Dl(l,2)).replace(/{d}/g,l+\\\"\\\").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+\\\"\\\").replace(/{HH}/g,Dl(h,2)).replace(/{H}/g,h+\\\"\\\").replace(/{hh}/g,Dl(c+\\\"\\\",2)).replace(/{h}/g,c+\\\"\\\").replace(/{mm}/g,Dl(p,2)).replace(/{m}/g,p+\\\"\\\").replace(/{ss}/g,Dl(d,2)).replace(/{s}/g,d+\\\"\\\").replace(/{SSS}/g,Dl(f,3)).replace(/{S}/g,f+\\\"\\\")}function Ol(t,e,n,i,r){var o=null;if(T(n))o=n;else if(I(n))o=n(t.value,e,{level:t.level});else{var a=h({},kE);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M(o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=Math.min(d,o.length-1),o=o[d]}}return Pl(new Date(t.value),o,r,i)}function Rl(t,e){var n=yr(t),i=n[zl(e)]()+1,r=n[Bl(e)](),o=n[Vl(e)](),a=n[Fl(e)](),s=n[Gl(e)](),l=n[Wl(e)](),u=0===l,h=u&&0===s,c=h&&0===a,p=c&&0===o,d=p&&1===r,f=d&&1===i;return f?\\\"year\\\":d?\\\"month\\\":p?\\\"day\\\":c?\\\"hour\\\":h?\\\"minute\\\":u?\\\"second\\\":\\\"millisecond\\\"}function Nl(t,e,n){var i=D(t)?yr(t):t;switch(e=e||Rl(t,n)){case\\\"year\\\":return i[El(n)]();case\\\"half-year\\\":return i[zl(n)]()>=6?1:0;case\\\"quarter\\\":return Math.floor((i[zl(n)]()+1)/4);case\\\"month\\\":return i[zl(n)]();case\\\"day\\\":return i[Bl(n)]();case\\\"half-day\\\":return i[Vl(n)]()/24;case\\\"hour\\\":return i[Vl(n)]();case\\\"minute\\\":return i[Fl(n)]();case\\\"second\\\":return i[Gl(n)]();case\\\"millisecond\\\":return i[Wl(n)]()}}function El(t){return t?\\\"getUTCFullYear\\\":\\\"getFullYear\\\"}function zl(t){return t?\\\"getUTCMonth\\\":\\\"getMonth\\\"}function Bl(t){return t?\\\"getUTCDate\\\":\\\"getDate\\\"}function Vl(t){return t?\\\"getUTCHours\\\":\\\"getHours\\\"}function Fl(t){return t?\\\"getUTCMinutes\\\":\\\"getMinutes\\\"}function Gl(t){return t?\\\"getUTCSeconds\\\":\\\"getSeconds\\\"}function Wl(t){return t?\\\"getUTCMilliseconds\\\":\\\"getMilliseconds\\\"}function Hl(t){return t?\\\"setUTCFullYear\\\":\\\"setFullYear\\\"}function Yl(t){return t?\\\"setUTCMonth\\\":\\\"setMonth\\\"}function Xl(t){return t?\\\"setUTCDate\\\":\\\"setDate\\\"}function Ul(t){return t?\\\"setUTCHours\\\":\\\"setHours\\\"}function Zl(t){return t?\\\"setUTCMinutes\\\":\\\"setMinutes\\\"}function jl(t){return t?\\\"setUTCSeconds\\\":\\\"setSeconds\\\"}function ql(t){return t?\\\"setUTCMilliseconds\\\":\\\"setMilliseconds\\\"}function Kl(t,e,n,i,r,o,a,s){var l=new wR({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?\\\"truncate\\\":null,lineHeight:s}});return l.getBoundingRect()}function $l(t){if(!Sr(t))return T(t)?t:\\\"-\\\";var e=(t+\\\"\\\").split(\\\".\\\");return e[0].replace(/(\\\\d{1,3})(?=(?:\\\\d{3})+(?!\\\\d))/g,\\\"$1,\\\")+(e.length>1?\\\".\\\"+e[1]:\\\"\\\")}function Jl(t,e){return t=(t||\\\"\\\").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}function Ql(t,e,n){function i(t){return t&&H(t)?t:\\\"-\\\"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o=\\\"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}\\\",a=\\\"time\\\"===e,s=t instanceof Date;if(a||s){var l=a?yr(t):t;if(!isNaN(+l))return Pl(l,o,n);if(s)return\\\"-\\\"}if(\\\"ordinal\\\"===e)return C(t)?i(t):D(t)&&r(t)?t+\\\"\\\":\\\"-\\\";var u=wr(t);return r(u)?$l(u):C(t)?i(t):\\\"boolean\\\"==typeof t?t+\\\"\\\":\\\"-\\\"}function tu(t,e,n){M(e)||(e=[e]);var i=e.length;if(!i)return\\\"\\\";for(var r=e[0].$vars||[],o=0;os;s++)for(var l=0;l':'';var a=n.markerId||\\\"markerX\\\";return{renderMode:o,content:\\\"{\\\"+a+\\\"|} \\\",style:\\\"subItem\\\"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function iu(t,e,n){(\\\"week\\\"===t||\\\"month\\\"===t||\\\"quarter\\\"===t||\\\"half-year\\\"===t||\\\"year\\\"===t)&&(t=\\\"MM-dd\\\\nyyyy\\\");var i=yr(e),r=n?\\\"getUTC\\\":\\\"get\\\",o=i[r+\\\"FullYear\\\"](),a=i[r+\\\"Month\\\"]()+1,s=i[r+\\\"Date\\\"](),l=i[r+\\\"Hours\\\"](),u=i[r+\\\"Minutes\\\"](),h=i[r+\\\"Seconds\\\"](),c=i[r+\\\"Milliseconds\\\"]();return t=t.replace(\\\"MM\\\",Dl(a,2)).replace(\\\"M\\\",a).replace(\\\"yyyy\\\",o).replace(\\\"yy\\\",Dl(o%100+\\\"\\\",2)).replace(\\\"dd\\\",Dl(s,2)).replace(\\\"d\\\",s).replace(\\\"hh\\\",Dl(l,2)).replace(\\\"h\\\",l).replace(\\\"mm\\\",Dl(u,2)).replace(\\\"m\\\",u).replace(\\\"ss\\\",Dl(h,2)).replace(\\\"s\\\",h).replace(\\\"SSS\\\",Dl(c,3))}function ru(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ou(t,e){return e=e||\\\"transparent\\\",T(t)?t:A(t)?t.colorStops&&(t.colorStops[0]||{}).color||e:e}function au(t,e){if(\\\"_blank\\\"===e||\\\"blank\\\"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}function su(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if(\\\"horizontal\\\"===t){var g=p.width+(f?-f.x+p.x:0);h=o+g,h>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);c=a+y,c>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),\\\"horizontal\\\"===t?o=h+n:a=c+n)})}function lu(t,e,n){var i=e.width,r=e.height,o=or(t.left,i),a=or(t.top,r),s=or(t.right,i),l=or(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=NE(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function uu(t,e,n){n=NE(n||0);var i=e.width,r=e.height,o=or(t.left,i),a=or(t.top,r),s=or(t.right,i),l=or(t.bottom,r),u=or(t.width,i),h=or(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case\\\"center\\\":o=i/2-u/2-n[3];break;case\\\"right\\\":o=i-u-p}switch(t.top||t.bottom){case\\\"middle\\\":case\\\"center\\\":a=r/2-h/2-n[0];break;case\\\"bottom\\\":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new dL(o+n[3],a+n[0],u,h);return f.margin=n,f}function hu(t,e,n,i,r,o){var a=!r||!r.hv||r.hv[0],s=!r||!r.hv||r.hv[1],l=r&&r.boundingMode||\\\"all\\\";if(o=o||t,o.x=t.x,o.y=t.y,!a&&!s)return!1;var u;if(\\\"raw\\\"===l)u=\\\"group\\\"===t.type?new dL(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();u=u.clone(),u.applyTransform(h)}var p=uu(c({width:u.width,height:u.height},e),n,i),d=a?p.x-u.x:0,f=s?p.y-u.y:0;return\\\"raw\\\"===l?(o.x=d,o.y=f):(o.x+=d,o.y+=f),o===t&&t.markRedraw(),!0}function cu(t,e){return null!=t[FE[e][0]]||null!=t[FE[e][1]]&&null!=t[FE[e][2]]}function pu(t){var e=t.layoutMode||t.constructor.layoutMode;return A(e)?e:e?{type:e}:null}function du(t,e,n){function i(n,i){var a={},l=0,u={},h=0,c=2;if(BE(n,function(e){u[e]=t[e]}),BE(n,function(t){r(e,t)&&(a[t]=u[t]=e[t]),o(a,t)&&l++,o(u,t)&&h++}),s[i])return o(e,n[1])?u[n[2]]=null:o(e,n[2])&&(u[n[1]]=null),u;if(h!==c&&l){if(l>=c)return a;for(var p=0;pi;i++)t.push(e+i)}function r(t){var e=t.dimsDef;return e?e.length:1}var o={},a=_u(e);if(!a||!t)return o;var s,l,u=[],h=[],c=e.ecModel,p=oz(c).datasetMap,d=a.uid+\\\"_\\\"+n.seriesLayoutBy;t=t.slice(),y(t,function(e,n){var i=A(e)?e:t[n]={name:e};\\\"ordinal\\\"===i.type&&null==s&&(s=n,l=r(i)),o[i.name]=[]});var f=p.get(d)||p.set(d,{categoryWayDim:l,valueWayDim:0});return y(t,function(t,e){var n=t.name,a=r(t);if(null==s){var l=f.valueWayDim;i(o[n],l,a),i(h,l,a),f.valueWayDim+=a}else if(s===e)i(o[n],0,a),i(u,0,a);else{var l=f.categoryWayDim;i(o[n],l,a),i(h,l,a),f.categoryWayDim+=a}}),u.length&&(o.itemName=u),h.length&&(o.seriesName=h),o}function xu(t,e,n){var i={},r=_u(t);if(!r)return i;var o,a=e.sourceFormat,s=e.dimensionsDefine;(a===JE||a===QE)&&y(s,function(t,e){\\\"name\\\"===(A(t)?t.name:t)&&(o=e)});var l=function(){function t(t){return null!=t.v&&null!=t.n}for(var i={},r={},l=[],u=0,h=Math.min(5,n);h>u;u++){var c=Su(e.data,a,e.seriesLayoutBy,s,e.startIndex,u);l.push(c);var p=c===rz.Not;if(p&&null==i.v&&u!==o&&(i.v=u),(null==i.n||i.n===i.v||!p&&l[i.n]===rz.Not)&&(i.n=u),t(i)&&l[i.n]!==rz.Not)return i;p||(c===rz.Might&&null==r.v&&u!==o&&(r.v=u),(null==r.n||r.n===r.v)&&(r.n=u))}return t(i)?i:t(r)?r:null}();if(l){i.value=[l.v];var u=null!=o?o:l.n;i.itemName=[u],i.seriesName=[u]}return i}function _u(t){var e=t.get(\\\"data\\\",!0);return e?void 0:Qr(t.ecModel,\\\"dataset\\\",{index:t.get(\\\"datasetIndex\\\",!0),id:t.get(\\\"datasetId\\\",!0)},iO).models[0]}function bu(t){return t.get(\\\"transform\\\",!0)||t.get(\\\"fromTransformResult\\\",!0)?Qr(t.ecModel,\\\"dataset\\\",{index:t.get(\\\"fromDatasetIndex\\\",!0),id:t.get(\\\"fromDatasetId\\\",!0)},iO).models:[]}function wu(t,e){return Su(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Su(t,e,n,i,r,o){function a(t){var e=T(t);return null!=t&&isFinite(t)&&\\\"\\\"!==t?e?rz.Might:rz.Not:e&&\\\"-\\\"!==t?rz.Must:void 0}var s,l=5;if(L(t))return rz.Not;var u,h;if(i){var c=i[o];A(c)?(u=c.name,h=c.type):T(c)&&(u=c)}if(null!=h)return\\\"ordinal\\\"===h?rz.Must:rz.Not;if(e===$E){var p=t;if(n===iz){for(var d=p[o],f=0;f<(d||[]).length&&l>f;f++)if(null!=(s=a(d[r+f])))return s}else for(var f=0;ff;f++){var g=p[r+f];if(g&&null!=(s=a(g[o])))return s}}else if(e===JE){var y=t;if(!u)return rz.Not;for(var f=0;ff;f++){var v=y[f];if(v&&null!=(s=a(v[u])))return s}}else if(e===QE){var m=t;if(!u)return rz.Not;var d=m[u];if(!d||L(d))return rz.Not;for(var f=0;ff;f++)if(null!=(s=a(d[f])))return s}else if(e===KE)for(var x=t,f=0;ff;f++){var v=x[f],_=Lr(v);if(!M(_))return rz.Not;if(null!=(s=a(_[o])))return s}return rz.Not}function Mu(t,e){W(null==az.get(t)&&e),az.set(t,e)}function Iu(t,e,n){var i=az.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}function Tu(t,e,n,i){var r=Ar(t.get([\\\"aria\\\",\\\"decal\\\",\\\"decals\\\"]));return Du(t,lz,r,null,e,n,i)}function Cu(t,e){for(var n=t.length,i=0;n>i;i++)if(t[i].length>e)return t[i];return t[n-1]}function Du(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?Cu(i,a):n;if(h=h||n,h&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}function Au(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}function ku(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Lu(t,e){var n=t.color&&!t.colorLayer;y(e,function(e,i){\\\"colorLayer\\\"===i&&n||HE.hasClass(i)||(\\\"object\\\"==typeof e?t[i]=t[i]?l(t[i],e,!1):s(e):null==t[i]&&(t[i]=e))})}function Pu(t,e,n){if(M(e)){var i=Z();return y(e,function(t){if(null!=t){var e=Wr(t,null);null!=e&&i.set(t,!0)}}),x(n,function(e){return e&&i.get(e[t])})}var r=Wr(e,null);return x(n,function(e){return e&&null!=r&&e[t]===r})}function Ou(t,e){return e.hasOwnProperty(\\\"subType\\\")?x(t,function(t){return t&&t.subType===e.subType}):t}function Ru(t){var e=Z();return t&&y(Ar(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}function Nu(t,e,n){function i(t){y(e,function(e){e(t,n)})}var r,o,a=[],s=t.baseOption,l=t.timeline,u=t.options,h=t.media,c=!!t.media,p=!!(u||l||s&&s.timeline);return s?(o=s,o.timeline||(o.timeline=l)):((p||c)&&(t.options=t.media=null),o=t),c&&M(h)&&y(h,function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))}),i(o),y(u,function(t){return i(t)}),y(a,function(t){return i(t.option)}),{baseOption:o,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function Eu(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return y(t,function(t,e){var n=e.match(Sz);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();zu(i[a],t,o)||(r=!1)}}),r}function zu(t,e,n){return\\\"min\\\"===n?t>=e:\\\"max\\\"===n?e>=t:t===e}function Bu(t,e){return t.join(\\\",\\\")===e.join(\\\",\\\")}function Vu(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Cz.length;i>n;n++){var r=Cz[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?l(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?l(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Fu(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,c(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Gu(t){Fu(t,\\\"itemStyle\\\"),Fu(t,\\\"lineStyle\\\"),Fu(t,\\\"areaStyle\\\"),Fu(t,\\\"label\\\"),Fu(t,\\\"labelLine\\\"),Fu(t,\\\"upperLabel\\\"),Fu(t,\\\"edgeLabel\\\")}function Wu(t,e){var n=Tz(t)&&t[e],i=Tz(n)&&n.textStyle;if(i)for(var r=0,o=eO.length;o>r;r++){var a=eO[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Hu(t){t&&(Gu(t),Wu(t,\\\"label\\\"),t.emphasis&&Wu(t.emphasis,\\\"label\\\"))}function Yu(t){if(Tz(t)){Vu(t),Gu(t),Wu(t,\\\"label\\\"),Wu(t,\\\"upperLabel\\\"),Wu(t,\\\"edgeLabel\\\"),t.emphasis&&(Wu(t.emphasis,\\\"label\\\"),Wu(t.emphasis,\\\"upperLabel\\\"),Wu(t.emphasis,\\\"edgeLabel\\\"));var e=t.markPoint;e&&(Vu(e),Hu(e));var n=t.markLine;n&&(Vu(n),Hu(n));var i=t.markArea;i&&Hu(i);var r=t.data;if(\\\"graph\\\"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!L(o))for(var a=0;a=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,p)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if(\\\"all\\\"===l||\\\"positive\\\"===l&&v>0||\\\"negative\\\"===l&&0>v||\\\"samesign\\\"===l&&c>=0&&v>0||\\\"samesign\\\"===l&&0>=c&&0>v){c=dr(c,v),f=v;break}}}return i[0]=c,i[1]=f,i})})}function oh(t){return t instanceof Lz}function ah(t,e,n){n=n||uh(t);var i=e.seriesLayoutBy,r=hh(t,n,i,e.sourceHeader,e.dimensions),o=new Lz({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:s(e)});return o}function sh(t){return new Lz({data:t,sourceFormat:L(t)?tz:KE})}function lh(t){return new Lz({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:s(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function uh(t){var e=ez;if(L(t))e=tz;else if(M(t)){0===t.length&&(e=$E);for(var n=0,i=t.length;i>n;n++){var r=t[n];if(null!=r){if(M(r)){e=$E;break}if(A(r)){e=JE;break}}}}else if(A(t))for(var o in t)if($(t,o)&&g(t[o])){e=QE;break}return e}function hh(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:ph(r),startIndex:a,dimensionsDetectedCount:o};if(e===$E){var s=t;\\\"auto\\\"===i||null==i?dh(function(t){null!=t&&\\\"-\\\"!==t&&(T(t)?null==a&&(a=1):a=0)},n,s,10):a=D(i)?i:i?1:0,r||1!==a||(r=[],dh(function(t,e){r[e]=null!=t?t+\\\"\\\":\\\"\\\"},n,s,1/0)),o=r?r.length:n===iz?s.length:s[0]?s[0].length:null}else if(e===JE)r||(r=ch(t));else if(e===QE)r||(r=[],y(t,function(t,e){r.push(e)}));else if(e===KE){var l=Lr(t[0]);o=M(l)&&l.length||1}return{startIndex:a,dimensionsDefine:ph(r),dimensionsDetectedCount:o}}function ch(t){for(var e,n=0;nr;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;rr;r++)t(o[r],r)}function fh(t){var e=t.sourceFormat;return e===JE||e===QE}function gh(t,e){var n=Rz[mh(t,e)];return n}function yh(t,e){var n=Ez[mh(t,e)];return n}function vh(t){var e=Bz[t];return e}function mh(t,e){return t===$E?t+\\\"_\\\"+e:t}function xh(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return vh(o)(i,a,s)}var l=i;return o===KE&&(l=Lr(i)),l}}}function _h(t){var e,n;return A(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function bh(t){return new Gz(t)}function wh(t,e){var n=e&&e.type;return\\\"ordinal\\\"===n?t:(\\\"time\\\"!==n||D(t)||null==t||\\\"-\\\"===t||(t=+yr(t)),null==t||\\\"\\\"===t?0/0:+t)}function Sh(t,e){var n=new Xz,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a=\\\"\\\";t.seriesLayoutBy!==nz&&Cr(a);var s=[],l={},u=t.dimensionsDefine;if(u)y(u,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r=\\\"\\\";$(l,n)&&Cr(r),l[n]=i}});else for(var h=0;ho;o++)r.push(n[o].slice());return r}if(e===JE){for(var r=[],o=0,a=n.length;a>o;o++)r.push(h({},n[o]));return r}}function Th(t,e,n){return null!=n?D(n)||!isNaN(n)&&!$(e,n)?t[n]:$(e,n)?e[n]:void 0:void 0}function Ch(t){return s(t)}function Dh(t){t=s(t);var e=t.type,n=\\\"\\\";e||Cr(n);var i=e.split(\\\":\\\");2!==i.length&&Cr(n);var r=!1;\\\"echarts\\\"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,Uz.set(e,t)}function Ah(t,e,n){var i=Ar(t),r=i.length,o=\\\"\\\";r||Cr(o);for(var a=0,s=r;s>a;a++){var l=i[a];e=kh(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function kh(t,e){var n=\\\"\\\";e.length||Cr(n),A(t)||Cr(n);var i=t.type,r=Uz.get(i);r||Cr(n);var o=v(e,function(t){return Sh(t,r)}),a=Ar(r.transform({upstream:o[0],upstreamList:o,config:s(t.config)}));return v(a,function(t,n){var i=\\\"\\\";A(t)||Cr(i),t.data||Cr(i);var r=uh(t.data);Lh(r)||Cr(i);var o,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),o={seriesLayoutBy:nz,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else o={seriesLayoutBy:nz,sourceHeader:0,dimensions:t.dimensions};return ah(t.data,o,null)})}function Lh(t){return t===$E||t===JE}function Ph(t){return t>65535?jz:qz}function Oh(){return[1/0,-1/0]}function Rh(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Nh(t,e,n,i,r){var o=Jz[n||\\\"float\\\"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;s>u;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}function Eh(t){var e=t.option.transform;e&&Y(t.option.transform)}function zh(t){return\\\"series\\\"===t.mainType}function Bh(t){throw new Error(t)}function Vh(t,e){var n=t.color||\\\"#6e7079\\\",i=t.fontSize||12,r=t.fontWeight||\\\"400\\\",o=t.color||\\\"#464646\\\",a=t.fontSize||14,s=t.fontWeight||\\\"900\\\";return\\\"html\\\"===e?{nameStyle:\\\"font-size:\\\"+Ce(i+\\\"\\\")+\\\"px;color:\\\"+Ce(n)+\\\";font-weight:\\\"+Ce(r+\\\"\\\"),valueStyle:\\\"font-size:\\\"+Ce(a+\\\"\\\")+\\\"px;color:\\\"+Ce(o)+\\\";font-weight:\\\"+Ce(s+\\\"\\\")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}function Fh(t,e){return e.type=t,e}function Gh(t){return\\\"section\\\"===t.type}function Wh(t){return Gh(t)?Yh:Xh}function Hh(t){if(Gh(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return y(t.blocks,function(t){var n=Hh(t);n>=e&&(e=n+ +(i&&(!n||Gh(t)&&!t.noHeader)))}),e}return 0}function Yh(t,e,n,i){var r=e.noHeader,o=Zh(Hh(e)),a=[],s=e.blocks||[];W(!s||M(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:\\\"asc\\\",valueDesc:\\\"desc\\\"};if($(u,l)){var c=new Yz(u[l],null);s.sort(function(t,e){return c.evaluate(t.sortParam,e.sortParam)})}else\\\"seriesDesc\\\"===l&&s.reverse()}y(s,function(n,r){var s=e.valueFormatter,l=Wh(n)(s?h(h({},t),{valueFormatter:s}):t,n,r>0?o.html:0,i);null!=l&&a.push(l)});var p=\\\"richText\\\"===t.renderMode?a.join(o.richText):jh(a.join(\\\"\\\"),r?n:o.html);if(r)return p;var d=Ql(e.header,\\\"ordinal\\\",t.useUTC),f=Vh(i,t.renderMode).nameStyle;return\\\"richText\\\"===t.renderMode?$h(t,d,f)+o.richText+p:jh('
'+Ce(d)+\\\"
\\\"+p,n)}function Xh(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=M(t)?t:[t],v(t,function(t,e){return Ql(t,M(d)?d[e]:d,u)})};if(!o||!a){var c=s?\\\"\\\":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||\\\"#333\\\",r),p=o?\\\"\\\":Ql(l,\\\"ordinal\\\",u),d=e.valueType,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,m=Vh(i,r),x=m.nameStyle,_=m.valueStyle;return\\\"richText\\\"===r?(s?\\\"\\\":c)+(o?\\\"\\\":$h(t,p,x))+(a?\\\"\\\":Jh(t,f,g,y,_)):jh((s?\\\"\\\":c)+(o?\\\"\\\":qh(p,!s,x))+(a?\\\"\\\":Kh(f,g,y,_)),n)}}function Uh(t,e,n,i,r,o){if(t){var a=Wh(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function Zh(t){return{html:nB[t],richText:iB[t]}}function jh(t,e){var n='
',i=\\\"margin: \\\"+e+\\\"px 0 0\\\";return'
'+t+n+\\\"
\\\"}function qh(t,e,n){var i=e?\\\"margin-left:2px\\\":\\\"\\\";return''+Ce(t)+\\\"\\\"}function Kh(t,e,n,i){var r=n?\\\"10px\\\":\\\"20px\\\",o=e?\\\"float:right;margin-left:\\\"+r:\\\"\\\";return t=M(t)?t:[t],''+v(t,function(t){return Ce(t)}).join(\\\"  \\\")+\\\"\\\"}function $h(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Jh(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:\\\"right\\\"}),t.markupStyleCreator.wrapRichTextStyle(M(e)?e.join(\\\" \\\"):e,o)}function Qh(t,e){var n=t.getData().getItemVisual(e,\\\"style\\\"),i=n[t.visualDrawType];return ou(i)}function tc(t,e){var n=t.get(\\\"padding\\\");return null!=n?n:\\\"richText\\\"===e?[8,10]:10}function ec(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll(\\\"defaultedTooltip\\\"),h=u.length,c=o.getRawValue(a),p=M(c),d=Qh(o,a);if(h>1||p&&!h){var f=nc(c,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=xh(l,a,u[0]),n=g.type}else r=e=p?c[0]:c;var y=Hr(o),v=y&&o.name||\\\"\\\",m=l.getName(a),x=s?v:m;return Fh(\\\"section\\\",{header:v,noHeader:s||!y,sortParam:r,blocks:[Fh(\\\"nameValue\\\",{markerType:\\\"item\\\",markerColor:d,name:x,noName:!H(x),value:e,valueType:n})].concat(i||[])})}function nc(t,e,n,i,r){function o(t,e){var n=a.getDimensionInfo(e);n&&n.otherDims.tooltip!==!1&&(s?h.push(Fh(\\\"nameValue\\\",{markerType:\\\"subItem\\\",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),u.push(n.type)))}var a=e.getData(),s=m(t,function(t,e,n){var i=a.getDimensionInfo(n);return t=t||i&&i.tooltip!==!1&&null!=i.displayName},!1),l=[],u=[],h=[];return i.length?y(i,function(t){o(xh(a,n,t),t)}):y(t,o),{inlineValues:l,inlineValueTypes:u,blocks:h}}function ic(t,e){return t.getName(e)||t.getId(e)}function rc(t){var e=t.name;Hr(t)||(t.name=oc(t)||e)}function oc(t){var e=t.getRawData(),n=e.mapDimensionsAll(\\\"seriesName\\\"),i=[];return y(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(\\\" \\\")}function ac(t){return t.model.getRawData().count()}function sc(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),lc}function lc(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function uc(t,e){y(j(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,S(hc,e))})}function hc(t,e){var n=cc(t);return n&&n.setOutputEnd((e||this).count()),e}function cc(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}function pc(){var t=Kr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&\\\"reset\\\"}}function dc(t,e,n){t&&is(t)&&(\\\"emphasis\\\"===e?Ra:Na)(t,n)}function fc(t,e,n){var i=qr(t,e),r=e&&null!=e.highlightKey?os(e.highlightKey):null;null!=i?y(Ar(i),function(e){dc(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){dc(t,n,r)})}function gc(t){return hB(t.model)}function yc(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&uB(r).updateMethod,l=o?\\\"incrementalPrepareRender\\\":s&&a[s]?s:\\\"render\\\";return\\\"render\\\"!==l&&a[l](e,n,i,r),dB[l]}function vc(t,e,n){function i(){h=(new Date).getTime(),c=null,t.apply(a,s||[])}var r,o,a,s,l,u=0,h=0,c=null;e=e||0;var p=function(){for(var t=[],p=0;p=0?i():c=setTimeout(i,-o),u=r};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){l=t},p}function mc(t,e,n,i){var r=t[e];if(r){var o=r[fB]||r,a=r[yB],s=r[gB];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=vc(o,n,\\\"debounce\\\"===i),r[fB]=o,r[yB]=i,r[gB]=n}return r}}function xc(t,e){var n=t[e];n&&n[fB]&&(n.clear&&n.clear(),t[e]=n[fB])}function _c(t,e){var n=t.visualStyleMapper||mB[e];return n?n:(console.warn(\\\"Unknown style type '\\\"+e+\\\"'.\\\"),mB.itemStyle)}function bc(t,e){var n=t.visualDrawType||xB[e];return n?n:(console.warn(\\\"Unknown style type '\\\"+e+\\\"'.\\\"),\\\"fill\\\")}function wc(t,e){e=e||{},c(e,{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 n=new HP,i=new mR({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r=new wR({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new mR({style:{fill:\\\"none\\\"},textContent:r,textConfig:{position:\\\"right\\\",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new RN({shape:{startAngle:-MB/2,endAngle:-MB/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:\\\"round\\\",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:3*MB/2}).start(\\\"circularInOut\\\"),a.animateShape(!0).when(1e3,{startAngle:3*MB/2}).delay(300).start(\\\"circularInOut\\\"),n.add(a)),n.resize=function(){var n=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&a.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}function Sc(t){t.overallReset(t.ecModel,t.api,t.payload)}function Mc(t){return t.overallProgress&&Ic}function Ic(){this.agent.dirty(),this.getDownstream().dirty()}function Tc(){this.agent&&this.agent.dirty()}function Cc(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Dc(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ar(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?v(e,function(t,e){return Ac(e)}):TB}function Ac(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o=0&&Yc(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Zc(t,e,n){for(var i=\\\"radial\\\"===e.type?Uc(t,e,n):Xc(t,e,n),r=e.colorStops,o=0;o0?\\\"dashed\\\"===t?[4*e,2*e]:\\\"dotted\\\"===t?[e]:D(t)?[t]:M(t)?t:null:null}function Jc(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&$c(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=v(n,function(t){return t/r}),i/=r)}return[n,i]}function Qc(t){var e=t.stroke;return!(null==e||\\\"none\\\"===e||!(t.lineWidth>0))}function tp(t){return\\\"string\\\"==typeof t&&\\\"none\\\"!==t}function ep(t){var e=t.fill;return null!=e&&\\\"none\\\"!==e}function np(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function ip(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function rp(t,e,n){var i=mo(e.image,e.__image,n);if(_o(i)){var r=t.createPattern(i,e.repeat||\\\"repeat\\\");if(\\\"function\\\"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Ek),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function op(t,e,n,i){var r,o=Qc(n),a=ep(n),s=n.strokePercent,l=1>s,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var h=e.path||JB,c=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,y=a&&!!p.image,v=o&&!!d.image,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=c?Zc(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=c?Zc(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(_=c||!e.__canvasFillPattern?rp(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(b=c||!e.__canvasStrokePattern?rp(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=m:y&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:v&&(b?t.strokeStyle=b:o=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,I;t.setLineDash&&n.lineDash&&(r=Jc(e),M=r[0],I=r[1]);var T=!0;(u||c&IL)&&(h.setDPR(t.dpr),l?h.setContext(null):(h.setContext(t),T=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),T&&h.rebuildPath(t,l?s:1),M&&(t.setLineDash(M),t.lineDashOffset=I),i||(n.strokeFirst?(o&&ip(t,n),a&&np(t,n)):(a&&np(t,n),o&&ip(t,n))),M&&t.setLineDash([])}function ap(t,e,n){var i=e.__image=mo(n.image,e.__image,e,e.onload);if(i&&_o(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;t.drawImage(i,u,h,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,h=n.sy,c=a-u,p=s-h;t.drawImage(i,u,h,c,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function sp(t,e,n){var i,r=n.text;if(null!=r&&(r+=\\\"\\\"),r){t.font=n.font||pk,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=Jc(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Qc(n)&&t.strokeText(r,n.x,n.y),ep(n)&&t.fillText(r,n.x,n.y)):(ep(n)&&t.fillText(r,n.x,n.y),Qc(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}function lp(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){gp(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?xO.opacity:a}(i||e.blend!==n.blend)&&(o||(gp(t,r),o=!0),t.globalCompositeOperation=e.blend||xO.blend);for(var s=0;so;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mp(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=r.length;h>u;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),mp(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}function _p(t,e){function n(t){function e(){for(var t=1,e=0,n=v.length;n>e;++e)t=Tr(t,v[e]);for(var i=1,e=0,n=y.length;n>e;++e)i=Tr(i,y[e].length);t*=i;var r=m*v.length*y.length;return{width:Math.max(1,Math.min(t,s.maxTileWidth)),height:Math.max(1,Math.min(r,s.maxTileHeight))}}function n(){function t(t,e,n,a,l){var u=o?1:i,h=Gc(l,t*u,e*u,n*u,a*u,s.color,s.symbolKeepAspect);if(o){var c=r.painter.renderOneToVNode(h);c&&_.children.push(c)}else vp(d,h)}d&&(d.clearRect(0,0,x.width,x.height),s.backgroundColor&&(d.fillStyle=s.backgroundColor,d.fillRect(0,0,x.width,x.height)));for(var e=0,n=0;n=e))for(var a=-m,l=0,u=0,h=0;a=S)break;if(v%2===0){var M=.5*(1-s.symbolSize),I=p+f[h][v]*M,T=a+g[l]*M,C=f[h][v]*s.symbolSize,D=g[l]*s.symbolSize,A=w/2%y[c].length;t(I,T,C,D,y[c][A])}p+=f[h][v],++w,++v,v===f[h].length&&(v=0)}++h,h===f.length&&(h=0)}a+=g[l],++u,++l,l===g.length&&(l=0)}}for(var a=[i],l=!0,u=0;u=0)){xF.push(n);var o=IB.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function Kp(t,e){pF[t]=e}function $p(t){r({createCanvas:t})}function Jp(t,e,n){var i=Dp(\\\"registerMap\\\");i&&i(t,e,n)}function Qp(t){var e=Dp(\\\"getMap\\\");return e&&e(t)}function td(t){return null==t?0:t.length||1}function ed(t){return t}function nd(t,e){var n={},i=n.encode={},r=Z(),o=[],a=[],s={};y(t.dimensions,function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){var u=n.coordDimIndex;id(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),od(n.type)&&(o[0]=e),id(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}qE.each(function(t,e){var r=id(i,e),o=n.otherDims[e];null!=o&&o!==!1&&(r[o]=n.name)})});var l=[],u={};r.each(function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=v(l,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var c=i.tooltip;return c&&c.length?a=c.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new kF(s,e),n}function id(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rd(t){return\\\"category\\\"===t?\\\"ordinal\\\":\\\"time\\\"===t?\\\"time\\\":\\\"float\\\"}function od(t){return!(\\\"ordinal\\\"===t||\\\"time\\\"===t)}function ad(t){return t instanceof RF}function sd(t){for(var e=Z(),n=0;n<(t||[]).length;n++){var i=t[n],r=A(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function ld(t){var e=PF(t);return e.dimNameMap||(e.dimNameMap=sd(t.dimensionsDefine))}function ud(t){return t>30}function hd(t,e){return cd(t,e).dimensions}function cd(t,e){function n(t){var e=m[t];if(0>e){var n=a[t],i=A(n)?n:{name:n},r=new LF,o=i.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=i.type&&(r.type=i.type),null!=i.displayName&&(r.displayName=i.displayName);var s=l.length;return m[t]=s,r.storeDimIndex=t,l.push(r),r}return l[e]}function i(t,e,n){null!=qE.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,s.set(e,!0))}function r(t){null==t.name&&(t.name=t.coordDim)}oh(t)||(t=sh(t)),e=e||{};var o=e.coordDimensions||[],a=e.dimensionsDefine||t.dimensionsDefine||[],s=Z(),l=[],u=dd(t,o,a,e.dimensionsCount),p=e.canOmitUnusedDimensions&&ud(u),d=a===t.dimensionsDefine,f=d?ld(t):sd(a),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,u));for(var v=Z(g),m=new Kz(u),x=0;xx;x++)n(x);v.each(function(t,e){var r=Ar(t).slice();if(1===r.length&&!T(r[0])&&r[0]<0)return void v.set(e,!1);var o=v.set(e,[]);y(r,function(t,r){var a=T(t)?f.get(t):t;null!=a&&u>a&&(o[r]=a,i(n(a),e,r))})});var _=0;y(o,function(t){var e,r,o,a;if(T(t))e=t,a={};else{a=t,e=a.name;var s=a.ordinalMeta;a.ordinalMeta=null,a=h({},a),a.ordinalMeta=s,r=a.dimsDef,o=a.otherDims,a.name=a.coordDim=a.coordDimIndex=a.dimsDef=a.otherDims=null}var l=v.get(e);if(l!==!1){if(l=Ar(l),!l.length)for(var p=0;p<(r&&r.length||1);p++){for(;u>_&&null!=n(_).coordDim;)_++;u>_&&l.push(_++)}y(l,function(t,s){var l=n(t);if(d&&null!=a.type&&(l.type=a.type),i(c(l,a),e,s),null==l.name&&r){var u=r[s];!A(u)&&(u={name:u}),l.name=l.displayName=u.name,l.defaultTooltip=u.defaultTooltip}o&&c(l.otherDims,o)})}});var b=e.generateCoord,w=e.generateCoordCount,S=null!=w;w=b?w||1:0;var M=b||\\\"value\\\";if(p)y(l,function(t){r(t)}),l.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var I=0;u>I;I++){var C=n(I),D=C.coordDim;null==D&&(C.coordDim=fd(M,s,S),C.coordDimIndex=0,(!b||0>=w)&&(C.isExtraCoord=!0),w--),r(C),null!=C.type||wu(t,I)!==rz.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type=\\\"ordinal\\\")}return pd(l),new RF({source:t,dimensions:l,fullDimensionCount:u,dimensionOmitted:p})}function pd(t){for(var e=Z(),n=0;n0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function dd(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return y(e,function(t){var e;A(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}function fd(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function gd(t){var e=t.get(\\\"coordinateSystem\\\"),n=new HF(e),i=YF[e];return i?(i(t,n,n.axisMap,n.categoryAxisMap),n):void 0}function yd(t){return\\\"category\\\"===t.get(\\\"type\\\")}function vd(t,e,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;md(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var l,u,h,c,p=!(!t||!t.get(\\\"stack\\\"));if(y(i,function(t,e){T(t)&&(i[e]=t={name:t}),p&&!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=\\\"__\\\\x00ecstackresult_\\\"+t.id,c=\\\"__\\\\x00ecstackedover_\\\"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;y(i,function(t){t.coordDim===d&&g++});var v={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(c,f),m.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(m)):(i.push(v),i.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function md(t){return!ad(t.schema)}function xd(t,e){return!!e&&e===t.getCalculationInfo(\\\"stackedDimension\\\")}function _d(t,e){return xd(t,e)?t.getCalculationInfo(\\\"stackResultDimension\\\"):e}function bd(t,e){var n,i=t.get(\\\"coordinateSystem\\\"),r=wz.get(i);return e&&e.coordSysDims&&(n=v(e.coordSysDims,function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get(\\\"type\\\");n.type=rd(r)}return n})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[\\\"x\\\",\\\"y\\\"]),n}function wd(t,e,n){var i,r;return n&&y(t,function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)}),r||null==i||(t[i].otherDims.itemName=0),i}function Sd(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=sh(t)):(i=r.getSource(),o=i.sourceFormat===KE);var a=gd(e),s=bd(e,a),l=n.useEncodeDefaulter,u=I(l)?l:l?S(mu,s,e):null,h={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=cd(i,h),p=wd(c.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(c),f=vd(e,{schema:c,store:d}),g=new WF(c,e);g.setCalculationInfo(f);var y=null!=p&&Md(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:d,null,y),g}function Md(t){if(t.sourceFormat===KE){var e=Id(t.data||[]);return!M(Lr(e))}}function Id(t){for(var e=0;ea&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=kd(a),l=r.niceTickExtent=[ar(Math.ceil(t[0]/a)*a,s),ar(Math.floor(t[1]/a)*a,s)];return Pd(l,t),r}function Ad(t){var e=Math.pow(10,mr(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ar(n*e)}function kd(t){return lr(t)+2}function Ld(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Pd(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ld(t,0,e),Ld(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Od(t,e){return t>=e[0]&&t<=e[1]}function Rd(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Nd(t,e){return t*(e[1]-e[0])+e[0]}function Ed(t){return M(t)?$F?new Float32Array(t):t:new JF(t)}function zd(t){return t.get(\\\"stack\\\")||QF+t.seriesIndex}function Bd(t){return t.dim+t.index}function Vd(t){var e=[],n=t.axis,i=\\\"axis0\\\";if(\\\"category\\\"===n.type){for(var r=n.getBandWidth(),o=0;ol;++l){var h=s.get(a,l);e[o]?e[o].push(h):e[o]=[h]}});var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort(function(t,e){return t-e});for(var o=null,a=1;a0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function Wd(t){var e=Gd(t),n=[];return y(t,function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if(\\\"category\\\"===o.type)i=o.getBandWidth();else if(\\\"value\\\"===o.type||\\\"time\\\"===o.type){var s=o.dim+\\\"_\\\"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);i=l?u/c*l:u}else{var p=t.getData();i=Math.abs(a[1]-a[0])/p.count()}var d=or(t.get(\\\"barWidth\\\"),i),f=or(t.get(\\\"barMaxWidth\\\"),i),g=or(t.get(\\\"barMinWidth\\\")||(jd(t)?.5:1),i),y=t.get(\\\"barGap\\\"),v=t.get(\\\"barCategoryGap\\\");n.push({bandWidth:i,barWidth:d,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:Bd(o),stackId:zd(t)})}),Hd(n)}function Hd(t){var e={};y(t,function(t){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:\\\"20%\\\",stacks:{}},o=r.stacks;e[n]=r;var a=t.stackId;o[a]||r.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};var s=t.barWidth;s&&!o[a].width&&(o[a].width=s,s=Math.min(r.remainedWidth,s),r.remainedWidth-=s);var l=t.barMaxWidth;l&&(o[a].maxWidth=l);var u=t.barMinWidth;u&&(o[a].minWidth=u);var h=t.barGap;null!=h&&(r.gap=h);var c=t.barCategoryGap;null!=c&&(r.categoryGap=c)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=b(i).length;o=Math.max(35-4*a,15)+\\\"%\\\"}var s=or(o,r),l=or(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),y(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--}else{var i=c;e&&i>e&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}}),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var p,d=0;y(i,function(t){t.width||(t.width=c),p=t,d+=t.width*(1+l)}),p&&(d-=p.width*l);var f=-d/2;y(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)})}),n}function Yd(t,e,n){if(t&&e){var i=t[Bd(e)];return null!=i&&null!=n?i[zd(n)]:i}}function Xd(t,e){var n=Fd(t,e),i=Wd(n);y(n,function(t){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),o=zd(t),a=i[Bd(r)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})})}function Ud(t){return{seriesType:t,plan:pc(),reset:function(t){if(Zd(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get(\\\"showBackground\\\",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo(\\\"stackResultDimension\\\"),h=xd(e,l)&&!!e.getCalculationInfo(\\\"stackedOnSeries\\\"),c=r.isHorizontal(),p=qd(i,r),d=jd(t),f=t.get(\\\"barMinHeight\\\")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout(\\\"size\\\"),v=e.getLayout(\\\"offset\\\");return{progress:function(t,e){for(var i,r=t.count,l=d&&Ed(3*r),u=d&&s&&Ed(3*r),m=d&&Ed(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=p,T=void 0;h&&(T=+S-b.get(o,i));var C=void 0,D=void 0,A=void 0,k=void 0;if(c){var L=n.dataToPoint([S,M]);if(h){var P=n.dataToPoint([T,M]);I=P[0]}C=I,D=L[1]+v,A=L[0]-I,k=y,Math.abs(A)A?-1:1)*f)}else{var L=n.dataToPoint([M,S]);if(h){var P=n.dataToPoint([M,T]);I=P[1]}C=L[0]+v,D=I,A=y,k=L[1]-I,Math.abs(k)=k?-1:1)*f)}d?(l[w]=C,l[w+1]=D,l[w+2]=c?A:k,u&&(u[w]=c?x.x:C,u[w+1]=c?D:x.y,u[w+2]=_),m[i]=i):e.setItemLayout(i,{x:C,y:D,width:A,height:k}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:c})}}}}}}function Zd(t){return t.coordinateSystem&&\\\"cartesian2d\\\"===t.coordinateSystem.type}function jd(t){return t.pipelineContext&&t.pipelineContext.large}function qd(t,e){return e.toGlobalCoord(e.dataToCoord(\\\"log\\\"===e.type?1:0))}function Kd(t,e,n,i){var r=yr(e),o=yr(n),a=function(t){return Nl(r,t,i)===Nl(o,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\\\")},d=function(){return p()&&a(\\\"millisecond\\\")};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 d()}}function $d(t){return t/=DE,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Jd(t){var e=30*DE;return t/=e,t>6?6:t>3?3:t>2?2:1}function Qd(t){return t/=CE,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function tf(t,e){return t/=e?TE:IE,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ef(t){return xr(t,!0)}function nf(t,e,n){var i=new Date(t);switch(Al(e)){case\\\"year\\\":case\\\"month\\\":i[Yl(n)](0);case\\\"day\\\":i[Xl(n)](1);case\\\"hour\\\":i[Ul(n)](0);case\\\"minute\\\":i[Zl(n)](0);case\\\"second\\\":i[jl(n)](0),i[ql(n)](0)}return i.getTime()}function rf(t,e,n,i){function r(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();n>u&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}function o(t,o,a){var s=[],l=!o.length;if(!Kd(Al(t),i[0],i[1],n)){l&&(o=[{value:nf(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u1&&0===u&&a.unshift({value:a[0].value-p})}}for(var u=0;u=i[0]&&_<=i[1]&&c++)}var b=(i[1]-i[0])/e;if(c>1.5*b&&p>b/1.5)break;if(u.push(y),c>b||t===s[d])break}h=[]}}}for(var w=x(v(u,function(t){return x(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),S=[],M=w.length-1,d=0;d0&&i>0||0>n&&0>i)}function df(t){var e=t.getLabelModel().get(\\\"formatter\\\"),n=\\\"category\\\"===t.type?t.scale.getExtent()[0]:null;return\\\"time\\\"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):T(e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace(\\\"{value}\\\",null!=i?i:\\\"\\\");return r}}(e):I(e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(ff(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function ff(t,e){return\\\"category\\\"===t.type?t.scale.getLabel(e):e.value}function gf(t){var e=t.model,n=t.scale;if(e.get([\\\"axisLabel\\\",\\\"show\\\"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof jF?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=df(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;r>h;h+=u){var c=i?i[h]:{value:o[0]+h},p=l(c,h),d=s.getTextRect(p),f=yf(d,s.get(\\\"rotate\\\")||0);a?a.union(f):a=f}return a}}function yf(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new dL(t.x,t.y,o,a);return s}function vf(t){var e=t.get(\\\"interval\\\");return null==e?\\\"auto\\\":e}function mf(t){return\\\"category\\\"===t.type&&0===vf(t.getLabelModel())}function xf(t,e){var n={};return y(t.mapDimensionsAll(e),function(e){n[_d(t,e)]=!0}),b(n)}function _f(t,e,n){e&&y(xf(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}function bf(t){return Sd(null,t)}function wf(t,e){var n=e;e instanceof gE||(n=new gE(e));var i=cf(n);return i.setExtent(t[0],t[1]),hf(i,n),i}function Sf(t){f(t,gG)}function Mf(t,e){return e=e||{},pl(t,null,null,\\\"normal\\\"!==e.state)}function If(t){return M(t)?void y(t,function(t){If(t)}):void(p(mG,t)>=0||(mG.push(t),I(t)&&(t={install:t}),t.install(xG)))}function Tf(t,e){return Math.abs(t-e)<_G}function Cf(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;os;s++){var l=t[s][0],u=t[s][1],h=o*u-l*a;e+=h,n+=(o+l)*h,i+=(a+u)*h,o=l,a=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}function Lf(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return y(i,function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case\\\"LineString\\\":e.coordinates=Of(r,i,n);break;case\\\"Polygon\\\":Pf(r,i,n);break;case\\\"MultiLineString\\\":Pf(r,i,n);break;case\\\"MultiPolygon\\\":y(r,function(t,e){return Pf(t,i[e],n)})}}),e.UTF8Encoding=!1,e}function Pf(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function Rf(t,e){return t=Lf(t),v(x(t.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case\\\"Polygon\\\":var o=i.coordinates;r.push(new SG(o[0],o.slice(1)));break;case\\\"MultiPolygon\\\":y(i.coordinates,function(t){t[0]&&r.push(new SG(t[0],t.slice(1)))});break;case\\\"LineString\\\":r.push(new MG([i.coordinates]));break;case\\\"MultiLineString\\\":r.push(new MG(i.coordinates))}var a=new IG(n[e||\\\"name\\\"],r,n.cp);return a.properties=n,a})}function Nf(t){return\\\"category\\\"===t.type?zf(t):Ff(t)}function Ef(t,e){return\\\"category\\\"===t.type?Vf(t,e):{ticks:v(t.scale.getTicks(),function(t){return t.value})}}function zf(t){var e=t.getLabelModel(),n=Bf(t,e);return!e.get(\\\"show\\\")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Bf(t,e){var n=Gf(t,\\\"labels\\\"),i=vf(e),r=Wf(n,i);if(r)return r;var o,a;return I(i)?o=jf(t,i):(a=\\\"auto\\\"===i?Yf(t):i,o=Zf(t,a)),Hf(n,i,{labels:o,labelCategoryInterval:a})}function Vf(t,e){var n=Gf(t,\\\"ticks\\\"),i=vf(e),r=Wf(n,i);if(r)return r;var o,a;if((!e.get(\\\"show\\\")||t.scale.isBlank())&&(o=[]),I(i))o=jf(t,i,!0);else if(\\\"auto\\\"===i){var s=Bf(t,t.getLabelModel());a=s.labelCategoryInterval,o=v(s.labels,function(t){return t.tickValue})}else a=i,o=Zf(t,a,!0);return Hf(n,i,{ticks:o,tickCategoryInterval:a})}function Ff(t){var e=t.scale.getTicks(),n=df(t);return{labels:v(e,function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}function Gf(t,e){return PG(t)[e]||(PG(t)[e]=[])}function Wf(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f=0,g=0,y=zi(n({value:l}),e.font,\\\"center\\\",\\\"top\\\");f=1.3*y.width,g=1.3*y.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=PG(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}function Uf(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get(\\\"rotate\\\")||0,font:e.getFont()}}function Zf(t,e,n){function i(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:o.getLabel(e),tickValue:t})}var r=df(t),o=t.scale,a=o.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=a[0],c=o.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=mf(t),d=s.get(\\\"showMinLabel\\\")||p,f=s.get(\\\"showMaxLabel\\\")||p;d&&h!==a[0]&&i(a[0]);for(var g=h;g<=a[1];g+=u)i(g);return f&&g-u!==a[1]&&i(a[1]),l}function jf(t,e,n){var i=t.scale,r=df(t),o=[];return y(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}function qf(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function Kf(t,e,n,i){function r(t,e){return t=ar(t),e=ar(e),p?t>e:e>t}var o=e.length;if(t.onBand&&!n&&o){var a,s,l=t.getExtent();if(1===o)e[0].coord=l[0],a=e[1]={coord:l[1]};else{var u=e[o-1].tickValue-e[0].tickValue,h=(e[o-1].coord-e[0].coord)/u;y(e,function(t){t.coord-=h/2});var c=t.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+h*s},e.push(a)}var p=l[0]>l[1];r(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&r(l[0],e[0].coord)&&e.unshift({coord:l[0]}),r(l[1],a.coord)&&(i?a.coord=l[1]:e.pop()),i&&r(a.coord,l[1])&&e.push({coord:l[1]})}}function $f(t){var e=HE.extend(t);return HE.registerClass(e),e}function Jf(t){var e=lB.extend(t);return lB.registerClass(e),e}function Qf(t){var e=sB.extend(t);return sB.registerClass(e),e}function tg(t){var e=cB.extend(t);return cB.registerClass(e),e}function eg(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case\\\"top\\\":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case\\\"bottom\\\":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case\\\"left\\\":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case\\\"right\\\":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function ng(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var h=a*n+t,c=s*n+e;if(Math.abs(i-r)%NG<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var p=i;i=Wo(r),r=Wo(p)}else i=Wo(i),r=Wo(r);i>r&&(r+=NG);var d=Math.atan2(s,a);if(0>d&&(d+=NG),d>=i&&r>=d||d+NG>=i&&r>=d+NG)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return x>m?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function ig(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,h=n-t,c=i-e,p=Math.sqrt(h*h+c*c);h/=p,c/=p;var d=l*h+u*c,f=d/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var g=a[0]=t+f*h,y=a[1]=e+f*c;return Math.sqrt((g-r)*(g-r)+(y-o)*(y-o))}function rg(t,e,n,i,r,o,a){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}function og(t,e,n){var i=rg(e.x,e.y,e.width,e.height,t.x,t.y,BG);return n.set(BG[0],BG[1]),i}function ag(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=e.data,c=t.x,p=t.y,d=0;d=d&&(s=i,l=r);var S=(c-y)*x/m+y;g=ng(y,v,x,_,_+b,w,S,p,BG),o=Math.cos(_+b)*m+y,a=Math.sin(_+b)*x+v;break;case EG.R:s=o=h[d++],l=a=h[d++];var M=h[d++],I=h[d++];g=rg(s,l,M,I,c,p,BG);break;case EG.Z:g=ig(o,a,s,l,c,p,BG,!0),o=s,a=l}u>g&&(u=g,n.set(BG[0],BG[1]))}return u}function sg(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||zG,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=t.getComputedTransform(),c=h&&Xe([],h),p=e.get(\\\"length2\\\")||0;u&&GG.copy(u);for(var d=0;dy&&(l=y,FG.transform(h),GG.transform(h),GG.toArray(o[0]),FG.toArray(o[1]),VG.toArray(o[2]))}lg(o,e.get(\\\"minTurnAngle\\\")),n.setShape({points:o})}}}function lg(t,e){if(180>=e&&e>0){e=e/180*Math.PI,VG.fromArray(t[0]),FG.fromArray(t[1]),GG.fromArray(t[2]),rL.sub(WG,VG,FG),rL.sub(HG,GG,FG);var n=WG.len(),i=HG.len();if(!(.001>n||.001>i)){WG.scale(1/n),HG.scale(1/i);var r=WG.dot(HG),o=Math.cos(e);if(r>o){var a=ig(FG.x,FG.y,GG.x,GG.y,VG.x,VG.y,YG,!1);XG.fromArray(YG),XG.scaleAndAdd(HG,a/Math.tan(Math.PI-e));var s=GG.x!==FG.x?(XG.x-FG.x)/(GG.x-FG.x):(XG.y-FG.y)/(GG.y-FG.y);if(isNaN(s))return;0>s?rL.copy(XG,FG):s>1&&rL.copy(XG,GG),XG.toArray(t[1])}}}}function ug(t,e,n){if(180>=n&&n>0){n=n/180*Math.PI,VG.fromArray(t[0]),FG.fromArray(t[1]),GG.fromArray(t[2]),rL.sub(WG,FG,VG),rL.sub(HG,GG,FG);var i=WG.len(),r=HG.len();if(!(.001>i||.001>r)){WG.scale(1/i),HG.scale(1/r);var o=WG.dot(e),a=Math.cos(n);if(a>o){var s=ig(FG.x,FG.y,GG.x,GG.y,VG.x,VG.y,YG,!1);XG.fromArray(YG);var l=Math.PI/2,u=Math.acos(HG.dot(e)),h=l+u-n;if(h>=l)rL.copy(XG,GG);else{XG.scaleAndAdd(HG,s/Math.tan(Math.PI/2-h));var c=GG.x!==FG.x?(XG.x-FG.x)/(GG.x-FG.x):(XG.y-FG.y)/(GG.y-FG.y);if(isNaN(c))return;0>c?rL.copy(XG,FG):c>1&&rL.copy(XG,GG)}XG.toArray(t[1])}}}}function hg(t,e,n,i){var r=\\\"normal\\\"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get(\\\"smooth\\\");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel(\\\"lineStyle\\\").getLineStyle();r?t.useStyle(s):o.style=s}function cg(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Fk(i[0],i[1]),o=Fk(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=ye([],i[1],i[0],a/r),l=ye([],i[1],i[2],a/o),u=ye([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;ht){var i=Math.min(e,-t);if(i>0){l(i*n,0,c);var r=i+t;0>r&&u(-r*n,1)}else u(-t*n,1)}}function l(n,i,r){0!==n&&(f=!0);for(var o=i;r>o;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n\\n}}function u(i,r){for(var o=[],a=0,s=1;c>s;s++){var u=t[s-1].rect,h=Math.max(t[s].rect[e]-u[e]-u[n],0);o.push(h),a+=h}if(a){var p=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;c-1>s;s++){var d=o[s]*p;l(d,0,s+1)}else for(var s=c-1;s>0;s--){var d=o[s-1]*p;l(-d,s,c)}}}function h(t){var e=0>t?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(c-1)),i=0;c-1>i;i++)if(e>0?l(n,0,i+1):l(-n,c-i-1,c),t-=n,0>=t)return}var c=t.length;if(!(2>c)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var p,d=0,f=!1,g=[],y=0,v=0;c>v;v++){var m=t[v],x=m.rect;p=x[e]-d,0>p&&(x[e]-=p,m.label[e]-=p,f=!0);var _=Math.max(-p,0);g.push(_),y+=_,d=x[e]+x[n]}y>0&&o&&l(-y/c,0,c);var b,w,S=t[0],M=t[c-1];return a(),0>b&&u(-b,.8),0>w&&u(w,.8),a(),s(b,w,1),s(w,b,-1),a(),0>b&&h(-b),0>w&&h(w),f}}function yg(t,e,n,i){return gg(t,\\\"x\\\",\\\"width\\\",e,n,i)}function vg(t,e,n,i){return gg(t,\\\"y\\\",\\\"height\\\",e,n,i)}function mg(t){function e(t){if(!t.ignore){var e=t.ensureState(\\\"emphasis\\\");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}var n=[];t.sort(function(t,e){return e.priority-t.priority});for(var i=new dL(0,0,0,0),r=0;r10&&\\\"cartesian2d\\\"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/c);if(isFinite(p)&&p>1){\\\"lttb\\\"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;T(r)?d=sW[r]:I(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,lW))}}}}}function Ag(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=n.get([\\\"lineStyle\\\",\\\"width\\\"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new mR({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=I(r)?function(t){r(t,c)}:null;ks(c,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return c}function kg(t,e,n){var i=t.getArea(),r=ar(i.r0,1),o=ar(i.r,1),a=new _N({shape:{cx:ar(t.cx,1),cy:ar(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=\\\"angle\\\"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,ks(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function Lg(t,e,n,i,r){return t?\\\"polar\\\"===t.type?kg(t,e,n):\\\"cartesian2d\\\"===t.type?Ag(t,e,n,i,r):null:null}function Pg(t,e){return t.type===e}function Og(t,e){var n=t.mapDimensionsAll(\\\"defaultedLabel\\\"),i=n.length;if(1===i){var r=xh(t,e,n[0]);return null!=r?r+\\\"\\\":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(\\\" \\\")}function Ng(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return Wi(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,c=l.r,p=l.r0,d=(c+p)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(c-p)/2:0,m=Math.cos,x=Math.sin,_=u+c*m(f),b=h+c*x(f),w=\\\"left\\\",S=\\\"top\\\";switch(a){case\\\"startArc\\\":_=u+(p-s)*m(y),b=h+(p-s)*x(y),w=\\\"center\\\",S=\\\"top\\\";break;case\\\"insideStartArc\\\":_=u+(p+s)*m(y),b=h+(p+s)*x(y),w=\\\"center\\\",S=\\\"bottom\\\";break;case\\\"startAngle\\\":_=u+d*m(f)+zg(f,s+v,!1),b=h+d*x(f)+Bg(f,s+v,!1),w=\\\"right\\\",S=\\\"middle\\\";break;case\\\"insideStartAngle\\\":_=u+d*m(f)+zg(f,-s+v,!1),b=h+d*x(f)+Bg(f,-s+v,!1),w=\\\"left\\\",S=\\\"middle\\\";break;case\\\"middle\\\":_=u+d*m(y),b=h+d*x(y),w=\\\"center\\\",S=\\\"middle\\\";break;case\\\"endArc\\\":_=u+(c+s)*m(y),b=h+(c+s)*x(y),w=\\\"center\\\",S=\\\"bottom\\\";break;case\\\"insideEndArc\\\":_=u+(c-s)*m(y),b=h+(c-s)*x(y),w=\\\"center\\\",S=\\\"top\\\";break;case\\\"endAngle\\\":_=u+d*m(g)+zg(g,s+v,!0),b=h+d*x(g)+Bg(g,s+v,!0),w=\\\"left\\\",S=\\\"middle\\\";break;case\\\"insideEndAngle\\\":_=u+d*m(g)+zg(g,-s+v,!0),b=h+d*x(g)+Bg(g,-s+v,!0),w=\\\"right\\\",S=\\\"middle\\\";break;default:return Wi(e,i,r)}return e=e||{},e.x=_,e.y=b,e.align=w,e.verticalAlign=S,e}}function Eg(t,e,n,i){if(D(i))return void t.setTextConfig({rotation:i});if(M(e))return void t.setTextConfig({rotation:0});var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case\\\"startArc\\\":case\\\"insideStartArc\\\":case\\\"middle\\\":case\\\"insideEndArc\\\":case\\\"endArc\\\":r=l;break;case\\\"startAngle\\\":case\\\"insideStartAngle\\\":r=a;break;case\\\"endAngle\\\":case\\\"insideEndAngle\\\":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;\\\"middle\\\"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}function zg(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Bg(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Vg(t,e,n){var i=t.get(\\\"borderRadius\\\");if(null==i)return n?{cornerRadius:0}:null;M(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:v(i,function(t){return Gi(t,r)})}}function Fg(t,e){var n=t.getArea&&t.getArea();if(Pg(t,\\\"cartesian2d\\\")){var i=t.getBaseAxis();if(\\\"category\\\"!==i.type||!i.onBand){var r=e.getLayout(\\\"bandWidth\\\");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}function Gg(t,e){var n=t.get(\\\"realtimeSort\\\",!0),i=e.getBaseAxis();return n&&\\\"category\\\"===i.type&&\\\"cartesian2d\\\"===e.type?{baseAxis:i,otherAxis:e.getOtherAxis(i)}:void 0}function Wg(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?As:ks)(n,{shape:l},e,r,null);var h=e?t.baseAxis.model:null;(a?As:ks)(n,{shape:u},h,r)}function Hg(t,e){for(var n=0;n=r.r0?\\\"endArc\\\":\\\"startArc\\\":r.endAngle>=r.startAngle?\\\"endAngle\\\":\\\"startAngle\\\":a?r.height>=0?\\\"bottom\\\":\\\"top\\\":r.width>=0?\\\"right\\\":\\\"left\\\",g=cl(i);hl(t,g,{labelFetcher:o,labelDataIndex:n,defaultText:Og(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=t.getTextContent();if(s&&v){var m=i.get([\\\"label\\\",\\\"position\\\"]);t.textConfig.inside=\\\"middle\\\"===m?!0:null,Eg(t,\\\"outside\\\"===m?f:m,Xg(a),i.get([\\\"label\\\",\\\"rotate\\\"]))}ml(v,g,o.getRawValue(n),function(t){return Rg(e,t)});var x=i.getModel([\\\"emphasis\\\"]);Qa(t,x.get(\\\"focus\\\"),x.get(\\\"blurScope\\\"),x.get(\\\"disabled\\\")),es(t,i),Yg(r)&&(t.style.fill=\\\"none\\\",t.style.stroke=\\\"none\\\",y(t.states,function(t){t.style&&(t.style.fill=t.style.stroke=\\\"none\\\")}))}function Zg(t,e){var n=t.get([\\\"itemStyle\\\",\\\"borderColor\\\"]);if(!n||\\\"none\\\"===n)return 0;var i=t.get([\\\"itemStyle\\\",\\\"borderWidth\\\"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}function jg(t,e,n,i){var r=t.getData(),o=r.getLayout(\\\"valueAxisHorizontal\\\")?1:0,a=r.getLayout(\\\"largeDataIndices\\\"),s=r.getLayout(\\\"size\\\"),l=t.getModel(\\\"backgroundStyle\\\"),u=r.getLayout(\\\"largeBackgroundPoints\\\");if(u){var h=new SW({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new SW({shape:{points:r.getLayout(\\\"largePoints\\\")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(r.getVisual(\\\"style\\\")),TR(c).seriesIndex=t.seriesIndex,t.get(\\\"silent\\\")||(c.on(\\\"mousedown\\\",MW),c.on(\\\"mousemove\\\",MW)),n&&n.push(c)}function qg(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;c>h;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}function Kg(t,e,n){if(Pg(n,\\\"cartesian2d\\\")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var r=n.getArea(),o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function $g(t,e,n){var i=\\\"polar\\\"===t.type?_N:mR;return new i({shape:Kg(e,n,t),silent:!0,z2:0})}function Jg(t){t.registerChartView(gW),t.registerSeriesModel(hW),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(Xd,\\\"bar\\\")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ud(\\\"bar\\\")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Dg(\\\"bar\\\")),t.registerAction({type:\\\"changeAxisOrder\\\",event:\\\"changeAxisOrder\\\",update:\\\"update\\\"},function(t,e){var n=t.componentType||\\\"series\\\";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})}function Qg(t,e){this.parent.drift(t,e)}function ty(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 ey(t){return null==t||A(t)||(t={isIgnore:t}),t||{}}function ny(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:cl(e),cursorStyle:e.get(\\\"cursor\\\")}}function iy(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=ry(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h=\\\"x\\\"===s||\\\"radius\\\"===s?1:0,c=v(t.dimensions,function(t){return e.mapDimension(t)}),p=!1,d=e.getCalculationInfo(\\\"stackResultDimension\\\");return xd(e,c[0])&&(p=!0,c[0]=d),xd(e,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo(\\\"stackedOverDimension\\\")}}function ry(t,e){var n=0,i=t.scale.getExtent();return\\\"start\\\"===e?n=i[0]:\\\"end\\\"===e?n=i[1]:D(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function oy(t,e,n,i){var r=0/0;t.stacked&&(r=n.get(n.getCalculationInfo(\\\"stackedOverDimension\\\"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}function ay(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:\\\"+\\\",idx:t})}).update(function(t,e){n.push({cmd:\\\"=\\\",idx:e,idx1:t})}).remove(function(t){n.push({cmd:\\\"-\\\",idx:t})}).execute(),n}function sy(t,e,n,i,r,o,a){for(var s=ay(t,e),l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=iy(r,e,a),y=t.getLayout(\\\"points\\\")||[],v=e.getLayout(\\\"points\\\")||[],m=0;my;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||0>g)break;if(ly(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?\\\"moveTo\\\":\\\"lineTo\\\"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(.5>x*x+_*_){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&i>y;)y++,b+=o,g+=o,w=e[2*b],S=e[2*b+1],v=e[2*g],m=e[2*g+1],x=v-u,_=m-h;var M=y+1;if(l)for(;ly(w,S)&&i>M;)M++,b+=o,w=e[2*b],S=e[2*b+1];var I=.5,T=0,C=0,D=void 0,A=void 0;if(M>=i||ly(w,S))d=v,f=m;else{T=w-u,C=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,R=void 0,N=void 0;if(\\\"x\\\"===s){R=Math.abs(k),N=Math.abs(L);var E=T>0?1:-1;d=v-E*R*a,f=m,D=v+E*N*a,A=m}else if(\\\"y\\\"===s){R=Math.abs(P),N=Math.abs(O);var z=C>0?1:-1;d=v,f=m-z*R*a,D=v,A=m+z*N*a}else R=Math.sqrt(k*k+P*P),N=Math.sqrt(L*L+O*O),I=N/(N+R),d=v-T*a*(1-I),f=m-C*a*(1-I),D=v+T*a*I,A=m+C*a*I,D=DW(D,AW(w,v)),A=DW(A,AW(S,m)),D=AW(D,DW(w,v)),A=AW(A,DW(S,m)),T=D-v,C=A-m,d=v-T*R/N,f=m-C*R/N,d=DW(d,AW(u,v)),f=DW(f,AW(h,m)),d=AW(d,DW(u,v)),f=AW(f,DW(h,m)),T=v-d,C=m-f,D=v+T*N/R,A=m+C*N/R}t.bezierCurveTo(c,p,d,f,v,m),c=D,p=A}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}function hy(t,e){if(t.length===e.length){for(var n=0;no;o++){var a=oy(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function gy(t,e,n,i){var r=e.getBaseAxis(),o=\\\"x\\\"===r.dim||\\\"radius\\\"===r.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;ss;s++){var l=t[s],u=l.coord;if(0>u)i=l;else{if(u>e){r?o.push(n(r,l,e)):i&&o.push(n(i,l,0),n(i,l,e));break}i&&(o.push(n(i,l,0)),i=null),o.push(l),r=l}}return o}function vy(t,e,n){var i=t.getVisual(\\\"visualMeta\\\");if(i&&i.length&&t.count()&&\\\"cartesian2d\\\"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,\\\"x\\\"===r||\\\"y\\\"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=v(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=yy(u,\\\"x\\\"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=p[0].coord-f,m=p[d-1].coord+f,x=m-g;if(.001>x)return\\\"transparent\\\";y(p,function(t){t.offset=(t.coord-g)/x}),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\\\"});var _=new zN(0,0,0,0,p,!0);return _[r]=g,_[r+\\\"2\\\"]=m,_}}}function my(t,e,n){var i=t.get(\\\"showAllSymbol\\\"),r=\\\"auto\\\"===i;if(!i||r){var o=n.getAxesByScale(\\\"ordinal\\\")[0];if(o&&(!r||!xy(o,e))){var a=e.mapDimension(o.dim),s={};return y(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function xy(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;r>a;a+=o)if(1.5*TW.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function _y(t,e){return isNaN(t)||isNaN(e)}function by(t){for(var e=t.length/2;e>0&&_y(t[2*e-2],t[2*e-1]);e--);return e-1}function wy(t,e){return[t[2*e],t[2*e+1]]}function Sy(t,e,n){for(var i,r,o=t.length/2,a=\\\"x\\\"===n?0:1,s=0,l=-1,u=0;o>u;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(e>=i&&r>=e||i>=e&&e>=r){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function My(t){if(t.get([\\\"endLabel\\\",\\\"show\\\"]))return!0;for(var e=0;ei?(i=c,x-=c):_+=t;var r=b+w*i;e.setItemLayout(n,{angle:i,startAngle:b,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:y?rr(t,m,[u,l]):l}),b=r}),NW>x&&p)if(.001>=x){var S=NW/p;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=S,i.startAngle=h+w*n*S,i.endAngle=h+w*(n+1)*S}})}else f=x/_,b=h,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===c?c:t*f;i.startAngle=b,i.endAngle=b+w*r,b+=w*r}})})}function Py(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:\\\"legend\\\"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;rn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var p=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(p)d;d++)if(\\\"outer\\\"===t[d].position&&\\\"labelLine\\\"===t[d].labelAlignTo){var f=t[d].label.x-u;t[d].linePoints[1][0]+=f,t[d].label.x=u}vg(t,l,l+a)&&c(t)}}function Ry(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;pe||n){var c=o.height;if(u&&u.match(\\\"break\\\")){i.setStyle(\\\"backgroundColor\\\",null),i.setStyle(\\\"width\\\",e-l);var p=i.getBoundingRect();i.setStyle(\\\"width\\\",Math.ceil(p.width)),i.setStyle(\\\"backgroundColor\\\",a)}else{var d=e-l,f=h>e?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle(\\\"width\\\",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function Ey(t){return\\\"center\\\"===t.position}function zy(t){function e(t){t.ignore=!0}function n(t){if(!t.ignore)return!0;for(var e in t.states)if(t.states[e].ignore===!1)return!0;return!1}var i,r,o=t.getData(),a=[],s=!1,l=(t.get(\\\"minShowLabelAngle\\\")||0)*zW,u=o.getLayout(\\\"viewRect\\\"),h=o.getLayout(\\\"r\\\"),c=u.width,p=u.x,d=u.y,f=u.height;o.each(function(t){var u=o.getItemGraphicEl(t),d=u.shape,f=u.getTextContent(),g=u.getTextGuideLine(),v=o.getItemModel(t),m=v.getModel(\\\"label\\\"),x=m.get(\\\"position\\\")||v.get([\\\"emphasis\\\",\\\"label\\\",\\\"position\\\"]),_=m.get(\\\"distanceToLabelLine\\\"),b=m.get(\\\"alignTo\\\"),w=or(m.get(\\\"edgeDistance\\\"),c),S=m.get(\\\"bleedMargin\\\"),M=v.getModel(\\\"labelLine\\\"),I=M.get(\\\"length\\\");I=or(I,c);var T=M.get(\\\"length2\\\");if(T=or(T,c),Math.abs(d.endAngle-d.startAngle)O?-1:1)*T,G=V;C=\\\"edge\\\"===b?0>O?p+w:p+c-w:F+(0>O?-_:_),A=G,k=[[E,z],[B,V],[F,G]]}L=N?\\\"center\\\":\\\"edge\\\"===b?O>0?\\\"right\\\":\\\"left\\\":O>0?\\\"left\\\":\\\"right\\\"}var W=Math.PI,H=0,Y=m.get(\\\"rotate\\\");if(D(Y))H=Y*(W/180);else if(\\\"center\\\"===x)H=0;else if(\\\"radial\\\"===Y||Y===!0){var X=0>O?-P+W:-P;H=X}else if(\\\"tangential\\\"===Y&&\\\"outside\\\"!==x&&\\\"outer\\\"!==x){var U=Math.atan2(O,R);0>U&&(U=2*W+U);var Z=R>0;Z&&(U=W+U),H=U-W}if(s=!!H,f.x=C,f.y=A,f.rotation=H,f.setStyle({verticalAlign:\\\"middle\\\"}),N){f.setStyle({align:L});var j=f.states.select;j&&(j.x+=f.x,j.y+=f.y)}else{var q=f.getBoundingRect().clone();q.applyTransform(f.getComputedTransform());var K=(f.style.margin||0)+2.1;q.y-=K/2,q.height+=K,a.push({label:f,labelLine:g,position:x,len:I,len2:T,minTurnAngle:M.get(\\\"minTurnAngle\\\"),maxSurfaceAngle:M.get(\\\"maxSurfaceAngle\\\"),surfaceNormal:new rL(O,R),linePoints:k,textAlign:L,labelDistance:_,labelAlignTo:b,edgeDistance:w,bleedMargin:S,rect:q,unconstrainedWidth:q.width,labelStyleWidth:f.style.width})}u.setTextConfig({inside:N})}}),!s&&t.get(\\\"avoidLabelOverlap\\\")&&Ry(a,i,r,h,c,f,p,d);for(var g=0;gi?!1:!0})}}}function Fy(t){t.registerChartView(VW),t.registerSeriesModel(WW),Ec(\\\"pie\\\",t.registerAction),t.registerLayout(S(Ly,\\\"pie\\\")),t.registerProcessor(Py(\\\"pie\\\")),t.registerProcessor(Vy(\\\"pie\\\"))}function Gy(t,n,i,r){y(iH,function(o,a){var s=l(l({},nH[a],!0),r,!0),u=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n+\\\"Axis.\\\"+a,e}return e(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=pu(this),i=n?fu(t):{},r=e.getTheme();l(t,r.get(a+\\\"Axis\\\")),l(t,this.getDefaultOption()),t.type=Wy(t),n&&du(t,i,n)},i.prototype.optionUpdated=function(){var t=this.option;\\\"category\\\"===t.type&&(this.__ordinalMeta=ZF.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;return\\\"category\\\"===e.type?t?e.data:this.__ordinalMeta.categories:void 0},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=n+\\\"Axis.\\\"+a,i.defaultOption=s,i}(i);t.registerComponentModel(u)}),t.registerSubTypeDefaulter(n+\\\"Axis\\\",Wy)}function Wy(t){return t.type||(t.data?\\\"category\\\":\\\"value\\\")}function Hy(t){return\\\"interval\\\"===t.type||\\\"time\\\"===t.type}function Yy(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?\\\"onZero\\\":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get(\\\"offset\\\")||0,f=\\\"x\\\"===u?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=[\\\"y\\\"===u?f[p[l]]:c[0],\\\"x\\\"===u?f[p[l]]:c[3]],o.rotation=Math.PI/2*(\\\"x\\\"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get([\\\"axisTick\\\",\\\"inside\\\"])&&(o.tickDirection=-o.tickDirection),z(n.labelInside,e.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(o.labelDirection=-o.labelDirection);var v=e.get([\\\"axisLabel\\\",\\\"rotate\\\"]);return o.labelRotate=\\\"top\\\"===l?-v:v,o.z2=1,o}function Xy(t){return\\\"cartesian2d\\\"===t.get(\\\"coordinateSystem\\\")}function Uy(t){var e={xAxisModel:null,yAxisModel:null};return y(e,function(n,i){var r=i.replace(/Model$/,\\\"\\\"),o=t.getReferringComponents(r,iO).models[0];e[i]=o}),e}function Zy(t,e,n){var i=KF.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=lf(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if(\\\"log\\\"===t.type){var p=lH(t.base);u=[lH(u[0])/p,lH(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(t);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=Ad(f),g=u[1]-f*a;else{var v=t.getTicks().length-1;v>a&&(f=Ad(f));var m=f*a;y=Math.ceil(u[1]/f)*f,g=ar(y-m),0>g&&u[0]>=0?(g=0,y=ar(m)):y>0&&u[1]<=0&&(y=0,g=-ar(m))}var x=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*x,y+f*_),i.setInterval.call(t,f),(x||_)&&i.setNiceExtent.call(t,g+f,y-f)}function jy(t,e){return t.getCoordSysModel()===e}function qy(t,e,n,i){function r(t){return t.dim+\\\"_\\\"+t.index}n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,a=t[e],s=n.model,l=s.get([\\\"axisLine\\\",\\\"onZero\\\"]),u=s.get([\\\"axisLine\\\",\\\"onZeroAxisIndex\\\"]);if(l){if(null!=u)Ky(a[u])&&(o=a[u]);else for(var h in a)if(a.hasOwnProperty(h)&&Ky(a[h])&&!i[r(a[h])]){o=a[h];break}o&&(i[r(o)]=!0)}}function Ky(t){return t&&\\\"category\\\"!==t.type&&\\\"time\\\"!==t.type&&pf(t)}function $y(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord=\\\"x\\\"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=\\\"x\\\"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function Jy(t,e,n,i){var r,o,a=fr(n-t),s=i[0]>i[1],l=\\\"start\\\"===e&&!s||\\\"start\\\"!==e&&s;return gr(a-hH/2)?(o=l?\\\"bottom\\\":\\\"top\\\",r=\\\"center\\\"):gr(a-1.5*hH)?(o=l?\\\"top\\\":\\\"bottom\\\",r=\\\"center\\\"):(o=\\\"middle\\\",r=1.5*hH>a&&a>hH/2?l?\\\"left\\\":\\\"right\\\":l?\\\"right\\\":\\\"left\\\"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Qy(t,e,n){if(!mf(t.axis)){var i=t.get([\\\"axisLabel\\\",\\\"showMinLabel\\\"]),r=t.get([\\\"axisLabel\\\",\\\"showMaxLabel\\\"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],p=n[n.length-2];i===!1?(tv(o),tv(u)):ev(o,a)&&(i?(tv(a),tv(h)):(tv(o),tv(u))),r===!1?(tv(s),tv(c)):ev(l,s)&&(r?(tv(l),tv(p)):(tv(s),tv(c)))}}function tv(t){t&&(t.ignore=!0)}function ev(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Ve([]);return He(r,r,-t.rotation),n.applyTransform(Ge([],r,t.getLocalTransform())),i.applyTransform(Ge([],r,e.getLocalTransform())),n.intersect(i)}}function nv(t){return\\\"middle\\\"===t||\\\"center\\\"===t}function iv(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function dv(t){var e=fv(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get(\\\"status\\\"),a=n.get(\\\"value\\\");null!=a&&(a=i.parse(a));var s=yv(n);null==o&&(r.status=s?\\\"show\\\":\\\"hide\\\");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0?\\\"borderColor\\\":\\\"borderColor0\\\"])||n.get([\\\"itemStyle\\\",t>0?\\\"color\\\":\\\"color0\\\"]);0===t&&(i=n.get([\\\"itemStyle\\\",\\\"borderColorDoji\\\"]));var r=n.getModel(\\\"itemStyle\\\").getItemStyle(CH);e.useStyle(r),e.style.fill=null,e.style.stroke=i}function kv(t){t&&M(t.series)&&y(t.series,function(t){A(t)&&\\\"k\\\"===t.type&&(t.type=\\\"candlestick\\\")})}function Lv(t,e,n,i,r,o){var a;return a=n>i?-1:i>n?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}function Pv(t,e){var n,i=t.getBaseAxis(),r=\\\"category\\\"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=or(B(t.get(\\\"barMaxWidth\\\"),r),r),a=or(B(t.get(\\\"barMinWidth\\\"),1),r),s=t.get(\\\"barWidth\\\");return null!=s?or(s,r):Math.max(Math.min(r/2,o),a)}function Ov(t){t.registerChartView(DH),t.registerSeriesModel(RH),t.registerPreprocessor(kv),t.registerVisual(FH),t.registerLayout(GH)}function Rv(t){t.eachSeriesByType(\\\"radar\\\",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();y(r,function(t,o){e.each(e.mapDimension(r[o].dim),function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=Nv(r)?r:Ev(i)})}),e.each(function(t){var r=_(n[t],function(t){return Nv(t)})||Ev(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])})}})}function Nv(t){return!isNaN(t[0])&&!isNaN(t[1])}function Ev(t){return[t.cx,t.cy]}function zv(t){var e=t.polar;if(e){M(e)||(e=[e]);var n=[];y(e,function(e){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],M(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)}),t.polar=n}y(t.series,function(t){t&&\\\"radar\\\"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}function Bv(t,e){return c({show:e},t)}function Vv(t){t.registerCoordinateSystem(\\\"radar\\\",qH),t.registerComponentModel(XH),t.registerComponentView(ZH),t.registerVisual({seriesType:\\\"radar\\\",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,\\\"legendIcon\\\",\\\"roundRect\\\")}),e.setVisual(\\\"legendIcon\\\",\\\"roundRect\\\")}})}function Fv(t){If(Vv),t.registerChartView(WH),t.registerSeriesModel(HH),t.registerLayout(Rv),t.registerProcessor(Py(\\\"radar\\\")),t.registerPreprocessor(zv)}function Gv(t,e,n){var i=t[1]-t[0];e=v(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var r=e.length,o=0;return function(t){var i;for(i=o;r>i;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&r>i&&n[i]}}function Wv(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function Hv(t){var e=t.dimensions;return\\\"lng\\\"===e[0]&&\\\"lat\\\"===e[1]}function Yv(t){t.registerChartView(JH),t.registerSeriesModel(QH)}function Xv(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function Uv(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){$v(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=Jv(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function Zv(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function jv(t){return arguments.length?t:im}function qv(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Kv(t,e){return uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function $v(t){for(var e=t.children,n=e.length,i=0,r=0;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function Jv(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=Qv(s),o=tm(o),s&&o;){r=Qv(r),a=tm(a),r.hierNode.ancestor=t;var p=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);p>0&&(nm(em(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!Qv(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!tm(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}function Qv(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tm(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function em(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function nm(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function im(t,e){return t.parentNode===e.parentNode?1:2}function rm(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function om(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function am(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}function sm(t,e,n){var i=hm(t);i[e]=n}function lm(t,e,n){var i=hm(t),r=i[e];r===n&&(i[e]=null)}function um(t,e){return!!hm(t)[e]}function hm(t){return t[nY]||(t[nY]={})}function cm(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(tL(i.event),pm(t,e,n,i,r))}function pm(t,e,n,i,r){r.isAvailableBehavior=Lk(dm,null,n,i),t.trigger(e,r)}function dm(t,e,n){var i=n[t];return!t||i&&(!T(i)||e.event[i+\\\"Key\\\"])}function fm(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!rY.hasOwnProperty(i.mainType)&&r&&r.model!==n}function gm(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function ym(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual(\\\"style\\\").fill,u=a.isExpand===!1&&0!==a.children.length?l:\\\"#fff\\\",h=t.tree.root,c=a.parentNode===h?a:a.parentNode||a,p=t.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?(n=new TW(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,As(n,{x:g.x,y:g.y},r);var y=n.getSymbolPath();if(\\\"radial\\\"===r.get(\\\"layout\\\")){var v=h.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(g.x===m.x&&a.isExpand===!0&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};_=Math.atan2(w.y-m.y,w.x-m.x),0>_&&(_=2*Math.PI+_),b=w.x_&&(_=2*Math.PI+_),0===a.children.length||0!==a.children.length&&a.isExpand===!1?(b=g.xm.x,b||(_-=Math.PI));var S=b?\\\"left\\\":\\\"right\\\",M=s.getModel(\\\"label\\\"),I=M.get(\\\"rotate\\\"),T=I*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:M.get(\\\"position\\\")||S,rotation:null==I?-_:T,origin:\\\"center\\\"}),C.setStyle(\\\"verticalAlign\\\",\\\"middle\\\"))}var D=s.get([\\\"emphasis\\\",\\\"focus\\\"]),A=\\\"relative\\\"===D?j(a.getAncestorsIndices(),a.getDescendantIndices()):\\\"ancestor\\\"===D?a.getAncestorsIndices():\\\"descendant\\\"===D?a.getDescendantIndices():null;A&&(TR(n).focus=A),vm(r,a,h,n,f,d,g,i),n.__edge&&(n.onHoverStateChange=function(e){if(\\\"blur\\\"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===OR||Ia(n.__edge,e)}})}function vm(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get(\\\"edgeShape\\\"),h=t.get(\\\"layout\\\"),p=t.getOrient(),d=t.get([\\\"lineStyle\\\",\\\"curveness\\\"]),f=t.get(\\\"edgeForkPosition\\\"),g=l.getModel(\\\"lineStyle\\\").getLineStyle(),y=i.__edge;if(\\\"curve\\\"===u)e.parentNode&&e.parentNode!==n&&(y||(y=i.__edge=new PN({shape:bm(h,p,d,r,r)})),As(y,{shape:bm(h,p,d,o,a)},t));else if(\\\"polyline\\\"===u&&\\\"orthogonal\\\"===h&&e!==n&&e.children&&0!==e.children.length&&e.isExpand===!0){for(var v=e.children,m=[],x=0;x=0){var i=n.getData().tree.root,r=t.targetNode;if(T(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function Om(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function Rm(t,e){var n=Om(t);return p(n,e)>=0}function Nm(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}function Em(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function Bm(t,e){t.eachSeriesByType(\\\"tree\\\",function(t){Vm(t,e)})}function Vm(t,e){var n=Kv(t,e);t.layoutInfo=n;var i=t.get(\\\"layout\\\"),r=0,o=0,a=null;\\\"radial\\\"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=jv(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=jv());var s=t.getData().tree.root,l=s.children[0];if(l){Xv(s),Em(l,Uv,a),s.hierNode.modifier=-l.hierNode.prelim,zm(l,Zv);var u=l,h=l,c=l;zm(l,function(t){var e=t.getLayout().x;eh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)});var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if(\\\"radial\\\"===i)f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),zm(l,function(t){y=(t.getLayout().x+d)*f,v=(t.depth-1)*g;var e=qv(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)});else{var m=t.getOrient();\\\"RL\\\"===m||\\\"LR\\\"===m?(g=o/(h.getLayout().x+p+d),f=r/(c.depth-1||1),zm(l,function(t){v=(t.getLayout().x+d)*g,y=\\\"LR\\\"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)})):(\\\"TB\\\"===m||\\\"BT\\\"===m)&&(f=r/(h.getLayout().x+p+d),g=o/(c.depth-1||1),zm(l,function(t){y=(t.getLayout().x+d)*f,v=\\\"TB\\\"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)}))}}}function Fm(t){t.eachSeriesByType(\\\"tree\\\",function(t){var e=t.getData(),n=e.tree;n.eachNode(function(t){var n=t.getModel(),i=n.getModel(\\\"itemStyle\\\").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\");h(r,i)})})}function Gm(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Wm(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Gm(t,s),i)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}t.scaleX*=a,t.scaleY*=a;var h=(e.originX-t.x)*(a-1),c=(e.originY-t.y)*(a-1);t.x-=h,t.y-=c,t.updateTransform(),t.setCenter(Gm(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}function Hm(t){t.registerAction({type:\\\"treeExpandAndCollapse\\\",event:\\\"treeExpandAndCollapse\\\",update:\\\"update\\\"},function(t,e){e.eachComponent({mainType:\\\"series\\\",subType:\\\"tree\\\",query:t},function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),t.registerAction({type:\\\"treeRoam\\\",event:\\\"treeRoam\\\",update:\\\"none\\\"},function(t,e,n){e.eachComponent({mainType:\\\"series\\\",subType:\\\"tree\\\",query:t},function(e){var i=e.coordinateSystem,r=Wm(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)})})}function Ym(t){t.registerChartView(sY),t.registerSeriesModel(cY),t.registerLayout(Bm),t.registerVisual(Fm),Hm(t)}function Xm(t){for(var e=0;e1;)n=n.parentNode;var r=Tu(t.ecModel,n.name||n.dataIndex+\\\"\\\",i);e.setVisual(\\\"decal\\\",r)})}function Zm(t){var e=0;y(t.children,function(t){Zm(t);var n=t.value;M(n)&&(n=n[0]),e+=n});var n=t.value;M(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),0>n&&(n=0),M(t.value)?t.value[0]=n:t.value=n}function jm(t,e){var n=Ar(e.get(\\\"color\\\")),i=Ar(e.get([\\\"aria\\\",\\\"decal\\\",\\\"decals\\\"]));if(n){t=t||[];var r,o;y(t,function(t){var e=new gE(t),n=e.get(\\\"color\\\"),i=e.get(\\\"decal\\\");(e.get([\\\"itemStyle\\\",\\\"color\\\"])||n&&\\\"none\\\"!==n)&&(r=!0),(e.get([\\\"itemStyle\\\",\\\"decal\\\"])||i&&\\\"none\\\"!==i)&&(o=!0)});var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}function qm(t,e,n,i,r,o){var a=[[r?t:t-yY,e],[t+n,e],[t+n,e+i],[r?t:t-yY,e+i]];return!o&&a.splice(2,0,[t+n+yY,e+i/2]),!r&&a.push([t,e+i/2]),a}function Km(t,e,n){TR(t).eventData={componentType:\\\"series\\\",componentSubType:\\\"treemap\\\",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:\\\"treemap\\\",selfType:\\\"breadcrumb\\\",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Nm(n,e)}}function $m(){return new mY}function Jm(){return{nodeGroup:[],background:[],content:[]}}function Qm(t,e,n,i,r,o,a,s,l,u){function c(e,n,i){var r=TR(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:w,height:S,r:N}),I)d(n);else{n.invisible=!1;var o=a.getVisual(\\\"style\\\"),s=o.stroke,l=DY(L);l.fill=s;var u=CY(P);u.fill=P.get(\\\"borderColor\\\");var h=CY(O);h.fill=O.get(\\\"borderColor\\\");var c=CY(R);if(c.fill=R.get(\\\"borderColor\\\"),i){var p=w-2*M;f(n,s,o.opacity,{x:M,y:0,width:p,height:A})}else n.removeTextContent();n.setStyle(l),n.ensureState(\\\"emphasis\\\").style=u,n.ensureState(\\\"blur\\\").style=h,n.ensureState(\\\"select\\\").style=c,La(n)}e.add(n)}function p(e,n){var i=TR(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(w-2*M,0),o=Math.max(S-2*M,0);if(n.culling=!0,n.setShape({x:M,y:M,width:r,height:o,r:N}),I)d(n);else{n.invisible=!1;var s=a.getVisual(\\\"style\\\"),l=s.fill,u=DY(L);u.fill=l,u.decal=s.decal;var h=CY(P),c=CY(O),p=CY(R);f(n,l,s.opacity,null),n.setStyle(u),n.ensureState(\\\"emphasis\\\").style=h,n.ensureState(\\\"blur\\\").style=c,n.ensureState(\\\"select\\\").style=p,La(n)}e.add(n)}function d(t){!t.invisible&&o.push(t)}function f(e,n,i,r){var o=b.getModel(r?SY:wY),s=Wr(b.get(\\\"name\\\"),null),l=o.getShallow(\\\"show\\\");hl(e,cl(b,r?SY:wY),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,c=G(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-c[1]-c[3],0),n=Math.max((r?r.height:e.shape.height)-c[0]-c[2],0);(h.width!==t||h.height!==n)&&u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow=\\\"truncate\\\",g(h,r,x);var p=u.getState(\\\"emphasis\\\");g(p?p.style:null,r,x)}}function g(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get(\\\"drillDownIcon\\\",!0);e.text=o?o+\\\" \\\"+r:r}}function y(t,i,o,a){var s=null!=C&&n[t][C],l=r[t];return s?(n[t][C]=null,v(l,s)):I||(s=new i,s instanceof SO&&(s.z2=tx(o,a)),m(l,s)),e[t][T]=s}function v(t,e){var n=t[T]={};e instanceof xY?(n.oldX=e.x,n.oldY=e.y):n.oldShape=h({},e.shape)}function m(t,e){var n=t[T]={},o=a.parentNode,s=e instanceof HP;if(o&&(!i||\\\"drillDown\\\"===i.direction)){var l=0,u=0,h=r.background[o.getRawIndex()];!i&&h&&h.oldShape&&(l=h.oldShape.width,u=h.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}if(a){var x=a.getLayout(),_=t.getData(),b=a.getModel();if(_.setItemGraphicEl(a.dataIndex,null),x&&x.isInView){var w=x.width,S=x.height,M=x.borderWidth,I=x.invisible,T=a.getRawIndex(),C=s&&s.getRawIndex(),D=a.viewChildren,A=x.upperHeight,k=D&&D.length,L=b.getModel(\\\"itemStyle\\\"),P=b.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),O=b.getModel([\\\"blur\\\",\\\"itemStyle\\\"]),R=b.getModel([\\\"select\\\",\\\"itemStyle\\\"]),N=L.get(\\\"borderRadius\\\")||0,E=y(\\\"nodeGroup\\\",xY);if(E){if(l.add(E),E.x=x.x||0,E.y=x.y||0,E.markRedraw(),AY(E).nodeWidth=w,AY(E).nodeHeight=S,x.isAboveViewRoot)return E;var z=y(\\\"background\\\",_Y,u,IY);z&&c(E,z,k&&x.upperLabelHeight);var B=b.getModel(\\\"emphasis\\\"),V=B.get(\\\"focus\\\"),F=B.get(\\\"blurScope\\\"),W=B.get(\\\"disabled\\\"),H=\\\"ancestor\\\"===V?a.getAncestorsIndices():\\\"descendant\\\"===V?a.getDescendantIndices():V;if(k)is(E)&&ns(E,!1),z&&(ns(z,!W),_.setItemGraphicEl(a.dataIndex,z),ts(z,H,F));else{var Y=y(\\\"content\\\",_Y,u,TY);Y&&p(E,Y),z.disableMorphing=!0,z&&is(z)&&ns(z,!1),ns(E,!W),_.setItemGraphicEl(a.dataIndex,E),ts(E,H,F)}return E}}}}function tx(t,e){return t*MY+e}function ex(t){var e=t.pieceList;t.hasSpecialVisual=!1,y(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}function nx(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(LY(e,function(t,e){n[t]=e}),!M(i)){var r=[];A(i)?LY(i,function(t,e){var i=n[e];r[null!=i?i:OY]=t}):r[OY]=i,i=cx(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function ix(t,e){var n=t.visual,i=[];A(n)?LY(n,function(t){i.push(t)}):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),cx(t,i)}function rx(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i(\\\"color\\\",t(n(\\\"color\\\"),r))},_normalizedToVisual:ux([0,1])}}function ox(t){var e=this.option.visual;return e[Math.round(rr(t,[0,1],[0,e.length-1],!0))]||{}}function ax(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function sx(t){var e=this.option.visual;return e[this.option.loop&&t!==OY?t%e.length:t]}function lx(){return this.option.visual[0]}function ux(t){return{linear:function(e){return rr(e,t,this.option.visual,!0)},category:sx,piecewise:function(e,n){var i=hx.call(this,n);return null==i&&(i=rr(e,t,this.option.visual,!0)),i},fixed:lx}}function hx(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=RY.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function cx(t,e){return t.visual=e,\\\"color\\\"===t.type&&(t.parsedVisual=v(e,function(t){var e=En(t);return e||[0,0,0,1]})),e}function px(t,e,n){return t?n>=e:n>e}function dx(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(EY),u=fx(l,e,i),h=a.ensureUniqueItemVisual(t.dataIndex,\\\"style\\\"),c=l.get(\\\"borderColor\\\"),p=l.get(\\\"borderColorSaturation\\\");null!=p&&(s=gx(u),c=yx(p,s)),h.stroke=c;var d=t.viewChildren;if(d&&d.length){var f=mx(t,r,o,l,u,d);y(d,function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=_x(r,u,t,e,f,i);dx(t,o,n,i)}})}else s=gx(u),h.fill=s}}function fx(t,e,n){var i=h({},e),r=n.designatedVisualItemStyle;return y([\\\"color\\\",\\\"colorAlpha\\\",\\\"colorSaturation\\\"],function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)}),i}function gx(t){var e=vx(t,\\\"color\\\");if(e){var n=vx(t,\\\"colorAlpha\\\"),i=vx(t,\\\"colorSaturation\\\");return i&&(e=Hn(e,null,null,i)),n&&(e=Yn(e,n)),e}}function yx(t,e){return null!=e?Hn(e,null,null,t):null}function vx(t,e){var n=t[e];return null!=n&&\\\"none\\\"!==n?n:void 0}function mx(t,e,n,i,r,o){if(o&&o.length){var a=xx(e,\\\"color\\\")||null!=r.color&&\\\"none\\\"!==r.color&&(xx(e,\\\"colorAlpha\\\")||xx(e,\\\"colorSaturation\\\"));if(a){var s=e.get(\\\"visualMin\\\"),l=e.get(\\\"visualMax\\\"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var h=e.get(\\\"colorMappingBy\\\"),c={type:a.name,dataExtent:u,visual:a.range};\\\"color\\\"!==c.type||\\\"index\\\"!==h&&\\\"id\\\"!==h?c.mappingMethod=\\\"linear\\\":(c.mappingMethod=\\\"category\\\",c.loop=!0);var p=new RY(c);return zY(p).drColorMappingBy=h,p}}}function xx(t,e){var n=t.get(e);return M(n)&&n.length?{name:e,range:n}:null}function _x(t,e,n,i,r,o){var a=h({},e);if(r){var s=r.type,l=\\\"color\\\"===s&&zY(r).drColorMappingBy,u=\\\"index\\\"===l?i:\\\"id\\\"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get(\\\"visualDimension\\\"));a[s]=r.mapValueToVisual(u)}return a}function bx(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(HY),u=s.get(YY)/2,h=Px(s),c=Math.max(l,h),p=l-u,d=c-u;t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),r=VY(r-2*p,0),o=VY(o-p-d,0);var f=r*o,g=Sx(t,s,f,e,n,i);if(g.length){var y={x:p,y:d,width:r,height:o},v=FY(r,o),m=1/0,x=[];x.area=0;for(var _=0,b=g.length;b>_;){var w=g[_];x.push(w),x.area+=w.getLayout().area;var S=Cx(x,v,e.squareRatio);m>=S?(_++,m=S):(x.area-=x.pop().getLayout().area,Dx(x,v,y,u,!1),v=FY(y.width,y.height),x.length=x.area=0,m=1/0)}if(x.length&&Dx(x,v,y,u,!0),!n){var M=s.get(\\\"childrenVisibleMin\\\");null!=M&&M>f&&(n=!0)}for(var _=0,b=g.length;b>_;_++)bx(g[_],e,n,i+1)}}}function Sx(t,e,n,i,r,o){var a=t.children||[],s=i.sort;\\\"asc\\\"!==s&&\\\"desc\\\"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=x(a,function(t){return!t.isRemoved()}),Ix(a,s);var u=Tx(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=Mx(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var h=0,c=a.length;c>h;h++){var p=a[h].getValue()/u.sum*n;a[h].setLayout({area:p})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function Mx(t,e,n,i,r){if(!i)return n;for(var o=t.get(\\\"visibleMin\\\"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r[\\\"asc\\\"===i?a-l-1:l].getValue();o>u/n*e&&(s=l,n-=u)}return\\\"asc\\\"===i?r.splice(0,a-s):r.splice(s,a-s),n}function Ix(t,e){return e&&t.sort(function(t,n){var i=\\\"asc\\\"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();\\nreturn 0===i?\\\"asc\\\"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}),t}function Tx(t,e,n){for(var i=0,r=0,o=e.length;o>r;r++)i+=e[r].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],WY(e,function(t){var e=t.getValue(s);ea[1]&&(a[1]=e)})):a=[0/0,0/0],{sum:i,dataExtent:a}}function Cx(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;s>o;o++)a=t[o].getLayout().area,a&&(r>a&&(r=a),a>i&&(i=a));var l=t.area*t.area,u=e*e*n;return l?VY(u*i/l,l/(u*r)):1/0}function Dx(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=[\\\"x\\\",\\\"y\\\"],l=[\\\"width\\\",\\\"height\\\"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;p>c;c++){var d=t[c],f={},g=h?d.getLayout().area/h:0,y=f[l[a]]=VY(h-2*i,0),v=n[s[o]]+n[l[o]]-u,m=c===p-1||g>v?v:g,x=f[l[o]]=VY(m-2*i,0);f[s[a]]=n[s[a]]+FY(i,y/2),f[s[o]]=u+FY(i,x/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function Ax(t,e,n,i,r){var o=(e||{}).node,a=[i,r];if(!o||o===n)return a;for(var s,l=i*r,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var h=0,c=s.children,p=0,d=c.length;d>p;p++)h+=c[p].getValue();var f=o.getValue();if(0===f)return a;u*=h/f;var g=s.getModel(),y=g.get(HY),v=Math.max(y,Px(g));u+=4*y*y+(3*y+v)*Math.pow(u,.5),u>$P&&(u=$P),o=s}l>u&&(u=l);var m=Math.pow(u/l,.5);return[i*m,r*m]}function kx(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;for(var a=[o.width/2,o.height/2],s=r;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function Lx(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new dL(e.x-o.x,e.y-o.y,e.width,e.height);WY(t.viewChildren||[],function(t){Lx(t,l,n,i,r+1)})}}function Px(t){return t.get(XY)?t.get(UY):0}function Ox(t){t.registerSeriesModel(dY),t.registerChartView(kY),t.registerVisual(BY),t.registerLayout(ZY),Xm(t)}function Rx(t){t.registerAction({type:$Y,update:\\\"updateView\\\"},function(t,e){function n(e){var n=Pm(t,[$Y],e);if(n){var i=e.getViewRoot();i&&(t.direction=Rm(i,n.node)?\\\"rollUp\\\":\\\"drillDown\\\"),e.resetViewRoot(n.node)}}e.eachComponent({mainType:\\\"series\\\",subType:\\\"sunburst\\\",query:t},n)}),t.registerAction({type:JY,update:\\\"none\\\"},function(t,e,n){function i(e){var n=Pm(t,[JY],e);n&&(t.dataIndex=n.node.dataIndex)}t=h({},t),e.eachComponent({mainType:\\\"series\\\",subType:\\\"sunburst\\\",query:t},i),n.dispatchAction(h(t,{type:\\\"highlight\\\"}))}),t.registerAction({type:QY,update:\\\"updateView\\\"},function(t,e,n){t=h({},t),n.dispatchAction(h(t,{type:\\\"downplay\\\"}))})}function Nx(t){var e=0;y(t.children,function(t){Nx(t);var n=t.value;M(n)&&(n=n[0]),e+=n});var n=t.value;M(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),0>n&&(n=0),M(t.value)?t.value[0]=n:t.value=n}function Ex(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get(\\\"center\\\"),i=t.get(\\\"radius\\\");M(i)||(i=[0,i]),M(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=or(e[0],r),l=or(e[1],o),u=or(i[0],a/2),h=or(i[1],a/2),c=-t.get(\\\"startAngle\\\")*nX,p=t.get(\\\"minAngle\\\")*nX,d=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get(\\\"sort\\\");null!=v&&zx(f,v);var m=0;y(f.children,function(t){!isNaN(t.getValue())&&m++});var x=f.getValue(),_=Math.PI/(x||m)*2,b=f.depth>0,w=f.height-(b?-1:1),S=(h-u)/(w||1),I=t.get(\\\"clockwise\\\"),T=t.get(\\\"stillShowZeroSum\\\"),C=I?1:-1,D=function(e,n){if(e){var i=n;if(e!==d){var r=e.getValue(),o=0===x&&T?_:r*_;p>o&&(o=p),i=n+C*o;var h=e.depth-g-(b?-1:1),c=u+S*h,f=u+S*(h+1),v=t.getLevelModel(e);if(v){var m=v.get(\\\"r0\\\",!0),w=v.get(\\\"r\\\",!0),M=v.get(\\\"radius\\\",!0);null!=M&&(m=M[0],w=M[1]),null!=m&&(c=or(m,a/2)),null!=w&&(f=or(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:I,cx:s,cy:l,r0:c,r:f})}if(e.children&&e.children.length){var A=0;y(e.children,function(t){A+=D(t,n+A)})}return i-n}};if(b){var A=u,k=u+S,L=2*Math.PI;d.setLayout({angle:L,startAngle:c,endAngle:c+L,clockwise:I,cx:s,cy:l,r0:A,r:k})}D(f,c)})}function zx(t,e){var n=t.children||[];t.children=Bx(n,e),n.length&&y(t.children,function(t){zx(t,e)})}function Bx(t,e){if(I(e)){var n=v(t,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}});return n.sort(function(t,n){return e(t.params,n.params)}),v(n,function(e){return t[e.index]})}var i=\\\"asc\\\"===e;return t.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n})}function Vx(t){function e(t,e,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=e.getColorFromPalette(r.name||r.dataIndex+\\\"\\\",n);return t.depth>1&&T(o)&&(o=Vn(o,(t.depth-1)/(i-1)*.5)),o}var n={};t.eachSeriesByType(\\\"sunburst\\\",function(t){var n=t.getData(),i=n.tree;i.eachNode(function(r){var o=r.getModel(),a=o.getModel(\\\"itemStyle\\\").getItemStyle();a.fill||(a.fill=e(r,t,i.root.height));var s=n.ensureUniqueItemVisual(r.dataIndex,\\\"style\\\");h(s,a)})})}function Fx(t){t.registerChartView(tX),t.registerSeriesModel(eX),t.registerLayout(S(Ex,\\\"sunburst\\\")),t.registerProcessor(S(Py,\\\"sunburst\\\")),t.registerVisual(Vx),Rx(t)}function Gx(t){if(T(t)){var e=new DOMParser;t=e.parseFromString(t,\\\"text/xml\\\")}var n=t;for(9===n.nodeType&&(n=n.firstChild);\\\"svg\\\"!==n.nodeName.toLowerCase()||1!==n.nodeType;)n=n.nextSibling;return n}function Wx(t,e){var n=t.getAttribute(\\\"gradientUnits\\\");\\\"userSpaceOnUse\\\"===n&&(e.global=!0)}function Hx(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&\\\"stop\\\"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute(\\\"offset\\\"),r=void 0;r=i&&i.indexOf(\\\"%\\\")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};Jx(n,o,o);var a=o.stopColor||n.getAttribute(\\\"stop-color\\\")||\\\"#000000\\\";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function Yx(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),c(e.__inheritedStyle,t.__inheritedStyle))}function Xx(t){for(var e=Kx(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=Kx(a);switch(r=r||Be(),s){case\\\"translate\\\":We(r,r,[parseFloat(l[0]),parseFloat(l[1]||\\\"0\\\")]);break;case\\\"scale\\\":Ye(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case\\\"rotate\\\":He(r,r,-parseFloat(l[0])*dX);break;case\\\"skewX\\\":var u=Math.tan(parseFloat(l[0])*dX);Ge(r,[1,0,u,1,0,0],r);break;case\\\"skewY\\\":var h=Math.tan(parseFloat(l[0])*dX);Ge(r,[1,h,0,1,0,0],r);break;case\\\"matrix\\\":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}function Jx(t,e,n){var i=t.getAttribute(\\\"style\\\");if(i){fX.lastIndex=0;for(var r;null!=(r=fX.exec(i));){var o=r[1],a=$(rX,o)?rX[o]:null;a&&(e[a]=r[2]);var s=$(aX,o)?aX[o]:null;s&&(n[s]=r[2])}}}function Qx(t,e,n){for(var i=0;i=0)&&(p=r);var d=a?{normal:{align:\\\"center\\\",verticalAlign:\\\"middle\\\"}}:null;hl(e,cl(i),{labelFetcher:p,labelDataIndex:c,defaultText:n},d);var f=e.getTextContent();if(f&&(PX(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+\\\"%\\\",(a[1]-g.y)/g.height*100+\\\"%\\\"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function d_(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):TR(e).eventData={componentType:\\\"geo\\\",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function f_(t,e,n,i,r){t.data||ol({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get(\\\"tooltip\\\")})}function g_(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get(\\\"selectedMode\\\");var o=i.getModel(\\\"emphasis\\\"),a=o.get(\\\"focus\\\");return Qa(e,a,o.get(\\\"blurScope\\\"),o.get(\\\"disabled\\\")),t.isGeo&&rs(e,r,n),a}function y_(t,e,n){function i(){o=[]}function r(){o.length&&(a.push(o),o=[])}var o,a=[],s=e({polygonStart:i,polygonEnd:r,lineStart:i,lineEnd:r,point:function(t,e){isFinite(t)&&isFinite(e)&&o.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),y(t,function(t){s.lineStart();for(var e=0;eh;h++)s=Math.min(s,n[o][h]),l=Math.max(l,n[o][h]),a+=n[o][h];var c;return c=\\\"min\\\"===e?s:\\\"max\\\"===e?l:\\\"average\\\"===e?a/u:a,0===u?0/0:c})}function m_(t){var e={};t.eachSeriesByType(\\\"map\\\",function(t){var n=t.getHostGeoModel(),i=n?\\\"o\\\"+n.id:\\\"i\\\"+t.getMapType();(e[i]=e[i]||[]).push(t)}),y(e,function(t){for(var e=v_(v(t,function(t){return t.getData()}),t[0].get(\\\"mapValueCalculation\\\")),n=0;n=u;u++){var h=u/100,c=o.project([t+s*h,e+l*h]);me(i,i,c),xe(r,r,c)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else;}var c,p,d=this.getBoundingRect(),f=t.get(\\\"layoutCenter\\\"),g=t.get(\\\"layoutSize\\\"),y=e.getWidth(),v=e.getHeight(),m=d.width/d.height*this.aspectScale,x=!1;f&&g&&(c=[or(f[0],y),or(f[1],v)],p=or(g,Math.min(y,v)),isNaN(c[0])||isNaN(c[1])||isNaN(p)||(x=!0));var _;if(x)_={},m>1?(_.width=p,_.height=p/m):(_.height=p,_.width=p*m),_.y=c[1]-_.height/2,_.x=c[0]-_.width/2;else{var b=t.getBoxLayoutParams();b.aspect=m,_=uu(b,{width:y,height:v})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(t.get(\\\"center\\\"),e),this.setZoom(t.get(\\\"zoom\\\"))}function w_(t,e){y(e.get(\\\"geoCoord\\\"),function(e,n){t.addGeoCoord(n,e)})}function S_(t,e,n){CX.registerMap(t,e,n)}function M_(t){function e(e,n){n.update=\\\"geo:updateSelectStatus\\\",t.registerAction(n,function(t,n){var i={},r=[];return n.eachComponent({mainType:\\\"geo\\\",query:t},function(n){n[e](t.name);var o=n.coordinateSystem;y(o.regions,function(t){i[t.name]=n.isSelected(t.name)||!1});var a=[];y(i,function(t,e){i[e]&&a.push(e)}),r.push({geoIndex:n.componentIndex,name:a})}),{selected:i,allSelected:r,name:t.name}})}t.registerCoordinateSystem(\\\"geo\\\",FX),t.registerComponentModel(GX),t.registerComponentView(WX),t.registerImpl(\\\"registerMap\\\",S_),t.registerImpl(\\\"getMap\\\",function(t){return CX.getMapForUser(t)}),e(\\\"toggleSelected\\\",{type:\\\"geoToggleSelect\\\",event:\\\"geoselectchanged\\\"}),e(\\\"select\\\",{type:\\\"geoSelect\\\",event:\\\"geoselected\\\"}),e(\\\"unSelect\\\",{type:\\\"geoUnSelect\\\",event:\\\"geounselected\\\"}),t.registerAction({type:\\\"geoRoam\\\",event:\\\"geoRoam\\\",update:\\\"updateTransform\\\"},function(t,e,n){var i=t.componentType||\\\"series\\\";e.eachComponent({mainType:i,query:t},function(e){var r=e.coordinateSystem;if(\\\"geo\\\"===r.type){var o=Wm(r,t,e.get(\\\"scaleLimit\\\"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),\\\"series\\\"===i&&y(e.seriesGroup,function(t){t.setCenter(o.center),t.setZoom(o.zoom)})}})})}function I_(t){If(M_),t.registerChartView(RX),t.registerSeriesModel(NX),t.registerLayout(x_),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,m_),Ec(\\\"map\\\",t.registerAction)}function T_(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}function C_(t){return\\\"_\\\"+t+\\\"Type\\\"}function D_(t,e,n){var i=e.getItemVisual(n,t);if(!i||\\\"none\\\"===i)return i;var r=e.getItemVisual(n,t+\\\"Size\\\"),o=e.getItemVisual(n,t+\\\"Rotate\\\"),a=e.getItemVisual(n,t+\\\"Offset\\\"),s=e.getItemVisual(n,t+\\\"KeepAspect\\\"),l=Wc(r),u=Hc(a||0,l);return i+l+u+(o||\\\"\\\")+(s||\\\"\\\")}function A_(t,e,n){var i=e.getItemVisual(n,t);if(i&&\\\"none\\\"!==i){var r=e.getItemVisual(n,t+\\\"Size\\\"),o=e.getItemVisual(n,t+\\\"Rotate\\\"),a=e.getItemVisual(n,t+\\\"Offset\\\"),s=e.getItemVisual(n,t+\\\"KeepAspect\\\"),l=Wc(r),u=Hc(a||0,l),h=Gc(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return h.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,h.name=t,h}}function k_(t){var e=new UX({name:\\\"line\\\",subPixelOptimize:!0});return L_(e.shape,t),e}function L_(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=0/0,t.cpy1=0/0)}function P_(t){return t.animators&&t.animators.length>0}function O_(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:cl(e)}}function R_(t){return isNaN(t[0])||isNaN(t[1])}function N_(t){return t&&!R_(t[0])&&!R_(t[1])}function E_(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=v(e,function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),u([n,t[0],t[1]])}))}function z_(t){return t instanceof Array||(t=[t,t]),t}function B_(t){t.registerChartView(iU),t.registerSeriesModel(aU),t.registerLayout(nU),t.registerVisual(sU)}function V_(t){var e=t.findComponents({mainType:\\\"legend\\\"});e&&e.length&&t.eachSeriesByType(\\\"graph\\\",function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf(function(t){var n=r.getItemModel(t),i=n.getShallow(\\\"category\\\");if(null!=i){D(i)&&(i=o[i]);for(var a=0;au&&(u=2*Math.PI+u);var c=l[0]o;o++){var y=i[o];y.fixed||(oe(e,l,y.p),xU(y.p,y.p,e,u*g))}for(var o=0;n>o;o++)for(var s=i[o],v=o+1;n>v;v++){var h=i[v];oe(e,h.p,s.p);var c=ae(e);0===c&&(ne(e,Math.random()-.5,Math.random()-.5),c=1);var m=(s.rep+h.rep)/c/c;!s.fixed&&xU(s.pp,s.pp,e,m),!h.fixed&&xU(h.pp,h.pp,e,-m)}for(var x=[],o=0;n>o;o++){var y=i[o];y.fixed||(oe(x,y.p,y.pp),xU(y.p,y.p,x,g),te(y.pp,y.p))}g=.992*g;var _=.01>g;d&&d(i,r,_),t&&t(_)}}}function eb(t){t.eachSeriesByType(\\\"graph\\\",function(t){var e=t.coordinateSystem;if(!e||\\\"view\\\"===e.type)if(\\\"force\\\"===t.get(\\\"layout\\\")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel(\\\"force\\\"),s=a.get(\\\"initLayout\\\");t.preservedPoints?r.each(function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[0/0,0/0])}):s&&\\\"none\\\"!==s?\\\"circular\\\"===s&&$_(t,\\\"value\\\"):U_(t);var l=r.getDataExtent(\\\"value\\\"),u=o.getDataExtent(\\\"value\\\"),h=a.get(\\\"repulsion\\\"),c=a.get(\\\"edgeLength\\\"),p=M(h)?h:[h,h],d=M(c)?c:[c,c];d=[d[1],d[0]];var f=r.mapArray(\\\"value\\\",function(t,e){var n=r.getItemLayout(e),i=rr(t,l,p);return isNaN(i)&&(i=(p[0]+p[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get(\\\"fixed\\\"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),g=o.mapArray(\\\"value\\\",function(e,n){var r=i.getEdgeByIndex(n),o=rr(e,u,d);isNaN(o)&&(o=(d[0]+d[1])/2);var a=r.getModel(),s=V(r.getModel().get([\\\"lineStyle\\\",\\\"curveness\\\"]),-X_(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get(\\\"ignoreForceLayout\\\")}}),y=e.getBoundingRect(),v=tb(f,g,{rect:y,gravity:a.get(\\\"gravity\\\"),friction:a.get(\\\"friction\\\")});v.beforeStep(function(t){for(var e=0,n=t.length;n>e;e++)t[e].fixed&&te(t[e].p,i.getNodeByIndex(e).getLayout())}),v.afterStep(function(t,e){for(var o=0,a=t.length;a>o;o++)t[o].fixed||i.getNodeByIndex(o).setLayout(t[o].p),n[r.getId(o)]=t[o].p;for(var o=0,a=e.length;a>o;o++){var s=e[o],l=i.getEdgeByIndex(o),u=s.n1.p,h=s.n2.p,c=l.getLayout();c=c?c.slice():[],c[0]=c[0]||[],c[1]=c[1]||[],te(c[0],u),te(c[1],h),+s.curveness&&(c[2]=[(u[0]+h[0])/2-(u[1]-h[1])*s.curveness,(u[1]+h[1])/2-(h[0]-u[0])*s.curveness]),l.setLayout(c)}}),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null})}function nb(t,e,n){var i=h(t.getBoxLayoutParams(),{aspect:n});return uu(i,{width:e.getWidth(),height:e.getHeight()})}function ib(t,e){var n=[];return t.eachSeriesByType(\\\"graph\\\",function(t){var i=t.get(\\\"coordinateSystem\\\");if(!i||\\\"view\\\"===i){var r=t.getData(),o=r.mapArray(function(t){var e=r.getItemModel(t);return[+e.get(\\\"x\\\"),+e.get(\\\"y\\\")]}),a=[],s=[];Po(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=nb(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var h=s[0]-a[0],c=s[1]-a[1],p=u.width,d=u.height,f=t.coordinateSystem=new eY;f.zoomLimit=t.get(\\\"scaleLimit\\\"),f.setBoundingRect(a[0],a[1],h,c),f.setViewRect(u.x,u.y,p,d),f.setCenter(t.get(\\\"center\\\"),e),f.setZoom(t.get(\\\"zoom\\\")),n.push(f)}}),n}function rb(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;.9>=h;h+=.1){_U[0]=SU(r[0],o[0],a[0],h),_U[1]=SU(r[1],o[1],a[1],h);var c=IU(MU(_U,e)-l);s>c&&(s=c,i=h)}for(var p=0;32>p;p++){var d=i+u;bU[0]=SU(r[0],o[0],a[0],i),bU[1]=SU(r[1],o[1],a[1],i),wU[0]=SU(r[0],o[0],a[0],d),wU[1]=SU(r[1],o[1],a[1],d);var c=MU(bU,e)-l;if(IU(c)<.01)break;var f=MU(wU,e)-l;u/=2,0>c?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function ob(t,e){var n=[],i=wn,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t){var s=t.getLayout(),l=t.getVisual(\\\"fromSymbol\\\"),u=t.getVisual(\\\"toSymbol\\\");s.__original||(s.__original=[ee(s[0]),ee(s[1])],s[2]&&s.__original.push(ee(s[2])));var h=s.__original;if(null!=s[2]){if(te(r[0],h[0]),te(r[1],h[2]),te(r[2],h[1]),l&&\\\"none\\\"!==l){var c=K_(t.node1),p=rb(r,h[0],c*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&\\\"none\\\"!==u){var c=K_(t.node2),p=rb(r,h[1],c*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}te(s[0],r[0]),te(s[1],r[2]),te(s[2],r[1])}else{if(te(o[0],h[0]),te(o[1],h[1]),oe(a,o[1],o[0]),pe(a,a),l&&\\\"none\\\"!==l){var c=K_(t.node1);re(o[0],o[0],a,c*e)}if(u&&\\\"none\\\"!==u){var c=K_(t.node2);re(o[1],o[1],a,-c*e)}te(s[0],o[0]),te(s[1],o[1])}})}function ab(t){return\\\"view\\\"===t.type}function sb(t){return\\\"_EC_\\\"+t}function lb(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||\\\"value\\\"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}function ub(t,e,n,i,r){for(var o=new CU(i),a=0;a \\\"+d)),u++)}var f,g=n.get(\\\"coordinateSystem\\\");if(\\\"cartesian2d\\\"===g||\\\"polar\\\"===g)f=Sd(t,n);else{var y=wz.get(g),v=y?y.dimensions||[]:[];p(v,\\\"value\\\")<0&&v.concat([\\\"value\\\"]);var m=cd(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new WF(m,n),f.initData(t)}var x=new WF([\\\"value\\\"],n);return x.initData(l,s),r&&r(f,x),wm({mainData:f,struct:o,structAttr:\\\"graph\\\",datas:{node:f,edge:x},datasAttr:{node:\\\"data\\\",edge:\\\"edgeData\\\"}}),o.update(),o}function hb(t){t.registerChartView(TU),t.registerSeriesModel(kU),t.registerProcessor(V_),t.registerVisual(F_),t.registerVisual(W_),t.registerLayout(j_),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Q_),t.registerLayout(eb),t.registerCoordinateSystem(\\\"graphView\\\",{dimensions:eY.dimensions,create:ib}),t.registerAction({type:\\\"focusNodeAdjacency\\\",event:\\\"focusNodeAdjacency\\\",update:\\\"series:focusNodeAdjacency\\\"},J),t.registerAction({type:\\\"unfocusNodeAdjacency\\\",event:\\\"unfocusNodeAdjacency\\\",update:\\\"series:unfocusNodeAdjacency\\\"},J),t.registerAction(LU,function(t,e,n){e.eachComponent({mainType:\\\"series\\\",query:t},function(e){var i=e.coordinateSystem,r=Wm(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)})})}function cb(t,e,n,i,r){var o=t.ends,a=new NU({shape:{points:r?db(o,i,t):o}});return pb(t,a,e,n,r),a}function pb(t,e,n,i,r){var o=n.hostModel,a=QN[r?\\\"initProps\\\":\\\"updateProps\\\"];a(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,\\\"style\\\")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(i),l=s.getModel(\\\"emphasis\\\");es(e,s),Qa(e,l.get(\\\"focus\\\"),l.get(\\\"blurScope\\\"),l.get(\\\"disabled\\\"))}function db(t,e,n){return v(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function fb(t){var e=gb(t);EU(e,function(t){var e=t.seriesModels;e.length&&(yb(t),EU(e,function(e,n){vb(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}function gb(t){var e=[],n=[];return t.eachSeriesByType(\\\"boxplot\\\",function(t){var i=t.getBaseAxis(),r=p(n,i);0>r&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)}),e}function yb(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if(\\\"category\\\"===n.type)e=n.getBandWidth();else{var l=0;EU(i,function(t){l=Math.max(l,t.getData().count())});var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}EU(i,function(t){var n=t.get(\\\"boxWidth\\\");M(n)||(n=[n,n]),s.push([or(n[0],e)||0,or(n[1],e)||0])});var h=.8*e-2,c=h/r*.3,p=(h-c*(r-1))/r,d=p/2-h/2;EU(i,function(t,e){a.push(d),d+=c+p,o.push(Math.min(Math.max(p,s[e][0]),s[e][1]))})}function vb(t,e,n){function i(t,n,i){var r=s.get(n,i),o=[];o[u]=t,o[h]=r;var l;return isNaN(t)||isNaN(r)?l=[0/0,0/0]:(l=a.dataToPoint(o),l[u]+=e),l}function r(t,e,n){var i=e.slice(),r=e.slice();i[u]+=l,r[u]-=l,n?t.push(i,r):t.push(r,i)}function o(t,e){var n=e.slice(),i=e.slice();n[u]-=l,i[u]+=l,t.push(n,i)}var a=t.coordinateSystem,s=t.getData(),l=n/2,u=\\\"horizontal\\\"===t.get(\\\"layout\\\")?0:1,h=1-u,c=[\\\"x\\\",\\\"y\\\"],p=s.mapDimension(c[u]),d=s.mapDimensionsAll(c[h]);if(!(null==p||d.length<5))for(var f=0;fx||x>g){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}function xb(t){t.registerSeriesModel(PU),t.registerChartView(OU),t.registerLayout(fb),t.registerTransform(zU)}function _b(t,e,n){var i=t.model,r=t.getRect(),o=new mR({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a=\\\"horizontal\\\"===i.get(\\\"layout\\\")?\\\"width\\\":\\\"height\\\";return o.setShape(a,0),ks(o,{shape:{width:r.width,height:r.height}},e,n),o}function bb(t,e,n,i){for(var r=[],o=0;oo&&(e[1-i]=e[i]+c.sign*o),e}function Ob(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:0>n?1:e?-1:1}}function Rb(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}function Nb(t,e){return qU(KU(t,e[0]),e[1])}function Eb(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function zb(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return tuZ}function Kb(t){var e=t.length-1;return 0>e&&(e=0),[t[0],t[e]]}function $b(t,e,n,i){var r=new HP;return r.add(new mR({name:\\\"main\\\",style:ew(n),silent:!0,draggable:!0,cursor:\\\"move\\\",drift:S(aw,t,e,r,[\\\"n\\\",\\\"s\\\",\\\"w\\\",\\\"e\\\"]),ondragend:S(jb,e,{isEnd:!0})})),y(i,function(n){r.add(new mR({name:n.join(\\\"\\\"),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:S(aw,t,e,r,n),ondragend:S(jb,e,{isEnd:!0})}))}),r}function Jb(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=aZ(r,hZ),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,h=n[0][1],c=n[1][1],p=h-o+r/2,d=c-o+r/2,f=h-a,g=c-s,y=f+r,v=g+r;tw(t,e,\\\"main\\\",a,s,f,g),i.transformable&&(tw(t,e,\\\"w\\\",l,u,o,v),tw(t,e,\\\"e\\\",p,u,o,v),tw(t,e,\\\"n\\\",l,u,y,o),tw(t,e,\\\"s\\\",l,d,y,o),tw(t,e,\\\"nw\\\",l,u,o,o),tw(t,e,\\\"ne\\\",p,u,o,o),tw(t,e,\\\"sw\\\",l,d,o,o),tw(t,e,\\\"se\\\",p,d,o,o))}function Qb(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(ew(n)),r.attr({silent:!i,cursor:i?\\\"move\\\":\\\"default\\\"}),y([[\\\"w\\\"],[\\\"e\\\"],[\\\"n\\\"],[\\\"s\\\"],[\\\"s\\\",\\\"e\\\"],[\\\"s\\\",\\\"w\\\"],[\\\"n\\\",\\\"e\\\"],[\\\"n\\\",\\\"w\\\"]],function(n){var r=e.childOfName(n.join(\\\"\\\")),o=1===n.length?rw(t,n[0]):ow(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?dZ[o]+\\\"-resize\\\":null})})}function tw(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(hw(uw(t,e,[[i,r],[i+o,r+a]])))}function ew(t){return c({strokeNoScale:!0},t.brushStyle)}function nw(t,e,n,i){var r=[oZ(t,n),oZ(e,i)],o=[aZ(t,n),aZ(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function iw(t){return Us(t.group)}function rw(t,e){var n={w:\\\"left\\\",e:\\\"right\\\",n:\\\"top\\\",s:\\\"bottom\\\"},i={left:\\\"w\\\",right:\\\"e\\\",top:\\\"n\\\",bottom:\\\"s\\\"},r=js(n[e],iw(t));return i[r]}function ow(t,e){var n=[rw(t,e[0]),rw(t,e[1])];return(\\\"e\\\"===n[0]||\\\"w\\\"===n[0])&&n.reverse(),n.join(\\\"\\\")}function aw(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=lw(e,r,o);y(i,function(t){var e=pZ[t];s[e[0]][e[1]]+=l[e[0]]}),a.range=t.fromRectRange(nw(s[0][0],s[1][0],s[0][1],s[1][1])),Hb(e,n),jb(e,{isEnd:!1})}function sw(t,e,n,i){var r=e.__brushOption.range,o=lw(t,n,i);y(r,function(t){t[0]+=o[0],t[1]+=o[1]}),Hb(t,e),jb(t,{isEnd:!1})}function lw(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function uw(t,e,n){var i=Ub(t,e);return i&&i!==rZ?i.clipPath(n,t._transform):s(n)}function hw(t){var e=oZ(t[0][0],t[1][0]),n=oZ(t[0][1],t[1][1]),i=aZ(t[0][0],t[1][0]),r=aZ(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function cw(t,e,n){if(t._brushType&&!vw(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=Xb(t,e,n);if(!t._dragging)for(var a=0;ae||e>i.getWidth()||0>n||n>i.getHeight()}function mw(t){return{createCover:function(e,n){return $b({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[[\\\"w\\\"],[\\\"e\\\"]],[[\\\"n\\\"],[\\\"s\\\"]]][t])},getCreatingRange:function(e){var n=Kb(e),i=oZ(n[0][t],n[1][t]),r=aZ(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=Ub(e,n);if(a!==rZ&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Jb(e,n,l,r)},updateCommon:Qb,contain:dw}}function xw(t){return t=ww(t),function(e){return Js(e,t)}}function _w(t,e){return t=ww(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function bw(t,e,n){var i=ww(t);return function(t,r){return i.contain(r[0],r[1])&&!fm(t,e,n)}}function ww(t){return dL.create(t)}function Sw(t,e,n){return n&&\\\"axisAreaSelect\\\"===n.type&&e.findComponents({mainType:\\\"parallelAxis\\\",query:n})[0]===t}function Mw(t){var e=t.axis;return v(t.activeIntervals,function(t){return{brushType:\\\"lineX\\\",panelId:\\\"pl\\\",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Iw(t,e){return e.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\"))}function Tw(t){t.registerAction(bZ,function(t,e){e.eachComponent({mainType:\\\"parallelAxis\\\",query:t},function(e){e.axis.model.setActiveIntervals(t.intervals)})}),t.registerAction(\\\"parallelAxisExpand\\\",function(t,e){e.eachComponent({mainType:\\\"parallel\\\",query:t},function(e){e.setAxisExpand(t)})})}function Cw(t){t.registerComponentView(YU),t.registerComponentModel(UU),t.registerCoordinateSystem(\\\"parallel\\\",nZ),t.registerPreprocessor(Db),t.registerComponentModel(iZ),t.registerComponentView(_Z),Gy(t,\\\"parallel\\\",iZ,wZ),Tw(t)}function Dw(t){If(Cw),t.registerChartView(VU),t.registerSeriesModel(FU),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,WU)}function Aw(t,e){var n=t.get(\\\"center\\\"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=or(n[0],e.getWidth()),s=or(n[1],e.getHeight()),l=or(t.get(\\\"radius\\\"),o/2);return{cx:a,cy:s,r:l}}function kw(t,e){var n=null==t?\\\"\\\":t+\\\"\\\";return e&&(T(e)?n=e.replace(\\\"{value}\\\",n):I(e)&&(n=e(t))),n}function Lw(t){t.registerChartView(IZ),t.registerSeriesModel(TZ)}function Pw(t,e){return uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ow(t,e){for(var n=t.mapDimension(\\\"value\\\"),i=t.mapArray(n,function(t){return t}),r=[],o=\\\"ascending\\\"===e,a=0,s=t.count();s>a;a++)r[a]=a;return I(e)?r.sort(e):\\\"none\\\"!==e&&r.sort(function(t,e){return o?i[t]-i[e]:i[e]-i[t]}),r}function Rw(t){var e=t.hostModel,n=e.get(\\\"orient\\\");t.each(function(e){var i,r,o,a,s=t.getItemModel(e),l=s.getModel(\\\"label\\\"),u=l.get(\\\"position\\\"),h=s.getModel(\\\"labelLine\\\"),c=t.getItemLayout(e),p=c.points,d=\\\"inner\\\"===u||\\\"inside\\\"===u||\\\"center\\\"===u||\\\"insideLeft\\\"===u||\\\"insideRight\\\"===u;if(d)\\\"insideLeft\\\"===u?(r=(p[0][0]+p[3][0])/2+5,o=(p[0][1]+p[3][1])/2,i=\\\"left\\\"):\\\"insideRight\\\"===u?(r=(p[1][0]+p[2][0])/2-5,o=(p[1][1]+p[2][1])/2,i=\\\"right\\\"):(r=(p[0][0]+p[1][0]+p[2][0]+p[3][0])/4,o=(p[0][1]+p[1][1]+p[2][1]+p[3][1])/4,i=\\\"center\\\"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,y=void 0,v=void 0,m=h.get(\\\"length\\\");\\\"left\\\"===u?(f=(p[3][0]+p[0][0])/2,g=(p[3][1]+p[0][1])/2,y=f-m,r=y-5,i=\\\"right\\\"):\\\"right\\\"===u?(f=(p[1][0]+p[2][0])/2,g=(p[1][1]+p[2][1])/2,y=f+m,r=y+5,i=\\\"left\\\"):\\\"top\\\"===u?(f=(p[3][0]+p[0][0])/2,g=(p[3][1]+p[0][1])/2,v=g-m,o=v-5,i=\\\"center\\\"):\\\"bottom\\\"===u?(f=(p[1][0]+p[2][0])/2,g=(p[1][1]+p[2][1])/2,v=g+m,o=v+5,i=\\\"center\\\"):\\\"rightTop\\\"===u?(f=\\\"horizontal\\\"===n?p[3][0]:p[1][0],g=\\\"horizontal\\\"===n?p[3][1]:p[1][1],\\\"horizontal\\\"===n?(v=g-m,o=v-5,i=\\\"center\\\"):(y=f+m,r=y+5,i=\\\"top\\\")):\\\"rightBottom\\\"===u?(f=p[2][0],g=p[2][1],\\\"horizontal\\\"===n?(v=g+m,o=v+5,i=\\\"center\\\"):(y=f+m,r=y+5,i=\\\"bottom\\\")):\\\"leftTop\\\"===u?(f=p[0][0],g=\\\"horizontal\\\"===n?p[0][1]:p[1][1],\\\"horizontal\\\"===n?(v=g-m,o=v-5,i=\\\"center\\\"):(y=f-m,r=y-5,i=\\\"right\\\")):\\\"leftBottom\\\"===u?(f=\\\"horizontal\\\"===n?p[1][0]:p[3][0],g=\\\"horizontal\\\"===n?p[1][1]:p[2][1],\\\"horizontal\\\"===n?(v=g+m,o=v+5,i=\\\"center\\\"):(y=f-m,r=y-5,i=\\\"right\\\")):(f=(p[1][0]+p[2][0])/2,g=(p[1][1]+p[2][1])/2,\\\"horizontal\\\"===n?(v=g+m,o=v+5,i=\\\"center\\\"):(y=f+m,r=y+5,i=\\\"left\\\")),\\\"horizontal\\\"===n?(y=f,r=y):(v=g,o=v),a=[[f,g],[y,v]]}c.label={linePoints:a,x:r,y:o,verticalAlign:\\\"middle\\\",textAlign:i,inside:d}})}function Nw(t,e){t.eachSeriesByType(\\\"funnel\\\",function(t){var n=t.getData(),i=n.mapDimension(\\\"value\\\"),r=t.get(\\\"sort\\\"),o=Pw(t,e),a=t.get(\\\"orient\\\"),s=o.width,l=o.height,u=Ow(n,r),h=o.x,c=o.y,p=\\\"horizontal\\\"===a?[or(t.get(\\\"minSize\\\"),l),or(t.get(\\\"maxSize\\\"),l)]:[or(t.get(\\\"minSize\\\"),s),or(t.get(\\\"maxSize\\\"),s)],d=n.getDataExtent(i),f=t.get(\\\"min\\\"),g=t.get(\\\"max\\\");null==f&&(f=Math.min(d[0],0)),null==g&&(g=d[1]);var y=t.get(\\\"funnelAlign\\\"),v=t.get(\\\"gap\\\"),m=\\\"horizontal\\\"===a?s:l,x=(m-v*(n.count()-1))/n.count(),_=function(t,e){if(\\\"horizontal\\\"===a){var r=n.get(i,t)||0,o=rr(r,[f,g],p,!0),u=void 0;switch(y){case\\\"top\\\":u=c;break;case\\\"center\\\":u=c+(l-o)/2;break;case\\\"bottom\\\":u=c+(l-o)}return[[e,u],[e,u+o]]}var d,v=n.get(i,t)||0,m=rr(v,[f,g],p,!0);switch(y){case\\\"left\\\":d=h;break;case\\\"center\\\":d=h+(s-m)/2;break;case\\\"right\\\":d=h+s-m}return[[d,e],[d+m,e]]};\\\"ascending\\\"===r&&(x=-x,v=-v,\\\"horizontal\\\"===a?h+=s:c+=l,u=u.reverse());for(var b=0;b=0;v&&y.depth>d&&(d=y.depth),g.setLayout({depth:v?y.depth:c},!0),\\\"vertical\\\"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mc-1?d:c-1;a&&\\\"left\\\"!==a&&Xw(t,a,o,S);var M=\\\"vertical\\\"===o?(r-n)/S:(i-n)/S;Zw(t,M,o)}function Yw(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function Xw(t,e,n,i){if(\\\"right\\\"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)l*=.99,Jw(s,l,a),$w(s,r,n,i,a),aS(s,l,a),$w(s,r,n,i,a)}function qw(t,e){var n=[],i=\\\"vertical\\\"===e?\\\"y\\\":\\\"x\\\",r=io(t,function(t){return t.getLayout()[i]});return r.keys.sort(function(t,e){return t-e}),y(r.keys,function(t){n.push(r.buckets.get(t))}),n}function Kw(t,e,n,i,r,o){var a=1/0;y(t,function(t){var e=t.length,s=0;y(t,function(t){s+=t.getLayout().value});var l=\\\"vertical\\\"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;a>l&&(a=l)}),y(t,function(t){y(t,function(t,e){var n=t.getLayout().value*a;\\\"vertical\\\"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),y(e,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})}function $w(t,e,n,i,r){var o=\\\"vertical\\\"===r?\\\"x\\\":\\\"y\\\";y(t,function(t){t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var a,s,l,u=0,h=t.length,c=\\\"vertical\\\"===r?\\\"dx\\\":\\\"dy\\\",p=0;h>p;p++)s=t[p],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,\\\"vertical\\\"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;var d=\\\"vertical\\\"===r?i:n;if(l=u-e-d,l>0){a=s.getLayout()[o]-l,\\\"vertical\\\"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(var p=h-2;p>=0;--p)s=t[p],l=s.getLayout()[o]+s.getLayout()[c]+e-u,l>0&&(a=s.getLayout()[o]-l,\\\"vertical\\\"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}})}function Jw(t,e,n){y(t.slice().reverse(),function(t){y(t,function(t){if(t.outEdges.length){var i=oS(t.outEdges,Qw,n)/oS(t.outEdges,rS);if(isNaN(i)){var r=t.outEdges.length;i=r?oS(t.outEdges,tS,n)/r:0}if(\\\"vertical\\\"===n){var o=t.getLayout().x+(i-iS(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-iS(t,n))*e;t.setLayout({y:a},!0)}}})})}function Qw(t,e){return iS(t.node2,e)*t.getValue()}function tS(t,e){return iS(t.node2,e)}function eS(t,e){return iS(t.node1,e)*t.getValue()}function nS(t,e){return iS(t.node1,e)}function iS(t,e){return\\\"vertical\\\"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function rS(t){return t.getValue()}function oS(t,e,n){for(var i=0,r=t.length,o=-1;++oe&&(r=e),e>o&&(o=e)}),y(n,function(e){var n=new RY({type:\\\"color\\\",mappingMethod:\\\"linear\\\",dataExtent:[r,o],visual:t.get(\\\"color\\\")}),i=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get([\\\"itemStyle\\\",\\\"color\\\"]);null!=a?(e.setVisual(\\\"color\\\",a),e.setVisual(\\\"style\\\",{fill:a})):(e.setVisual(\\\"color\\\",i),e.setVisual(\\\"style\\\",{fill:i}))})}i.length&&y(i,function(t){var e=t.getModel().get(\\\"lineStyle\\\");t.setVisual(\\\"style\\\",e)})})}function uS(t){t.registerChartView(OZ),t.registerSeriesModel(RZ),t.registerLayout(Vw),t.registerVisual(lS),t.registerAction({type:\\\"dragNode\\\",event:\\\"dragnode\\\",update:\\\"update\\\"},function(t,e){e.eachComponent({mainType:\\\"series\\\",subType:\\\"sankey\\\",query:t},function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}function hS(t,e,n){var i=new mR({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ks(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}function cS(t){t.eachSeriesByType(\\\"themeRiver\\\",function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get(\\\"boundaryGap\\\"),a=n.getAxis();if(i.boundaryGap=o,\\\"horizontal\\\"===a.orient){o[0]=or(o[0],r.height),o[1]=or(o[1],r.height);var s=r.height-o[0]-o[1];pS(e,t,s)}else{o[0]=or(o[0],r.width),o[1]=or(o[1],r.width);var l=r.width-o[0]-o[1];pS(e,t,l)}e.setLayout(\\\"layoutInfo\\\",i)})}function pS(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension(\\\"single\\\"),s=t.mapDimension(\\\"value\\\"),l=v(o,function(e){return v(e.indices,function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n})}),u=dS(l),h=u.y0,c=n/u.max,p=o.length,d=o[0].indices.length,f=0;d>f;++f){i=h[f]*c,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*c});for(var g=1;p>g;++g)i+=l[g-1][f][1]*c,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*c})}}function dS(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;n>a;++a){for(var s=0,l=0;e>l;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var u=0;n>u;++u)r[u]=(o-i[u])/2;o=0;for(var h=0;n>h;++h){var c=i[h]+r[h];c>o&&(o=c)}return{y0:r,max:o}}function fS(t){t.registerChartView(NZ),t.registerSeriesModel(zZ),t.registerLayout(cS),t.registerProcessor(Py(\\\"themeRiver\\\"))}function gS(t,e,n,i){var r=t.getItemLayout(e),o=n.get(\\\"symbolRepeat\\\"),a=n.get(\\\"symbolClip\\\"),s=n.get(\\\"symbolPosition\\\")||\\\"start\\\",l=n.get(\\\"symbolRotate\\\"),u=(l||0)*Math.PI/180||0,h=n.get(\\\"symbolPatternSize\\\")||2,c=n.isAnimationEnabled(),p={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\",style:t.getItemVisual(e,\\\"style\\\"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get(\\\"symbolRepeatDirection\\\"),symbolPatternSize:h,rotation:u,animationModel:c?n:null,hoverScale:c&&n.get([\\\"emphasis\\\",\\\"scale\\\"]),z2:n.getShallow(\\\"z\\\",!0)||0};yS(n,o,r,i,p),mS(t,e,r,o,a,p.boundingLength,p.pxSign,h,i,p),xS(n,p.symbolScale,u,i,p);var d=p.symbolSize,f=Hc(n.get(\\\"symbolOffset\\\"),d);return _S(n,d,r,o,a,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function yS(t,e,n,i,r){var o,a=i.valueDim,s=t.get(\\\"symbolBoundingData\\\"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(M(s)){var c=[vS(l,s[0])-u,vS(l,s[1])-u];c[1]0?1:-1}function vS(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function mS(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,p=l.categoryDim,d=Math.abs(n[p.wh]),f=t.getItemVisual(e,\\\"symbolSize\\\");h=M(f)?f.slice():null==f?[\\\"100%\\\",\\\"100%\\\"]:[f,f],h[p.index]=or(h[p.index],d),h[c.index]=or(h[c.index],i?d:Math.abs(o)),u.symbolSize=h;var g=u.symbolScale=[h[0]/s,h[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}function xS(t,e,n,i,r){var o=t.get(BZ)||0;o&&(FZ.attr({scaleX:e[0],scaleY:e[1],rotation:n}),FZ.updateTransform(),o/=FZ.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}function _S(t,e,n,i,r,o,a,s,l,u,c,p){var d=c.categoryDim,f=c.valueDim,g=p.pxSign,y=Math.max(e[f.index]+s,0),v=y;if(i){var m=Math.abs(l),x=z(t.get(\\\"symbolMargin\\\"),\\\"15%\\\")+\\\"\\\",_=!1;x.lastIndexOf(\\\"!\\\")===x.length-1&&(_=!0,x=x.slice(0,x.length-1));var b=or(x,e[f.index]),w=Math.max(y+2*b,0),S=_?0:2*b,M=Sr(i),I=M?i:ES((m+S)/w),T=m-I*y;b=T/2/(_?I:Math.max(I-1,1)),w=y+2*b,S=_?0:2*b,M||\\\"fixed\\\"===i||(I=u?ES((Math.abs(u)+S)/w):0),v=I*w-S,p.repeatTimes=I,p.symbolMargin=b}var C=g*(v/2),D=p.pathPosition=[];D[d.index]=n[d.wh]/2,D[f.index]=\\\"start\\\"===a?C:\\\"end\\\"===a?l-C:l/2,o&&(D[0]+=o[0],D[1]+=o[1]);var A=p.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var k=p.barRectShape=h({},n);k[f.wh]=g*Math.max(Math.abs(n[f.wh]),Math.abs(D[f.index]+C)),k[d.wh]=n[d.wh];var L=p.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[f.xy]=0,L[f.wh]=n[f.wh]}function bS(t){var e=t.symbolPatternSize,n=Gc(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),\\\"image\\\"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function wS(t,e,n,i){function r(t){var e=l.slice(),i=n.pxSign,r=t;return(\\\"start\\\"===n.symbolRepeatDirection?i>0:0>i)&&(r=h-1-t),e[u.index]=p*(r-h/2+.5)+l[u.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}var o=t.__pictorialBundle,a=n.symbolSize,s=n.valueLineWidth,l=n.pathPosition,u=e.valueDim,h=n.repeatTimes||0,c=0,p=a[e.valueDim.index]+s+2*n.symbolMargin;for(OS(t,function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,h>c?RS(t,null,r(c),n,i):RS(t,null,{scaleX:0,scaleY:0},n,i,function(){o.remove(t)}),c++});h>c;c++){var d=bS(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=h,o.add(d);var f=r(c);RS(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,i)}}function SS(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?RS(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=bS(n),r.add(o),RS(o,{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 MS(t,e,n){var i=h({},e.barRectShape),r=t.__pictorialBarRect;r?RS(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new mR({z2:2,shape:i,silent:!0,style:{stroke:\\\"transparent\\\",fill:\\\"transparent\\\",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function IS(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=h({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)As(r,{shape:o},s,l);else{o[a.wh]=0,r=new mR({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var u={};u[a.wh]=n.clipShape[a.wh],QN[i?\\\"updateProps\\\":\\\"initProps\\\"](r,{shape:u},s,l)}}}function TS(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=CS,n.isAnimationEnabled=DS,n}function CS(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function DS(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(\\\"animation\\\")}function AS(t,e,n,i){var r=new HP,o=new HP;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?wS(r,e,n):SS(r,e,n),MS(r,n,i),IS(r,e,n,i),r.__pictorialShapeStr=PS(t,n),r.__pictorialSymbolMeta=n,r}function kS(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;As(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?wS(t,e,n,!0):SS(t,e,n,!0),MS(t,n,!0),IS(t,e,n,!0)}function LS(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];OS(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),y(o,function(t){Ps(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function PS(t,e){return[t.getItemVisual(e.dataIndex,\\\"symbol\\\")||\\\"none\\\",!!e.symbolRepeat,!!e.symbolClip].join(\\\":\\\")}function OS(t,e,n){y(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function RS(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&QN[r?\\\"updateProps\\\":\\\"initProps\\\"](t,n,i.animationModel,i.dataIndex,o)}function NS(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel(\\\"emphasis\\\"),a=o.getModel(\\\"itemStyle\\\").getItemStyle(),s=r.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),l=r.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),u=r.getShallow(\\\"cursor\\\"),c=o.get(\\\"focus\\\"),p=o.get(\\\"blurScope\\\"),d=o.get(\\\"scale\\\");OS(t,function(t){if(t instanceof fR){var e=t.style;t.useStyle(h({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState(\\\"emphasis\\\");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState(\\\"blur\\\").style=s,t.ensureState(\\\"select\\\").style=l,u&&(t.cursor=u),t.z2=n.z2});var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;hl(g,cl(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Og(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Qa(t,c,p,o.get(\\\"disabled\\\"))}function ES(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}function zS(t){t.registerChartView(GZ),t.registerSeriesModel(WZ),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,S(Xd,\\\"pictorialBar\\\")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ud(\\\"pictorialBar\\\"))}function BS(t,e){return e=e||[0,0],v([\\\"x\\\",\\\"y\\\"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return\\\"category\\\"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function VS(t){var e=t.master.getRect();return{coordSys:{type:\\\"cartesian2d\\\",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Lk(BS,t)}}}function FS(t,e){return e=e||[0,0],v([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function GS(t){var e=t.getBoundingRect();return{coordSys:{type:\\\"geo\\\",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:Lk(FS,t)}}}function WS(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return\\\"category\\\"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function HS(t){var e=t.getRect();return{coordSys:{type:\\\"singleAxis\\\",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Lk(WS,t)}}}function YS(t,e){return e=e||[0,0],v([\\\"Radius\\\",\\\"Angle\\\"],function(n,i){var r=\\\"get\\\"+n+\\\"Axis\\\",o=this[r](),a=e[i],s=t[i]/2,l=\\\"category\\\"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return\\\"Angle\\\"===n&&(l=l*Math.PI/180),l},this)}function XS(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:\\\"polar\\\",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:Lk(YS,t)}}}function US(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:\\\"calendar\\\",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function ZS(t,e,n,i){return t&&(t.legacy||t.legacy!==!1&&!n&&!i&&\\\"tspan\\\"!==e&&(\\\"text\\\"===e||$(t,\\\"text\\\")))}function jS(t,e,n){var i,r,o,a=t;if(\\\"text\\\"===e)o=a;else{o={},$(a,\\\"text\\\")&&(o.text=a.text),$(a,\\\"rich\\\")&&(o.rich=a.rich),$(a,\\\"textFill\\\")&&(o.fill=a.textFill),$(a,\\\"textStroke\\\")&&(o.stroke=a.textStroke),$(a,\\\"fontFamily\\\")&&(o.fontFamily=a.fontFamily),$(a,\\\"fontSize\\\")&&(o.fontSize=a.fontSize),$(a,\\\"fontStyle\\\")&&(o.fontStyle=a.fontStyle),$(a,\\\"fontWeight\\\")&&(o.fontWeight=a.fontWeight),r={type:\\\"text\\\",style:o,silent:!0},i={};var s=$(a,\\\"textPosition\\\");n?i.position=s?a.textPosition:\\\"inside\\\":s&&(i.position=a.textPosition),$(a,\\\"textPosition\\\")&&(i.position=a.textPosition),$(a,\\\"textOffset\\\")&&(i.offset=a.textOffset),$(a,\\\"textRotation\\\")&&(i.rotation=a.textRotation),$(a,\\\"textDistance\\\")&&(i.distance=a.textDistance)}return qS(o,t),y(o.rich,function(t){qS(t,t)}),{textConfig:i,textContent:r}}function qS(t,e){e&&(e.font=e.textFont||e.font,$(e,\\\"textStrokeWidth\\\")&&(t.lineWidth=e.textStrokeWidth),$(e,\\\"textAlign\\\")&&(t.align=e.textAlign),$(e,\\\"textVerticalAlign\\\")&&(t.verticalAlign=e.textVerticalAlign),$(e,\\\"textLineHeight\\\")&&(t.lineHeight=e.textLineHeight),$(e,\\\"textWidth\\\")&&(t.width=e.textWidth),$(e,\\\"textHeight\\\")&&(t.height=e.textHeight),$(e,\\\"textBackgroundColor\\\")&&(t.backgroundColor=e.textBackgroundColor),$(e,\\\"textPadding\\\")&&(t.padding=e.textPadding),$(e,\\\"textBorderColor\\\")&&(t.borderColor=e.textBorderColor),$(e,\\\"textBorderWidth\\\")&&(t.borderWidth=e.textBorderWidth),$(e,\\\"textBorderRadius\\\")&&(t.borderRadius=e.textBorderRadius),$(e,\\\"textBoxShadowColor\\\")&&(t.shadowColor=e.textBoxShadowColor),$(e,\\\"textBoxShadowBlur\\\")&&(t.shadowBlur=e.textBoxShadowBlur),$(e,\\\"textBoxShadowOffsetX\\\")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),$(e,\\\"textBoxShadowOffsetY\\\")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))\\n}function KS(t,e,n){var i=t;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);var r=i.textPosition.indexOf(\\\"inside\\\")>=0,o=t.fill||\\\"#000\\\";$S(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||\\\"#fff\\\",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),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,y(e.rich,function(t){$S(t,t)}),i}function $S(t,e){e&&($(e,\\\"fill\\\")&&(t.textFill=e.fill),$(e,\\\"stroke\\\")&&(t.textStroke=e.fill),$(e,\\\"lineWidth\\\")&&(t.textStrokeWidth=e.lineWidth),$(e,\\\"font\\\")&&(t.font=e.font),$(e,\\\"fontStyle\\\")&&(t.fontStyle=e.fontStyle),$(e,\\\"fontWeight\\\")&&(t.fontWeight=e.fontWeight),$(e,\\\"fontSize\\\")&&(t.fontSize=e.fontSize),$(e,\\\"fontFamily\\\")&&(t.fontFamily=e.fontFamily),$(e,\\\"align\\\")&&(t.textAlign=e.align),$(e,\\\"verticalAlign\\\")&&(t.textVerticalAlign=e.verticalAlign),$(e,\\\"lineHeight\\\")&&(t.textLineHeight=e.lineHeight),$(e,\\\"width\\\")&&(t.textWidth=e.width),$(e,\\\"height\\\")&&(t.textHeight=e.height),$(e,\\\"backgroundColor\\\")&&(t.textBackgroundColor=e.backgroundColor),$(e,\\\"padding\\\")&&(t.textPadding=e.padding),$(e,\\\"borderColor\\\")&&(t.textBorderColor=e.borderColor),$(e,\\\"borderWidth\\\")&&(t.textBorderWidth=e.borderWidth),$(e,\\\"borderRadius\\\")&&(t.textBorderRadius=e.borderRadius),$(e,\\\"shadowColor\\\")&&(t.textBoxShadowColor=e.shadowColor),$(e,\\\"shadowBlur\\\")&&(t.textBoxShadowBlur=e.shadowBlur),$(e,\\\"shadowOffsetX\\\")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),$(e,\\\"shadowOffsetY\\\")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),$(e,\\\"textShadowColor\\\")&&(t.textShadowColor=e.textShadowColor),$(e,\\\"textShadowBlur\\\")&&(t.textShadowBlur=e.textShadowBlur),$(e,\\\"textShadowOffsetX\\\")&&(t.textShadowOffsetX=e.textShadowOffsetX),$(e,\\\"textShadowOffsetY\\\")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function JS(t,e,n,i,r){var o=t+\\\"Animation\\\",a=Cs(t,i,r)||{},s=KZ(e).userDuring;return a.duration>0&&(a.during=s?Lk(aM,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),h(a,n[o]),a}function QS(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=KZ(t),u=e.style;l.userDuring=e.during;var c={},p={};if(hM(t,e,p),lM(\\\"shape\\\",e,p),lM(\\\"extra\\\",e,p),!o&&s&&(uM(t,e,c),sM(\\\"shape\\\",t,e,c),sM(\\\"extra\\\",t,e,c),cM(t,e,u,c)),p.style=u,iM(t,p,a),oM(t,e),s)if(o){var d={};y(qZ,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(d[t]=d[t]||{}),h(t?d[t]:d,n.enterFrom))});var f=JS(\\\"enter\\\",t,e,n,r);f.duration>0&&t.animateFrom(d,f)}else rM(t,e,r||0,n,c);tM(t,e),u?t.dirty():t.markRedraw()}function tM(t,e){for(var n=KZ(t).leaveToProps,i=0;i0&&t.animateFrom(r,o)}}function oM(t,e){$(e,\\\"silent\\\")&&(t.silent=e.silent),$(e,\\\"ignore\\\")&&(t.ignore=e.ignore),t instanceof SO&&$(e,\\\"invisible\\\")&&(t.invisible=e.invisible),t instanceof uR&&$(e,\\\"autoBatch\\\")&&(t.autoBatch=e.autoBatch)}function aM(){var t=this,e=t.el;if(e){var n=KZ(e).userDuring,i=t.userDuring;if(n!==i)return void(t.el=t.userDuring=null);$Z.el=e,i(JZ)}}function sM(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),nM(l))h(o,a);else for(var u=Ar(l),c=0;c=0){!o&&(o=i[t]={});for(var g=b(a),c=0;c=0)){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!r&&(r=i.style={});for(var g=b(n),u=0;u=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function u(n,i){null==i&&(i=b);var r=e.getItemVisual(i,\\\"style\\\"),s=r&&r.fill,l=r&&r.opacity,u=o(i,nj).getItemStyle();null!=s&&(u.fill=s),null!=l&&(u.opacity=l);var h={inheritColor:T(s)?s:\\\"#000\\\"},c=a(i,nj),f=pl(c,null,h,!1,!0);f.text=c.getShallow(\\\"show\\\")?B(t.getFormattedLabel(i,nj),Og(e,i)):null;var g=dl(c,h,!1);return d(n,u),u=KS(u,f,g),n&&p(u,n),u.legacy=!0,u}function h(n,i){null==i&&(i=b);var r=o(i,ej).getItemStyle(),s=a(i,ej),l=pl(s,null,null,!0,!0);l.text=s.getShallow(\\\"show\\\")?V(t.getFormattedLabel(i,ej),t.getFormattedLabel(i,nj),Og(e,i)):null;var u=dl(s,null,!0);return d(n,r),r=KS(r,l,u),n&&p(r,n),r.legacy=!0,r}function p(t,e){for(var n in e)$(e,n)&&(t[n]=e[n])}function d(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function f(t,n){if(null==n&&(n=b),$(HZ,t)){var i=e.getItemVisual(n,\\\"style\\\");return i?i[HZ[t]]:null}return $(YZ,t)?e.getItemVisual(n,t):void 0}function g(t){if(\\\"cartesian2d\\\"===x.type){var e=x.getBaseAxis();return Vd(c({axis:e},t))}}function y(){return n.getCurrentSeriesIndices()}function v(t){return vl(t,n)}var m=t.get(\\\"renderItem\\\"),x=t.coordinateSystem,_={};x&&(_=x.prepareCustoms?x.prepareCustoms(x):cj[x.type](x));for(var b,w,S=c({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:s,style:u,ordinalRawValue:l,styleEmphasis:h,visual:f,barLayout:g,currentSeriesIndices:y,font:v},_.api||{}),M={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:_.coordSys,dataInsideLength:e.count(),encode:MM(t.getData())},I={},C={},D={},A={},k=0;k=0?o.replaceAt(u,a):o.add(u),u}function CM(t,e,n){var i=XZ(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||\\\"path\\\"===r&&FM(o)&&VM(o)!==i.customPathData||\\\"image\\\"===r&&$(a,\\\"image\\\")&&a.image!==i.customImagePath}function DM(t,e,n,i,r){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&CM(a,o,i)&&(a=null),a||(a=mM(o),t.setClipPath(a)),xM(null,a,e,o,null,i,r)}}function AM(t,e,n,i,r,o){if(!t.isGroup){kM(n,null,o),kM(n,ej,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(a===!1)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:\\\"text\\\"},h?h.clearStates():(h=mM(a),t.setTextContent(h)),xM(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;ph;h++){var c=o[h],p=e.childAt(h);c?(null==c.ignore&&(c.ignore=!1),TM(t,p,n,c,r,e)):p.ignore=!0}for(var d=e.childCount()-1;d>=h;d--){var f=e.childAt(d);RM(e,f,r)}}}function RM(t,e,n){e&&eM(e,XZ(t).option,n)}function NM(t){new AF(t.oldChildren,t.newChildren,EM,EM,t).add(zM).update(zM).remove(BM).execute()}function EM(t,e){var n=t&&t.name;return null!=n?n:uj+e}function zM(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;TM(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function BM(t){var e=this.context,n=e.oldChildren[t];n&&eM(n,XZ(n).option,e.seriesModel)}function VM(t){return t&&(t.pathData||t.d)}function FM(t){return t&&($(t,\\\"pathData\\\")||$(t,\\\"d\\\"))}function GM(t){t.registerChartView(pj),t.registerSeriesModel(UZ)}function WM(t,e,n,i){HM(dj(n).lastProp,i)||(dj(n).lastProp=i,e?As(n,i,t):(n.stopAnimation(),n.attr(i)))}function HM(t,e){if(A(t)&&A(e)){var n=!0;return y(e,function(e,i){n=n&&HM(t[i],e)}),!!n}return t===e}function YM(t,e){t[e.get([\\\"label\\\",\\\"show\\\"])?\\\"show\\\":\\\"hide\\\"]()}function XM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function UM(t,e,n){var i=e.get(\\\"z\\\"),r=e.get(\\\"zlevel\\\");t&&t.traverse(function(t){\\\"group\\\"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function ZM(t){var e,n=t.get(\\\"type\\\"),i=t.getModel(n+\\\"Style\\\");return\\\"line\\\"===n?(e=i.getLineStyle(),e.fill=null):\\\"shadow\\\"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function jM(t,e,n,i,r){var o=n.get(\\\"value\\\"),a=KM(o,e.axis,e.ecModel,n.get(\\\"seriesDataIndices\\\"),{precision:n.get([\\\"label\\\",\\\"precision\\\"]),formatter:n.get([\\\"label\\\",\\\"formatter\\\"])}),s=n.getModel(\\\"label\\\"),l=NE(s.get(\\\"padding\\\")||0),u=s.getFont(),h=zi(a,u),c=r.position,p=h.width+l[1]+l[3],d=h.height+l[0]+l[2],f=r.align;\\\"right\\\"===f&&(c[0]-=p),\\\"center\\\"===f&&(c[0]-=p/2);var g=r.verticalAlign;\\\"bottom\\\"===g&&(c[1]-=d),\\\"middle\\\"===g&&(c[1]-=d/2),qM(c,p,d,i);var y=s.get(\\\"backgroundColor\\\");y&&\\\"auto\\\"!==y||(y=e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])),t.label={x:c[0],y:c[1],style:pl(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function qM(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function KM(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:ff(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};y(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)}),T(a)?o=a.replace(\\\"{value}\\\",o):I(a)&&(o=a(s))}return o}function $M(t,e,n){var i=Be();return He(i,i,n.rotation),We(i,i,n.position),Zs([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function JM(t,e,n,i,r,o){var a=cH.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get([\\\"label\\\",\\\"margin\\\"]),jM(e,i,r,o,{position:$M(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function QM(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function tI(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function eI(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}function nI(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,h,c=i.getRadiusAxis().getExtent();if(\\\"radius\\\"===o.dim){var p=Be();He(p,p,s),We(p,p,[i.cx,i.cy]),l=Zs([a,-r],p);var d=e.getModel(\\\"axisLabel\\\").get(\\\"rotate\\\")||0,f=cH.innerTextLayout(s,d*Math.PI/180,-1);u=f.textAlign,h=f.textVerticalAlign}else{var g=c[1];l=i.coordToPoint([g+r,a]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?\\\"center\\\":l[0]>y?\\\"left\\\":\\\"right\\\",h=Math.abs(l[1]-v)/g<.3?\\\"middle\\\":l[1]>v?\\\"top\\\":\\\"bottom\\\"}return{position:l,align:u,verticalAlign:h}}function iI(t,e){var n={};return n[e.dim+\\\"AxisIndex\\\"]=e.index,t.getCartesian(n)}function rI(t){return\\\"x\\\"===t.dim?0:1}function oI(t,e,n){if(!uk.node){var i=e.getZr();wj(i).records||(wj(i).records={}),aI(i,e);var r=wj(i).records[t]||(wj(i).records[t]={});r.handler=n}}function aI(t,e){function n(n,i){t.on(n,function(n){var r=hI(e);Sj(wj(t).records,function(t){t&&i(t,n,r.dispatchAction)}),sI(r.pendings,e)})}wj(t).initialized||(wj(t).initialized=!0,n(\\\"click\\\",S(uI,\\\"click\\\")),n(\\\"mousemove\\\",S(uI,\\\"mousemove\\\")),n(\\\"globalout\\\",lI))}function sI(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function lI(t,e,n){t.handler(\\\"leave\\\",null,n)}function uI(t,e,n,i){e.handler(t,n,i)}function hI(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function cI(t,e){if(!uk.node){var n=e.getZr(),i=(wj(n).records||{})[t];i&&(wj(n).records[t]=null)}}function pI(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=qr(o,t);if(null==a||0>a||M(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,d=\\\"x\\\"===c||\\\"radius\\\"===c?1:0,f=o.mapDimension(p),g=[];g[d]=o.get(f,a),g[1-d]=o.get(o.getCalculationInfo(\\\"stackResultDimension\\\"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(v(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}function dI(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Lk(n.dispatchAction,n),s=e.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(s){SI(r)&&(r=pI({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=SI(r),u=o.axesInfo,h=s.axesInfo,c=\\\"leave\\\"===i||SI(r),p={},d={},f={list:[],map:{}},g={showPointer:S(yI,d),showTooltip:S(vI,f)};y(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);y(s.coordSysAxesInfo[e],function(t){var e=t.axis,i=bI(u,t);if(!c&&n&&(!u||i)){var o=i&&i.value;null!=o||l||(o=e.pointToData(r)),null!=o&&fI(t,o,g,!1,p)}})});var v={};return y(h,function(t,e){var n=t.linkGroup;n&&!d[e]&&y(n.axesInfo,function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,wI(e),wI(t)))),v[t.key]=o}})}),y(v,function(t,e){fI(h[e],t,g,!0,p)}),mI(d,h,p),xI(f,r,t,a),_I(h,a,n),p}}function fI(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a=gI(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&h(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function gI(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return y(e.seriesModels,function(e){var l,u,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var c=e.getAxisTooltipData(h,t,n);u=c.dataIndices,l=c.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,\\\"category\\\"===n.type?.5:null),!u.length)return;l=e.getData().get(h[0],u[0])}if(null!=l&&isFinite(l)){var p=t-l,d=Math.abs(p);a>=d&&((a>d||p>=0&&0>s)&&(a=d,s=p,r=l,o.length=0),y(u,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}function yI(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function vI(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=vv(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get([\\\"label\\\",\\\"precision\\\"]),formatter:s.get([\\\"label\\\",\\\"formatter\\\"])},seriesDataIndices:r.slice()})}}function mI(t,e,n){var i=n.axesInfo=[];y(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status=\\\"show\\\"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status=\\\"hide\\\"),\\\"show\\\"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}function xI(t,e,n,i){if(SI(e)||!t.list.length)return void i({type:\\\"hideTip\\\"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:\\\"showTip\\\",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}function _I(t,e,n){var i=n.getZr(),r=\\\"axisPointerLastHighlights\\\",o=Ij(i)[r]||{},a=Ij(i)[r]={};y(t,function(t){var e=t.axisPointerModel.option;\\\"show\\\"===e.status&&t.triggerEmphasis&&y(e.seriesDataIndices,function(t){var e=t.seriesIndex+\\\" | \\\"+t.dataIndex;a[e]=t})});var s=[],l=[];y(o,function(t,e){!a[e]&&l.push(t)}),y(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:\\\"downplay\\\",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:\\\"highlight\\\",escapeConnect:!0,notBlur:!0,batch:s})}function bI(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function wI(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 SI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function MI(t){fH.registerAxisPointerClass(\\\"CartesianAxisPointer\\\",xj),t.registerComponentModel(bj),t.registerComponentView(Mj),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!M(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent(\\\"axisPointer\\\").coordSysAxesInfo=sv(t,e)}),t.registerAction({type:\\\"updateAxisPointer\\\",event:\\\"updateAxisPointer\\\",update:\\\":updateAxisPointer\\\"},dI)}function II(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function TI(t,e,n){var i=e.get(\\\"center\\\"),r=n.getWidth(),o=n.getHeight();t.cx=or(i[0],r),t.cy=or(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get(\\\"radius\\\");null==l?l=[0,\\\"100%\\\"]:M(l)||(l=[0,l]);var u=[or(l[0],s),or(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function CI(t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===e){var r=t.getData();y(xf(r,\\\"radius\\\"),function(t){i.scale.unionExtentFromData(r,t)}),y(xf(r,\\\"angle\\\"),function(t){n.scale.unionExtentFromData(r,t)})}}),hf(n.scale,n.model),hf(i.scale,i.model),\\\"category\\\"===n.type&&!n.onBand){var r=n.getExtent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setExtent(r[0],r[1])}}function DI(t){return\\\"angleAxis\\\"===t.mainType}function AI(t,e){if(t.type=e.get(\\\"type\\\"),t.scale=cf(e),t.onBand=e.get(\\\"boundaryGap\\\")&&\\\"category\\\"===t.type,t.inverse=e.get(\\\"inverse\\\"),DI(e)){t.inverse=t.inverse!==e.get(\\\"clockwise\\\");var n=e.get(\\\"startAngle\\\");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}function kI(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function LI(t){var e=t.getRadiusAxis();return e.inverse?0:1}function PI(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}function OI(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel(\\\"axisLabel\\\").get(\\\"rotate\\\"),z2:1}}function RI(t){return t.get(\\\"stack\\\")||\\\"__ec_stack_\\\"+t.seriesIndex}function NI(t,e){return e.dim+t.model.componentIndex}function EI(t,e){var n={},i=zI(x(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&\\\"polar\\\"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if(\\\"polar\\\"===t.coordinateSystem.type){var e=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=NI(r,o),s=RI(t),l=i[a][s],u=l.offset,h=l.width,c=r.getOtherAxis(o),p=t.coordinateSystem.cx,d=t.coordinateSystem.cy,f=t.get(\\\"barMinHeight\\\")||0,g=t.get(\\\"barMinAngle\\\")||0;n[s]=n[s]||[];for(var y=e.mapDimension(c.dim),v=e.mapDimension(o.dim),m=xd(e,y),x=\\\"radius\\\"!==o.dim||!t.get(\\\"roundCap\\\",!0),_=c.dataToCoord(0),b=0,w=e.count();w>b;b++){var S=e.get(y,b),M=e.get(v,b),I=S>=0?\\\"p\\\":\\\"n\\\",T=_;m&&(n[s][M]||(n[s][M]={p:_,n:_}),T=n[s][M][I]);var C=void 0,D=void 0,A=void 0,k=void 0;if(\\\"radius\\\"===c.dim){var L=c.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)L?-1:1)*f),C=T,D=T+L,A=P-u,k=A-h,m&&(n[s][M][I]=D)}else{var O=c.dataToCoord(S,x)-_,R=o.dataToCoord(M);Math.abs(O)O?-1:1)*g),C=R+u,D=C+h,A=T,k=T+O,m&&(n[s][M][I]=k)}e.setItemLayout(b,{cx:p,cy:d,r0:C,r:D,startAngle:-A*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:A>=k})}}})}function zI(t){var e={};y(t,function(t){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=NI(i,r),a=r.getExtent(),s=\\\"category\\\"===r.type?r.getBandWidth():Math.abs(a[1]-a[0])/n.count(),l=e[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:\\\"20%\\\",gap:\\\"30%\\\",stacks:{}},u=l.stacks;e[o]=l;var h=RI(t);u[h]||l.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var c=or(t.get(\\\"barWidth\\\"),s),p=or(t.get(\\\"barMaxWidth\\\"),s),d=t.get(\\\"barGap\\\"),f=t.get(\\\"barCategoryGap\\\");c&&!u[h].width&&(c=Math.min(l.remainedWidth,c),u[h].width=c,l.remainedWidth-=c),p&&(u[h].maxWidth=p),null!=d&&(l.gap=d),null!=f&&(l.categoryGap=f)});var n={};return y(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=or(t.categoryGap,r),a=or(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),y(i,function(t){var e=t.maxWidth;e&&u>e&&(e=Math.min(e,s),t.width&&(e=Math.min(e,t.width)),s-=e,t.width=e,l--)}),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0;y(i,function(t){t.width||(t.width=u),h=t,c+=t.width*(1+a)}),h&&(c-=h.width*a);var p=-c/2;y(i,function(t,i){n[e][i]=n[e][i]||{offset:p,width:t.width},p+=t.width*(1+a)})}),n}function BI(t){If(MI),fH.registerAxisPointerClass(\\\"PolarAxisPointer\\\",vj),t.registerCoordinateSystem(\\\"polar\\\",Nj),t.registerComponentModel(Tj),t.registerComponentView(Xj),Gy(t,\\\"angle\\\",Dj,Hj),Gy(t,\\\"radius\\\",Aj,Yj),t.registerComponentView(zj),t.registerComponentView(Gj),t.registerLayout(S(EI,\\\"bar\\\"))}function VI(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=[\\\"vertical\\\"===a?u.vertical[o]:l[0],\\\"horizontal\\\"===a?u.horizontal[o]:l[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[a];var c={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=c[o],t.get([\\\"axisTick\\\",\\\"inside\\\"])&&(r.tickDirection=-r.tickDirection),z(e.labelInside,t.get([\\\"axisLabel\\\",\\\"inside\\\"]))&&(r.labelDirection=-r.labelDirection);var p=e.rotate;return null==p&&(p=t.get([\\\"axisLabel\\\",\\\"rotate\\\"])),r.labelRotation=\\\"top\\\"===o?-p:p,r.z2=1,r}function FI(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function GI(t,e){var n=[];return t.eachComponent(\\\"singleAxis\\\",function(i,r){var o=new Qj(i,t,e);o.name=\\\"single_\\\"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if(\\\"singleAxis\\\"===t.get(\\\"coordinateSystem\\\")){var e=t.getReferringComponents(\\\"singleAxis\\\",iO).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n}function WI(t){return t.isHorizontal()?0:1}function HI(t,e){var n=t.getRect();return[n[eq[e]],n[eq[e]]+n[nq[e]]]}function YI(t){If(MI),fH.registerAxisPointerClass(\\\"SingleAxisPointer\\\",iq),t.registerComponentView(oq),t.registerComponentView(jj),t.registerComponentModel(Kj),Gy(t,\\\"single\\\",Kj,Kj.defaultOption),t.registerCoordinateSystem(\\\"single\\\",tq)}function XI(t,e){var n,i=t.cellSize;n=M(i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=v([0,1],function(t){return cu(e,t)&&(n[t]=\\\"auto\\\"),null!=n[t]&&\\\"auto\\\"!==n[t]});du(t,e,{type:\\\"box\\\",ignoreSize:r})}function UI(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}function ZI(t){t.registerComponentModel(aq),t.registerComponentView(sq),t.registerCoordinateSystem(\\\"calendar\\\",uq)}function jI(t){t.registerComponentModel(hq),t.registerComponentView(cq)}function qI(t,e,n){var i=e.getBoxLayoutParams(),r=e.get(\\\"padding\\\"),o={width:n.getWidth(),height:n.getHeight()},a=uu(i,o,r);GE(e.get(\\\"orient\\\"),t,e.get(\\\"itemGap\\\"),a.width,a.height),hu(t,i,o,r)}function KI(t,e){var n=NE(e.get(\\\"padding\\\")),i=e.getItemStyle([\\\"color\\\",\\\"opacity\\\"]);return i.fill=e.get(\\\"backgroundColor\\\"),t=new mR({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})}function $I(t,e,n,i,r,o,a){function s(t,e){\\\"auto\\\"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),gq(t,function(n,i){\\\"inherit\\\"===t[i]&&(t[i]=e[i])})}var l=e.getModel(\\\"itemStyle\\\"),u=l.getItemStyle(),h=0===t.lastIndexOf(\\\"empty\\\",0)?\\\"fill\\\":\\\"stroke\\\",c=l.getShallow(\\\"decal\\\");u.decal=c&&\\\"inherit\\\"!==c?_p(c,a):i.decal,\\\"inherit\\\"===u.fill&&(u.fill=i[r]),\\\"inherit\\\"===u.stroke&&(u.stroke=i[h]),\\\"inherit\\\"===u.opacity&&(u.opacity=(\\\"fill\\\"===r?i:n).opacity),s(u,i);var p=e.getModel(\\\"lineStyle\\\"),d=p.getLineStyle();if(s(d,n),\\\"auto\\\"===u.fill&&(u.fill=i.fill),\\\"auto\\\"===u.stroke&&(u.stroke=i.fill),\\\"auto\\\"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get(\\\"inactiveBorderWidth\\\"),g=u[h];u.lineWidth=\\\"auto\\\"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get(\\\"inactiveColor\\\"),u.stroke=e.get(\\\"inactiveBorderColor\\\"),d.stroke=p.get(\\\"inactiveColor\\\"),d.lineWidth=p.get(\\\"inactiveWidth\\\")}return{itemStyle:u,lineStyle:d}}function JI(t){var e=t.icon||\\\"roundRect\\\",n=Gc(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf(\\\"empty\\\")>-1&&(n.style.stroke=n.style.fill,n.style.fill=\\\"#fff\\\",n.style.lineWidth=2),n}function QI(t,e,n,i){nT(t,e,n,i),n.dispatchAction({type:\\\"legendToggleSelect\\\",name:null!=t?t:e}),eT(t,e,n,i)}function tT(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;r>i&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function eT(t,e,n,i){tT(n)||n.dispatchAction({type:\\\"highlight\\\",seriesName:t,name:e,excludeSeriesId:i})}function nT(t,e,n,i){tT(n)||n.dispatchAction({type:\\\"downplay\\\",seriesName:t,name:e,excludeSeriesId:i})}function iT(t){var e=t.findComponents({mainType:\\\"legend\\\"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn;n++)if(t[n]in e)return t[n]}function pT(t,e){if(!t)return e;e=Jl(e,!0);var n=t.indexOf(e);return t=-1===n?e:\\\"-\\\"+t.slice(0,n)+\\\"-\\\"+e,t.toLowerCase()}function dT(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}function fT(t){return t=\\\"left\\\"===t?\\\"right\\\":\\\"right\\\"===t?\\\"left\\\":\\\"top\\\"===t?\\\"bottom\\\":\\\"top\\\"}function gT(t,e,n){if(!T(n)||\\\"inside\\\"===n)return\\\"\\\";var i=t.get(\\\"backgroundColor\\\"),r=t.get(\\\"borderWidth\\\");e=ou(e);var o,a=fT(n),s=Math.max(1.5*Math.round(r),6),l=\\\"\\\",u=Cq+\\\":\\\";p([\\\"left\\\",\\\"right\\\"],a)>-1?(l+=\\\"top:50%\\\",u+=\\\"translateY(-50%) rotate(\\\"+(o=\\\"left\\\"===a?-225:-45)+\\\"deg)\\\"):(l+=\\\"left:50%\\\",u+=\\\"translateX(-50%) rotate(\\\"+(o=\\\"top\\\"===a?225:45)+\\\"deg)\\\");var h=o*Math.PI/180,c=s+r,d=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-c)/2))/100;l+=\\\";\\\"+a+\\\":-\\\"+f+\\\"px\\\";var g=e+\\\" solid \\\"+r+\\\"px;\\\",y=[\\\"position:absolute;width:\\\"+s+\\\"px;height:\\\"+s+\\\"px;z-index:-1;\\\",l+\\\";\\\"+u+\\\";\\\",\\\"border-bottom:\\\"+g,\\\"border-right:\\\"+g,\\\"background-color:\\\"+i+\\\";\\\"];return'
'}function yT(t,e){var n=\\\"cubic-bezier(0.23,1,0.32,1)\\\",i=\\\" \\\"+t/2+\\\"s \\\"+n,r=\\\"opacity\\\"+i+\\\",visibility\\\"+i;return e||(i=\\\" \\\"+t+\\\"s \\\"+n,r+=uk.transformSupported?\\\",\\\"+Cq+i:\\\",left\\\"+i+\\\",top\\\"+i),Tq+\\\":\\\"+r}function vT(t,e,n){var i=t.toFixed(0)+\\\"px\\\",r=e.toFixed(0)+\\\"px\\\";if(!uk.transformSupported)return n?\\\"top:\\\"+r+\\\";left:\\\"+i+\\\";\\\":[[\\\"top\\\",r],[\\\"left\\\",i]];var o=uk.transform3dSupported,a=\\\"translate\\\"+(o?\\\"3d\\\":\\\"\\\")+\\\"(\\\"+i+\\\",\\\"+r+(o?\\\",0\\\":\\\"\\\")+\\\")\\\";return n?\\\"top:0;left:0;\\\"+Cq+\\\":\\\"+a+\\\";\\\":[[\\\"top\\\",0],[\\\"left\\\",0],[Mq,a]]}function mT(t){var e=[],n=t.get(\\\"fontSize\\\"),i=t.getTextColor();i&&e.push(\\\"color:\\\"+i),e.push(\\\"font:\\\"+t.getFont()),n&&e.push(\\\"line-height:\\\"+Math.round(3*n/2)+\\\"px\\\");var r=t.get(\\\"textShadowColor\\\"),o=t.get(\\\"textShadowBlur\\\")||0,a=t.get(\\\"textShadowOffsetX\\\")||0,s=t.get(\\\"textShadowOffsetY\\\")||0;return r&&o&&e.push(\\\"text-shadow:\\\"+a+\\\"px \\\"+s+\\\"px \\\"+o+\\\"px \\\"+r),y([\\\"decoration\\\",\\\"align\\\"],function(n){var i=t.get(n);i&&e.push(\\\"text-\\\"+n+\\\":\\\"+i)}),e.join(\\\";\\\")}function xT(t,e,n){var i=[],r=t.get(\\\"transitionDuration\\\"),o=t.get(\\\"backgroundColor\\\"),a=t.get(\\\"shadowBlur\\\"),s=t.get(\\\"shadowColor\\\"),l=t.get(\\\"shadowOffsetX\\\"),u=t.get(\\\"shadowOffsetY\\\"),h=t.getModel(\\\"textStyle\\\"),c=tc(t,\\\"html\\\"),p=l+\\\"px \\\"+u+\\\"px \\\"+a+\\\"px \\\"+s;return i.push(\\\"box-shadow:\\\"+p),e&&r&&i.push(yT(r,n)),o&&i.push(\\\"background-color:\\\"+o),y([\\\"width\\\",\\\"color\\\",\\\"radius\\\"],function(e){var n=\\\"border-\\\"+e,r=Jl(n),o=t.get(r);null!=o&&i.push(n+\\\":\\\"+o+(\\\"color\\\"===e?\\\"\\\":\\\"px\\\"))}),i.push(mT(h)),null!=c&&i.push(\\\"padding:\\\"+NE(c).join(\\\"px \\\")+\\\"px\\\"),i.join(\\\";\\\")+\\\";\\\"}function _T(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&we(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function bT(t){return Math.max(0,t)}function wT(t){var e=bT(t.shadowBlur||0),n=bT(t.shadowOffsetX||0),i=bT(t.shadowOffsetY||0);return{left:bT(e-n),right:bT(e+n),top:bT(e-i),bottom:bT(e+i)}}function ST(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}function MT(t,e,n){var i,r=e.ecModel;n?(i=new gE(n,r,r),i=new gE(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof gE&&(a=a.get(\\\"tooltip\\\",!0)),T(a)&&(a={formatter:a}),a&&(i=new gE(a,i,r)))}return i}function IT(t,e){return t.dispatchAction||Lk(e.dispatchAction,e)}function TT(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function CT(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function DT(t,e,n,i){var r=n[0],o=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-r/2,l=e.y+h/2-o/2;break;case\\\"top\\\":s=e.x+u/2-r/2,l=e.y-o-a;break;case\\\"bottom\\\":s=e.x+u/2-r/2,l=e.y+h+a;break;case\\\"left\\\":s=e.x-r-a,l=e.y+h/2-o/2;break;case\\\"right\\\":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}function AT(t){return\\\"center\\\"===t||\\\"middle\\\"===t}function kT(t,e,n){var i=Jr(t).queryOptionMap,r=i.keys()[0];if(r&&\\\"series\\\"!==r){var o=Qr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse(function(e){var n=TR(e).tooltipConfig;return n&&n.name===t.name?(s=e,!0):void 0}),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}function LT(t){If(MI),t.registerComponentModel(Sq),t.registerComponentView(Pq),t.registerAction({type:\\\"showTip\\\",event:\\\"showTip\\\",update:\\\"tooltip:manuallyShowTip\\\"},J),t.registerAction({type:\\\"hideTip\\\",event:\\\"hideTip\\\",update:\\\"tooltip:manuallyHideTip\\\"},J)}function PT(t,e){if(!t)return!1;for(var n=M(t)?t:[t],i=0;i=0&&(a[o]=+a[o].toFixed(p)),[a,c]}function zT(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!NT(e)&&!M(e.coord)&&M(r)){var o=BT(e,n,i,t);if(e=s(e),e.type&&Eq[e.type]&&o.baseAxis&&o.valueAxis){var a=p(r,o.baseAxis.dim),l=p(r,o.valueAxis.dim),u=Eq[e.type](n,o.baseDataDim,o.valueDataDim,a,l);e.coord=u[0],e.value=u[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&M(r))for(var h=e.coord,c=0;2>c;c++)Eq[h[c]]&&(h[c]=HT(n,n.mapDimension(r[c]),h[c]));else e.coord=[];return e}}function BT(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(VT(i,r.valueDataDim)),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 VT(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function FT(t,e){return t&&t.containData&&e.coord&&!RT(e)?t.containData(e.coord):!0}function GT(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!RT(e)&&!RT(n)?t.containZone(e.coord,n.coord):!0}function WT(t,e){return t?function(t,n,i,r){var o=2>r?t.coord&&t.coord[r]:t.value;return wh(o,e[r])}:function(t,n,i,r){return wh(t.value,e[r])}}function HT(t,e,n){if(\\\"average\\\"===n){var i=0,r=0;return t.each(e,function(t){isNaN(t)||(i+=t,r++)}),i/r}return\\\"median\\\"===n?t.getMedian(e):t.getDataExtent(e)[\\\"max\\\"===n?1:0]}function YT(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=or(a.get(\\\"x\\\"),n.getWidth()),l=or(a.get(\\\"y\\\"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)})}function XT(t,e,n){var i;i=t?v(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return h(h({},n),{name:t,ordinalMeta:null})}):[{name:\\\"value\\\",type:\\\"float\\\"}];var r=new WF(i,n),o=v(n.get(\\\"data\\\"),S(zT,e));t&&(o=x(o,S(FT,t)));var a=WT(!!t,i);return r.initData(o,null,a),r}function UT(t){t.registerComponentModel(Nq),t.registerComponentView(Vq),t.registerPreprocessor(function(t){PT(t.series,\\\"markPoint\\\")&&(t.markPoint=t.markPoint||{})})}function ZT(t){return!isNaN(t)&&!isFinite(t)}function jT(t,e,n,i){var r=1-t,o=i.dimensions[t];return ZT(e[r])&&ZT(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function qT(t,e){if(\\\"cartesian2d\\\"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(jT(1,n,i,t)||jT(0,n,i,t)))return!0}return FT(t,e[0])&&FT(t,e[1])}function KT(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=or(s.get(\\\"x\\\"),r.getWidth()),u=or(s.get(\\\"y\\\"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),p=t.get(h[1],e);o=a.dataToPoint([c,p])}if(Pg(a,\\\"cartesian2d\\\")){var d=a.getAxis(\\\"x\\\"),f=a.getAxis(\\\"y\\\"),h=a.dimensions;ZT(t.get(h[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):ZT(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}function $T(t,e,n){var i;i=t?v(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return h(h({},n),{name:t,ordinalMeta:null})}):[{name:\\\"value\\\",type:\\\"float\\\"}];var r=new WF(i,n),o=new WF(i,n),a=new WF([],n),s=v(n.get(\\\"data\\\"),S(Wq,e,t,n));t&&(s=x(s,S(qT,t)));var l=WT(!!t,i);return r.initData(v(s,function(t){return t[0]}),null,l),o.initData(v(s,function(t){return t[1]}),null,l),a.initData(v(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}function JT(t){t.registerComponentModel(Fq),t.registerComponentView(Hq),t.registerPreprocessor(function(t){PT(t.series,\\\"markLine\\\")&&(t.markLine=t.markLine||{})})}function QT(t){return!isNaN(t)&&!isFinite(t)}function tC(t,e,n){var i=1-t;return QT(e[i])&&QT(n[i])}function eC(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return Pg(t,\\\"cartesian2d\\\")?n&&i&&(tC(1,n,i,t)||tC(0,n,i,t))?!0:GT(t,r,o):FT(t,r)||FT(t,o)}function nC(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=or(s.get(n[0]),r.getWidth()),u=or(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues([\\\"x0\\\",\\\"y0\\\"],e),c=t.getValues([\\\"x1\\\",\\\"y1\\\"],e),p=a.clampData(h),d=a.clampData(c),f=[];f[0]=\\\"x0\\\"===n[0]?p[0]>d[0]?c[0]:h[0]:p[0]>d[0]?h[0]:c[0],f[1]=\\\"y0\\\"===n[1]?p[1]>d[1]?c[1]:h[1]:p[1]>d[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(Pg(a,\\\"cartesian2d\\\")){var m=a.getAxis(\\\"x\\\"),x=a.getAxis(\\\"y\\\"),g=t.get(n[0],e),y=t.get(n[1],e);QT(g)?o[0]=m.toGlobalCoord(m.getExtent()[\\\"x0\\\"===n[0]?0:1]):QT(y)&&(o[1]=x.toGlobalCoord(x.getExtent()[\\\"y0\\\"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}function iC(t,e,n){var i,r,o=[\\\"x0\\\",\\\"y0\\\",\\\"x1\\\",\\\"y1\\\"];if(t){var a=v(t&&t.dimensions,function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return h(h({},i),{name:t,ordinalMeta:null})});r=v(o,function(t,e){return{name:t,type:a[e%2].type}}),i=new WF(r,n)}else r=[{name:\\\"value\\\",type:\\\"float\\\"}],i=new WF(r,n);var s=v(n.get(\\\"data\\\"),S(Uq,e,t,n));t&&(s=x(s,S(eC,t)));var l=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return wh(o,r[i])}:function(t,e,n,i){return wh(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}function rC(t){t.registerComponentModel(Yq),t.registerComponentView(jq),t.registerPreprocessor(function(t){PT(t.series,\\\"markArea\\\")&&(t.markArea=t.markArea||{})})}function oC(t,e){if(e=e||t.get(\\\"type\\\"))switch(e){case\\\"category\\\":return new jF({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case\\\"time\\\":return new eG({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get(\\\"useUTC\\\")});default:return new KF}}function aC(t,e){return uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get(\\\"padding\\\"))}function sC(t,e,n,i){var r=i.style,o=tl(t.get([\\\"controlStyle\\\",e]),i||{},new dL(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function lC(t,e,n,i,r,o){var a=e.get(\\\"color\\\");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get(\\\"symbol\\\");r=Gc(s,-1,-1,2,2,a),r.setStyle(\\\"strokeNoScale\\\",!0),n.add(r),o&&o.onCreate(r)}var u=e.getItemStyle([\\\"color\\\"]);r.setStyle(u),i=l({rectHover:!0,z2:100},i,!0);var h=Wc(t.get(\\\"symbolSize\\\"));i.scaleX=h[0]/2,i.scaleY=h[1]/2;var c=Hc(t.get(\\\"symbolOffset\\\"),h);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var p=t.get(\\\"symbolRotate\\\");return i.rotation=(p||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function uC(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel(\\\"checkpointStyle\\\"),s=i.dataToCoord(r.getData().get(\\\"value\\\",n));if(o||!a.get(\\\"animation\\\",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get(\\\"animationDuration\\\",!0),easing:a.get(\\\"animationEasing\\\",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function hC(t){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)}),c({currentIndex:i.option.currentIndex},t)}),t.registerAction({type:\\\"timelinePlayChange\\\",event:\\\"timelinePlayChanged\\\",update:\\\"update\\\"},function(t,e){var n=e.getComponent(\\\"timeline\\\");n&&null!=t.playState&&n.setPlayState(t.playState)})}function cC(t){var e=t&&t.timeline;M(e)||(e=e?[e]:[]),y(e,function(t){t&&pC(t)})}function pC(t){var e=t.type,n={number:\\\"value\\\",time:\\\"time\\\"};if(n[e]&&(t.axisType=n[e],delete t.type),dC(t),fC(t,\\\"controlPosition\\\")){var i=t.controlStyle||(t.controlStyle={});fC(i,\\\"position\\\")||(i.position=t.controlPosition),\\\"none\\\"!==i.position||fC(i,\\\"show\\\")||(i.show=!1,delete i.position),delete t.controlPosition}y(t.data||[],function(t){A(t)&&!M(t)&&(!fC(t,\\\"value\\\")&&fC(t,\\\"name\\\")&&(t.value=t.name),dC(t))})}function dC(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};y(i,function(t,e){o[e]||fC(r,e)||(r[e]=t)}),n.label&&!fC(i,\\\"emphasis\\\")&&(i.emphasis=n.label,delete n.label)}function fC(t,e){return t.hasOwnProperty(e)}function gC(t){t.registerComponentModel(Kq),t.registerComponentView(eK),t.registerSubTypeDefaulter(\\\"timeline\\\",function(){return\\\"slider\\\"}),hC(t),t.registerPreprocessor(cC)}function yC(t){var e=t.get(\\\"coordinateSystem\\\");return p(iK,e)>=0}function vC(t){return t+\\\"Axis\\\"}function mC(t,e){function n(t){!l.get(t.uid)&&r(t)&&(i(t),u=!0)}function i(t){l.set(t.uid,!0),s.push(t),o(t)}function r(t){var e=!1;return t.eachTargetAxis(function(t,n){var i=a.get(t);i&&i[n]&&(e=!0)}),e}function o(t){t.eachTargetAxis(function(t,e){(a.get(t)||a.set(t,[]))[e]=!0})}var a=Z(),s=[],l=Z();t.eachComponent({mainType:\\\"dataZoom\\\",query:e},function(t){l.get(t.uid)||i(t)});var u;do u=!1,t.eachComponent(\\\"dataZoom\\\",n);while(u);return s}function xC(t){var e=t.ecModel,n={infoList:[],infoMap:Z()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(vC(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}function _C(t){var e={};return y([\\\"start\\\",\\\"end\\\",\\\"startValue\\\",\\\"endValue\\\",\\\"throttle\\\"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function bC(t,e,n){lK(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function wC(t,e){for(var n=lK(t).coordSysRecordMap,i=n.keys(),r=0;ri[n+e]&&(e=a),r=r&&o.get(\\\"preventDefaultMouseMove\\\",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function DC(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=lK(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Z());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:\\\"dataZoom\\\",subType:\\\"inside\\\"},function(t){var n=xC(t);y(n.infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,MC(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Z());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(!e)return void SC(i,t);var a=CC(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),mc(t,\\\"dispatchAction\\\",e.model.get(\\\"throttle\\\",!0),\\\"fixRate\\\")})})}function AC(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return Pb(l,a,[0,100],\\\"all\\\"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}function kC(t,e,n){var i=[1/0,-1/0];pK(n,function(t){_f(i,t.getData(),e)});var r=t.getAxisModel(),o=af(r.axis.scale,r,i).calculate();return[o.min,o.max]}function LC(t){t.registerAction(\\\"dataZoom\\\",function(t,e){var n=mC(e,t);y(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}function PC(t){yK||(yK=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,gK),LC(t),t.registerSubTypeDefaulter(\\\"dataZoom\\\",function(){return\\\"slider\\\"}))}function OC(t){PC(t),t.registerComponentModel(aK),t.registerComponentView(uK),DC(t)}function RC(t){var e={x:\\\"y\\\",y:\\\"x\\\",radius:\\\"angle\\\",angle:\\\"radius\\\"};return e[t]}function NC(t){return\\\"vertical\\\"===t?\\\"ns-resize\\\":\\\"ew-resize\\\"}function EC(t){t.registerComponentModel(vK),t.registerComponentView(DK),PC(t)}function zC(){If(OC),If(EC)}function BC(t,e){var n=Ar(t?t.brush:[]);if(n.length){var i=[];y(n,function(t){var e=t.hasOwnProperty(\\\"toolbox\\\")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;M(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),VC(s),e&&!s.length&&s.push.apply(s,AK)}}function VC(t){var e={};y(t,function(t){e[t]=1}),t.length=0,y(e,function(e,n){t.push(n)})}function FC(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function GC(t,e,n){function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}var r={};return kK(e,function(e){var o=r[e]=i();kK(t[e],function(t,i){if(RY.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new RY(r),\\\"opacity\\\"===i&&(r=s(r),r.type=\\\"colorAlpha\\\",o.__hidden.__alphaForOpacity=new RY(r))}})}),r}function WC(t,e,n){var i;y(n,function(t){e.hasOwnProperty(t)&&FC(e[t])&&(i=!0)}),i&&y(n,function(n){e.hasOwnProperty(n)&&FC(e[n])?t[n]=s(e[n]):delete t[n]})}function HC(t,e,n,i,r,o){function a(t){return Oc(n,h,t)}function s(t,e){Nc(n,h,t,e)}function l(t,l){h=null==o?t:l;var c=n.getRawDataItem(h);if(!c||c.visualMap!==!1)for(var p=i.call(r,t),d=e[p],f=u[p],g=0,y=f.length;y>g;g++){var v=f[g];d[v]&&d[v].applyVisual(t,a,s)}}var u={};y(t,function(t){var n=RY.prepareVisualTypes(e[t]);u[t]=n});var h;null==o?n.each(l):n.each([o],l)}function YC(t,e,n,i){var r={};return y(t,function(t){var n=RY.prepareVisualTypes(e[t]);r[t]=n}),{progress:function(t,o){function a(t){return Oc(o,u,t)}function s(t,e){Nc(o,u,t,e)}var l;null!=i&&(l=o.getDimensionIndex(i));for(var u,h=o.getStore();null!=(u=t.next());){var c=o.getRawDataItem(u);if(!c||c.visualMap!==!1)for(var p=null!=i?h.get(l,u):u,d=n(p),f=e[d],g=r[d],y=0,v=g.length;v>y;y++){var m=g[y];f[m]&&f[m].applyVisual(p,a,s)}}}}}function XC(t){var e=t.brushType,n={point:function(i){return LK[e].point(i,n,t)},rect:function(i){return LK[e].rect(i,n,t)}};return n}function UC(t){var e=[\\\"x\\\",\\\"y\\\"],n=[\\\"width\\\",\\\"height\\\"];return{point:function(e,n,i){if(e){var r=i.range,o=e[t];return ZC(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]t[1]&&t.reverse(),t}function qC(t,e){return $r(t,e,{includeMainTypes:PK})}function KC(t,e,n,i){var r=n.getAxis([\\\"x\\\",\\\"y\\\"][t]),o=jC(v([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[0/0,0/0],{values:o,xyMinMax:a}}function $C(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function JC(t,e){var n=QC(t),i=QC(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function QC(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[0/0,0/0]}function tD(t){t.eachComponent({mainType:\\\"brush\\\"},function(e){var n=e.brushTargetManager=new OK(e.option,t);n.setInputRanges(e.areas,t)})}function eD(t,e,n){var i,r,o=[];t.eachComponent({mainType:\\\"brush\\\"},function(t){n&&\\\"takeGlobalCursor\\\"===n.type&&t.setBrushOption(\\\"brush\\\"===n.key?n.brushOption:{brushType:!1})}),tD(t),t.eachComponent({mainType:\\\"brush\\\"},function(e,n){function a(t){return\\\"all\\\"===f||!!g[t]}function l(t){return!!t.length}function u(t,e){var n=t.coordinateSystem;_=_||n.hasAxisBrushed(),a(e)&&n.eachActiveState(t.getData(),function(t,e){\\\"active\\\"===t&&(m[e]=1)})}function h(n,i,r){if(n.brushSelector&&!oD(e,i)&&(y(b,function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),_=_||l(r)}),a(i)&&l(r))){var o=n.getData();o.each(function(t){rD(n,r,o,t)&&(m[t]=1)})}}var p={brushId:e.id,brushIndex:n,brushName:e.name,areas:s(e.areas),selected:[]};o.push(p);var d=e.option,f=d.brushLink,g=[],m=[],x=[],_=!1;n||(i=d.throttleType,r=d.throttleDelay);var b=v(e.areas,function(t){var e=WK[t.brushType],n=c({boundingRect:e?e(t):void 0},t);return n.selectors=XC(n),n}),w=GC(e.option,VK,function(t){t.mappingMethod=\\\"fixed\\\"});M(f)&&y(f,function(t){g[t]=1}),t.eachSeries(function(t,e){var n=x[e]=[];\\\"parallel\\\"===t.subType?u(t,e):h(t,e,n)}),t.eachSeries(function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};p.selected.push(n);var i=x[e],r=t.getData(),o=a(e)?function(t){return m[t]?(n.dataIndex.push(r.getRawIndex(t)),\\\"inBrush\\\"):\\\"outOfBrush\\\"}:function(e){return rD(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),\\\"inBrush\\\"):\\\"outOfBrush\\\"};(a(e)?_:l(i))&&HC(VK,w,r,o)})}),nD(e,i,r,o,n)}function nD(t,e,n,i,r){if(r){var o=t.getZr();if(!o[GK]){o[FK]||(o[FK]=iD);var a=mc(o,FK,n,e);a(t,i)}}}function iD(t,e){if(!t.isDisposed()){var n=t.getZr();n[GK]=!0,t.dispatchAction({type:\\\"brushSelect\\\",batch:e}),n[GK]=!1}}function rD(t,e,n,i){for(var r=0,o=e.length;o>r;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}function oD(t,e){var n=t.option.seriesIndex;return null!=n&&\\\"all\\\"!==n&&(M(n)?p(n,e)<0:e!==n)}function aD(t){return new dL(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}function sD(t,e){return l({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new gE(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function lD(t,e){ZK[t]=e}function uD(t){return ZK[t]}function hD(t){t.registerComponentView(HK),t.registerComponentModel(XK),t.registerPreprocessor(BC),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,eD),t.registerAction({type:\\\"brush\\\",event:\\\"brush\\\",update:\\\"updateVisual\\\"},function(t,e){e.eachComponent({mainType:\\\"brush\\\",query:t},function(e){e.setAreas(t.areas)})}),t.registerAction({type:\\\"brushSelect\\\",event:\\\"brushSelected\\\",update:\\\"none\\\"},J),t.registerAction({type:\\\"brushEnd\\\",event:\\\"brushEnd\\\",update:\\\"none\\\"},J),lD(\\\"brush\\\",qK)}function cD(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;i>=s&&oh;h++)u[l$[1-a][h]]=l[h],u[s[h]]=2===h?n[0]:i[s[h]];var c=[[\\\"x\\\",\\\"width\\\",3],[\\\"y\\\",\\\"height\\\",0]][a],p=uu(u,o,i.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+.5*p[c[1]]<.5*o[c[1]]?0:1]}function dD(t,e){return y(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey=\\\"visualMap\\\"+(e?e.componentIndex:\\\"\\\")}),t}function fD(t,e,n,i){return new MN({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){tL(t.event)},ondragend:i})}function gD(t,e,n){var i=d$/2,r=t.get(\\\"hoverLinkDataSize\\\");return r&&(i=u$(r,e,n,!0)/2),i}function yD(t){var e=t.get(\\\"hoverLinkOnHandle\\\");return!!(null==e?t.get(\\\"realtime\\\"):e)}function vD(t){return\\\"vertical\\\"===t?\\\"ns-resize\\\":\\\"ew-resize\\\"}function mD(t,e,n,i){function r(t){return l[t]}function o(t,e){l[t]=e}for(var a=e.targetVisuals[i],s=RY.prepareVisualTypes(a),l={color:Rc(t.getData(),\\\"color\\\")},u=0,h=s.length;h>u;u++){var c=s[u],p=a[\\\"opacity\\\"===c?\\\"__alphaForOpacity\\\":c];p&&p.applyVisual(n,r,o)}return l.color}function xD(t){var e=t&&t.visualMap;M(e)||(e=e?[e]:[]),x$(e,function(t){if(t){_D(t,\\\"splitList\\\")&&!_D(t,\\\"pieces\\\")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&M(e)&&x$(e,function(t){A(t)&&(_D(t,\\\"start\\\")&&!_D(t,\\\"min\\\")&&(t.min=t.start),_D(t,\\\"end\\\")&&!_D(t,\\\"max\\\")&&(t.max=t.end))})}})}function _D(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}function bD(t){_$||(_$=!0,t.registerSubTypeDefaulter(\\\"visualMap\\\",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?\\\"piecewise\\\":\\\"continuous\\\"}),t.registerAction(y$,v$),y(m$,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(xD))}function wD(t){t.registerComponentModel(a$),t.registerComponentView(g$),bD(t)}function SD(t,e){var n=t.inverse;(\\\"vertical\\\"===t.orient?!n:n)&&e.reverse()}function MD(t){t.registerComponentModel(b$),t.registerComponentView(S$),bD(t)}function ID(){If(wD),If(MD)}function TD(t){t.registerComponentModel(M$),t.registerComponentView(I$),PC(t)}function CD(t){return 0===t.indexOf(\\\"my\\\")}function DD(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||\\\"cartesian2d\\\"!==r.type&&\\\"polar\\\"!==r.type)n.push(t);else{var o=r.getBaseAxis();if(\\\"category\\\"===o.type){var a=o.dim+\\\"_\\\"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function AD(t){var e=[];return y(t,function(t){var n=t.categoryAxis,i=t.valueAxis,r=i.dim,o=[\\\" \\\"].concat(v(t.series,function(t){return t.name})),a=[n.model.getCategories()];y(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(R$)],l=0;la;a++)i[a]=arguments[a];n.push((o?o+R$:\\\"\\\")+i.join(R$))}),n.join(\\\"\\\\n\\\")}).join(\\\"\\\\n\\\\n\\\"+O$+\\\"\\\\n\\\\n\\\")}function LD(t){var e=DD(t);return{value:x([AD(e.seriesGroupByCategoryAxis),kD(e.other)],function(t){return!!t.replace(/[\\\\n\\\\t\\\\s]/g,\\\"\\\")}).join(\\\"\\\\n\\\\n\\\"+O$+\\\"\\\\n\\\\n\\\"),meta:e.meta}}function PD(t){return t.replace(/^\\\\s\\\\s*/,\\\"\\\").replace(/\\\\s\\\\s*$/,\\\"\\\")}function OD(t){var e=t.slice(0,t.indexOf(\\\"\\\\n\\\"));return e.indexOf(R$)>=0?!0:void 0}function RD(t){for(var e=t.split(/\\\\n+/g),n=PD(e.shift()).split(N$),i=[],r=v(n,function(t){return{name:t,data:[]}}),o=0;o=0;r--){var o=n[r];if(o[i])break}if(0>r){var a=t.queryComponents({mainType:\\\"dataZoom\\\",subType:\\\"select\\\",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),n.push(e)}function VD(t){var e=WD(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return z$(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}function FD(t){B$(t).snapshots=null}function GD(t){return WD(t).length}function WD(t){var e=B$(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}function HD(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}function YD(t,e){t.setIconStatus(\\\"back\\\",GD(e)>1?\\\"emphasis\\\":\\\"normal\\\")}function XD(t,e,n,i,r){var o=n._isZoomActive;i&&\\\"takeGlobalCursor\\\"===i.type&&(o=\\\"dataZoomSelect\\\"===i.key?i.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus(\\\"zoom\\\",o?\\\"emphasis\\\":\\\"normal\\\");var a=new OK(HD(t),e,{include:[\\\"grid\\\"]}),s=a.makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?\\\"lineX\\\":!t.xAxisDeclared&&t.yAxisDeclared?\\\"lineY\\\":\\\"rect\\\"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:\\\"auto\\\",brushStyle:t.getModel(\\\"brushStyle\\\").getItemStyle()}:!1)}function UD(t){t.registerComponentModel(T$),t.registerComponentView(C$),lD(\\\"saveAsImage\\\",D$),lD(\\\"magicType\\\",L$),lD(\\\"dataView\\\",E$),lD(\\\"dataZoom\\\",W$),lD(\\\"restore\\\",V$),If(TD)}function ZD(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function jD(t,e){var n;return y(e,function(e){null!=t[e]&&\\\"auto\\\"!==t[e]&&(n=!0)}),n}function qD(t,e,n){var i=h({},n),r=t[e],o=n.$action||\\\"merge\\\";\\\"merge\\\"===o?r?(l(r,i,!0),du(r,i,{ignoreSize:!0}),gu(n,r),KD(n,r),KD(n,r,\\\"shape\\\"),KD(n,r,\\\"style\\\"),KD(n,r,\\\"extra\\\"),n.clipPath=r.clipPath):t[e]=i:\\\"replace\\\"===o?t[e]=i:\\\"remove\\\"===o&&r&&(t[e]=null)}function KD(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?Y$:X$,r=0;ra)&&t(\\\"fill-opacity\\\",a)}else t(\\\"fill\\\",nJ);if(aA(e)){var s=jn(e.stroke);t(\\\"stroke\\\",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,c=e.strokeFirst;if((i||1!==u)&&t(\\\"stroke-width\\\",u),(i||c)&&t(\\\"paint-order\\\",c?\\\"stroke\\\":\\\"fill\\\"),(i||1>h)&&t(\\\"stroke-opacity\\\",h),e.lineDash){var p=Jc(n),d=p[0],f=p[1];d&&(f=iJ(f||0),t(\\\"stroke-dasharray\\\",d.join(\\\",\\\")),(f||i)&&t(\\\"stroke-dashoffset\\\",f))}else i&&t(\\\"stroke-dasharray\\\",nJ);for(var g=0;g\\\"}function cA(t){return\\\"\\\"}function pA(t,e){function n(t){var e=t.children,r=t.tag,o=t.attrs,a=t.text;return hA(r,o)+(\\\"style\\\"!==r?Ce(a):a||\\\"\\\")+(e?\\\"\\\"+i+v(e,function(t){return n(t)}).join(i)+i:\\\"\\\")+cA(r)}e=e||{};var i=e.newline?\\\"\\\\n\\\":\\\"\\\";return n(t)}function dA(t,e,n){n=n||{};var i=n.newline?\\\"\\\\n\\\":\\\"\\\",r=\\\" {\\\"+i,o=i+\\\"}\\\",a=v(b(t),function(e){return e+r+v(b(t[e]),function(n){return n+\\\":\\\"+t[e][n]+\\\";\\\"}).join(i)+o}).join(i),s=v(b(e),function(t){return\\\"@keyframes \\\"+t+r+v(b(e[t]),function(n){return n+r+v(b(e[t][n]),function(i){var r=e[t][n][i];return\\\"d\\\"===i&&(r='path(\\\"'+r+'\\\")'),i+\\\":\\\"+r+\\\";\\\"}).join(i)+o}).join(i)+o}).join(i);return a||s?[\\\"\\\"].join(i):\\\"\\\"}function fA(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function gA(t,e,n,i){return uA(\\\"svg\\\",\\\"root\\\",{width:t,height:e,xmlns:aJ,\\\"xmlns:xlink\\\":sJ,version:\\\"1.1\\\",baseProfile:\\\"full\\\",viewBox:i?\\\"0 0 \\\"+t+\\\" \\\"+e:!1},n)}function yA(t,e,n){var i=h({},t.shape);h(i,e),t.buildPath(n,i);var r=new eJ;return r.reset(ui(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function vA(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[cJ]=n+\\\"px \\\"+i+\\\"px\\\")}function mA(t,e){var n=e.zrId+\\\"-ani-\\\"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function xA(t,e,n){var i,r,o=t.shape.paths,a={};if(y(o,function(t){var e=fA(n.zrId);e.animation=!0,bA(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=b(o),u=l.length;if(u){r=l[u-1];var h=o[r];for(var c in h){var p=h[c];a[c]=a[c]||{d:\\\"\\\"},a[c].d+=p.d||\\\"\\\"}for(var d in s){var f=s[d].animation;f.indexOf(r)>=0&&(i=f)}}}),i){e.d=!1;var s=mA(a,n);return i.replace(r,s)}}function _A(t){return T(t)?hJ[t]?\\\"cubic-bezier(\\\"+hJ[t]+\\\")\\\":In(t)?t:\\\"\\\":\\\"\\\"}function bA(t,e,n,i){function r(r){function o(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;od;d++){var f=a[d],g=f.targetName;g?\\\"shape\\\"===g&&o(f,u):!i&&o(f,l)}for(var y in l){var v={};Ri(v,t),h(v,l[y]);var m=hi(v),_=l[y][p];c[y]=m?{transform:m}:{},vA(c[y],v),_&&(c[y][p]=_)}var w,S=!0;for(var y in u){c[y]=c[y]||{};var M=!w,_=u[y][p];M&&(w=new JO);var I=w.len();w.reset(),c[y].d=yA(t,u[y],w);var C=w.len();if(!M&&I!==C){S=!1;break}_&&(c[y][p]=_)}if(!S)for(var y in c)delete c[y].d;if(!i)for(var d=0;s>d;d++){var f=a[d],g=f.targetName;\\\"style\\\"===g&&o(f,c,function(t){return pJ[t]})}for(var A,k=b(c),L=!0,d=1;d0}).length){var R=mA(c,n);return R+\\\" \\\"+r[0]+\\\" both\\\"}}var o=t.animators,a=o.length,s=[];if(t instanceof NN){var l=xA(t,e,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var u={},c=0;a>c;c++){var p=o[c],d=[p.getMaxTime()/1e3+\\\"s\\\"],f=_A(p.getClip().easing),g=p.getDelay();d.push(f?f:\\\"linear\\\"),g&&d.push(g/1e3+\\\"s\\\"),p.getLoop()&&d.push(\\\"infinite\\\");var y=d.join(\\\" \\\");u[y]=u[y]||[y,[]],u[y][1].push(p)}for(var v in u){var l=r(u[v]);l&&s.push(l)}if(s.length){var m=n.zrId+\\\"-cls-\\\"+n.cssClassIdx++;n.cssNodes[\\\".\\\"+m]={animation:s.join(\\\",\\\")},e[\\\"class\\\"]=m}}function wA(t){return t&&T(t.src)}function SA(t){return t&&I(t.toDataURL)}function MA(t,e,n,i){sA(function(r,o){var a=\\\"fill\\\"===r||\\\"stroke\\\"===r;a&&si(o)?zA(e,t,r,i):a&&ri(o)?BA(n,t,r,i):t[r]=o},e,n,!1),EA(n,t,i)}function IA(t){return qn(t[0]-1)&&qn(t[1])&&qn(t[2])&&qn(t[3]-1)}function TA(t){return qn(t[4])&&qn(t[5])}function CA(t,e,n){if(e&&(!TA(e)||!IA(e))){var i=n?10:1e4;t.transform=IA(e)?\\\"translate(\\\"+dJ(e[4]*i)/i+\\\" \\\"+dJ(e[5]*i)/i+\\\")\\\":Jn(e)}}function DA(t,e,n){for(var i=t.points,r=[],o=0;ol){var h=!t.path||t.shapeChanged();t.path||t.createPathProxy();var c=t.path;h&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var p=c.getVersion(),d=t,f=d.__svgPathBuilder;d.__svgPathVersion===p&&f&&l===d.__svgPathStrokePercent||(f||(f=d.__svgPathBuilder=new eJ),f.reset(u),c.rebuildPath(f,l),f.generateStr(),d.__svgPathVersion=p,d.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);r[0](i,o,g)}return CA(o,t.transform),MA(o,n,t,e),e.animation&&bA(t,o,e),uA(s,t.id+\\\"\\\",o)}function OA(t,e){var n=t.style,i=n.image;if(i&&!T(i)&&(wA(i)?i=i.src:SA(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:i,width:a,height:s};return r&&(l.x=r),o&&(l.y=o),CA(l,t.transform),MA(l,n,t,e),e.animation&&bA(t,l,e),uA(\\\"image\\\",t.id+\\\"\\\",l)}}function RA(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=\\\"\\\"),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||pk,o=n.x||0,a=Qn(n.y||0,Fi(r),n.textBaseline),s=JL[n.textAlign]||n.textAlign,l={\\\"dominant-baseline\\\":\\\"central\\\",\\\"text-anchor\\\":s};if(aa(n)){var u=\\\"\\\",h=n.fontStyle,c=ra(n.fontSize);if(!parseFloat(c))return;var p=n.fontFamily||ck,d=n.fontWeight;u+=\\\"font-size:\\\"+c+\\\";font-family:\\\"+p+\\\";\\\",h&&\\\"normal\\\"!==h&&(u+=\\\"font-style:\\\"+h+\\\";\\\"),d&&\\\"normal\\\"!==d&&(u+=\\\"font-weight:\\\"+d+\\\";\\\"),l.style=u}else l.style=\\\"font: \\\"+r;return i.match(/\\\\s/)&&(l[\\\"xml:space\\\"]=\\\"preserve\\\"),o&&(l.x=o),a&&(l.y=a),CA(l,t.transform),MA(l,n,t,e),e.animation&&bA(t,l,e),uA(\\\"text\\\",t.id+\\\"\\\",l,void 0,i)}}function NA(t,e){return t instanceof uR?PA(t,e):t instanceof fR?OA(t,e):t instanceof cR?RA(t,e):void 0}function EA(t,e,n){var i=t.style;if(ti(i)){var r=ei(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var h=i.shadowOffsetX||0,c=i.shadowOffsetY||0,p=i.shadowBlur,d=jn(i.shadowColor),f=d.opacity,g=d.color,y=p/2/l,v=p/2/u,m=y+\\\" \\\"+v;a=n.zrId+\\\"-s\\\"+n.shadowIdx++,n.defs[a]=uA(\\\"filter\\\",a,{id:a,x:\\\"-100%\\\",y:\\\"-100%\\\",width:\\\"300%\\\",height:\\\"300%\\\"},[uA(\\\"feDropShadow\\\",\\\"\\\",{dx:h/l,dy:c/u,stdDeviation:m,\\\"flood-color\\\":g,\\\"flood-opacity\\\":f})]),o[r]=a}e.filter=li(a)}}function zA(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?\\\"userSpaceOnUse\\\":\\\"objectBoundingBox\\\"};if(oi(o))r=\\\"linearGradient\\\",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!ai(o))return;r=\\\"radialGradient\\\",a.cx=B(o.x,.5),a.cy=B(o.y,.5),a.r=B(o.r,.5)}for(var s=o.colorStops,l=[],u=0,h=s.length;h>u;++u){var c=100*$n(s[u].offset)+\\\"%\\\",p=s[u].color,d=jn(p),f=d.color,g=d.opacity,y={offset:c};y[\\\"stop-color\\\"]=f,1>g&&(y[\\\"stop-opacity\\\"]=g),l.push(uA(\\\"stop\\\",u+\\\"\\\",y))}var v=uA(r,\\\"\\\",a,l),m=pA(v),x=i.gradientCache,_=x[m];_||(_=i.zrId+\\\"-g\\\"+i.gradientIdx++,x[m]=_,a.id=_,i.defs[_]=uA(r,_,a,l)),e[n]=li(_)}function BA(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),l={},u=o.repeat,h=\\\"no-repeat\\\"===u,c=\\\"repeat-x\\\"===u,p=\\\"repeat-y\\\"===u;if(ni(o)){var d=o.imageWidth,f=o.imageHeight,g=void 0,y=o.image;if(T(y)?g=y:wA(y)?g=y.src:SA(y)&&(g=y.toDataURL()),\\\"undefined\\\"==typeof Image){var v=\\\"Image width/height must been given explictly in svg-ssr renderer.\\\";W(d,v),W(f,v)}else if(null==d||null==f){var m=function(t,e){if(t){var n=t.elm,i=d||e.width,r=f||e.height;\\\"pattern\\\"===t.tag&&(c?(r=1,i/=a.width):p&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute(\\\"width\\\",i),n.setAttribute(\\\"height\\\",r))}},x=mo(g,null,t,function(t){h||m(S,t),m(r,t)});x&&x.width&&x.height&&(d=d||x.width,f=f||x.height)}r=uA(\\\"image\\\",\\\"img\\\",{href:g,width:d,height:f}),l.width=d,l.height=f}else o.svgElement&&(r=s(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var _,b;h?_=b=1:c?(b=1,_=l.width/a.width):p?(_=1,b=l.height/a.height):l.patternUnits=\\\"userSpaceOnUse\\\",null==_||isNaN(_)||(l.width=_),null==b||isNaN(b)||(l.height=b);var w=hi(o);w&&(l.patternTransform=w);var S=uA(\\\"pattern\\\",\\\"\\\",l,[r]),M=pA(S),I=i.patternCache,C=I[M];C||(C=i.zrId+\\\"-p\\\"+i.patternIdx++,I[M]=C,l.id=C,S=i.defs[C]=uA(\\\"pattern\\\",C,l,[r])),e[n]=li(C)}}function VA(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){o=n.zrId+\\\"-c\\\"+n.clipPathIdx++;var a={id:o};i[t.id]=o,r[o]=uA(\\\"clipPath\\\",o,a,[PA(t,n)])}e[\\\"clip-path\\\"]=li(o)}function FA(t){return document.createTextNode(t)}function GA(t,e,n){t.insertBefore(e,n)}function WA(t,e){t.removeChild(e)}function HA(t,e){t.appendChild(e)}function YA(t){return t.parentNode}function XA(t){return t.nextSibling}function UA(t,e){t.textContent=e}function ZA(t){return void 0===t}function jA(t){return void 0!==t}function qA(t,e,n){for(var i={},r=e;n>=r;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function KA(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function $A(t){var e,n=t.children,i=t.tag;if(jA(i)){var r=t.elm=lA(i);if(tk(vJ,t),M(n))for(e=0;e=i;++i){var o=n[i];null!=o&&GA(t,$A(o),e)}}function QA(t,e,n,i){for(;i>=n;++n){var r=e[n];if(null!=r)if(jA(r.tag)){var o=YA(r.elm);WA(o,r.elm)}else WA(t,r.elm)}}function tk(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(a===!0?i.setAttribute(n,\\\"\\\"):a===!1?i.removeAttribute(n):n.charCodeAt(0)!==yJ?i.setAttribute(n,a):\\\"xmlns:xlink\\\"===n||\\\"xmlns\\\"===n?i.setAttributeNS(lJ,n,a):n.charCodeAt(3)===gJ?i.setAttributeNS(uJ,n,a):n.charCodeAt(5)===gJ?i.setAttributeNS(sJ,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function ek(t,e,n){for(var i,r,o,a,s=0,l=0,u=e.length-1,h=e[0],c=e[u],p=n.length-1,d=n[0],f=n[p];u>=s&&p>=l;)null==h?h=e[++s]:null==c?c=e[--u]:null==d?d=n[++l]:null==f?f=n[--p]:KA(h,d)?(nk(h,d),h=e[++s],d=n[++l]):KA(c,f)?(nk(c,f),c=e[--u],f=n[--p]):KA(h,f)?(nk(h,f),GA(t,h.elm,XA(c.elm)),h=e[++s],f=n[--p]):KA(c,d)?(nk(c,d),GA(t,c.elm,h.elm),c=e[--u],d=n[++l]):(ZA(i)&&(i=qA(e,s,u)),r=i[d.key],ZA(r)?GA(t,$A(d),h.elm):(o=e[r],o.tag!==d.tag?GA(t,$A(d),h.elm):(nk(o,d),e[r]=void 0,GA(t,o.elm,h.elm))),d=n[++l]);(u>=s||p>=l)&&(s>u?(a=null==n[p+1]?null:n[p+1].elm,JA(t,a,n,l,p)):QA(t,e,s,u))}function nk(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(tk(t,e),ZA(e.text)?jA(i)&&jA(r)?i!==r&&ek(n,i,r):jA(r)?(jA(t.text)&&UA(n,\\\"\\\"),JA(n,null,r,0,r.length-1)):jA(i)?QA(n,i,0,i.length-1):jA(t.text)&&UA(n,\\\"\\\"):t.text!==e.text&&(jA(i)&&QA(n,i,0,i.length-1),UA(n,e.text)))}function ik(t,e){if(KA(t,e))nk(t,e);else{var n=t.elm,i=YA(n);$A(e),null!==i&&(GA(i,e.elm,XA(n)),QA(i,[t],0,0))}return e}function rk(){return function(){}}function ok(t,e,n,i){var r;if(n&&\\\"none\\\"!==n)if(r=uA(\\\"rect\\\",\\\"bg\\\",{width:t,height:e,x:\\\"0\\\",y:\\\"0\\\",id:\\\"0\\\"}),si(n))zA({fill:n},r.attrs,\\\"fill\\\",i);else if(ri(n))BA({style:{fill:n},dirty:J,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,\\\"fill\\\",i);else{var o=jn(n),a=o.color,s=o.opacity;r.attrs.fill=a,1>s&&(r.attrs[\\\"fill-opacity\\\"]=s)}return r}var ak=function(t,e){return(ak=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)},sk=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),lk=function(){function t(){this.browser=new sk,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}return t}(),uk=new lk;\\\"object\\\"==typeof wx&&\\\"function\\\"==typeof wx.getSystemInfoSync?(uk.wxa=!0,uk.touchEventsSupported=!0):\\\"undefined\\\"==typeof document&&\\\"undefined\\\"!=typeof self?uk.worker=!0:\\\"undefined\\\"==typeof navigator?(uk.node=!0,uk.svgSupported=!0):n(navigator.userAgent,uk);var hk=12,ck=\\\"sans-serif\\\",pk=hk+\\\"px \\\"+ck,dk=20,fk=100,gk=\\\"007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\\\\\\\\\\\\\WQb\\\\\\\\0FWLg\\\\\\\\bWb\\\\\\\\WQ\\\\\\\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\\\\\\\FFF5.5N\\\",yk=i(gk),vk={createCanvas:function(){return\\\"undefined\\\"!=typeof document&&document.createElement(\\\"canvas\\\")},measureText:function(){var t,e;return function(n,i){if(!t){var r=vk.createCanvas();t=r&&r.getContext(\\\"2d\\\")}if(t)return e!==i&&(e=t.font=i||pk),t.measureText(n);n=n||\\\"\\\",i=i||pk;var o=/(\\\\d+)px/.exec(i),a=o&&+o[1]||hk,s=0;if(i.indexOf(\\\"mono\\\")>=0)s=a*n.length;else for(var l=0;lr;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;ns;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){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)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;nl;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){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,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Uk=Math.log(2),Zk=\\\"___zrEVENTSAVED\\\",jk=[],qk=/([&<>\\\"'])/g,Kk={\\\"&\\\":\\\"&\\\",\\\"<\\\":\\\"<\\\",\\\">\\\":\\\">\\\",'\\\"':\\\""\\\",\\\"'\\\":\\\"'\\\"},$k=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Jk=[],Qk=uk.browser.firefox&&+uk.browser.version.split(\\\".\\\")[0]<39,tL=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},eL=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;a>o;o++){var s=i[o],l=De(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in nL)if(nL.hasOwnProperty(e)){var n=nL[e](this._track,t);if(n)return n}},t}(),nL={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=Ee(i)/Ee(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=ze(i);return e.pinchX=a[0],e.pinchY=a[1],{type:\\\"pinch\\\",target:t[0].target,event:e}}}}},iL=(Object.freeze||Object)({create:Be,identity:Ve,copy:Fe,mul:Ge,translate:We,rotate:He,scale:Ye,invert:Xe,clone:Ue}),rL=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),oL=Math.min,aL=Math.max,sL=new rL,lL=new rL,uL=new rL,hL=new rL,cL=new rL,pL=new rL,dL=function(){function t(t,e,n,i){0>n&&(t+=n,n=-n),0>i&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=oL(t.x,this.x),n=oL(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?aL(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?aL(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=Be();return We(r,r,[-e.x,-e.y]),Ye(r,r,[n,i]),We(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(l>o||r>u||h>s||a>c);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),x=Math.min(g,y),_=Math.min(v,m);l>o||r>u?x>f&&(f=x,y>g?rL.set(pL,-g,0):rL.set(pL,y,0)):d>x&&(d=x,y>g?rL.set(cL,g,0):rL.set(cL,-y,0)),h>s||a>c?_>f&&(f=_,m>v?rL.set(pL,0,-v):rL.set(pL,0,m)):d>x&&(d=x,m>v?rL.set(cL,0,v):rL.set(cL,0,-m))}return n&&rL.copy(n,p?cL:pL),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i)return void(e!==n&&t.copy(e,n));if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}sL.x=uL.x=n.x,sL.y=hL.y=n.y,lL.x=hL.x=n.x+n.width,lL.y=uL.y=n.y+n.height,sL.transform(i),hL.transform(i),lL.transform(i),uL.transform(i),e.x=oL(sL.x,lL.x,uL.x,hL.x),e.y=oL(sL.y,lL.y,uL.y,hL.y);var l=aL(sL.x,lL.x,uL.x,hL.x),u=aL(sL.y,lL.y,uL.y,hL.y);e.width=l-e.x,e.height=u-e.y},t}(),fL=\\\"silent\\\",gL=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(Xk),yL=function(){function t(t,e){this.x=t,this.y=e}return t}(),vL=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],mL=new dL(0,0,0,0),xL=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new yL(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new gL,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Yk(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(y(vL,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=$e(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new yL(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:\\\"default\\\"),o&&s!==o&&this.dispatchToElement(r,\\\"mouseout\\\",t),this.dispatchToElement(a,\\\"mousemove\\\",t),s&&s!==o&&this.dispatchToElement(a,\\\"mouseover\\\",t)},n.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})},n.prototype.resize=function(){this._hovered=new yL(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){for(var r=\\\"on\\\"+e,o=Ze(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){\\\"function\\\"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new yL(t,e);if(Ke(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new dL(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(mL.copy(h.getBoundingRect()),h.transform&&mL.applyTransform(h.transform),mL.intersect(l)&&o.push(h))}if(o.length)for(var c=4,p=Math.PI/12,d=2*Math.PI,f=0;s>f;f+=c)for(var g=0;d>g;g+=p){var y=t+f*Math.cos(g),v=e+f*Math.sin(g);if(Ke(o,r,y,v,n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eL);var n=this._gestureMgr;\\\"start\\\"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(\\\"end\\\"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new yL;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(Xk);y([\\\"click\\\",\\\"mousedown\\\",\\\"mouseup\\\",\\\"mousewheel\\\",\\\"dblclick\\\",\\\"contextmenu\\\"],function(t){xL.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=$e(this,r,o);if(\\\"mouseup\\\"===t&&a||(n=this.findHover(r,o),i=n.target),\\\"mousedown\\\"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if(\\\"mouseup\\\"===t)this._upEl=i;else if(\\\"click\\\"===t){if(this._downEl!==this._upEl||!this._downPoint||Fk(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var _L,bL=32,wL=7,SL=1,ML=2,IL=4,TL=!1,CL=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ln}return t.prototype.traverse=function(t,e){for(var n=0;ni;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,an(n,ln)},t.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 r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s0&&(u.__clipPaths=[]),isNaN(u.z)&&(sn(),u.z=0),isNaN(u.z2)&&(sn(),u.z2=0),isNaN(u.zlevel)&&(sn(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;n>e;e++)this.delRoot(t[e]);else{var i=p(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();_L=uk.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var DL=_L,AL={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)\\n},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.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)<1?.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)<1?.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)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},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)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*n*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i):n*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*t*t*((e+1)*t-e):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-AL.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*AL.bounceIn(2*t):.5*AL.bounceOut(2*t-1)+.5}},kL=Math.pow,LL=Math.sqrt,PL=1e-8,OL=1e-4,RL=LL(3),NL=1/3,EL=Q(),zL=Q(),BL=Q(),VL=/cubic-bezier\\\\(([0-9,\\\\.e ]+)\\\\)/,FL=function(){function t(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||J,this.ondestroy=t.ondestroy||J,this.onrestart=t.onrestart||J,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused)return void(this._pausedTime+=e);var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=I(t)?t:AL[t]||In(t)},t}(),GL=function(){function t(t){this.value=t}return t}(),WL=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new GL(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.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--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),HL=function(){function t(t){this._list=new WL,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new GL(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;return null!=e?(e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value):void 0},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),YL={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]},XL=new HL(20),UL=null,ZL=Gn,jL=Wn,qL=(Object.freeze||Object)({parse:En,lift:Vn,toHex:Fn,fastLerp:Gn,fastMapToColor:ZL,lerp:Wn,mapToColor:jL,modifyHSL:Hn,modifyAlpha:Yn,stringify:Xn,lum:Un,random:Zn}),KL=Math.round,$L=1e-4,JL={left:\\\"start\\\",right:\\\"end\\\",center:\\\"middle\\\",middle:\\\"middle\\\"},QL=function(){return uk.hasGlobalWindow&&I(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:\\\"undefined\\\"!=typeof Buffer?function(t){return Buffer.from(t).toString(\\\"base64\\\")}:function(){return null}}(),tP=Array.prototype.slice,eP=0,nP=1,iP=2,rP=3,oP=4,aP=5,sP=6,lP=[0,0,0,0],uP=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=sP,s=e;if(g(e)){var l=_i(e);a=l,(1===l&&!D(e[0])||2===l&&!D(e[0][0]))&&(o=!0)}else if(D(e)&&!E(e))a=eP;else if(T(e))if(isNaN(+e)){var u=En(e);u&&(s=u,a=rP)}else a=eP;else if(O(e)){var c=h({},s);c.colorStops=v(e.colorStops,function(t){return{offset:t.offset,color:En(t.color)}}),oi(e)?a=oP:ai(e)&&(a=aP),s=c}0===r?this.valType=a:(a!==this.valType||a===sP)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=I(n)?n:AL[n]||In(n)),i.push(p),p},t.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,r=n.length,o=n[r-1],a=this.discrete,s=wi(i),l=bi(i),u=0;r>u;u++){var h=n[u],c=h.value,p=o.value;h.percent=h.time/t,a||(s&&u!==r-1?vi(c,p,i):l&&yi(c.colorStops,p.colorStops))}if(!a&&i!==aP&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,u=0;r>u;u++)i===eP?n[u].additiveValue=n[u].value-d:i===rP?n[u].additiveValue=fi([],n[u].value,d,-1):wi(i)&&(n[u].additiveValue=i===nP?fi([],n[u].value,d,-1):gi([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?\\\"additiveValue\\\":\\\"value\\\",s=this.valType,l=this.keyframes,u=l.length,h=this.propName,c=s===rP,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(0>e)n=0;else if(e=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;u>n&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var g=r.percent-i.percent,y=0===g?1:d((e-i.percent)/g,1);r.easingFunc&&(y=r.easingFunc(y));var m=o?this._additiveValue:c?lP:t[h];if(!wi(s)&&!c||m||(m=this._additiveValue=[]),this.discrete)t[h]=1>y?i.rawValue:r.rawValue;else if(wi(s))s===nP?pi(m,i[a],r[a],y):di(m,i[a],r[a],y);else if(bi(s)){var x=i[a],_=r[a],b=s===oP;t[h]={type:b?\\\"linear\\\":\\\"radial\\\",x:ci(x.x,_.x,y),y:ci(x.y,_.y,y),colorStops:v(x.colorStops,function(t,e){var n=_.colorStops[e];return{offset:ci(t.offset,n.offset,y),color:xi(pi([],t.color,n.color,y))}}),global:_.global},b?(t[h].x2=ci(x.x2,_.x2,y),t[h].y2=ci(x.y2,_.y2,y)):t[h].r=ci(x.r,_.r,y)}else if(c)pi(m,i[a],r[a],y),o||(t[h]=xi(m));else{var w=ci(i[a],r[a],y);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===eP?t[n]=t[n]+i:e===rP?(En(t[n],lP),fi(lP,lP,i,1),t[n]=xi(lP)):e===nP?fi(t[n],t[n],i,1):e===iP&&gi(t[n],t[n],i,1)},t}(),hP=function(){function t(t,e,n,i){return this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?void a(\\\"Can' use additive animation on looped animation.\\\"):(this._additiveAnimators=i,void(this._allowDiscrete=n))}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,b(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,mi(l),i),this._trackKeys.push(a)}s.addKeyframe(t,mi(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;e>n;n++)t[n].call(this)},t.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;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),cP=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){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=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=Si()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger(\\\"frame\\\",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){function t(){e._running&&(DL(t),!e._paused&&e.update())}var e=this;this._running=!0,DL(t)},n.prototype.start=function(){this._running||(this._time=Si(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=Si(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=Si()-this._pauseStart,this._paused=!1)},n.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},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new hP(t,e.loop);return this.addAnimator(n),n},n}(Xk),pP=300,dP=uk.domSupported,fP=function(){var t=[\\\"click\\\",\\\"dblclick\\\",\\\"mousewheel\\\",\\\"wheel\\\",\\\"mouseout\\\",\\\"mouseup\\\",\\\"mousedown\\\",\\\"mousemove\\\",\\\"contextmenu\\\"],e=[\\\"touchstart\\\",\\\"touchend\\\",\\\"touchmove\\\"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=v(t,function(t){var e=t.replace(\\\"mouse\\\",\\\"pointer\\\");return n.hasOwnProperty(e)?e:t});return{mouse:t,touch:e,pointer:i}}(),gP={mouse:[\\\"mousemove\\\",\\\"mouseup\\\"],pointer:[\\\"pointermove\\\",\\\"pointerup\\\"]},yP=!1,vP=function(){function t(t,e){this.stopPropagation=J,this.stopImmediatePropagation=J,this.preventDefault=J,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),mP={mousedown:function(t){t=Le(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger(\\\"mousedown\\\",t)},mousemove:function(t){t=Le(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=Le(this.dom,t),this.__togglePointerCapture(!1),this.trigger(\\\"mouseup\\\",t)},mouseout:function(t){t=Le(this.dom,t);var e=t.toElement||t.relatedTarget;Di(this,e)||(this.__pointerCapturing&&(t.zrEventControl=\\\"no_globalout\\\"),this.trigger(\\\"mouseout\\\",t))},wheel:function(t){yP=!0,t=Le(this.dom,t),this.trigger(\\\"mousewheel\\\",t)},mousewheel:function(t){yP||(t=Le(this.dom,t),this.trigger(\\\"mousewheel\\\",t))},touchstart:function(t){t=Le(this.dom,t),Ti(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,\\\"start\\\"),mP.mousemove.call(this,t),mP.mousedown.call(this,t)},touchmove:function(t){t=Le(this.dom,t),Ti(t),this.handler.processGesture(t,\\\"change\\\"),mP.mousemove.call(this,t)},touchend:function(t){t=Le(this.dom,t),Ti(t),this.handler.processGesture(t,\\\"end\\\"),mP.mouseup.call(this,t),+new Date-+this.__lastTouchMoment1e-10&&OP(t[3]-1)>1e-10?Math.sqrt(OP(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Ri(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=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;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-c*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=c*o,l&&He(e,e,l),e[4]+=n+u,e[5]+=i+h,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),NP=[\\\"x\\\",\\\"y\\\",\\\"originX\\\",\\\"originY\\\",\\\"anchorX\\\",\\\"anchorY\\\",\\\"rotation\\\",\\\"scaleX\\\",\\\"scaleY\\\",\\\"skewX\\\",\\\"skewY\\\"],EP={},zP=\\\"__zr_normal__\\\",BP=NP.concat([\\\"ignore\\\"]),VP=m(NP,function(t,e){return t[e]=!0,t},{ignore:!1}),FP={},GP=new dL(0,0,0,0),WP=function(){function t(t){this.id=o(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e){switch(this.draggable){case\\\"horizontal\\\":e=0;break;case\\\"vertical\\\":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=GP;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(FP,n,u):Wi(FP,n,u),r.x=FP.x,r.y=FP.y,o=FP.align,a=FP.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,p=void 0;\\\"center\\\"===h?(c=.5*u.width,p=.5*u.height):(c=Gi(h[0],u.width),p=Gi(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?\\\"string\\\"==typeof n.position&&n.position.indexOf(\\\"inside\\\")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,(null==y||\\\"auto\\\"===y)&&(y=this.getInsideTextFill()),(null==v||\\\"auto\\\"===v)&&(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,(null==y||\\\"auto\\\"===y)&&(y=this.getOutsideFill()),(null==v||\\\"auto\\\"===v)&&(v=this.getOutsideStroke(y),m=!0)),y=y||\\\"#000\\\",(y!==g.fill||v!==g.stroke||m!==g.autoStroke||o!==g.align||a!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=SL,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return\\\"#fff\\\"},t.prototype.getInsideTextStroke=function(){return\\\"#000\\\"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?TP:IP},t.prototype.getOutsideStroke=function(){var t=this.__zr&&this.__zr.getBackgroundColor(),e=\\\"string\\\"==typeof t&&En(t);e||(e=[255,255,255,1]);for(var n=e[3],i=this.__zr.isDarkMode(),r=0;3>r;r++)e[r]=e[r]*n+(i?0:255)*(1-n);return e[3]=1,Xn(e,\\\"rgba\\\")},t.prototype.traverse=function(){},t.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||{},h(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if(\\\"string\\\"==typeof t)this.attrKV(t,e);else if(A(t))for(var n=t,i=b(n),r=0;r0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(zP,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===zP,o=this.hasState();if(o||!r){var s=this.currentStates,l=this.stateTransition;if(!(p(s,t)>=0)||!e&&1!==s.length){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!r)return void a(\\\"State \\\"+t+\\\" not exists.\\\");r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,e,n,h),d&&d.useState(t,e,n,h),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~SL),u}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;o>s;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(var s=0;o>s;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(\\\",\\\"),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~SL)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=p(i,t),o=p(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;i>o;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Hi(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Hi(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Hi(this,e,n,i),o=0;o=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=p(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=p(n,t);return 0>i?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&\\\"canvas\\\"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0&&(this._ux=ZO(n/SP/t)||0,this._uy=ZO(n/SP/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(EO.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ZO(t-this._xi),i=ZO(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(EO.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(EO.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(EO.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),$O[0]=i,$O[1]=r,Bo($O,o),i=$O[0],r=$O[1];var a=r-i;return this.addData(EO.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=XO(r)*n+t,this._yi=UO(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(EO.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(EO.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!KO||(this.data=new Float32Array(e));for(var n=0;e>n;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;e>r;r++)n+=t[r].len();KO&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;e>r;r++)for(var o=t[r].data,a=0;at.length&&(this._expandData(),t=this.data);for(var e=0;e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){VO[0]=VO[1]=GO[0]=GO[1]=Number.MAX_VALUE,FO[0]=FO[1]=WO[0]=WO[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tc;){var p=t[c++],d=1===c;d&&(r=t[c],o=t[c+1],a=r,s=o);var f=-1;switch(p){case EO.M:r=a=t[c++],o=s=t[c++];break;case EO.L:var g=t[c++],y=t[c++],v=g-r,m=y-o;(ZO(v)>n||ZO(m)>i||c===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,o=y);break;case EO.C:var x=t[c++],_=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];f=vn(r,o,x,_,g,y,b,w,10),r=b,o=w;break;case EO.Q:var x=t[c++],_=t[c++],g=t[c++],y=t[c++];f=Mn(r,o,x,_,g,y,10),r=g,o=y;break;case EO.A:var S=t[c++],M=t[c++],I=t[c++],T=t[c++],C=t[c++],D=t[c++],A=D+C;c+=1;{!t[c++]}d&&(a=XO(C)*I+S,s=UO(C)*T+M),f=YO(I,T)*HO(qO,Math.abs(D)),r=XO(A)*I+S,o=UO(A)*T+M;break;case EO.R:a=r=t[c++],s=o=t[c++];var k=t[c++],L=t[c++];f=2*k+2*L;break;case EO.Z:var v=a-r,m=s-o;f=Math.sqrt(v*v+m*m),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=1>e,m=0,x=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,h=e*u))t:for(var b=0;y>b;){var w=d[b++],S=1===b;switch(S&&(r=d[b],o=d[b+1],n=r,i=o),w!==EO.L&&_>0&&(t.lineTo(c,p),_=0),w){case EO.M:n=r=d[b++],i=o=d[b++],t.moveTo(r,o);break;case EO.L:a=d[b++],s=d[b++];var M=ZO(a-r),I=ZO(s-o);if(M>f||I>g){if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;t.lineTo(r*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),r=a,o=s,_=0}else{var D=M*M+I*I;D>_&&(c=a,p=s,_=D)}break;case EO.C:var A=d[b++],k=d[b++],L=d[b++],P=d[b++],O=d[b++],R=d[b++];if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;gn(r,A,L,O,C,zO),gn(o,k,P,R,C,BO),t.bezierCurveTo(zO[1],BO[1],zO[2],BO[2],zO[3],BO[3]);break t}m+=T}t.bezierCurveTo(A,k,L,P,O,R),r=O,o=R;break;case EO.Q:var A=d[b++],k=d[b++],L=d[b++],P=d[b++];if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;wn(r,A,L,C,zO),wn(o,k,P,C,BO),t.quadraticCurveTo(zO[1],BO[1],zO[2],BO[2]);break t}m+=T}t.quadraticCurveTo(A,k,L,P),r=L,o=P;break;case EO.A:var N=d[b++],E=d[b++],z=d[b++],B=d[b++],V=d[b++],F=d[b++],G=d[b++],W=!d[b++],H=z>B?z:B,Y=ZO(z-B)>.001,X=V+F,U=!1;if(v){var T=l[x++];m+T>h&&(X=V+F*(h-m)/T,U=!0),m+=T}if(Y&&t.ellipse?t.ellipse(N,E,z,B,G,V,X,W):t.arc(N,E,H,V,X,W),U)break t;S&&(n=XO(V)*z+N,i=UO(V)*B+E),r=XO(X)*z+N,o=UO(X)*B+E;break;case EO.R:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var Z=d[b++],j=d[b++];if(v){var T=l[x++];if(m+T>h){var q=h-m;t.moveTo(a,s),t.lineTo(a+HO(q,Z),s),q-=Z,q>0&&t.lineTo(a+Z,s+HO(q,j)),q-=j,q>0&&t.lineTo(a+YO(Z-q,0),s+j),q-=Z,q>0&&t.lineTo(a,s+YO(j-q,0));break t}m+=T}t.rect(a,s,Z,j);break;case EO.Z:if(v){var T=l[x++];if(m+T>h){var C=(h-m)/T;t.lineTo(r*(1-C)+n*C,o*(1-C)+i*C);break t}m+=T}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=EO,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),QO=2*Math.PI,tR=2*Math.PI,eR=JO.CMD,nR=2*Math.PI,iR=1e-4,rR=[-1,-1,-1],oR=[-1,-1],aR=c({fill:\\\"#000\\\",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:\\\"butt\\\",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},xO),sR={style:c({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},_O.style)},lR=NP.concat([\\\"invisible\\\",\\\"culling\\\",\\\"z\\\",\\\"z2\\\",\\\"zlevel\\\",\\\"parent\\\"]),uR=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?IP:e>.2?CP:TP}if(t)return TP}return IP},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(T(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Un(t,0)0))},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&\\\"none\\\"!==e},n.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&IL)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Jo(o,a/s,t,e)))return!0}if(this.hasFill())return $o(o,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=IL,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate(\\\"shape\\\",t)},n.prototype.updateDuringAnimation=function(t){\\\"style\\\"===t?this.dirtyStyle():\\\"shape\\\"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){\\\"shape\\\"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),\\\"string\\\"==typeof t?n[t]=e:h(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&IL)},n.prototype.createStyle=function(t){return q(aR,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=h({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=h({},i.shape),h(s,n.shape)):(s=h({},r?this.shape:i.shape),h(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=h({},this.shape);for(var u={},c=b(s),p=0;p0},n.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&\\\"none\\\"!==e},n.prototype.createStyle=function(t){return q(hR,t)},n.prototype.setBoundingRect=function(t){this._rect=t},n.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+=\\\"\\\":e=\\\"\\\";var n=zi(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},n.initDefaultProps=function(){var t=n.prototype;t.dirtyRectTolerance=10}(),n}(SO);cR.prototype.type=\\\"tspan\\\";var pR=c({x:0,y:0},xO),dR={style:c({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},_O.style)},fR=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.createStyle=function(t){return q(pR,t)},n.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Qo(e.image)?e.image:this.__image;if(!i)return 0;var r=\\\"width\\\"===t?\\\"height\\\":\\\"width\\\",o=e[r];return null==o?i[t]:i[t]/i[r]*o},n.prototype.getWidth=function(){return this._getSize(\\\"width\\\")},n.prototype.getHeight=function(){return this._getSize(\\\"height\\\")},n.prototype.getAnimationStyleProps=function(){return dR},n.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new dL(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},n}(SO);fR.prototype.type=\\\"image\\\";var gR=Math.round,yR=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),vR={},mR=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new yR},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=na(vR,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?ta(t,e):t.rect(n,i,r,o)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(uR);mR.prototype.type=\\\"rect\\\";var xR={fill:\\\"#000\\\"},_R=2,bR={style:c({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},_O.style)},wR=function(t){function n(e){var n=t.call(this)||this;return n.type=\\\"text\\\",n._children=[],n._defaultStyle=xR,n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,T=null!=t.width&&(\\\"truncate\\\"===t.overflow||\\\"break\\\"===t.overflow||\\\"breakAll\\\"===t.overflow),C=r.calculatedLineHeight,D=0;DM&&(D=_[M],!D.align||\\\"left\\\"===D.align);)this._placeToken(D,t,w,g,I,\\\"left\\\",v),S-=D.width,I+=D.width,M++;for(;C>=0&&(D=_[C],\\\"right\\\"===D.align);)this._placeToken(D,t,w,g,T,\\\"right\\\",v),S-=D.width,T-=D.width,C--;for(I+=(i-(I-f)-(y-T)-S)/2;C>=M;)D=_[M],this._placeToken(D,t,w,g,I+D.width/2,\\\"center\\\",v),I+=D.width,M++;g+=w}},n.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;\\\"top\\\"===l?u=i+t.height/2:\\\"bottom\\\"===l&&(u=i+n-t.height/2);var h=!t.isLineHolder&&da(s);h&&this._renderBackground(s,e,\\\"right\\\"===o?r-t.width:\\\"center\\\"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(r=ca(r,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(cR),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=ha(\\\"fill\\\"in s?s.fill:\\\"fill\\\"in e?e.fill:(y=!0,g.fill)),x=ua(\\\"stroke\\\"in s?s.stroke:\\\"stroke\\\"in e?e.stroke:c||a||g.autoStroke&&!y?null:(v=_R,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||\\\"transparent\\\",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline=\\\"middle\\\",f.font=t.font||pk,f.opacity=V(s.opacity,e.opacity,1),oa(f,s),x&&(f.lineWidth=V(s.lineWidth,e.lineWidth,v),f.lineDash=B(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),m&&(f.fill=m);var b=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new dL(Bi(f.x,b,f.textAlign),Vi(f.y,w,f.textBaseline),b,w))},n.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(mR),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=d,a.dirtyShape()}if(p){var y=a.style;y.fill=l||null,y.fillOpacity=B(t.fillOpacity,1)}else if(c){s=this._getOrCreateChild(fR),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=o}if(u&&h){var y=a.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=B(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||\\\"transparent\\\",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=V(t.opacity,e.opacity,1)},n.makeFont=function(t){var e=\\\"\\\";return aa(t)&&(e=[t.fontStyle,t.fontWeight,ra(t.fontSize),t.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\")),e&&H(e)||t.textFont||t.font},n}(SO),SR={left:!0,right:1,center:1},MR={top:1,bottom:1,middle:1},IR=[\\\"fontStyle\\\",\\\"fontWeight\\\",\\\"fontSize\\\",\\\"fontFamily\\\"],TR=Kr(),CR=function(t,e,n,i){if(i){var r=TR(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,\\\"group\\\"===i.type&&i.traverse(function(i){var r=TR(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e})}},DR=1,AR={},kR=Kr(),LR=Kr(),PR=0,OR=1,RR=2,NR=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],ER=[\\\"normal\\\",\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],zR=10,BR=9,VR=\\\"highlight\\\",FR=\\\"downplay\\\",GR=\\\"select\\\",WR=\\\"unselect\\\",HR=\\\"toggleSelect\\\",YR=new HL(100),XR=[\\\"emphasis\\\",\\\"blur\\\",\\\"select\\\"],UR={itemStyle:\\\"getItemStyle\\\",lineStyle:\\\"getLineStyle\\\",areaStyle:\\\"getAreaStyle\\\"},ZR=JO.CMD,jR=[[],[],[]],qR=Math.sqrt,KR=Math.atan2,$R=Math.sqrt,JR=Math.sin,QR=Math.cos,tN=Math.PI,eN=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,nN=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g,iN=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.applyTransform=function(){},n}(uR),rN=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),oN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new rN},n.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)},n}(uR);oN.prototype.type=\\\"circle\\\";var aN=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),sN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new aN},n.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},n}(uR);sN.prototype.type=\\\"ellipse\\\";var lN=Math.PI,uN=2*lN,hN=Math.sin,cN=Math.cos,pN=Math.acos,dN=Math.atan2,fN=Math.abs,gN=Math.sqrt,yN=Math.max,vN=Math.min,mN=1e-4,xN=function(){function t(){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}return t}(),_N=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new xN},n.prototype.buildPath=function(t,e){Ss(t,e)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(uR);_N.prototype.type=\\\"sector\\\";var bN=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),wN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new bN},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},n}(uR);wN.prototype.type=\\\"ring\\\";var SN=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),MN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new SN},n.prototype.buildPath=function(t,e){Is(t,e,!0)},n}(uR);MN.prototype.type=\\\"polygon\\\";var IN=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),TN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new IN},n.prototype.buildPath=function(t,e){Is(t,e,!1)},n}(uR);TN.prototype.type=\\\"polyline\\\";var CN={},DN=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),AN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new DN},n.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ea(CN,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),1>s&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},n.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},n}(uR);AN.prototype.type=\\\"line\\\";var kN=[],LN=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}(),PN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new LN},n.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=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?(1>h&&(wn(n,a,r,h,kN),a=kN[1],r=kN[2],wn(i,s,o,h,kN),s=kN[1],o=kN[2]),t.quadraticCurveTo(a,s,r,o)):(1>h&&(gn(n,a,l,r,h,kN),a=kN[1],l=kN[2],r=kN[3],gn(i,s,u,o,h,kN),s=kN[1],u=kN[2],o=kN[3]),t.bezierCurveTo(a,s,l,u,r,o)))},n.prototype.pointAt=function(t){return Ts(this.shape,t,!1)},n.prototype.tangentAt=function(t){var e=Ts(this.shape,t,!0);return pe(e,e)},n}(uR);PN.prototype.type=\\\"bezier-curve\\\";var ON=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),RN=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new ON},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},n}(uR);RN.prototype.type=\\\"arc\\\";var NN=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"compound\\\",e}return e(n,t),n.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;nn;n++)this._corners[n]=new rL;for(var n=0;2>n;n++)this._axes[n]=new rL;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;4>l;l++)n[l].transform(e);rL.sub(i[0],n[1],n[0]),rL.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;2>l;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return GN.set(1/0,1/0),WN.set(0,0),!this._intersectCheckOneSide(this,t,GN,WN,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,GN,WN,i,-1)&&(n=!1,i)?n:(i||rL.copy(e,n?GN:WN),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;2>s;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,VN),this._getProjMinMaxOnAxis(s,e._corners,FN),VN[1]FN[1]){if(a=!1,r)return a;var u=Math.abs(FN[0]-VN[1]),h=Math.abs(VN[0]-FN[1]);Math.min(u,h)>i.len()&&(h>u?rL.scale(i,l,-u*o):rL.scale(i,l,h*o))}else if(n){var u=Math.abs(FN[0]-VN[1]),h=Math.abs(VN[0]-FN[1]);Math.min(u,h)u?rL.scale(n,l,u*o):rL.scale(n,l,-h*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l-1?xE:bE}():bE;Ml(_E,vE),Ml(xE,mE);var IE=1e3,TE=60*IE,CE=60*TE,DE=24*CE,AE=365*DE,kE={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}\\\"},LE=\\\"{yyyy}-{MM}-{dd}\\\",PE={year:\\\"{yyyy}\\\",month:\\\"{yyyy}-{MM}\\\",day:LE,hour:LE+\\\" \\\"+kE.hour,minute:LE+\\\" \\\"+kE.minute,second:LE+\\\" \\\"+kE.second,millisecond:kE.none},OE=[\\\"year\\\",\\\"month\\\",\\\"day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"],RE=[\\\"year\\\",\\\"half-year\\\",\\\"quarter\\\",\\\"month\\\",\\\"week\\\",\\\"half-week\\\",\\\"day\\\",\\\"half-day\\\",\\\"quarter-day\\\",\\\"hour\\\",\\\"minute\\\",\\\"second\\\",\\\"millisecond\\\"],NE=G,EE=[\\\"a\\\",\\\"b\\\",\\\"c\\\",\\\"d\\\",\\\"e\\\",\\\"f\\\",\\\"g\\\"],zE=function(t,e){return\\\"{\\\"+t+(null==e?\\\"\\\":e)+\\\"}\\\"},BE=y,VE=[\\\"left\\\",\\\"right\\\",\\\"top\\\",\\\"bottom\\\",\\\"width\\\",\\\"height\\\"],FE=[[\\\"width\\\",\\\"left\\\",\\\"right\\\"],[\\\"height\\\",\\\"top\\\",\\\"bottom\\\"]],GE=su,WE=(S(su,\\\"vertical\\\"),S(su,\\\"horizontal\\\"),Kr()),HE=function(t){function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=_l(\\\"ec_cpt_model\\\"),r}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=pu(this),i=n?fu(t):{},r=e.getTheme();l(t,r.get(this.mainType)),l(t,this.getDefaultOption()),n&&du(t,i,n)},n.prototype.mergeOption=function(t){l(this.option,t,!0);var e=pu(this);e&&du(this.option,t,e)},n.prototype.optionUpdated=function(){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!so(t))return t.defaultOption;var e=WE(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=l(o,n[a],!0);e.defaultOption=o}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){var n=t+\\\"Index\\\",i=t+\\\"Id\\\";return Qr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},n.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get(\\\"left\\\"),top:t.get(\\\"top\\\"),right:t.get(\\\"right\\\"),bottom:t.get(\\\"bottom\\\"),width:t.get(\\\"width\\\"),height:t.get(\\\"height\\\")}},n.prototype.getZLevelKey=function(){return\\\"\\\"},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=function(){var t=n.prototype;t.type=\\\"component\\\",t.id=\\\"\\\",t.name=\\\"\\\",t.mainType=\\\"\\\",t.subType=\\\"\\\",t.componentIndex=0}(),n}(gE);ho(HE,gE),go(HE),bl(HE),wl(HE,yu);var YE=\\\"\\\";\\\"undefined\\\"!=typeof navigator&&(YE=navigator.platform||\\\"\\\");var XE,UE,ZE=\\\"rgba(0, 0, 0, 0.2)\\\",jE={darkMode:\\\"auto\\\",colorBy:\\\"series\\\",color:[\\\"#5470c6\\\",\\\"#91cc75\\\",\\\"#fac858\\\",\\\"#ee6666\\\",\\\"#73c0de\\\",\\\"#3ba272\\\",\\\"#fc8452\\\",\\\"#9a60b4\\\",\\\"#ea7ccc\\\"],gradientColor:[\\\"#f6efa6\\\",\\\"#d88273\\\",\\\"#bf444c\\\"],aria:{decal:{decals:[{color:ZE,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ZE,symbol:\\\"circle\\\",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ZE,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ZE,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ZE,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ZE,symbol:\\\"triangle\\\",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:YE.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},qE=Z([\\\"tooltip\\\",\\\"label\\\",\\\"itemName\\\",\\\"itemId\\\",\\\"itemGroupId\\\",\\\"seriesName\\\"]),KE=\\\"original\\\",$E=\\\"arrayRows\\\",JE=\\\"objectRows\\\",QE=\\\"keyedColumns\\\",tz=\\\"typedArray\\\",ez=\\\"unknown\\\",nz=\\\"column\\\",iz=\\\"row\\\",rz={Must:1,Might:2,Not:3},oz=Kr(),az=Z(),sz=Kr(),lz=Kr(),uz=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Ar(this.get(\\\"color\\\",!0)),r=this.get(\\\"colorLayer\\\",!0);return Du(this,sz,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Au(this,sz)},t}(),hz=\\\"\\\\x00_ec_inner\\\",cz=1,pz=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new gE(i),this._locale=new gE(r),this._optionManager=o},n.prototype.setOption=function(t,e,n){var i=Ru(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},n.prototype.resetOption=function(t,e){return this._resetOption(t,Ru(e))},n.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||\\\"recreate\\\"===t){var r=i.mountOption(\\\"recreate\\\"===t);this.option&&\\\"recreate\\\"!==t?(this.restoreData(),this._mergeOption(r,e)):UE(this,r),n=!0}if((\\\"timeline\\\"===t||\\\"media\\\"===t)&&this.restoreData(),!t||\\\"recreate\\\"===t||\\\"timeline\\\"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||\\\"recreate\\\"===t||\\\"media\\\"===t){var a=i.getMediaOption(this);a.length&&y(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},n.prototype.mergeOption=function(t){this._mergeOption(t,null)},n.prototype._mergeOption=function(t,e){function n(e){var n=Iu(this,e,Ar(t[e])),a=r.get(e),s=a?c&&c.get(e)?\\\"replaceMerge\\\":\\\"normalMerge\\\":\\\"replaceAll\\\",l=Or(a,n,s);Ur(l,e,HE),i[e]=null,r.set(e,null),o.set(e,0);var u,p=[],d=[],f=0;y(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o=\\\"series\\\"===e,a=HE.getClass(e,t.keyInfo.subType,!o);if(!a)return;if(\\\"tooltip\\\"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=h({componentIndex:n},t.keyInfo);i=new a(r,this,this,s),h(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),d.push(i),f++):(p.push(void 0),d.push(void 0))},this),i[e]=p,r.set(e,d),o.set(e,f),\\\"series\\\"===e&&XE(this)}var i=this.option,r=this._componentsMap,o=this._componentsCount,a=[],u=Z(),c=e&&e.replaceMergeMainTypeMap;vu(this),y(t,function(t,e){null!=t&&(HE.hasClass(e)?e&&(a.push(e),u.set(e,!0)):i[e]=null==i[e]?s(t):l(i[e],t,!0))}),c&&c.each(function(t,e){HE.hasClass(e)&&!u.get(e)&&(a.push(e),u.set(e,!0))}),HE.topologicalTravel(a,HE.getAllClassMainTypes(),n,this),this._seriesIndices||XE(this)},n.prototype.getOption=function(){var t=s(this.option);return y(t,function(e,n){if(HE.hasClass(n)){for(var i=Ar(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Yr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[hz],t},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(t){this._payload=t},n.prototype.getUpdatePayload=function(){return this._payload},n.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 r=0;ra;a++)Eu(n[a].query,t,e)&&r.push(a);return!r.length&&i&&(r=[-1]),r.length&&!Bu(r,this._currentMediaIndices)&&(o=v(r,function(t){return s(-1===t?i.option:n[t].option)})),this._currentMediaIndices=r,o},t}(),Iz=y,Tz=A,Cz=[\\\"areaStyle\\\",\\\"lineStyle\\\",\\\"nodeStyle\\\",\\\"linkStyle\\\",\\\"chordStyle\\\",\\\"label\\\",\\\"labelLine\\\"],Dz=[[\\\"x\\\",\\\"left\\\"],[\\\"y\\\",\\\"top\\\"],[\\\"x2\\\",\\\"right\\\"],[\\\"y2\\\",\\\"bottom\\\"]],Az=[\\\"grid\\\",\\\"geo\\\",\\\"parallel\\\",\\\"legend\\\",\\\"toolbox\\\",\\\"title\\\",\\\"visualMap\\\",\\\"dataZoom\\\",\\\"timeline\\\"],kz=[[\\\"borderRadius\\\",\\\"barBorderRadius\\\"],[\\\"borderColor\\\",\\\"barBorderColor\\\"],[\\\"borderWidth\\\",\\\"barBorderWidth\\\"]],Lz=function(){function t(t){this.data=t.data||(t.sourceFormat===QE?{}:[]),this.sourceFormat=t.sourceFormat||ez,this.seriesLayoutBy=t.seriesLayoutBy||nz,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;no;o++)e[o]=n[r+o];return e},i=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;o>a;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;h>p;p++){var d=r[p*o+a];c[t+p]=d,l>d&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};e={},e[$E+\\\"_\\\"+nz]={pure:!0,appendData:t},e[$E+\\\"_\\\"+iz]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: \\\"row\\\".')}},e[JE]={pure:!0,appendData:t},e[QE]={pure:!0,appendData:function(t){var e=this._data;y(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},e[KE]={appendData:t},e[tz]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},yz=e}(),t}(),Oz=function(t,e,n,i){return t[i]},Rz=(dz={},dz[$E+\\\"_\\\"+nz]=function(t,e,n,i){return t[i+e]},dz[$E+\\\"_\\\"+iz]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s=0&&(s=o.interpolatedValue[l])}return null!=s?s+\\\"\\\":\\\"\\\"})}},t.prototype.getRawValue=function(t,e){return xh(this.getData(e),t)},t.prototype.formatTooltip=function(){},t}(),Gz=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){function e(t){return!(t>=1)&&(t=1),t}var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=e(this._modBy),s=this._modDataCount||0,l=e(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o=\\\"reset\\\");var h;(this._dirty||\\\"reset\\\"===o)&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||d>p)){var f=this._progress;if(M(f))for(var g=0;gi?i++:null}function e(){var t=i%a*r+Math.ceil(i/a),e=i>=n?null:o>t?t:i;return i++,e}var n,i,r,o,a,s={reset:function(l,u,h,c){i=l,n=u,r=h,o=c,a=Math.ceil(o/r),s.next=r>1&&o>0?e:t}};return s}(),Hz=(Z({number:function(t){return parseFloat(t)},time:function(t){return+yr(t)},trim:function(t){return T(t)?H(t):t}}),{lt:function(t,e){return e>t},lte:function(t,e){return e>=t},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}}),Yz=(function(){function t(t,e){if(!D(e)){var n=\\\"\\\";Cr(n)}this._opFn=Hz[t],this._rvalFloat=wr(e)}return t.prototype.evaluate=function(t){return D(t)?this._opFn(t,this._rvalFloat):this._opFn(wr(t),this._rvalFloat)},t}(),function(){function t(t,e){var n=\\\"desc\\\"===t;this._resultLT=n?1:-1,null==e&&(e=n?\\\"min\\\":\\\"max\\\"),this._incomparable=\\\"min\\\"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=D(t)?t:wr(t),i=D(e)?e:wr(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=T(t),s=T(e);a&&(n=s?t:0),s&&(i=a?e:0)}return i>n?this._resultLT:n>i?-this._resultLT:0},t}()),Xz=(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=wr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||\\\"number\\\"!==n&&\\\"number\\\"!==this._rvalTypeof||(e=wr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}(),function(){function t(){}return t.prototype.getRawData=function(){throw new Error(\\\"not supported\\\")},t.prototype.getRawDataItem=function(){throw new Error(\\\"not supported\\\")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(){},t.prototype.retrieveValueFromItem=function(){},t.prototype.convertValue=function(t,e){return wh(t,e)},t}()),Uz=Z(),Zz=\\\"undefined\\\",jz=typeof Uint32Array===Zz?Array:Uint32Array,qz=typeof Uint16Array===Zz?Array:Uint16Array,Kz=typeof Int32Array===Zz?Array:Int32Array,$z=typeof Float64Array===Zz?Array:Float64Array,Jz={\\\"float\\\":$z,\\\"int\\\":Kz,ordinal:Array,number:Array,time:$z},Qz=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=mz[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];fh(i);this._dimensions=v(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Jz[e||\\\"float\\\"](this._rawCount),this._rawExtent[r]=Oh(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=Oh());for(var s=r[t],l=o;a>l;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\\\"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),i>n&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;r>l;l++){var u=i[l];Nh(n,l,u.type,s,!0)}for(var h=[],c=a;s>c;c++)for(var p=c-a,d=0;r>d;d++){var u=i[d],f=mz.arrayRows.call(this,t[p]||h,u.property,p,d);n[d][c]=f;var g=o[d];fg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=v(o,function(t){return t.property}),u=0;a>u;u++){var h=o[u];s[u]||(s[u]=Oh()),Nh(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;e>p;p++){c=i.getItem(p,c);for(var d=0;a>d;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d);f[p]=g;var y=s[d];gy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&er;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&ei;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=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},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||0>t)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n=i;){var o=(i+r)/2|0;if(e[o]t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();h>u;u++){var c=this.getRawIndex(u),p=e-r[c],d=Math.abs(p);n>=d&&((a>d||d===a&&p>=0&&0>s)&&(a=d,s=p,l=0),p===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;i>r;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{var n=Ph(this._rawCount);t=new n(this.count());for(var r=0;rc;c++){var p=void 0,d=n.getRawIndex(c);if(0===s)p=e(c);else if(1===s){var f=h[u][d];p=e(f,c)}else{for(var g=0;s>g;g++)a[g]=h[t[g]][d];a[g]=c,p=e.apply(null,a)}p&&(o[l++]=d)}return i>l&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=b(t),r=i.length;if(!r)return this;var o=e.count(),a=Ph(e._rawCount),s=new a(o),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var f=0;if(1===r){for(var g=p[i[0]],y=0;n>y;y++){var v=g[y];(v>=h&&c>=v||isNaN(v))&&(s[l++]=f),f++}d=!0}else if(2===r){for(var g=p[i[0]],m=p[i[1]],x=t[i[1]][0],_=t[i[1]][1],y=0;n>y;y++){var v=g[y],w=m[y];(v>=h&&c>=v||isNaN(v))&&(w>=x&&_>=w||isNaN(w))&&(s[l++]=f),f++}d=!0}}if(!d)if(1===r)for(var y=0;o>y;y++){var S=e.getRawIndex(y),v=p[i[0]][S];(v>=h&&c>=v||isNaN(v))&&(s[l++]=S)}else for(var y=0;o>y;y++){for(var M=!0,S=e.getRawIndex(y),I=0;r>I;I++){var T=i[I],v=p[T][S];(vt[T][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return o>l&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;uh;h++){for(var c=t.getRawIndex(h),p=0;o>p;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){\\\"object\\\"!=typeof d&&(r[0]=d,d=r);for(var u=0;uy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Ph(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;l-1>d;d+=h){for(var f=Math.min(d+h,l-1),g=Math.min(d+2*h,l),y=(g+f)/2,v=0,m=f;g>m;m++){var x=this.getRawIndex(m),_=s[x];isNaN(_)||(v+=_)}v/=g-f;var b=d,w=Math.min(d+h,l),S=d-1,M=s[c];n=-1,r=b;for(var I=-1,T=0,m=b;w>m;m++){var x=this.getRawIndex(m),_=s[x];isNaN(_)?(T++,0>I&&(I=x)):(i=Math.abs((S-y)*(_-M)-(S-m)*(v-M)),i>n&&(n=i,r=x))}T>0&&w-b>T&&(p[u++]=Math.min(I,r),r=Math.max(I,r)),p[u++]=r,c=r}return p[u++]=this.getRawIndex(l-1),o._count=u,o._indices=p,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=Oh(),c=new(Ph(this._rawCount))(Math.ceil(u/s)),p=0,d=0;u>d;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;s>f;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),v=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));l[v]=y,yh[1]&&(h[1]=y),c[p++]=v}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();o>r;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];n>s;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Oh();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();i=n;for(var a=i[0],s=i[1],l=0;r>l;l++){var u=this.getRawIndex(l),h=e[u];a>h&&(a=h),h>s&&(s=h)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;ri;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return wh(t[i],this._dimensions[i])}mz={arrayRows:t,objectRows:function(t,e,n,i){return wh(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return wh(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),tB=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+\\\"_\\\"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(zh(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get(\\\"data\\\",!0),s=L(a)?tz:KE,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},p=B(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=B(h.sourceHeader,c.sourceHeader),f=B(h.dimensions,c.dimensions),g=p!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||f;t=g?[ah(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var y=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{var m=y.get(\\\"source\\\",!0);t=[ah(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get(\\\"transform\\\",!0),i=e.get(\\\"fromTransformResult\\\",!0);if(null!=i){var r=\\\"\\\";1!==t.length&&Bh(r)}var o,a=[],s=[];return y(t,function(t){t.prepareSource();var e=t.getSource(i||0),n=\\\"\\\";null==i||e||Bh(n),a.push(e),s.push(t._getVersionSign())}),n?o=Ah(n,a,{datasetIndex:e.componentIndex}):null!=i&&(o=[lh(a[0])]),{sourceList:o,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;ethis.getShallow(\\\"animationThreshold\\\")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=uz.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get(\\\"progressive\\\")},n.prototype.getProgressiveThreshold=function(){return this.get(\\\"progressiveThreshold\\\")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if(\\\"series\\\"===i||\\\"all\\\"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return(\\\"all\\\"===n||n[ic(i,t)])&&!i.getItemModel(t).get([\\\"select\\\",\\\"disabled\\\"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[aB])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},n.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if(\\\"series\\\"===o)r.selectedMap=\\\"all\\\";else if(\\\"multiple\\\"===o){A(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;a>l;l++){var u=e[l],h=ic(t,u);s[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if(\\\"single\\\"===o||o===!0){var c=e[a-1],h=ic(t,c);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(c),i)}},n.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);\\ni&&i.selected&&e.push(n)}),e.length>0&&this._innerSelect(t,e)}},n.registerClass=function(t){return HE.registerClass(t)},n.protoInitialize=function(){var t=n.prototype;t.type=\\\"series.__base__\\\",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol=\\\"circle\\\",t.visualStyleAccessPath=\\\"itemStyle\\\",t.visualDrawType=\\\"fill\\\"}(),n}(HE);f(sB,Fz),f(sB,uz),ho(sB,HE);var lB=function(){function t(){this.group=new HP,this.uid=_l(\\\"viewComponent\\\")}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.dispose=function(){},t.prototype.updateView=function(){},t.prototype.updateLayout=function(){},t.prototype.updateVisual=function(){},t.prototype.toggleBlurSeries=function(){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();lo(lB),go(lB);var uB=Kr(),hB=pc(),cB=function(){function t(){this.group=new HP,this.uid=_l(\\\"viewChart\\\"),this.renderTask=bh({plan:gc,reset:yc}),this.renderTask.context={view:this}}return t.prototype.init=function(){},t.prototype.render=function(){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&fc(r,i,\\\"emphasis\\\")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&fc(r,i,\\\"normal\\\")},t.prototype.remove=function(){this.group.removeAll()},t.prototype.dispose=function(){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){sl(this.group,t)},t.markUpdateMethod=function(t,e){uB(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type=\\\"chart\\\"}(),t}();lo(cB,[\\\"dispose\\\"]),go(cB);var pB,dB={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)}}},fB=\\\"\\\\x00__throttleOriginMethod\\\",gB=\\\"\\\\x00__throttleRate\\\",yB=\\\"\\\\x00__throttleType\\\",vB=Kr(),mB={itemStyle:yo(pE,!0),lineStyle:yo(uE,!0)},xB={lineStyle:\\\"stroke\\\",itemStyle:\\\"fill\\\"},_B={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||\\\"itemStyle\\\",r=t.getModel(i),o=_c(t,i),a=o(r),s=r.getShallow(\\\"decal\\\");s&&(n.setVisual(\\\"decal\\\",s),s.dirty=!0);var l=bc(t,i),u=a[l],c=I(u)?u:null,p=\\\"auto\\\"===a.fill||\\\"auto\\\"===a.stroke;if(!a[l]||c||p){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual(\\\"colorFromPalette\\\",!0)),a.fill=\\\"auto\\\"===a.fill||I(a.fill)?d:a.fill,a.stroke=\\\"auto\\\"===a.stroke||I(a.stroke)?d:a.stroke}return n.setVisual(\\\"style\\\",a),n.setVisual(\\\"drawType\\\",l),!e.isSeriesFiltered(t)&&c?(n.setVisual(\\\"colorFromPalette\\\",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=h({},a);r[l]=c(i),e.setItemVisual(n,\\\"style\\\",r)}}):void 0}},bB=new gE,wB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||\\\"itemStyle\\\",r=_c(t,i),o=n.getVisual(\\\"drawType\\\");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){bB.option=n[i];var a=r(bB),s=t.ensureUniqueItemVisual(e,\\\"style\\\");h(s,a),bB.option.decal&&(t.setItemVisual(e,\\\"decal\\\",bB.option.decal),bB.option.decal.dirty=!0),o in a&&t.setItemVisual(e,\\\"colorFromPalette\\\",!1)}}:null}}}},SB={performRawSeries:!0,overallReset:function(t){var e=Z();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+\\\"-\\\"+n,r=e.get(i);r||(r={},e.set(i,r)),vB(t).scope=r}}),t.eachSeries(function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=vB(e).scope,a=e.visualStyleAccessPath||\\\"itemStyle\\\",s=bc(e,a);r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var a=i[t],l=r.getItemVisual(a,\\\"colorFromPalette\\\");if(l){var u=r.ensureUniqueItemVisual(a,\\\"style\\\"),h=n.getName(t)||t+\\\"\\\",c=n.count();u[s]=e.getColorFromPalette(h,o,c)}})}})}},MB=Math.PI,IB=function(){function t(t,e,n,i){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get(\\\"large\\\")&&r>=t.get(\\\"largeThreshold\\\"),s=\\\"mod\\\"===t.get(\\\"progressiveChunkMode\\\")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Z();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;y(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o=\\\"\\\";W(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){function r(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}i=i||{};var o=!1,a=this;y(t,function(t){if(!i.visualType||i.visualType===t.visualType){var s=a._stageTaskMap.get(t.uid),l=s.seriesTaskMap,u=s.overallTask;if(u){var h,c=u.agentStubMap;c.each(function(t){r(i,t)&&(t.dirty(),h=!0)}),h&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,i.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(o=!0)}else l&&l.each(function(s){r(i,s)&&s.dirty();var l=a.getPerformArgs(s,i.block);l.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(o=!0)})}}),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){\\\"remain\\\"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){function r(e){var r=e.uid,l=s.set(r,a&&a.get(r)||bh({plan:Cc,reset:Dc,count:kc}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(e,l)}var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Z(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(r):l?n.eachRawSeriesByType(l,r):u&&u(n,i).each(r)},t.prototype._createOverallStageTask=function(t,e,n,i){function r(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(p=!0,bh({reset:Mc,onDirty:Tc})));n.context={model:t,overallProgress:c},n.agent=a,n.__block=c,o._pipe(t,n)}var o=this,a=e.overallTask=e.overallTask||bh({reset:Sc});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Z(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1,d=\\\"\\\";W(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,r):h?h(n,i).each(r):(c=!1,y(n.getSeries(),r)),p&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return I(t)&&(t={overallReset:t,seriesType:Lc(t)}),t.uid=_l(\\\"stageHandler\\\"),e&&(t.visualType=e),t},t}(),TB=Ac(0),CB={},DB={};Pc(CB,pz),Pc(DB,_z),CB.eachSeriesByType=CB.eachRawSeriesByType=function(t){pB=t},CB.eachComponent=function(t){\\\"series\\\"===t.mainType&&t.subType&&(pB=t.subType)};var AB=[\\\"#37A2DA\\\",\\\"#32C5E9\\\",\\\"#67E0E3\\\",\\\"#9FE6B8\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#fb7293\\\",\\\"#E062AE\\\",\\\"#E690D1\\\",\\\"#e7bcf3\\\",\\\"#9d96f5\\\",\\\"#8378EA\\\",\\\"#96BFFF\\\"],kB={color:AB,colorLayer:[[\\\"#37A2DA\\\",\\\"#ffd85c\\\",\\\"#fd7b5f\\\"],[\\\"#37A2DA\\\",\\\"#67E0E3\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#E062AE\\\",\\\"#9d96f5\\\"],[\\\"#37A2DA\\\",\\\"#32C5E9\\\",\\\"#9FE6B8\\\",\\\"#FFDB5C\\\",\\\"#ff9f7f\\\",\\\"#fb7293\\\",\\\"#e7bcf3\\\",\\\"#8378EA\\\",\\\"#96BFFF\\\"],AB]},LB=\\\"#B9B8CE\\\",PB=\\\"#100C2A\\\",OB=function(){return{axisLine:{lineStyle:{color:LB}},splitLine:{lineStyle:{color:\\\"#484753\\\"}},splitArea:{areaStyle:{color:[\\\"rgba(255,255,255,0.02)\\\",\\\"rgba(255,255,255,0.05)\\\"]}},minorSplitLine:{lineStyle:{color:\\\"#20203B\\\"}}}},RB=[\\\"#4992ff\\\",\\\"#7cffb2\\\",\\\"#fddd60\\\",\\\"#ff6e76\\\",\\\"#58d9f9\\\",\\\"#05c091\\\",\\\"#ff8a45\\\",\\\"#8d48e3\\\",\\\"#dd79ff\\\"],NB={darkMode:!0,color:RB,backgroundColor:PB,axisPointer:{lineStyle:{color:\\\"#817f91\\\"},crossStyle:{color:\\\"#817f91\\\"},label:{color:\\\"#fff\\\"}},legend:{textStyle:{color:LB}},textStyle:{color:LB},title:{textStyle:{color:\\\"#EEF1FA\\\"},subtextStyle:{color:\\\"#B9B8CE\\\"}},toolbox:{iconStyle:{borderColor:LB}},dataZoom:{borderColor:\\\"#71708A\\\",textStyle:{color:LB},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:LB}},timeline:{lineStyle:{color:LB},label:{color:LB},controlStyle:{color:LB,borderColor:LB}},calendar:{itemStyle:{color:PB},dayLabel:{color:LB},monthLabel:{color:LB},yearLabel:{color:LB}},timeAxis:OB(),logAxis:OB(),valueAxis:OB(),categoryAxis:OB(),line:{symbol:\\\"circle\\\"},graph:{color:RB},gauge:{title:{color:LB},axisLine:{lineStyle:{color:[[1,\\\"rgba(207,212,219,0.2)\\\"]]}},axisLabel:{color:LB},detail:{color:\\\"#EEF1FA\\\"}},candlestick:{itemStyle:{color:\\\"#f64e56\\\",color0:\\\"#54ea92\\\",borderColor:\\\"#f64e56\\\",borderColor0:\\\"#54ea92\\\"}}};NB.categoryAxis.splitLine.show=!1;var EB=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(T(t)){var r=oo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=[\\\"Index\\\",\\\"Name\\\",\\\"Id\\\"],a={name:1,dataIndex:1,dataType:1};y(t,function(t,r){for(var s=!1,l=0;l0&&h===r.length-u.length){var c=r.slice(0,h);\\\"data\\\"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){function n(t,e,n,i){return null==t[n]||e[i||n]===t[n]}var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return n(l,a,\\\"mainType\\\")&&n(l,a,\\\"subType\\\")&&n(l,a,\\\"index\\\",\\\"componentIndex\\\")&&n(l,a,\\\"name\\\")&&n(l,a,\\\"id\\\")&&n(u,o,\\\"name\\\")&&n(u,o,\\\"dataIndex\\\")&&n(u,o,\\\"dataType\\\")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o))},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),zB=[\\\"symbol\\\",\\\"symbolSize\\\",\\\"symbolRotate\\\",\\\"symbolOffset\\\"],BB=zB.concat([\\\"symbolKeepAspect\\\"]),VB={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){function n(e,n){for(var i=t.getRawValue(n),r=t.getDataParams(n),a=0;a0&&t.unfinished);t.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(t,e,n){if(!this[AV]&&!this._disposed){var i,r,o;if(A(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[AV]=!0,!this._model||e){var a=new Mz(this._api),s=this._theme,l=this._model=new pz;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},uF);var u={seriesTransition:o,optionChanged:!0};if(n)this[kV]={silent:i,updateParams:u},this[AV]=!1,this.getZr().wakeUp();else{try{VV(this),WV.update.call(this,null,u)}catch(h){throw this[kV]=null,this[AV]=!1,h}this._ssr||this._zr.flush(),this[kV]=null,this[AV]=!1,UV.call(this,i),ZV.call(this,i)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||uk.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},n.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get(\\\"backgroundColor\\\"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},n.prototype.getSvgDataURL=function(){if(uk.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return y(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},n.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;y(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=\\\"svg\\\"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL(\\\"image/\\\"+(t&&t.type||\\\"png\\\"));return y(i,function(t){t.group.ignore=!1}),o}},n.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e=\\\"svg\\\"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(fF[n]){var a=o,l=o,u=-o,h=-o,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();y(dF,function(o){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(s(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),l=i(d.top,l),u=r(d.right,u),h=r(d.bottom,h),c.push({dom:p,left:d.left,top:d.top})}}),a*=p,l*=p,u*=p,h*=p;var d=u-a,f=h-l,g=vk.createCanvas(),v=Ji(g,{renderer:e?\\\"svg\\\":\\\"canvas\\\"});if(v.resize({width:d,height:f}),e){var m=\\\"\\\";return y(c,function(t){var e=t.left-a,n=t.top-l;m+=''+t.dom+\\\"\\\"}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new mR({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),y(c,function(t){var e=new fR({style:{x:t.left*p-a,y:t.top*p-l,image:t.dom}});v.add(e)}),v.refreshImmediately(),g.toDataURL(\\\"image/\\\"+(t&&t.type||\\\"png\\\"))}return this.getDataURL(t)}},n.prototype.convertToPixel=function(t,e){return HV(this,\\\"convertToPixel\\\",t,e)},n.prototype.convertFromPixel=function(t,e){return HV(this,\\\"convertFromPixel\\\",t,e)},n.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=$r(i,t);return y(r,function(t,i){i.indexOf(\\\"Models\\\")>=0&&y(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if(\\\"seriesModels\\\"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n}},n.prototype.getVisual=function(t,e){var n=this._model,i=$r(n,t,{defaultMainType:\\\"series\\\"}),r=i.seriesModel,o=r.getData(),a=i.hasOwnProperty(\\\"dataIndexInside\\\")?i.dataIndexInside:i.hasOwnProperty(\\\"dataIndex\\\")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Oc(o,a,e):Rc(o,e)},n.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},n.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},n.prototype._initEvents=function(){var t=this;y(oF,function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a=\\\"globalout\\\"===e;if(a?i={}:o&&Vc(o,function(t){var e=TR(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}return e.eventData?(i=h({},e.eventData),!0):void 0},!0),i){var s=i.componentType,l=i.componentIndex;(\\\"markLine\\\"===s||\\\"markPoint\\\"===s||\\\"markArea\\\"===s)&&(s=\\\"series\\\",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t[\\\"series\\\"===u.mainType?\\\"_chartsMap\\\":\\\"_componentsMap\\\"][u.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),y(sF,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),y([\\\"selectchanged\\\"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),Bc(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.getDom();t&&to(this.getDom(),vF,\\\"\\\");var e=this,n=e._api,i=e._model;y(e._componentsViews,function(t){t.dispose(i,n)}),y(e._chartsViews,function(t){t.dispose(i,n)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete dF[e.id]}},n.prototype.resize=function(t){if(!this[AV]&&!this._disposed){this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption(\\\"media\\\"),i=t&&t.silent;this[kV]&&(null==i&&(i=this[kV].silent),n=!0,this[kV]=null),this[AV]=!0;try{n&&VV(this),WV.update.call(this,{type:\\\"resize\\\",animation:h({duration:0},t&&t.animation)})}catch(r){throw this[AV]=!1,r}this[AV]=!1,UV.call(this,i),ZV.call(this,i)}}},n.prototype.showLoading=function(t,e){if(!this._disposed&&(A(t)&&(e=t,t=\\\"\\\"),t=t||\\\"default\\\",this.hideLoading(),pF[t])){var n=pF[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},n.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},n.prototype.makeActionFromEvent=function(t){var e=h({},t);return e.type=sF[t.type],e},n.prototype.dispatchAction=function(t,e){if(!this._disposed&&(A(e)||(e={silent:!!e}),aF[t.type]&&this._model)){if(this[AV])return void this._pendingActions.push(t);var n=e.silent;XV.call(this,t,n);var i=e.flush;i?this._zr.flush():i!==!1&&uk.browser.weChat&&this._throttledZrFlush(),UV.call(this,n),ZV.call(this,n)}},n.prototype.updateLabelLayout=function(){lV.trigger(\\\"series:layoutlabels\\\",this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(t){if(!this._disposed){var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},n.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function n(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get(\\\"zlevel\\\")||0,a=r.get(\\\"z\\\")||0,s=r.getZLevelKey();i=i||!!s,(\\\"series\\\"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);an(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),y(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=\\\"\\\"),r=i,n.setZLevel(i)})}}function i(t){for(var e=[],n=t.currentStates,i=0;ie.get(\\\"hoverLayerThreshold\\\")&&!uk.node&&!uk.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}function o(t,e){var n=t.get(\\\"blendMode\\\")||null;e.eachRendered(function(t){t.isGroup||(t.style.blend=n)})}function a(t,e){if(!t.preventAutoZ){var n=t.get(\\\"z\\\")||0,i=t.get(\\\"zlevel\\\")||0;e.eachRendered(function(t){return s(t,n,i,-1/0),!0})}}function s(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:n.get(\\\"delay\\\"),easing:n.get(\\\"easing\\\")}:null;e.eachRendered(function(t){if(t.states&&t.states.emphasis){if(Ls(t))return;if(t instanceof uR&&ls(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}})}VV=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),FV(t,!0),FV(t,!1),e.plan()},FV=function(t,e){function n(t){var n=t.__requireNewView;t.__requireNewView=!1;var u=\\\"_ec_\\\"+t.id+\\\"_\\\"+t.type,h=!n&&a[u];if(!h){var c=oo(t.type),p=e?lB.getClass(c.main,c.sub):cB.getClass(c.sub);h=new p,h.init(i,l),a[u]=h,o.push(h),s.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(h,t,i,l)}for(var i=t._model,r=t._scheduler,o=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,s=t._zr,l=t._api,u=0;u1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,\\\"_oldKeyGetter\\\"),this._initIndexMap(e,i,o,\\\"_newKeyGetter\\\");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)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(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var p=0;h>p;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n1)for(var a=0;o>a;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;oo;o++){var s=void 0,l=void 0,u=void 0,h=this.dimensions[a];if(h&&h.storeDimIndex===o)s=e?h.name:null,l=h.type,u=h.ordinalMeta,a++;else{var c=this.getSourceDimension(o);c&&(s=e?c.name:null,l=c.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||h&&h.isCalculationCoord||(i+=n?s.replace(/\\\\`/g,\\\"`1\\\").replace(/\\\\$/g,\\\"`2\\\"):s),i+=\\\"$\\\",i+=OF[l]||\\\"f\\\",u&&(i+=u.uid),i+=\\\"$\\\"}var p=this.source,d=[p.seriesLayoutBy,p.startIndex,i].join(\\\"$$\\\");return{dimensions:r,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;ea;a++){var s=a-i;this._nameList[a]=e[s],o&&CF(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===KE;if(s&&!i.pure)for(var l=[],u=t;e>u;u++){var h=i.getItem(u,l);if(!this.hasItemOption&&Pr(h)&&(this.hasItemOption=!0),h){var c=h.name;null==r[u]&&null!=c&&(r[u]=Wr(c,null));var p=h.id;null==o[u]&&null!=p&&(o[u]=Wr(p,null))}}if(this._shouldMakeIdFromName())for(var u=t;e>u;u++)CF(this,u);bF(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){NF(t)?h(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=SF(this,this._nameDimIdx,e)),null==n&&(n=\\\"\\\"),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return wF(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.get(i.storeDimIndex,e):void 0},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];return i?n.getByRawIndex(i.storeDimIndex,e):void 0},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return M(t)?i.getValues(EF(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;i>n;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();n>e;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return null==i||isNaN(i)?VF:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){I(t)&&(n=e,e=t,t=[]);var i=n||this,r=EF(MF(t),this._getStoreDimIndex,this);this._store.each(r,i?Lk(e,i):e)},t.prototype.filterSelf=function(t,e,n){I(t)&&(n=e,e=t,t=[]);var i=n||this,r=EF(MF(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Lk(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=b(t),r=[];return y(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){I(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=EF(MF(t),this._getStoreDimIndex,this),a=TF(this);return a._store=this._store.map(o,r?Lk(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=EF(MF(t),this._getStoreDimIndex,this);this._store.modify(o,r?Lk(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=TF(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=TF(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new gE(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new AF(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return wF(t,e)},function(t){return wF(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},NF(t)?h(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),M(r)?r=r.slice():NF(r)&&(r=h({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,NF(e)?h(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){NF(t)?h(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?h(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;CR(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){y(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:EF(this.dimensions,this._getDimInfo,this),this.hostModel)),IF(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];I(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(F(arguments)))})},t.internalField=function(){bF=function(t){var e=t._invertedIndicesMap;y(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new zF(o.categories.length);for(var s=0;s1&&(s+=\\\"__ec__\\\"+u),i[e]=s}}}(),t}(),HF=function(){function t(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return t}(),YF={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents(\\\"xAxis\\\",iO).models[0],o=t.getReferringComponents(\\\"yAxis\\\",iO).models[0];e.coordSysDims=[\\\"x\\\",\\\"y\\\"],n.set(\\\"x\\\",r),n.set(\\\"y\\\",o),yd(r)&&(i.set(\\\"x\\\",r),e.firstCategoryDimIndex=0),yd(o)&&(i.set(\\\"y\\\",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents(\\\"singleAxis\\\",iO).models[0];e.coordSysDims=[\\\"single\\\"],n.set(\\\"single\\\",r),yd(r)&&(i.set(\\\"single\\\",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents(\\\"polar\\\",iO).models[0],o=r.findAxisModel(\\\"radiusAxis\\\"),a=r.findAxisModel(\\\"angleAxis\\\");e.coordSysDims=[\\\"radius\\\",\\\"angle\\\"],n.set(\\\"radius\\\",o),n.set(\\\"angle\\\",a),yd(o)&&(i.set(\\\"radius\\\",o),e.firstCategoryDimIndex=0),yd(a)&&(i.set(\\\"angle\\\",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e){e.coordSysDims=[\\\"lng\\\",\\\"lat\\\"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent(\\\"parallel\\\",t.get(\\\"parallelIndex\\\")),a=e.coordSysDims=o.dimensions.slice();y(o.parallelAxisIndex,function(t,o){var s=r.getComponent(\\\"parallelAxis\\\",t),l=a[o];n.set(l,s),yd(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})}},XF=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();go(XF);var UF=0,ZF=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++UF}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&v(i,Td);return new t({categories:r,needCollect:!r,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!T(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},t}(),jF=function(t){function n(e){var n=t.call(this,e)||this;n.type=\\\"ordinal\\\";var i=n.getSetting(\\\"ordinalMeta\\\");return i||(i=new ZF({})),M(i)&&(i=new ZF({categories:v(i,function(t){return A(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting(\\\"extent\\\")||[0,i.categories.length-1],n}return e(n,t),n.prototype.parse=function(t){return null==t?0/0:T(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},n.prototype.contain=function(t){return t=this.parse(t),Od(t,this._extent)&&null!=this._ordinalMeta.categories[t]},n.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Rd(t,this._extent)},n.prototype.scale=function(t){return t=Math.round(Nd(t,this._extent)),this.getRawOrdinalNumber(t)},n.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},n.prototype.getMinorTicks=function(){},n.prototype.setSortInfo=function(t){if(null==t)return void(this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null);for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);a>r;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;o>r;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},n.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t=0&&t=t},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type=\\\"ordinal\\\",n}(XF);XF.registerClass(jF);var qF=ar,KF=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"interval\\\",e._interval=0,e._intervalPrecision=2,e}return e(n,t),n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return Od(t,this._extent)},n.prototype.normalize=function(t){return Rd(t,this._extent)},n.prototype.scale=function(t){return Nd(t,this._extent)},n.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},n.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=kd(t)},n.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[];var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&o.push(t?{value:qF(l+e,r)}:{value:n[1]}),o},n.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;rs;){var c=qF(a.value+(s+1)*h);c>i[0]&&cr&&(r=-r,i.reverse());var o=Dd(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},n.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=qF(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=qF(Math.ceil(e[1]/r)*r))},n.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},n.type=\\\"interval\\\",n}(XF);XF.registerClass(KF);var $F=\\\"undefined\\\"!=typeof Float32Array,JF=$F?Float32Array:Array,QF=\\\"__ec_stack_\\\",tG=function(t,e,n,i){for(;i>n;){var r=n+i>>>1;t[r][1]n&&(this._approxInterval=n);var o=nG.length,a=Math.min(tG(nG,this._approxInterval,0,o),o-1);this._interval=nG[a][1],this._minLevelUnit=nG[Math.max(a-1,0)][0]},n.prototype.parse=function(t){return D(t)?t:+yr(t)},n.prototype.contain=function(t){return Od(this.parse(t),this._extent)},n.prototype.normalize=function(t){return Rd(this.parse(t),this._extent)},n.prototype.scale=function(t){return Nd(t,this._extent)},n.type=\\\"time\\\",n}(KF),nG=[[\\\"second\\\",IE],[\\\"minute\\\",TE],[\\\"hour\\\",CE],[\\\"quarter-day\\\",6*CE],[\\\"half-day\\\",12*CE],[\\\"day\\\",1.2*DE],[\\\"half-week\\\",3.5*DE],[\\\"week\\\",7*DE],[\\\"month\\\",31*DE],[\\\"quarter\\\",95*DE],[\\\"half-year\\\",AE/2],[\\\"year\\\",AE]];XF.registerClass(eG);var iG=XF.prototype,rG=KF.prototype,oG=ar,aG=Math.floor,sG=Math.ceil,lG=Math.pow,uG=Math.log,hG=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"log\\\",e.base=10,e._originalScale=new KF,e._interval=0,e}return e(n,t),n.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=rG.getTicks.call(this,t);return v(r,function(t){var e=t.value,r=ar(lG(this.base,e));return r=e===n[0]&&this._fixMin?of(r,i[0]):r,r=e===n[1]&&this._fixMax?of(r,i[1]):r,{value:r}},this)},n.prototype.setExtent=function(t,e){var n=uG(this.base);t=uG(Math.max(0,t))/n,e=uG(Math.max(0,e))/n,rG.setExtent.call(this,t,e)},n.prototype.getExtent=function(){var t=this.base,e=iG.getExtent.call(this);e[0]=lG(t,e[0]),e[1]=lG(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=of(e[0],i[0])),this._fixMax&&(e[1]=of(e[1],i[1])),e},n.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=uG(t[0])/uG(e),t[1]=uG(t[1])/uG(e),iG.unionExtent.call(this,t)},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(1/0===n||0>=n)){var i=vr(n),r=t/n*i;for(.5>=r&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[ar(sG(e[0]/i)*i),ar(aG(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},n.prototype.calcNiceExtent=function(t){rG.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},n.prototype.parse=function(t){return t},n.prototype.contain=function(t){return t=uG(t)/uG(this.base),Od(t,this._extent)},n.prototype.normalize=function(t){return t=uG(t)/uG(this.base),Rd(t,this._extent)},n.prototype.scale=function(t){return t=Nd(t,this._extent),lG(this.base,t)},n.type=\\\"log\\\",n}(XF),cG=hG.prototype;cG.getMinorTicks=rG.getMinorTicks,cG.getLabel=rG.getLabel,XF.registerClass(hG);var pG=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),0>a&&0>s&&!u&&(s=0));var c=this._determinedMin,p=this._determinedMax;return null!=c&&(a=c,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[fG[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=dG[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),dG={min:\\\"_determinedMin\\\",max:\\\"_determinedMax\\\"},fG={min:\\\"_dataMin\\\",max:\\\"_dataMax\\\"},gG=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),yG={isDimensionStacked:xd,enableDataStack:vd,getStackedDimension:_d},vG=(Object.freeze||Object)({createList:bf,getLayoutRect:uu,dataStack:yG,createScale:wf,mixinAxisModelCommonMethods:Sf,getECData:TR,createTextStyle:Mf,createDimensions:hd,createSymbol:Gc,enableHoverEmphasis:$a}),mG=[],xG={registerPreprocessor:Vp,registerProcessor:Fp,registerPostInit:Gp,registerPostUpdate:Wp,registerUpdateLifecycle:Hp,registerAction:Yp,registerCoordinateSystem:Xp,registerLayout:Zp,registerVisual:jp,registerTransform:_F,registerLoading:Kp,registerMap:Jp,registerImpl:Cp,PRIORITY:DV,ComponentModel:HE,ComponentView:lB,SeriesModel:sB,ChartView:cB,registerComponentModel:function(t){HE.registerClass(t)},registerComponentView:function(t){lB.registerClass(t)},registerSeriesModel:function(t){sB.registerClass(t)},registerChartView:function(t){cB.registerClass(t)},registerSubTypeDefaulter:function(t,e){HE.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){nr(t,e)}},_G=1e-8,bG=[],wG=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),SG=function(){function t(t,e){this.type=\\\"polygon\\\",this.exterior=t,this.interiors=e}return t}(),MG=function(){function t(t){this.type=\\\"linestring\\\",this.points=t}return t}(),IG=function(t){function n(e,n,i){var r=t.call(this,e)||this;return r.type=\\\"geoJSON\\\",r.geometries=n,r._center=i&&[i[0],i[1]],r}return e(n,t),n.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;in&&(t=r,n=a)}if(t)return kf(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return y(r,function(e){\\\"polygon\\\"===e.type?Af(e.exterior,n,i,t):y(e.points,function(e){Af(e,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new dL(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},n.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;r>i;i++){var o=n[i];if(\\\"polygon\\\"===o.type){var a=o.exterior,s=o.interiors;if(Cf(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Cf(s[l],t[0],t[1]))continue t;return!0}}}return!1},n.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new dL(t,e,n,i),s=r.calculateTransform(a),l=this.geometries,u=0;u=n&&i>=t},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return hr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&\\\"ordinal\\\"===i.type&&(n=n.slice(),qf(n,i.count())),rr(t,OG,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&\\\"ordinal\\\"===i.type&&(n=n.slice(),qf(n,i.count()));var r=rr(t,n,OG,e);return this.scale.scale(r)},t.prototype.pointToData=function(){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=Ef(this,e),i=n.ticks,r=v(i,function(t){return{coord:this.dataToCoord(\\\"ordinal\\\"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),o=e.get(\\\"alignWithLabel\\\");return Kf(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if(\\\"ordinal\\\"===this.scale.type)return[];var t=this.model.getModel(\\\"minorTick\\\"),e=t.get(\\\"splitNumber\\\");e>0&&100>e||(e=5);var n=this.scale.getMinorTicks(e),i=v(n,function(t){return v(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this);return i},t.prototype.getViewLabels=function(){return Nf(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel(\\\"axisLabel\\\")},t.prototype.getTickModel=function(){return this.model.getModel(\\\"axisTick\\\")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return Xf(this)},t}(),NG=2*Math.PI,EG=JO.CMD,zG=[\\\"top\\\",\\\"right\\\",\\\"bottom\\\",\\\"left\\\"],BG=[],VG=new rL,FG=new rL,GG=new rL,WG=new rL,HG=new rL,YG=[],XG=new rL,UG=[\\\"align\\\",\\\"verticalAlign\\\",\\\"width\\\",\\\"height\\\",\\\"fontSize\\\"],ZG=new RP,jG=Kr(),qG=Kr(),KG=[\\\"x\\\",\\\"y\\\",\\\"rotation\\\"],$G=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();dL.applyTransform(u,u,l),l?ZG.setLocalTransform(l):(ZG.x=ZG.y=ZG.rotation=ZG.originX=ZG.originY=0,ZG.scaleX=ZG.scaleY=1),ZG.rotation=Wo(ZG.rotation);var h,c=i.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();dL.applyTransform(h,h,p)}var d=h&&c.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:ZG.x,y:ZG.y,scaleX:ZG.scaleX,scaleY:ZG.scaleY,rotation:ZG.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get(\\\"labelLayout\\\");(I(i)||b(i).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=TR(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)})},t.prototype.updateLayoutConfig=function(t){function e(t,e){return function(){sg(t,e)}}for(var n=t.getWidth(),i=t.getHeight(),r=0;r=0&&n.attr(r.oldLayoutSelect),p(h,\\\"emphasis\\\")>=0&&n.attr(r.oldLayoutEmphasis)),As(n,l,e,s)}else if(n.attr(l),!rE(n).valueAnimation){var c=B(n.style.opacity,1);n.style.opacity=0,ks(n,{style:{opacity:c}},e,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};bg(d,l,KG),bg(d,n.states.select,KG)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};bg(f,l,KG),bg(f,n.states.emphasis,KG)}xl(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){var r=qG(i),o=r.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),As(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,ks(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),JG=Kr();If(wg);var QG=function(t){function n(e,n,i){var r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var o;i=i||SP,\\\"string\\\"==typeof e?o=Sg(e,n,i):A(e)&&(o=e,e=o.id),r.id=e,r.dom=o;var a=o.style;return a&&(K(o),o.onselectstart=function(){return!1},a.padding=\\\"0\\\",a.margin=\\\"0\\\",a.borderWidth=\\\"0\\\"),r.painter=n,r.dpr=i,r}return e(n,t),n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext(\\\"2d\\\"),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Sg(\\\"back-\\\"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext(\\\"2d\\\"),1!==t&&this.ctxBack.scale(t,t)},n.prototype.createRepaintRects=function(t,e,n,i){function r(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new dL(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,u=0;ug&&(i=g,r=u)}}if(s&&(o[r].union(t),n=!0),!n){var e=new dL(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;for(var o=[],a=this.maxRepaintRectCount,s=!1,l=new dL(0,0,0,0),u=this.__startIndex;uo;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(tW)),i||(i=n.ctx,i.save()),mp(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(tW)},t.prototype.paintOne=function(t,e){vp(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;DL(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(eW).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a15)break}}n.prevElClipPaths&&l.restore()};if(c)if(0===c.length)m=s.__endIndex;else for(var _=p.dpr,b=0;b0&&t>i[0]){for(s=0;r-1>s&&!(i[s]t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?nW:0),this._needsManuallyCompositing),h.__builtin__||a(\\\"ZLevel \\\"+u+\\\" has been used by unkown layer \\\"+h.id),h!==s&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.__drawIndex=h.incremental?-1:o,e(o),s=h),i.__dirty&SL&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(t){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,y(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?l(n[t],e,!0):n[t]=e;for(var i=0;is;s++){var u=a[s];mp(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),oW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"dataset\\\",e}return e(n,t),n.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new tB(this),Eh(this)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Eh(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type=\\\"dataset\\\",n.defaultOption={seriesLayoutBy:nz},n}(HE),aW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"dataset\\\",e}return e(n,t),n.type=\\\"dataset\\\",n}(lB);If([Tg,Cg]),If(wg);var sW={average:function(t){for(var e=0,n=0,i=0;ie&&(e=t[n]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,n=0;nd)l=p;else if(null!=l&&d>a){u=(p+l)/2;break}1===c&&(h=d-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}});else{var a=this.getData(),s=a.getLayout(\\\"offset\\\"),l=a.getLayout(\\\"size\\\"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[0/0,0/0]},n.type=\\\"series.__base_bar__\\\",n.defaultOption={z:2,coordinateSystem:\\\"cartesian2d\\\",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:\\\"mod\\\"},n}(sB);sB.registerClass(uW);var hW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(\\\"realtimeSort\\\",!0)||null})},n.prototype.getProgressive=function(){return this.get(\\\"large\\\")?this.get(\\\"progressive\\\"):!1},n.prototype.getProgressiveThreshold=function(){var t=this.get(\\\"progressiveThreshold\\\"),e=this.get(\\\"largeThreshold\\\");return e>t&&(t=e),t},n.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},n.type=\\\"series.bar\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\"],n.defaultOption=Sl(uW.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}),n}(uW),cW=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),pW=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"sausage\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new cW},n.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?c>u-l:c>l-u;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},n}(uR),dW=Math.max,fW=Math.min,gW=function(t){function n(){var e=t.call(this)||this;return e.type=n.type,e._isFirstFrame=!0,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get(\\\"coordinateSystem\\\");(\\\"cartesian2d\\\"===r||\\\"polar\\\"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},n.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},n.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},n.prototype.eachRendered=function(t){sl(this._progressiveEls||this.group,t)},n.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},n.prototype._renderNormal=function(t,e,n,i){function r(t){var e=bW[u.type](s,t),n=$g(u,o,e);return n.useStyle(v.getItemStyle()),\\\"cartesian2d\\\"===u.type?n.setShape(\\\"r\\\",m):n.setShape(\\\"cornerRadius\\\",m),x[t]=n,n}var o,a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,h=u.getBaseAxis();\\\"cartesian2d\\\"===u.type?o=h.isHorizontal():\\\"polar\\\"===u.type&&(o=\\\"angle\\\"===h.dim);var c=t.isAnimationEnabled()?t:null,p=Gg(t,u);p&&this._enableRealtimeSort(p,s,n);var d=t.get(\\\"clip\\\",!0)||p,f=Fg(u,s);a.removeClipPath();var g=t.get(\\\"roundCap\\\",!0),y=t.get(\\\"showBackground\\\",!0),v=t.getModel(\\\"backgroundStyle\\\"),m=v.get(\\\"borderRadius\\\")||0,x=[],_=this._backgroundEls,b=i&&i.isInitSort,w=i&&\\\"changeAxisOrder\\\"===i.type;s.diff(l).add(function(e){var n=s.getItemModel(e),i=bW[u.type](s,e,n);if(y&&r(e),s.hasValue(e)&&_W[u.type](i)){var l=!1;d&&(l=yW[u.type](f,i));var v=vW[u.type](t,s,e,i,o,c,h.model,!1,g);p&&(v.forceLabelAnimation=!0),Ug(v,s,e,n,i,t,o,\\\"polar\\\"===u.type),b?v.attr({shape:i}):p?Wg(p,c,v,i,e,o,!1,!1):ks(v,{shape:i},t,e),s.setItemGraphicEl(e,v),a.add(v),v.ignore=l}}).update(function(e,n){var i=s.getItemModel(e),S=bW[u.type](s,e,i);if(y){var M=void 0;0===_.length?M=r(n):(M=_[n],M.useStyle(v.getItemStyle()),\\\"cartesian2d\\\"===u.type?M.setShape(\\\"r\\\",m):M.setShape(\\\"cornerRadius\\\",m),x[e]=M);var I=bW[u.type](s,e),T=Kg(o,I,u);As(M,{shape:T},c,e)}var C=l.getItemGraphicEl(n);if(!s.hasValue(e)||!_W[u.type](S))return void a.remove(C);var D=!1;if(d&&(D=yW[u.type](f,S),D&&a.remove(C)),C?Ns(C):C=vW[u.type](t,s,e,S,o,c,h.model,!!C,g),p&&(C.forceLabelAnimation=!0),w){var A=C.getTextContent();if(A){var k=rE(A);null!=k.prevValue&&(k.prevValue=k.value)}}else Ug(C,s,e,i,S,t,o,\\\"polar\\\"===u.type);b?C.attr({shape:S}):p?Wg(p,c,C,S,e,o,!0,w):As(C,{shape:S},t,e,null),s.setItemGraphicEl(e,C),C.ignore=D,a.add(C)}).remove(function(e){var n=l.getItemGraphicEl(e);n&&Rs(n,t,e)}).execute();var S=this._backgroundGroup||(this._backgroundGroup=new HP);S.removeAll();for(var M=0;Ma;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=0>l?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},n.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o>=r;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},n.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:n.dim+\\\"Axis\\\",axisId:n.index,sortInfo:r}))}},n.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:\\\"changeAxisOrder\\\",componentType:i.dim+\\\"Axis\\\",isInitSort:!0,axisId:i.index,sortInfo:r})},n.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},n.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},n.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off(\\\"rendered\\\",this._onRendered),this._onRendered=null)},n.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){Rs(e,t,TR(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type=\\\"bar\\\",n}(cB),yW={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=dW(e.x,t.x),s=fW(e.x+e.width,r),l=dW(e.y,t.y),u=fW(e.y+e.height,o),h=a>s,c=l>u;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,0>n&&(e.x+=e.width,e.width=-e.width),0>i&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}var r=fW(e.r,t.r),o=dW(e.r0,t.r0);e.r=r,e.r0=o;var a=0>r-o;if(0>n){var i=e.r;e.r=e.r0,e.r0=i}return a}},vW={cartesian2d:function(t,e,n,i,r,o){var a=new mR({shape:h({},i),z2:1});if(a.__dataIndex=n,a.name=\\\"item\\\",o){var s=a.shape,l=r?\\\"height\\\":\\\"width\\\";s[l]=0}return a},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?pW:_N,h=new u({shape:i,z2:1});h.name=\\\"item\\\";var c=Xg(r);if(h.calculateTextPosition=Ng(c,{isRoundCap:u===pW}),o){var p=h.shape,d=r?\\\"r\\\":\\\"endAngle\\\",f={};p[d]=r?i.r0:i.startAngle,f[d]=i[d],(s?As:ks)(h,{shape:f},o)}return h}},mW=[\\\"x\\\",\\\"y\\\",\\\"width\\\",\\\"height\\\"],xW=[\\\"cx\\\",\\\"cy\\\",\\\"r\\\",\\\"startAngle\\\",\\\"endAngle\\\"],_W={cartesian2d:function(t){return!Hg(t,mW)},polar:function(t){return!Hg(t,xW)}},bW={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?Zg(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}},wW=function(){function t(){}return t}(),SW=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"largeBar\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new wW},n.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null},30,!1);If(Jg);var IW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(t){var e=new HP,n=Gc(\\\"line\\\",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual(\\\"symbol\\\"),r=this.getData().getVisual(\\\"symbolRotate\\\"),o=\\\"none\\\"===i?\\\"circle\\\":i,a=.8*t.itemHeight,s=Gc(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l=\\\"inherit\\\"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf(\\\"empty\\\")>-1&&(s.style.stroke=s.style.fill,s.style.fill=\\\"#fff\\\",s.style.lineWidth=2),e},n.type=\\\"series.line\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\"],n.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},n}(sB),TW=function(t){function n(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return e(n,t),n.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=Gc(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Qg,this._symbolType=t,this.add(o)},n.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){Ra(this.childAt(0))},n.prototype.downplay=function(){Na(this.childAt(0))},n.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},n.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?\\\"move\\\":n.cursor},n.prototype.updateData=function(t,e,i,r){this.silent=!1;var o=t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\",a=t.hostModel,s=n.getSymbolSize(t,e),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(e,\\\"symbolKeepAspect\\\");this._createSymbol(o,t,e,s,h)}else{var c=this.childAt(0);c.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?c.attr(p):As(c,p,a,e),Ns(c)}if(this._updateCommon(t,e,s,i,r),l){var c=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ks(c,p,a,e)}}u&&this.childAt(0).stopAnimation(\\\"leave\\\")},n.prototype._updateCommon=function(t,e,n,i,r){function o(e){return C?t.getName(e):Og(t,e)}var a,s,l,u,c,p,d,f,g,y=this.childAt(0),v=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,l=i.selectItemStyle,u=i.focus,c=i.blurScope,d=i.labelStatesModels,f=i.hoverScale,g=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(e),x=m.getModel(\\\"emphasis\\\");a=x.getModel(\\\"itemStyle\\\").getItemStyle(),l=m.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),s=m.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),u=x.get(\\\"focus\\\"),c=x.get(\\\"blurScope\\\"),p=x.get(\\\"disabled\\\"),d=cl(m),f=x.getShallow(\\\"scale\\\"),g=m.getShallow(\\\"cursor\\\")}var _=t.getItemVisual(e,\\\"symbolRotate\\\");y.attr(\\\"rotation\\\",(_||0)*Math.PI/180||0);var b=Hc(t.getItemVisual(e,\\\"symbolOffset\\\"),n);b&&(y.x=b[0],y.y=b[1]),g&&y.attr(\\\"cursor\\\",g);var w=t.getItemVisual(e,\\\"style\\\"),S=w.fill;if(y instanceof fR){var M=y.style;y.useStyle(h({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else y.useStyle(y.__isEmptyBrush?h({},w):w),y.style.decal=null,y.setColor(S,r&&r.symbolInnerColor),y.style.strokeNoScale=!0;var I=t.getItemVisual(e,\\\"liftZ\\\"),T=this._z2;null!=I?null==T&&(this._z2=y.z2,y.z2+=I):null!=T&&(y.z2=T,this._z2=null);var C=r&&r.useNameLabel;hl(y,d,{labelFetcher:v,labelDataIndex:e,defaultText:o,inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=y.ensureState(\\\"emphasis\\\");D.style=a,y.ensureState(\\\"select\\\").style=l,y.ensureState(\\\"blur\\\").style=s;var A=null==f||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*A,D.scaleY=this._sizeY*A,this.setSymbolScale(1),Qa(this,u,c,p)},n.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},n.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=TR(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ps(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ps(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},n.getSymbolSize=function(t,e){return Wc(t.getItemVisual(e,\\\"symbolSize\\\"))},n}(HP),CW=function(){function t(t){this.group=new HP,this._SymbolCtor=t||TW}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ey(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=ny(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add(function(i){var r=u(i);if(ty(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(h,c){var p=r.getItemGraphicEl(c),d=u(h);if(!ty(t,d,h,e))return void n.remove(p);var f=t.getItemVisual(h,\\\"symbol\\\")||\\\"circle\\\",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),p=new o(t,h,s,l),p.setPosition(d);else{p.updateData(t,h,s,l);var y={x:d[0],y:d[1]};a?p.attr(y):As(p,y,i)}n.add(p),t.setItemGraphicEl(h,p)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ny(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}this._progressiveEls=[],n=ey(n);for(var r=t.start;r0&&ly(n[2*r-2],n[2*r-1]);r--);for(;r>i&&ly(n[2*i],n[2*i+1]);i++);}for(;r>i;)i+=uy(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},n.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=JO.CMD,s=\\\"x\\\"===e,l=[],u=0;u=v&&v>=0){var m=s?(p-i)*v+i:(c-n)*v+n;return s?[t,m]:[m,t]}n=c,i=p;break;case a.C:c=o[u++],p=o[u++],d=o[u++],f=o[u++],g=o[u++],y=o[u++];var x=s?dn(n,c,d,g,t,l):dn(i,p,f,y,t,l);if(x>0)for(var _=0;x>_;_++){var b=l[_];if(1>=b&&b>=0){var m=s?cn(i,p,f,y,b):cn(n,c,d,g,b);return s?[t,m]:[m,t]}}n=g,i=y}}},n}(uR),PW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(kW),OW=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"ec-polygon\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new PW},n.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&ly(n[2*o-2],n[2*o-1]);o--);for(;o>r&&ly(n[2*r],n[2*r+1]);r++);}for(;o>r;){var s=uy(t,n,r,o,o,1,e.smooth,a,e.connectNulls);uy(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},n}(uR),RW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(){var t=new HP,e=new CW;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel(\\\"lineStyle\\\"),l=t.getModel(\\\"areaStyle\\\"),u=a.getLayout(\\\"points\\\")||[],h=\\\"polar\\\"===r.type,p=this._coordSys,d=this._symbolDraw,f=this._polyline,g=this._polygon,y=this._lineGroup,v=!e.ssr&&t.isAnimationEnabled(),m=!l.isEmpty(),x=l.get(\\\"origin\\\"),_=iy(r,a,x),b=m&&fy(r,a,_),w=t.get(\\\"showSymbol\\\"),S=t.get(\\\"connectNulls\\\"),M=w&&!h&&my(t,a,r),I=this._data;I&&I.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),I.setItemGraphicEl(e,null))}),w||d.remove(),o.add(y);var T,C=h?!1:t.get(\\\"step\\\");r&&r.getArea&&t.get(\\\"clip\\\",!0)&&(T=r.getArea(),null!=T.width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var D=vy(a,r,n)||a.getVisual(\\\"style\\\")[a.getVisual(\\\"drawType\\\")];if(f&&p.type===r.type&&C===this._step){m&&!g?g=this._newPolygon(u,b):g&&!m&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,ou(D));var A=y.getClipPath();if(A){var k=Iy(this,r,!1,t);ks(A,{shape:k.shape},t)}else y.setClipPath(Iy(this,r,!0,t));w&&d.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),hy(this._stackedOnPoints,b)&&hy(this._points,u)||(v?this._doUpdateAnimation(a,b,r,n,C,x,S):(C&&(u=gy(u,r,C,S),b&&(b=gy(b,r,C,S))),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:b})))}else w&&d.updateData(a,{isIgnore:M,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,T),C&&(u=gy(u,r,C,S),b&&(b=gy(b,r,C,S))),f=this._newPolyline(u),m?g=this._newPolygon(u,b):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,ou(D)),y.setClipPath(Iy(this,r,!0,t));var L=t.getModel(\\\"emphasis\\\"),P=L.get(\\\"focus\\\"),O=L.get(\\\"blurScope\\\"),R=L.get(\\\"disabled\\\");if(f.useStyle(c(s.getLineStyle(),{fill:\\\"none\\\",stroke:D,lineJoin:\\\"bevel\\\"})),es(f,t,\\\"lineStyle\\\"),f.style.lineWidth>0&&\\\"bolder\\\"===t.get([\\\"emphasis\\\",\\\"lineStyle\\\",\\\"width\\\"])){var N=f.getState(\\\"emphasis\\\").style;N.lineWidth=+f.style.lineWidth+1}TR(f).seriesIndex=t.seriesIndex,Qa(f,P,O,R);var E=dy(t.get(\\\"smooth\\\")),z=t.get(\\\"smoothMonotone\\\");if(f.setShape({smooth:E,smoothMonotone:z,connectNulls:S}),g){var B=a.getCalculationInfo(\\\"stackedOnSeries\\\"),V=0;g.useStyle(c(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:\\\"bevel\\\",decal:a.getVisual(\\\"style\\\").decal})),B&&(V=dy(B.get(\\\"smooth\\\"))),g.setShape({smooth:E,stackedOnSmooth:V,smoothMonotone:z,connectNulls:S}),es(g,t,\\\"areaStyle\\\"),TR(g).seriesIndex=t.seriesIndex,Qa(g,P,O,R)}var F=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=F)}),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=x,t.get(\\\"triggerLineEvent\\\")&&(this.packEventData(t,f),g&&this.packEventData(t,g))},n.prototype.packEventData=function(t,e){TR(e).eventData={componentType:\\\"series\\\",componentSubType:\\\"line\\\",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:\\\"line\\\"}},n.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=qr(r,i);if(this._changePolyState(\\\"emphasis\\\"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout(\\\"points\\\"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get(\\\"zlevel\\\")||0,c=t.get(\\\"z\\\")||0;s=new TW(r,o),s.x=l,s.y=u,s.setZ(h,c);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=c,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else cB.prototype.highlight.call(this,t,e,n,i)},n.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=qr(r,i);if(this._changePolyState(\\\"normal\\\"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else cB.prototype.downplay.call(this,t,e,n,i)},n.prototype._changePolyState=function(t){var e=this._polygon;Ia(this._polyline,t),e&&Ia(e,t)},n.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new LW({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},n.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new OW({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;\\\"cartesian2d\\\"===e.type?(i=o.isHorizontal(),r=!1):\\\"polar\\\"===e.type&&(i=\\\"angle\\\"===o.dim,r=!0);var s=t.hostModel,l=s.get(\\\"animationDuration\\\");I(l)&&(l=l(null));var u=s.get(\\\"animationDelay\\\")||0,h=I(u)?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var c=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(p=g.startAngle,d=g.endAngle,f=-y[1]/180*Math.PI):(p=g.r0,d=g.r,f=y[0])}else{var v=n;i?(p=v.x,d=v.x+v.width,f=t.x):(p=v.y+v.height,d=v.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=I(u)?u(o):l*m+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel(\\\"endLabel\\\");if(My(t)){var r=t.getData(),o=this._polyline,a=r.getLayout(\\\"points\\\");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new wR({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=by(a);l>=0&&(hl(o,cl(t,\\\"endLabel\\\"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Rg(r,n):Og(r,t)},enableTextSetter:!0},Ty(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){1>t&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout(\\\"points\\\"),h=n.hostModel,c=h.get(\\\"connectNulls\\\"),p=o.get(\\\"precision\\\"),d=o.get(\\\"distance\\\")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),_=(g?0:-d)*(y?-1:1),b=g?\\\"x\\\":\\\"y\\\",w=Sy(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var T=wy(u,S[0]);s.attr({x:T[0]+x,y:T[1]+_}),r&&(I=h.getRawValue(S[0]))}else{var T=l.getPointOn(m,b);T&&s.attr({x:T[0]+x,y:T[1]+_});var C=h.getRawValue(S[0]),D=h.getRawValue(S[1]);r&&(I=ro(n,p,C,D,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0,T=wy(u,A);r&&(I=h.getRawValue(A)),s.attr({x:T[0]+x,y:T[1]+_})}if(r){var k=rE(s);\\\"function\\\"==typeof k.setLabelText&&k.setLabelText(I)}}},n.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=sy(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),c=h.current,p=h.stackedOnCurrent,d=h.next,f=h.stackedOnNext;if(r&&(c=gy(h.current,n,r,a),p=gy(h.stackedOnCurrent,n,r,a),d=gy(h.next,n,r,a),f=gy(h.stackedOnNext,n,r,a)),py(c,d)>3e3||l&&py(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:d}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),As(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),As(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;m0){for(var s=r.getItemLayout(0),l=1;isNaN(s&&s.startAngle)&&l=i.r0}},n.type=\\\"pie\\\",n}(cB),FW=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),GW=Kr(),WW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FW(Lk(this.getData,this),Lk(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return By(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:S(xu,this)})},n.prototype.getDataParams=function(e){var n=this.getData(),i=GW(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension(\\\"value\\\"),function(t){o.push(t)}),r=i.seats=pr(o,n.hostModel.get(\\\"percentPrecision\\\"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push(\\\"percent\\\"),a},n.prototype._defaultLabelLine=function(t){kr(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},n.type=\\\"series.pie\\\",n.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\\\"},n}(sB);If(Fy);var HW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{useEncodeDefaulter:!0})},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get(\\\"progressive\\\"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get(\\\"progressiveThreshold\\\"):t},n.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},n.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:\\\"\\\"},n.type=\\\"series.scatter\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],n.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\\\"}},n}(sB),YW=4,XW=function(){function t(){}return t}(),UW=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.getDefaultShape=function(){return new XW},n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&u+o>=t&&h+a>=e)return s}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=e+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),jW=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=t.getData(),n=this._updateSymbolDraw(e,t);n.updateData(e,{clipShape:this._getClipShape(t)}),this._finished=!0},n.prototype.incrementalPrepareRender=function(t){var e=t.getData(),n=this._updateSymbolDraw(e,t);n.incrementalPrepareUpdate(e),this._finished=!1},n.prototype.incrementalRender=function(t,e){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},n.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=Cy(\\\"\\\").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},n.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)\\n},n.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get(\\\"clip\\\",!0)?n:null},n.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new ZW:new CW,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},n.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},n.prototype.dispose=function(){},n.type=\\\"scatter\\\",n}(cB),qW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.type=\\\"grid\\\",n.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\"],n.layoutMode=\\\"box\\\",n.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\\\"},n}(HE),KW=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"grid\\\",iO).models[0]},n.type=\\\"cartesian2dAxis\\\",n}(HE);f(KW,gG);var $W={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)\\\"]}}},JW=l({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:\\\"auto\\\"},axisLabel:{interval:\\\"auto\\\"}},$W),QW=l({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}}},$W),tH=l({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:\\\"bold\\\"}}},splitLine:{show:!1}},QW),eH=c({logBase:10},QW),nH={category:JW,value:QW,time:tH,log:eH},iH={value:1,category:1,time:1,log:1},rH=function(){function t(t){this.type=\\\"cartesian\\\",this._dimList=[],this._axes={},this.name=t||\\\"\\\"}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return v(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),x(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),oH=[\\\"x\\\",\\\"y\\\"],aH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=\\\"cartesian2d\\\",e.dimensions=oH,e}return e(n,t),n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis(\\\"x\\\").scale,e=this.getAxis(\\\"y\\\").scale;if(Hy(t)&&Hy(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=Xe([],p)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAxis(\\\"x\\\")},n.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]))},n.prototype.containData=function(t){return this.getAxis(\\\"x\\\").containData(t[0])&&this.getAxis(\\\"y\\\").containData(t[1])},n.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new dL(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},n.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ve(n,t,this._transform);var o=this.getAxis(\\\"x\\\"),a=this.getAxis(\\\"y\\\");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},n.prototype.clampData=function(t,e){var n=this.getAxis(\\\"x\\\").scale,i=this.getAxis(\\\"y\\\").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},n.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ve(n,t,this._invTransform);var i=this.getAxis(\\\"x\\\"),r=this.getAxis(\\\"y\\\");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},n.prototype.getOtherAxis=function(t){return this.getAxis(\\\"x\\\"===t.dim?\\\"y\\\":\\\"x\\\")},n.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]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new dL(n,i,r,o)},n}(rH),sH=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||\\\"value\\\",a.position=o||\\\"bottom\\\",a}return e(n,t),n.prototype.isHorizontal=function(){var t=this.position;return\\\"top\\\"===t||\\\"bottom\\\"===t},n.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},n.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[\\\"x\\\"===this.dim?0:1]),e)},n.prototype.setCategorySortInfo=function(t){return\\\"category\\\"!==this.type?!1:(this.model.option.categorySortInfo=t,void this.scale.setSortInfo(t))},n}(RG),lH=Math.log,uH=function(){function t(t,e,n){this.type=\\\"grid\\\",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=oH,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){function n(t){var e,n=b(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;Cd(u)&&l.get(\\\"alignTicks\\\")&&null==l.get(\\\"interval\\\")?r.push(s):(hf(u,l),Cd(u)&&(e=s))}r.length&&(e||(e=r.pop(),hf(e.scale,e.model)),y(r,function(t){Zy(t.scale,t.model,e.scale)}))}}var i=this._axesMap;this._updateScale(t,this.model),n(i.x),n(i.y);var r={};y(i.x,function(t){qy(i,\\\"y\\\",t,r)}),y(i.y,function(t){qy(i,\\\"x\\\",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){function i(){y(s,function(t){var e=t.isHorizontal(),n=e?[0,a.width]:[0,a.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),$y(t,e?a.x:a.y)})}var r=t.getBoxLayoutParams(),o=!n&&t.get(\\\"containLabel\\\"),a=uu(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;i(),o&&(y(s,function(t){if(!t.model.get([\\\"axisLabel\\\",\\\"inside\\\"])){var e=gf(t);if(e){var 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)}}}),i()),y(this._coordsList,function(t){t.calcAffineTransform()})},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];return null!=n?n[e||0]:void 0},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n=\\\"x\\\"+t+\\\"y\\\"+e;return this._coordsMap[n]}A(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i0?\\\"top\\\":\\\"bottom\\\",i=\\\"center\\\"):gr(o-hH)?(r=n>0?\\\"bottom\\\":\\\"top\\\",i=\\\"center\\\"):(r=\\\"middle\\\",i=o>0&&hH>o?n>0?\\\"right\\\":\\\"left\\\":n>0?\\\"left\\\":\\\"right\\\"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+\\\"Index\\\"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get(\\\"tooltip\\\");return t.get(\\\"silent\\\")||!(t.get(\\\"triggerEvent\\\")||e&&e.show)},t}(),pH={axisLine:function(t,e,n,i){var r=e.get([\\\"axisLine\\\",\\\"show\\\"]);if(\\\"auto\\\"===r&&t.handleAutoShown&&(r=t.handleAutoShown(\\\"axisLine\\\")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ve(s,s,a),ve(l,l,a));var c=h({lineCap:\\\"round\\\"},e.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]).getLineStyle()),p=new AN({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Ys(p.shape,p.style.lineWidth),p.anid=\\\"line\\\",n.add(p);var d=e.get([\\\"axisLine\\\",\\\"symbol\\\"]);if(null!=d){var f=e.get([\\\"axisLine\\\",\\\"symbolSize\\\"]);T(d)&&(d=[d,d]),(T(f)||D(f))&&(f=[f,f]);var g=Hc(e.get([\\\"axisLine\\\",\\\"symbolOffset\\\"])||0,f),v=f[0],m=f[1];y([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if(\\\"none\\\"!==d[i]&&null!=d[i]){var r=Gc(d[i],-v/2,-m/2,v,m,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=rv(n,i,e,t),o=av(n,i,e,t);if(Qy(e,o,r),ov(n,i,e,t.tickDirection),e.get([\\\"axisLabel\\\",\\\"hideOverlap\\\"])){var a=fg(v(o,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}));mg(a)}},axisName:function(t,e,n,i){var r=z(t.axisName,e.get(\\\"name\\\"));if(r){var o,a=e.get(\\\"nameLocation\\\"),s=t.nameDirection,l=e.getModel(\\\"nameTextStyle\\\"),u=e.get(\\\"nameGap\\\")||0,h=e.axis.getExtent(),c=h[0]>h[1]?-1:1,p=[\\\"start\\\"===a?h[0]-c*u:\\\"end\\\"===a?h[1]+c*u:(h[0]+h[1])/2,nv(a)?t.labelOffset+s*u:0],d=e.get(\\\"nameRotate\\\");null!=d&&(d=d*hH/180);var f;nv(a)?o=cH.innerTextLayout(t.rotation,null!=d?d:t.rotation,s):(o=Jy(t.rotation,a,d||0,h),f=t.axisNameAvailableWidth,null!=f&&(f=Math.abs(f/Math.sin(o.rotation)),!isFinite(f)&&(f=null)));var g=l.getFont(),y=e.get(\\\"nameTruncate\\\",!0)||{},v=y.ellipsis,m=z(t.nameTruncateMaxWidth,y.maxWidth,f),x=new wR({x:p[0],y:p[1],rotation:o.rotation,silent:cH.isLabelSilent(e),style:pl(l,{text:r,font:g,overflow:\\\"truncate\\\",width:m,ellipsis:v,fill:l.getTextColor()||e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),align:l.get(\\\"align\\\")||o.textAlign,verticalAlign:l.get(\\\"verticalAlign\\\")||o.textVerticalAlign}),z2:1});if(ol({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid=\\\"name\\\",e.get(\\\"triggerEvent\\\")){var _=cH.makeAxisEventDataBase(e);_.targetType=\\\"axisName\\\",_.name=r,TR(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}},dH={},fH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(e,n,i){this.axisPointerClass&&dv(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},n.prototype.updateAxisPointer=function(t,e,n){this._doUpdateAxisPointerClass(t,n,!1)},n.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},n.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(t,e,i){var r=n.getAxisPointerClass(this.axisPointerClass);if(r){var o=gv(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,e,i):this._disposeAxisPointer(e)}},n.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},n.registerAxisPointerClass=function(t,e){dH[t]=e},n.getAxisPointerClass=function(t){return t&&dH[t]},n.type=\\\"axis\\\",n}(lB),gH=Kr(),yH=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],vH=[\\\"splitArea\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\"],mH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass=\\\"CartesianAxisPointer\\\",e}return e(n,t),n.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new HP,this.group.add(this._axisGroup),e.get(\\\"show\\\")){var a=e.getCoordSysModel(),s=Yy(a,e),l=new cH(e,h({handleAutoShown:function(){for(var t=a.coordinateSystem.getCartesians(),n=0;no;o++){var a=Gc(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/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(),r.add(a)}wv(r,t)},n.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=[\\\"symbolType\\\",\\\"period\\\",\\\"rippleScale\\\",\\\"rippleNumber\\\"],r=0;r0?BH:VH)}function i(t,e){return e.get(0===t?zH:t>0?NH:EH)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,\\\"style\\\");h(l,s)}}}}}},GH={seriesType:\\\"candlestick\\\",plan:pc(),reset:function(t){function e(t,e){function n(t,e){var n=[];return n[a]=e,n[s]=t,isNaN(e)||isNaN(t)?[0/0,0/0]:i.dataToPoint(n)}function r(t,e,n){var i=e.slice(),r=e.slice();i[a]=JN(i[a]+o/2,1,!1),r[a]=JN(r[a]-o/2,1,!0),n?t.push(i,r):t.push(r,i)}function l(t,e,i){var r=n(t,i),l=n(e,i);return r[a]-=o/2,l[a]-=o/2,{x:r[0],y:r[1],width:s?o:l[0]-r[0],height:s?l[1]-r[1]:o}}function h(t){return t[a]=JN(t[a],1),t}for(var g,y=e.getStore();null!=(g=t.next());){var v=y.get(u,g),m=y.get(c,g),x=y.get(p,g),_=y.get(d,g),b=y.get(f,g),w=Math.min(m,x),S=Math.max(m,x),M=n(w,v),I=n(S,v),T=n(_,v),C=n(b,v),D=[];r(D,I,0),r(D,M,1),D.push(h(C),h(I),h(T),h(M));var A=e.getItemModel(g),k=!!A.get([\\\"itemStyle\\\",\\\"borderColorDoji\\\"]);e.setItemLayout(g,{sign:Lv(y,g,m,x,p,k),initBaseline:m>x?I[s]:M[s],ends:D,brushRect:l(_,b,v)})}}function n(e,n){for(var r,o,l=Ed(4*e.count),h=0,g=[],y=[],v=n.getStore(),m=!!t.get([\\\"itemStyle\\\",\\\"borderColorDoji\\\"]);null!=(o=e.next());){var x=v.get(u,o),_=v.get(c,o),b=v.get(p,o),w=v.get(d,o),S=v.get(f,o);isNaN(x)||isNaN(w)||isNaN(S)?(l[h++]=0/0,h+=3):(l[h++]=Lv(v,o,_,b,p,m),g[a]=x,g[s]=w,r=i.dataToPoint(g,null,y),l[h++]=r?r[0]:0/0,l[h++]=r?r[1]:0/0,g[s]=S,r=i.dataToPoint(g,null,y),l[h++]=r?r[1]:0/0)}n.setLayout(\\\"largePoints\\\",l)}var i=t.coordinateSystem,r=t.getData(),o=Pv(t,r),a=0,s=1,l=[\\\"x\\\",\\\"y\\\"],u=r.getDimensionIndex(r.mapDimension(l[a])),h=v(r.mapDimensionsAll(l[s]),r.getDimensionIndex,r),c=h[0],p=h[1],d=h[2],f=h[3];return r.setLayout({candleWidth:o,isSimpleBox:1.3>=o}),0>u||h.length<4?void 0:{progress:t.pipelineContext.large?n:e}}};If(Ov);var WH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){function e(t,e){var n=t.getItemVisual(e,\\\"symbol\\\")||\\\"circle\\\";if(\\\"none\\\"!==n){var i=Wc(t.getItemVisual(e,\\\"symbolSize\\\")),r=Gc(n,-1,-1,2,2),o=t.getItemVisual(e,\\\"symbolRotate\\\")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function n(n,i,r,o,a,s){r.removeAll();for(var l=0;lr;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},n.type=\\\"series.radar\\\",n.dependencies=[\\\"radar\\\"],n.defaultOption={z:2,colorBy:\\\"data\\\",coordinateSystem:\\\"radar\\\",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:\\\"solid\\\",join:\\\"round\\\"},label:{position:\\\"top\\\"},symbolSize:8},n}(sB),YH=nH.value,XH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){var t=this.get(\\\"boundaryGap\\\"),e=this.get(\\\"splitNumber\\\"),n=this.get(\\\"scale\\\"),i=this.get(\\\"axisLine\\\"),r=this.get(\\\"axisTick\\\"),o=this.get(\\\"axisLabel\\\"),a=this.get(\\\"axisName\\\"),u=this.get([\\\"axisName\\\",\\\"show\\\"]),h=this.get([\\\"axisName\\\",\\\"formatter\\\"]),p=this.get(\\\"axisNameGap\\\"),d=this.get(\\\"triggerEvent\\\"),g=v(this.get(\\\"indicator\\\")||[],function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var y=a;null!=g.color&&(y=c({color:g.color},a));var v=l(s(g),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:g.text,showName:u,nameLocation:\\\"end\\\",nameGap:p,nameTextStyle:y,triggerEvent:d},!1);if(T(h)){var m=v.name;v.name=h.replace(\\\"{value}\\\",null!=m?m:\\\"\\\")}else I(h)&&(v.name=h(v.name,v));var x=new gE(v,null,this.ecModel);return f(x,gG.prototype),x.mainType=\\\"radar\\\",x.componentIndex=this.componentIndex,x},this);this._indicatorModels=g},n.prototype.getIndicatorModels=function(){return this._indicatorModels},n.type=\\\"radar\\\",n.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:l({lineStyle:{color:\\\"#bbb\\\"}},YH.axisLine),axisLabel:Bv(YH.axisLabel,!1),axisTick:Bv(YH.axisTick,!1),splitLine:Bv(YH.splitLine,!0),splitArea:Bv(YH.splitArea,!0),indicator:[]},n}(HE),UH=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],ZH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=this.group;e.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},n.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=v(n,function(t){var n=t.model.get(\\\"showName\\\")?t.name:\\\"\\\",i=new cH(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i});y(i,function(t){y(UH,t.add,t),this.group.add(t.getGroup())},this)},n.prototype._buildSplitLineAndArea=function(t){function e(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}var n=t.coordinateSystem,i=n.getIndicatorAxes();if(i.length){var r=t.get(\\\"shape\\\"),o=t.getModel(\\\"splitLine\\\"),a=t.getModel(\\\"splitArea\\\"),s=o.getModel(\\\"lineStyle\\\"),l=a.getModel(\\\"areaStyle\\\"),u=o.get(\\\"show\\\"),h=a.get(\\\"show\\\"),p=s.get(\\\"color\\\"),d=l.get(\\\"color\\\"),f=M(p)?p:[p],g=M(d)?d:[d],m=[],x=[];if(\\\"circle\\\"===r)for(var _=i[0].getTicksCoords(),b=n.cx,w=n.cy,S=0;S<_.length;S++){if(u){var I=e(m,f,S);m[I].push(new oN({shape:{cx:b,cy:w,r:_[S].coord}}))}if(h&&S<_.length-1){var I=e(x,g,S);x[I].push(new wN({shape:{cx:b,cy:w,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,C=v(i,function(t,e){var i=t.getTicksCoords();return T=null==T?i.length-1:Math.min(i.length-1,T),v(i,function(t){return n.coordToPoint(t.coord,e)})}),D=[],S=0;T>=S;S++){for(var A=[],k=0;kh&&(r=u,s=l,a=h)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get(\\\"center\\\"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=or(n[0],i),this.cy=or(n[1],r),this.startAngle=t.get(\\\"startAngle\\\")*Math.PI/180;var a=t.get(\\\"radius\\\");(T(a)||D(a))&&(a=[0,a]),this.r0=or(a[0],o),this.r=or(a[1],o),y(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)},t.prototype.update=function(t){var e=this._indicatorAxes,n=this._model;y(e,function(t){t.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType(\\\"radar\\\",function(i){if(\\\"radar\\\"===i.get(\\\"coordinateSystem\\\")&&t.getComponent(\\\"radar\\\",i.get(\\\"radarIndex\\\"))===n){var r=i.getData();y(e,function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))})}},this);var i=n.get(\\\"splitNumber\\\"),r=new KF;r.setExtent(0,i),r.setInterval(1),y(e,function(t){Zy(t.scale,t.model,r)})},t.prototype.convertToPixel=function(){return console.warn(\\\"Not implemented.\\\"),null},t.prototype.convertFromPixel=function(){return console.warn(\\\"Not implemented.\\\"),null},t.prototype.containPoint=function(){return console.warn(\\\"Not implemented.\\\"),!1},t.create=function(e,n){var i=[];return e.eachComponent(\\\"radar\\\",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType(\\\"radar\\\",function(t){\\\"radar\\\"===t.get(\\\"coordinateSystem\\\")&&(t.coordinateSystem=i[t.get(\\\"radarIndex\\\")||0])}),i},t.dimensions=[],t}();If(Fv);var KH=256,$H=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=vk.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,\\\"inRange\\\"),l=this._getGradient(r,\\\"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;p>d;++d){var f=t[d],g=f[0],y=f[1],v=f[2],m=i(v);c.globalAlpha=m,c.drawImage(a,g-u,y-u)}if(!h.width||!h.height)return h;for(var x=c.getImageData(0,0,h.width,h.height),_=x.data,b=0,w=_.length,S=this.minOpacity,M=this.maxOpacity,I=M-S;w>b;){var m=_[b+3]/256,T=4*Math.floor(m*(KH-1));if(m>0){var C=o(m)?s:l;m>0&&(m=m*I+S),_[b++]=C[T],_[b++]=C[T+1],_[b++]=C[T+2],_[b++]=C[T+3]*m*256}else b+=4}return c.putImageData(x,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=vk.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=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},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;256>a;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),JH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i;e.eachComponent(\\\"visualMap\\\",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;\\\"cartesian2d\\\"===r.type||\\\"calendar\\\"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):Hv(r)&&this._renderOnGeo(r,t,i,n)},n.prototype.incrementalPrepareRender=function(){this.group.removeAll()},n.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(Hv(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},n.prototype.eachRendered=function(t){sl(this._progressiveEls||this.group,t)},n.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=Pg(u,\\\"cartesian2d\\\");if(h){var c=u.getAxis(\\\"x\\\"),p=u.getAxis(\\\"y\\\");o=c.getBandWidth()+.5,a=p.getBandWidth()+.5,s=c.scale.getExtent(),l=p.scale.getExtent()}for(var d=this.group,f=t.getData(),g=t.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]).getItemStyle(),y=t.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),v=t.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),m=t.get([\\\"itemStyle\\\",\\\"borderRadius\\\"]),x=cl(t),_=t.getModel(\\\"emphasis\\\"),b=_.get(\\\"focus\\\"),w=_.get(\\\"blurScope\\\"),S=_.get(\\\"disabled\\\"),M=h?[f.mapDimension(\\\"x\\\"),f.mapDimension(\\\"y\\\"),f.mapDimension(\\\"value\\\")]:[f.mapDimension(\\\"time\\\"),f.mapDimension(\\\"value\\\")],I=n;i>I;I++){var T=void 0,C=f.getItemVisual(I,\\\"style\\\");if(h){var D=f.get(M[0],I),A=f.get(M[1],I);if(isNaN(f.get(M[2],I))||isNaN(D)||isNaN(A)||Ds[1]||Al[1])continue;var k=u.dataToPoint([D,A]);T=new mR({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(M[1],I)))continue;T=new mR({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel(\\\"emphasis\\\");g=P.getModel(\\\"itemStyle\\\").getItemStyle(),y=L.getModel([\\\"blur\\\",\\\"itemStyle\\\"]).getItemStyle(),v=L.getModel([\\\"select\\\",\\\"itemStyle\\\"]).getItemStyle(),m=L.get([\\\"itemStyle\\\",\\\"borderRadius\\\"]),b=P.get(\\\"focus\\\"),w=P.get(\\\"blurScope\\\"),S=P.get(\\\"disabled\\\"),x=cl(L)}T.shape.r=m;var O=t.getRawValue(I),R=\\\"-\\\";O&&null!=O[2]&&(R=O[2]+\\\"\\\"),hl(T,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:C.opacity,defaultText:R}),T.ensureState(\\\"emphasis\\\").style=g,T.ensureState(\\\"blur\\\").style=y,T.ensureState(\\\"select\\\").style=v,Qa(T,b,w,S),T.incremental=r,r&&(T.states.emphasis.hoverLayer=!0),d.add(T),f.setItemGraphicEl(I,T),this._progressiveEls&&this._progressiveEls.push(T)}},n.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new $H;s.blurSize=e.get(\\\"blurSize\\\"),s.pointSize=e.get(\\\"pointSize\\\"),s.minOpacity=e.get(\\\"minOpacity\\\"),s.maxOpacity=e.get(\\\"maxOpacity\\\");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var h=Math.max(l.x,0),c=Math.max(l.y,0),p=Math.min(l.width+l.x,i.getWidth()),d=Math.min(l.height+l.y,i.getHeight()),f=p-h,g=d-c,y=[a.mapDimension(\\\"lng\\\"),a.mapDimension(\\\"lat\\\"),a.mapDimension(\\\"value\\\")],v=a.mapArray(y,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r}),m=n.getExtent(),x=\\\"visualMap.continuous\\\"===n.type?Wv(m,n.option.range):Gv(m,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},x);var _=new fR({style:{width:f,height:g,x:h,y:c,image:s.canvas},silent:!0});this.group.add(_)},n.type=\\\"heatmap\\\",n}(cB),QH=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(){return Sd(null,this,{generateCoord:\\\"value\\\"})},n.prototype.preventIncremental=function(){var t=wz.get(this.get(\\\"coordinateSystem\\\"));return t&&t.dimensions?\\\"lng\\\"===t.dimensions[0]&&\\\"lat\\\"===t.dimensions[1]:void 0},n.type=\\\"series.heatmap\\\",n.dependencies=[\\\"grid\\\",\\\"geo\\\",\\\"calendar\\\"],n.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:\\\"#212121\\\"}}},n}(sB);If(Yv);var tY=ve,eY=function(t){function n(e){var n=t.call(this)||this;return n.type=\\\"view\\\",n.dimensions=[\\\"x\\\",\\\"y\\\"],n._roamTransformable=new RP,n._rawTransformable=new RP,n.name=e,n}return e(n,t),n.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new dL(t,e,n,i),this._rect},n.prototype.getBoundingRect=function(){return this._rect},n.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new dL(t,e,n,i)},n.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new dL(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},n.prototype.setCenter=function(t,e){t&&(this._center=[or(t[0],e.getWidth()),or(t[1],e.getHeight())],this._updateCenterAndZoom())},n.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()},n.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},n.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},n.prototype.getZoom=function(){return this._zoom||1},n.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},n.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=ve([],i,t),n=ve([],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=r,this._updateTransform()},n.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Fe(this.transform||(this.transform=[]),e.transform||Be()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Xe(this.invTransform,this.transform),this.decomposeTransform()},n.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new RP;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}}},n.prototype.getViewRect=function(){return this._viewRect},n.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},n.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?tY(n,t,i):te(n,t)},n.prototype.pointToData=function(t){var e=this.invTransform;return e?tY([],t,e):[t[0],t[1]]},n.prototype.convertToPixel=function(t,e,n){var i=rm(e);return i===this?i.dataToPoint(n):null},n.prototype.convertFromPixel=function(t,e,n){var i=rm(e);return i===this?i.pointToData(n):null},n.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},n.dimensions=[\\\"x\\\",\\\"y\\\"],n}(RP),nY=\\\"\\\\x00_ec_interaction_mutex\\\";Yp({type:\\\"takeGlobalCursor\\\",event:\\\"globalCursorTaken\\\",update:\\\"update\\\"},J);var iY=function(t){function n(e){var n=t.call(this)||this;n._zr=e;var i=Lk(n._mousedownHandler,n),r=Lk(n._mousemoveHandler,n),o=Lk(n._mouseupHandler,n),a=Lk(n._mousewheelHandler,n),l=Lk(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=c(s(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(t===!0||\\\"move\\\"===t||\\\"pan\\\"===t)&&(e.on(\\\"mousedown\\\",i),e.on(\\\"mousemove\\\",r),e.on(\\\"mouseup\\\",o)),(t===!0||\\\"scale\\\"===t||\\\"zoom\\\"===t)&&(e.on(\\\"mousewheel\\\",a),e.on(\\\"pinch\\\",l))},n.disable=function(){e.off(\\\"mousedown\\\",i),e.off(\\\"mousemove\\\",r),e.off(\\\"mouseup\\\",o),e.off(\\\"mousewheel\\\",a),e.off(\\\"pinch\\\",l)},n}return e(n,t),n.prototype.isDragging=function(){return this._dragging},n.prototype.isPinching=function(){return this._pinching},n.prototype.setPointerChecker=function(t){this.pointerChecker=t},n.prototype.dispose=function(){this.disable()},n.prototype._mousedownHandler=function(t){if(!Ne(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},n.prototype._mousemoveHandler=function(t){if(this._dragging&&dm(\\\"moveOnMouseMove\\\",t,this._opt)&&\\\"pinch\\\"!==t.gestureEvent&&!um(this._zr,\\\"globalPan\\\")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&tL(t.event),pm(this,\\\"pan\\\",\\\"moveOnMouseMove\\\",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},n.prototype._mouseupHandler=function(t){Ne(t)||(this._dragging=!1)},n.prototype._mousewheelHandler=function(t){var e=dm(\\\"zoomOnMouseWheel\\\",t,this._opt),n=dm(\\\"moveOnMouseWheel\\\",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;cm(this,\\\"zoom\\\",\\\"zoomOnMouseWheel\\\",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),h=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);cm(this,\\\"scrollMove\\\",\\\"moveOnMouseWheel\\\",t,{scrollDelta:h,originX:o,originY:a,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(t){if(!um(this._zr,\\\"globalPan\\\")){var e=t.pinchScale>1?1.1:1/1.1;cm(this,\\\"zoom\\\",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},n}(Xk),rY={axisPointer:1,tooltip:1,brush:1},oY=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),aY=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new oY},n.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l=\\\"TB\\\"===s||\\\"BT\\\"===s?0:1,u=1-l,h=or(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var p=1;i-1>p;p++){var d=n[p];t.moveTo(d[0],d[1]),c[l]=d[l],t.lineTo(c[0],c[1])}},n}(uR),sY=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._mainGroup=new HP,e}return e(n,t),n.prototype.init=function(t,e){this._controller=new iY(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},n.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup,a=t.get(\\\"layout\\\");\\\"radial\\\"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add(function(e){gm(i,e)&&ym(i,e,null,o,t)}).update(function(e,n){var r=s.getItemGraphicEl(n);return gm(i,e)?void ym(i,e,r,o,t):void(r&&_m(s,n,r,o,t))}).remove(function(e){var n=s.getItemGraphicEl(e);n&&_m(s,e,n,o,t)}).execute(),this._nodeScaleRatio=t.get(\\\"nodeScaleRatio\\\"),this._updateNodeAndLinkScale(t),t.get(\\\"expandAndCollapse\\\")===!0&&i.eachItemGraphicEl(function(e,i){e.off(\\\"click\\\").on(\\\"click\\\",function(){n.dispatchAction({type:\\\"treeExpandAndCollapse\\\",seriesId:t.id,dataIndex:i})})}),this._data=i},n.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each(function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])});var r=[],o=[];Po(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new eY;l.zoomLimit=t.get(\\\"scaleLimit\\\"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get(\\\"center\\\"),e),l.setZoom(t.get(\\\"zoom\\\")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},n.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fm(e,n,t)}),r.enable(t.get(\\\"roam\\\")),o.zoomLimit=t.get(\\\"scaleLimit\\\"),o.zoom=t.coordinateSystem.getZoom(),r.off(\\\"pan\\\").off(\\\"zoom\\\").on(\\\"pan\\\",function(e){om(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:\\\"treeRoam\\\",dx:e.dx,dy:e.dy})}).on(\\\"zoom\\\",function(e){am(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:\\\"treeRoam\\\",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()})},n.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t){t.setSymbolScale(n)})},n.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if(\\\"view\\\"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,r=e.getZoom(),o=(r-1)*n+1;return o/i},n.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},n.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},n.type=\\\"tree\\\",n}(cB),lY=Kr(),uY=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||\\\"\\\",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){I(t)&&(n=e,e=t,t=null),t=t||{},T(t)&&(t={order:t});var i,r=t.order||\\\"preorder\\\",o=this[t.attr||\\\"children\\\"];\\\"preorder\\\"===r&&(i=e.call(n,this));for(var a=0;!i&&ae&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;i>e;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;i>e;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||\\\"value\\\"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;en;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();i>n;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){function r(t,e){var n=t.value;s=Math.max(s,M(n)?n.length:1),a.push(t);var i=new uY(Wr(t.name,\\\"\\\"),o);e?Lm(i,e):o.root=i,o._nodes.push(i);var l=t.children;if(l)for(var u=0;ua&&(a=t.depth)});var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;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<=l}),o.data},n.prototype.getOrient=function(){var t=this.get(\\\"orient\\\");return\\\"horizontal\\\"===t?t=\\\"LR\\\":\\\"vertical\\\"===t&&(t=\\\"TB\\\"),t},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.formatTooltip=function(t){for(var e=this.getData().tree,n=e.root.children[0],i=e.getNodeByDataIndex(t),r=i.getValue(),o=i.name;i&&i!==n;)o=i.parentNode.name+\\\".\\\"+o,i=i.parentNode;return Fh(\\\"nameValue\\\",{name:o,value:r,noValue:isNaN(r)||null==r})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Nm(i,this),n.collapsed=!i.isExpand,n},n.type=\\\"series.tree\\\",n.layoutMode=\\\"box\\\",n.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},n}(sB);If(Ym);var pY=[\\\"treemapZoomToNode\\\",\\\"treemapRender\\\",\\\"treemapMove\\\"],dY=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.preventUsingHoverLayer=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){function n(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=l.getNodeByDataIndex(e),i=n?s[n.depth]:null;return t.parentModel=i||a,t})}var i={name:t.name,children:t.data};Zm(i);var r=t.levels||[],o=this.designatedVisualItemStyle={},a=new gE({itemStyle:o},this,e);r=t.levels=jm(r,e);var s=v(r||[],function(t){return new gE(t,a,e)},this),l=hY.createTree(i,this,n);return l.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),i=e.getName(t);return Fh(\\\"nameValue\\\",{name:i,value:n})},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Nm(i,this),n.treePathInfo=n.treeAncestors,n},n.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},h(this.layoutInfo,t)},n.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Z(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},n.prototype.getViewRoot=function(){return this._viewRoot},n.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)},n.prototype.enableAriaDecal=function(){Um(this)},n.type=\\\"series.treemap\\\",n.layoutMode=\\\"box\\\",n.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\\\"}},emphasis:{itemStyle:{color:\\\"rgba(0,0,0,0.9)\\\"}}},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:[]},n}(sB),fY=8,gY=8,yY=5,vY=function(){function t(t){this.group=new HP,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel(\\\"breadcrumb\\\"),o=this.group;if(o.removeAll(),r.get(\\\"show\\\")&&n){var a=r.getModel(\\\"itemStyle\\\"),s=r.getModel(\\\"emphasis\\\"),l=a.getModel(\\\"textStyle\\\"),u=s.getModel([\\\"itemStyle\\\",\\\"textStyle\\\"]),h={pos:{left:r.get(\\\"left\\\"),right:r.get(\\\"right\\\"),top:r.get(\\\"top\\\"),bottom:r.get(\\\"bottom\\\")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get(\\\"emptyItemWidth\\\"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,s,l,u,i),hu(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Wr(i.getModel().get(\\\"name\\\"),\\\"\\\"),o=n.getTextRect(r),a=Math.max(o.width+2*fY,e.emptyItemWidth);e.totalWidth+=a+gY,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get([\\\"breadcrumb\\\",\\\"height\\\"]),h=lu(e.pos,e.box),p=e.totalWidth,d=e.renderList,f=i.getModel(\\\"itemStyle\\\").getItemStyle(),g=d.length-1;g>=0;g--){var y=d[g],v=y.node,m=y.width,x=y.text;p>h.width&&(p-=m-l,m=l,x=null);var _=new MN({shape:{points:qm(s,0,m,u,g===d.length-1,0===g)},style:c(n.getItemStyle(),{lineJoin:\\\"bevel\\\"}),textContent:new wR({style:pl(r,{text:x})}),textConfig:{position:\\\"inside\\\"},z2:1e4*zR,onclick:S(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState(\\\"emphasis\\\").style=pl(o,{text:x}),_.ensureState(\\\"emphasis\\\").style=f,Qa(_,i.get(\\\"focus\\\"),i.get(\\\"blurScope\\\"),i.get(\\\"disabled\\\")),this.group.add(_),Km(_,t,v),s+=m+gY}},t.prototype.remove=function(){this.group.removeAll()},t}(),mY=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,0>=e&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;r>i;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}(),xY=HP,_Y=mR,bY=3,wY=\\\"label\\\",SY=\\\"upperLabel\\\",MY=10*zR,IY=2*zR,TY=3*zR,CY=yo([[\\\"fill\\\",\\\"color\\\"],[\\\"stroke\\\",\\\"strokeColor\\\"],[\\\"lineWidth\\\",\\\"strokeWidth\\\"],[\\\"shadowBlur\\\"],[\\\"shadowOffsetX\\\"],[\\\"shadowOffsetY\\\"],[\\\"shadowColor\\\"]]),DY=function(t){var e=CY(t);\\nreturn e.stroke=e.fill=e.lineWidth=null,e},AY=Kr(),kY=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._state=\\\"ready\\\",e._storage=Jm(),e}return e(n,t),n.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:\\\"series\\\",subType:\\\"treemap\\\",query:i});if(!(p(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],a=Pm(i,o,t),s=i&&i.type,l=t.layoutInfo,u=!this._oldTree,h=this._storage,c=\\\"treemapRootToNode\\\"===s&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),f=t.get(\\\"animation\\\"),g=this._doRender(d,t,c);!f||u||s&&\\\"treemapZoomToNode\\\"!==s&&\\\"treemapRootToNode\\\"!==s?g.renderFinally():this._doAnimation(d,g,t,c),this._resetController(n),this._renderBreadcrumb(t,n,a)}},n.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new xY,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},n.prototype._doRender=function(t,e,n){function i(t,i,r,o){return Qm(e,h,c,n,u,p,t,i,r,o)}function r(t,e,n,o,a){function s(t){return t.getId()}function l(s,l){var u=null!=s?t[s]:null,h=null!=l?e[l]:null,c=i(u,h,n,a);c&&r(u&&u.viewChildren||[],h&&h.viewChildren||[],c,o,a+1)}o?(e=t,y(t,function(t,e){!t.isRemoved()&&l(e,e)})):new AF(e,t,s,s).add(l).update(l).remove(S(l,null)).execute()}function o(t){var e=Jm();return t&&y(t,function(t,n){var i=e[n];y(t,function(t){t&&(i.push(t),AY(t).willDelete=!0)})}),e}function a(){y(d,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(p,function(t){t.invisible=!0,t.dirty()})}var s=e.getData().tree,l=this._oldTree,u=Jm(),h=Jm(),c=this._storage,p=[];r(s.root?[s.root]:[],l&&l.root?[l.root]:[],t,s===l||!l,0);var d=o(c);return this._oldTree=s,this._storage=h,{lastsForAnimation:u,willDeleteEls:d,renderFinally:a}},n.prototype._doAnimation=function(t,e,n,i){var r=n.get(\\\"animationDurationUpdate\\\"),o=n.get(\\\"animationEasing\\\"),a=(I(r)?0:r)||0,s=(I(o)?null:o)||\\\"cubicOut\\\",l=$m();y(e.willDeleteEls,function(t,e){y(t,function(t){if(!t.invisible){var n,r=t.parent,o=AY(r);if(i&&\\\"drillDown\\\"===i.direction)n=r===i.rootNodeGroup?{shape:{x:0,y:0,width:o.nodeWidth,height:o.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;o.willDelete||(u=o.nodeWidth/2,h=o.nodeHeight/2),n=\\\"nodeGroup\\\"===e?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}n&&l.add(t,n,a,0,s)}})}),y(this._storage,function(t,n){y(t,function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof HP?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=h({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle(\\\"opacity\\\",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))})},this),this._state=\\\"animating\\\",l.finished(Lk(function(){this._state=\\\"ready\\\",e.renderFinally()},this)).start()},n.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new iY(t.getZr()),e.enable(this.seriesModel.get(\\\"roam\\\")),e.on(\\\"pan\\\",Lk(this._onPan,this)),e.on(\\\"zoom\\\",Lk(this._onZoom,this)));var n=new dL(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,i){return n.contain(e,i)})},n.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},n.prototype._onPan=function(t){if(\\\"animating\\\"!==this._state&&(Math.abs(t.dx)>bY||Math.abs(t.dy)>bY)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:\\\"treemapMove\\\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},n.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if(\\\"animating\\\"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new dL(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=Be();We(s,s,[-e,-n]),Ye(s,s,[t.scale,t.scale]),We(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:\\\"treemapRender\\\",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},n.prototype._initEvents=function(t){var e=this;t.on(\\\"click\\\",function(t){if(\\\"ready\\\"===e._state){var n=e.seriesModel.get(\\\"nodeClick\\\",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if(\\\"zoomToNode\\\"===n)e._zoomToNode(i);else if(\\\"link\\\"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get(\\\"link\\\",!0),s=o.get(\\\"target\\\",!0)||\\\"blank\\\";a&&au(a,s)}}}}},this)},n.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get(\\\"leafDepth\\\",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vY(this.group))).render(t,e,n.node,function(e){\\\"animating\\\"!==i._state&&(Rm(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},n.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Jm(),this._state=\\\"ready\\\",this._breadcrumb&&this._breadcrumb.remove()},n.prototype.dispose=function(){this._clearController()},n.prototype._zoomToNode=function(t){this.api.dispatchAction({type:\\\"treemapZoomToNode\\\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype._rootToNode=function(t){this.api.dispatchAction({type:\\\"treemapRootToNode\\\",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},n.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:\\\"viewChildren\\\",order:\\\"preorder\\\"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},n.type=\\\"treemap\\\",n}(cB),LY=y,PY=A,OY=-1,RY=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=s(e);this.type=i,this.mappingMethod=n,this._normalizeData=NY[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],\\\"piecewise\\\"===n?(ix(r),ex(r)):\\\"category\\\"===n?r.categories?nx(r):ix(r,!0):(W(\\\"linear\\\"!==n||r.dataExtent),ix(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return Lk(this._normalizeData,this)},t.listVisualTypes=function(){return b(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){A(t)?y(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=M(e)?[]:A(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&LY(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(M(t))t=t.slice();else{if(!PY(t))return[];var e=[];LY(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return\\\"color\\\"===e&&\\\"color\\\"!==t&&0===t.indexOf(\\\"color\\\")?1:-1}),t},t.dependsOn=function(t,e){return\\\"color\\\"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){function i(e,n){var i=Math.abs(e-t);o>i&&(o=i,r=n)}for(var r,o=1/0,a=0,s=e.length;s>a;a++){var l=e[a].value;if(null!=l){if(l===t||T(l)&&l===t+\\\"\\\")return a;n&&i(l,a)}}for(var a=0,s=e.length;s>a;a++){var u=e[a],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if(px(c[1],t,h[1]))return a}else if(1/0===h[1]){if(px(c[0],h[0],t))return a}else if(px(c[0],h[0],t)&&px(c[1],t,h[1]))return a;n&&i(h[0],a),n&&i(h[1],a)}}return n?1/0===t?e.length-1:t===-1/0?0:r:void 0},t.visualHandlers={color:{applyVisual:ax(\\\"color\\\"),getColorMapper:function(){var t=this.option;return Lk(\\\"category\\\"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),sx.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Gn(e,t.parsedVisual,i),r?i:Xn(i,\\\"rgba\\\")},this)},_normalizedToVisual:{linear:function(t){return Xn(Gn(t,this.option.parsedVisual),\\\"rgba\\\")},category:sx,piecewise:function(t,e){var n=hx.call(this,e);return null==n&&(n=Xn(Gn(t,this.option.parsedVisual),\\\"rgba\\\")),n},fixed:lx}},colorHue:rx(function(t,e){return Hn(t,e)}),colorSaturation:rx(function(t,e){return Hn(t,null,e)}),colorLightness:rx(function(t,e){return Hn(t,null,null,e)}),colorAlpha:rx(function(t,e){return Yn(t,e)}),decal:{applyVisual:ax(\\\"decal\\\"),_normalizedToVisual:{linear:null,category:sx,piecewise:null,fixed:null}},opacity:{applyVisual:ax(\\\"opacity\\\"),_normalizedToVisual:ux([0,1])},liftZ:{applyVisual:ax(\\\"liftZ\\\"),_normalizedToVisual:{linear:lx,category:lx,piecewise:lx,fixed:lx}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n(\\\"symbol\\\",i)},_normalizedToVisual:{linear:ox,category:sx,piecewise:function(t,e){var n=hx.call(this,e);return null==n&&(n=ox.call(this,t)),n},fixed:lx}},symbolSize:{applyVisual:ax(\\\"symbolSize\\\"),_normalizedToVisual:ux([0,1])}},t}(),NY={linear:function(t){return rr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=RY.findPieceIndex(t,e,!0);return null!=n?rr(n,[0,e.length-1],[0,1],!0):void 0},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?OY:e},fixed:J},EY=\\\"itemStyle\\\",zY=Kr(),BY={seriesType:\\\"treemap\\\",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||dx(n,{},t.getViewRoot().getAncestors(),t)}},VY=Math.max,FY=Math.min,GY=z,WY=y,HY=[\\\"itemStyle\\\",\\\"borderWidth\\\"],YY=[\\\"itemStyle\\\",\\\"gapWidth\\\"],XY=[\\\"upperLabel\\\",\\\"show\\\"],UY=[\\\"upperLabel\\\",\\\"height\\\"],ZY={seriesType:\\\"treemap\\\",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=uu(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=or(GY(s.width,l[0]),r),c=or(GY(s.height,l[1]),o),p=i&&i.type,d=[\\\"treemapZoomToNode\\\",\\\"treemapRootToNode\\\"],f=Pm(i,d,t),g=\\\"treemapRender\\\"===p||\\\"treemapMove\\\"===p?i.rootRect:null,y=t.getViewRoot(),v=Om(y);if(\\\"treemapMove\\\"!==p){var m=\\\"treemapZoomToNode\\\"===p?Ax(t,f,y,u,c):g?[g.width,g.height]:[u,c],x=a.sort;x&&\\\"asc\\\"!==x&&\\\"desc\\\"!==x&&(x=\\\"desc\\\");var _={squareRatio:a.squareRatio,sort:x,leafDepth:a.leafDepth};y.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};y.setLayout(b),bx(y,_,!1,0),b=y.getLayout(),WY(v,function(t,e){var n=(v[e+1]||y).getValue();t.setLayout(h({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))})}var w=t.getData().tree.root;w.setLayout(kx(s,g,f),!0),t.setLayoutInfo(s),Lx(w,new dL(-s.x,-s.y,r,o),v,y,0)}};If(Ox);var jY=2,qY=4,KY=function(t){function n(e,n,i,r){var o=t.call(this)||this;o.z2=jY,o.textConfig={inside:!0},TR(o).seriesIndex=n.seriesIndex;var a=new wR({z2:qY,silent:e.getModel().get([\\\"label\\\",\\\"silent\\\"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return e(n,t),n.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;TR(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel(\\\"emphasis\\\"),l=e.getLayout(),u=h({},l);u.label=null;var c=e.getVisual(\\\"style\\\");c.lineJoin=\\\"bevel\\\";var p=e.getVisual(\\\"decal\\\");p&&(c.decal=_p(p,r));var d=Vg(a.getModel(\\\"itemStyle\\\"),u,!0);h(u,d),y(NR,function(t){var e=o.ensureState(t),n=a.getModel([t,\\\"itemStyle\\\"]);e.style=n.getItemStyle();var i=Vg(n,u);i&&(e.shape=i)}),t?(o.setShape(u),o.shape.r=l.r0,ks(o,{shape:{r:l.r}},n,e.dataIndex)):(As(o,{shape:u},n),Ns(o)),o.useStyle(c),this._updateLabel(n);var f=a.getShallow(\\\"cursor\\\");f&&o.attr(\\\"cursor\\\",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=s.get(\\\"focus\\\"),v=\\\"ancestor\\\"===g?e.getAncestorsIndices():\\\"descendant\\\"===g?e.getDescendantIndices():g;Qa(this,v,s.get(\\\"blurScope\\\"),s.get(\\\"disabled\\\"))},n.prototype._updateLabel=function(t){function e(t,e){var n=t.get(e);return null==n?r.get(e):n}var n=this,i=this.node.getModel(),r=i.getModel(\\\"label\\\"),o=this.node.getLayout(),a=o.endAngle-o.startAngle,s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),h=this,c=h.getTextContent(),p=this.node.dataIndex,d=r.get(\\\"minAngle\\\")/180*Math.PI,f=r.get(\\\"show\\\")&&!(null!=d&&Math.abs(a)Math.PI/2?\\\"right\\\":\\\"left\\\"):S&&\\\"center\\\"!==S?\\\"left\\\"===S?(b=o.r0+w,s>Math.PI/2&&(S=\\\"right\\\")):\\\"right\\\"===S&&(b=o.r-w,s>Math.PI/2&&(S=\\\"left\\\")):(b=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,S=\\\"center\\\"),g.style.align=S,g.style.verticalAlign=e(d,\\\"verticalAlign\\\")||\\\"middle\\\",g.x=b*l+o.cx,g.y=b*u+o.cy;var M=e(d,\\\"rotate\\\"),I=0;\\\"radial\\\"===M?(I=Wo(-s),I>Math.PI/2&&I<1.5*Math.PI&&(I+=Math.PI)):\\\"tangential\\\"===M?(I=Math.PI/2-s,I>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI)):D(M)&&(I=M*Math.PI/180),g.rotation=Wo(I)}),c.dirtyStyle()},n}(_N),$Y=\\\"sunburstRootToNode\\\",JY=\\\"sunburstHighlight\\\",QY=\\\"sunburstUnhighlight\\\",tX=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){function i(t,e){function n(t){return t.getId()}function i(n,i){var o=null==n?null:t[n],a=null==i?null:e[i];r(o,a)}(0!==t.length||0!==e.length)&&new AF(e,t,n,n).add(i).update(i).remove(S(i,null)).execute()}function r(i,r){if(p||!i||i.getValue()||(i=null),i!==u&&r!==u)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),l.setItemGraphicEl(i.dataIndex,r.piece)):o(r);else if(i){var a=new KY(i,t,e,n);c.add(a),l.setItemGraphicEl(i.dataIndex,a)}}function o(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function a(i,r){r.depth>0?(s.virtualPiece?s.virtualPiece.updateData(!1,i,t,e,n):(s.virtualPiece=new KY(i,t,e,n),c.add(s.virtualPiece)),r.piece.off(\\\"click\\\"),s.virtualPiece.on(\\\"click\\\",function(){s._rootToNode(r.parentNode)})):s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null)}var s=this;this.seriesModel=t,this.api=n,this.ecModel=e;var l=t.getData(),u=l.tree.root,h=t.getViewRoot(),c=this.group,p=t.get(\\\"renderLabelForZeroData\\\"),d=[];h.eachNode(function(t){d.push(t)});var f=this._oldChildren||[];i(d,f),a(u,h),this._initEvents(),this._oldChildren=d},n.prototype._initEvents=function(){var t=this;this.group.off(\\\"click\\\"),this.group.on(\\\"click\\\",function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get(\\\"nodeClick\\\");if(\\\"rootToNode\\\"===r)t._rootToNode(i);else if(\\\"link\\\"===r){var o=i.getModel(),a=o.get(\\\"link\\\");if(a){var s=o.get(\\\"target\\\",!0)||\\\"_blank\\\";au(a,s)}}n=!0}})})},n.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$Y,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},n.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},n.type=\\\"sunburst\\\",n}(cB),eX=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.ignoreStyleOnData=!0,e}return e(n,t),n.prototype.getInitialData=function(t,e){function n(t){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=o.getNodeByDataIndex(e),i=r[n.depth];return i&&(t.parentModel=i),t})}var i={name:t.name,children:t.data};Nx(i);var r=this._levelModels=v(t.levels||[],function(t){return new gE(t,this,e)},this),o=hY.createTree(i,this,n);return o.data},n.prototype.optionUpdated=function(){this.resetViewRoot()},n.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Nm(i,this),n},n.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},n.prototype.getViewRoot=function(){return this._viewRoot},n.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)},n.prototype.enableAriaDecal=function(){Um(this)},n.type=\\\"series.sunburst\\\",n.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\\\"},n}(sB),nX=Math.PI/180;If(Fx);for(var iX,rX={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\\\"},oX=b(rX),aX={\\\"alignment-baseline\\\":\\\"textBaseline\\\",\\\"stop-color\\\":\\\"stopColor\\\"},sX=b(aX),lX=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=Gx(t);this._defsUsePending=[];var i=new HP;this._root=i;var r=[],o=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),Ux(n,i,null,!0,!1);for(var l=n.firstChild;l;)this._parseNode(l,i,r,null,!1,!1),l=l.nextSibling;qx(this._defs,this._defsUsePending),this._defsUsePending=[];var u,h;if(o){var c=Kx(o);c.length>=4&&(u={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(u&&null!=a&&null!=s&&(h=t_(u,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var p=i;i=new HP,i.add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new mR({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:u,viewBoxTransform:h,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if(\\\"defs\\\"===s&&(r=!0),\\\"text\\\"===s&&(o=!0),\\\"defs\\\"===s||\\\"switch\\\"===s)a=e;else{if(!r){var u=iX[s];if(u&&$(iX,s)){a=u.call(this,t,e);var h=t.getAttribute(\\\"name\\\");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),\\\"g\\\"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var p=uX[s];if(p&&$(uX,s)){var d=p.call(this,t),f=t.getAttribute(\\\"id\\\");f&&(this._defs[f]=d)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new cR({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Yx(e,n),Ux(t,n,this._defsUsePending,!1,!1),Zx(n,e);var i=n.style,r=i.fontSize;r&&9>r&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+\\\"px\\\",i.fontFamily||\\\"sans-serif\\\"].join(\\\" \\\");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){iX={g:function(t,e){var n=new HP;return Yx(e,n),Ux(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new mR;return Yx(e,n),Ux(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 oN;return Yx(e,n),Ux(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 AN;return Yx(e,n),Ux(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 sN;return Yx(e,n),Ux(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&&(n=Xx(i));var r=new MN({shape:{points:n||[]},silent:!0});return Yx(e,r),Ux(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute(\\\"points\\\");i&&(n=Xx(i));var r=new TN({shape:{points:n||[]},silent:!0});return Yx(e,r),Ux(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new fR;return Yx(e,n),Ux(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\\\",r=t.getAttribute(\\\"dx\\\")||\\\"0\\\",o=t.getAttribute(\\\"dy\\\")||\\\"0\\\";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new HP;return Yx(e,a),Ux(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute(\\\"x\\\"),i=t.getAttribute(\\\"y\\\");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute(\\\"dx\\\")||\\\"0\\\",o=t.getAttribute(\\\"dy\\\")||\\\"0\\\",a=new HP;return Yx(e,a),Ux(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute(\\\"d\\\")||\\\"\\\",i=vs(n);return Yx(e,i),Ux(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),uX={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),r=parseInt(t.getAttribute(\\\"y2\\\")||\\\"0\\\",10),o=new zN(e,n,i,r);return Wx(t,o),Hx(t,o),o},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),r=new BN(e,n,i);return Wx(t,r),Hx(t,r),r}},hX=/^url\\\\(\\\\s*#(.*?)\\\\)/,cX=/-?([0-9]*\\\\.)?[0-9]+([eE]-?[0-9]+)?/g,pX=/(translate|scale|rotate|skewX|skewY|matrix)\\\\(([\\\\-\\\\s0-9\\\\.eE,]*)\\\\)/g,dX=Math.PI/180,fX=/([^\\\\s:;]+)\\\\s*:\\\\s*([^:;]+)/g,gX=Z([\\\"rect\\\",\\\"circle\\\",\\\"line\\\",\\\"ellipse\\\",\\\"polygon\\\",\\\"polyline\\\",\\\"path\\\",\\\"text\\\",\\\"tspan\\\",\\\"g\\\"]),yX=function(){function t(t,e){this.type=\\\"geoSVG\\\",this._usedGraphicMap=Z(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Gx(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=i_(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&e_(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,W(null!=n)}catch(i){throw new Error(\\\"Invalid svg format\\\\n\\\"+i.message)}var r=new HP;r.add(n),r.isGeoSVGGraphicRoot=!0;var o=e.width,a=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,c=void 0,p=void 0;if(null!=o?(u=0,c=o):s&&(u=s.x,c=s.width),null!=a?(h=0,p=a):s&&(h=s.y,p=s.height),null==u||null==h){var d=n.getBoundingRect();null==u&&(u=d.x,c=d.width),null==h&&(h=d.y,p=d.height)}l=this._boundingRect=new dL(u,h,c,p)}if(s){var f=t_(s,l);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}r.setClipPath(new mR({shape:l.plain()}));var g=[];return y(e.named,function(t){null!=gX.get(t.svgNodeTagLower)&&(g.push(t),n_(t.el))}),{root:r,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n?n:(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}(),vX=[126,25],mX=\\\"南海诸岛\\\",xX=[[[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]]],_X=0;_X0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:c};\\\"geoJSON\\\"===s.resourceType?this._buildGeoJSON(g):\\\"geoSVG\\\"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){function e(t,e){return e&&(t=e(t)),t&&[t[0]*s.scaleX+s.x,t[1]*s.scaleY+s.y]}function n(t){for(var n=[],i=!c&&h&&h.project,r=0;ri;i++){var o=t.getName(i);e.set(o,!0)}var a=CX.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y(a.regions,function(t){var i=t.name;e.get(i)||n.push(i)}),t.appendValues([],n),t},n.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent(\\\"geo\\\",t):null},n.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},n.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension(\\\"value\\\"),t)},n.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},n.prototype.formatTooltip=function(t){for(var e=this.getData(),n=this.getRawValue(t),i=e.getName(t),r=this.seriesGroup,o=[],a=0;a-1&&(n.style.stroke=n.style.fill,n.style.fill=\\\"#fff\\\",n.style.lineWidth=2),n},n.type=\\\"series.map\\\",n.dependencies=[\\\"geo\\\"],n.layoutMode=\\\"box\\\",n.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\\\"},n}(sB),EX={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},zX=[\\\"lng\\\",\\\"lat\\\"],BX=function(t){function n(e,n,i){var r=t.call(this,e)||this;r.dimensions=zX,r.type=\\\"geo\\\",r._nameCoordMap=Z(),r.map=n;var o=i.projection,a=CX.load(n,i.nameMap,i.nameProperty),s=CX.getGeoResource(n),l=(r.resourceType=s?s.type:null,r.regions=a.regions),u=EX[s.type];r._regionsMap=a.regionsMap,r.regions=a.regions,r.projection=o;var h;if(o)for(var c=0;c0&&(x[0]=-x[0],x[1]=-x[1]);var b=m[0]<0?-1:1;if(\\\"start\\\"!==r.__position&&\\\"end\\\"!==r.__position){var w=-Math.atan2(m[1],m[0]);h[0].8?\\\"left\\\":c[0]<-.8?\\\"right\\\":\\\"center\\\",d=c[1]>.8?\\\"top\\\":c[1]<-.8?\\\"bottom\\\":\\\"middle\\\";break;case\\\"start\\\":r.x=-c[0]*g+u[0],r.y=-c[1]*y+u[1],p=c[0]>.8?\\\"right\\\":c[0]<-.8?\\\"left\\\":\\\"center\\\",d=c[1]>.8?\\\"bottom\\\":c[1]<-.8?\\\"top\\\":\\\"middle\\\";break;case\\\"insideStartTop\\\":case\\\"insideStart\\\":case\\\"insideStartBottom\\\":r.x=g*b+u[0],r.y=u[1]+S,p=m[0]<0?\\\"right\\\":\\\"left\\\",r.originX=-g*b,r.originY=-S;break;case\\\"insideMiddleTop\\\":case\\\"insideMiddle\\\":case\\\"insideMiddleBottom\\\":case\\\"middle\\\":r.x=_[0],r.y=_[1]+S,p=\\\"center\\\",r.originY=-S;break;case\\\"insideEndTop\\\":case\\\"insideEnd\\\":case\\\"insideEndBottom\\\":r.x=-g*b+h[0],r.y=h[1]+S,p=m[0]>=0?\\\"right\\\":\\\"left\\\",r.originX=g*b,r.originY=-S}r.scaleX=r.scaleY=o,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||p})}}}},n}(HP),qX=function(){function t(t){this.group=new HP,this._LineCtor=t||jX}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=O_(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=O_(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||P_(t)||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=I(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},n.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate(\\\"\\\",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during(function(){o._updateSymbolPosition(t)});i||a.done(function(){o.remove(t)}),a.start()}},n.prototype._getLineLength=function(t){return Fk(t.__p1,t.__cp1)+Fk(t.__cp1,t.__p2)},n.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]},n.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},n.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=mn,l=xn;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(h,u)-Math.PI/2,(\\\"line\\\"===this._symbolType||\\\"rect\\\"===this._symbolType||\\\"roundRect\\\"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;r>o&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),u=n[o],h=n[o+1];t.x=u[0]*(1-l)+l*h[0],t.y=u[1]*(1-l)+l*h[1];var c=t.__t<1?h[0]-u[0]:u[0]-h[0],p=t.__t<1?h[1]-u[1]:u[1]-h[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},n}(KX),QX=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),tU=function(t){function n(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return e(n,t),n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.getDefaultStyle=function(){return{stroke:\\\"#000\\\",fill:null}},n.prototype.getDefaultShape=function(){return new QX},n.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;o>a;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n0){var c=(s+u)/2-(l-h)*r,p=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,p,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},n.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;l>c;c++){var p=i[s++],d=i[s++];if(Vo(u,h,p,d,o,t,e))return a}a++}else for(var a=0,s=0;s0){var f=(u+p)/2-(h-d)*r,g=(h+d)/2-(p-u)*r;if(Go(u,h,f,g,p,d,o,t,e))return a}else if(Vo(u,h,p,d,o,t,e))return a;a++}return-1},n.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},n.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(r.dataIndex=e+t.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),nU={seriesType:\\\"lines\\\",plan:pc(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get(\\\"polyline\\\"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;hf;f++)p=e.dataToPoint(a[f],!1,p),s[c++]=p[0],s[c++]=p[1]}o.setLayout(\\\"linesPoints\\\",s)}else for(var h=r.start;hv;v++)y.push(e.dataToPoint(a[v]));else{y[0]=e.dataToPoint(a[0]),y[1]=e.dataToPoint(a[1]);var m=g.get([\\\"lineStyle\\\",\\\"curveness\\\"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}o.setItemLayout(h,y)}}}}}},iU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get(\\\"zlevel\\\"),a=t.get([\\\"effect\\\",\\\"trailLength\\\"]),s=n.getZr(),l=\\\"svg\\\"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get(\\\"clip\\\",!0)&&Lg(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},n.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},n.prototype.incrementalRender=function(t,e){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},n.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},n.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=nU.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},n.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get(\\\"polyline\\\"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new eU:new qX(r?i?JX:$X:i?KX:jX),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},n.prototype._showEffect=function(t){return!!t.get([\\\"effect\\\",\\\"show\\\"])},n.prototype._clearLayer=function(t){var e=t.getZr(),n=\\\"svg\\\"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},n.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},n.prototype.dispose=function(t,e){this.remove(t,e)},n.type=\\\"lines\\\",n}(cB),rU=\\\"undefined\\\"==typeof Uint32Array?Array:Uint32Array,oU=\\\"undefined\\\"==typeof Float64Array?Array:Float64Array,aU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath=\\\"lineStyle\\\",e.visualDrawType=\\\"stroke\\\",e}return e(n,t),n.prototype.init=function(e){e.data=e.data||[],E_(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},n.prototype.mergeOption=function(e){if(E_(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},n.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=j(this._flatCoords,e.flatCoords),this._flatCoordsOffset=j(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},n.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow(\\\"coords\\\");return n},n.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},n.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;i>r;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}for(var o=this._getCoordsFromItemModel(t),r=0;rl;){s++;var u=t[l++];i[a++]=o+e,i[a++]=u;for(var h=0;u>h;h++){var c=t[l++],p=t[l++];r[o++]=c,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},n.prototype.getInitialData=function(t){var e=new WF([\\\"value\\\"],this);return e.hasItemOption=!1,e.initData(t.data,[],function(t,n,i,r){if(t instanceof Array)return 0/0;e.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0}),e},n.prototype.formatTooltip=function(t){var e=this.getData(),n=e.getItemModel(t),i=n.get(\\\"name\\\");if(i)return i;var r=n.get(\\\"fromName\\\"),o=n.get(\\\"toName\\\"),a=[];return null!=r&&a.push(r),null!=o&&a.push(o),Fh(\\\"nameValue\\\",{name:a.join(\\\" > \\\")})},n.prototype.preventIncremental=function(){return!!this.get([\\\"effect\\\",\\\"show\\\"])},n.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get(\\\"progressive\\\"):t},n.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get(\\\"progressiveThreshold\\\"):t},n.prototype.getZLevelKey=function(){var t=this.getModel(\\\"effect\\\"),e=t.get(\\\"trailLength\\\");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get(\\\"show\\\")&&e>0?e+\\\"\\\":\\\"\\\"},n.type=\\\"series.lines\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"calendar\\\"],n.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}},n}(sB),sU={seriesType:\\\"lines\\\",reset:function(t){function e(t,e){var n=t.getItemModel(e),i=z_(n.getShallow(\\\"symbol\\\",!0)),r=z_(n.getShallow(\\\"symbolSize\\\",!0));\\ni[0]&&t.setItemVisual(e,\\\"fromSymbol\\\",i[0]),i[1]&&t.setItemVisual(e,\\\"toSymbol\\\",i[1]),r[0]&&t.setItemVisual(e,\\\"fromSymbolSize\\\",r[0]),r[1]&&t.setItemVisual(e,\\\"toSymbolSize\\\",r[1])}var n=z_(t.get(\\\"symbol\\\")),i=z_(t.get(\\\"symbolSize\\\")),r=t.getData();return r.setVisual(\\\"fromSymbol\\\",n&&n[0]),r.setVisual(\\\"toSymbol\\\",n&&n[1]),r.setVisual(\\\"fromSymbolSize\\\",i&&i[0]),r.setVisual(\\\"toSymbolSize\\\",i&&i[1]),{dataEach:r.hasItemOption?e:null}}};If(B_);var lU=\\\"-->\\\",uU=function(t){return t.get(\\\"autoCurveness\\\")||null},hU=function(t,e){var n=uU(t),i=20,r=[];if(D(n))i=n;else if(M(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;o>a;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},cU=function(t,e,n){var i=[t.id,t.dataIndex].join(\\\".\\\"),r=[e.id,e.dataIndex].join(\\\".\\\");return[n.uid,i,r].join(lU)},pU=function(t){var e=t.split(lU);return[e[0],e[2],e[1]].join(lU)},dU=function(t,e){var n=cU(t.node1,t.node2,e);return e.__edgeMap[n]},fU=function(t,e){var n=gU(cU(t.node1,t.node2,e),e),i=gU(cU(t.node2,t.node1,e),e);return n+i},gU=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0},yU=Math.PI,vU=[],mU={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum(\\\"value\\\"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue(\\\"value\\\"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n})},symbolSize:function(t,e,n,i,r,o,a){var s=0;vU.length=a;var l=q_(t);e.eachNode(function(t){var e=K_(t);isNaN(e)&&(e=2),0>e&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=yU/2),vU[t.dataIndex]=n,s+=2*n});var u=(2*yU-s)/a/2,h=0;e.eachNode(function(t){var e=u+vU[t.dataIndex];h+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(h)+r,i*Math.sin(h)+o]),h+=e})}},xU=re,_U=[],bU=[],wU=[],SU=mn,MU=Gk,IU=Math.abs,TU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){var n=new CW,i=new qX,r=this.group;this._controller=new iY(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},n.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(ab(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):As(s,l,t)}ob(t.getGraph(),q_(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get([\\\"force\\\",\\\"layoutAnimation\\\"]);c&&this._startForceLayoutIteration(c,p);var d=t.get(\\\"layout\\\");u.graph.eachNode(function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off(\\\"drag\\\").off(\\\"dragend\\\");var a=o.get(\\\"draggable\\\");a&&r.on(\\\"drag\\\",function(o){switch(d){case\\\"force\\\":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,p),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case\\\"circular\\\":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),$_(t,\\\"symbolSize\\\",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case\\\"none\\\":default:u.setItemLayout(n,[r.x,r.y]),Z_(t.getGraph(),t),i.updateLayout(t)}}).on(\\\"dragend\\\",function(){c&&c.setUnfixed(n)}),r.setDraggable(a,!!o.get(\\\"cursor\\\"));var s=o.get([\\\"emphasis\\\",\\\"focus\\\"]);\\\"adjacency\\\"===s&&(TR(r).focus=e.getAdjacentDataIndices())}}),u.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get([\\\"emphasis\\\",\\\"focus\\\"]);e&&\\\"adjacency\\\"===n&&(TR(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f=\\\"circular\\\"===t.get(\\\"layout\\\")&&t.get([\\\"circular\\\",\\\"rotateLabel\\\"]),g=u.getLayout(\\\"cx\\\"),y=u.getLayout(\\\"cy\\\");u.graph.eachNode(function(t){J_(t,f,g,y)}),this._firstRender=!1},n.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},n.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step(function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())})}()},n.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;return r.setPointerChecker(function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!fm(e,n,t)}),ab(t.coordinateSystem)?(r.enable(t.get(\\\"roam\\\")),o.zoomLimit=t.get(\\\"scaleLimit\\\"),o.zoom=t.coordinateSystem.getZoom(),void r.off(\\\"pan\\\").off(\\\"zoom\\\").on(\\\"pan\\\",function(e){om(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:\\\"graphRoam\\\",dx:e.dx,dy:e.dy})}).on(\\\"zoom\\\",function(e){am(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:\\\"graphRoam\\\",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),ob(t.getGraph(),q_(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()})):void r.disable()},n.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=q_(t);e.eachItemGraphicEl(function(t){t&&t.setSymbolScale(n)})},n.prototype.updateLayout=function(t){ob(t.getGraph(),q_(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},n.prototype.remove=function(){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},n.type=\\\"graph\\\",n}(cB),CU=function(){function t(t){this.type=\\\"graph\\\",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?\\\"\\\"+e:\\\"\\\"+t;var n=this._nodesMap;if(!n[sb(t)]){var i=new DU(t,e);return i.hostGraph=this,this.nodes.push(i),n[sb(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[sb(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(D(t)&&(t=this.nodes[t]),D(e)&&(e=this.nodes[e]),t instanceof DU||(t=i[sb(t)]),e instanceof DU||(e=i[sb(e)]),t&&e){var o=t.id+\\\"-\\\"+e.id,a=new AU(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof DU&&(t=t.id),e instanceof DU&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+\\\"-\\\"+e]:n[t+\\\"-\\\"+e]||n[e+\\\"-\\\"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;i>r;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;i>r;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof DU||(e=this._nodesMap[sb(e)]),e){for(var r=\\\"out\\\"===n?\\\"outEdges\\\":\\\"in\\\"===n?\\\"inEdges\\\":\\\"edges\\\",o=0;or;r++)n[r].dataIndex=-1;for(var r=0,o=t.count();o>r;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;o>r;r++)i[r].dataIndex=-1;for(var r=0,o=e.count();o>r;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r \\\"),value:r.value,noValue:null==r.value})}var u=ec({series:this,dataIndex:t,multipleSeries:e});return u},n.prototype._updateCategoriesData=function(){var t=v(this.option.categories||[],function(t){return null!=t.value?t:h({value:0},t)}),e=new WF([\\\"value\\\"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},n.prototype.setZoom=function(t){this.option.zoom=t},n.prototype.setCenter=function(t){this.option.center=t},n.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(\\\"force\\\"===this.get(\\\"layout\\\")&&this.get([\\\"force\\\",\\\"layoutAnimation\\\"]))},n.type=\\\"series.graph\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],n.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\\\"}}},n}(sB),LU={type:\\\"graphRoam\\\",event:\\\"graphRoam\\\",update:\\\"none\\\"};If(hb);var PU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.defaultValueDimensions=[{name:\\\"min\\\",defaultTooltip:!0},{name:\\\"Q1\\\",defaultTooltip:!0},{name:\\\"median\\\",defaultTooltip:!0},{name:\\\"Q3\\\",defaultTooltip:!0},{name:\\\"max\\\",defaultTooltip:!0}],e.visualDrawType=\\\"stroke\\\",e}return e(n,t),n.type=\\\"series.boxplot\\\",n.dependencies=[\\\"xAxis\\\",\\\"yAxis\\\",\\\"grid\\\"],n.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},n}(sB);f(PU,OH,!0);var OU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t){var e=t.getData(),n=this.group,i=this._data;this._data||n.removeAll();var r=\\\"horizontal\\\"===t.get(\\\"layout\\\")?1:0;e.diff(i).add(function(t){if(e.hasValue(t)){var i=e.getItemLayout(t),o=cb(i,e,t,r,!0);e.setItemGraphicEl(t,o),n.add(o)}}).update(function(t,o){var a=i.getItemGraphicEl(o);if(!e.hasValue(t))return void n.remove(a);var s=e.getItemLayout(t);a?(Ns(a),pb(s,a,e,t)):a=cb(s,e,t,r),n.add(a),e.setItemGraphicEl(t,a)}).remove(function(t){var e=i.getItemGraphicEl(t);e&&n.remove(e)}).execute(),this._data=e},n.prototype.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},n.type=\\\"boxplot\\\",n}(cB),RU=function(){function t(){}return t}(),NU=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"boxplotBoxPath\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new RU},n.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;4>i;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();iHU)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);\\\"none\\\"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Lb(this,\\\"mousemove\\\")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;\\\"jump\\\"===i&&this._throttledDispatchExpand.debounceNextCall(e.get(\\\"axisExpandDebounce\\\")),this._throttledDispatchExpand(\\\"none\\\"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:\\\"jump\\\"===i?null:{duration:0}})}}},UU=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},n.prototype.mergeOption=function(t){var e=this.option;t&&l(e,t,!0),this._initDimensions()},n.prototype.contains=function(t,e){var n=t.get(\\\"parallelIndex\\\");return null!=n&&e.getComponent(\\\"parallel\\\",n)===this},n.prototype.setAxisExpand=function(t){y([\\\"axisExpandable\\\",\\\"axisExpandCenter\\\",\\\"axisExpandCount\\\",\\\"axisExpandWidth\\\",\\\"axisExpandWindow\\\"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},n.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=x(this.ecModel.queryComponents({mainType:\\\"parallelAxis\\\"}),function(t){return(t.get(\\\"parallelIndex\\\")||0)===this.componentIndex},this);y(n,function(n){t.push(\\\"dim\\\"+n.get(\\\"dim\\\")),e.push(n.componentIndex)})},n.type=\\\"parallel\\\",n.dependencies=[\\\"parallelAxis\\\"],n.layoutMode=\\\"box\\\",n.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},n}(HE),ZU=function(t){function n(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||\\\"value\\\",a.axisIndex=o,a}return e(n,t),n.prototype.isHorizontal=function(){return\\\"horizontal\\\"!==this.coordinateSystem.getModel().get(\\\"layout\\\")},n}(RG),jU=y,qU=Math.min,KU=Math.max,$U=Math.floor,JU=Math.ceil,QU=ar,tZ=Math.PI,eZ=function(){function t(t,e,n){this.type=\\\"parallel\\\",this._axesMap=Z(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e){var n=t.dimensions,i=t.parallelAxisIndex;jU(n,function(t,n){var r=i[n],o=e.getComponent(\\\"parallelAxis\\\",r),a=this._axesMap.set(t,new ZU(t,cf(o),[0,0],o.get(\\\"type\\\"),r)),s=\\\"category\\\"===a.type;a.onBand=s&&o.get(\\\"boundaryGap\\\"),a.inverse=o.get(\\\"inverse\\\"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this},this)},t.prototype.update=function(t){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();jU(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),hf(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=uu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=[\\\"x\\\",\\\"y\\\"],r=[\\\"width\\\",\\\"height\\\"],o=e.get(\\\"layout\\\"),a=\\\"horizontal\\\"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=Nb(e.get(\\\"axisExpandWidth\\\"),l),c=Nb(e.get(\\\"axisExpandCount\\\")||0,[0,u]),p=e.get(\\\"axisExpandable\\\")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get(\\\"axisExpandWindow\\\");if(d)t=Nb(d[1]-d[0],l),d[1]=d[0]+t;else{t=Nb(h*(c-1),l);var f=e.get(\\\"axisExpandCenter\\\")||$U(u/2);d=[h*f-t/2],d[1]=d[0]+t}var g=(s-t)/(u-c);3>g&&(g=0);var y=[$U(QU(d[0]/h,1))+1,JU(QU(d[1]/h,1))-1],v=g/h*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),jU(n,function(e,n){var o=(i.axisExpandable?zb:Eb)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:tZ/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=Be();He(h,h,u),We(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];y(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;i>u;u++){var h=void 0;if(l){h=\\\"active\\\";for(var c=t.getValues(a,u),p=0,d=o.length;d>p;p++){var f=s[p].getActiveState(c[p]);if(\\\"inactive\\\"===f){h=\\\"inactive\\\";break}}}else h=\\\"normal\\\";e(h,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;r>i;i++)\\\"normal\\\"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Zs([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return s(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:\\\"none\\\",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l=\\\"slide\\\",u=e.axisCollapseWidth,h=this._model.get(\\\"axisExpandSlideTriggerArea\\\"),c=null!=h[0];if(u)c&&u&&sr*(1-h[0])?(l=\\\"jump\\\",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?Pb(a,i,o,\\\"all\\\"):l=\\\"none\\\";else{var p=i[1]-i[0],d=o[1]*s/p;i=[KU(0,d-p/2)],i[1]=qU(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:l}},t}(),nZ={create:Bb},iZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.activeIntervals=[],e}return e(n,t),n.prototype.getAreaSelectStyle=function(){return yo([[\\\"fill\\\",\\\"color\\\"],[\\\"lineWidth\\\",\\\"borderWidth\\\"],[\\\"stroke\\\",\\\"borderColor\\\"],[\\\"width\\\",\\\"width\\\"],[\\\"opacity\\\",\\\"opacity\\\"]])(this.getModel(\\\"areaSelectStyle\\\"))},n.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=s(t);if(e)for(var n=e.length-1;n>=0;n--)sr(e[n])},n.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return\\\"normal\\\";if(null==t||isNaN(+t))return\\\"inactive\\\";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return\\\"active\\\"}else for(var i=0,r=e.length;r>i;i++)if(e[i][0]<=t&&t<=e[i][1])return\\\"active\\\";return\\\"inactive\\\"},n}(HE);f(iZ,gG);var rZ=!0,oZ=Math.min,aZ=Math.max,sZ=Math.pow,lZ=1e4,uZ=6,hZ=6,cZ=\\\"globalPan\\\",pZ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},dZ={w:\\\"ew\\\",e:\\\"ew\\\",n:\\\"ns\\\",s:\\\"ns\\\",ne:\\\"nesw\\\",sw:\\\"nesw\\\",nw:\\\"nwse\\\",se:\\\"nwse\\\"},fZ={brushStyle:{lineWidth:2,stroke:\\\"rgba(210,219,238,0.3)\\\",fill:\\\"#D2DBEE\\\"},transformable:!0,brushMode:\\\"single\\\",removeOnClick:!1},gZ=0,yZ=function(t){function n(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new HP,n._uid=\\\"brushController_\\\"+gZ++,y(vZ,function(t,e){this._handlers[e]=Lk(t,this)},n),n}return e(n,t),n.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},n.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||sm(e,cZ,this._uid),y(this._handlers,function(t,n){e.on(n,t)}),this._brushType=t.brushType,this._brushOption=l(s(fZ),t,!0)},n.prototype._doDisableBrush=function(){var t=this._zr;lm(t,cZ,this._uid),y(this._handlers,function(e,n){t.off(n,e)}),this._brushType=this._brushOption=null},n.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};y(t,function(t){e[t.panelId]=s(t)})}else this._panels=null;return this},n.prototype.mount=function(t){t=t||{},this._enableGlobalPan=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},n.prototype.updateCovers=function(t){function e(t,e){return(null!=t.id?t.id:o+e)+\\\"-\\\"+t.brushType}function n(t,n){return e(t.__brushOption,n)}function i(e,n){var i=t[e];if(null!=n&&a[n]===c)u[e]=a[n];else{var r=u[e]=null!=n?(a[n].__brushOption=i,a[n]):Fb(h,Vb(h,i));Hb(h,r)}}function r(t){a[t]!==c&&h.group.remove(a[t])}t=v(t,function(t){return l(s(fZ),t,!0)});var o=\\\"\\\\x00-brush-index-\\\",a=this._covers,u=this._covers=[],h=this,c=this._creatingCover;return new AF(a,t,n,e).add(i).update(i).remove(r).execute(),this},n.prototype.unmount=function(){return this.enableBrush(!1),Zb(this),this._zr.remove(this.group),this},n.prototype.dispose=function(){this.unmount(),this.off()},n}(Xk),vZ={mousedown:function(t){if(this._dragging)yw(this,t);else if(!t.target||!t.target.draggable){pw(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=Xb(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(cw(this,t,i),this._dragging){pw(t);var r=fw(this,t,i,!1);r&&jb(this,r)}},mouseup:function(t){yw(this,t)}},mZ={lineX:mw(0),lineY:mw(1),rect:{createCover:function(t,e){function n(t){return t}return $b({toRectRange:n,fromRectRange:n},t,e,[[\\\"w\\\"],[\\\"e\\\"],[\\\"n\\\"],[\\\"s\\\"],[\\\"s\\\",\\\"e\\\"],[\\\"s\\\",\\\"w\\\"],[\\\"n\\\",\\\"e\\\"],[\\\"n\\\",\\\"w\\\"]])},getCreatingRange:function(t){var e=Kb(t);return nw(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Jb(t,e,n,i)},updateCommon:Qb,contain:dw},polygon:{createCover:function(t,e){var n=new HP;return n.add(new TN({name:\\\"main\\\",style:ew(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new MN({name:\\\"main\\\",draggable:!0,drift:S(sw,t,e),ondragend:S(jb,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n){e.childAt(0).setShape({points:uw(t,e,n)})},updateCommon:Qb,contain:dw}},xZ=[\\\"axisLine\\\",\\\"axisTickLabel\\\",\\\"axisName\\\"],_Z=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new yZ(n.getZr())).on(\\\"brush\\\",Lk(this._onBrush,this))},n.prototype.render=function(t,e,n,i){if(!Sw(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new HP,this.group.add(this._axisGroup),t.get(\\\"show\\\")){var o=Iw(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),p=h({strokeContainThreshold:l},c),d=new cH(t,p);y(xZ,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(p,s,t,o,l,n),$s(r,this._axisGroup,t)}}},n.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=dL.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:\\\"pl\\\",clipPath:xw(u),isTargetByCursor:bw(u,o,i),getLinearBrushOtherExtent:_w(u,0)}]).enableBrush({brushType:\\\"lineX\\\",brushStyle:e,removeOnClick:!0}).updateCovers(Mw(n))},n.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=v(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:r})},n.prototype.dispose=function(){this._brushController.dispose()},n.type=\\\"parallelAxis\\\",n}(lB),bZ={type:\\\"axisAreaSelect\\\",event:\\\"axisAreaSelected\\\"},wZ={type:\\\"value\\\",areaSelectStyle:{width:20,borderWidth:1,borderColor:\\\"rgba(160,197,232)\\\",color:\\\"rgba(160,197,232)\\\",opacity:.3},realtime:!0,z:10};If(Dw);var SZ=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),MZ=function(t){function n(e){var n=t.call(this,e)||this;return n.type=\\\"pointer\\\",n}return e(n,t),n.prototype.getDefaultShape=function(){return new SZ},n.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},n}(uR),IZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),r=Aw(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},n.prototype.dispose=function(){},n.prototype._renderMain=function(t,e,n,i,r){var o=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\\\"),c=h?pW:_N,p=u.get(\\\"show\\\"),d=u.getModel(\\\"lineStyle\\\"),f=d.get(\\\"width\\\"),g=[s,l];\\nBo(g,!a),s=g[0],l=g[1];for(var v=l-s,m=s,x=[],_=0;p&&_=t)return i[0][1];var e;for(e=0;e=t&&(0===e?0:i[e-1][0])=L;L++){if(u=Math.cos(M),h=Math.sin(M),v.get(\\\"show\\\")){var P=k?k+l:l,O=new AN({shape:{x1:u*(f-P)+p,y1:h*(f-P)+d,x2:u*(f-w-P)+p,y2:h*(f-w-P)+d},style:C,silent:!0});\\\"auto\\\"===C.stroke&&O.setStyle({stroke:i(L/_)}),c.add(O)}if(x.get(\\\"show\\\")){var P=x.get(\\\"distance\\\")+k,R=kw(ar(L/_*(y-g)+g),x.get(\\\"formatter\\\")),N=i(L/_),E=u*(f-w-P)+p,z=h*(f-w-P)+d,B=x.get(\\\"rotate\\\"),V=0;\\\"radial\\\"===B?(V=-M+2*Math.PI,V>Math.PI/2&&(V+=Math.PI)):\\\"tangential\\\"===B?V=-M-Math.PI/2:D(B)&&(V=B*Math.PI/180),c.add(0===V?new wR({style:pl(x,{text:R,x:E,y:z,verticalAlign:-.8>h?\\\"top\\\":h>.8?\\\"bottom\\\":\\\"middle\\\",align:-.4>u?\\\"left\\\":u>.4?\\\"right\\\":\\\"center\\\"},{inheritColor:N}),silent:!0}):new wR({style:pl(x,{text:R,x:E,y:z,verticalAlign:\\\"middle\\\",align:\\\"center\\\"},{inheritColor:N}),silent:!0,originX:E,originY:z,rotation:V}))}if(m.get(\\\"show\\\")&&L!==_){var P=m.get(\\\"distance\\\");P=P?P+l:l;for(var F=0;b>=F;F++){u=Math.cos(M),h=Math.sin(M);var G=new AN({shape:{x1:u*(f-P)+p,y1:h*(f-P)+d,x2:u*(f-S-P)+p,y2:h*(f-S-P)+d},silent:!0,style:A});\\\"auto\\\"===A.stroke&&G.setStyle({stroke:i((L+F/b)/_)}),c.add(G),M+=T}M-=T}else M+=I}},n.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){function u(e,n){var i,o=x.getItemModel(e),a=o.getModel(\\\"pointer\\\"),s=or(a.get(\\\"width\\\"),r.r),l=or(a.get(\\\"length\\\"),r.r),u=t.get([\\\"pointer\\\",\\\"icon\\\"]),h=a.get(\\\"offsetCenter\\\"),c=or(h[0],r.r),p=or(h[1],r.r),d=a.get(\\\"keepAspect\\\");return i=u?Gc(u,c-s/2,p-l,s,l,null,d):new MZ({shape:{angle:-Math.PI/2,width:s,r:l,x:c,y:p}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function c(t,e){var n=v.get(\\\"roundCap\\\"),i=n?pW:_N,a=v.get(\\\"overlap\\\"),u=a?v.get(\\\"width\\\"):l/x.count(),h=a?r.r-u:r.r-(t+1)*u,c=a?r.r:r.r-t*u,p=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:h,r:c}});return a&&(p.z2=w-x.get(_,t)%w),p}var p=this.group,d=this._data,f=this._progressEls,g=[],y=t.get([\\\"pointer\\\",\\\"show\\\"]),v=t.getModel(\\\"progress\\\"),m=v.get(\\\"show\\\"),x=t.getData(),_=x.mapDimension(\\\"value\\\"),b=+t.get(\\\"min\\\"),w=+t.get(\\\"max\\\"),S=[b,w],M=[o,a];(m||y)&&(x.diff(d).add(function(e){var n=x.get(_,e);if(y){var i=u(e,o);ks(i,{rotation:-((isNaN(+n)?M[0]:rr(n,S,M,!0))+Math.PI/2)},t),p.add(i),x.setItemGraphicEl(e,i)}if(m){var r=c(e,o),a=v.get(\\\"clip\\\");ks(r,{shape:{endAngle:rr(n,S,M,a)}},t),p.add(r),CR(t.seriesIndex,x.dataType,e,r),g[e]=r}}).update(function(e,n){var i=x.get(_,e);if(y){var r=d.getItemGraphicEl(n),a=r?r.rotation:o,s=u(e,a);s.rotation=a,As(s,{rotation:-((isNaN(+i)?M[0]:rr(i,S,M,!0))+Math.PI/2)},t),p.add(s),x.setItemGraphicEl(e,s)}if(m){var l=f[n],h=l?l.shape.endAngle:o,b=c(e,h),w=v.get(\\\"clip\\\");As(b,{shape:{endAngle:rr(i,S,M,w)}},t),p.add(b),CR(t.seriesIndex,x.dataType,e,b),g[e]=b}}).execute(),x.each(function(t){var e=x.getItemModel(t),n=e.getModel(\\\"emphasis\\\"),r=n.get(\\\"focus\\\"),o=n.get(\\\"blurScope\\\"),a=n.get(\\\"disabled\\\");if(y){var s=x.getItemGraphicEl(t),l=x.getItemVisual(t,\\\"style\\\"),u=l.fill;if(s instanceof fR){var c=s.style;s.useStyle(h({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),\\\"pointer\\\"!==s.type&&s.setColor(u);s.setStyle(e.getModel([\\\"pointer\\\",\\\"itemStyle\\\"]).getItemStyle()),\\\"auto\\\"===s.style.fill&&s.setStyle(\\\"fill\\\",i(rr(x.get(_,t),S,[0,1],!0))),s.z2EmphasisLift=0,es(s,e),Qa(s,r,o,a)}if(m){var p=g[t];p.useStyle(x.getItemVisual(t,\\\"style\\\")),p.setStyle(e.getModel([\\\"progress\\\",\\\"itemStyle\\\"]).getItemStyle()),p.z2EmphasisLift=0,es(p,e),Qa(p,r,o,a)}}),this._progressEls=g)},n.prototype._renderAnchor=function(t,e){var n=t.getModel(\\\"anchor\\\"),i=n.get(\\\"show\\\");if(i){var r=n.get(\\\"size\\\"),o=n.get(\\\"icon\\\"),a=n.get(\\\"offsetCenter\\\"),s=n.get(\\\"keepAspect\\\"),l=Gc(o,e.cx-r/2+or(a[0],e.r),e.cy-r/2+or(a[1],e.r),r,r,null,s);l.z2=n.get(\\\"showAbove\\\")?1:0,l.setStyle(n.getModel(\\\"itemStyle\\\").getItemStyle()),this.group.add(l)}},n.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension(\\\"value\\\"),l=+t.get(\\\"min\\\"),u=+t.get(\\\"max\\\"),h=new HP,c=[],p=[],d=t.isAnimationEnabled(),f=t.get([\\\"pointer\\\",\\\"showAbove\\\"]);a.diff(this._data).add(function(t){c[t]=new wR({silent:!0}),p[t]=new wR({silent:!0})}).update(function(t,e){c[t]=o._titleEls[e],p[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new HP,y=i(rr(o,[l,u],[0,1],!0)),v=n.getModel(\\\"title\\\");if(v.get(\\\"show\\\")){var m=v.get(\\\"offsetCenter\\\"),x=r.cx+or(m[0],r.r),_=r.cy+or(m[1],r.r),b=c[e];b.attr({z2:f?0:2,style:pl(v,{x:x,y:_,text:a.getName(e),align:\\\"center\\\",verticalAlign:\\\"middle\\\"},{inheritColor:y})}),g.add(b)}var w=n.getModel(\\\"detail\\\");if(w.get(\\\"show\\\")){var S=w.get(\\\"offsetCenter\\\"),M=r.cx+or(S[0],r.r),I=r.cy+or(S[1],r.r),T=or(w.get(\\\"width\\\"),r.r),C=or(w.get(\\\"height\\\"),r.r),D=t.get([\\\"progress\\\",\\\"show\\\"])?a.getItemVisual(e,\\\"style\\\").fill:y,b=p[e],A=w.get(\\\"formatter\\\");b.attr({z2:f?0:2,style:pl(w,{x:M,y:I,text:kw(o,A),width:isNaN(T)?null:T,height:isNaN(C)?null:C,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},{inheritColor:D})}),ml(b,{normal:w},o,function(t){return kw(t,A)}),d&&xl(b,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return kw(a?a.interpolatedValue:o,A)}}),g.add(b)}h.add(g)}),this.group.add(h),this._titleEls=c,this._detailEls=p},n.type=\\\"gauge\\\",n}(cB),TZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.visualStyleAccessPath=\\\"itemStyle\\\",e}return e(n,t),n.prototype.getInitialData=function(){return By(this,[\\\"value\\\"])},n.type=\\\"series.gauge\\\",n.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,rotate:0},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}},n}(sB);If(Lw);var CZ=[\\\"itemStyle\\\",\\\"opacity\\\"],DZ=function(t){function n(e,n){var i=t.call(this)||this,r=i,o=new TN,a=new wR;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return e(n,t),n.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel(\\\"emphasis\\\"),l=o.get(CZ);l=null==l?1:l,n||Ns(i),i.useStyle(t.getItemVisual(e,\\\"style\\\")),i.style.lineJoin=\\\"round\\\",n?(i.setShape({points:a.points}),i.style.opacity=0,ks(i,{style:{opacity:l}},r,e)):As(i,{style:{opacity:l},shape:{points:a.points}},r,e),es(i,o),this._updateLabel(t,e),Qa(this,s.get(\\\"focus\\\"),s.get(\\\"blurScope\\\"),s.get(\\\"disabled\\\"))},n.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,\\\"style\\\"),h=u.fill;hl(r,cl(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:h,outsideFill:h});var c=l.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new rL(c[0][0],c[0][1]):null},As(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),pg(n,dg(a),{stroke:h})},n}(MN),AZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.ignoreLabelLineUpdate=!0,e}return e(n,t),n.prototype.render=function(t){var e=t.getData(),n=this._data,i=this.group;e.diff(n).add(function(t){var n=new DZ(e,t);e.setItemGraphicEl(t,n),i.add(n)}).update(function(t,r){var o=n.getItemGraphicEl(r);o.updateData(e,t),i.add(o),e.setItemGraphicEl(t,o)}).remove(function(e){var i=n.getItemGraphicEl(e);Rs(i,t,e)}).execute(),this._data=e},n.prototype.remove=function(){this.group.removeAll(),this._data=null},n.prototype.dispose=function(){},n.type=\\\"funnel\\\",n}(cB),kZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new FW(Lk(this.getData,this),Lk(this.getRawData,this)),this._defaultLabelLine(e)},n.prototype.getInitialData=function(){return By(this,{coordDimensions:[\\\"value\\\"],encodeDefaulter:S(xu,this)})},n.prototype._defaultLabelLine=function(t){kr(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},n.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension(\\\"value\\\"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push(\\\"percent\\\"),i},n.type=\\\"series.funnel\\\",n.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\\\"}}},n}(sB);If(Ew);var LZ=function(){function t(){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}return t}(),PZ=function(t){function n(e){return t.call(this,e)||this}return e(n,t),n.prototype.getDefaultShape=function(){return new LZ},n.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()},n.prototype.highlight=function(){Ra(this)},n.prototype.downplay=function(){Na(this)},n}(uR),OZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._focusAdjacencyDisabled=!1,e}return e(n,t),n.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),h=t.getData(\\\"edge\\\"),c=t.get(\\\"orient\\\");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge(function(e){var n=new PZ,i=TR(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType=\\\"edge\\\";var r,a,u,p,d,f,g,y,v=e.getModel(),m=v.getModel(\\\"lineStyle\\\"),x=m.get(\\\"curveness\\\"),_=e.node1.getLayout(),b=e.node1.getModel(),w=b.get(\\\"localX\\\"),S=b.get(\\\"localY\\\"),M=e.node2.getLayout(),I=e.node2.getModel(),T=I.get(\\\"localX\\\"),C=I.get(\\\"localY\\\"),D=e.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=c,\\\"vertical\\\"===c?(r=(null!=w?w*s:_.x)+D.sy,a=(null!=S?S*l:_.y)+_.dy,u=(null!=T?T*s:M.x)+D.ty,p=null!=C?C*l:M.y,d=r,f=a*(1-x)+p*x,g=u,y=a*x+p*(1-x)):(r=(null!=w?w*s:_.x)+_.dx,a=(null!=S?S*l:_.y)+D.sy,u=null!=T?T*s:M.x,p=(null!=C?C*l:M.y)+D.ty,d=r*(1-x)+u*x,f=a,g=r*x+u*(1-x),y=p),n.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:d,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),zw(n.style,c,e);var A=\\\"\\\"+v.get(\\\"value\\\"),k=cl(v,\\\"edgeLabel\\\");hl(n,k,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,\\\"edge\\\",r,V(o,k.normal&&k.normal.get(\\\"formatter\\\"),A),a)}},labelDataIndex:e.dataIndex,defaultText:A}),n.setTextConfig({position:\\\"inside\\\"});var L=v.getModel(\\\"emphasis\\\");es(n,v,\\\"lineStyle\\\",function(t){var n=t.getItemStyle();return zw(n,c,e),n}),o.add(n),h.setItemGraphicEl(e.dataIndex,n);var P=L.get(\\\"focus\\\");Qa(n,\\\"adjacency\\\"===P?e.getAdjacentDataIndices():\\\"trajectory\\\"===P?e.getTrajectoryDataIndices():P,L.get(\\\"blurScope\\\"),L.get(\\\"disabled\\\"))}),r.eachNode(function(e){var n=e.getLayout(),i=e.getModel(),r=i.get(\\\"localX\\\"),a=i.get(\\\"localY\\\"),h=i.getModel(\\\"emphasis\\\"),c=new mR({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel(\\\"itemStyle\\\").getItemStyle(),z2:10});hl(c,cl(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,\\\"node\\\")}},labelDataIndex:e.dataIndex,defaultText:e.id}),c.disableLabelAnimation=!0,c.setStyle(\\\"fill\\\",e.getVisual(\\\"color\\\")),c.setStyle(\\\"decal\\\",e.getVisual(\\\"style\\\").decal),es(c,i),o.add(c),u.setItemGraphicEl(e.dataIndex,c),TR(c).dataType=\\\"node\\\";var p=h.get(\\\"focus\\\");Qa(c,\\\"adjacency\\\"===p?e.getAdjacentDataIndices():\\\"trajectory\\\"===p?e.getTrajectoryDataIndices():p,h.get(\\\"blurScope\\\"),h.get(\\\"disabled\\\"))}),u.eachItemGraphicEl(function(e,r){var o=u.getItemModel(r);o.get(\\\"draggable\\\")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:\\\"dragNode\\\",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor=\\\"move\\\")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(Bw(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData()},n.prototype.dispose=function(){},n.type=\\\"sankey\\\",n}(cB),RZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.getInitialData=function(t,e){function n(t,e){t.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}),e.wrapMethod(\\\"getItemModel\\\",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t})}var i=t.edges||t.links,r=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var a=this.levelModels,s=0;s=0&&(a[o[s].depth]=new gE(o[s],this,e));if(r&&i){var l=ub(r,i,this,!0,n);return l.data}},n.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},n.prototype.getGraph=function(){return this.getData().graph},n.prototype.getEdgeData=function(){return this.getGraph().edgeData},n.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if(\\\"edge\\\"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+\\\" -- \\\"+o.target;return Fh(\\\"nameValue\\\",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,h=this.getDataParams(t,n).data.name;return Fh(\\\"nameValue\\\",{name:null!=h?h+\\\"\\\":null,value:u,noValue:i(u)})},n.prototype.optionUpdated=function(){},n.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&\\\"node\\\"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},n.type=\\\"series.sankey\\\",n.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},edgeLabel:{show:!1,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},n}(sB);If(uS);var NZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._layers=[],e}return e(n,t),n.prototype.render=function(t){function e(t){return t.name}function n(e,n,s){var l=r._layers;if(\\\"remove\\\"===e)return void o.remove(l[n]);for(var u,h=[],p=[],d=a[n].indices,f=0;fa;++a){for(var s=r[a].name,l=0;li;++i)n[i]=i;var r=t.mapDimension(\\\"single\\\"),o=io(n,function(e){return t.get(\\\"name\\\",e)}),a=[];return o.buckets.each(function(e,n){e.sort(function(e,n){return t.get(r,e)-t.get(r,n)}),a.push({name:n,indices:e})}),a},n.prototype.getAxisTooltipData=function(t,e){M(t)||(t=t?[t]:[]);for(var n,i=this.getData(),r=this.getLayerSeries(),o=[],a=r.length,s=0;a>s;++s){for(var l=Number.MAX_VALUE,u=-1,h=r[s].indices.length,c=0;h>c;++c){var p=i.get(t[0],r[s].indices[c]),d=Math.abs(p-e);l>=d&&(n=p,l=d,u=r[s].indices[c])}o.push(u)}return{dataIndices:o,nestestValue:n}},n.prototype.formatTooltip=function(t){var e=this.getData(),n=e.getName(t),i=e.get(e.mapDimension(\\\"value\\\"),t);return Fh(\\\"nameValue\\\",{name:n,value:i})},n.type=\\\"series.themeRiver\\\",n.dependencies=[\\\"singleAxis\\\"],n.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}}},n}(sB);If(fS);var BZ=[\\\"itemStyle\\\",\\\"borderWidth\\\"],VZ=[{xy:\\\"x\\\",wh:\\\"width\\\",index:0,posDesc:[\\\"left\\\",\\\"right\\\"]},{xy:\\\"y\\\",wh:\\\"height\\\",index:1,posDesc:[\\\"top\\\",\\\"bottom\\\"]}],FZ=new oN,GZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:VZ[+l],categoryDim:VZ[1-+l]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=TS(r,t),n=gS(r,t,e,h),o=AS(r,h,n);r.setItemGraphicEl(t,o),i.add(o),NS(o,h,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(!r.hasValue(t))return void i.remove(n);var a=TS(r,t),s=gS(r,t,a,h),l=PS(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?kS(n,h,s):n=AS(r,h,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),NS(n,h,s)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&LS(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},n.prototype.remove=function(t){var e=this.group,n=this._data;t.get(\\\"animation\\\")?n&&n.eachItemGraphicEl(function(e){LS(n,TR(e).dataIndex,t,e)}):e.removeAll()},n.type=\\\"pictorialBar\\\",n}(cB),WZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.hasSymbolVisual=!0,e.defaultSymbol=\\\"roundRect\\\",e}return e(n,t),n.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},n.type=\\\"series.pictorialBar\\\",n.dependencies=[\\\"grid\\\"],n.defaultOption=Sl(uW.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\\\"}}}),n}(uW);If(zS);var HZ={color:\\\"fill\\\",borderColor:\\\"stroke\\\"},YZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},XZ=Kr(),UZ=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){this.currentZLevel=this.get(\\\"zlevel\\\",!0),this.currentZ=this.get(\\\"z\\\",!0)},n.prototype.getInitialData=function(){return Sd(null,this)},n.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=XZ(i).info),r},n.type=\\\"series.custom\\\",n.dependencies=[\\\"grid\\\",\\\"polar\\\",\\\"geo\\\",\\\"singleAxis\\\",\\\"calendar\\\"],n.defaultOption={coordinateSystem:\\\"cartesian2d\\\",z:2,legendHoverLink:!0,clip:!1},n}(sB),ZZ={position:[\\\"x\\\",\\\"y\\\"],scale:[\\\"scaleX\\\",\\\"scaleY\\\"],origin:[\\\"originX\\\",\\\"originY\\\"]},jZ=b(ZZ),qZ=(m(NP,function(t,e){return t[e]=1,t},{}),NP.join(\\\", \\\"),[\\\"\\\",\\\"style\\\",\\\"shape\\\",\\\"extra\\\"]),KZ=Kr(),$Z={},JZ={setTransform:function(t,e){return $Z.el[t]=e,this},getTransform:function(t){return $Z.el[t]},setShape:function(t,e){var n=$Z.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=$Z.el.shape;return e?e[t]:void 0},setStyle:function(t,e){var n=$Z.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=$Z.el.style;return e?e[t]:void 0},setExtra:function(t,e){var n=$Z.el.extra||($Z.el.extra={});return n[t]=e,this},getExtra:function(t){var e=$Z.el.extra;return e?e[t]:void 0}},QZ=Kr(),tj=[\\\"percent\\\",\\\"easing\\\",\\\"shape\\\",\\\"style\\\",\\\"extra\\\"],ej=\\\"emphasis\\\",nj=\\\"normal\\\",ij=\\\"blur\\\",rj=\\\"select\\\",oj=[nj,ej,ij,rj],aj={normal:[\\\"itemStyle\\\"],emphasis:[ej,\\\"itemStyle\\\"],blur:[ij,\\\"itemStyle\\\"],select:[rj,\\\"itemStyle\\\"]},sj={normal:[\\\"label\\\"],emphasis:[ej,\\\"label\\\"],blur:[ij,\\\"label\\\"],select:[rj,\\\"label\\\"]},lj=[\\\"x\\\",\\\"y\\\"],uj=\\\"e\\\\x00\\\\x00\\\",hj={normal:{},emphasis:{},blur:{},select:{}},cj={cartesian2d:VS,geo:GS,single:HS,polar:XS,calendar:US},pj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=SM(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){IM(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&eM(n,XZ(n).option,t)}).update(function(e,l){var u=r.getItemGraphicEl(l);IM(n,u,e,s(e,i),t,a,o)}).execute();var l=t.get(\\\"clip\\\",!0)?Lg(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},n.prototype.incrementalPrepareRender=function(){this.group.removeAll(),this._data=null},n.prototype.incrementalRender=function(t,e,n,i,r){function o(t){t.isGroup||(t.incremental=!0,t.ensureState(\\\"emphasis\\\").hoverLayer=!0)}for(var a=e.getData(),s=SM(e,a,n,i),l=this._progressiveEls=[],u=t.start;ua)return!0;if(o){var s=fv(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return n===!0},t.prototype.makeElOption=function(){},t.prototype.createPointerEl=function(t,e){var n=e.pointer;if(n){var i=dj(t).pointerEl=new QN[n.type](fj(e.pointer));t.add(i)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=dj(t).labelEl=new wR(fj(e.label));t.add(r),YM(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=dj(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=dj(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),YM(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel(\\\"handle\\\"),o=e.get(\\\"status\\\");if(!r.get(\\\"show\\\")||!o||\\\"hide\\\"===o)return i&&n.remove(i),void(this._handle=null);var a;this._handle||(a=!0,i=this._handle=tl(r.get(\\\"icon\\\"),{cursor:\\\"move\\\",draggable:!0,onmousemove:function(t){tL(t.event)},onmousedown:gj(this._onHandleDragMove,this,0,0),drift:gj(this._onHandleDragMove,this),ondragend:gj(this._onHandleDragEnd,this)}),n.add(i)),UM(i,e,!1),i.setStyle(r.getItemStyle(null,[\\\"color\\\",\\\"borderColor\\\",\\\"borderWidth\\\",\\\"opacity\\\",\\\"shadowColor\\\",\\\"shadowBlur\\\",\\\"shadowOffsetX\\\",\\\"shadowOffsetY\\\"]));var s=r.get(\\\"size\\\");M(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,mc(this,\\\"_doDispatchAxisPointer\\\",r.get(\\\"throttle\\\")||0,\\\"fixRate\\\"),this._moveHandleToValue(t,a)}},t.prototype._moveHandleToValue=function(t,e){WM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,XM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(XM(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(XM(i)),dj(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:\\\"updateAxisPointer\\\",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get(\\\"value\\\");this._moveHandleToValue(e),this._api.dispatchAction({type:\\\"hideTip\\\"})}},t.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),xc(this,\\\"_doDispatchAxisPointer\\\")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}(),vj=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;\\\"angle\\\"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),h=i.get(\\\"type\\\");if(h&&\\\"none\\\"!==h){var c=ZM(i),p=mj[h](o,a,u,l);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=i.get([\\\"label\\\",\\\"margin\\\"]),f=nI(e,n,i,a,d);jM(t,n,i,r,f)},n}(yj),mj={line:function(t,e,n,i){return\\\"angle\\\"===t.dim?{type:\\\"Line\\\",shape:QM(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 r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return\\\"angle\\\"===t.dim?{type:\\\"Sector\\\",shape:eI(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(-n+r/2)*o)}:{type:\\\"Sector\\\",shape:eI(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},xj=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get(\\\"type\\\"),l=iI(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&\\\"none\\\"!==s){var h=ZM(i),c=_j[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}var p=Yy(a.model,n);JM(e,t,p,n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=Yy(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]);var r=$M(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.grid,o=i.getGlobalExtent(!0),a=iI(r,i).getOtherAxis(i).getGlobalExtent(),s=\\\"x\\\"===i.dim?0:1,l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(o[1],l[s]),l[s]=Math.max(o[0],l[s]);var u=(a[1]+a[0])/2,h=[u,u];h[s]=l[s];var c=[{verticalAlign:\\\"middle\\\"},{align:\\\"center\\\"}];return{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:c[s]}},n}(yj),_j={line:function(t,e,n){var i=QM([e,n[0]],[e,n[1]],rI(t));return{type:\\\"Line\\\",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:\\\"Rect\\\",shape:tI([e-i/2,n[0]],[i,r],rI(t))}}},bj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"axisPointer\\\",n.defaultOption={show:\\\"auto\\\",z:50,type:\\\"line\\\",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}},n\\n}(HE),wj=Kr(),Sj=y,Mj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){var i=e.getComponent(\\\"tooltip\\\"),r=t.get(\\\"triggerOn\\\")||i&&i.get(\\\"triggerOn\\\")||\\\"mousemove|click\\\";oI(\\\"axisPointer\\\",n,function(t,e,n){\\\"none\\\"!==r&&(\\\"leave\\\"===t||r.indexOf(t)>=0)&&n({type:\\\"updateAxisPointer\\\",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},n.prototype.remove=function(t,e){cI(\\\"axisPointer\\\",e)},n.prototype.dispose=function(t,e){cI(\\\"axisPointer\\\",e)},n.type=\\\"axisPointer\\\",n}(lB),Ij=Kr(),Tj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},n.type=\\\"polar\\\",n.dependencies=[\\\"radiusAxis\\\",\\\"angleAxis\\\"],n.defaultOption={z:0,center:[\\\"50%\\\",\\\"50%\\\"],radius:\\\"80%\\\"},n}(HE),Cj=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getCoordSysModel=function(){return this.getReferringComponents(\\\"polar\\\",iO).models[0]},n.type=\\\"polarAxis\\\",n}(HE);f(Cj,gG);var Dj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"angleAxis\\\",n}(Cj),Aj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"radiusAxis\\\",n}(Cj),kj=function(t){function n(e,n){return t.call(this,\\\"radius\\\",e,n)||this}return e(n,t),n.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[\\\"radius\\\"===this.dim?0:1]},n}(RG);kj.prototype.dataToRadius=RG.prototype.dataToCoord,kj.prototype.radiusToData=RG.prototype.coordToData;var Lj=Kr(),Pj=function(t){function n(e,n){return t.call(this,\\\"angle\\\",e,n||[0,360])||this}return e(n,t),n.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)[\\\"radius\\\"===this.dim?0:1]},n.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=zi(null==o?\\\"\\\":o+\\\"\\\",e.getFont(),\\\"center\\\",\\\"top\\\"),u=Math.max(l.height,7),h=u/s;isNaN(h)&&(h=1/0);var c=Math.max(0,Math.floor(h)),p=Lj(t.model),d=p.lastAutoInterval,f=p.lastTickCount;return null!=d&&null!=f&&Math.abs(d-c)<=1&&Math.abs(f-r)<=1&&d>c?c=d:(p.lastTickCount=r,p.lastAutoInterval=c),c},n}(RG);Pj.prototype.dataToAngle=RG.prototype.dataToCoord,Pj.prototype.angleToData=RG.prototype.coordToData;var Oj=[\\\"radius\\\",\\\"angle\\\"],Rj=function(){function t(t){this.dimensions=Oj,this.type=\\\"polar\\\",this.cx=0,this.cy=0,this._radiusAxis=new kj,this._angleAxis=new Pj,this.axisPointerEnabled=!0,this.name=t||\\\"\\\",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e=\\\"_\\\"+t+\\\"Axis\\\";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.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},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale(\\\"ordinal\\\")[0]||this.getAxesByScale(\\\"time\\\")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&\\\"auto\\\"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=o>l?1:-1;o>l||l>a;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return o*o>=r&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=II(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=II(e);return i===this?this.pointToData(n):null},t}(),Nj={dimensions:Oj,create:function(t,e){var n=[];return t.eachComponent(\\\"polar\\\",function(t,i){var r=new Rj(i+\\\"\\\");r.update=CI;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel(\\\"radiusAxis\\\"),l=t.findAxisModel(\\\"angleAxis\\\");AI(o,s),AI(a,l),TI(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if(\\\"polar\\\"===t.get(\\\"coordinateSystem\\\")){var e=t.getReferringComponents(\\\"polar\\\",iO).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},Ej=[\\\"axisLine\\\",\\\"axisLabel\\\",\\\"axisTick\\\",\\\"minorTick\\\",\\\"splitLine\\\",\\\"minorSplitLine\\\",\\\"splitArea\\\"],zj=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.axisPointerClass=\\\"PolarAxisPointer\\\",e}return e(n,t),n.prototype.render=function(t){if(this.group.removeAll(),t.get(\\\"show\\\")){var e=t.axis,n=e.polar,i=n.getRadiusAxis().getExtent(),r=e.getTicksCoords(),o=e.getMinorTicksCoords(),a=v(e.getViewLabels(),function(t){t=s(t);var n=e.scale,i=\\\"ordinal\\\"===n.type?n.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=e.dataToCoord(i),t});PI(a),PI(r),y(Ej,function(s){!t.get([s,\\\"show\\\"])||e.scale.isBlank()&&\\\"axisLine\\\"!==s||Bj[s](this.group,t,n,r,o,i,a)},this)}},n.type=\\\"angleAxis\\\",n}(fH),Bj={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel([\\\"axisLine\\\",\\\"lineStyle\\\"]),l=LI(n),u=l?0:1;a=0===o[u]?new oN({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new wN({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel(\\\"axisTick\\\"),s=(a.get(\\\"inside\\\")?-1:1)*a.get(\\\"length\\\"),l=o[LI(n)],u=v(i,function(t){return new AN({shape:kI(n,[l,l+s],t.coord)})});t.add($N(u,{style:c(a.getModel(\\\"lineStyle\\\").getLineStyle(),{stroke:e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel(\\\"axisTick\\\"),s=e.getModel(\\\"minorTick\\\"),l=(a.get(\\\"inside\\\")?-1:1)*s.get(\\\"length\\\"),u=o[LI(n)],h=[],p=0;pd?\\\"left\\\":\\\"right\\\",y=Math.abs(p[1]-f)/c<.3?\\\"middle\\\":p[1]>f?\\\"top\\\":\\\"bottom\\\";if(s&&s[a]){var v=s[a];A(v)&&v.textStyle&&(r=new gE(v.textStyle,l,l.ecModel))}var m=new wR({silent:cH.isLabelSilent(e),style:pl(r,{x:p[0],y:p[1],fill:r.getTextColor()||e.get([\\\"axisLine\\\",\\\"lineStyle\\\",\\\"color\\\"]),text:i.formattedLabel,align:g,verticalAlign:y})});if(t.add(m),h){var x=cH.makeAxisEventDataBase(e);x.targetType=\\\"axisLabel\\\",x.value=i.rawLabel,TR(m).eventData=x}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel(\\\"splitLine\\\"),s=a.getModel(\\\"lineStyle\\\"),l=s.get(\\\"color\\\"),u=0;l=l instanceof Array?l:[l];for(var h=[],p=0;p=v;v++){var x=v===m?i[0].coord:i[v].coord,_=u++%l.length;h[_]=h[_]||[],h[_].push(new _N({shape:{cx:n.cx,cy:n.cy,r0:f,r:g,startAngle:d,endAngle:-x*p,clockwise:y},silent:!0})),d=-x*p}for(var v=0;v=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[\\\"horizontal\\\"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r=\\\"horizontal\\\"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=FI(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=FI(e);return i===this?this.pointToData(n):null},t}(),tq={create:GI,dimensions:Jj},eq=[\\\"x\\\",\\\"y\\\"],nq=[\\\"width\\\",\\\"height\\\"],iq=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=HI(a,1-WI(o)),l=a.dataToPoint(e)[0],u=i.get(\\\"type\\\");if(u&&\\\"none\\\"!==u){var h=ZM(i),c=rq[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}var p=VI(n);JM(e,t,p,n,i,r)},n.prototype.getHandleTransform=function(t,e,n){var i=VI(e,{labelInside:!1});i.labelMargin=n.get([\\\"handle\\\",\\\"margin\\\"]);var r=$M(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(t,e,n){var i=n.axis,r=i.coordinateSystem,o=WI(i),a=HI(r,o),s=[t.x,t.y];s[o]+=e[o],s[o]=Math.min(a[1],s[o]),s[o]=Math.max(a[0],s[o]);var l=HI(r,1-o),u=(l[1]+l[0])/2,h=[u,u];return h[o]=s[o],{x:s[0],y:s[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:\\\"middle\\\"}}},n}(yj),rq={line:function(t,e,n){var i=QM([e,n[0]],[e,n[1]],WI(t));return{type:\\\"Line\\\",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:\\\"Rect\\\",shape:tI([e-i/2,n[0]],[i,r],WI(t))}}},oq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"single\\\",n}(lB);If(YI);var aq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(e){var n=fu(e);t.prototype.init.apply(this,arguments),XI(e,n)},n.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),XI(this.option,e)},n.prototype.getCellSize=function(){return this.option.cellSize},n.type=\\\"calendar\\\",n.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}},n}(HE),sq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e){var n=this.group;n.removeAll();var i=t.coordinateSystem,r=i.getRangeInfo(),o=i.getOrient(),a=e.getLocaleModel();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,a,o,n),this._renderWeekText(t,a,r,o,n)},n.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel(\\\"itemStyle\\\").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new mR({shape:{x:l[0],y:l[1],width:o,height:a},cursor:\\\"default\\\",style:r});n.add(u)}},n.prototype._renderLines=function(t,e,n,i){function r(e){o._firstDayOfMonth.push(a.getDateInfo(e)),o._firstDayPoints.push(a.dataToRect([e],!1).tl);var r=o._getLinePointsOfOneWeek(t,e,n);o._tlpoints.push(r[0]),o._blpoints.push(r[r.length-1]),l&&o._drawSplitline(r,s,i)}var o=this,a=t.coordinateSystem,s=t.getModel([\\\"splitLine\\\",\\\"lineStyle\\\"]).getLineStyle(),l=t.get([\\\"splitLine\\\",\\\"show\\\"]),u=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){r(h.formatedDate),0===c&&(h=a.getDateInfo(e.start.y+\\\"-\\\"+e.start.m));var p=h.date;p.setMonth(p.getMonth()+1),h=a.getDateInfo(p)}r(a.getNextNDay(e.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,u,n),s,i),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,u,n),s,i)},n.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r=\\\"horizontal\\\"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},n.prototype._drawSplitline=function(t,e,n){var i=new TN({z2:20,shape:{points:t},style:e});n.add(i)},n.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;7>a;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l[\\\"horizontal\\\"===n?\\\"bl\\\":\\\"tr\\\"]}return o},n.prototype._formatterLabel=function(t,e){return T(t)&&t?eu(t,e):I(t)?t(e):e.nameMap},n.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=[\\\"center\\\",\\\"bottom\\\"];\\\"bottom\\\"===i?(a+=r,s=[\\\"center\\\",\\\"top\\\"]):\\\"left\\\"===i?o-=r:\\\"right\\\"===i?(o+=r,s=[\\\"center\\\",\\\"top\\\"]):a-=r;var l=0;return(\\\"left\\\"===i||\\\"right\\\"===i)&&(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},n.prototype._renderYearText=function(t,e,n,i){var r=t.getModel(\\\"yearLabel\\\");if(r.get(\\\"show\\\")){var o=r.get(\\\"margin\\\"),a=r.get(\\\"position\\\");a||(a=\\\"horizontal\\\"!==n?\\\"top\\\":\\\"left\\\");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,h=\\\"horizontal\\\"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},p=e.start.y;+e.end.y>+e.start.y&&(p=p+\\\"-\\\"+e.end.y);var d=r.get(\\\"formatter\\\"),f={start:e.start.y,end:e.end.y,nameMap:p},g=this._formatterLabel(d,f),y=new wR({z2:30,style:pl(r,{text:g})});y.attr(this._yearTextPositionControl(y,c[a],n,a,o)),i.add(y)}},n.prototype._monthTextPositionControl=function(t,e,n,i,r){var o=\\\"left\\\",a=\\\"top\\\",s=t[0],l=t[1];return\\\"horizontal\\\"===n?(l+=r,e&&(o=\\\"center\\\"),\\\"start\\\"===i&&(a=\\\"bottom\\\")):(s+=r,e&&(a=\\\"middle\\\"),\\\"start\\\"===i&&(o=\\\"right\\\")),{x:s,y:l,align:o,verticalAlign:a}},n.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel(\\\"monthLabel\\\");if(r.get(\\\"show\\\")){var o=r.get(\\\"nameMap\\\"),a=r.get(\\\"margin\\\"),s=r.get(\\\"position\\\"),l=r.get(\\\"align\\\"),u=[this._tlpoints,this._blpoints];(!o||T(o))&&(o&&(e=Tl(o)||e),o=e.get([\\\"time\\\",\\\"monthAbbr\\\"])||[]);var c=\\\"start\\\"===s?0:1,p=\\\"horizontal\\\"===n?0:1;a=\\\"start\\\"===s?-a:a;for(var d=\\\"center\\\"===l,f=0;fg;g++){var y=a.getNextNDay(d,g),m=a.dataToRect([y.time],!1).center,x=g;x=Math.abs((g+c)%7);var _=new wR({z2:30,style:h(pl(o,{text:l[x]}),this._weekTextPositionControl(m,i,s,u,f))});r.add(_)}}},n.type=\\\"calendar\\\",n}(lB),lq=864e5,uq=function(){function t(e){this.type=\\\"calendar\\\",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:\\\"time\\\",type:\\\"time\\\"},\\\"value\\\"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=yr(t);var e=t.getFullYear(),n=t.getMonth()+1,i=10>n?\\\"0\\\"+n:\\\"\\\"+n,r=t.getDate(),o=10>r?\\\"0\\\"+r:\\\"\\\"+r,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+\\\"\\\",m:i,d:o,day:a,time:t.getTime(),formatedDate:e+\\\"-\\\"+i+\\\"-\\\"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},t.prototype.update=function(t,e){function n(t,e){return null!=t[e]&&\\\"auto\\\"!==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 i=this._rangeInfo.weeks||1,r=[\\\"width\\\",\\\"height\\\"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=\\\"horizontal\\\"===this._orient?[i,7]:[7,i];y([0,1],function(t){n(o,t)&&(a[r[t]]=o[t]*s[t])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=uu(a,l);y([0,1],function(t){n(o,t)||(o[t]=u[r[t]]/s[t])}),this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(t,e){M(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/lq)-Math.floor(n[0].time/lq)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?-u+1:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent(\\\"calendar\\\",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){\\\"calendar\\\"===t.get(\\\"coordinateSystem\\\")&&(t.coordinateSystem=i[t.get(\\\"calendarIndex\\\")||0])}),i},t.dimensions=[\\\"time\\\",\\\"value\\\"],t}();If(ZI);var hq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:\\\"box\\\",ignoreSize:!0},e}return e(n,t),n.type=\\\"title\\\",n.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\\\"}},n}(HE),cq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get(\\\"show\\\")){var i=this.group,r=t.getModel(\\\"textStyle\\\"),o=t.getModel(\\\"subtextStyle\\\"),a=t.get(\\\"textAlign\\\"),s=B(t.get(\\\"textBaseline\\\"),t.get(\\\"textVerticalAlign\\\")),l=new wR({style:pl(r,{text:t.get(\\\"text\\\"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get(\\\"subtext\\\"),c=new wR({style:pl(o,{text:h,fill:o.getTextColor(),y:u.height+t.get(\\\"itemGap\\\"),verticalAlign:\\\"top\\\"},{disableBox:!0}),z2:10}),p=t.get(\\\"link\\\"),d=t.get(\\\"sublink\\\"),f=t.get(\\\"triggerEvent\\\",!0);l.silent=!p&&!f,c.silent=!d&&!f,p&&l.on(\\\"click\\\",function(){au(p,\\\"_\\\"+t.get(\\\"target\\\"))}),d&&c.on(\\\"click\\\",function(){au(d,\\\"_\\\"+t.get(\\\"subtarget\\\"))}),TR(l).eventData=TR(c).eventData=f?{componentType:\\\"title\\\",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=uu(y,{width:n.getWidth(),height:n.getHeight()},t.get(\\\"padding\\\"));a||(a=t.get(\\\"left\\\")||t.get(\\\"right\\\"),\\\"middle\\\"===a&&(a=\\\"center\\\"),\\\"right\\\"===a?v.x+=v.width:\\\"center\\\"===a&&(v.x+=v.width/2)),s||(s=t.get(\\\"top\\\")||t.get(\\\"bottom\\\"),\\\"center\\\"===s&&(s=\\\"middle\\\"),\\\"bottom\\\"===s?v.y+=v.height:\\\"middle\\\"===s&&(v.y+=v.height/2),s=s||\\\"top\\\"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle([\\\"color\\\",\\\"opacity\\\"]);_.fill=t.get(\\\"backgroundColor\\\");var b=new mR({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get(\\\"borderRadius\\\")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},n.type=\\\"title\\\",n}(lB);If(jI);var pq=function(t,e){return\\\"all\\\"===e?{type:\\\"all\\\",title:t.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"all\\\"])}:\\\"inverse\\\"===e?{type:\\\"inverse\\\",title:t.getLocaleModel().get([\\\"legend\\\",\\\"selector\\\",\\\"inverse\\\"])}:void 0},dq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.layoutMode={type:\\\"box\\\",ignoreSize:!0},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},n.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;e===!0&&(e=t.selector=[\\\"all\\\",\\\"inverse\\\"]),M(e)&&y(e,function(t,i){T(t)&&(t={type:t}),e[i]=l(t,pq(n,t.type))})},n.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=0},n.prototype.getOrient=function(){return\\\"vertical\\\"===this.get(\\\"orient\\\")?{index:1,name:\\\"vertical\\\"}:{index:0,name:\\\"horizontal\\\"}},n.type=\\\"legend.plain\\\",n.dependencies=[\\\"series\\\"],n.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}},n}(HE),fq=S,gq=y,yq=HP,vq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!1,e}return e(n,t),n.prototype.init=function(){this.group.add(this._contentGroup=new yq),this.group.add(this._selectorGroup=new yq),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get(\\\"show\\\",!0)){var r=t.get(\\\"align\\\"),o=t.get(\\\"orient\\\");r&&\\\"auto\\\"!==r||(r=\\\"right\\\"===t.get(\\\"left\\\")&&\\\"vertical\\\"===o?\\\"right\\\":\\\"left\\\");var a=t.get(\\\"selector\\\",!0),s=t.get(\\\"selectorPosition\\\",!0);!a||s&&\\\"auto\\\"!==s||(s=\\\"horizontal\\\"===o?\\\"end\\\":\\\"start\\\"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get(\\\"padding\\\"),p=uu(l,u,h),d=this.layoutInner(t,r,p,i,a,s),f=uu(c({width:d.width,height:d.height},l),u,h);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KI(d,t))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=Z(),u=e.get(\\\"selectedMode\\\"),c=[];n.eachRawSeries(function(t){!t.get(\\\"legendHoverLink\\\")&&c.push(t.id)}),gq(e.getData(),function(r,o){var a=r.get(\\\"name\\\");if(!this.newlineDisabled&&(\\\"\\\"===a||\\\"\\\\n\\\"===a)){var p=new yq;return p.newline=!0,void s.add(p)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var f=d.getData(),g=f.getVisual(\\\"legendLineStyle\\\")||{},y=f.getVisual(\\\"legendIcon\\\"),v=f.getVisual(\\\"style\\\"),m=this._createItem(d,a,o,r,e,t,g,v,y,u,i);m.on(\\\"click\\\",fq(QI,a,null,i,c)).on(\\\"mouseover\\\",fq(eT,d.name,null,i,c)).on(\\\"mouseout\\\",fq(nT,d.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries(function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),d=s.getItemVisual(p,\\\"style\\\"),f=s.getItemVisual(p,\\\"legendIcon\\\"),g=En(d.fill);g&&0===g[3]&&(g[3]=.2,d=h(h({},d),{fill:Xn(g,\\\"rgba\\\")}));var y=this._createItem(n,a,o,r,e,t,{},d,f,u,i);y.on(\\\"click\\\",fq(QI,null,a,i,c)).on(\\\"mouseover\\\",fq(eT,null,a,i,c)).on(\\\"mouseout\\\",fq(nT,null,a,i,c)),l.set(a,!0)}},this)},this),r&&this._createSelector(r,e,i,o,a)},n.prototype._createSelector=function(t,e,n){var i=this.getSelectorGroup();gq(t,function(t){var r=t.type,o=new wR({style:{x:0,y:0,align:\\\"center\\\",verticalAlign:\\\"middle\\\"},onclick:function(){n.dispatchAction({type:\\\"all\\\"===r?\\\"legendAllSelect\\\":\\\"legendInverseSelect\\\"})}});i.add(o);var a=e.getModel(\\\"selectorLabel\\\"),s=e.getModel([\\\"emphasis\\\",\\\"selectorLabel\\\"]);hl(o,{normal:a,emphasis:s},{defaultText:t.title}),$a(o)})},n.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get(\\\"itemWidth\\\"),d=r.get(\\\"itemHeight\\\"),f=r.isSelected(e),g=i.get(\\\"symbolRotate\\\"),y=i.get(\\\"symbolKeepAspect\\\"),v=i.get(\\\"icon\\\");l=v||l||\\\"roundRect\\\";var m=$I(l,i,a,s,c,f,h),x=new yq,_=i.getModel(\\\"textStyle\\\");if(!I(t.getLegendIcon)||v&&\\\"inherit\\\"!==v){var b=\\\"inherit\\\"===v&&t.getData().getVisual(\\\"symbol\\\")?\\\"inherit\\\"===g?t.getData().getVisual(\\\"symbolRotate\\\"):g:0;x.add(JI({itemWidth:p,itemHeight:d,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var w=\\\"left\\\"===o?p+5:-5,S=o,M=r.get(\\\"formatter\\\"),C=e;T(M)&&M?C=M.replace(\\\"{name}\\\",null!=e?e:\\\"\\\"):I(M)&&(C=M(e));var D=f?_.getTextColor():i.get(\\\"inactiveColor\\\");x.add(new wR({style:pl(_,{text:C,x:w,y:d/2,fill:D,align:S,verticalAlign:\\\"middle\\\"},{inheritColor:D})}));var A=new mR({shape:x.getBoundingRect(),invisible:!0}),k=i.getModel(\\\"tooltip\\\");return k.get(\\\"show\\\")&&ol({el:A,componentModel:r,itemName:e,itemTooltipOption:k.option}),x.add(A),x.eachChild(function(t){t.silent=!0}),A.silent=!u,this.getContentGroup().add(x),$a(x),x.__legendDataIndex=n,x},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();GE(t.get(\\\"orient\\\"),a,t.get(\\\"itemGap\\\"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){GE(\\\"horizontal\\\",s,t.get(\\\"selectorItemGap\\\",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get(\\\"selectorButtonGap\\\",!0),d=t.getOrient().index,f=0===d?\\\"width\\\":\\\"height\\\",g=0===d?\\\"height\\\":\\\"width\\\",y=0===d?\\\"y\\\":\\\"x\\\";\\\"end\\\"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+p+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-d]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type=\\\"legend.plain\\\",n}(lB),mq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},n.prototype.init=function(e,n,i){var r=fu(e);t.prototype.init.call(this,e,n,i),sT(this,e,r)},n.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),sT(this,this.option,e)},n.type=\\\"legend.scroll\\\",n.defaultOption=Sl(dq.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}),n}(dq),xq=HP,_q=[\\\"width\\\",\\\"height\\\"],bq=[\\\"x\\\",\\\"y\\\"],wq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.newlineDisabled=!0,e._currentIndex=0,e}return e(n,t),n.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new xq),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new xq)},n.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(e,n,i,r,o,a,s){function l(t,e){var i=t+\\\"DataIndex\\\",o=tl(n.get(\\\"pageIcons\\\",!0)[n.getOrient().name][e],{onclick:Lk(u._pageGo,u,i,n,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});o.name=t,h.add(o)}var u=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var h=this._controllerGroup,c=n.get(\\\"pageIconSize\\\",!0),p=M(c)?c:[c,c];l(\\\"pagePrev\\\",0);var d=n.getModel(\\\"pageTextStyle\\\");h.add(new wR({name:\\\"pageText\\\",style:{text:\\\"xx/xx\\\",fill:d.getTextColor(),font:d.getFont(),verticalAlign:\\\"middle\\\",align:\\\"center\\\"},silent:!0})),l(\\\"pageNext\\\",1)},n.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),l=t.getOrient().index,u=_q[l],h=bq[l],c=_q[1-l],p=bq[1-l];r&&GE(\\\"horizontal\\\",a,t.get(\\\"selectorItemGap\\\",!0));var d=t.get(\\\"selectorButtonGap\\\",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],y=s(n);r&&(y[u]=n[u]-f[u]-d);var v=this._layoutContentAndController(t,i,y,l,u,c,p,h);if(r){if(\\\"end\\\"===o)g[l]+=v[u]+d;else{var m=f[u]+d;g[l]-=m,v[h]-=m}v[u]+=f[u]+d,g[1-l]+=v[p]+v[c]/2-f[c]/2,v[c]=Math.max(v[c],f[c]),v[p]=Math.min(v[p],f[p]+g[1-l]),a.x=g[0],a.y=g[1],a.markRedraw()}return v},n.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;GE(t.get(\\\"orient\\\"),l,t.get(\\\"itemGap\\\"),i?n.width:null,i?null:n.height),GE(\\\"horizontal\\\",h,t.get(\\\"pageButtonItemGap\\\",!0));var c=l.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-p.x,-p.y],v=B(t.get(\\\"pageButtonGap\\\",!0),t.get(\\\"itemGap\\\",!0));if(d){var m=t.get(\\\"pageButtonPosition\\\",!0);\\\"end\\\"===m?y[i]+=n[r]-p[r]:g[i]+=p[r]+v}y[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var x={x:0,y:0};if(x[r]=d?n[r]:c[r],x[o]=Math.max(c[o],p[o]),x[a]=Math.min(0,p[a]+y[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-v,0),_[o]=x[o],u.setClipPath(new mR({shape:_})),u.__rectSize=_[r]}else h.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return null!=b.pageIndex&&As(l,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),x},n.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:\\\"legendScroll\\\",scrollDataIndex:i,legendId:e.id})},n.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;y([\\\"pagePrev\\\",\\\"pageNext\\\"],function(i){var r=i+\\\"DataIndex\\\",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle(\\\"fill\\\",o?t.get(\\\"pageIconColor\\\",!0):t.get(\\\"pageIconInactiveColor\\\",!0)),a.cursor=o?\\\"pointer\\\":\\\"default\\\")});var i=n.childOfName(\\\"pageText\\\"),r=t.get(\\\"pageFormatter\\\"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle(\\\"text\\\",T(r)?r.replace(\\\"{current}\\\",null==a?\\\"\\\":a+\\\"\\\").replace(\\\"{total}\\\",null==s?\\\"\\\":s+\\\"\\\"):r({current:a,total:s}))},n.prototype._getPageInfo=function(t){function e(t){if(t){var e=t.getBoundingRect(),n=e[l]+t[l];return{s:n,e:n+e[s],i:t.__legendDataIndex}}}function n(t,e){return t.e>=e&&t.s<=e+o}var i=t.get(\\\"scrollDataIndex\\\",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=t.getOrient().index,s=_q[a],l=bq[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=e(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,x=null;p>=y;++y)x=e(h[y]),(!x&&m.e>v.s+o||x&&!n(x,v.s))&&(v=m.i>v.i?m:x,v&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount)),m=x;for(var y=u-1,v=g,m=g,x=null;y>=-1;--y)x=e(h[y]),x&&n(m,x.s)||!(v.i=0?this._tryShow(n,i):\\\"leave\\\"===t&&this._hide(i))},this))},n.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get(\\\"triggerOn\\\");if(null!=this._lastX&&null!=this._lastY&&\\\"none\\\"!==i&&\\\"click\\\"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!uk.node&&n.getDom()){var r=IT(i,n);this._ticket=\\\"\\\";var o=i.dataByCoordSys,a=kT(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:\\\"bottom\\\"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Lq;l.x=i.x,l.y=i.y,l.update(),TR(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=pI(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:\\\"bottom\\\"},r)}else 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},r))}},n.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get(\\\"hideDelay\\\")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(IT(i,n))},n.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent(\\\"axisPointer\\\").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=MT([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if(\\\"axis\\\"===u.get(\\\"trigger\\\"))return n.dispatchAction({type:\\\"updateAxisPointer\\\",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},n.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){this._lastDataByCoordSys=null;var o,a;Vc(n,function(t){return null!=TR(t).dataIndex?(o=t,!0):null!=TR(t).tooltipConfig?(a=t,!0):void 0},!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},n.prototype._showOrMove=function(t,e){var n=t.get(\\\"showDelay\\\");e=Lk(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},n.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=MT([e.tooltipOption],i),a=this._renderMode,s=[],l=Fh(\\\"section\\\",{blocks:[],noHeader:!0}),u=[],c=new rB;y(t,function(t){y(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+\\\"Axis\\\",t.axisIndex),r=t.value;if(e&&null!=r){var o=KM(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),p=Fh(\\\"section\\\",{header:o,noHeader:!H(o),sortBlocks:!0,blocks:[]});l.blocks.push(p),y(t.seriesDataIndices,function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,g=d.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=ff(e.axis,{value:r}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker(\\\"item\\\",ou(g.color),a);var y=_h(d.formatTooltip(f,!0,null)),v=y.frag;if(v){var m=MT([d],i).get(\\\"valueFormatter\\\");p.blocks.push(m?h({valueFormatter:m},v):v)}y.text&&u.push(y.text),s.push(g)}})}})}),l.blocks.reverse(),u.reverse();var p=e.position,d=o.get(\\\"order\\\"),f=Uh(l,c,a,d,n.get(\\\"useUTC\\\"),o.get(\\\"textStyle\\\"));f&&u.unshift(f);var g=\\\"richText\\\"===a?\\\"\\\\n\\\\n\\\":\\\"
\\\",v=u.join(g);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+\\\"\\\",r[0],r[1],p,null,c)})},n.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=TR(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),p=this._renderMode,d=t.positionDefault,f=MT([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=f.get(\\\"trigger\\\");if(null==g||\\\"item\\\"===g){var y=s.getDataParams(l,u),v=new rB;y.marker=v.makeTooltipMarker(\\\"item\\\",ou(y.color),p);var m=_h(s.formatTooltip(l,!1,u)),x=f.get(\\\"order\\\"),_=f.get(\\\"valueFormatter\\\"),b=m.frag,w=b?Uh(_?h({valueFormatter:_},b):b,v,p,x,i.get(\\\"useUTC\\\"),f.get(\\\"textStyle\\\")):m.text,S=\\\"item_\\\"+s.name+\\\"_\\\"+l;this._showOrMove(f,function(){this._showTooltipContent(f,w,y,S,t.offsetX,t.offsetY,t.position,t.target,v)}),n({type:\\\"showTip\\\",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},n.prototype._showComponentItemTooltip=function(t,e,n){var i=TR(e),r=i.tooltipConfig,o=r.option||{};if(T(o)){var a=o;o={content:a,formatter:a}}var l=[o],u=this._ecModel.getComponent(i.componentMainType,i.componentIndex);u&&l.push(u),l.push({formatter:o.content});var h=t.positionDefault,c=MT(l,this._tooltipModel,h?{position:h}:null),p=c.get(\\\"content\\\"),d=Math.random()+\\\"\\\",f=new rB;this._showOrMove(c,function(){var n=s(c.get(\\\"formatterParams\\\")||{});this._showTooltipContent(c,p,n,d,t.offsetX,t.offsetY,t.position,e,f)}),n({type:\\\"showTip\\\",from:this.uid})},n.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket=\\\"\\\",t.get(\\\"showContent\\\")&&t.get(\\\"show\\\")){var u=this._tooltipContent;u.setEnterable(t.get(\\\"enterable\\\"));var h=t.get(\\\"formatter\\\");a=a||t.get(\\\"position\\\");var c=e,p=this._getNearestPoint([r,o],n,t.get(\\\"trigger\\\"),t.get(\\\"borderColor\\\")),d=p.color;if(h)if(T(h)){var f=t.ecModel.get(\\\"useUTC\\\"),g=M(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf(\\\"time\\\")>=0;c=h,y&&(c=Pl(g.axisValue,c,f)),c=tu(c,n,!0)}else if(I(h)){var v=Lk(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,c=h(n,i,v)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},n.prototype._getNearestPoint=function(t,e,n,i){return\\\"axis\\\"===n||M(e)?{color:i||(\\\"html\\\"===this._renderMode?\\\"#fff\\\":\\\"none\\\")}:M(e)?void 0:{color:i||e.color||e.borderColor}},n.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get(\\\"position\\\");var u=r.getSize(),h=t.get(\\\"align\\\"),c=t.get(\\\"verticalAlign\\\"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),I(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),M(e))n=or(e[0],s),i=or(e[1],l);else if(A(e)){var d=e;d.width=u[0],d.height=u[1];var f=uu(d,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(T(e)&&a){var g=DT(e,p,u,t.get(\\\"borderWidth\\\"));n=g[0],i=g[1]}else{var g=TT(n,i,r,s,l,h?null:20,c?null:20);n=g[0],i=g[1]}if(h&&(n-=AT(h)?u[0]/2:\\\"right\\\"===h?u[0]:0),c&&(i-=AT(c)?u[1]/2:\\\"bottom\\\"===c?u[1]:0),hT(t)){var g=CT(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},n.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&y(n,function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&y(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&y(a,function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&y(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},n.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:\\\"hideTip\\\",from:this.uid})},n.prototype.dispose=function(t,e){!uk.node&&e.getDom()&&(xc(this,\\\"_updatePosition\\\"),this._tooltipContent.dispose(),cI(\\\"itemTooltip\\\",e))},n.type=\\\"tooltip\\\",n}(lB);If(LT);var Oq=Kr(),Rq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.createdBySelf=!1,e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},n.prototype.isAnimationEnabled=function(){if(uk.node)return!1;var t=this.__hostSeries;return this.getShallow(\\\"animation\\\")&&t&&t.isAnimationEnabled()},n.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},n.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),o=Oq(t)[r];return n&&n.data?(o?o._mergeOption(n,e,!0):(i&&OT(n),y(n.data,function(t){t instanceof Array?(OT(t[0]),OT(t[1])):OT(t)}),o=this.createMarkerModelFromSeries(n,this,e),h(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),void(Oq(t)[r]=o)):void(Oq(t)[r]=null)},this)},n.prototype.formatTooltip=function(t){var e=this.getData(),n=this.getRawValue(t),i=e.getName(t);return Fh(\\\"section\\\",{header:this.name,blocks:[Fh(\\\"nameValue\\\",{name:i,value:n,noName:!i,noValue:null==n})]})},n.prototype.getData=function(){return this._data},n.prototype.setData=function(t){this._data=t},n.getMarkerModelFromSeries=function(t,e){return Oq(t)[e]},n.type=\\\"marker\\\",n.dependencies=[\\\"series\\\",\\\"grid\\\",\\\"polar\\\",\\\"geo\\\"],n}(HE);f(Rq,Fz.prototype);var Nq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type=\\\"markPoint\\\",n.defaultOption={z:5,symbol:\\\"pin\\\",symbolSize:50,tooltip:{trigger:\\\"item\\\"},label:{show:!0,position:\\\"inside\\\"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},n}(Rq),Eq={min:S(ET,\\\"min\\\"),max:S(ET,\\\"max\\\"),average:S(ET,\\\"average\\\"),median:S(ET,\\\"median\\\")},zq=Kr(),Bq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this.markerGroupMap=Z()},n.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){zq(t).keep=!1}),e.eachSeries(function(t){var r=Rq.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){!zq(t).keep&&i.group.remove(t.group)})},n.prototype.markKeep=function(t){zq(t).keep=!0},n.prototype.toggleBlurSeries=function(t,e){var n=this;y(t,function(t){var i=Rq.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl(function(t){t&&(e?Ea(t):za(t))})}})},n.type=\\\"marker\\\",n}(lB),Vq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Rq.getMarkerModelFromSeries(t,\\\"markPoint\\\");e&&(YT(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new CW),u=XT(r,t,e);e.setData(u),YT(e.getData(),t,i),u.each(function(t){var n=u.getItemModel(t),i=n.getShallow(\\\"symbol\\\"),r=n.getShallow(\\\"symbolSize\\\"),o=n.getShallow(\\\"symbolRotate\\\"),s=n.getShallow(\\\"symbolOffset\\\"),l=n.getShallow(\\\"symbolKeepAspect\\\");if(I(i)||I(r)||I(o)||I(s)){var h=e.getRawValue(t),c=e.getDataParams(t);I(i)&&(i=i(h,c)),I(r)&&(r=r(h,c)),I(o)&&(o=o(h,c)),I(s)&&(s=s(h,c))}var p=n.getModel(\\\"itemStyle\\\").getItemStyle(),d=Rc(a,\\\"color\\\");p.fill||(p.fill=d),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:p})}),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){TR(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get(\\\"silent\\\")||t.get(\\\"silent\\\")},n.type=\\\"markPoint\\\",n}(Bq);If(UT);var Fq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type=\\\"markLine\\\",n.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\\\"},n}(Rq),Gq=Kr(),Wq=function(t,e,n,i){var r,o=t.getData();if(M(i))r=i;else{var a=i.type;if(\\\"min\\\"===a||\\\"max\\\"===a||\\\"average\\\"===a||\\\"median\\\"===a||null!=i.xAxis||null!=i.yAxis){var u=void 0,c=void 0;if(null!=i.yAxis||null!=i.xAxis)u=e.getAxis(null!=i.yAxis?\\\"y\\\":\\\"x\\\"),c=z(i.yAxis,i.xAxis);else{var p=BT(i,o,e,t);u=p.valueAxis;var d=_d(o,p.valueDataDim);c=HT(o,d,a)}var f=\\\"x\\\"===u.dim?0:1,g=1-f,y=s(i),v={coord:[]};y.type=null,y.coord=[],y.coord[g]=-1/0,v.coord[g]=1/0;var m=n.get(\\\"precision\\\");m>=0&&D(c)&&(c=+c.toFixed(Math.min(m,20))),y.coord[f]=v.coord[f]=c,r=[y,v,{type:a,valueIndex:i.valueIndex,value:c}]}else r=[]}var x=[zT(t,r[0]),zT(t,r[1]),h({},r[2])];return x[2].type=x[2].type||null,l(x[2],x[0]),l(x[2],x[1]),x\\n},Hq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Rq.getMarkerModelFromSeries(t,\\\"markLine\\\");if(e){var i=e.getData(),r=Gq(e).from,o=Gq(e).to;r.each(function(e){KT(r,e,!0,t,n),KT(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},n.prototype.renderSeries=function(t,e,n,i){function r(e,n,r){var o=e.getItemModel(n);KT(e,n,r,t,i);var a=o.getModel(\\\"itemStyle\\\").getItemStyle();null==a.fill&&(a.fill=Rc(s,\\\"color\\\")),e.setItemVisual(n,{symbolKeepAspect:o.get(\\\"symbolKeepAspect\\\"),symbolOffset:B(o.get(\\\"symbolOffset\\\",!0),v[r?0:1]),symbolRotate:B(o.get(\\\"symbolRotate\\\",!0),y[r?0:1]),symbolSize:B(o.get(\\\"symbolSize\\\"),g[r?0:1]),symbol:B(o.get(\\\"symbol\\\",!0),f[r?0:1]),style:a})}var o=t.coordinateSystem,a=t.id,s=t.getData(),l=this.markerGroupMap,u=l.get(a)||l.set(a,new qX);this.group.add(u.group);var h=$T(o,t,e),c=h.from,p=h.to,d=h.line;Gq(e).from=c,Gq(e).to=p,e.setData(d);var f=e.get(\\\"symbol\\\"),g=e.get(\\\"symbolSize\\\"),y=e.get(\\\"symbolRotate\\\"),v=e.get(\\\"symbolOffset\\\");M(f)||(f=[f,f]),M(g)||(g=[g,g]),M(y)||(y=[y,y]),M(v)||(v=[v,v]),h.from.each(function(t){r(c,t,!0),r(p,t,!1)}),d.each(function(t){var e=d.getItemModel(t).getModel(\\\"lineStyle\\\").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),p.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,\\\"style\\\").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,\\\"symbolKeepAspect\\\"),fromSymbolOffset:c.getItemVisual(t,\\\"symbolOffset\\\"),fromSymbolRotate:c.getItemVisual(t,\\\"symbolRotate\\\"),fromSymbolSize:c.getItemVisual(t,\\\"symbolSize\\\"),fromSymbol:c.getItemVisual(t,\\\"symbol\\\"),toSymbolKeepAspect:p.getItemVisual(t,\\\"symbolKeepAspect\\\"),toSymbolOffset:p.getItemVisual(t,\\\"symbolOffset\\\"),toSymbolRotate:p.getItemVisual(t,\\\"symbolRotate\\\"),toSymbolSize:p.getItemVisual(t,\\\"symbolSize\\\"),toSymbol:p.getItemVisual(t,\\\"symbol\\\"),style:e})}),u.updateData(d),h.line.eachItemGraphicEl(function(t){TR(t).dataModel=e,t.traverse(function(t){TR(t).dataModel=e})}),this.markKeep(u),u.group.silent=e.get(\\\"silent\\\")||t.get(\\\"silent\\\")},n.type=\\\"markLine\\\",n}(Bq);If(JT);var Yq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.createMarkerModelFromSeries=function(t,e,i){return new n(t,e,i)},n.type=\\\"markArea\\\",n.defaultOption={z:1,tooltip:{trigger:\\\"item\\\"},animation:!1,label:{show:!0,position:\\\"top\\\"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:\\\"top\\\"}}},n}(Rq),Xq=Kr(),Uq=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=zT(t,r),s=zT(t,o),l=a.coord,h=s.coord;l[0]=z(l[0],-1/0),l[1]=z(l[1],-1/0),h[0]=z(h[0],1/0),h[1]=z(h[1],1/0);var c=u([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}},Zq=[[\\\"x0\\\",\\\"y0\\\"],[\\\"x1\\\",\\\"y0\\\"],[\\\"x1\\\",\\\"y1\\\"],[\\\"x0\\\",\\\"y1\\\"]],jq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Rq.getMarkerModelFromSeries(t,\\\"markArea\\\");if(e){var i=e.getData();i.each(function(e){var r=v(Zq,function(r){return nC(i,e,r,t,n)});i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape(\\\"points\\\",r)})}},this)},n.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new HP});this.group.add(l.group),this.markKeep(l);var u=iC(r,t,e);e.setData(u),u.each(function(e){var n=v(Zq,function(n){return nC(u,e,n,t,i)}),o=r.getAxis(\\\"x\\\").scale,s=r.getAxis(\\\"y\\\").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get(\\\"x0\\\",e)),o.parse(u.get(\\\"x1\\\",e))],p=[s.parse(u.get(\\\"y0\\\",e)),s.parse(u.get(\\\"y1\\\",e))];sr(c),sr(p);var d=!(l[0]>c[1]||l[1]p[1]||h[1]=e&&(t=e-1),0>t&&(t=0)),this.option.currentIndex=t},n.prototype.getCurrentIndex=function(){return this.option.currentIndex},n.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},n.prototype.setPlayState=function(t){this.option.autoPlay=!!t},n.prototype.getPlayState=function(){return!!this.option.autoPlay},n.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];\\\"category\\\"===i?(t=[],y(n,function(e,n){var i,o=Wr(Lr(e),\\\"\\\");A(e)?(i=s(e),i.value=n):i=n,t.push(i),r.push(o)})):t=n;var o={category:\\\"ordinal\\\",time:\\\"time\\\",value:\\\"number\\\"}[i]||\\\"number\\\",a=this._data=new WF([{name:\\\"value\\\",type:o}],this);a.initData(t,r)},n.prototype.getData=function(){return this._data},n.prototype.getCategories=function(){return\\\"category\\\"===this.get(\\\"axisType\\\")?this._names.slice():void 0},n.type=\\\"timeline\\\",n.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:[]},n}(HE),Kq=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"timeline.slider\\\",n.defaultOption=Sl(qq.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:[]}),n}(qq);f(Kq,Fz.prototype);var $q=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"timeline\\\",n}(lB),Jq=function(t){function n(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||\\\"value\\\",o}return e(n,t),n.prototype.getLabelModel=function(){return this.model.getModel(\\\"label\\\")},n.prototype.isHorizontal=function(){return\\\"horizontal\\\"===this.model.get(\\\"orient\\\")},n}(RG),Qq=Math.PI,tK=Kr(),eK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.api=e},n.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get(\\\"show\\\",!0)){var i=this._layout(t,n),r=this._createGroup(\\\"_mainGroup\\\"),o=this._createGroup(\\\"_labelGroup\\\"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Fh(\\\"nameValue\\\",{noName:!0,value:e})},y([\\\"AxisLine\\\",\\\"AxisTick\\\",\\\"Control\\\",\\\"CurrentPointer\\\"],function(e){this[\\\"_render\\\"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},n.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},n.prototype.dispose=function(){this._clearTimer()},n.prototype._layout=function(t,e){var n,i=t.get([\\\"label\\\",\\\"position\\\"]),r=t.get(\\\"orient\\\"),o=aC(t,e);n=null==i||\\\"auto\\\"===i?\\\"horizontal\\\"===r?o.y+o.height/2=0||\\\"+\\\"===n?\\\"left\\\":\\\"right\\\"},s={horizontal:n>=0||\\\"+\\\"===n?\\\"top\\\":\\\"bottom\\\",vertical:\\\"middle\\\"},l={horizontal:0,vertical:Qq/2},u=\\\"vertical\\\"===r?o.height:o.width,h=t.getModel(\\\"controlStyle\\\"),c=h.get(\\\"show\\\",!0),p=c?h.get(\\\"itemSize\\\"):0,d=c?h.get(\\\"itemGap\\\"):0,f=p+d,g=t.get([\\\"label\\\",\\\"rotate\\\"])||0;g=g*Qq/180;var y,v,m,x=h.get(\\\"position\\\",!0),_=c&&h.get(\\\"showPlayBtn\\\",!0),b=c&&h.get(\\\"showPrevBtn\\\",!0),w=c&&h.get(\\\"showNextBtn\\\",!0),S=0,M=u;\\\"left\\\"===x||\\\"bottom\\\"===x?(_&&(y=[0,0],S+=f),b&&(v=[S,0],S+=f),w&&(m=[M-p,0],M-=f)):(_&&(y=[M-p,0],M-=f),b&&(v=[0,0],S+=f),w&&(m=[M-p,0],M-=f));var I=[S,M];return t.get(\\\"inverse\\\")&&I.reverse(),{viewRect:o,mainLength:u,orient:r,rotation:l[r],labelRotation:g,labelPosOpt:n,labelAlign:t.get([\\\"label\\\",\\\"align\\\"])||a[r],labelBaseline:t.get([\\\"label\\\",\\\"verticalAlign\\\"])||t.get([\\\"label\\\",\\\"baseline\\\"])||s[r],playPosition:y,prevBtnPosition:v,nextBtnPosition:m,axisExtent:I,controlSize:p,controlGap:d}},n.prototype._position=function(t){function e(t){t.originX=h[0][0]-t.x,t.originY=h[1][0]-t.y}function n(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function i(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}var r=this._mainGroup,o=this._labelGroup,a=t.viewRect;if(\\\"vertical\\\"===t.orient){var s=Be(),l=a.x,u=a.y+a.height;We(s,s,[-l,-u]),He(s,s,-Qq/2),We(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var h=n(a),c=n(r.getBoundingRect()),p=n(o.getBoundingRect()),d=[r.x,r.y],f=[o.x,o.y];f[0]=d[0]=h[0][0];var g=t.labelPosOpt;if(null==g||T(g)){var y=\\\"+\\\"===g?0:1;i(d,c,h,1,y),i(f,p,h,1,1-y)}else{var y=g>=0?0:1;i(d,c,h,1,y),f[1]=d[1]+g}r.setPosition(d),o.setPosition(f),r.rotation=o.rotation=t.rotation,e(r),e(o)},n.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get(\\\"axisType\\\"),r=oC(e,i);r.getTicks=function(){return n.mapArray([\\\"value\\\"],function(t){return{value:t}})};var o=n.getDataExtent(\\\"value\\\");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new Jq(\\\"value\\\",r,t.axisExtent,i);return a.model=e,a},n.prototype._createGroup=function(t){var e=this[t]=new HP;return this.group.add(e),e},n.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get([\\\"lineStyle\\\",\\\"show\\\"])){var o=new AN({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:h({lineCap:\\\"round\\\"},i.getModel(\\\"lineStyle\\\").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new AN({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:c({lineCap:\\\"round\\\",lineWidth:o.style.lineWidth},i.getModel([\\\"progress\\\",\\\"lineStyle\\\"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},n.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],y(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel(\\\"itemStyle\\\"),u=s.getModel([\\\"emphasis\\\",\\\"itemStyle\\\"]),h=s.getModel([\\\"progress\\\",\\\"itemStyle\\\"]),c={x:a,y:0,onclick:Lk(r._changeTimeline,r,t.value)},p=lC(s,l,e,c);p.ensureState(\\\"emphasis\\\").style=u.getItemStyle(),p.ensureState(\\\"progress\\\").style=h.getItemStyle(),$a(p);var d=TR(p);s.get(\\\"tooltip\\\")?(d.dataIndex=t.value,d.dataModel=i):d.dataIndex=d.dataModel=null,r._tickSymbols.push(p)})},n.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get(\\\"show\\\")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],y(s,function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel(\\\"label\\\"),u=s.getModel([\\\"emphasis\\\",\\\"label\\\"]),h=s.getModel([\\\"progress\\\",\\\"label\\\"]),c=n.dataToCoord(i.tickValue),p=new wR({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:Lk(r._changeTimeline,r,o),silent:!1,style:pl(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState(\\\"emphasis\\\").style=pl(u),p.ensureState(\\\"progress\\\").style=pl(h),e.add(p),$a(p),tK(p).dataIndex=o,r._tickLabels.push(p)})}},n.prototype._renderControl=function(t,e,n,i){function r(t,n,r,u){if(t){var h=Gi(B(i.get([\\\"controlStyle\\\",n+\\\"BtnSize\\\"]),o),o),c=[0,-h/2,h,h],p=sC(i,n+\\\"Icon\\\",c,{x:t[0],y:t[1],originX:o/2,originY:0,rotation:u?-a:0,rectHover:!0,style:s,onclick:r});p.ensureState(\\\"emphasis\\\").style=l,e.add(p),$a(p)}}var o=t.controlSize,a=t.rotation,s=i.getModel(\\\"controlStyle\\\").getItemStyle(),l=i.getModel([\\\"emphasis\\\",\\\"controlStyle\\\"]).getItemStyle(),u=i.getPlayState(),h=i.get(\\\"inverse\\\",!0);r(t.nextBtnPosition,\\\"next\\\",Lk(this._changeTimeline,this,h?\\\"-\\\":\\\"+\\\")),r(t.prevBtnPosition,\\\"prev\\\",Lk(this._changeTimeline,this,h?\\\"+\\\":\\\"-\\\")),r(t.playPosition,u?\\\"stop\\\":\\\"play\\\",Lk(this._handlePlayClick,this,!u),!0)},n.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel(\\\"checkpointStyle\\\"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Lk(s._handlePointerDrag,s),t.ondragend=Lk(s._handlePointerDragend,s),uC(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){uC(t,s._progressLine,o,n,i)}};this._currentPointer=lC(a,a,this._mainGroup,{},this._currentPointer,l)},n.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:\\\"timelinePlayChange\\\",playState:t,from:this.uid})},n.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},n.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},n.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=sr(i.getExtent().slice());n>r[1]&&(n=r[1]),ns&&(i=s,e=o)}),e},n.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},n.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})},n.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;ii);if(n)for(var i=0;i0?100:20}},n.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get(\\\"rangeMode\\\");y([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]=\\\"percent\\\":!o&&a?e[r]=\\\"value\\\":n?e[r]=n[r]:o&&(e[r]=\\\"percent\\\")})},n.prototype.noTarget=function(){return this._noTarget},n.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(vC(e),n))},this),t},n.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){y(n.indexList,function(n){t.call(e,i,n)})})},n.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);return n?n.__dzAxisProxy:void 0},n.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);return n&&n.indexMap[e]?this.ecModel.getComponent(vC(t),e):void 0},n.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;y([[\\\"start\\\",\\\"startValue\\\"],[\\\"end\\\",\\\"endValue\\\"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},n.prototype.setCalculatedRange=function(t){var e=this.option;y([\\\"start\\\",\\\"startValue\\\",\\\"end\\\",\\\"endValue\\\"],function(n){e[n]=t[n]})},n.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();return t?t.getDataPercentWindow():void 0},n.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},n.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Pb(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:AC(function(t,e,n,i,r,o){var a=cK[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:AC(function(t,e,n,i,r,o){var a=cK[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta})},cK={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],\\\"x\\\"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.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=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],\\\"horizontal\\\"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},pK=y,dK=sr,fK=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(yC(e)){var n=vC(this._dimName),i=e.getReferringComponents(n,iO).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+\\\"Axis\\\",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return s(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){function e(t,e,n,i,r){var a=r?\\\"Span\\\":\\\"ValueSpan\\\";Pb(0,t,n,\\\"all\\\",h[\\\"min\\\"+a],h[\\\"max\\\"+a]);for(var s=0;2>s;s++)e[s]=rr(t[s],n,i,!0),r&&(e[s]=o.parse(e[s]))}var n,i=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];pK([\\\"start\\\",\\\"end\\\"],function(e,r){var h=t[e],c=t[e+\\\"Value\\\"];\\\"percent\\\"===a[r]?(null==h&&(h=s[r]),c=o.parse(rr(h,s,i))):(n=!0,c=null==c?i[r]:o.parse(c),h=rr(c,i,s)),u[r]=null==c||isNaN(c)?i[r]:c,l[r]=null==h||isNaN(h)?s[r]:h}),dK(u),dK(l);var h=this._minMaxSpan;return n?e(u,l,i,s,!1):e(l,u,s,i,!0),{valueWindow:u,percentWindow:l}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=kC(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get(\\\"filterMode\\\"),o=this._valueWindow;\\\"none\\\"!==r&&pK(i,function(t){var i=t.getData(),a=i.mapDimensionsAll(n);if(a.length){if(\\\"weakFilter\\\"===r){var s=i.getStore(),l=v(a,function(t){return i.getDimensionIndex(t)},i);i.filterSelf(function(t){for(var e,n,i,r=0;ro[1];if(h&&!c&&!p)return!0;h&&(i=!0),c&&(e=!0),p&&(n=!0)}return i&&e&&n})}else pK(a,function(n){if(\\\"empty\\\"===r)t.setData(i=i.map(n,function(t){return e(t)?t:0/0}));else{var a={};a[n]=o,i.selectRange(a)}});pK(a,function(t){i.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;pK([\\\"min\\\",\\\"max\\\"],function(i){var r=e.get(i+\\\"Span\\\"),o=e.get(i+\\\"ValueSpan\\\");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=rr(n[0]+o,n,[0,100],!0):null!=r&&(o=rr(r,[0,100],n,!0)-n[0]),t[i+\\\"Span\\\"]=r,t[i+\\\"ValueSpan\\\"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=hr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax(\\\"min\\\",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax(\\\"max\\\",+n[1].toFixed(i)),r.freeze()}},t}(),gK={getTargetSeries:function(t){function e(e){t.eachComponent(\\\"dataZoom\\\",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(vC(i),r);e(i,r,o,n)})})}e(function(t,e,n){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new fK(e,i,o,t),n.push(r.__dzAxisProxy))});var i=Z();return y(n,function(t){y(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent(\\\"dataZoom\\\",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent(\\\"dataZoom\\\",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},yK=!1,vK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"dataZoom.slider\\\",n.layoutMode=\\\"box\\\",n.defaultOption=Sl(oK.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\\\"}}}),n}(oK),mK=mR,xK=7,_K=1,bK=30,wK=7,SK=\\\"horizontal\\\",MK=\\\"vertical\\\",IK=5,TK=[\\\"line\\\",\\\"bar\\\",\\\"candlestick\\\",\\\"scatter\\\"],CK={easing:\\\"cubicOut\\\",duration:100,delay:0},DK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._displayables={},e}return e(n,t),n.prototype.init=function(t,e){this.api=e,this._onBrush=Lk(this._onBrush,this),this._onBrushEnd=Lk(this._onBrushEnd,this)},n.prototype.render=function(e,n,i,r){return t.prototype.render.apply(this,arguments),mc(this,\\\"_dispatchZoomAction\\\",e.get(\\\"throttle\\\"),\\\"fixRate\\\"),this._orient=e.getOrient(),e.get(\\\"show\\\")===!1?void this.group.removeAll():e.noTarget()?(this._clear(),void this.group.removeAll()):(r&&\\\"dataZoom\\\"===r.type&&r.from===this.uid||this._buildView(),void this._updateView())},n.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){xc(this,\\\"_dispatchZoomAction\\\");var t=this.api.getZr();t.off(\\\"mousemove\\\",this._onBrush),t.off(\\\"mouseup\\\",this._onBrushEnd)},n.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new HP;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},n.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get(\\\"brushSelect\\\"),i=n?wK:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===SK?{right:o.width-r.x-r.width,top:o.height-bK-xK-i,width:r.width,height:bK}:{right:xK,top:r.y,width:bK,height:r.height},s=fu(t.option);y([\\\"right\\\",\\\"top\\\",\\\"width\\\",\\\"height\\\"],function(t){\\\"ph\\\"===s[t]&&(s[t]=a[t])});var l=uu(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===MK&&this._size.reverse()},n.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get(\\\"inverse\\\"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;\\no.attr(n!==SK||r?n===SK&&r?{scaleY:a?1:-1,scaleX:-1}:n!==MK||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},n.prototype._getViewExtent=function(){return[0,this._size[0]]},n.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get(\\\"brushSelect\\\");n.add(new mK({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get(\\\"backgroundColor\\\")},z2:-40}));var r=new mK({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:\\\"transparent\\\"},z2:0,onclick:Lk(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on(\\\"mousedown\\\",this._onBrushStart,this),r.cursor=\\\"crosshair\\\",o.on(\\\"mousemove\\\",this._onBrush),o.on(\\\"mouseup\\\",this._onBrushEnd)):(o.off(\\\"mousemove\\\",this._onBrush),o.off(\\\"mouseup\\\",this._onBrushEnd)),n.add(r)},n.prototype._renderDataShadow=function(){function t(t){var e=_.getModel(t?\\\"selectedDataBackground\\\":\\\"dataBackground\\\"),n=new HP,i=new MN({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel(\\\"areaStyle\\\").getAreaStyle(),silent:!0,z2:-20}),r=new TN({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel(\\\"lineStyle\\\").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var n=this._size,i=this._shadowSize||[],r=e.series,o=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),s=a&&o.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(null!=s){var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(s),c=.3*(h[1]-h[0]);h=[h[0]-c,h[1]+c];var p,d=[0,n[1]],f=[0,n[0]],g=[[n[0],0],[0,0]],y=[],v=f[1]/(o.count()-1),m=0,x=Math.round(o.count()/n[0]);o.each([s],function(t,e){if(x>0&&e%x)return void(m+=v);var n=null==t||isNaN(t)||\\\"\\\"===t,i=n?0:rr(t,h,d,!0);n&&!p&&e?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!n&&p&&(g.push([m,0]),y.push([m,0])),g.push([m,i]),y.push([m,i]),m+=v,p=n}),l=this._shadowPolygonPts=g,u=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=s,this._shadowSize=[n[0],n[1]];for(var _=this.dataZoomModel,b=0;3>b;b++){var w=t(1===b);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}},n.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get(\\\"showDataShadow\\\");if(e!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();y(a,function(t){if(!(n||e!==!0&&p(TK,t.get(\\\"type\\\"))<0)){var a,s=i.getComponent(vC(r),o).axis,l=RC(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},n.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get(\\\"borderRadius\\\")||0,u=a.get(\\\"brushSelect\\\"),h=e.filler=new mK({silent:u,style:{fill:a.get(\\\"fillerColor\\\")},textConfig:{position:\\\"inside\\\"}});r.add(h),r.add(new mK({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get(\\\"dataBackgroundColor\\\")||a.get(\\\"borderColor\\\"),lineWidth:_K,fill:\\\"rgba(0,0,0,0)\\\"}})),y([0,1],function(e){var o=a.get(\\\"handleIcon\\\");!KB[o]&&o.indexOf(\\\"path://\\\")<0&&o.indexOf(\\\"image://\\\")<0&&(o=\\\"path://\\\"+o);var s=Gc(o,-1,0,2,2,null,!0);s.attr({cursor:NC(this._orient),draggable:!0,drift:Lk(this._onDragMove,this,e),ondragend:Lk(this._onDragEnd,this),onmouseover:Lk(this._showDataInfo,this,!0),onmouseout:Lk(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get(\\\"handleSize\\\");this._handleHeight=or(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel(\\\"handleStyle\\\").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(\\\"emphasis\\\").style=a.getModel([\\\"emphasis\\\",\\\"handleStyle\\\"]).getItemStyle(),$a(s);var h=a.get(\\\"handleColor\\\");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel(\\\"textStyle\\\");t.add(i[e]=new wR({silent:!0,invisible:!0,style:pl(c,{x:0,y:0,text:\\\"\\\",verticalAlign:\\\"middle\\\",align:\\\"center\\\",fill:c.getTextColor(),font:c.getFont()}),z2:10}))},this);var c=h;if(u){var p=or(a.get(\\\"moveHandleSize\\\"),o[1]),d=e.moveHandle=new mR({style:a.getModel(\\\"moveHandleStyle\\\").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),f=.8*p,g=e.moveHandleIcon=Gc(a.get(\\\"moveHandleIcon\\\"),-f/2,-f/2,f,f,\\\"#fff\\\",!0);g.silent=!0,g.y=o[1]+p/2-.5,d.ensureState(\\\"emphasis\\\").style=a.getModel([\\\"emphasis\\\",\\\"moveHandleStyle\\\"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));c=e.moveZone=new mR({invisible:!0,shape:{y:o[1]-v,height:p+v}}),c.on(\\\"mouseover\\\",function(){s.enterEmphasis(d)}).on(\\\"mouseout\\\",function(){s.leaveEmphasis(d)}),r.add(d),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:NC(this._orient),drift:Lk(this._onDragMove,this,\\\"all\\\"),ondragstart:Lk(this._showDataInfo,this,!0),ondragend:Lk(this._onDragEnd,this),onmouseover:Lk(this._showDataInfo,this,!0),onmouseout:Lk(this._showDataInfo,this,!1)})},n.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[rr(t[0],[0,100],e,!0),rr(t[1],[0,100],e,!0)]},n.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Pb(e,i,r,n.get(\\\"zoomLock\\\")?\\\"all\\\":t,null!=o.minSpan?rr(o.minSpan,a,r,!0):null,null!=o.maxSpan?rr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=sr([rr(i[0],r,a,!0),rr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},n.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=sr(n.slice()),r=this._size;y([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr(\\\"x\\\",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval(\\\"all\\\",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},n.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new rL(e,n),this._brushing=!0,this._brushStartTime=+new Date},n.prototype._onBrushEnd=function(){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(\\\"ignore\\\",!0);var e=t.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(e.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=sr([rr(e.x,i,r,!0),rr(e.x+e.width,i,r,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)}}}},n.prototype._onBrush=function(t){this._brushing&&(tL(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},n.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new mK({silent:!0,style:i.getModel(\\\"brushStyle\\\").getItemStyle()}),n.sliderGroup.add(r)),r.attr(\\\"ignore\\\",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},n.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:\\\"dataZoom\\\",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?CK:null,start:e[0],end:e[1]})},n.prototype._findCoordRect=function(){var t,e=xC(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},n.type=\\\"dataZoom.slider\\\",n}(sK);If(zC);var AK=[\\\"rect\\\",\\\"polygon\\\",\\\"keep\\\",\\\"clear\\\"],kK=y,LK={lineX:UC(0),lineY:UC(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])&&Cf(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return Cf(i,r,o)||Cf(i,r+a,o)||Cf(i,r,o+s)||Cf(i,r+a,o+s)||dL.create(t).contain(l[0],l[1])||el(r,o,r+a,o,i)||el(r,o,r,o+s,i)||el(r+a,o,r+a,o+s,i)||el(r,o+s,r+a,o+s,i)?!0:void 0}}},PK=[\\\"grid\\\",\\\"xAxis\\\",\\\"yAxis\\\",\\\"geo\\\",\\\"graph\\\",\\\"polar\\\",\\\"radiusAxis\\\",\\\"angleAxis\\\",\\\"bmap\\\"],OK=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=qC(e,t);y(RK,function(t,e){(!n||!n.include||p(n.include,e)>=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=zK[t.brushType](0,n,e);t.__rangeOffset={offset:BK[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){y(t,function(t){var i=this.findTargetInfo(t,e);i&&i!==!0&&y(i.coordSyses,function(i){var r=zK[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){y(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&n!==!0){t.panelId=n.panelId;var i=zK[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?BK[t.brushType](i.values,r.offset,JC(i.xyMinMax,r.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(t,e){return v(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:xw(i),isTargetByCursor:bw(i,t,n.coordSysModel),getLinearBrushOtherExtent:_w(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&p(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=qC(e,t),r=0;r=0||p(i,t.getAxis(\\\"y\\\").model)>=0)&&o.push(t)}),e.push({panelId:\\\"grid--\\\"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:EK.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){y(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:\\\"geo--\\\"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:EK.geo})})}},NK=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],EK={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Us(t)),e}},zK={lineX:S(KC,0),lineY:S(KC,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[jC([r[0],o[0]]),jC([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=v(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o});return{values:o,xyMinMax:r}}},BK={lineX:S($C,0),lineY:S($C,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,e,n){return v(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}},VK=[\\\"inBrush\\\",\\\"outOfBrush\\\"],FK=\\\"__ecBrushSelect\\\",GK=\\\"__ecInBrushSelectEvent\\\",WK={rect:function(t){return aD(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;r>i;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&aD(e)}},HK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new yZ(e.getZr())).on(\\\"brush\\\",Lk(this._onBrush,this)).mount()},n.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},n.prototype.updateTransform=function(t,e,n,i){tD(e),this._updateController(t,e,n,i)},n.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},n.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},n.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())},n.prototype.dispose=function(){this._brushController.dispose()},n.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:s(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:\\\"brushEnd\\\",brushId:e,areas:s(n),$from:e})},n.type=\\\"brush\\\",n}(lB),YK=\\\"#ddd\\\",XK=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.areas=[],e.brushOption={},e}return e(n,t),n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&WC(n,t,[\\\"inBrush\\\",\\\"outOfBrush\\\"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:YK},i.hasOwnProperty(\\\"liftZ\\\")||(i.liftZ=5)},n.prototype.setAreas=function(t){t&&(this.areas=v(t,function(t){return sD(this.option,t)},this))},n.prototype.setBrushOption=function(t){this.brushOption=sD(this.option,t),this.brushType=this.brushOption.brushType},n.type=\\\"brush\\\",n.dependencies=[\\\"geo\\\",\\\"grid\\\",\\\"xAxis\\\",\\\"yAxis\\\",\\\"parallel\\\",\\\"series\\\"],n.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},n}(HE),UK=function(){function t(){}return t}(),ZK={},jK=[\\\"rect\\\",\\\"polygon\\\",\\\"lineX\\\",\\\"lineY\\\",\\\"keep\\\",\\\"clear\\\"],qK=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e){var n,i,r;e.eachComponent({mainType:\\\"brush\\\"},function(t){n=t.brushType,i=t.brushOption.brushMode||\\\"single\\\",r=r||!!t.areas.length}),this._brushType=n,this._brushMode=i,y(t.get(\\\"type\\\",!0),function(e){t.setIconStatus(e,(\\\"keep\\\"===e?\\\"multiple\\\"===i:\\\"clear\\\"===e?r:e===n)?\\\"emphasis\\\":\\\"normal\\\")})},n.prototype.updateView=function(t,e,n){this.render(t,e,n)},n.prototype.getIcons=function(){var t=this.model,e=t.get(\\\"icon\\\",!0),n={};return y(t.get(\\\"type\\\",!0),function(t){e[t]&&(n[t]=e[t])}),n},n.prototype.onclick=function(t,e,n){var i=this._brushType,r=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?!1:n,brushMode:\\\"keep\\\"===n?\\\"multiple\\\"===r?\\\"single\\\":\\\"multiple\\\":r}})},n.getDefaultOption=function(t){var e={show:!0,type:jK.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\\\"])};return e},n}(UK);If(hD);var KK={get:function(t,e,n){var i=s(($K[t]||{})[e]);return n&&M(i)?i[i.length-1]:i}},$K={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]}},JK=RY.mapVisual,QK=RY.eachVisual,t$=M,e$=y,n$=sr,i$=rr,r$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.stateList=[\\\"inRange\\\",\\\"outOfRange\\\"],e.replacableOptionKeys=[\\\"inRange\\\",\\\"outOfRange\\\",\\\"target\\\",\\\"controller\\\",\\\"color\\\"],e.layoutMode={type:\\\"box\\\",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return e(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.optionUpdated=function(t,e){var n=this.option;!e&&WC(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel(\\\"textStyle\\\"),this.resetItemSize(),this.completeVisualOption()},n.prototype.resetVisual=function(t){var e=this.stateList;t=Lk(t,this),this.controllerVisuals=GC(this.option.controller,e,t),this.targetVisuals=GC(this.option.target,e,t)},n.prototype.getItemSymbol=function(){return null},n.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||\\\"all\\\"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Ar(t),e},n.prototype.eachTargetSeries=function(t,e){y(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},n.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},n.prototype.formatValueText=function(t,e,n){function i(t){return t===s[0]?\\\"min\\\":t===s[1]?\\\"max\\\":(+t).toFixed(Math.min(a,20))}var r,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;n=n||[\\\"<\\\",\\\">\\\"],M(t)&&(t=t.slice(),r=!0);var u=e?t:r?[i(t[0]),i(t[1])]:i(t);return T(l)?l.replace(\\\"{value}\\\",r?u[0]:u).replace(\\\"{value2}\\\",r?u[1]:u):I(l)?r?l(t[0],t[1]):l(t):r?t[0]===s[0]?n[0]+\\\" \\\"+u[1]:t[1]===s[1]?n[1]+\\\" \\\"+u[0]:u[0]+\\\" - \\\"+u[1]:u},n.prototype.resetExtent=function(){var t=this.option,e=n$([t.min,t.max]);this._dataExtent=e},n.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;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},n.prototype.getExtent=function(){return this._dataExtent.slice()},n.prototype.completeVisualOption=function(){function t(t){t$(r.color)&&!t.inRange&&(t.inRange={color:r.color.slice().reverse()}),t.inRange=t.inRange||{color:i.get(\\\"gradientColor\\\")}}function e(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},e$(i,function(t,e){if(RY.isValidType(e)){var n=KK.get(e,\\\"inactive\\\",h);null!=n&&(r[e]=n,\\\"color\\\"!==e||r.hasOwnProperty(\\\"opacity\\\")||r.hasOwnProperty(\\\"colorAlpha\\\")||(r.opacity=[0,0]))}}))}function n(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get(\\\"inactiveColor\\\"),r=this.getItemSymbol(),o=r||\\\"roundRect\\\";e$(this.stateList,function(r){var a=this.itemSize,l=t[r];l||(l=t[r]={color:h?i:[i]}),null==l.symbol&&(l.symbol=e&&s(e)||(h?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&s(n)||(h?a[0]:[a[0],a[0]])),l.symbol=JK(l.symbol,function(t){return\\\"none\\\"===t?o:t});var u=l.symbolSize;if(null!=u){var c=-1/0;QK(u,function(t){t>c&&(c=t)}),l.symbolSize=JK(u,function(t){return i$(t,[0,c],[0,a[0]],!0)})}},this)}var i=this.ecModel,r=this.option,o={inRange:r.inRange,outOfRange:r.outOfRange},a=r.target||(r.target={}),u=r.controller||(r.controller={});l(a,o),l(u,o);var h=this.isCategory();t.call(this,a),t.call(this,u),e.call(this,a,\\\"inRange\\\",\\\"outOfRange\\\"),n.call(this,u)},n.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(\\\"itemWidth\\\")),parseFloat(this.get(\\\"itemHeight\\\"))]},n.prototype.isCategory=function(){return!!this.option.categories},n.prototype.setSelected=function(){},n.prototype.getSelected=function(){return null},n.prototype.getValueState=function(){return null},n.prototype.getVisualMeta=function(){return null},n.type=\\\"visualMap\\\",n.dependencies=[\\\"series\\\"],n.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\\\"}},n}(HE),o$=[20,140],a$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod=\\\"linear\\\",t.dataExtent=this.getExtent()}),this._resetRange()},n.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=o$[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=o$[1])},n.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):M(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},n.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),y(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},n.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},n.prototype.getSelected=function(){var t=this.getExtent(),e=sr((this.get(\\\"range\\\")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?\\\"inRange\\\":\\\"outOfRange\\\"},n.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},n.prototype.getVisualMeta=function(t){function e(e,n){r.push({value:e,color:t(e,n)})}for(var n=cD(this,\\\"outOfRange\\\",this.getExtent()),i=cD(this,\\\"inRange\\\",this.option.range.slice()),r=[],o=0,a=0,s=i.length,l=n.length;l>a&&(!i.length||n[a]<=i[0]);a++)n[a]o;o++,u=0)u&&r.length&&e(i[o],\\\"outOfRange\\\"),e(i[o],\\\"inRange\\\");for(var u=1;l>a;a++)(!i.length||i[i.length-1]o;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,\\\"color\\\",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],\\\"color\\\",e),offset:1}),i},n.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]]]},n.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get(\\\"inverse\\\");return new HP(\\\"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})},n.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();h$([0,1],function(l){var u=r[l];u.setStyle(\\\"fill\\\",e.handlesColor[l]),u.y=t[l];var h=u$(t[l],[0,a[1]],s,!0),c=this.getControllerVisual(h,\\\"symbolSize\\\");u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2;var p=Zs(n.handleLabelPoints[l],Us(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:\\\"middle\\\",align:\\\"vertical\\\"===this._orient?this._applyTransform(\\\"left\\\",n.mainGroup):\\\"center\\\"})},this)}},n.prototype._showIndicator=function(t,e,n){var i=this.visualMapModel,r=i.getExtent(),o=i.itemSize,a=[0,o[1]],s=this._shapes,l=s.indicator;if(l){l.attr(\\\"invisible\\\",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,\\\"color\\\",u),c=this.getControllerVisual(t,\\\"symbolSize\\\"),p=u$(t,r,a,!0),d=o[0]-c/2,f={x:l.x,y:l.y};l.y=p,l.x=d;var g=Zs(s.indicatorLabelPoint,Us(l,this.group)),y=s.indicatorLabel;y.attr(\\\"invisible\\\",!1);var v=this._applyTransform(\\\"left\\\",s.mainGroup),m=this._orient,x=\\\"horizontal\\\"===m;y.setStyle({text:(n?n:\\\"\\\")+i.formatValueText(e),verticalAlign:x?v:\\\"middle\\\",align:x?\\\"center\\\":v});var _={x:d,y:p,style:{fill:h}},b={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:\\\"cubicInOut\\\",additive:!0};l.x=f.x,l.y=f.y,l.animateTo(_,w),y.animateTo(b,w)}else l.attr(_),y.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var M=0;Mr[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],\\\"< \\\",a):1/0===u[1]?this._showIndicator(l,u[0],\\\"> \\\",a):this._showIndicator(l,l,\\\"≈ \\\",a));var h=this._hoverLinkDataIndices,c=[];(e||yD(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var p=jr(h,c);this._dispatchHighDown(\\\"downplay\\\",dD(p[0],n)),this._dispatchHighDown(\\\"highlight\\\",dD(p[1],n))}},n.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Vc(t.target,function(t){var n=TR(t);return null!=n.dataIndex?(e=n,!0):void 0},!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},n.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr(\\\"invisible\\\",!0),t.indicatorLabel&&t.indicatorLabel.attr(\\\"invisible\\\",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n=0&&(r.dimension=o,i.push(r))}}),t.getData().setVisual(\\\"visualMeta\\\",i)}}],x$=y,_$=!1,b$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e._pieceList=[],e}return e(n,t),n.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],w$[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){\\\"categories\\\"===i?(t.mappingMethod=\\\"category\\\",t.categories=s(r)):(t.dataExtent=this.getExtent(),t.mappingMethod=\\\"piecewise\\\",t.pieceList=v(this._pieceList,function(t){return t=s(t),\\\"inRange\\\"!==e&&(t.visual=null),t}))})},n.prototype.completeVisualOption=function(){function e(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}var n=this.option,i={},r=RY.listVisualTypes(),o=this.isCategory();y(n.pieces,function(t){y(r,function(e){t.hasOwnProperty(e)&&(i[e]=1)})}),y(i,function(t,i){var r=!1;y(this.stateList,function(t){r=r||e(n,t,i)||e(n.target,t,i)},this),!r&&y(this.stateList,function(t){(n[t]||(n[t]={}))[i]=KK.get(i,\\\"inRange\\\"===t?\\\"active\\\":\\\"inactive\\\",o)})},this),t.prototype.completeVisualOption.apply(this,arguments)},n.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,y(i,function(t){var e=this.getSelectedMapKey(t);r.hasOwnProperty(e)||(r[e]=!0)},this),\\\"single\\\"===n.selectedMode){var o=!1;y(i,function(t){var e=this.getSelectedMapKey(t);r[e]&&(o?r[e]=!1:o=!0)},this)}},n.prototype.getItemSymbol=function(){return this.get(\\\"itemSymbol\\\")},n.prototype.getSelectedMapKey=function(t){return\\\"categories\\\"===this._mode?t.value+\\\"\\\":t.index+\\\"\\\"},n.prototype.getPieceList=function(){return this._pieceList},n.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?\\\"pieces\\\":this.option.categories?\\\"categories\\\":\\\"splitNumber\\\"},n.prototype.setSelected=function(t){this.option.selected=s(t)},n.prototype.getValueState=function(t){var e=RY.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?\\\"inRange\\\":\\\"outOfRange\\\"},n.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){var o=RY.findPieceIndex(e,n);o===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},n.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&1/0===n[1]?0:(n[0]+n[1])/2}return e},n.prototype.getVisualMeta=function(t){function e(e,o){var a=r.getRepresentValue({interval:e});o||(o=r.getValueState(a));var s=t(a,o);e[0]===-1/0?i[0]=s:1/0===e[1]?i[1]=s:n.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var n=[],i=[\\\"\\\",\\\"\\\"],r=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],1/0!==a&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return y(o,function(t){var n=t.interval;n&&(n[0]>s&&e([s,n[0]],\\\"outOfRange\\\"),e(n.slice()),s=n[1])},this),{stops:n,outerColors:i}}},n.type=\\\"visualMap.piecewise\\\",n.defaultOption=Sl(r$.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}),n}(r$),w$={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&5>n;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];r>a;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),br(t),y(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;y(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),SD(e,t)},pieces:function(t){var e=this.option;y(e.pieces,function(e,n){A(e)||(e={value:e});var i={text:\\\"\\\",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty(\\\"value\\\")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],h=0;2>h;h++){for(var c=[[\\\"gte\\\",\\\"gt\\\",\\\"min\\\"],[\\\"lte\\\",\\\"lt\\\",\\\"max\\\"]][h],p=0;3>p&&null==o[h];p++)o[h]=e[c[p]],a[h]=s[p],u[h]=2===p;null==o[h]&&(o[h]=l[h])}u[0]&&1/0===o[1]&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=RY.retrieveVisuals(e),t.push(i)},this),SD(e,t),br(t),y(t,function(t){var e=t.close,n=[[\\\"<\\\",\\\"≤\\\"][e[1]],[\\\">\\\",\\\"≥\\\"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}},S$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get(\\\"textGap\\\"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=z(e.get(\\\"showLabel\\\",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),y(l.viewPieceList,function(i){var l=i.piece,u=new HP;u.onclick=Lk(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var p=this.visualMapModel.getValueState(c);u.add(new wR({style:{x:\\\"right\\\"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:\\\"middle\\\",align:a,font:r,fill:o,opacity:\\\"outOfRange\\\"===p?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,h,a),GE(e.get(\\\"orient\\\"),t,e.get(\\\"itemGap\\\")),this.renderBackground(t),this.positionGroup(t)},n.prototype._enableHoverLink=function(t,e){var n=this;t.on(\\\"mouseover\\\",function(){return i(\\\"highlight\\\")}).on(\\\"mouseout\\\",function(){return i(\\\"downplay\\\")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:dD(i.findTargetDataIndices(e),i)})}},n.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if(\\\"vertical\\\"===e.orient)return pD(t,this.api,t.itemSize);var n=e.align;return n&&\\\"auto\\\"!==n||(n=\\\"left\\\"),n},n.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new HP,a=this.visualMapModel.textStyleModel;o.add(new wR({style:pl(a,{x:i?\\\"right\\\"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:\\\"middle\\\",align:i?r:\\\"center\\\",text:e})})),t.add(o)}},n.prototype._getViewData=function(){var t=this.visualMapModel,e=v(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get(\\\"text\\\"),i=t.get(\\\"orient\\\"),r=t.get(\\\"inverse\\\");return(\\\"horizontal\\\"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},n.prototype._createItemSymbol=function(t,e,n){t.add(Gc(this.getControllerVisual(e,\\\"symbol\\\"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,\\\"color\\\")))},n.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=s(n.selected),o=e.getSelectedMapKey(t);\\\"single\\\"===i||i===!0?(r[o]=!0,y(r,function(t,e){r[e]=e===o})):r[o]=!r[o],this.api.dispatchAction({type:\\\"selectDataRange\\\",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},n.type=\\\"visualMap.piecewise\\\",n}(s$);If(ID);var M$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"dataZoom.select\\\",n}(oK),I$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.type=\\\"dataZoom.select\\\",n}(sK),T$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;y(this.option.feature,function(t,n){var i=uD(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),l(t,i.defaultOption))})},n.type=\\\"toolbox\\\",n.layoutMode={type:\\\"box\\\",ignoreSize:!0},n.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\\\"}},n}(HE),C$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n,i){function r(r,a){var s,l=c[r],p=c[a],d=u[l],f=new gE(d,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===l&&(d.title=i.newTitle),l&&!p){if(CD(l))s={onclick:f.option.onclick,featureName:l};else{var g=uD(l);if(!g)return;s=new g}h[l]=s}else if(s=h[p],!s)return;s.uid=_l(\\\"toolbox-feature\\\"),s.model=f,s.ecModel=e,s.api=n;var y=s instanceof UK;return!l&&p?void(y&&s.dispose&&s.dispose(e,n)):!f.get(\\\"show\\\")||y&&s.unusable?void(y&&s.remove&&s.remove(e,n)):(o(f,s,l),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&(\\\"emphasis\\\"===e?Ra:Na)(i[t])},void(s instanceof UK&&s.render&&s.render(f,e,n,i)))}function o(i,r,o){var u,h,c=i.getModel(\\\"iconStyle\\\"),p=i.getModel([\\\"emphasis\\\",\\\"iconStyle\\\"]),d=r instanceof UK&&r.getIcons?r.getIcons():i.get(\\\"icon\\\"),f=i.get(\\\"title\\\")||{};T(d)?(u={},u[o]=d):u=d,T(f)?(h={},h[o]=f):h=f;var g=i.iconPaths={};y(u,function(o,u){var d=tl(o,{},{x:-s/2,y:-s/2,width:s,height:s});d.setStyle(c.getItemStyle());var f=d.ensureState(\\\"emphasis\\\");f.style=p.getItemStyle();var y=new wR({style:{text:h[u],align:p.get(\\\"textAlign\\\"),borderRadius:p.get(\\\"textBorderRadius\\\"),padding:p.get(\\\"textPadding\\\"),fill:null},ignore:!0});d.setTextContent(y),ol({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),d.__title=h[u],d.on(\\\"mouseover\\\",function(){var e=p.getItemStyle(),i=l?null==t.get(\\\"right\\\")&&\\\"right\\\"!==t.get(\\\"left\\\")?\\\"right\\\":\\\"left\\\":null==t.get(\\\"bottom\\\")&&\\\"bottom\\\"!==t.get(\\\"top\\\")?\\\"bottom\\\":\\\"top\\\";y.setStyle({fill:p.get(\\\"textFill\\\")||e.fill||e.stroke||\\\"#000\\\",backgroundColor:p.get(\\\"textBackgroundColor\\\")}),d.setTextConfig({position:p.get(\\\"textPosition\\\")||i}),y.ignore=!t.get(\\\"showTitle\\\"),n.enterEmphasis(this)}).on(\\\"mouseout\\\",function(){\\\"emphasis\\\"!==i.get([\\\"iconStatus\\\",u])&&n.leaveEmphasis(this),y.hide()}),(\\\"emphasis\\\"===i.get([\\\"iconStatus\\\",u])?Ra:Na)(d),a.add(d),d.on(\\\"click\\\",Lk(r.onclick,r,e,n,u)),g[u]=d})}var a=this.group;if(a.removeAll(),t.get(\\\"show\\\")){var s=+t.get(\\\"itemSize\\\"),l=\\\"vertical\\\"===t.get(\\\"orient\\\"),u=t.get(\\\"feature\\\")||{},h=this._features||(this._features={}),c=[];y(u,function(t,e){c.push(e)}),new AF(this._featureNames||[],c).add(r).update(r).remove(S(r,null)).execute(),this._featureNames=c,qI(a,t,n),a.add(KI(a.getBoundingRect(),t)),l||a.eachChild(function(t){var e=t.__title,i=t.ensureState(\\\"emphasis\\\"),r=i.textConfig||(i.textConfig={}),o=t.getTextContent(),l=o&&o.ensureState(\\\"emphasis\\\");if(l&&!I(l)&&e){var u=l.style||(l.style={}),h=zi(e,wR.makeFont(u)),c=t.x+a.x,p=t.y+a.y+s,d=!1;p+h.height>n.getHeight()&&(r.position=\\\"top\\\",d=!0);var f=d?-5-h.height:s+10;c+h.width/2>n.getWidth()?(r.position=[\\\"100%\\\",f],u.align=\\\"right\\\"):c-h.width/2<0&&(r.position=[0,f],u.align=\\\"left\\\")}})}},n.prototype.updateView=function(t,e,n,i){y(this._features,function(t){t instanceof UK&&t.updateView&&t.updateView(t.model,e,n,i)})},n.prototype.remove=function(t,e){y(this._features,function(n){n instanceof UK&&n.remove&&n.remove(t,e)}),this.group.removeAll()},n.prototype.dispose=function(t,e){y(this._features,function(n){n instanceof UK&&n.dispose&&n.dispose(t,e)})},n.type=\\\"toolbox\\\",n}(lB),D$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){var n=this.model,i=n.get(\\\"name\\\")||t.get(\\\"title.0.text\\\")||\\\"echarts\\\",r=\\\"svg\\\"===e.getZr().painter.getType(),o=r?\\\"svg\\\":n.get(\\\"type\\\",!0)||\\\"png\\\",a=e.getConnectedDataURL({type:o,backgroundColor:n.get(\\\"backgroundColor\\\",!0)||t.get(\\\"backgroundColor\\\")||\\\"#fff\\\",connectedBackgroundColor:n.get(\\\"connectedBackgroundColor\\\"),excludeComponents:n.get(\\\"excludeComponents\\\"),pixelRatio:n.get(\\\"pixelRatio\\\")}),s=uk.browser;if(I(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement(\\\"a\\\");l.download=i+\\\".\\\"+o,l.target=\\\"_blank\\\",l.href=a;var u=new MouseEvent(\\\"click\\\",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var h=a.split(\\\",\\\"),c=h[0].indexOf(\\\"base64\\\")>-1,p=r?decodeURIComponent(h[1]):h[1];c&&(p=window.atob(p));var d=i+\\\".\\\"+o;if(window.navigator.msSaveOrOpenBlob){for(var f=p.length,g=new Uint8Array(f);f--;)g[f]=p.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var v=document.createElement(\\\"iframe\\\");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open(\\\"image/svg+xml\\\",\\\"replace\\\"),x.write(p),x.close(),m.focus(),x.execCommand(\\\"SaveAs\\\",!0,d),document.body.removeChild(v)}}else{var _=n.get(\\\"lang\\\"),b='',w=window.open();w.document.write(b),w.document.title=i}},n.getDefaultOption=function(t){var e={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\\\"])};return e},n}(UK),A$=\\\"__ec_magicType_stack__\\\",k$=[[\\\"line\\\",\\\"bar\\\"],[\\\"stack\\\"]],L$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getIcons=function(){var t=this.model,e=t.get(\\\"icon\\\"),n={};return y(t.get(\\\"type\\\"),function(t){e[t]&&(n[t]=e[t])}),n},n.getDefaultOption=function(t){var e={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:{}};return e},n.prototype.onclick=function(t,e,n){var i=this.model,r=i.get([\\\"seriesIndex\\\",n]);if(P$[n]){var o={series:[]},a=function(t){var e=t.subType,r=t.id,a=P$[n](e,r,t,i);a&&(c(a,t.option),o.series.push(a));var s=t.coordinateSystem;if(s&&\\\"cartesian2d\\\"===s.type&&(\\\"line\\\"===n||\\\"bar\\\"===n)){var l=s.getAxesByScale(\\\"ordinal\\\")[0];if(l){var u=l.dim,h=u+\\\"Axis\\\",p=t.getReferringComponents(h,iO).models[0],d=p.componentIndex;o[h]=o[h]||[];for(var f=0;d>=f;f++)o[h][d]=o[h][d]||{};o[h][d].boundaryGap=\\\"bar\\\"===n}}};y(k$,function(t){p(t,n)>=0&&y(t,function(t){i.setIconStatus(t,\\\"normal\\\")})}),i.setIconStatus(n,\\\"emphasis\\\"),t.eachComponent({mainType:\\\"series\\\",query:null==r?null:{seriesIndex:r}},a);var s,u=n;\\\"stack\\\"===n&&(s=l({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),\\\"emphasis\\\"!==i.get([\\\"iconStatus\\\",n])&&(u=\\\"tiled\\\")),e.dispatchAction({type:\\\"changeMagicType\\\",currentType:u,newOption:o,newTitle:s,featureName:\\\"magicType\\\"})}},n}(UK),P$={line:function(t,e,n,i){return\\\"bar\\\"===t?l({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):void 0},bar:function(t,e,n,i){return\\\"line\\\"===t?l({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):void 0},stack:function(t,e,n,i){var r=n.get(\\\"stack\\\")===A$;return\\\"line\\\"===t||\\\"bar\\\"===t?(i.setIconStatus(\\\"stack\\\",r?\\\"normal\\\":\\\"emphasis\\\"),l({id:e,stack:r?\\\"\\\":A$},i.get([\\\"option\\\",\\\"stack\\\"])||{},!0)):void 0}};Yp({type:\\\"changeMagicType\\\",event:\\\"magicTypeChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){e.mergeOption(t.newOption)});var O$=new Array(60).join(\\\"-\\\"),R$=\\\" \\\",N$=new RegExp(\\\"[\\\"+R$+\\\"]+\\\",\\\"g\\\"),E$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){function n(){i.removeChild(o),_._dom=null}setTimeout(function(){e.dispatchAction({type:\\\"hideTip\\\"})});var i=e.getDom(),r=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement(\\\"div\\\");o.style.cssText=\\\"position:absolute;top:0;bottom:0;left:0;right:0;padding:5px\\\",o.style.backgroundColor=r.get(\\\"backgroundColor\\\")||\\\"#fff\\\";var a=document.createElement(\\\"h4\\\"),s=r.get(\\\"lang\\\")||[];a.innerHTML=s[0]||r.get(\\\"title\\\"),a.style.cssText=\\\"margin:10px 20px\\\",a.style.color=r.get(\\\"textColor\\\");var l=document.createElement(\\\"div\\\"),u=document.createElement(\\\"textarea\\\");l.style.cssText=\\\"overflow:auto\\\";var h=r.get(\\\"optionToContent\\\"),c=r.get(\\\"contentToOption\\\"),p=LD(t);if(I(h)){var d=h(e.getOption());T(d)?l.innerHTML=d:P(d)&&l.appendChild(d)}else{u.readOnly=r.get(\\\"readOnly\\\");var f=u.style;f.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\\\",f.color=r.get(\\\"textColor\\\"),f.borderColor=r.get(\\\"textareaBorderColor\\\"),f.backgroundColor=r.get(\\\"textareaColor\\\"),u.value=p.value,l.appendChild(u)}var g=p.meta,y=document.createElement(\\\"div\\\");y.style.cssText=\\\"position:absolute;bottom:5px;left:0;right:0\\\";var v=\\\"float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px\\\",m=document.createElement(\\\"div\\\"),x=document.createElement(\\\"div\\\");v+=\\\";background-color:\\\"+r.get(\\\"buttonColor\\\"),v+=\\\";color:\\\"+r.get(\\\"buttonTextColor\\\");var _=this;Oe(m,\\\"click\\\",n),Oe(x,\\\"click\\\",function(){if(null==c&&null!=h||null!=c&&null==h)return void n();var t;try{t=I(c)?c(l,e.getOption()):ED(u.value,g)}catch(i){throw n(),new Error(\\\"Data view format error \\\"+i)}t&&e.dispatchAction({type:\\\"changeDataView\\\",newOption:t}),n()}),m.innerHTML=s[1],x.innerHTML=s[2],x.style.cssText=m.style.cssText=v,!r.get(\\\"readOnly\\\")&&y.appendChild(x),y.appendChild(m),o.appendChild(a),o.appendChild(l),o.appendChild(y),l.style.height=i.clientHeight-80+\\\"px\\\",i.appendChild(o),this._dom=o},n.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},n.prototype.dispose=function(t,e){this.remove(t,e)},n.getDefaultOption=function(t){var e={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\\\"};return e},n}(UK);Yp({type:\\\"changeDataView\\\",event:\\\"dataViewChanged\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){var n=[];y(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get(\\\"data\\\");n.push({name:t.name,data:zD(t.data,r)})}else n.push(h({type:\\\"scatter\\\"},t))}),e.mergeOption(c({series:n},t.newOption))});var z$=y,B$=Kr(),V$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.onclick=function(t,e){FD(t),e.dispatchAction({type:\\\"restore\\\",from:this.uid})},n.getDefaultOption=function(t){var e={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\\\"])};return e},n}(UK);Yp({type:\\\"restore\\\",event:\\\"restore\\\",update:\\\"prepareAndUpdate\\\"},function(t,e){e.resetOption(\\\"recreate\\\")});var F$=y,G$=Xr(\\\"toolbox-dataZoom_\\\"),W$=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new yZ(n.getZr()),this._brushController.on(\\\"brush\\\",Lk(this._onBrush,this)).mount()),XD(t,e,this,i,n),YD(t,e)},n.prototype.onclick=function(t,e,n){H$[n].call(this)},n.prototype.remove=function(){this._brushController&&this._brushController.unmount()},n.prototype.dispose=function(){this._brushController&&this._brushController.dispose()},n.prototype._onBrush=function(t){function e(t,e,i){var a=e.getAxis(t),s=a.model,l=n(t,s,o),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();(null!=u.minValueSpan||null!=u.maxValueSpan)&&(i=Pb(0,i.slice(),a.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(r[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function n(t,e,n){var i;return n.eachComponent({mainType:\\\"dataZoom\\\",subType:\\\"select\\\"},function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)}),i}var i=t.areas;if(t.isEnd&&i.length){var r={},o=this.ecModel;this._brushController.updateCovers([]);var a=new OK(HD(this.model),o,{include:[\\\"grid\\\"]});a.matchOutputRanges(i,o,function(t,n,i){if(\\\"cartesian2d\\\"===i.type){var r=t.brushType;\\\"rect\\\"===r?(e(\\\"x\\\",i,n[0]),e(\\\"y\\\",i,n[1])):e({lineX:\\\"x\\\",lineY:\\\"y\\\"}[r],i,n)}}),BD(o,r),this._dispatchZoomAction(r)}},n.prototype._dispatchZoomAction=function(t){var e=[];F$(t,function(t){e.push(s(t))}),e.length&&this.api.dispatchAction({type:\\\"dataZoom\\\",from:this.uid,batch:e})},n.getDefaultOption=function(t){var e={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)\\\"}};return e},n}(UK),H$={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:\\\"takeGlobalCursor\\\",key:\\\"dataZoomSelect\\\",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(VD(this.ecModel))}};Mu(\\\"dataZoom\\\",function(t){function e(t,e,n){var i=t.componentIndex,a={type:\\\"select\\\",$fromToolbox:!0,filterMode:r.get(\\\"filterMode\\\",!0)||\\\"filter\\\",id:G$+e+i};a[n]=i,o.push(a)}var n=t.getComponent(\\\"toolbox\\\",0),i=[\\\"feature\\\",\\\"dataZoom\\\"];if(n&&null!=n.get(i)){var r=n.getModel(i),o=[],a=HD(r),s=$r(t,a);return F$(s.xAxisModels,function(t){return e(t,\\\"xAxis\\\",\\\"xAxisIndex\\\")}),F$(s.yAxisModels,function(t){return e(t,\\\"yAxis\\\",\\\"yAxisIndex\\\")}),o}}),If(UD);var Y$=[\\\"transition\\\",\\\"enterFrom\\\",\\\"leaveTo\\\"],X$=Y$.concat([\\\"enterAnimation\\\",\\\"updateAnimation\\\",\\\"leaveAnimation\\\"]),U$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e.preventAutoZ=!0,e}return e(n,t),n.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},n.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Or(r,o,\\\"normalMerge\\\"),s=this._elOptionsToUpdate=[];y(a,function(t,e){var n=t.newOption;n&&(s.push(n),ZD(t,n),qD(r,e,n),$D(r[e],n))},this),n.elements=x(r,function(t){return t&&delete t.$action,null!=t})},n.prototype._flatten=function(t,e,n){y(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}},this)},n.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},n.type=\\\"graphic\\\",n.defaultOption={elements:[]},n}(HE),Z$={path:null,compoundPath:null,group:HP,image:fR,text:wR},j$=Kr(),q$=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=n.type,e}return e(n,t),n.prototype.init=function(){this._elMap=Z()},n.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},n.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get(\\\"z\\\"),o=t.get(\\\"zlevel\\\");y(e,function(e){var a=Wr(e.id,null),s=null!=a?n.get(a):null,l=Wr(e.parentId,null),u=null!=l?n.get(l):i,h=e.type,c=e.style;\\\"text\\\"===h&&c&&e.hv&&e.hv[1]&&(c.textVerticalAlign=c.textBaseline=c.verticalAlign=c.align=null);var p=e.textContent,d=e.textConfig;if(c&&ZS(c,h,!!d,!!p)){var f=jS(c,h,!0);!d&&f.textConfig&&(d=e.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=nA(e),y=e.$action||\\\"merge\\\",v=\\\"merge\\\"===y,m=\\\"replace\\\"===y;if(v){var x=!s,_=s;x?_=QD(a,u,e.type,n):(_&&(j$(_).isNew=!1),dM(_)),_&&(QS(_,g,t,{isInit:x}),eA(_,e,r,o))}else if(m){tA(s,e,n,t);var b=QD(a,u,e.type,n);b&&(QS(b,g,t,{isInit:!0}),eA(b,e,r,o))}else\\\"remove\\\"===y&&(tM(s,e),tA(s,e,n,t));var w=n.get(a);if(w&&p)if(v){var S=w.getTextContent();S?S.attr(p):w.setTextContent(new wR(p))}else m&&w.setTextContent(new wR(p));if(w){var M=e.clipPath;if(M){var I=M.type,T=void 0,x=!1;if(v){var C=w.getClipPath();x=!C||j$(C).type!==I,T=x?JD(I):C}else m&&(x=!0,T=JD(I));w.setClipPath(T),QS(T,M,t,{isInit:x}),fM(T,M.keyframeAnimation,t)}var D=j$(w);w.setTextConfig(d),D.option=e,iA(w,t,e),ol({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),fM(w,e.keyframeAnimation,t)}})}},n.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=[\\\"x\\\",\\\"y\\\"],l=0;l=0;l--){var u=n[l],h=Wr(u.id,null),c=null!=h?r.get(h):null;if(c){var d=c.parent,y=j$(d),v=d===i?{width:o,height:a}:{width:y.width,height:y.height},m={},x=hu(c,u,v,null,{hv:u.hv,boundingMode:u.bounding},m);if(!j$(c).isNew&&x){for(var _=u.transition,b={},w=0;w=0)?b[S]=M:c[S]=M}As(c,b,t,0)}else c.attr(m)}}},n.prototype._clear=function(){var t=this,e=this._elMap;e.each(function(n){tA(n,j$(n).option,e,t._lastGraphicModel)}),this._elMap=Z()},n.prototype.dispose=function(){this._clear()},n.type=\\\"graphic\\\",n}(lB);If(rA);var K$=Math.sin,$$=Math.cos,J$=Math.PI,Q$=2*Math.PI,tJ=180/J$,eJ=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str=\\\"\\\",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add(\\\"M\\\",t,e)},t.prototype.lineTo=function(t,e){this._add(\\\"L\\\",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add(\\\"C\\\",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add(\\\"Q\\\",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,u=!s,h=Math.abs(l),c=qn(h-Q$)||(u?l>=Q$:-l>=Q$),p=l>0?l%Q$:l%Q$+Q$,d=!1;d=c?!0:qn(h)?!1:p>=J$==!!u;var f=t+n*$$(o),g=e+i*K$(o);this._start&&this._add(\\\"M\\\",f,g);var y=Math.round(r*tJ);if(c){var v=1/this._p,m=(u?1:-1)*(Q$-v);this._add(\\\"A\\\",n,i,y,1,+u,t+n*$$(o+m),e+i*K$(o+m)),v>.01&&this._add(\\\"A\\\",n,i,y,0,+u,f,g)}else{var x=t+n*$$(a),_=e+i*K$(a);this._add(\\\"A\\\",n,i,y,+d,+u,x,_)}},t.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\\\")},t.prototype.closePath=function(){this._d.length>0&&this._add(\\\"Z\\\")},t.prototype._add=function(t){for(var e=[],n=this._p,i=1;iu;u++){var h=t[u];if(!h.invisible){var c=h.__clipPaths,p=c&&c.length||0,d=r&&r.length||0,f=void 0;for(f=Math.max(p-1,d-1);f>=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=d-1;g>f;g--)s--,i=a[s-1];for(var y=f+1;p>y;y++){var v={};VA(c[y],v,e);var m=uA(\\\"g\\\",\\\"clip-g-\\\"+l++,v,[]);(i?i.children:n).push(m),a[s++]=m,i=m}r=c;var x=NA(h,e);x&&(i?i.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display=\\\"none\\\",t=Kc(i,0,n),e=Kc(i,1,n),r.style.display=\\\"\\\"),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+\\\"px\\\",o.height=e+\\\"px\\\"}if(ri(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute(\\\"width\\\",t),a.setAttribute(\\\"height\\\",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(\\\"width\\\",t),s.setAttribute(\\\"height\\\",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=\\\"\\\"),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n=\\\"data:image/svg+xml;\\\";return t?(e=QL(e),e&&n+\\\"base64,\\\"+e):n+\\\"charset=UTF-8,\\\"+encodeURIComponent(e)},t}();nr(\\\"svg\\\",xJ),t.version=hV,t.dependencies=cV,t.PRIORITY=DV,t.init=Pp,t.connect=Op,t.disconnect=Rp,t.disConnect=mF,t.dispose=Np,t.getInstanceByDom=Ep,t.getInstanceById=zp,t.registerTheme=Bp,t.registerPreprocessor=Vp,t.registerProcessor=Fp,t.registerPostInit=Gp,t.registerPostUpdate=Wp,t.registerUpdateLifecycle=Hp,t.registerAction=Yp,t.registerCoordinateSystem=Xp,t.getCoordinateSystemDimensions=Up,t.registerLayout=Zp,t.registerVisual=jp,t.registerLoading=Kp,t.setCanvasCreator=$p,t.registerMap=Jp,t.getMap=Qp,t.registerTransform=_F,t.dataTool=DF,t.registerLocale=Ml,t.zrender=jP,t.matrix=iL,t.vector=Wk,t.zrUtil=zk,t.color=qL,t.helper=vG,t.number=CG,t.time=DG,t.graphic=AG,t.format=kG,t.util=LG,t.List=WF,t.ComponentModel=HE,t.ComponentView=lB,t.SeriesModel=sB,t.ChartView=cB,t.extendComponentModel=$f,t.extendComponentView=Jf,t.extendSeriesModel=Qf,t.extendChartView=tg,t.throttle=vc,t.use=If,t.setPlatformAPI=r,t.parseGeoJSON=Rf,t.parseGeoJson=Rf,t.env=uk,t.Model=gE,t.Axis=RG,t.innerDrawElementOnCanvas=vp});\",\"type\":\"application/javascript\",\"module-type\":\"library\",\"Modern.TiddlyDev#Minify\":\"false\",\"version\":\"5.4.3\"},\"$:/plugins/Gk0Wk/echarts/readme\":{\"title\":\"$:/plugins/Gk0Wk/echarts/readme\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n将强大的可视化工具 [[ECharts|https://echarts.apache.org/zh/index.html]] 以优雅的方式与 TiddlyWiki 相结合。\\n\\n插件说明与使用教程较长,请参考 https://tiddly-gittly.github.io/tw-echarts/\\n\\n> 本插件使用灵活而强大的 <$text text=\\\"TiddlyWiki\\\" /> 开发框架 [[Tiddly.ModernDev|https://github.com/tiddly-gittly/Modern.TiddlyDev]]\\n\\n\\n\\n<$list filter=\\\"[!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> This plugin uses the flexible and powerful <$text text=\\\"TiddlyWiki\\\" /> development framework [[Tiddly.ModernDev|https://github.com/tiddly-gittly/Modern.TiddlyDev]]\\n\\n\\n\\n\\n[img[$:/plugins/Gk0Wk/echarts/banner]]\\n\"},\"$:/plugins/Gk0Wk/echarts/Snippets/GitHubHeatMap\":{\"title\":\"$:/plugins/Gk0Wk/echarts/Snippets/GitHubHeatMap\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/TextEditor/Snippet\",\"caption\":\"Add a ~GitHub style ~HeatMap\",\"text\":\"
\\n
\\n <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}subtract[1]!match[-1]] ~[subtract[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ◄\\n ''<$text text={{{[{$:/state/heatmap!!year}match[]thenelse{$:/state/heatmap!!year}]}}}/>'' <$button\\n set=\\\"$:/state/heatmap!!year\\\"\\n setTo={{{ [{$:/state/heatmap!!year}add[1]!match[1]] ~[add[1]] }}}\\n class=\\\"tc-btn-invisible tc-tiddlylink\\\"\\n\\n >\\n ►\\n \\n
\\n <$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/GitHubHeatMap.js\\\" $width=\\\"100%\\\" $height=\\\"100%\\\" year={{$:/state/heatmap!!year}}/>\\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\":\"<$echarts $tiddler=\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\\\" aliasField=\\\"caption\\\" levels=2 focussedTiddler=\\\"Index\\\" graphTitle=\\\"Graph\\\" />\"},\"$:/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<$set name=\\\"textortiddler\\\" value=\\\"\\\"\\\"$textortiddler$\\\"\\\"\\\">\\n<$list filter=\\\"[is[tiddler]] [is[shadow]]\\\">\\n<$echarts $tiddler=<> $height=\\\"$height$\\\" $width=\\\"$width$\\\" $class=\\\"$class$\\\" $theme=\\\"$theme$\\\" $renderer=\\\"$renderer$\\\" $fillSidebar=\\\"$fillSidebar$\\\"/>\\n\\n<$list filter=\\\"[!is[tiddler]!is[shadow]]\\\">\\n<$echarts $text=<> $height=\\\"$height$\\\" $width=\\\"$width$\\\" $class=\\\"$class$\\\" $theme=\\\"$theme$\\\" $renderer=\\\"$renderer$\\\" $fillSidebar=\\\"$fillSidebar$\\\"/>\\n\\n\\n\\\\end\\n\"},\"$:/plugins/Gk0Wk/echarts/addons/Function.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/Function.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"caption\":\"Function\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/Function-readme}}\",\"Modern.TiddlyDev#IncludeSource\":\"false\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/Function/Function.ts\",\"text\":\"\\\"use strict\\\";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(t,o,n,r)=>{if(o&&\\\"object\\\"==typeof o||\\\"function\\\"==typeof o)for(let e of __getOwnPropNames(o))__hasOwnProp.call(t,e)||e===n||__defProp(t,e,{get:()=>o[e],enumerable:!(r=__getOwnPropDesc(o,e))||r.enumerable});return t},__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),Function_exports={},addon=(__export(Function_exports,{\\\"default\\\":()=>Function_default}),module.exports=__toCommonJS(Function_exports),{shouldUpdate:(e,t,o)=>0<$tw.utils.count(o),onUpdate:(e,t,o)=>{var n=Math.max(1,Math.min(1e5,parseInt(o.res,10)||200));let r=Number(o.min)||-1,i=Number(o.max)||1;Number.isFinite(r)||(r=-1),Number.isFinite(i)||(i=1),r>i&&([i,r]=[r,i]);const a=new Function(\\\"x\\\",\\\"return \\\".concat(o.func,\\\";\\\")||\\\"return x;\\\");var s=e=>Math.max(-9e8,Math.min(9e8,a(e))),p=[],_=(i-r)/Math.min(n,1e5);for(let u=0,m=r;u{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(t,r,a,o)=>{if(r&&\\\"object\\\"==typeof r||\\\"function\\\"==typeof r)for(let e of __getOwnPropNames(r))__hasOwnProp.call(t,e)||e===a||__defProp(t,e,{get:()=>r[e],enumerable:!(o=__getOwnPropDesc(r,e))||o.enumerable});return t},__toESM=(e,t,r)=>(r=null!=e?__create(__getProtoOf(e)):{},__copyProps(!t&&e&&e.__esModule?r:__defProp(r,\\\"default\\\",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),GitHubHeatMap_exports={},ECharts=(__export(GitHubHeatMap_exports,{\\\"default\\\":()=>GitHubHeatMap_default}),module.exports=__toCommonJS(GitHubHeatMap_exports),__toESM(require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\"))),getFilterByDate=e=>\\\"[sameday:created[\\\".concat(e,\\\"]] [sameday:modified[\\\").concat(e,\\\"]]\\\"),yearDates=new Map,dayTime=864e5,getData=(t,a)=>{if(!yearDates.has(t)){var r=ECharts.number.parseDate(\\\"\\\".concat(t,\\\"-01-01\\\")).getTime(),o=ECharts.number.parseDate(\\\"\\\".concat(t+1,\\\"-01-01\\\")).getTime(),l=[];for(let e=r;e{var r=$tw.wiki.filterTiddlers(getFilterByDate(t),void 0,a).length;return n+=r,[e,r]}),n]},getPlatteColor=e=>$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",'<$transclude tiddler={{$:/palette}} index=\\\"'.concat(e,'\\\"><$transclude tiddler=\\\"$:/palettes/Vanilla\\\" index=\\\"').concat(e,'\\\"><$transclude tiddler=\\\"$:/config/DefaultColourMappings/').concat(e,'\\\"/>'),{}),checkIfChinese=()=>{var e;return!0===(null==(e=$tw.wiki.getTiddlerText(\\\"$:/language\\\"))?void 0:e.includes(\\\"zh\\\"))},checkIfDarkMode=()=>{var e;return\\\"dark\\\"===(null==(e=null==(e=$tw.wiki.getTiddler($tw.wiki.getTiddlerText(\\\"$:/palette\\\")))?void 0:e.fields)?void 0:e[\\\"color-scheme\\\"])},GitHubHeatMapAddon={onMount:(e,t)=>({filter:t.subfilter||\\\"[all[tiddlers]!is[shadow]!is[system]]\\\"}),shouldUpdate:(e,t,r,a)=>{e.filter=a.subfilter||e.filter||\\\"[all[tiddlers]!is[shadow]!is[system]]\\\";var o=$tw.wiki.makeTiddlerIterator(Object.keys(t));return 0<$tw.utils.count($tw.wiki.filterTiddlers(e.filter,void 0,o))},onUpdate:(e,t,r)=>{var a=parseInt(r.year,10)||(new Date).getFullYear();const c=$tw.wiki.makeTiddlerIterator($tw.wiki.filterTiddlers(t.filter));var[o,l]=getData(a,c);let i=\\\"\\\",d=0,n;var s=checkIfDarkMode(),p=checkIfChinese();e.setOption({title:{top:0,left:\\\"center\\\",text:p?\\\"今年产出 \\\".concat(l,\\\" 篇文章\\\"):\\\"Produced \\\".concat(l,\\\" tiddlers this year\\\")},tooltip:{position:\\\"top\\\",formatter:({value:[e,t]})=>(e===i&&t===d&&n||(n=((e,t)=>{if(0===t)return checkIfChinese()?\\\"\\\".concat(ECharts.format.formatTime(\\\"yyyy年M月d日\\\",e),\\\" 无条目。\\\"):\\\"\\\".concat($tw.utils.formatDateString($tw.utils.parseDate(e.replace(/-/g,\\\"\\\")),\\\"MMM DDD, YYYY\\\"),\\\" no tiddler.\\\");var r=$tw.utils.domMaker(\\\"p\\\",{text:checkIfChinese()?\\\"\\\".concat(ECharts.format.formatTime(\\\"yyyy年M月d日\\\",e),\\\" 共有 \\\").concat(t,\\\" 篇:\\\"):\\\"\\\".concat($tw.utils.formatDateString($tw.utils.parseDate(e.replace(/-/g,\\\"\\\")),\\\"MMM DDD, YYYY\\\"),\\\" \\\").concat(t,\\\" tiddler\\\").concat(1(new $tw.Story).navigateTiddler(s)),i.appendChild(d),a.appendChild(i)}return[r,a]})(e,t),i=e,d=t),n),triggerOn:\\\"mousemove|click\\\",enterable:!0,hideDelay:800,backgroundColor:getPlatteColor(\\\"page-background\\\"),borderColor:getPlatteColor(\\\"very-muted-foreground\\\")},visualMap:{type:\\\"piecewise\\\",orient:\\\"horizontal\\\",calculable:!0,showLabel:!1,right:0,top:175,pieces:[{lte:0,color:s?\\\"#161B22\\\":\\\"#EBEDF0\\\"},{gt:0,lte:3,color:s?\\\"#0E4429\\\":\\\"#39D353\\\"},{gt:3,lte:7,color:s?\\\"#006D32\\\":\\\"#26A641\\\"},{gt:7,lte:15,color:s?\\\"#26A641\\\":\\\"#006D32\\\"},{gt:15,color:s?\\\"#39D353\\\":\\\"#0E4429\\\"}]},calendar:{top:60,left:0,right:0,cellSize:15,orient:\\\"horizontal\\\",range:a,itemStyle:{borderWidth:3,borderCap:\\\"round\\\",borderJoin:\\\"round\\\",borderColor:getPlatteColor(\\\"background\\\")},splitLine:{show:!1},dayLabel:{show:!0,nameMap:p?\\\"ZH\\\":\\\"EN\\\"},monthLabel:{show:!0,nameMap:p?\\\"ZH\\\":\\\"EN\\\"},yearLabel:{show:!0,position:\\\"bottom\\\",margin:12,verticalAlign:\\\"top\\\"}},series:{type:\\\"heatmap\\\",coordinateSystem:\\\"calendar\\\",calendarIndex:0,data:o}})}},GitHubHeatMap_default=GitHubHeatMapAddon;\"},\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TagCloud.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"caption\":\"TagCloud\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/TagCloud-readme}}\",\"Modern.TiddlyDev#IncludeSource\":\"false\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/TagCloud/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={},getPlatteColor=(__export(TagCloud_exports,{\\\"default\\\":()=>TagCloud_default}),module.exports=__toCommonJS(TagCloud_exports),t=>$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",'<$transclude tiddler={{$:/palette}} index=\\\"'.concat(t,'\\\"><$transclude tiddler=\\\"$:/palettes/Vanilla\\\" index=\\\"').concat(t,'\\\"><$transclude tiddler=\\\"$:/config/DefaultColourMappings/').concat(t,'\\\"/>'),{})),addon={shouldUpdate:(t,e)=>0<$tw.utils.count(e),onUpdate:t=>{const r=new Map;let e=\\\"\\\",o;var a=t.getOption();const l=!0===a.darkMode;a=a.filter||\\\"[tags[]!is[system]sort[title]]\\\",l,l,r.clear(),a=$tw.wiki.filterTiddlers(a).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<3;t++)o.push(l?255-Math.round(160*Math.random()):Math.round(160*Math.random()));r.set(e,\\\"rgb(\\\".concat(o.join(\\\",\\\"),\\\")\\\"))}return r.get(e)})(t)}}));t.setOption({series:[{type:\\\"wordCloud\\\",gridSize:4,shape:\\\"pentagon\\\",data:a,layoutAnimation:!0,textStyle:{fontFamily:\\\"sans-serif\\\",fontWeight:\\\"bold\\\"},emphasis:{focus:\\\"self\\\",textStyle:{textShadowBlur:10,textShadowColor:\\\"#333\\\"}}}],tooltip:{position:\\\"top\\\",formatter:({data:{name:t}})=>(t===e&&o||(o=(t=>{var e=$tw.utils.domMaker(\\\"ul\\\",{}),o=$tw.wiki.getTiddlersWithTag(t),r=o.length;for(let n=0;n(new $tw.Story).navigateTiddler(d)),a.appendChild(l),e.appendChild(a)}return[e]})(t),e=t),o),triggerOn:\\\"mousemove|click\\\",enterable:!0,hideDelay:800,textStyle:{color:\\\"inherit\\\",fontFamily:\\\"inherit\\\",fontSize:\\\"inherit\\\"},backgroundColor:getPlatteColor(\\\"page-background\\\"),borderColor:getPlatteColor(\\\"very-muted-foreground\\\")}})}},TagCloud_default=addon;\"},\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/addons/TheBrain.js\",\"type\":\"application/javascript\",\"module-type\":\"echarts-component\",\"caption\":\"FocusMap\",\"echarts.author\":\"Gk0Wk(Sttot)\",\"echarts.readme\":\"{{$:/plugins/Gk0Wk/echarts/addons/TheBrain-readme}}\",\"Modern.TiddlyDev#IncludeSource\":\"false\",\"Modern.TiddlyDev#Origin\":\"addons/Gk0Wk/TheBrain/TheBrain.ts\",\"text\":\"\\\"use strict\\\";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(t,o,i,r)=>{if(o&&\\\"object\\\"==typeof o||\\\"function\\\"==typeof o)for(let e of __getOwnPropNames(o))__hasOwnProp.call(t,e)||e===i||__defProp(t,e,{get:()=>o[e],enumerable:!(r=__getOwnPropDesc(o,e))||r.enumerable});return t},__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),TheBrain_exports={},colors=(__export(TheBrain_exports,{\\\"default\\\":()=>TheBrain_default}),module.exports=__toCommonJS(TheBrain_exports),[\\\"#5470c6\\\",\\\"#91cc75\\\",\\\"#fac858\\\",\\\"#ee6666\\\",\\\"#73c0de\\\",\\\"#3ba272\\\",\\\"#fc8452\\\",\\\"#9a60b4\\\",\\\"#ea7ccc\\\"]),CategoriesEn=[\\\"Focusing\\\",\\\"History\\\",\\\"Link To\\\",\\\"Backlink From\\\",\\\"Tag To\\\",\\\"Tag By\\\",\\\"Transclude\\\"].map((e,t)=>({name:e,itemStyle:{color:colors[t%colors.length]}})),CategoriesZh=[\\\"聚焦\\\",\\\"历史\\\",\\\"链接\\\",\\\"反链\\\",\\\"标签\\\",\\\"作为标签\\\",\\\"嵌套\\\"].map((e,t)=>({name:e,itemStyle:{color:colors[t%colors.length]}})),attributes=new Set([\\\"focussedTiddler\\\",\\\"levels\\\",\\\"graphTitle\\\",\\\"aliasField\\\",\\\"excludeFilter\\\",\\\"previewDelay\\\",\\\"focusBlur\\\",\\\"previewTemplate\\\",\\\"zoom\\\"]),getPlatteColor=e=>$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",'<$transclude tiddler={{$:/palette}} index=\\\"'.concat(e,'\\\"><$transclude tiddler=\\\"$:/palettes/Vanilla\\\" index=\\\"').concat(e,'\\\"><$transclude tiddler=\\\"$:/config/DefaultColourMappings/').concat(e,'\\\"/>'),{}),findIcon=e=>{var t,o=null==(o=$tw.wiki.getTiddler(e))?void 0:o.fields;if(null!=o&&o.icon)return(t=null==(t=$tw.wiki.getTiddler(o.icon))?void 0:t.fields)?t._canonical_uri?\\\"image://\\\".concat(t._canonical_uri):t.title.startsWith(\\\"$:/core/images/\\\")?void 0:\\\"image://data:\\\".concat(t.type,\\\";base64,\\\").concat(t.text):/^https?:\\\\/\\\\//.test(o.icon)?\\\"image://\\\".concat(o.icon):void 0},getAliasOrTitle=(e,t)=>{var o;return void 0===t||\\\"title\\\"===t?[e,Boolean($tw.wiki.getTiddler(e))]:(o=$tw.wiki.getTiddler(e))?[\\\"string\\\"==typeof(o=o.fields[t])?$tw.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd.tiddlywiki\\\",o,{variables:{currentTiddler:e}}):e,!0]:[e,!1]},TheBrainAddon={onMount:(s,e)=>{s.on(\\\"click\\\",{dataType:\\\"node\\\"},e=>{(new $tw.Story).navigateTiddler(e.data.name)});let d=4,c,p;const t=setInterval(()=>{var t=s.getOption(),o=null==(o=null==(o=null==t?void 0:t.series)?void 0:o[0])?void 0:o.zoom;if(\\\"number\\\"==typeof o){c||(c=t.tooltip.triggerOn,p=t.tooltip.showDelay);let e=!1;var i=Math.floor(4*o),r=2.5<=o,o=3<=o?p:2*p;if(t.series[0].label.show!==r&&(t.series[0].label.show=r,t.tooltip.triggerOn=r?c:\\\"none\\\",e=!0),t.tooltip.showDelay!==o&&(t.tooltip.showDelay=o,e=!0),i!==d){d=i,t.series[0].label.fontSize=\\\"\\\".concat(Math.min(.5*d+2,24),\\\"px\\\"),t.series[0].lineStyle.width=Math.min(Math.max(.0625*d,.5),6),t.series[0].label.position=160{clearInterval(t)}}},onUnmount:({unmount:e})=>{e()},shouldUpdate:({viewingTiddlers:t,focusing:e,currentlyFocused:o},i,r)=>{var l;return Object.keys(i).some(e=>t.has(e))||Object.keys(r).some(e=>attributes.has(e))||void 0===e&&!0!==(null==o?void 0:o.has(null!=(l=$tw.wiki.getTiddlerText(\\\"$:/temp/focussedTiddler\\\"))?l:\\\"\\\"))},onUpdate:(W,i,u)=>{let e,t,o,r,l,n,s,d,g,f,j,m,L,y=new Set;for(const a of u.focussedTiddler?$tw.wiki.filterTiddlers(u.focussedTiddler):[null!=(e=$tw.wiki.getTiddlerText(\\\"$:/temp/focussedTiddler\\\"))?e:\\\"\\\"])null!=(o=null==(t=$tw.wiki.getTiddler(a))?void 0:t.fields)&&o[\\\"draft.of\\\"]||y.add(a);if(0!==y.size){var w=new Set;for(const C of y){var E=null==(r=$tw.wiki.getTiddler(C))?void 0:r.fields[\\\"draft.of\\\"];E?w.add(E):w.add(C)}y=w,i.focusing=u.focussedTiddler,i.currentlyFocused=y,i.viewingTiddlers.clear();for(const V of y)i.viewingTiddlers.add(V);const k=[],S=[];var h=!0===(null==(l=$tw.wiki.getTiddlerText(\\\"$:/language\\\"))?void 0:l.includes(\\\"zh\\\"));let e=Number(u.levels);Number.isNaN(e)&&(e=1),e=Math.max(e,-1);var H=u.graphTitle||(h?\\\"聚焦\\\":\\\"Focusing Map\\\");const $=u.aliasField||\\\"caption\\\",_=\\\"\\\"===u.excludeFilter?void 0:$tw.wiki.compileFilter(null!=(n=u.excludeFilter)?n:\\\"[prefix[$:/]] [is[draft]]\\\"),x=null!=(d=$tw.utils.parseStringArray(null!=(s=u.excludeTitles)?s:\\\"\\\"))?d:[],O=new Map;for(const P of y)k.push({name:P,category:0,label:{formatter:getAliasOrTitle(P,$)[0],fontWeight:\\\"bold\\\",fontSize:\\\"15px\\\"},symbol:findIcon(P),symbolSize:15,select:{disabled:!0},itemStyle:{opacity:1,borderColor:\\\"\\\".concat(colors[0],\\\"66\\\"),borderWidth:15},isTag:!1,tooltip:{show:!1}});let a=[];O.set(\\\"\\\",!1);for(const M of y)a.push(M),O.set(M,!0);if(_){var U=new Set(a);for(const Y of _.call($tw.wiki,a))U[\\\"delete\\\"](Y);a=Array.from(U)}if(x.length){var Z=new Set(a);for(const q of x)Z[\\\"delete\\\"](q);a=Array.from(Z)}for(var T=(e,t,o)=>{var i,r,l;return!(_&&0<_.call($tw.wiki,[e]).length||x.includes(e))&&(([r,l]=void 0===(i=O.get(e))?getAliasOrTitle(e,$):[\\\"\\\",i]),void 0===i&&(k.push(t(r,l)),O.set(e,l),l)&&a.push(e),S.push(o(l)),l)};a.length&&0({name:B,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(B),category:2,isTag:!1}),e=>({source:z,target:B,lineStyle:{color:colors[2],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const N of $tw.wiki.getTiddlerBacklinks(z))T(N,(e,t)=>({name:N,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(N),category:3,isTag:!1}),e=>({source:N,target:z,lineStyle:{color:colors[3],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const F of null!=(j=null==(f=null==(g=$tw.wiki.getTiddler(z))?void 0:g.fields)?void 0:f.tags)?j:[])T(F,(e,t)=>({name:F,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(F),category:4,isTag:!0}),e=>({source:z,target:F,lineStyle:{color:colors[4],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const I of $tw.wiki.getTiddlersWithTag(z))T(I,(e,t)=>({name:I,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(I),category:5,isTag:!1}),e=>({source:I,target:z,lineStyle:{color:colors[5],type:e?\\\"solid\\\":\\\"dashed\\\"}}));for(const D of $tw.wiki.getTiddlerBacktranscludes(z))T(D,(e,t)=>({name:D,label:{formatter:e},itemStyle:{opacity:t?1:.5},symbol:findIcon(D),category:6,isTag:!1}),e=>({source:D,target:z,lineStyle:{color:colors[6],type:e?\\\"solid\\\":\\\"dashed\\\"}}))}}if(1===y.size){var b=y.values().next().value;let t=b;var G=new Set;for(let e=i.historyTiddlers.length-2;0<=e;e--){const A=i.historyTiddlers[e];G.has(A)||A===t||A.startsWith(\\\"$:/\\\")||(T(A,(e,t)=>({name:A,label:{formatter:e},category:1,symbol:findIcon(A),symbolSize:3,itemStyle:{opacity:t?.65:.4},isTag:!1}),e=>({source:A,target:t,lineStyle:{color:colors[1],type:e?\\\"dashed\\\":\\\"dotted\\\",opacity:.5}})),t=A)}var v=i.historyTiddlers.indexOf(b);-1e.name),icon:\\\"circle\\\"}],title:{text:H,show:!0,top:\\\"bottom\\\",left:\\\"right\\\"},toolbox:{show:!0,left:0,bottom:0,feature:{restore:{},saveAsImage:{}}},tooltip:{position:\\\"top\\\",formatter:({data:{name:t,isTag:e},dataType:o})=>{if(\\\"node\\\"!==o)return[];if(t!==c||!p){var i=$tw.utils.domMaker(\\\"div\\\",{style:{maxWidth:\\\"40vw\\\",maxHeight:\\\"50vh\\\",overflowY:\\\"auto\\\",whiteSpace:\\\"normal\\\"},\\\"class\\\":\\\"gk0wk-echarts-thebrain-popuptiddler-container\\\"});if(e){var r=$tw.utils.domMaker(\\\"ul\\\",{}),l=$tw.wiki.getTiddlersWithTag(t),a=l.length;for(let e=0;e(new $tw.Story).navigateTiddler(d)),n.appendChild(s),r.appendChild(n)}p=[r]}else $tw.wiki.makeWidget($tw.wiki.parseTiddler(u.previewTemplate||\\\"$:/plugins/Gk0Wk/echarts/addons/TheBrainPopup\\\"),{document:document,parseAsInline:!0,variables:{currentTiddler:t}}).render(i,null),p=[i,$tw.utils.domMaker(\\\"style\\\",{innerHTML:\\\".gk0wk-echarts-thebrain-popuptiddler-container::-webkit-scrollbar {display: none;} .gk0wk-echarts-thebrain-popuptiddler-container .tc-tiddler-controls { display: none; }\\\"})];c=t}return p},triggerOn:0<=o?\\\"mousemove\\\":\\\"none\\\",enterable:!0,showDelay:Math.max(0,o),hideDelay:200,confine:!0,textStyle:{color:\\\"inherit\\\",fontFamily:\\\"inherit\\\",fontSize:\\\"inherit\\\"},appendToBody:!0,backgroundColor:getPlatteColor(\\\"page-background\\\"),borderColor:getPlatteColor(\\\"very-muted-foreground\\\")},series:[{name:H,type:\\\"graph\\\",layout:\\\"force\\\",top:0,bottom:0,left:0,right:0,height:\\\"100%\\\",width:\\\"100%\\\",nodes:k,edges:S,categories:h?CategoriesZh:CategoriesEn,roam:!0,draggable:!1,zoom:t,label:{position:\\\"right\\\",show:!0,fontSize:\\\"10px\\\",backgroundColor:\\\"transparent\\\"},labelLayout:{moveOverlap:!0},edgeLabel:{show:!1},force:{repulsion:50},cursor:\\\"pointer\\\",symbolSize:6,edgeSymbol:[\\\"none\\\",\\\"arrow\\\"],edgeSymbolSize:[0,5],lineStyle:{width:1,opacity:.75,curveness:.15},itemStyle:{opacity:.9},emphasis:{disabled:!v,focus:\\\"adjacency\\\",scale:1.2},blur:{itemStyle:{opacity:.3},lineStyle:{opacity:.3}}}]})}}},TheBrain_default=TheBrainAddon;\"},\"$:/plugins/Gk0Wk/echarts/widget.js\":{\"title\":\"$:/plugins/Gk0Wk/echarts/widget.js\",\"type\":\"application/javascript\",\"module-type\":\"widget\",\"Modern.TiddlyDev#Origin\":\"widget/index.ts\",\"text\":\"\\\"use strict\\\";var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,i)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,__spreadValues=(t,e)=>{for(var i in e=e||{})__hasOwnProp.call(e,i)&&__defNormalProp(t,i,e[i]);if(__getOwnPropSymbols)for(var i of __getOwnPropSymbols(e))__propIsEnum.call(e,i)&&__defNormalProp(t,i,e[i]);return t},__copyProps=(e,i,r,s)=>{if(i&&\\\"object\\\"==typeof i||\\\"function\\\"==typeof i)for(let t of __getOwnPropNames(i))__hasOwnProp.call(e,t)||t===r||__defProp(e,t,{get:()=>i[t],enumerable:!(s=__getOwnPropDesc(i,t))||s.enumerable});return e},__toESM=(t,e,i)=>(i=null!=t?__create(__getProtoOf(t)):{},__copyProps(!e&&t&&t.__esModule?i:__defProp(i,\\\"default\\\",{value:t,enumerable:!0}),t)),import_widget=require(\\\"$:/core/modules/widgets/widget.js\\\"),ECharts=__toESM(require(\\\"$:/plugins/Gk0Wk/echarts/echarts.min.js\\\")),Function_=Function;if($tw.browser){globalThis.echarts=ECharts;try{$tw.modules.forEachModuleOfType(\\\"echarts-extension\\\",(t,e)=>{var i,r,s,n,a;\\\"$:/plugins/Gk0Wk/echarts-stat/ecStat.min.js\\\"===t&&(({transform:{histogram:r,clustering:s,regression:n},statistics:a}=e),null!=(i=ECharts.registerTransform)&&i(r),null!=(r=ECharts.registerTransform)&&r(s),null!=(i=ECharts.registerTransform)&&i(n),globalThis.EChartsStat=a)})}catch(error){console.error(error)}}var eChartsInstanceUnmountCheckTimer,echartWidgets=new Set,registerInstance=t=>{$tw.browser&&void 0===eChartsInstanceUnmountCheckTimer&&(echartWidgets.add(t),eChartsInstanceUnmountCheckTimer=setInterval(()=>{var t=[];for(const e of echartWidgets)document.contains(e.containerDom)||(unmountAddon(e.tiddlerTitle,e.state,e.echartsInstance),e.clearInstance(),t.push(e));for(const i of echartWidgets)echartWidgets[\\\"delete\\\"](i);echartWidgets.size<1&&(eChartsInstanceUnmountCheckTimer=void 0,clearInterval(eChartsInstanceUnmountCheckTimer))},1e3))},unmountAddon=(t,e,i)=>{var r,s,n,a,h;try{i.off(\\\"restore\\\"),t&&\\\"application/javascript\\\"===(null==(s=null==(r=$tw.wiki.getTiddler(t))?void 0:r.fields)?void 0:s.type)&&(h=(null!=(n=(a=require(t))[\\\"default\\\"])?n:a).onUnmount,\\\"function\\\"==typeof h)&&h(e)}catch(error){console.error(error)}},nextId=0,EChartsWidget=class extends import_widget.widget{constructor(){super(...arguments),this.uuid=\\\"gk0wk-echarts-container-\\\".concat(nextId++),this.width=\\\"100%\\\",this.height=\\\"300px\\\",this[\\\"class\\\"]=\\\"gk0wk-echarts-body\\\",this.fillSidebar=!0,this.renderer=\\\"canvas\\\",this.skipDraftTiddle=!0}initialise(t,e){super.initialise(t,e),this.computeAttributes()}execute(){switch(this.tiddlerTitle=this.getAttribute(\\\"$tiddler\\\",\\\"\\\")||void 0,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\\\").toLowerCase(),this.getAttribute(\\\"$theme\\\",\\\"auto\\\")){case\\\"light\\\":this.theme=void 0;break;case\\\"dark\\\":this.theme=\\\"dark\\\";break;default:this.theme=0<$tw.wiki.filterTiddlers(\\\"[{$:/palette}field:color-scheme[dark]]\\\").length?\\\"dark\\\":void 0}this.renderer=\\\"svg\\\"===this.getAttribute(\\\"$renderer\\\",\\\"canvas\\\")?\\\"svg\\\":\\\"canvas\\\",this.text=this.getAttribute(\\\"$text\\\",\\\"\\\").trim()||void 0;var t=this.getAttribute(\\\"$throttle\\\");t?(t=parseInt(t,10),this.throttle=Number.isSafeInteger(t)?Math.max(0,10):1e3):this.throttle=1e3,this.skipDraftTiddle=\\\"false\\\"!==this.getAttribute(\\\"$skipDraftTiddle\\\",\\\"true\\\")}render(t,e){this.parentDomNode=t,this.execute(),this.containerDom=$tw.utils.domMaker(\\\"div\\\",{\\\"class\\\":this[\\\"class\\\"],document:this.document,style:{width:this.width,height:this.height}}),this.containerDom.id=this.uuid,t.insertBefore(this.containerDom,e),this.domNodes.push(this.containerDom);try{if(!(this.tiddlerTitle&&$tw.wiki.getTiddler(this.tiddlerTitle)||this.text))throw new Error(\\\"Widget need either $tiddler or $text attribute!\\\");var i=Boolean(t.isTiddlyWikiFakeDom);this.rebuildInstance(i),this.initAddon(),this.renderAddon(),i?(Number.isSafeInteger(Number(this.width.replace(\\\"px\\\",\\\"\\\")))&&Number.isSafeInteger(Number(this.height.replace(\\\"px\\\",\\\"\\\")))||console.error(\\\"If you require SSR(server side render), you need to define $height and $width with format like '300px'\\\"),this.parentDomNode.innerHTML=this.echartsInstance.renderToSVGString()):registerInstance(this)}catch(error){console.error(error),this.containerDom.innerText=String(error),this.containerDom.style.color=\\\"white\\\",this.containerDom.style.background=\\\"red\\\",this.containerDom.style.fontSize=\\\"12px\\\"}}refresh(e){if(void 0!==this.timer)void 0!==this.tmpChangedTiddlers?this.tmpChangedTiddlers=__spreadValues(__spreadValues({},this.tmpChangedTiddlers),e):this.tmpChangedTiddlers=e;else{this.refresh_(e);let t=5;this.timer=setInterval(()=>{t--<=0&&void 0===this.tmpChangedTiddlers&&(clearInterval(this.timer),this.timer=void 0),void 0!==this.tmpChangedTiddlers&&(this.refresh_(this.tmpChangedTiddlers),this.tmpChangedTiddlers=void 0,t=Math.min(5,t+2))},this.throttle)}}refresh_(t){var e=this.tiddlerTitle;const i=this.computeAttributes();let r=0;if(0<$tw.utils.count(i)){let e=0;$tw.utils.each([\\\"$theme\\\",\\\"$fillSidebar\\\",\\\"$renderer\\\"],t=>{void 0!==i[t]&&e++}),0e&&(r|=1)}void 0!==this.text||1&r||!(this.tiddlerTitle&&t[this.tiddlerTitle]||this.askForAddonUpdate(t,i))||(r|=1);var s=this.theme;this.execute(),s!==this.theme&&(r|=2),2&r?!(s=this.rebuildInstance())||1&r?(unmountAddon(void 0!==this.text?void 0:e,this.state,this.echartsInstance),this.initAddon(),this.renderAddon()):this.echartsInstance.setOption(s):1&r&&this.renderAddon()}askForAddonUpdate(t,e){var i,r,s,n,a,h,o,d,l,c;try{return this.tiddlerTitle&&$tw.wiki.getTiddler(this.tiddlerTitle)?(a=$tw.wiki.getTiddler(this.tiddlerTitle).fields,!(this.skipDraftTiddle&&a[\\\"draft.of\\\"]||\\\"_is_skinny\\\"in a&&null===$tw.wiki.getTiddlerText(this.tiddlerTitle))&&(h=a.type||\\\"text/vnd.tiddlywiki\\\",\\\"text/vnd.tiddlywiki\\\"===(o=null!=(r=(null!=(i=$tw.config.contentTypeInfo[h])?i:{}).deserializerType)?r:h)||\\\"application/json\\\"===o?(this._state=JSON.stringify($tw.wiki.filterTiddlers(a[\\\"echarts-refresh-trigger\\\"])),this._state!==this.state):\\\"application/javascript\\\"===o&&(void 0===(c=null!=(n=(l=null!=(s=(d=require(this.tiddlerTitle))[\\\"default\\\"])?s:d).shouldUpdate)?n:l.shouldRefresh)||(\\\"string\\\"==typeof c?(this._state=JSON.stringify($tw.wiki.filterTiddlers(c)),this._state!==this.state):\\\"function\\\"!=typeof c||c(this.state,t,e,this.attributes))))):!1}catch(error){return console.error(error),!1}}clearInstance(){let t;return this.echartsInstance&&(t=this.echartsInstance.getOption(),this.echartsInstance.isDisposed()||this.echartsInstance.dispose(),this.echartsInstance=void 0),this.containerDom.innerHTML=\\\"\\\",this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0),t}rebuildInstance(t=!1){var e=this.clearInstance();return this.echartsInstance=ECharts.init(t?null:this.containerDom,this.theme,t?{ssr:!0,renderer:\\\"svg\\\",height:Number(this.height.replace(\\\"px\\\",\\\"\\\"))||300,width:Number(this.width.replace(\\\"px\\\",\\\"\\\"))||400}:{renderer:this.renderer}),this.echartsInstance.setOption({darkMode:\\\"dark\\\"===this.theme,backgroundColor:\\\"transparent\\\"}),globalThis.ResizeObserver&&$tw.browser&&!t&&(this.resizeObserver=new ResizeObserver(r=>{requestAnimationFrame(()=>{var e;if(this.echartsInstance){var i=document.querySelector(\\\".tc-sidebar-scrollable\\\");let t=r[0].contentRect.height;this.fillSidebar&&null!=(e=null==i?void 0:i.contains)&&e.call(i,this.containerDom)&&(t=window.innerHeight-this.parentDomNode.getBoundingClientRect().top-(Number(getComputedStyle(i).paddingBottom.replace(\\\"px\\\",\\\"\\\"))||0)),this.echartsInstance.resize({width:r[0].contentRect.width,height:t})}})}),this.resizeObserver.observe(this.containerDom)),e}initAddon(){var t,e,i,r,s;try{if(void 0===this.text){if(!this.tiddlerTitle||!$tw.wiki.getTiddler(this.tiddlerTitle))return;var n=$tw.wiki.getTiddler(this.tiddlerTitle).fields;if(\\\"_is_skinny\\\"in n&&null===$tw.wiki.getTiddlerText(this.tiddlerTitle))return;var a=n.type||\\\"text/vnd.tiddlywiki\\\",h=null!=(e=(null!=(t=$tw.config.contentTypeInfo[a])?t:{}).deserializerType)?e:a;if(\\\"text/vnd.tiddlywiki\\\"===h||\\\"application/json\\\"===h)this.state=null!=(i=this._state)?i:JSON.stringify($tw.wiki.filterTiddlers(n[\\\"echarts-refresh-trigger\\\"])),this._state=void 0;else{if(\\\"application/javascript\\\"!==h)return;var o=require(this.tiddlerTitle),d=null!=(r=o[\\\"default\\\"])?r:o,l=null!=(s=d.onMount)?s:d.onInit;\\\"function\\\"==typeof l&&(this.state=l(this.echartsInstance,this.attributes,this))}}this.echartsInstance.on(\\\"restore\\\",()=>this.renderAddon())}catch(error){console.error(error)}}async renderAddon(){var t,e,i;if(this.echartsInstance){this.echartsInstance.showLoading();try{if(void 0===this.text){if(!this.tiddlerTitle||!$tw.wiki.getTiddler(this.tiddlerTitle))return void this.echartsInstance.hideLoading();var r=$tw.wiki.getTiddler(this.tiddlerTitle).fields;if(\\\"_is_skinny\\\"in r&&null===$tw.wiki.getTiddlerText(this.tiddlerTitle))return;var s,n,a,h=r.type||\\\"text/vnd.tiddlywiki\\\",o=null!=(e=(null!=(t=$tw.config.contentTypeInfo[h])?t:{}).deserializerType)?e:h;\\\"text/vnd.tiddlywiki\\\"===o?(s=$tw.wiki.renderTiddler(\\\"text/plain\\\",this.tiddlerTitle,{variables:this.attributes}),n=new Function_(\\\"return (\\\".concat(s,\\\")\\\"))(),this.echartsInstance.setOption(n)):\\\"application/json\\\"===o?this.echartsInstance.setOption(JSON.parse($tw.wiki.getTiddlerText(this.tiddlerTitle))):\\\"application/javascript\\\"===o&&(null!=(i=(a=require(this.tiddlerTitle))[\\\"default\\\"])?i:a).onUpdate(this.echartsInstance,this.state,this.attributes)}else new Function_(\\\"myChart\\\",\\\"chartDom\\\",\\\"echarts\\\",\\\"$tw\\\",\\\"var option;\\\".concat(this.text,\\\";if (option instanceof Object) myChart.setOption(option);\\\"))(this.echartsInstance,this.containerDom,ECharts,$tw);var d=e=>t=>new Function_(\\\"params\\\",\\\"parentWidget\\\",\\\"(\\\".concat(e,\\\")(params, parentWidget);\\\"))(t,this.parentWidget),l=this.getAttribute(\\\"dblclick\\\");l&&this.echartsInstance.on(\\\"dblclick\\\",d(l))}catch(error){console.error(error)}this.echartsInstance.hideLoading()}}};exports.echarts=EChartsWidget;\"}}}", + "title": "$:/plugins/Gk0Wk/echarts", + "type": "application/json", + "version": "0.2.13", + "Modern.TiddlyDev#SHA256-Hashed": "7c89a868c469cf5dc545d1878e68172c5dd8dbf43e7e36c21849d5079e854319", "core-version": ">=5.2.0" } ] \ No newline at end of file diff --git a/tiddlers/$__plugins_kookma_commander.json b/tiddlers/$__plugins_kookma_commander.json index eae0bad..825fc8b 100644 --- a/tiddlers/$__plugins_kookma_commander.json +++ b/tiddlers/$__plugins_kookma_commander.json @@ -1 +1 @@ -{"tiddlers":{"$:/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<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\">\n<$list filter=\"[[$:/plugins/flibbles/relink]] +[has[title]]\" emptyMessage=<> >\nUse //Relink// to update title across all other tiddlers\n\n"},"$:/plugins/kookma/commander/config/systemfields":{"title":"$:/plugins/kookma/commander/config/systemfields","tags":"","type":"text/vnd.tiddlywiki","text":"title text tags \ncreated modified creator modifier \ntype bag revision\nlist caption"},"$:/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\n<$vars searchTerms={{{ [get[text]minlength{$:/plugins/kookma/commander/config/minlength}]~[[$:/errorCode:-23500]] }}} pattern=\"^\\[\">\n<$set name=\"filtertext\" filter=\"[regexp]\" value=\"[subfilter]\" emptyValue=\"[!is[system]search]\">\n<$set name=\"searchfilter\" filter=\"[get[text]match[yes]]\" \n value= \"[subfilter!prefix[$:/temp/commander]!prefix[$:/state/commander]]+[tag]\"\n emptyValue=\"[subfilter!prefix[$:/temp/commander]!prefix[$:/state/commander]]\" >\n<$count filter=\"[subfilter!prefix[$:/temp/commander]!prefix[$:/state/commander]!is[missing]]\" /> matches \n\n\n<>\n\n\n<>\n\n\n\n<$vars>\n\n---\n\n<>\n"},"$:/config/ShortcutInfo/open-commander":{"title":"$:/config/ShortcutInfo/open-commander","tags":"","type":"text/vnd.tiddlywiki","text":"Commander plugin - Open Tiddler Commander"},"$:/config/shortcuts/open-commander":{"title":"$:/config/shortcuts/open-commander","tags":"","type":"text/vnd.tiddlywiki","text":"ctrl-shift-backslash"},"$:/language/Buttons/Commander/Caption":{"title":"$:/language/Buttons/Commander/Caption","tags":"","type":"text/vnd.tiddlywiki","text":"tiddler commander"},"$:/language/Buttons/Commander/Hint":{"title":"$:/language/Buttons/Commander/Hint","tags":"","type":"text/vnd.tiddlywiki","text":"Open tiddler commander"},"$:/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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<>\n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<$list filter=\"[subfilter]\" variable=\"newTitle\">\n<>\n<$wikify name=newFields text=<> >\n<$macrocall $name=\"log-add-single-operation\" msg={{{[addprefix[new fields:]addsuffix[added]]}}} tidItem=<> />\n\n\n\n\n\\end\n\n\\define getFieldsname()\n<$list filter=\"[<__datafieldsTid__>indexes[]prefix[fldn]]\" variable=item>\n{{{ [<__datafieldsTid__>getindextrim[]] }}} \n\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\n\\define add-bulk-fields()\n<$set name=\"flt\" tiddler=<> field=\"counter\" emptyValue=\"1\">\n<$list filter=<> variable=\"cnt\">\n<$list filter=\"[getindex]\" variable=\"newField\">\n<$action-setfield $tiddler=<> \n $field={{{ [trim[]] }}}\n $value={{{ [getindex] }}} />\n\n\n\n\\end\n\n\\define getInputs()\n<$edit-text tiddler=<> index=<> tag=input default=\"\" placeholder=\"field name\" />\n<$edit-text tiddler=<> index=<> tag=input default=\"\" placeholder=\"field value\"/>\n\\end\n\n\\define add-reset()\n<$button>insert\n<$action-setfield $tiddler=<> counter={{{[get[counter]add[1]]~[[2]]}}}/>\n\n<$button>reset\n<$action-setfield $tiddler=<> counter=\"1\"/>\n<$action-setfield $tiddler=<> text=\"\"/>\n\n\\end\n\n\\define create-field-inputbox()\n<$wikify name=flt text={{{ [get[counter]]~[[1]] }}} >\n<$list filter=<> variable=cnt>\n\n<>\n\n\n\\end\n\n\\define add-more-fields-ui(datafieldsTid:\"\")\n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<>\n<>\n\n\\end\n\n\\define add-more-fields-selective-ui(datafieldsTid:\"\", stateTiddler:\"$:/state/commander/tiddler-addfields-status\")\n<$checkbox \n tiddler=<<__stateTiddler__>>\n field=\"text\" \n checked=\"addfields\" unchecked=\"nofields\"\n default=\"nofields\" > \n Add fields\n\n<$reveal type=\"match\" state=<<__stateTiddler__>> text=\"addfields\" default=\"nofields\" >\n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<>\n
\n<>\n
\n\n\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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldField__>!is[blank]]\">\n<>\n<$list filter=\"[subfilter]+[!is[missing]]+[has:field[$oldField$]]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-field\" $param=<<__oldField__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"old field `$oldField$` removed\"\"\" tidItem=<> />\n\n\n\n\\end\n\n\\define set-field-value-bulk(fieldName:\"Empty\", fieldValue:\"Empty\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__fieldName__>!is[blank]]\" variable=null>\n<$list filter=\"[<__fieldValue__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]-[$fieldName$[$fieldValue$]]\">\n<$list filter=\"[has:field[$fieldName$]]\" variable=ignore \nemptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not `$fieldName$` field. Operation ignored//\" tidItem=<> />\"\"\" >\n<$action-setfield $field=<<__fieldName__>> $value=<<__fieldValue__>> />\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"field `$fieldName$` got a value\"\"\" tidItem=<> />\n\n\n\n\n\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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldField__>!is[blank]]\" variable=null>\n<$list filter=\"[<__newField__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"[has:field[$oldField$]]\" variable=ignore\n emptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not field `$oldField$`. Operation ignored.//\" tidItem=<> /> \"\"\">\n<$set name=oldValue tiddler=<> field=<<__oldField__>> >\t\n<$action-setfield $tiddler=<> $field=<<__newField__>> $value=<>/>\n\n<$action-deletefield $tiddler=<> $field=<<__oldField__>> />\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"field `$oldField$` renamed to `$newField$`\"\"\" tidItem=<> />\n\n\n\n\n\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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__fieldName__>!is[blank]]\" variable=null>\n<$list filter=\"[<__fieldValue__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]-[$fieldName$[$fieldValue$]]\">\n<$list filter=\"[has:field[$fieldName$]]\" variable=ignore \nemptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not `$fieldName$` field. Operation ignored//\" tidItem=<> />\"\"\" >\n<$action-setfield $field=<<__fieldName__>> $value=<<__fieldValue__>> />\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"field `$fieldName$` got a value\"\"\" tidItem=<> />\n\n\n\n\n\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":"<>\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":"\n<$macrocall $name=\"add-more-fields-ui\" datafieldsTid=\"$:/temp/commander/tiddler/datafields/addfield\" />\n\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Add new fields\n<$macrocall $name=\"add-new-field-bulk\" \n datafieldsTid=\"$:/temp/commander/tiddler/datafields/addfield\" />\n
\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":"<$select class=\"cmd-select-wd\" tiddler=\"$:/temp/commander/field-remove\" default=\"\">\n<$list filter=\"[subfilterfields[]sort[]] -title -tags\" >\n\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove old field\n<$macrocall $name=\"remove-old-field-bulk\" oldField={{$:/temp/commander/field-remove}} />\n"},"$:/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":"<$select class=\"cmd-select-wd\" \n tiddler=\"$:/temp/commander/rename-field/old\" default=\"\" >\n<$list filter=\"[subfilterfields[]sort[]] -[get[text]split[ ]]\" > \n\n\n\n\n<$edit-text\ntiddler=\"$:/temp/commander/rename-field/new\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" new field name\"\n/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Rename field\n<$macrocall $name=\"rename-field-bulk\" \noldField={{$:/temp/commander/rename-field/old}} \nnewField={{{ [[$:/temp/commander/rename-field/new]get[text]trim[]] }}} />\n\n\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":"<$select class=\"cmd-select-wd\" \n tiddler=\"$:/temp/commander/field-name\" default=\"\" >\n<$list filter=\"[subfilterfields[]sort[]] -[get[text]split[ ]]\" >\n\n\n\n\n<$edit-text\ntiddler=\"$:/temp/commander/field-value\"\ntag=\"input\" default=\"\"\nclass=\"cmd-txt-area\" placeholder=\" field value\"/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Set field value\n<$macrocall \n $name=\"set-field-value-bulk\" \n fieldName={{$:/temp/commander/field-name}} \n fieldValue={{$:/temp/commander/field-value}} \n/>\n"},"$:/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":"<>\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
''Note'': For good operation a tiddler width of 800px is recommended. You can also use //Sidebar layout// as `Fluid story`.
\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 |<|<|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 |<|<|h\n|''Anchors''|<|<|\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''|<|<|\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'' |<|<|\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''|<|<|\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''|<|<|\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''|<|<|\n| \\ |escape special characters|add to \\ [ ] ( ) { } ^ $ . ? * + for literals|\n|REPLACE |<|<|h\n| $& |return the full match|<|\n| $x |return $x where x is the numeric index of a Capturing Group|<|\n|NOTE |<|<|h\n|This Reference supports most ordinary uses of regular expressions.
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]].|<|<|\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
''Note'': Relink does not update all forms of title e.g those created from different segments, but it will update any occurances
\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<$list filter=\"[[snr.png]is[tiddler]]\"><>\n\n!! Special characters\n<<<\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<<<\n\n!! Warning\n<<<\n* SNR replace the contents of tiddlers.
''//The action can not be undone//''. So always make a backup before performing any replace action\n<<<"},"$:/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
''Warning''\nBefore using Tiddler commander for bulk operation on your own valuable, irreplaceable data, ''backup them''.\n
"},"$:/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.9'' -- 2024.09.13 -- development moved to Gatha-Thirdflow\n* ''2.1.8'' -- 2024.06.13 -- updated to support Tiddlywiki 5.3.3\n* ''2.1.5'' -- 2023.02.14 -- updated to support Tiddlywiki 5.2.5\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/icon":{"title":"$:/plugins/kookma/commander/icon","text":"","type":"image/svg+xml"},"$:/plugins/kookma/commander/images/commander.svg":{"title":"$:/plugins/kookma/commander/images/commander.svg","caption":"file-alt (Regular)","type":"text/vnd.tiddlywiki","text":""},"$:/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<$vars name={{$:/temp/newfieldname}}>\n<$reveal type=\"nomatch\" text=\"\" default=<>>\n<$button class=\"cmd-btn\">\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<>\n$value={{$:/temp/newfieldvalue}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n<>\n\n\n<$reveal type=\"match\" text=\"\" default=<>>\n<$button class=\"cmd-btn\">\n<>\n\n\n\n\\end\n\n\\define compInspect-edit-fileds(commonFields:\"\")\n\n
\n\n\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\">\n<$list filter=<> variable=\"temp\">\n\n\n\n\n\n\n\n\n\n<$list filter=\"created creator modified modifier -[enlist<__commonFields__>]\" variable=\"currentField\">\n\n\n\n\n\n\n\n\n\n\n\n
\n<$text text=<>/>:\n<$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\n\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<>/>\n{{$:/core/images/delete-button}}\n\n
\n<$text text=<>/>:\n<$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\n\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<>/>\n{{$:/core/images/delete-button}}\n\n
\n
\n\n<$fieldmangler>\n
\n\n<>\n\n\n<$edit-text tiddler=\"$:/temp/newfieldname\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<> class=\"tc-edit-texteditor tc-popup-handle\"/>\n\n<$button popup=<> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}\n<$reveal state=<> type=\"nomatch\" text=\"\" default=\"\">\n
\n<$linkcatcher to=\"$:/temp/newfieldname\">\n
\n<>\n
\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title{$:/temp/newfieldname}sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$link to=<>>\n<>\n\n\n
\n<>\n
\n<$list filter=\"[fields[]search:title{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$link to=<>>\n<>\n\n\n\n
\n\n\n<$edit-text tiddler=\"$:/temp/newfieldvalue\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\"/>\n\n\n<$macrocall $name=\"new-field\"/>\n\n
\n\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
\n\n\n\n\n\n\n\n\n\n\n\n\n
title:<$link to=<<__tiddler__>> ><$text text=<<__tiddler__>> />
tags:{{$tiddler$||$:/core/ui/EditTemplate/tags}}
text:<$macrocall $name=compInspect-get-field tiddler=<<__tiddler__>> field=\"text\" tag=\"textarea\" />
\n
\n\n<$tiddler tiddler=<<__tiddler__>> >\n<$macrocall $name=\"compInspect-edit-fileds\" commonFields=<<__commonFields__>> />\n\n\\end\n\n\\define compInspect-get-field(tiddler, field, tag:\"input\") \n<$edit-text class=\"tc-edit-texteditor\" tiddler=<<__tiddler__>> field=<<__field__>> tag=<<__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<$set name=\"state\" \n value={{{ [[$:/state/compInspect/]addsuffix<__stateTiddler__>] }}} >\n<$vars\n slStateTid={{{ [addsuffix[/]addsuffix[selectState-tiddler]] }}}\n rvStateTid={{{ [addsuffix[/]addsuffix[revealState-tiddler]] }}}\n chStateTid={{{ [addsuffix[/]addsuffix[checkboxState-tiddler]] }}} >\n\nSelect tiddler  <$macrocall $name=compSelect filter=<<__filter__>> stateTiddler=<> />\n  \n<$macrocall $name=\"check-common-fields\" stateTiddler=<> />\n  \n<$reveal stateTitle=<> type=\"nomatch\" text=\"edit\">\n<$button class=\"tc-btn-invisible\" setTitle=<> setTo=\"edit\" tooltip=\"edit tiddler\">{{$:/core/images/edit-button}}\n<$macrocall $name=compInspect-show-preview tiddler={{{ [get[text]]+[subfilter<__filter__>] }}} commonFields={{{ [get[text]] }}}/>\n\n<$reveal stateTitle=<> type=\"match\" text=\"edit\">\n<$button class=\"tc-btn-invisible\" setTitle=<> setTo=\"\" tooltip=\"confirm changes\">{{$:/core/images/done-button}}\n<$macrocall $name=compInspect-edit-preview tiddler={{{ [get[text]]+[subfilter<__filter__>] }}} commonFields={{{ [get[text]] }}}/>\n\n\n\n\n\\end\n\n\\define check-common-fields(stateTiddler)\n<$vars commonFields={{{[get[text]]}}}>\n<$checkbox \n tiddler=<<__stateTiddler__>>\n field=\"text\" \n checked=<>\n unchecked=\"\"\n default=\"\"\n> Exclude common fields?\n\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<$select tiddler=<<__stateTiddler__>> default=<<__default__>> class=<<__class__>> >\n\n<$list filter=<<__filter__>> variable=item>\n\n\n\n<$reveal type=\"match\" text=\"show\" default=<<__showButtons__>> >\n<$vars myfilter=<<__filter__>> mystateTiddler=<<__stateTiddler__>> myitem={{{ [<__stateTiddler__>get[text]] }}} >\n<$button actions=<> class=\"cmd-btn\"> prev \n<$button actions=<> class=\"cmd-btn\"> next \n\n\n\\end\n\n\\define cs-prev-item()\n<$list filter=\"[subfilter] +[before]\" variable=\"prev-item\" >\n<$action-setfield $tiddler=<> text=<> />\n\n\\end\n\n\\define cs-next-item()\n<$list filter=\"[subfilter] +[after]\" variable=\"next-item\" >\n<$action-setfield $tiddler=<> text=<> />\n\n\\end\n\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<$vars mainFields=\"title tags text\">\n\n\n\n\n\n\n\n\n\n\n\n<$list filter=\"[<__tiddler__>fields[]] -[enlist] -[enlist<__commonFields__>]\" variable=\"otherFld\">\n\n\n\n\n
title<$link to=<<__tiddler__>> ><$text text=<<__tiddler__>> />
tags<$macrocall $name=showTags tiddler=<<__tiddler__>> />
text<$transclude tiddler=<<__tiddler__>> field=\"text\" mode=\"block\"/>
<><$transclude tiddler=<<__tiddler__>> field=<> mode=\"inline\"/>
\n\n\\end\n\n\\define showTags(tiddler)\n<$list filter=\"[<__tiddler__>tags[]]\" variable=tagItem >\n<$macrocall $name=tag tag=<> />\n\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":"<>\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":"<$macrocall \n $name=compInspect\n filter=<>\n stateTiddler=\"commander\"\n/>"},"$:/plugins/kookma/commander/license":{"title":"$:/plugins/kookma/commander/license","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2018-2024 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<"},"$:/plugins/kookma/commander/log/ui":{"title":"$:/plugins/kookma/commander/log/ui","caption":"Log status","tags":"","type":"text/vnd.tiddlywiki","text":"
\n<$button class=\"tc-btn-invisible tc-tiddlylink\" actions=<>>Clear log\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[tag[$:/tags/Commander/LogOps]]\" />\"\"\">\n
\nRecent number of operations: <>
\n<$list filter=\"[tag[$:/tags/Commander/LogOps]] +[!sort[created]]\" variable=\"logTid\">\n<$view tiddler=<> field=\"created\" format=\"date\" template=\"YYYY-0MM-0DD 0hh:0mm:0ss\"/> \n<$view tiddler=<> field=\"caption\">\n <$view tiddler=<> field=\"title\">\n\n\n
    <$list filter=\"[indexes[]]\" variable=\"item\">\n
  1. <$link to=<>><>\n<$set name=\"myItem\" tiddler=<> index=<> >\n<$list filter=\"[!search[existed]]\" variable=\"ignore\" \n emptyMessage=\"\"\"<>\"\"\" >\n<>\n\n\n
  2. \n
\n\n
\n\n
"},"$:/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<$set name=resultCount value={{{ [subfilter<__countFilter__>count[]] }}} >\n<$reveal type=\"gt\" text=\"0\" default=<> >\n<$button popup=<> class=\"cmd-btn\">$btnLabel$\n\n<$reveal state=<> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n
\n
\n
\n$confirmMessage$ <> tiddler(s)?\n
\n
\n<$button class=\"cmd-btn\"> $btnLabel$\n<$macrocall $name=<<__actionMacro__>> />\n\n
\n
\n
\n\n\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<$wikify name=\"myTitle\" text=\"\"\"<>\"\"\">\n<$wikify name=\"myCaption\" text=\"\"\"<$macrocall $name=\"set-caption\" msg=<<__msg__>> />\"\"\">\n<$action-createtiddler $basetitle=<>\n$savetitle=\"$:/state/commander/log-tiddler\"\ntags=\"$:/tags/Commander/LogOps\"\ntype=\"application/json\"\ncaption=<<__msg__>>\n/>\n\n\n\\end\n\n\\define log-add-single-operation(msg:\"commander operation\", tidItem:\"no item\")\n<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<<__tidItem__>> $value=<<__msg__>> />\n\\end\n\n\n\\define delete-all-log-tiddlers()\n<$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<$list filter=\"[all[shadows+tiddlers]taglimit[1]]\" variable=ignore>\n<>\n<$list filter=\"[all[shadows+tiddlers]tag]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<<__oldTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"working tag `$oldTag$` removed\"\"\" tidItem=<> />\n\n\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<$set name=\"revealState\" value=<>>\n

\n <$reveal type=\"nomatch\" state=<> text=\"open\" default=\"$default$\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\" set=<> setTo=\"open\">\n {{$:/core/images/right-arrow}}\n \n \n <$reveal type=\"match\" state=<> text=\"open\" default=\"$default$\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\" set=<> setTo=\"closed\">\n {{$:/core/images/down-arrow}}\n \n \n <$view tiddler=\"$title$\" field=\"caption\">\n <$view tiddler=\"$title$\" field=\"title\">\n \n

\n\n<$reveal type=\"match\" state=<> text=\"open\" default=\"$default$\">\n<$transclude tiddler=\"$title$\" mode=\"block\" />\n\n\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<$set name=\"stateTid\" value=\"$:/temp/commander/display/popup/$label$\" >\n<$button popup=<> class=\"tc-btn-invisible\">$label$\n<$reveal type=\"nomatch\" text=\"\" default=\"\" state=<> animate=\"yes\">\n<$text text=<<__text__>> />\n\n\\end\n\n\\define is-filterSeearch-newer-than-selectedTitles(TidA, TidB)\n<$set name=\"tidAMod\" value={{{ [[$TidA$]get[modified]] }}}>\n<$set name=\"tidBMod\" value={{{ [[$TidB$]get[modified]] }}}>\n<$set name=\"tidAText\" value={{{ [[$TidA$]get[text]] }}}>\n<$set name=\"tidBText\" value={{{ [[$TidB$]get[text]] }}}>\n<$list filter=\"[<__TidB__>get[text]minlength[1]]\" variable=ignore>\n<$reveal type=\"nomatch\" default=<> text=<>>\n<$list filter=\"[] [] +[nsort[]last[1]removesuffix]\">\nA new filter search has been detected, click on the search button to apply it.\n\n\n\n\n\n\n\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: {{$:/plugins/kookma/commander/images/commander.svg}} to page controls.\n* Open the right sidebar and click on the {{$:/plugins/kookma/commander/images/commander.svg}} 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"},"$:/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<$reveal type=\"nomatch\" stateTitle=<> stateField=\"text\" text=\"\">\n<$button class=\"tc-btn-invisible\" tooltip=\"clear search box and selected tiddlers\">\n<$action-setfield $tiddler=<> $field=\"text\" $value=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/commander\" $field=\"text\" $value=\"\"/>\n<$action-setfield $tiddler=\"$:/state/commander/snr/select-tiddler\" $field=\"text\" $value=\"\"/>\n<$action-setfield $tiddler=\"$:/state/compInspect/temp/commander/selectState-tiddler\" $field=\"text\" $value=\"\"/> \n{{$:/core/images/close-button}}\n\n\n\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\n<$button popup=<> class=\"tc-btn-invisible\" tooltip=\"select a search filter\">\n{{$:/core/images/down-arrow}}\n\n\n\n<$reveal state=<> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=<> >\n
\n
\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Commander/Filter]!is[draft]]\">\n<$link to={{!!filter}}><$let tv-wikilinks=\"no\"><$transclude field=\"description\"/>\n\n
\n
\n\n\n"},"$:/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<$reveal type=\"nomatch\" stateTitle=<> stateField=\"text\" text=\"\">\n<$button class=\"tc-btn-invisible\" tooltip=\"save current search\" popup=<> >\n{{$:/core/images/file}}\n\n\n\n<$reveal state=<> type=\"popup\" class=\"tc-popup-keep\" position=\"belowleft\" animate=\"yes\">\n
\n
\n
\nSave new search filter

\n<$edit-text\ntiddler=\"$:/temp/commander/save-new-filter\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\"description for new filter\"\n/>

\n\n<$button class=\"tc-btn\"> Save new filter\n<$macrocall $name=\"create-new-filter\" \n description={{$:/temp/commander/save-new-filter}} \n\tbasetitle=\"$:/plugins/kookma/commander/filters/yourFilter\" \n\tfilter={{{[get[text]]}}} \t/>\n<$action-deletetiddler $tiddler=\"$:/temp/commander/save-new-filter\"/>\n<$action-deletetiddler $tiddler=<> />\n\n
\n
\n
\n\n\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<$list filter=\"[<__description__>!is[blank]]\" variable=\"ignore\">\n<$action-createtiddler \n $basetitle=\"\"\"$basetitle$\"\"\"\n tags=\"$:/tags/Commander/Filter\"\n description=<<__description__>>\n filter=\"\"\"$filter$\"\"\"\n /> \n\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<$list filter=\"[subfilter!is[missing]!tag]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n\n\\end\n\n\\define deselect-all()\n<$list filter=\"[tag]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<> />\n\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<$list filter=\"[tag]-[subfilter]+[count[]!match[0]] \">\nThere are remained selected tiddlers from previous search! Remove them by pressing ''deselect all''!\n\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<$checkbox tiddler=<> field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\" uncheckactions=<> > Selective operation?\n\n<$reveal type=\"nomatch\" stateTitle=<> stateField=\"text\" text=\"yes\" tag=\"div\" class=\"kk-commander-tiddler-list kk-commander-columns3\">\n<$list filter=\"[subfilter!prefix[$:/temp/commander]!is[missing]]\"><$link/>
\n\n<$reveal type=\"match\" stateTitle=<> stateField=\"text\" text=\"yes\" tag=\"div\">\n<$button actions=<> > Select all <$button actions=<> > Deselect all\nNumber of tiddlers selected: <$count filter=\"[tag]\" />
\n<>\n\n\n\n<$reveal type=\"match\" stateTitle=<> stateField=\"text\" text=\"yes\" tag=\"div\" class=\"kk-commander-tiddler-list kk-commander-columns3\">\n<$list filter=\"[subfilter!prefix[$:/temp/commander]!is[missing]]\">\n<$checkbox tag=<>> <$link/>
\n\n\n\n"},"$:/plugins/kookma/commander/search/ui":{"title":"$:/plugins/kookma/commander/search/ui","caption":"Commander filter search","code-body":"yes","type":"text/vnd.tiddlywiki","text":""},"$:/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":"<>\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<$action-deletetiddler $filter=\"[search:title[$:/temp/commander/]]\" />\n\\end\n\n<$set name=numTids value={{{ [search:title[$:/temp/commander/]count[]] }}}>\n<$reveal type=\"match\" text=\"0\" default=<> >\nNo temporary tiddlers is existed to delete!\n\n<$reveal type=\"gt\" text=\"0\" default=<> >\nNumber of temporary tiddlers (including log tiddlers): <>
\n\n\n\n<$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<$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
\nCommander saved filter search\n
\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/Commander/Filter]]\" >\n
<$link/>
\n
Description:<$view field=\"description\"/>
\n
Filter:<$view field=\"filter\"/>
\n\n
\n
"},"$:/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":"<>\n
\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
"},"$:/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{{$:/config/commander/snr/gm}}{{$:/config/commander/snr/case-sensitive}}{{$:/config/commander/snr/unicode}}\n\\end\n\n\\define snr-ui-show-diffs()\n
\n
\n Differences\nTiddler: <$link to={{$:/state/commander/snr/select-tiddler}}><$text text={{$:/state/commander/snr/select-tiddler}}/>\n\n<$wikify name=flags text=<> >\n\n<$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=<> \n wholeWords={{$:/config/commander/snr/whole-words}}\n/>\n\n\n
\n
\n\\end\n\n\\define snr-check-diffs(tiddler:\"\", field:\"\")\n\\whitespace trim\n<$wikify name=flags text=<> >\n<$wikify name=\"result\" text=\"\"\"\n<$macrocall $name=\"replace-text\" \n tiddler=<<__tiddler__>>\n field=<<__field__>>\n replace={{$:/state/commander/snr/replace-text}} \n replaceWith={{$:/state/commander/snr/replace-text-with}} \n flags=<> \n wholeWords={{$:/config/commander/snr/whole-words}}\n/>\"\"\">\n<$reveal type=\"match\" text={{{ [<__tiddler__>get<__field__>] }}} default=<> >\nsame\n\n<$reveal type=\"nomatch\" text={{{ [<__tiddler__>get<__field__>] }}} default=<> >\ndifferent\n\n\n\n\\end\n\n\\define search-replace-in-tiddler-field(tiddler:\"\",field:\"\",replace:\"\",replaceWith:\"\")\n<$wikify name=ss text=<> >\n<$list filter=\"[] -same\" variable=ignore>\n<$list filter=\"[<__tiddler__>has[title]]\" variable=\"ignore\">\n<$wikify name=flags text=<> >\n<$macrocall $name=\"replace-text-button\" \n tiddler=<<__tiddler__>> \n field=<<__field__>>\n replace=<<__replace__>>\n replaceWith=<<__replaceWith__>> \n flags=<> \n wholeWords={{$:/config/commander/snr/whole-words}}\n/>\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"`$field$` field has been changed\"\"\" tidItem=<<__tiddler__>> />\n<$macrocall $name=\"clear-select-tiddler-if-field-is-title\" tiddler=<<__tiddler__>> field=<<__field__>> />\n\n\n\n\n\\end\n\n\\define clear-select-tiddler-if-field-is-title(tiddler, field)\n<$list filter=\"[<__field__>] +[search[title]]\" variable=\"ignore\">\n<$action-setfield $tiddler=\"$:/state/commander/snr/select-tiddler\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/commander/selected-titles\" $index=<<__tiddler__>> />\n\n\\end\n\n\\define search-replace-in-field-bulk()\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<>\n<$list filter=\"[subfilter!is[missing]]\" >\n <$macrocall \n $name=\"search-replace-in-tiddler-field\"\n 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\n\n\\end\n\n\\define search-replace-in-field-single-tiddler()\n<>\n <$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<$button actions=<> tooltip=\"search and replace in a single tiddler\" class=\"cmd-btn\">\nReplace?\n \n\n<$macrocall $name=\"compConfirmAction\"\ncountFilter=<>\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
\n
\n Search and Replace\n\n
\n\n<$select tiddler=\"$:/state/commander/snr/select-tiddler\" default=\"\" class=\"cmd-snr-textbox\">\n\n<$list filter=\"[subfilter]\" >\n\n\n\n
\n\n
\n\n<$select tiddler=\"$:/state/commander/snr/select-tiddler/field\" default=\"text\">\n<$list filter=\"[subfilterfields[]]\">\n\n\n\n
\n\n
\n\n<$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
\n\n
\n\n<$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
\n\n<$list filter=\"[[$:/state/commander/snr/select-tiddler/field]get[text]match[title]]\" variable=ignore>\n
{{$:/plugins/kookma/commander/config/relink}}
\n\n
\n
\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
\n
\nSearch flags\n\n<$checkbox \n tiddler=\"$:/config/commander/snr/case-sensitive\" \n field=\"text\" \n checked=\"i\" \n unchecked=\"\"\n/>  ignore case
\n\n<$checkbox \n tiddler=\"$:/config/commander/snr/whole-words\" \n field=\"text\" \n checked=\"words\" \n unchecked=\"characters\"\n/>  whole words
\n\n<$checkbox \n tiddler=\"$:/config/commander/snr/unicode\" \n field=\"text\" \n checked=\"u\" \n unchecked=\"\"\n/>  unicode
\n\n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"\">  first match \n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"g\">  global match\n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"m\">  multiline mode\n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"mg\">  global multiline mode\n\n\n
\n
\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<$diff-text source={{{ [<__tiddler__>get<__field__>] }}} dest={{{ [<__tiddler__>get<__field__>] }}} />\n\\end\n\n\\define replace-text(tiddler:\"\",field:\"text\",replace:\"\",replaceWith:\"\",flags:\"\", wholeWords:\"\")\n\\whitespace trim\n<$wikify name=\"source\" text=\"\"\"<$view tiddler=<<__tiddler__>> field=<<__field__>> mode=\"block\" format=\"text\"/>\"\"\">\n<$wikify name=\"result\" \n text=\"\"\"<$macrocall $name=\"regexpsub\" $type=\"text/plain\" \n sourceText=<> \n searchValue=<<__replace__>> \n replaceValue=<<__replaceWith__>> \n flags=<<__flags__>> \n wholeWords=<<__wholeWords__>> />\"\"\" \n >\n<$text text=<>/>\n\n\n\\end\n\n\\define replace-text-diff(tiddler:\"\", field:\"text\", replace, replaceWith, flags:\"\", wholeWords:\"\")\n<$list filter=\"[<__tiddler__>get<__field__>minlength[1]]\" variable=null emptyMessage=\"No tiddler is selected, or tiddler is empty.\">\n<$list filter=\"[<__replace__>minlength[1]]\" variable=null emptyMessage=<> >\n\n<$wikify name=\"result\" \n text=\"\"\"<$macrocall $name=\"replace-text\" \n tiddler=<<__tiddler__>> field=<<__field__>> \n replace=<<__replace__>> \n replaceWith=<<__replaceWith__>> \n flags=<<__flags__>>\n wholeWords=<<__wholeWords__>> />\"\"\"\n >\n<$diff-text source={{{ [<__tiddler__>get<__field__>] }}} dest=<> cleanup={{$:/state/commander/snr/setting/cleanup}}/>\n\n\n\n\n\\end\n\n\\define replace-text-button(tiddler:\"\", field:\"text\", replace:\"\", replaceWith:\"\", flags:\"\", wholeWords:\"\")\n\\whitespace trim\n<$list filter=\"[<__tiddler__>get<__field__>minlength[1]]\" variable=null>\n<$list filter=\"[<__replace__>minlength[1]]\" variable=null>\n<$wikify name=\"result\" \n text=\"\"\"<$macrocall $name=\"replace-text\" \n tiddler=<<__tiddler__>> \n field=<<__field__>> \n replace=<<__replace__>> \n replaceWith=<<__replaceWith__>> \n flags=<<__flags__>>\n wholeWords=<<__wholeWords__>> />\"\"\"\n >\n<$reveal type=\"nomatch\" default=\"title\" text=<<__field__>> >\n <$action-setfield $tiddler=<<__tiddler__>> $field=<<__field__>> $value=<>/>\n\n<$reveal type=\"match\" default=\"title\" text=<<__field__>> >\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<<__tiddler__>> to=<> />\n\n\n\n\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<>\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":"
\n
\n<>\n
\n
\n<> \n
\n
\n<>\n<>"},"$:/plugins/kookma/commander/styles/buttons":{"title":"$:/plugins/kookma/commander/styles/buttons","text":"/*\n.cmd-btn{\n\tfont-size:0.85em;\n\tfont-size:300;\n\tcolor: #666666;\n\tbackground-color: #d8d8d8;\n\tpadding: 3px 8px 3px 8px;\n\tborder: 1px solid #a1a1a1;\n}\n*/\n\n.cmd-btn-wd{\n\twidth:20ch;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/commander/styles/compInspect/table":{"title":"$:/plugins/kookma/commander/styles/compInspect/table","text":"/*compInspect table*/\n.cmd-ci-table{\n\tborder-collapse: collapse;\n}\n\n.cmd-ci-table .leftcol{\n\twidth:20%;\n\tvertical-align: top;\n\ttext-align: right;\n\tbackground-color:#f0f0f0;\n}\n.cmd-ci-table .rightcol{\n\twidth:650px;\n}\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/commander/styles/log":{"title":"$:/plugins/kookma/commander/styles/log","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":".commander-alert {\n\tpadding: 0.75rem 1.25rem;\n\tmargin-bottom: 1rem;\n\t/*border: 1px dotted gray;*/\n\tborder-radius: 0.25rem;\n\t\n\tcolor: <>; /*#0c5460;*/\n\tbackground-color:<>; /*#d1ecf1;*/\n\tborder-color: <>; /*#bee5eb;*/\n}\n\n.kk-commander-log-note{\n\tfont-style:italic; font-size:small;\n}\n.kk-commander-log-item {\n\t/*color:green;*/\n}"},"$:/plugins/kookma/commander/styles/other":{"title":"$:/plugins/kookma/commander/styles/other","text":"\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/styles/select-width":{"title":"$:/plugins/kookma/commander/styles/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/styles/snr/flexbox":{"title":"$:/plugins/kookma/commander/styles/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/styles/snr/form":{"title":"$:/plugins/kookma/commander/styles/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/styles/tiddler-list":{"title":"$:/plugins/kookma/commander/styles/tiddler-list","text":".kk-commander-tiddler-list {\n\tfont-size:small; \n\tborder-left:0.5px dotted 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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__newTag__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter!tag<__newTag__>]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__newTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"new tag `$newTag$` added\"\"\" tidItem=<> />\n\n\n\n\\end\n\n\\define remove-old-tag-bulk(oldTag:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldTag__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfiltertag<__oldTag__>]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<<__oldTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"old tag `$oldTag$` removed\"\"\" tidItem=<> />\n\n\n\n\\end\n\n\n\\define replace-tag-bulk(oldTag:\"\", newTag:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldTag__>!is[blank]]\" variable=null>\n<$list filter=\"[<__newTag__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"[tag<__oldTag__>]\" variable=ignore\n emptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not tag `$oldTag$`. Operation ignored.//\" tidItem=<> /> \"\"\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__newTag__>> />\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<<__oldTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"tag `$oldTag$` replaced with `$newTag$`\"\"\" tidItem=<> />\n\n\n\n\n\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":"<>\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":"<$edit-text\ntiddler=\"$:/temp/commander/tag-add-remove/new\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" new tag\"/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Add new tag\n<$macrocall $name=\"add-new-tag-bulk\" newTag={{$:/temp/commander/tag-add-remove/new}} />\n\n\n<$select class=\"cmd-select-wd\" tiddler=\"$:/temp/commander/tag-add-remove/old\" default=\"\" >\n<$list filter=\"[subfilter!is[missing]tags[]sort[]]-[]\" >\n\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove old tag\n<$macrocall $name=\"remove-old-tag-bulk\" oldTag={{$:/temp/commander/tag-add-remove/old}} />\n\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":"<$select class=\"cmd-select-wd\" tiddler=\"$:/temp/commander/replace-tags/old\" default=\"\">\n<$list filter=\"[subfilter!is[missing]tags[]sort[]]-[]\" >\n\n\n\n\n<$edit-text\ntiddler=\"$:/temp/commander/replace-tags/new\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" new tag\"\n/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Replace tag\n<$macrocall $name=\"replace-tag-bulk\" \noldTag={{$:/temp/commander/replace-tags/old}} \nnewTag={{$:/temp/commander/replace-tags/new}} />\n\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<<<\nshort introduction\n<<<\n\n!! Content and parameters\n<<<\nThe content, attributes and parameters\n\n|!Parameter |!Description |\n|par1 |description |\n|par2 |description |\n<<<\n\n!! Example i\n<<<\nexample here\n<<<\n\n!! Example ii\n<<<\nanother example here\n<<<\n\n!! References\n<<<\n# one\n# Two\n<<<"},"$:/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<$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<$list filter=\"[<__baseTitle__>!is[blank]]\" variable=ignore>\n<>\n<$list filter=\"[range[9]addprefix[00]] [range[10,99]addprefix[0]] [range[100,500]] +[limit<__numberTiddler__>]\" variable=\"L1\">\n<$list filter=\"[<__baseTitle__>addsuffix]\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\" emptyMessage=<> >\n<$action-createtiddler $basetitle=<> tags=<<__baseTags__>> /> \n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<>\n\n<>\n\n\n\n\n\\end\n\n\\define oneTid-with-template()\n<$tiddler tiddler=<> >\n <$action-setfield $tiddler=<> title=<> /> \n <$fieldmangler>\n <$list filter=\"[enlist]\" variable=newTag>\n <$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n \n <$action-sendmessage $message=\"tm-remove-tag\" $param=\"$:/tags/Commander/Template\" />\n\n\n\\end\n\n\n\\define bulk-tiddler-with-template-creator(baseTitle, baseTags, datafieldsTid, numberTiddler:\"1\", template:\"\")\n<$list filter=\"[<__baseTitle__>!is[blank]]\" variable=ignore>\n<>\n<$vars datafieldsTid=<<__datafieldsTid__>>\n myTags=<<__baseTags__>> \n myTemplate=<<__template__>> >\n<$list filter=\"[range[9]addprefix[00]] [range[10,99]addprefix[0]] [range[100,500]] +[limit<__numberTiddler__>]\" variable=\"L1\">\n<$list filter=\"[<__baseTitle__>addsuffix]\" variable=\"newTitle\">\n<$list filter=\"[!has[title]]\" variable=\"ignore\" emptyMessage=<> >\n <>\n <>\n <>\n\n\n\n\n\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<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<<__item__>> $value=\"$msg$\" />\n\\end\n\n\\define delete-tiddlers-selective-bulk()\n<$list filter=\"[subfilterlimit[1]]\" variable=\"ignore\">\n<>\n<$list filter=\"[subfilter]\" variable=\"Item\">\n<$action-deletetiddler $tiddler=<> />\n<$macrocall $name=\"log-delete-selectively\" item=<> />\n\n\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<$list filter=<> >\n<$fieldmangler>\n<$list filter=\"[enlist{$(exportTagTid)$}]~[[exported]]\" variable=\"exportTag\" >\n<$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<> />\n\n\n\\end\n\n\\define remove-export-tag()\n<$list filter=<> >\n<$fieldmangler>\n<$list filter=\"[get[text]match[yes]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n\n<$list filter=\"[enlist{$(exportTagTid)$}]~[[exported]]\" variable=\"exportTag\" >\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<> />\n\n\n\n\\end\n\n\\define log-export-selectively(msg:\"Tiddler exported\")\n<$list filter=\"[subfilter]\" variable=\"item\">\n<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<> $value=\"$msg$\" />\n\n\\end\n\n\n\\define commander-exportButton(exportFilter:\"[!is[system]sort[title]]\",lingoBase,baseFilename:\"tiddlers\")\n<$button popup=<> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<> selectedClass=\"tc-selected\">\n<$list filter=\"[match[yes]]\">\n{{$:/core/images/export-button}}\n\n<$list filter=\"[match[yes]]\">\n<$text text={{$lingoBase$Caption}}/>\n\n<$reveal state=<> type=\"popup\" position=\"below\" animate=\"yes\">\n
\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\">\n<$set name=\"extension\" value={{!!extension}}>\n<$button class=\"tc-btn-invisible\">\n<>\n<$macrocall $name=\"log-export-selectively\"/>\n<>\n<$action-sendmessage $message=\"tm-download-file\" $param=<> exportFilter=\"\"\"$exportFilter$\"\"\" filename=<>/>\n<$action-deletetiddler $tiddler=<>/>\n<$transclude field=\"description\"/>\n<>\n\n\n\n
\n\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":"<>\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":"\n<$edit-text \n tiddler=\"$:/temp/commander/tiddler-base-title\" \n tag=\"input\" default=\"\"\n placeholder=\" base title\" \n class=\"cmd-txt-area\"/>
\n\n\n<$edit-text \n tiddler=\"$:/temp/commander/tiddler-base-tags\" \n tag=\"input\" default=\"\"\n placeholder=\" tags\" \n class=\"cmd-txt-area\"\n/> \n\n\n<$macrocall $name=\"add-more-fields-selective-ui\"\n datafieldsTid=\"$:/temp/commander/tiddler/datafields/createTiddler\"\n stateTiddler=\"$:/state/commander/tiddler-addfields-status\" />\n\n\n<$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\n\n<$reveal type=\"match\" state=\"$:/state/commander/tiddler-template-status\" text=\"use-template\" default=\"no-template\" >\nTemplate\n<$select tiddler=\"$:/temp/commander/template-newtiddler\" \n default=\"$:/plugins/kookma/commander/template/base\">\n<$list filter='[all[shadows+tiddlers]tag[$:/tags/Commander/Template]]'>\n\n\n\n<$button class=\"tc-btn-invisible\"> {{$:/core/images/edit-button}}\n <$action-sendmessage $message=\"tm-edit-tiddler\" \n $param={{{ [[$:/temp/commander/template-newtiddler]get[text]]~[[$:/plugins/kookma/commander/template/base]] }}} />\n\n\n\n\nNumber of tiddlers  \n<$select tiddler=\"$:/temp/commander/tiddler-base-number\" default='1'>\n<$list filter='[range[1,19, 1]] [range[20,50, 5]] [range[60,100,10]] [range[200,500,100]]'>\n\n\n\n\n\n<$reveal type=\"nomatch\" state=\"$:/state/commander/tiddler-template-status\" text=\"use-template\" default=\"no-template\">\n <$button class=\"cmd-btn cmd-btn-wd\"> Create tiddlers\n <$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 \n\n<$reveal type=\"match\" state=\"$:/state/commander/tiddler-template-status\" text=\"use-template\" default=\"no-template\">\n <$button class=\"cmd-btn cmd-btn-wd\"> Create tiddlers\n <$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 \n\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":"<$set name=numTids value={{{[subfilter!is[missing]count[]] }}}>\n<$reveal type=\"match\" text=\"0\" default=<> >\nNo tiddlers is selected for deleteion!\n\n<$reveal type=\"gt\" text=\"0\" default=<> >\n\nNumber of tiddlers selected for deletion: <>
\nNote that, the delete operation cannot be undone!!\n
\n\n<$macrocall $name=\"compConfirmAction\"\ncountFilter=\"[subfilter]\"\nactionMacro=\"delete-tiddlers-selective-bulk\"\nstateTiddler=\"$:/state/commander/SelectiveDeleteDropdown\"\n/>\n\n\n\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<$set name=\"exportList\" filter=<> >\n<$vars tv-config-toolbar-text=\"yes\" tv-config-toolbar-class=\"tc-button tt-button\">\n<$macrocall $name=\"commander-exportButton\" exportFilter=<> lingoBase=\"$:/language/Buttons/ExportTiddlers/\" baseFilename=\"\"\"$baseFilename$\"\"\"/>\n\n\n\\end\n\n\\define exportFileName-and-Tags-ui() \n<$edit-text tiddler=\"$:/temp/commander/exportFilename\" tag=input default=\"tiddlers\" placeholder=\"tiddlers\" class=\"cmd-txt-area\"/>\n
\n\n<$edit-text tiddler=\"$:/temp/commander/exportTag\" tag=input default=\"exported\" placeholder=\"exported\" class=\"cmd-txt-area\"/>
\n\\end\n\n<$set name=numTids value={{{[subfilter!is[missing]count[]] }}}>\n<$reveal type=\"match\" text=\"0\" default=<> >\nNo tiddlers is selected for export!\n\n\n<$reveal type=\"gt\" text=\"0\" default=<> >\n\nNumber of tiddlers selected for export: <>
\n\n<>\n<$macrocall $name=\"export-tiddler-ui\" baseFilename={{{[[$:/temp/commander/exportFilename]get[text]]~[[tiddlers]]}}} />\n\n\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<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"$message$. New title [[$newTitle$]]\"\"\" tidItem=<<__oldTitle__>> />\n\\end\n\n\\define addPrefix-to-tiltle-bulk(prefix:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__prefix__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[addprefix[$prefix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changePrefix message=\"title prefix: `$prefix$` added\" oldTitle=<> newTitle=<> />\n\n\n\n\n\n\\end\n\n\\define removePrefix-from-tiltle-bulk(prefix:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__prefix__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[removeprefix[$prefix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changePrefix message=\"title prefix: `$prefix$` removed\" oldTitle=<> newTitle=<> />\n \n\n\n\n\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<$list filter=\"[subfilter]+[prefix]\" variable=\"item\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=\"log-add-single-operation\" msg=\"\"\"characters removed from end. New title [[$(sfx)$]]\"\"\" tidItem=<> />\n\n\\end\n\n\n\\define makelink2() [[$(newTitle)$]]\n\n\\define generate-suffixes2(n:\"0\")\n<$list filter=\"[<__n__>] -0\" variable=null>\n<$list filter=\"[subfilter]\" variable=\"item\">\n<$list filter=\"\"\"[split[]butlast[$n$]join[]trim[]]\"\"\" variable=\"newTitle\">\n<$text text=<>/>\n\n\n\n\\end\n\n\\define remove-chars-from-end-tiltle-bulk(num:\"0\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__num__>] -0\" variable=null>\n<>\n<$vars n=<<__num__>> >\n<$wikify text=\"\"\"<>\"\"\" name=\"outputs\">\n <$list filter=\"[subfilter]\" variable=\"sfx\">\n<$list filter=\"[subfilter]+[prefixlimit[2]count[]regexp[2]]\" emptyMessage=<> variable=\"cnt\">\n\n\n\n\n\n\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<$list filter=\"[subfilter]+[suffix]\" variable=\"item\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=\"log-add-single-operation\" msg=\"\"\"characters removed from start. New title [[$(sfx)$]]\"\"\" tidItem=<> />\n\n\\end\n\n\n\\define makelink() [[$(newTitle)$]]\n\n\\define generate-suffixes(n:\"0\")\n<$list filter=\"[<__n__>] -0\" variable=null>\n<$list filter=\"[subfilterhas[title]]\" variable=\"item\">\n<$list filter=\"\"\"[split[]rest[$n$]join[]trim[]]\"\"\" variable=\"newTitle\">\n<$text text=<>/>\n\n\n\n\\end\n\n\\define remove-chars-from-begining-tiltle-bulk(num:\"0\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__num__>] -0\" variable=null>\n<>\n<$vars n=<<__num__>> >\n<$wikify text=\"\"\"<>\"\"\" name=\"outputs\">\n <$list filter=\"[subfilter]\" variable=\"sfx\">\n <$list filter=\"[subfilter]+[suffixlimit[2]count[]regexp[2]]\" \n emptyMessage=<> variable=\"cnt\">\n \n \n\n\n\n\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<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"$message$. New title [[$newTitle$]]\"\"\" tidItem=<<__oldTitle__>> />\n\\end\n\n\\define addSuffix-to-tiltle-bulk(suffix:\"\")\n<$list filter=\"[<__suffix__>!is[blank]]\" variable=null>\n<$list filter=\"[subfilterlimit[1]]\" variable=ignore>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[addsuffix[$suffix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changeSuffix message=\"title suffix: `$suffix$` added\" oldTitle=<> newTitle=<> />\n\n\n\n\n\n\\end\n\n\\define removeSuffix-from-tiltle-bulk(suffix:\"\")\n<$list filter=\"[<__suffix__>!is[blank]]\" variable=null>\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[removesuffix[$suffix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changeSuffix message=\"title suffix: `$suffix$` removed\" oldTitle=<> newTitle=<> />\n\n\n\n\n\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":"<>\n\n\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\n<$select tiddler=\"$:/temp/commander/title-remove-chars\" default=\"0\" class=\"cmd-sl\">\n<$list filter=\"[subfilterlength[]minall[]subtract[1]] -Infinity\" variable=\"minchars\">\n<$list filter=<> >\n\n\n\n
\n\n<$button class=\"cmd-btn cmd-btn-wd\"> First n characters\n<$macrocall \n $name=\"remove-chars-from-begining-tiltle-bulk\" \n num={{$:/temp/commander/title-remove-chars}} />\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Last n characters\n<$macrocall \n $name=\"remove-chars-from-end-tiltle-bulk\" \n num={{$:/temp/commander/title-remove-chars}} />\n\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":"<$edit-text\ntiddler=\"$:/temp/commander/title-prefix\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" prefix\"\n/>
\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Add prefix\n<$macrocall \n $name=\"addPrefix-to-tiltle-bulk\" \n prefix={{$:/temp/commander/title-prefix}} \n/>\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove prefix\n<$macrocall \n $name=\"removePrefix-from-tiltle-bulk\" \n prefix={{$:/temp/commander/title-prefix}} \n/>\n\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":"<$edit-text\ntiddler=\"$:/temp/commander/title-suffix\"\ntag=\"input\" default=\"\"\nclass=\"cmd-txt-area\" placeholder=\" suffix\" />
\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Add suffix\n<$macrocall \n $name=\"addSuffix-to-tiltle-bulk\" \n suffix={{$:/temp/commander/title-suffix}} />\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove suffix\n<$macrocall \n $name=\"removeSuffix-from-tiltle-bulk\" \n suffix={{$:/temp/commander/title-suffix}} \n/>\n\n\n"},"$:/plugins/kookma/commander/ui/Actions/open-commander":{"title":"$:/plugins/kookma/commander/ui/Actions/open-commander","caption":"{{$:/language/Buttons/Commander/Caption}}","description":"{{$:/language/Buttons/Commander/Hint}}","tags":"$:/tags/Actions","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n<$action-navigate $to=\"$:/Commander\" $scroll=\"yes\"/>\n"},"$:/plugins/kookma/commander/ui/Buttons/open-commander":{"title":"$:/plugins/kookma/commander/ui/Buttons/open-commander","caption":"{{$:/plugins/kookma/commander/images/commander.svg}} {{$:/language/Buttons/Commander/Caption}}","description":"{{$:/language/Buttons/Commander/Hint}}","list-after":"$:/core/ui/Buttons/advanced-search","tags":"$:/tags/PageControls","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n\n\\define commander-button(class)\n\\whitespace trim\n<$button to=\"$:/Commander\" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[match[yes]]\">\n{{$:/plugins/kookma/commander/images/commander.svg}}\n\n<$list filter=\"[match[yes]]\">\n<$text text={{$:/language/Buttons/Commander/Caption}}/>\n\n\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Commander]]\" emptyMessage=<>>\n<>\n\n"},"$:/plugins/kookma/commander/ui/KeyboardShortcuts/open-commander":{"title":"$:/plugins/kookma/commander/ui/KeyboardShortcuts/open-commander","key":"((open-commander))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n<$action-navigate $to=\"$:/Commander\" $scroll=\"yes\"/>\n"},"$:/plugins/kookma/commander/viewtemplate/import":{"title":"$:/plugins/kookma/commander/viewtemplate/import","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[all[current]match[$:/Import]status[complete]]\" variable=\"null\">\n<$button actions=\"\"\"<$action-setfield $tiddler=\"$:/temp/commander/search-box\" text=\"[[$:/Import]links[]]\"/><$action-navigate $to=\"$:/Commander\"/>\"\"\">\n{{$:/plugins/kookma/commander/images/commander.svg}} Batch edit\n\n"}}} \ No newline at end of file +{"tiddlers":{"$:/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<$checkbox tiddler=\"$:/config/RelinkOnRename\" field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\">\n<$list filter=\"[[$:/plugins/flibbles/relink]] +[has[title]]\" emptyMessage=<> >\nUse //Relink// to update title across all other tiddlers\n\n"},"$:/plugins/kookma/commander/config/systemfields":{"title":"$:/plugins/kookma/commander/config/systemfields","tags":"","type":"text/vnd.tiddlywiki","text":"title text tags \ncreated modified creator modifier \ntype bag revision\nlist caption"},"$:/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\n<$vars searchTerms={{{ [get[text]minlength{$:/plugins/kookma/commander/config/minlength}]~[[$:/errorCode:-23500]] }}} pattern=\"^\\[\">\n<$set name=\"filtertext\" filter=\"[regexp]\" value=\"[subfilter]\" emptyValue=\"[!is[system]search]\">\n<$set name=\"searchfilter\" filter=\"[get[text]match[yes]]\" \n value= \"[subfilter!prefix[$:/temp/commander]!prefix[$:/state/commander]]+[tag]\"\n emptyValue=\"[subfilter!prefix[$:/temp/commander]!prefix[$:/state/commander]]\" >\n<$count filter=\"[subfilter!prefix[$:/temp/commander]!prefix[$:/state/commander]!is[missing]]\" /> matches \n\n\n<>\n\n\n<>\n\n\n\n<$vars>\n\n---\n\n<>\n"},"$:/config/ShortcutInfo/open-commander":{"title":"$:/config/ShortcutInfo/open-commander","tags":"","type":"text/vnd.tiddlywiki","text":"Commander plugin - Open Tiddler Commander"},"$:/config/shortcuts/open-commander":{"title":"$:/config/shortcuts/open-commander","tags":"","type":"text/vnd.tiddlywiki","text":"ctrl-shift-backslash"},"$:/language/Buttons/Commander/Caption":{"title":"$:/language/Buttons/Commander/Caption","tags":"","type":"text/vnd.tiddlywiki","text":"tiddler commander"},"$:/language/Buttons/Commander/Hint":{"title":"$:/language/Buttons/Commander/Hint","tags":"","type":"text/vnd.tiddlywiki","text":"Open tiddler commander"},"$:/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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<>\n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<$list filter=\"[subfilter]\" variable=\"newTitle\">\n<>\n<$wikify name=newFields text=<> >\n<$macrocall $name=\"log-add-single-operation\" msg={{{[addprefix[new fields:]addsuffix[added]]}}} tidItem=<> />\n\n\n\n\n\\end\n\n\\define getFieldsname()\n<$list filter=\"[<__datafieldsTid__>indexes[]prefix[fldn]]\" variable=item>\n{{{ [<__datafieldsTid__>getindextrim[]] }}} \n\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\n\\define add-bulk-fields()\n<$set name=\"flt\" tiddler=<> field=\"counter\" emptyValue=\"1\">\n<$list filter=<> variable=\"cnt\">\n<$list filter=\"[getindex]\" variable=\"newField\">\n<$action-setfield $tiddler=<> \n $field={{{ [trim[]] }}}\n $value={{{ [getindex] }}} />\n\n\n\n\\end\n\n\\define getInputs()\n<$edit-text tiddler=<> index=<> tag=input default=\"\" placeholder=\"field name\" />\n<$edit-text tiddler=<> index=<> tag=input default=\"\" placeholder=\"field value\"/>\n\\end\n\n\\define add-reset()\n<$button>insert\n<$action-setfield $tiddler=<> counter={{{[get[counter]add[1]]~[[2]]}}}/>\n\n<$button>reset\n<$action-setfield $tiddler=<> counter=\"1\"/>\n<$action-setfield $tiddler=<> text=\"\"/>\n\n\\end\n\n\\define create-field-inputbox()\n<$wikify name=flt text={{{ [get[counter]]~[[1]] }}} >\n<$list filter=<> variable=cnt>\n\n<>\n\n\n\\end\n\n\\define add-more-fields-ui(datafieldsTid:\"\")\n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<>\n<>\n\n\\end\n\n\\define add-more-fields-selective-ui(datafieldsTid:\"\", stateTiddler:\"$:/state/commander/tiddler-addfields-status\")\n<$checkbox \n tiddler=<<__stateTiddler__>>\n field=\"text\" \n checked=\"addfields\" unchecked=\"nofields\"\n default=\"nofields\" > \n Add fields\n\n<$reveal type=\"match\" state=<<__stateTiddler__>> text=\"addfields\" default=\"nofields\" >\n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<>\n
\n<>\n
\n\n\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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldField__>!is[blank]]\">\n<>\n<$list filter=\"[subfilter]+[!is[missing]]+[has:field[$oldField$]]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-field\" $param=<<__oldField__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"old field `$oldField$` removed\"\"\" tidItem=<> />\n\n\n\n\\end\n\n\\define set-field-value-bulk(fieldName:\"Empty\", fieldValue:\"Empty\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__fieldName__>!is[blank]]\" variable=null>\n<$list filter=\"[<__fieldValue__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]-[$fieldName$[$fieldValue$]]\">\n<$list filter=\"[has:field[$fieldName$]]\" variable=ignore \nemptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not `$fieldName$` field. Operation ignored//\" tidItem=<> />\"\"\" >\n<$action-setfield $field=<<__fieldName__>> $value=<<__fieldValue__>> />\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"field `$fieldName$` got a value\"\"\" tidItem=<> />\n\n\n\n\n\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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldField__>!is[blank]]\" variable=null>\n<$list filter=\"[<__newField__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"[has:field[$oldField$]]\" variable=ignore\n emptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not field `$oldField$`. Operation ignored.//\" tidItem=<> /> \"\"\">\n<$set name=oldValue tiddler=<> field=<<__oldField__>> >\t\n<$action-setfield $tiddler=<> $field=<<__newField__>> $value=<>/>\n\n<$action-deletefield $tiddler=<> $field=<<__oldField__>> />\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"field `$oldField$` renamed to `$newField$`\"\"\" tidItem=<> />\n\n\n\n\n\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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__fieldName__>!is[blank]]\" variable=null>\n<$list filter=\"[<__fieldValue__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]-[$fieldName$[$fieldValue$]]\">\n<$list filter=\"[has:field[$fieldName$]]\" variable=ignore \nemptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not `$fieldName$` field. Operation ignored//\" tidItem=<> />\"\"\" >\n<$action-setfield $field=<<__fieldName__>> $value=<<__fieldValue__>> />\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"field `$fieldName$` got a value\"\"\" tidItem=<> />\n\n\n\n\n\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":"<>\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":"\n<$macrocall $name=\"add-more-fields-ui\" datafieldsTid=\"$:/temp/commander/tiddler/datafields/addfield\" />\n\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Add new fields\n<$macrocall $name=\"add-new-field-bulk\" \n datafieldsTid=\"$:/temp/commander/tiddler/datafields/addfield\" />\n
\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":"<$select class=\"cmd-select-wd\" tiddler=\"$:/temp/commander/field-remove\" default=\"\">\n<$list filter=\"[subfilterfields[]sort[]] -title -tags\" >\n\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove old field\n<$macrocall $name=\"remove-old-field-bulk\" oldField={{$:/temp/commander/field-remove}} />\n"},"$:/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":"<$select class=\"cmd-select-wd\" \n tiddler=\"$:/temp/commander/rename-field/old\" default=\"\" >\n<$list filter=\"[subfilterfields[]sort[]] -[get[text]split[ ]]\" > \n\n\n\n\n<$edit-text\ntiddler=\"$:/temp/commander/rename-field/new\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" new field name\"\n/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Rename field\n<$macrocall $name=\"rename-field-bulk\" \noldField={{$:/temp/commander/rename-field/old}} \nnewField={{{ [[$:/temp/commander/rename-field/new]get[text]trim[]] }}} />\n\n\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":"<$select class=\"cmd-select-wd\" \n tiddler=\"$:/temp/commander/field-name\" default=\"\" >\n<$list filter=\"[subfilterfields[]sort[]] -[get[text]split[ ]]\" >\n\n\n\n\n<$edit-text\ntiddler=\"$:/temp/commander/field-value\"\ntag=\"input\" default=\"\"\nclass=\"cmd-txt-area\" placeholder=\" field value\"/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Set field value\n<$macrocall \n $name=\"set-field-value-bulk\" \n fieldName={{$:/temp/commander/field-name}} \n fieldValue={{$:/temp/commander/field-value}} \n/>\n"},"$:/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":"<>\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
''Note'': For good operation a tiddler width of 800px is recommended. You can also use //Sidebar layout// as `Fluid story`.
\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 |<|<|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 |<|<|h\n|''Anchors''|<|<|\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''|<|<|\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'' |<|<|\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''|<|<|\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''|<|<|\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''|<|<|\n| \\ |escape special characters|add to \\ [ ] ( ) { } ^ $ . ? * + for literals|\n|REPLACE |<|<|h\n| $& |return the full match|<|\n| $x |return $x where x is the numeric index of a Capturing Group|<|\n|NOTE |<|<|h\n|This Reference supports most ordinary uses of regular expressions.
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]].|<|<|\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
''Note'': Relink does not update all forms of title e.g those created from different segments, but it will update any occurances
\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<$list filter=\"[[snr.png]is[tiddler]]\"><>\n\n!! Special characters\n<<<\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<<<\n\n!! Warning\n<<<\n* SNR replace the contents of tiddlers.
''//The action can not be undone//''. So always make a backup before performing any replace action\n<<<"},"$:/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
''Warning''\nBefore using Tiddler commander for bulk operation on your own valuable, irreplaceable data, ''backup them''.\n
"},"$:/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.9'' -- 2024.09.13 -- development moved to Gatha-Thirdflow\n* ''2.1.8'' -- 2024.06.13 -- updated to support Tiddlywiki 5.3.3\n* ''2.1.5'' -- 2023.02.14 -- updated to support Tiddlywiki 5.2.5\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/icon":{"title":"$:/plugins/kookma/commander/icon","text":"","type":"image/svg+xml"},"$:/plugins/kookma/commander/images/commander.svg":{"title":"$:/plugins/kookma/commander/images/commander.svg","caption":"list-rich","library":"Open Iconic","tags":"$:/tags/Image","type":"text/vnd.tiddlywiki","text":""},"$:/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<$vars name={{$:/temp/newfieldname}}>\n<$reveal type=\"nomatch\" text=\"\" default=<>>\n<$button class=\"cmd-btn\">\n<$action-sendmessage $message=\"tm-add-field\"\n$name=<>\n$value={{$:/temp/newfieldvalue}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldname\"/>\n<$action-deletetiddler $tiddler=\"$:/temp/newfieldvalue\"/>\n<>\n\n\n<$reveal type=\"match\" text=\"\" default=<>>\n<$button class=\"cmd-btn\">\n<>\n\n\n\n\\end\n\n\\define compInspect-edit-fileds(commonFields:\"\")\n\n
\n\n\n<$list filter=\"[all[current]fields[]] +[sort[title]]\" variable=\"currentField\">\n<$list filter=<> variable=\"temp\">\n\n\n\n\n\n\n\n\n\n<$list filter=\"created creator modified modifier -[enlist<__commonFields__>]\" variable=\"currentField\">\n\n\n\n\n\n\n\n\n\n\n\n
\n<$text text=<>/>:\n<$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\n\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<>/>\n{{$:/core/images/delete-button}}\n\n
\n<$text text=<>/>:\n<$edit-text tiddler=<> field=<> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>\n\n<$button class=\"tc-btn-invisible\" tooltip={{$:/language/EditTemplate/Field/Remove/Hint}} aria-label={{$:/language/EditTemplate/Field/Remove/Caption}}>\n<$action-deletefield $field=<>/>\n{{$:/core/images/delete-button}}\n\n
\n
\n\n<$fieldmangler>\n
\n\n<>\n\n\n<$edit-text tiddler=\"$:/temp/newfieldname\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} focusPopup=<> class=\"tc-edit-texteditor tc-popup-handle\"/>\n\n<$button popup=<> class=\"tc-btn-invisible tc-btn-dropdown\" tooltip={{$:/language/EditTemplate/Field/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Field/Dropdown/Caption}}>{{$:/core/images/down-arrow}}\n<$reveal state=<> type=\"nomatch\" text=\"\" default=\"\">\n
\n<$linkcatcher to=\"$:/temp/newfieldname\">\n
\n<>\n
\n<$list filter=\"[!is[shadow]!is[system]fields[]search:title{$:/temp/newfieldname}sort[]] -created -creator -draft.of -draft.title -modified -modifier -tags -text -title -type\" variable=\"currentField\">\n<$link to=<>>\n<>\n\n\n
\n<>\n
\n<$list filter=\"[fields[]search:title{$:/temp/newfieldname}sort[]] -[!is[shadow]!is[system]fields[]]\" variable=\"currentField\">\n<$link to=<>>\n<>\n\n\n\n
\n\n\n<$edit-text tiddler=\"$:/temp/newfieldvalue\" tag=\"input\" default=\"\" placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}} class=\"tc-edit-texteditor\"/>\n\n\n<$macrocall $name=\"new-field\"/>\n\n
\n\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
\n\n\n\n\n\n\n\n\n\n\n\n\n
title:<$link to=<<__tiddler__>> ><$text text=<<__tiddler__>> />
tags:{{$tiddler$||$:/core/ui/EditTemplate/tags}}
text:<$macrocall $name=compInspect-get-field tiddler=<<__tiddler__>> field=\"text\" tag=\"textarea\" />
\n
\n\n<$tiddler tiddler=<<__tiddler__>> >\n<$macrocall $name=\"compInspect-edit-fileds\" commonFields=<<__commonFields__>> />\n\n\\end\n\n\\define compInspect-get-field(tiddler, field, tag:\"input\") \n<$edit-text class=\"tc-edit-texteditor\" tiddler=<<__tiddler__>> field=<<__field__>> tag=<<__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<$set name=\"state\" \n value={{{ [[$:/state/compInspect/]addsuffix<__stateTiddler__>] }}} >\n<$vars\n slStateTid={{{ [addsuffix[/]addsuffix[selectState-tiddler]] }}}\n rvStateTid={{{ [addsuffix[/]addsuffix[revealState-tiddler]] }}}\n chStateTid={{{ [addsuffix[/]addsuffix[checkboxState-tiddler]] }}} >\n\nSelect tiddler  <$macrocall $name=compSelect filter=<<__filter__>> stateTiddler=<> />\n  \n<$macrocall $name=\"check-common-fields\" stateTiddler=<> />\n  \n<$reveal stateTitle=<> type=\"nomatch\" text=\"edit\">\n<$button class=\"tc-btn-invisible\" setTitle=<> setTo=\"edit\" tooltip=\"edit tiddler\">{{$:/core/images/edit-button}}\n<$macrocall $name=compInspect-show-preview tiddler={{{ [get[text]]+[subfilter<__filter__>] }}} commonFields={{{ [get[text]] }}}/>\n\n<$reveal stateTitle=<> type=\"match\" text=\"edit\">\n<$button class=\"tc-btn-invisible\" setTitle=<> setTo=\"\" tooltip=\"confirm changes\">{{$:/core/images/done-button}}\n<$macrocall $name=compInspect-edit-preview tiddler={{{ [get[text]]+[subfilter<__filter__>] }}} commonFields={{{ [get[text]] }}}/>\n\n\n\n\n\\end\n\n\\define check-common-fields(stateTiddler)\n<$vars commonFields={{{[get[text]]}}}>\n<$checkbox \n tiddler=<<__stateTiddler__>>\n field=\"text\" \n checked=<>\n unchecked=\"\"\n default=\"\"\n> Exclude common fields?\n\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<$select tiddler=<<__stateTiddler__>> default=<<__default__>> class=<<__class__>> >\n\n<$list filter=<<__filter__>> variable=item>\n\n\n\n<$reveal type=\"match\" text=\"show\" default=<<__showButtons__>> >\n<$vars myfilter=<<__filter__>> mystateTiddler=<<__stateTiddler__>> myitem={{{ [<__stateTiddler__>get[text]] }}} >\n<$button actions=<> class=\"cmd-btn\"> prev \n<$button actions=<> class=\"cmd-btn\"> next \n\n\n\\end\n\n\\define cs-prev-item()\n<$list filter=\"[subfilter] +[before]\" variable=\"prev-item\" >\n<$action-setfield $tiddler=<> text=<> />\n\n\\end\n\n\\define cs-next-item()\n<$list filter=\"[subfilter] +[after]\" variable=\"next-item\" >\n<$action-setfield $tiddler=<> text=<> />\n\n\\end\n\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<$vars mainFields=\"title tags text\">\n\n\n\n\n\n\n\n\n\n\n\n<$list filter=\"[<__tiddler__>fields[]] -[enlist] -[enlist<__commonFields__>]\" variable=\"otherFld\">\n\n\n\n\n
title<$link to=<<__tiddler__>> ><$text text=<<__tiddler__>> />
tags<$macrocall $name=showTags tiddler=<<__tiddler__>> />
text<$transclude tiddler=<<__tiddler__>> field=\"text\" mode=\"block\"/>
<><$transclude tiddler=<<__tiddler__>> field=<> mode=\"inline\"/>
\n\n\\end\n\n\\define showTags(tiddler)\n<$list filter=\"[<__tiddler__>tags[]]\" variable=tagItem >\n<$macrocall $name=tag tag=<> />\n\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":"<>\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":"<$macrocall \n $name=compInspect\n filter=<>\n stateTiddler=\"commander\"\n/>"},"$:/plugins/kookma/commander/license":{"title":"$:/plugins/kookma/commander/license","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2018-2024 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<"},"$:/plugins/kookma/commander/log/ui":{"title":"$:/plugins/kookma/commander/log/ui","caption":"Log status","tags":"","type":"text/vnd.tiddlywiki","text":"
\n<$button class=\"tc-btn-invisible tc-tiddlylink\" actions=<>>Clear log\n<$set name=\"resultCount\" value=\"\"\"<$count filter=\"[tag[$:/tags/Commander/LogOps]]\" />\"\"\">\n
\nRecent number of operations: <>
\n<$list filter=\"[tag[$:/tags/Commander/LogOps]] +[!sort[created]]\" variable=\"logTid\">\n<$view tiddler=<> field=\"created\" format=\"date\" template=\"YYYY-0MM-0DD 0hh:0mm:0ss\"/> \n<$view tiddler=<> field=\"caption\">\n <$view tiddler=<> field=\"title\">\n\n\n
    <$list filter=\"[indexes[]]\" variable=\"item\">\n
  1. <$link to=<>><>\n<$set name=\"myItem\" tiddler=<> index=<> >\n<$list filter=\"[!search[existed]]\" variable=\"ignore\" \n emptyMessage=\"\"\"<>\"\"\" >\n<>\n\n\n
  2. \n
\n\n
\n\n
"},"$:/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<$set name=resultCount value={{{ [subfilter<__countFilter__>count[]] }}} >\n<$reveal type=\"gt\" text=\"0\" default=<> >\n<$button popup=<> class=\"cmd-btn\">$btnLabel$\n\n<$reveal state=<> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n
\n
\n
\n$confirmMessage$ <> tiddler(s)?\n
\n
\n<$button class=\"cmd-btn\"> $btnLabel$\n<$macrocall $name=<<__actionMacro__>> />\n\n
\n
\n
\n\n\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<$wikify name=\"myTitle\" text=\"\"\"<>\"\"\">\n<$wikify name=\"myCaption\" text=\"\"\"<$macrocall $name=\"set-caption\" msg=<<__msg__>> />\"\"\">\n<$action-createtiddler $basetitle=<>\n$savetitle=\"$:/state/commander/log-tiddler\"\ntags=\"$:/tags/Commander/LogOps\"\ntype=\"application/json\"\ncaption=<<__msg__>>\n/>\n\n\n\\end\n\n\\define log-add-single-operation(msg:\"commander operation\", tidItem:\"no item\")\n<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<<__tidItem__>> $value=<<__msg__>> />\n\\end\n\n\n\\define delete-all-log-tiddlers()\n<$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<$list filter=\"[all[shadows+tiddlers]taglimit[1]]\" variable=ignore>\n<>\n<$list filter=\"[all[shadows+tiddlers]tag]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<<__oldTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"working tag `$oldTag$` removed\"\"\" tidItem=<> />\n\n\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<$set name=\"revealState\" value=<>>\n

\n <$reveal type=\"nomatch\" state=<> text=\"open\" default=\"$default$\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\" set=<> setTo=\"open\">\n {{$:/core/images/right-arrow}}\n \n \n <$reveal type=\"match\" state=<> text=\"open\" default=\"$default$\">\n <$button class=\"tc-btn-invisible tc-tiddlylink\" set=<> setTo=\"closed\">\n {{$:/core/images/down-arrow}}\n \n \n <$view tiddler=\"$title$\" field=\"caption\">\n <$view tiddler=\"$title$\" field=\"title\">\n \n

\n\n<$reveal type=\"match\" state=<> text=\"open\" default=\"$default$\">\n<$transclude tiddler=\"$title$\" mode=\"block\" />\n\n\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<$set name=\"stateTid\" value=\"$:/temp/commander/display/popup/$label$\" >\n<$button popup=<> class=\"tc-btn-invisible\">$label$\n<$reveal type=\"nomatch\" text=\"\" default=\"\" state=<> animate=\"yes\">\n<$text text=<<__text__>> />\n\n\\end\n\n\\define is-filterSeearch-newer-than-selectedTitles(TidA, TidB)\n<$set name=\"tidAMod\" value={{{ [[$TidA$]get[modified]] }}}>\n<$set name=\"tidBMod\" value={{{ [[$TidB$]get[modified]] }}}>\n<$set name=\"tidAText\" value={{{ [[$TidA$]get[text]] }}}>\n<$set name=\"tidBText\" value={{{ [[$TidB$]get[text]] }}}>\n<$list filter=\"[<__TidB__>get[text]minlength[1]]\" variable=ignore>\n<$reveal type=\"nomatch\" default=<> text=<>>\n<$list filter=\"[] [] +[nsort[]last[1]removesuffix]\">\nA new filter search has been detected, click on the search button to apply it.\n\n\n\n\n\n\n\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: {{$:/plugins/kookma/commander/images/commander.svg}} to page controls.\n* Open the right sidebar and click on the {{$:/plugins/kookma/commander/images/commander.svg}} 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"},"$:/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<$reveal type=\"nomatch\" stateTitle=<> stateField=\"text\" text=\"\">\n<$button class=\"tc-btn-invisible\" tooltip=\"clear search box and selected tiddlers\">\n<$action-setfield $tiddler=<> $field=\"text\" $value=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/commander\" $field=\"text\" $value=\"\"/>\n<$action-setfield $tiddler=\"$:/state/commander/snr/select-tiddler\" $field=\"text\" $value=\"\"/>\n<$action-setfield $tiddler=\"$:/state/compInspect/temp/commander/selectState-tiddler\" $field=\"text\" $value=\"\"/> \n{{$:/core/images/close-button}}\n\n\n\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\n<$button popup=<> class=\"tc-btn-invisible\" tooltip=\"select a search filter\">\n{{$:/core/images/down-arrow}}\n\n\n\n<$reveal state=<> type=\"popup\" position=\"belowleft\" animate=\"yes\">\n<$set name=\"tv-show-missing-links\" value=\"yes\">\n<$linkcatcher to=<> >\n
\n
\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Commander/Filter]!is[draft]]\">\n<$link to={{!!filter}}><$let tv-wikilinks=\"no\"><$transclude field=\"description\"/>\n\n
\n
\n\n\n"},"$:/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<$reveal type=\"nomatch\" stateTitle=<> stateField=\"text\" text=\"\">\n<$button class=\"tc-btn-invisible\" tooltip=\"save current search\" popup=<> >\n{{$:/core/images/file}}\n\n\n\n<$reveal state=<> type=\"popup\" class=\"tc-popup-keep\" position=\"belowleft\" animate=\"yes\">\n
\n
\n
\nSave new search filter

\n<$edit-text\ntiddler=\"$:/temp/commander/save-new-filter\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\"description for new filter\"\n/>

\n\n<$button class=\"tc-btn\"> Save new filter\n<$macrocall $name=\"create-new-filter\" \n description={{$:/temp/commander/save-new-filter}} \n\tbasetitle=\"$:/plugins/kookma/commander/filters/yourFilter\" \n\tfilter={{{[get[text]]}}} \t/>\n<$action-deletetiddler $tiddler=\"$:/temp/commander/save-new-filter\"/>\n<$action-deletetiddler $tiddler=<> />\n\n
\n
\n
\n\n\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<$list filter=\"[<__description__>!is[blank]]\" variable=\"ignore\">\n<$action-createtiddler \n $basetitle=\"\"\"$basetitle$\"\"\"\n tags=\"$:/tags/Commander/Filter\"\n description=<<__description__>>\n filter=\"\"\"$filter$\"\"\"\n /> \n\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<$list filter=\"[subfilter!is[missing]!tag]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n\n\\end\n\n\\define deselect-all()\n<$list filter=\"[tag]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<> />\n\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<$list filter=\"[tag]-[subfilter]+[count[]!match[0]] \">\nThere are remained selected tiddlers from previous search! Remove them by pressing ''deselect all''!\n\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<$checkbox tiddler=<> field=\"text\" checked=\"yes\" unchecked=\"no\" default=\"no\" uncheckactions=<> > Selective operation?\n\n<$reveal type=\"nomatch\" stateTitle=<> stateField=\"text\" text=\"yes\" tag=\"div\" class=\"kk-commander-tiddler-list kk-commander-columns3\">\n<$list filter=\"[subfilter!prefix[$:/temp/commander]!is[missing]]\"><$link/>
\n\n<$reveal type=\"match\" stateTitle=<> stateField=\"text\" text=\"yes\" tag=\"div\">\n<$button actions=<> > Select all <$button actions=<> > Deselect all\nNumber of tiddlers selected: <$count filter=\"[tag]\" />
\n<>\n\n\n\n<$reveal type=\"match\" stateTitle=<> stateField=\"text\" text=\"yes\" tag=\"div\" class=\"kk-commander-tiddler-list kk-commander-columns3\">\n<$list filter=\"[subfilter!prefix[$:/temp/commander]!is[missing]]\">\n<$checkbox tag=<>> <$link/>
\n\n\n\n"},"$:/plugins/kookma/commander/search/ui":{"title":"$:/plugins/kookma/commander/search/ui","caption":"Commander filter search","code-body":"yes","type":"text/vnd.tiddlywiki","text":""},"$:/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":"<>\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<$action-deletetiddler $filter=\"[search:title[$:/temp/commander/]]\" />\n\\end\n\n<$set name=numTids value={{{ [search:title[$:/temp/commander/]count[]] }}}>\n<$reveal type=\"match\" text=\"0\" default=<> >\nNo temporary tiddlers is existed to delete!\n\n<$reveal type=\"gt\" text=\"0\" default=<> >\nNumber of temporary tiddlers (including log tiddlers): <>
\n\n\n\n<$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<$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
\nCommander saved filter search\n
\n<$list filter=\"[all[tiddlers+shadows]tag[$:/tags/Commander/Filter]]\" >\n
<$link/>
\n
Description:<$view field=\"description\"/>
\n
Filter:<$view field=\"filter\"/>
\n\n
\n
"},"$:/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":"<>\n
\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
"},"$:/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{{$:/config/commander/snr/gm}}{{$:/config/commander/snr/case-sensitive}}{{$:/config/commander/snr/unicode}}\n\\end\n\n\\define snr-ui-show-diffs()\n
\n
\n Differences\nTiddler: <$link to={{$:/state/commander/snr/select-tiddler}}><$text text={{$:/state/commander/snr/select-tiddler}}/>\n\n<$wikify name=flags text=<> >\n\n<$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=<> \n wholeWords={{$:/config/commander/snr/whole-words}}\n/>\n\n\n
\n
\n\\end\n\n\\define snr-check-diffs(tiddler:\"\", field:\"\")\n\\whitespace trim\n<$wikify name=flags text=<> >\n<$wikify name=\"result\" text=\"\"\"\n<$macrocall $name=\"replace-text\" \n tiddler=<<__tiddler__>>\n field=<<__field__>>\n replace={{$:/state/commander/snr/replace-text}} \n replaceWith={{$:/state/commander/snr/replace-text-with}} \n flags=<> \n wholeWords={{$:/config/commander/snr/whole-words}}\n/>\"\"\">\n<$reveal type=\"match\" text={{{ [<__tiddler__>get<__field__>] }}} default=<> >\nsame\n\n<$reveal type=\"nomatch\" text={{{ [<__tiddler__>get<__field__>] }}} default=<> >\ndifferent\n\n\n\n\\end\n\n\\define search-replace-in-tiddler-field(tiddler:\"\",field:\"\",replace:\"\",replaceWith:\"\")\n<$wikify name=ss text=<> >\n<$list filter=\"[] -same\" variable=ignore>\n<$list filter=\"[<__tiddler__>has[title]]\" variable=\"ignore\">\n<$wikify name=flags text=<> >\n<$macrocall $name=\"replace-text-button\" \n tiddler=<<__tiddler__>> \n field=<<__field__>>\n replace=<<__replace__>>\n replaceWith=<<__replaceWith__>> \n flags=<> \n wholeWords={{$:/config/commander/snr/whole-words}}\n/>\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"`$field$` field has been changed\"\"\" tidItem=<<__tiddler__>> />\n<$macrocall $name=\"clear-select-tiddler-if-field-is-title\" tiddler=<<__tiddler__>> field=<<__field__>> />\n\n\n\n\n\\end\n\n\\define clear-select-tiddler-if-field-is-title(tiddler, field)\n<$list filter=\"[<__field__>] +[search[title]]\" variable=\"ignore\">\n<$action-setfield $tiddler=\"$:/state/commander/snr/select-tiddler\" text=\"\"/>\n<$action-setfield $tiddler=\"$:/temp/commander/selected-titles\" $index=<<__tiddler__>> />\n\n\\end\n\n\\define search-replace-in-field-bulk()\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<>\n<$list filter=\"[subfilter!is[missing]]\" >\n <$macrocall \n $name=\"search-replace-in-tiddler-field\"\n 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\n\n\\end\n\n\\define search-replace-in-field-single-tiddler()\n<>\n <$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<$button actions=<> tooltip=\"search and replace in a single tiddler\" class=\"cmd-btn\">\nReplace?\n \n\n<$macrocall $name=\"compConfirmAction\"\ncountFilter=<>\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
\n
\n Search and Replace\n\n
\n\n<$select tiddler=\"$:/state/commander/snr/select-tiddler\" default=\"\" class=\"cmd-snr-textbox\">\n\n<$list filter=\"[subfilter]\" >\n\n\n\n
\n\n
\n\n<$select tiddler=\"$:/state/commander/snr/select-tiddler/field\" default=\"text\">\n<$list filter=\"[subfilterfields[]]\">\n\n\n\n
\n\n
\n\n<$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
\n\n
\n\n<$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
\n\n<$list filter=\"[[$:/state/commander/snr/select-tiddler/field]get[text]match[title]]\" variable=ignore>\n
{{$:/plugins/kookma/commander/config/relink}}
\n\n
\n
\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
\n
\nSearch flags\n\n<$checkbox \n tiddler=\"$:/config/commander/snr/case-sensitive\" \n field=\"text\" \n checked=\"i\" \n unchecked=\"\"\n/>  ignore case
\n\n<$checkbox \n tiddler=\"$:/config/commander/snr/whole-words\" \n field=\"text\" \n checked=\"words\" \n unchecked=\"characters\"\n/>  whole words
\n\n<$checkbox \n tiddler=\"$:/config/commander/snr/unicode\" \n field=\"text\" \n checked=\"u\" \n unchecked=\"\"\n/>  unicode
\n\n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"\">  first match \n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"g\">  global match\n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"m\">  multiline mode\n
\n\n<$radio\n tiddler=\"$:/config/commander/snr/gm\" \n field=\"text\" \n value=\"mg\">  global multiline mode\n\n\n
\n
\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<$diff-text source={{{ [<__tiddler__>get<__field__>] }}} dest={{{ [<__tiddler__>get<__field__>] }}} />\n\\end\n\n\\define replace-text(tiddler:\"\",field:\"text\",replace:\"\",replaceWith:\"\",flags:\"\", wholeWords:\"\")\n\\whitespace trim\n<$wikify name=\"source\" text=\"\"\"<$view tiddler=<<__tiddler__>> field=<<__field__>> mode=\"block\" format=\"text\"/>\"\"\">\n<$wikify name=\"result\" \n text=\"\"\"<$macrocall $name=\"regexpsub\" $type=\"text/plain\" \n sourceText=<> \n searchValue=<<__replace__>> \n replaceValue=<<__replaceWith__>> \n flags=<<__flags__>> \n wholeWords=<<__wholeWords__>> />\"\"\" \n >\n<$text text=<>/>\n\n\n\\end\n\n\\define replace-text-diff(tiddler:\"\", field:\"text\", replace, replaceWith, flags:\"\", wholeWords:\"\")\n<$list filter=\"[<__tiddler__>get<__field__>minlength[1]]\" variable=null emptyMessage=\"No tiddler is selected, or tiddler is empty.\">\n<$list filter=\"[<__replace__>minlength[1]]\" variable=null emptyMessage=<> >\n\n<$wikify name=\"result\" \n text=\"\"\"<$macrocall $name=\"replace-text\" \n tiddler=<<__tiddler__>> field=<<__field__>> \n replace=<<__replace__>> \n replaceWith=<<__replaceWith__>> \n flags=<<__flags__>>\n wholeWords=<<__wholeWords__>> />\"\"\"\n >\n<$diff-text source={{{ [<__tiddler__>get<__field__>] }}} dest=<> cleanup={{$:/state/commander/snr/setting/cleanup}}/>\n\n\n\n\n\\end\n\n\\define replace-text-button(tiddler:\"\", field:\"text\", replace:\"\", replaceWith:\"\", flags:\"\", wholeWords:\"\")\n\\whitespace trim\n<$list filter=\"[<__tiddler__>get<__field__>minlength[1]]\" variable=null>\n<$list filter=\"[<__replace__>minlength[1]]\" variable=null>\n<$wikify name=\"result\" \n text=\"\"\"<$macrocall $name=\"replace-text\" \n tiddler=<<__tiddler__>> \n field=<<__field__>> \n replace=<<__replace__>> \n replaceWith=<<__replaceWith__>> \n flags=<<__flags__>>\n wholeWords=<<__wholeWords__>> />\"\"\"\n >\n<$reveal type=\"nomatch\" default=\"title\" text=<<__field__>> >\n <$action-setfield $tiddler=<<__tiddler__>> $field=<<__field__>> $value=<>/>\n\n<$reveal type=\"match\" default=\"title\" text=<<__field__>> >\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<<__tiddler__>> to=<> />\n\n\n\n\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<>\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":"
\n
\n<>\n
\n
\n<> \n
\n
\n<>\n<>"},"$:/plugins/kookma/commander/styles/buttons":{"title":"$:/plugins/kookma/commander/styles/buttons","text":"/*\n.cmd-btn{\n\tfont-size:0.85em;\n\tfont-size:300;\n\tcolor: #666666;\n\tbackground-color: #d8d8d8;\n\tpadding: 3px 8px 3px 8px;\n\tborder: 1px solid #a1a1a1;\n}\n*/\n\n.cmd-btn-wd{\n\twidth:20ch;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/commander/styles/compInspect/table":{"title":"$:/plugins/kookma/commander/styles/compInspect/table","text":"/*compInspect table*/\n.cmd-ci-table{\n\tborder-collapse: collapse;\n}\n\n.cmd-ci-table .leftcol{\n\twidth:20%;\n\tvertical-align: top;\n\ttext-align: right;\n\tbackground-color:#f0f0f0;\n}\n.cmd-ci-table .rightcol{\n\twidth:650px;\n}\n","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/commander/styles/log":{"title":"$:/plugins/kookma/commander/styles/log","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":".commander-alert {\n\tpadding: 0.75rem 1.25rem;\n\tmargin-bottom: 1rem;\n\t/*border: 1px dotted gray;*/\n\tborder-radius: 0.25rem;\n\t\n\tcolor: <>; /*#0c5460;*/\n\tbackground-color:<>; /*#d1ecf1;*/\n\tborder-color: <>; /*#bee5eb;*/\n}\n\n.kk-commander-log-note{\n\tfont-style:italic; font-size:small;\n}\n.kk-commander-log-item {\n\t/*color:green;*/\n}"},"$:/plugins/kookma/commander/styles/other":{"title":"$:/plugins/kookma/commander/styles/other","text":"\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/styles/select-width":{"title":"$:/plugins/kookma/commander/styles/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/styles/snr/flexbox":{"title":"$:/plugins/kookma/commander/styles/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/styles/snr/form":{"title":"$:/plugins/kookma/commander/styles/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/styles/tiddler-list":{"title":"$:/plugins/kookma/commander/styles/tiddler-list","text":".kk-commander-tiddler-list {\n\tfont-size:small; \n\tborder-left:0.5px dotted 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<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__newTag__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter!tag<__newTag__>]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__newTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"new tag `$newTag$` added\"\"\" tidItem=<> />\n\n\n\n\\end\n\n\\define remove-old-tag-bulk(oldTag:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldTag__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfiltertag<__oldTag__>]\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<<__oldTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"old tag `$oldTag$` removed\"\"\" tidItem=<> />\n\n\n\n\\end\n\n\n\\define replace-tag-bulk(oldTag:\"\", newTag:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__oldTag__>!is[blank]]\" variable=null>\n<$list filter=\"[<__newTag__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"[tag<__oldTag__>]\" variable=ignore\n emptyMessage=\"\"\"<$macrocall $name=\"log-add-single-operation\" msg=\"//has not tag `$oldTag$`. Operation ignored.//\" tidItem=<> /> \"\"\">\n<$fieldmangler>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<<__newTag__>> />\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<<__oldTag__>> />\n\n<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"tag `$oldTag$` replaced with `$newTag$`\"\"\" tidItem=<> />\n\n\n\n\n\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":"<>\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":"<$edit-text\ntiddler=\"$:/temp/commander/tag-add-remove/new\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" new tag\"/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Add new tag\n<$macrocall $name=\"add-new-tag-bulk\" newTag={{$:/temp/commander/tag-add-remove/new}} />\n\n\n<$select class=\"cmd-select-wd\" tiddler=\"$:/temp/commander/tag-add-remove/old\" default=\"\" >\n<$list filter=\"[subfilter!is[missing]tags[]sort[]]-[]\" >\n\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove old tag\n<$macrocall $name=\"remove-old-tag-bulk\" oldTag={{$:/temp/commander/tag-add-remove/old}} />\n\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":"<$select class=\"cmd-select-wd\" tiddler=\"$:/temp/commander/replace-tags/old\" default=\"\">\n<$list filter=\"[subfilter!is[missing]tags[]sort[]]-[]\" >\n\n\n\n\n<$edit-text\ntiddler=\"$:/temp/commander/replace-tags/new\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" new tag\"\n/>\n<$button class=\"cmd-btn cmd-btn-wd\"> Replace tag\n<$macrocall $name=\"replace-tag-bulk\" \noldTag={{$:/temp/commander/replace-tags/old}} \nnewTag={{$:/temp/commander/replace-tags/new}} />\n\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<<<\nshort introduction\n<<<\n\n!! Content and parameters\n<<<\nThe content, attributes and parameters\n\n|!Parameter |!Description |\n|par1 |description |\n|par2 |description |\n<<<\n\n!! Example i\n<<<\nexample here\n<<<\n\n!! Example ii\n<<<\nanother example here\n<<<\n\n!! References\n<<<\n# one\n# Two\n<<<"},"$:/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<$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<$list filter=\"[<__baseTitle__>!is[blank]]\" variable=ignore>\n<>\n<$list filter=\"[range[9]addprefix[00]] [range[10,99]addprefix[0]] [range[100,500]] +[limit<__numberTiddler__>]\" variable=\"L1\">\n<$list filter=\"[<__baseTitle__>addsuffix]\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\" emptyMessage=<> >\n<$action-createtiddler $basetitle=<> tags=<<__baseTags__>> /> \n<$vars datafieldsTid=<<__datafieldsTid__>> >\n<>\n\n<>\n\n\n\n\n\\end\n\n\\define oneTid-with-template()\n<$tiddler tiddler=<> >\n <$action-setfield $tiddler=<> title=<> /> \n <$fieldmangler>\n <$list filter=\"[enlist]\" variable=newTag>\n <$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n \n <$action-sendmessage $message=\"tm-remove-tag\" $param=\"$:/tags/Commander/Template\" />\n\n\n\\end\n\n\n\\define bulk-tiddler-with-template-creator(baseTitle, baseTags, datafieldsTid, numberTiddler:\"1\", template:\"\")\n<$list filter=\"[<__baseTitle__>!is[blank]]\" variable=ignore>\n<>\n<$vars datafieldsTid=<<__datafieldsTid__>>\n myTags=<<__baseTags__>> \n myTemplate=<<__template__>> >\n<$list filter=\"[range[9]addprefix[00]] [range[10,99]addprefix[0]] [range[100,500]] +[limit<__numberTiddler__>]\" variable=\"L1\">\n<$list filter=\"[<__baseTitle__>addsuffix]\" variable=\"newTitle\">\n<$list filter=\"[!has[title]]\" variable=\"ignore\" emptyMessage=<> >\n <>\n <>\n <>\n\n\n\n\n\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<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<<__item__>> $value=\"$msg$\" />\n\\end\n\n\\define delete-tiddlers-selective-bulk()\n<$list filter=\"[subfilterlimit[1]]\" variable=\"ignore\">\n<>\n<$list filter=\"[subfilter]\" variable=\"Item\">\n<$action-deletetiddler $tiddler=<> />\n<$macrocall $name=\"log-delete-selectively\" item=<> />\n\n\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<$list filter=<> >\n<$fieldmangler>\n<$list filter=\"[enlist{$(exportTagTid)$}]~[[exported]]\" variable=\"exportTag\" >\n<$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<> />\n\n\n\\end\n\n\\define remove-export-tag()\n<$list filter=<> >\n<$fieldmangler>\n<$list filter=\"[get[text]match[yes]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-add-tag\" $param=<> />\n\n<$list filter=\"[enlist{$(exportTagTid)$}]~[[exported]]\" variable=\"exportTag\" >\n<$action-sendmessage $message=\"tm-remove-tag\" $param=<> />\n\n\n\n\\end\n\n\\define log-export-selectively(msg:\"Tiddler exported\")\n<$list filter=\"[subfilter]\" variable=\"item\">\n<$action-setfield $tiddler={{$:/state/commander/log-tiddler}} $index=<> $value=\"$msg$\" />\n\n\\end\n\n\n\\define commander-exportButton(exportFilter:\"[!is[system]sort[title]]\",lingoBase,baseFilename:\"tiddlers\")\n<$button popup=<> tooltip={{$lingoBase$Hint}} aria-label={{$lingoBase$Caption}} class=<> selectedClass=\"tc-selected\">\n<$list filter=\"[match[yes]]\">\n{{$:/core/images/export-button}}\n\n<$list filter=\"[match[yes]]\">\n<$text text={{$lingoBase$Caption}}/>\n\n<$reveal state=<> type=\"popup\" position=\"below\" animate=\"yes\">\n
\n<$list filter=\"[all[shadows+tiddlers]tag[$:/tags/Exporter]]\">\n<$set name=\"extension\" value={{!!extension}}>\n<$button class=\"tc-btn-invisible\">\n<>\n<$macrocall $name=\"log-export-selectively\"/>\n<>\n<$action-sendmessage $message=\"tm-download-file\" $param=<> exportFilter=\"\"\"$exportFilter$\"\"\" filename=<>/>\n<$action-deletetiddler $tiddler=<>/>\n<$transclude field=\"description\"/>\n<>\n\n\n\n
\n\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":"<>\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":"\n<$edit-text \n tiddler=\"$:/temp/commander/tiddler-base-title\" \n tag=\"input\" default=\"\"\n placeholder=\" base title\" \n class=\"cmd-txt-area\"/>
\n\n\n<$edit-text \n tiddler=\"$:/temp/commander/tiddler-base-tags\" \n tag=\"input\" default=\"\"\n placeholder=\" tags\" \n class=\"cmd-txt-area\"\n/> \n\n\n<$macrocall $name=\"add-more-fields-selective-ui\"\n datafieldsTid=\"$:/temp/commander/tiddler/datafields/createTiddler\"\n stateTiddler=\"$:/state/commander/tiddler-addfields-status\" />\n\n\n<$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\n\n<$reveal type=\"match\" state=\"$:/state/commander/tiddler-template-status\" text=\"use-template\" default=\"no-template\" >\nTemplate\n<$select tiddler=\"$:/temp/commander/template-newtiddler\" \n default=\"$:/plugins/kookma/commander/template/base\">\n<$list filter='[all[shadows+tiddlers]tag[$:/tags/Commander/Template]]'>\n\n\n\n<$button class=\"tc-btn-invisible\"> {{$:/core/images/edit-button}}\n <$action-sendmessage $message=\"tm-edit-tiddler\" \n $param={{{ [[$:/temp/commander/template-newtiddler]get[text]]~[[$:/plugins/kookma/commander/template/base]] }}} />\n\n\n\n\nNumber of tiddlers  \n<$select tiddler=\"$:/temp/commander/tiddler-base-number\" default='1'>\n<$list filter='[range[1,19, 1]] [range[20,50, 5]] [range[60,100,10]] [range[200,500,100]]'>\n\n\n\n\n\n<$reveal type=\"nomatch\" state=\"$:/state/commander/tiddler-template-status\" text=\"use-template\" default=\"no-template\">\n <$button class=\"cmd-btn cmd-btn-wd\"> Create tiddlers\n <$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 \n\n<$reveal type=\"match\" state=\"$:/state/commander/tiddler-template-status\" text=\"use-template\" default=\"no-template\">\n <$button class=\"cmd-btn cmd-btn-wd\"> Create tiddlers\n <$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 \n\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":"<$set name=numTids value={{{[subfilter!is[missing]count[]] }}}>\n<$reveal type=\"match\" text=\"0\" default=<> >\nNo tiddlers is selected for deleteion!\n\n<$reveal type=\"gt\" text=\"0\" default=<> >\n\nNumber of tiddlers selected for deletion: <>
\nNote that, the delete operation cannot be undone!!\n
\n\n<$macrocall $name=\"compConfirmAction\"\ncountFilter=\"[subfilter]\"\nactionMacro=\"delete-tiddlers-selective-bulk\"\nstateTiddler=\"$:/state/commander/SelectiveDeleteDropdown\"\n/>\n\n\n\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<$set name=\"exportList\" filter=<> >\n<$vars tv-config-toolbar-text=\"yes\" tv-config-toolbar-class=\"tc-button tt-button\">\n<$macrocall $name=\"commander-exportButton\" exportFilter=<> lingoBase=\"$:/language/Buttons/ExportTiddlers/\" baseFilename=\"\"\"$baseFilename$\"\"\"/>\n\n\n\\end\n\n\\define exportFileName-and-Tags-ui() \n<$edit-text tiddler=\"$:/temp/commander/exportFilename\" tag=input default=\"tiddlers\" placeholder=\"tiddlers\" class=\"cmd-txt-area\"/>\n
\n\n<$edit-text tiddler=\"$:/temp/commander/exportTag\" tag=input default=\"exported\" placeholder=\"exported\" class=\"cmd-txt-area\"/>
\n\\end\n\n<$set name=numTids value={{{[subfilter!is[missing]count[]] }}}>\n<$reveal type=\"match\" text=\"0\" default=<> >\nNo tiddlers is selected for export!\n\n\n<$reveal type=\"gt\" text=\"0\" default=<> >\n\nNumber of tiddlers selected for export: <>
\n\n<>\n<$macrocall $name=\"export-tiddler-ui\" baseFilename={{{[[$:/temp/commander/exportFilename]get[text]]~[[tiddlers]]}}} />\n\n\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<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"$message$. New title [[$newTitle$]]\"\"\" tidItem=<<__oldTitle__>> />\n\\end\n\n\\define addPrefix-to-tiltle-bulk(prefix:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__prefix__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[addprefix[$prefix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changePrefix message=\"title prefix: `$prefix$` added\" oldTitle=<> newTitle=<> />\n\n\n\n\n\n\\end\n\n\\define removePrefix-from-tiltle-bulk(prefix:\"\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__prefix__>!is[blank]]\" variable=null>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[removeprefix[$prefix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changePrefix message=\"title prefix: `$prefix$` removed\" oldTitle=<> newTitle=<> />\n \n\n\n\n\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<$list filter=\"[subfilter]+[prefix]\" variable=\"item\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=\"log-add-single-operation\" msg=\"\"\"characters removed from end. New title [[$(sfx)$]]\"\"\" tidItem=<> />\n\n\\end\n\n\n\\define makelink2() [[$(newTitle)$]]\n\n\\define generate-suffixes2(n:\"0\")\n<$list filter=\"[<__n__>] -0\" variable=null>\n<$list filter=\"[subfilter]\" variable=\"item\">\n<$list filter=\"\"\"[split[]butlast[$n$]join[]trim[]]\"\"\" variable=\"newTitle\">\n<$text text=<>/>\n\n\n\n\\end\n\n\\define remove-chars-from-end-tiltle-bulk(num:\"0\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__num__>] -0\" variable=null>\n<>\n<$vars n=<<__num__>> >\n<$wikify text=\"\"\"<>\"\"\" name=\"outputs\">\n <$list filter=\"[subfilter]\" variable=\"sfx\">\n<$list filter=\"[subfilter]+[prefixlimit[2]count[]regexp[2]]\" emptyMessage=<> variable=\"cnt\">\n\n\n\n\n\n\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<$list filter=\"[subfilter]+[suffix]\" variable=\"item\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=\"log-add-single-operation\" msg=\"\"\"characters removed from start. New title [[$(sfx)$]]\"\"\" tidItem=<> />\n\n\\end\n\n\n\\define makelink() [[$(newTitle)$]]\n\n\\define generate-suffixes(n:\"0\")\n<$list filter=\"[<__n__>] -0\" variable=null>\n<$list filter=\"[subfilterhas[title]]\" variable=\"item\">\n<$list filter=\"\"\"[split[]rest[$n$]join[]trim[]]\"\"\" variable=\"newTitle\">\n<$text text=<>/>\n\n\n\n\\end\n\n\\define remove-chars-from-begining-tiltle-bulk(num:\"0\")\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<$list filter=\"[<__num__>] -0\" variable=null>\n<>\n<$vars n=<<__num__>> >\n<$wikify text=\"\"\"<>\"\"\" name=\"outputs\">\n <$list filter=\"[subfilter]\" variable=\"sfx\">\n <$list filter=\"[subfilter]+[suffixlimit[2]count[]regexp[2]]\" \n emptyMessage=<> variable=\"cnt\">\n \n \n\n\n\n\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<$macrocall $name=\"log-add-single-operation\" msg=\"\"\"$message$. New title [[$newTitle$]]\"\"\" tidItem=<<__oldTitle__>> />\n\\end\n\n\\define addSuffix-to-tiltle-bulk(suffix:\"\")\n<$list filter=\"[<__suffix__>!is[blank]]\" variable=null>\n<$list filter=\"[subfilterlimit[1]]\" variable=ignore>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[addsuffix[$suffix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changeSuffix message=\"title suffix: `$suffix$` added\" oldTitle=<> newTitle=<> />\n\n\n\n\n\n\\end\n\n\\define removeSuffix-from-tiltle-bulk(suffix:\"\")\n<$list filter=\"[<__suffix__>!is[blank]]\" variable=null>\n<$list filter=\"[subfilter!is[missing]limit[1]]\" variable=ignore>\n<>\n<$list filter=\"[subfilter]\">\n<$list filter=\"\"\"[removesuffix[$suffix$]] -[]\"\"\" variable=\"newTitle\">\n<$list filter=\"[] -[has[title]]\" variable=\"ignore\">\n <$action-sendmessage $message=\"tm-rename-tiddler\" from=<> to=<> />\n <$macrocall $name=log-changeSuffix message=\"title suffix: `$suffix$` removed\" oldTitle=<> newTitle=<> />\n\n\n\n\n\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":"<>\n\n\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\n<$select tiddler=\"$:/temp/commander/title-remove-chars\" default=\"0\" class=\"cmd-sl\">\n<$list filter=\"[subfilterlength[]minall[]subtract[1]] -Infinity\" variable=\"minchars\">\n<$list filter=<> >\n\n\n\n
\n\n<$button class=\"cmd-btn cmd-btn-wd\"> First n characters\n<$macrocall \n $name=\"remove-chars-from-begining-tiltle-bulk\" \n num={{$:/temp/commander/title-remove-chars}} />\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Last n characters\n<$macrocall \n $name=\"remove-chars-from-end-tiltle-bulk\" \n num={{$:/temp/commander/title-remove-chars}} />\n\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":"<$edit-text\ntiddler=\"$:/temp/commander/title-prefix\"\ntag=\"input\"\ndefault=\"\"\nclass=\"cmd-txt-area\"\nplaceholder=\" prefix\"\n/>
\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Add prefix\n<$macrocall \n $name=\"addPrefix-to-tiltle-bulk\" \n prefix={{$:/temp/commander/title-prefix}} \n/>\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove prefix\n<$macrocall \n $name=\"removePrefix-from-tiltle-bulk\" \n prefix={{$:/temp/commander/title-prefix}} \n/>\n\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":"<$edit-text\ntiddler=\"$:/temp/commander/title-suffix\"\ntag=\"input\" default=\"\"\nclass=\"cmd-txt-area\" placeholder=\" suffix\" />
\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Add suffix\n<$macrocall \n $name=\"addSuffix-to-tiltle-bulk\" \n suffix={{$:/temp/commander/title-suffix}} />\n\n\n<$button class=\"cmd-btn cmd-btn-wd\"> Remove suffix\n<$macrocall \n $name=\"removeSuffix-from-tiltle-bulk\" \n suffix={{$:/temp/commander/title-suffix}} \n/>\n\n\n"},"$:/plugins/kookma/commander/ui/Actions/open-commander":{"title":"$:/plugins/kookma/commander/ui/Actions/open-commander","caption":"{{$:/language/Buttons/Commander/Caption}}","description":"{{$:/language/Buttons/Commander/Hint}}","tags":"$:/tags/Actions","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n<$action-navigate $to=\"$:/Commander\" $scroll=\"yes\"/>\n"},"$:/plugins/kookma/commander/ui/Buttons/open-commander":{"title":"$:/plugins/kookma/commander/ui/Buttons/open-commander","caption":"{{$:/plugins/kookma/commander/images/commander.svg}} {{$:/language/Buttons/Commander/Caption}}","description":"{{$:/language/Buttons/Commander/Hint}}","list-after":"$:/core/ui/Buttons/advanced-search","tags":"$:/tags/PageControls","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n\n\\define commander-button(class)\n\\whitespace trim\n<$button to=\"$:/Commander\" tooltip={{$:/language/Buttons/Commander/Hint}} aria-label={{$:/language/Buttons/Commander/Caption}} class=\"\"\"$(tv-config-toolbar-class)$ $class$\"\"\">\n<$list filter=\"[match[yes]]\">\n{{$:/plugins/kookma/commander/images/commander.svg}}\n\n<$list filter=\"[match[yes]]\">\n<$text text={{$:/language/Buttons/Commander/Caption}}/>\n\n\n\\end\n\n<$list filter=\"[list[$:/StoryList]] +[field:title[$:/Commander]]\" emptyMessage=<>>\n<>\n\n"},"$:/plugins/kookma/commander/ui/KeyboardShortcuts/open-commander":{"title":"$:/plugins/kookma/commander/ui/KeyboardShortcuts/open-commander","key":"((open-commander))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n<$navigator story=\"$:/StoryList\" history=\"$:/HistoryList\">\n<$action-navigate $to=\"$:/Commander\" $scroll=\"yes\"/>\n"},"$:/plugins/kookma/commander/viewtemplate/import":{"title":"$:/plugins/kookma/commander/viewtemplate/import","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$list filter=\"[all[current]match[$:/Import]status[complete]]\" variable=\"null\">\n<$button actions=\"\"\"<$action-setfield $tiddler=\"$:/temp/commander/search-box\" text=\"[[$:/Import]links[]]\"/><$action-navigate $to=\"$:/Commander\"/>\"\"\">\n{{$:/plugins/kookma/commander/images/commander.svg}} Batch edit\n\n"}}} \ No newline at end of file diff --git a/tiddlers/$__plugins_kookma_commander.json.meta b/tiddlers/$__plugins_kookma_commander.json.meta index ea1c6cb..7c9686b 100644 --- a/tiddlers/$__plugins_kookma_commander.json.meta +++ b/tiddlers/$__plugins_kookma_commander.json.meta @@ -4,7 +4,7 @@ dependents: description: Streamline tiddler management: bulk operations for titles, tags, and fields list: readme license history name: Tiddler Commander -packaged-by: Gatha on 23rd November 2024, 23:03:13 +packaged-by: Gatha on 11th December 2024, 08:35:19 parent-plugin: plugin-priority: plugin-type: plugin @@ -12,4 +12,4 @@ source: https://github.com/kookma/TW-Commander stability: STABILITY_2_STABLE title: $:/plugins/kookma/commander type: application/json -version: 2.1.12 \ No newline at end of file +version: 2.1.13 \ No newline at end of file diff --git a/tiddlers/$__plugins_kookma_utility.json b/tiddlers/$__plugins_kookma_utility.json index 12f1e0c..16d4b98 100644 --- a/tiddlers/$__plugins_kookma_utility.json +++ b/tiddlers/$__plugins_kookma_utility.json @@ -1 +1 @@ -{"tiddlers":{"$:/plugins/kookma/utility/actions/edit-fields":{"title":"$:/plugins/kookma/utility/actions/edit-fields","code-body":"yes","key":"((edit-fields))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"<$action-listops $tiddler=\"$:/state/utility/edit-fields\" $field=\"text\" $subfilter=\"+[toggle[show],[hide]]\" />"},"$:/plugins/kookma/utility/customize-ui/actions":{"title":"$:/plugins/kookma/utility/customize-ui/actions","key":"((customize-ui))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"<$action-sendmessage $message=\"tm-modal\" $param=\"$:/plugins/kookma/utility/customize-ui/modal\" />"},"$:/plugins/kookma/utility/customize-ui/modal":{"title":"$:/plugins/kookma/utility/customize-ui/modal","caption":"Customize UI elements","tags":"","type":"text/vnd.tiddlywiki","text":"''Show/hide selected UI elements''\n\n
\n<$transclude $variable=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]] [all[shadows+tiddlers]tag[$:/tags/Utility/UI]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Toolbars/ViewToolbar\" class=\"tc-vertical\" explicitState=\"$:/state/tabs/controlpanel/toolbars-1345989671\"/>\n
"},"$:/plugins/kookma/utility/customize-ui/sidebar-elements":{"title":"$:/plugins/kookma/utility/customize-ui/sidebar-elements","caption":"Sidebar elements","tags":"$:/tags/Utility/UI","type":"text/vnd.tiddlywiki","text":"Choose which elements are displayed in right sidebar. \n\n<$checkbox tiddler=\"$:/core/ui/TopBar/menu\" tag=\"$:/tags/TopRightBar\"/> Show right sidebar toggle button
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/search\" tag=\"$:/tags/SideBarSegment\"/> Show search bar
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/tabs\" tag=\"$:/tags/SideBarSegment\"/> Show sidebar tabs
\n"},"$:/plugins/kookma/utility/customize-ui/sidebar-tabs":{"title":"$:/plugins/kookma/utility/customize-ui/sidebar-tabs","caption":"Sidebar tabs","list-after":"$:/plugins/kookma/utility/customize-ui/sidebar-elements","tags":"$:/tags/Utility/UI","type":"text/vnd.tiddlywiki","text":"Choose which tabs are displayed in right sidebar tabs. \n\n<$checkbox tiddler=\"$:/core/ui/SideBar/Open\" tag=\"$:/tags/SideBar\"/> Show Open tab
\n<$checkbox tiddler=\"$:/core/ui/SideBar/Recent\" tag=\"$:/tags/SideBar\"/> Show Recent tab
\n<$checkbox tiddler=\"$:/core/ui/SideBar/Tools\" tag=\"$:/tags/SideBar\"/> Show Tools tab
\n<$checkbox tiddler=\"$:/core/ui/SideBar/More\" tag=\"$:/tags/SideBar\"/> Show More tab
"},"$:/plugins/kookma/utility/customize-ui/site-option":{"title":"$:/plugins/kookma/utility/customize-ui/site-option","caption":"Site options","list-before":"","tags":"$:/tags/Utility/UI","type":"text/vnd.tiddlywiki","text":"Choose which elements are displayed for site. \n\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/site-title\" tag=\"$:/tags/SideBarSegment\"/> Show site title
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/site-subtitle\" tag=\"$:/tags/SideBarSegment\"/> Show site subtitle
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/page-controls\" tag=\"$:/tags/SideBarSegment\"/> Show page controls
"},"$:/plugins/kookma/utility/edittemplates/tiddler-size":{"title":"$:/plugins/kookma/utility/edittemplates/tiddler-size","list-after":"$:/core/ui/EditTemplate/controls","tags":"$:/tags/EditTemplate","type":"text/vnd.tiddlywiki","text":"\\function .fieldnames() text\n\\function .lines() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]count[]else[0]] [enlistcount[]else[0]] +[sum[]]\n\\function .words() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]splitregexp[\\s+]count[]else[0]] [enlistsplitregexp[\\s+]count[]else[0]] +[sum[]]\n\\function .bytes() [.fieldnames[]] :map[<..currentTiddler>getelse[]length[]] [enlistlength[]else[0]] +[sum[]]\n\n<%if [[$:/config/Utility]getindex[tiddler-size-edit-mode]match[show]] %>\n\t<$let popid={{{ [[$:/temp/TiddlyTools/Templates/Size/]addsuffixaddsuffix] }}} >\n\t\t<$button class=\"tc-btn-invisible kk-utility-tiddlersize-btn\" popup=<> tooltip=\"show field sizes\">\n\t\t\t Tiddler text: <<.lines>> lines, <<.words>> words, <<.bytes>> bytes {{$:/core/images/down-arrow}} \n\t\t\n\t\t<$reveal state=<> type=\"popup\" class=\"tc-drop-down kk-utility-tiddlersize-dropdwon\">\n\t\t<$importvariables filter=\"[[$:/plugins/kookma/utility/tiddlerInfo/tiddler-size]]\">\n\t\t\t<> \n\t\t\t\n\t\t\n\t\n<%endif%>"},"$:/config/HighlightPlugin/TypeMappings/text/vnd.tiddlywiki":{"title":"$:/config/HighlightPlugin/TypeMappings/text/vnd.tiddlywiki","type":"text/vnd.tiddlywiki","text":"xml"},"$:/config/ShortcutInfo/customize-ui":{"title":"$:/config/ShortcutInfo/customize-ui","tags":"","type":"text/vnd.tiddlywiki","text":"Utility plugin - Show customize UI dialog"},"$:/config/ShortcutInfo/edit-fields":{"title":"$:/config/ShortcutInfo/edit-fields","tags":"","type":"text/vnd.tiddlywiki","text":"Utility plugin - Edit fields in view mode"},"$:/config/ShortcutInfo/switch-reader-mode":{"title":"$:/config/ShortcutInfo/switch-reader-mode","type":"text/vnd.tiddlywiki","text":"Utility plugin - Toggle the reader mode"},"$:/config/shortcuts/customize-ui":{"title":"$:/config/shortcuts/customize-ui","type":"text/vnd.tiddlywiki","text":"ctrl-shift-Period"},"$:/config/shortcuts/edit-fields":{"title":"$:/config/shortcuts/edit-fields","tags":"","type":"text/vnd.tiddlywiki","text":"ctrl-Slash"},"$:/config/shortcuts/switch-reader-mode":{"title":"$:/config/shortcuts/switch-reader-mode","type":"text/vnd.tiddlywiki","text":"ctrl-shift-Slash"},"$:/language/Buttons/Utility/DraggableHandle/Caption":{"title":"$:/language/Buttons/Utility/DraggableHandle/Caption","tags":"","type":"text/vnd.tiddlywiki","text":"draggable handle"},"$:/language/Buttons/Utility/DraggableHandle/Hint":{"title":"$:/language/Buttons/Utility/DraggableHandle/Hint","tags":"","type":"text/vnd.tiddlywiki","text":"Drag, focus, permalink, and permaview"},"$:/language/Buttons/Utility/EditFields/Caption":{"title":"$:/language/Buttons/Utility/EditFields/Caption","tags":"","type":"text/vnd.tiddlywiki","text":"edit fields"},"$:/language/Buttons/Utility/EditFields/Hint":{"title":"$:/language/Buttons/Utility/EditFields/Hint","tags":"","type":"text/vnd.tiddlywiki","text":"Edit fields in the view mode"},"$:/language/Utility/Notifications/Permlink/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/Permlink/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"Permlink was copied to clipboard!"},"$:/language/Utility/Notifications/Permview/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/Permview/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"Permview was copied to clipboard!"},"$:/language/Utility/Notifications/Source/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/Source/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"Source code is copied to clipboard!"},"$:/language/Utility/Notifications/UID/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/UID/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"UID (unique id) is copied to clipboard!"},"$:/plugins/kookma/utility/history":{"title":"$:/plugins/kookma/utility/history","tags":"","type":"text/vnd.tiddlywiki","text":"* ''3.1.0'' -- 2024.11.21 -- Update to TiddlyWiki 5.3.6 and added custom codeblock\n* ''3.0.1'' -- 2024.09.11 -- built with Gatha-Thirdflow, and revert the view template of version 2.8.1\n* ''3.0.0'' -- 2024.07.18 -- updated to TiddlyWiki 5.3.5, some features moved to Shiraz\n\n--- ''Utility 3'' is not backward compatible. It is based \n\n\n* ''2.8.1'' -- 2024.07.16 -- updated to TiddlyWiki 5.3.4, bug fixes\n* ''2.4.0'' -- 2022.11.10 -- center storyriver when sidebar closed\n* ''2.3.4'' -- 2022.10.24 -- bug fixes\n* ''2.3.0'' -- 2022.08.02 -- new macros, update to Tiddlywiki 5.2.3\n* ''2.1.6'' -- 2022.07.06 -- bug fixes, update to Tiddlywiki 5.2.2\n* ''2.1.6'' -- 2021.05.20 -- bug fixes, new state tiddler for view fields\n* ''2.1.4'' -- 2021.04.09 -- new viewtemplate for show fields used\n* ''2.1.2'' -- 2020.04.03 -- page control button issue fixed\n* ''2.1.1'' -- 2020.03.25 -- page control button improved and minor issues in css fixed\n* ''2.1.0'' -- 2020.03.23 -- new transclusion output for fields macro and disable drag and drop globally\n* ''2.0.0'' -- 2020.03.16 -- new author-reader mode switch\n* ''1.8.0'' -- 2020.03.13 -- admin panel added\n* ''1.7.0'' -- 2020.02.23 -- show tiddler raw content including the macros on demand\n* ''1.0.0'' -- 2019.10.13 -- stable release\n* ''0.5.0'' -- 2019.10.10 -- first beta release"},"$:/plugins/kookma/utility/icon":{"title":"$:/plugins/kookma/utility/icon","text":"","type":"image/svg+xml","tags":""},"$:/plugins/kookma/utility/images/edit-fields.svg":{"title":"$:/plugins/kookma/utility/images/edit-fields.svg","caption":"qrcode-edit","library":"Templarian Material Design","tags":"","type":"text/vnd.tiddlywiki","text":""},"$:/plugins/kookma/utility/images/note.svg":{"title":"$:/plugins/kookma/utility/images/note.svg","tags":"","type":"text/vnd.tiddlywiki","url":"https://www.svgrepo.com/svg/489063/note-01","text":"\\parameters (size:\"22pt\")\n> height=<> class=\"kk-note-button tc-image-button\" fill=\"none\" viewBox=\"0 0 24 24\">"},"$:/plugins/kookma/utility/images/tiddler-created.svg":{"title":"$:/plugins/kookma/utility/images/tiddler-created.svg","tags":"","type":"text/vnd.tiddlywiki","url":"https://www.svgrepo.com/svg/488861/clock","text":"\\parameters (size:\"22pt\")\n> height=<> class=\"kk-clock-button tc-image-button\" fill=\"none\" viewBox=\"0 0 24 24\">"},"$:/plugins/kookma/utility/images/tiddler-updated.svg":{"title":"$:/plugins/kookma/utility/images/tiddler-updated.svg","tags":"","type":"text/vnd.tiddlywiki","url":"https://www.svgrepo.com/svg/489199/update","text":"\\parameters (size:\"22pt\")\n> height=<> class=\"kk-update-button tc-image-button\" fill=\"none\" viewBox=\"0 0 24 24\">"},"$:/plugins/kookma/utility/license":{"title":"$:/plugins/kookma/utility/license","tags":"","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2019-2024 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<\n"},"$:/plugins/kookma/utility/procedures/code":{"title":"$:/plugins/kookma/utility/procedures/code","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure code(src:\"\", language:\"xml\", caption:\"\")\n<$let code={{{ [is[tiddler]get[text]] [is[blank]then{!!text}else] }}} >\n\t\t\t<$codeblock language=<> code=<> caption=<> />\n\n\\end code\n\n\n"},"$:/plugins/kookma/utility/procedures/custom-transclusion":{"title":"$:/plugins/kookma/utility/procedures/custom-transclusion","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure source-link(tiddler, caption)\n<$tiddler tiddler={{{[get[title]else]}}} >\n<$link/>\n<$transclude $variable=\"code\" language={{{ [get[type]else[text/vnd.tiddlywiki]] }}} src={{!!text}} caption=<>/>\n\n\\end\n\n\\procedure content(tiddler)\n<$tiddler tiddler={{{[get[title]else]}}} >\n<$link/>\n<$transclude $field=\"text\" $mode=\"block\"/>\n\n\\end\n\n\\procedure description(tiddler)\n<$tiddler tiddler={{{[get[title]else]}}} >\n
\n
<$link/>
\n
<$transclude $field=\"description\"/>
\n
\n\n\\end\n\n\\procedure fields(tiddler)\n<$tiddler tiddler={{{[get[title]else]}}} >\n<$link/>\n<$transclude tiddler=\"$:/core/ui/TiddlerFields\"/>\n\n\\end"},"$:/plugins/kookma/utility/procedures/doc-url":{"title":"$:/plugins/kookma/utility/procedures/doc-url","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure doc-url(url)\n<$let topic={{{ [split[.html]last[]] }}}\n ourl= {{{[addprefix[https://tiddlywiki.com]]}}} >\n> target=_blank><$text text={{{[removeprefix[#]] :and[decodeuri[]] }}} />\n\\end"},"$:/plugins/kookma/utility/procedures/docit":{"title":"$:/plugins/kookma/utility/procedures/docit","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure docit()\n
\n''To Be Documented''. Created on <$view field=created format=date template=\"YYYY.0MM.0DD\"/>\n
\n\\end"},"$:/plugins/kookma/utility/procedures/docsvg":{"title":"$:/plugins/kookma/utility/procedures/docsvg","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure doc-svg(tiddler:\"\", color:\"\")\n<$transclude tiddler=<> />\n\\end"},"$:/plugins/kookma/utility/procedures/kbd":{"title":"$:/plugins/kookma/utility/procedures/kbd","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure kbd(keys, color)\n<>\n\\end"},"$:/plugins/kookma/utility/procedures/linkify":{"title":"$:/plugins/kookma/utility/procedures/linkify","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure linkify(tiddler:\"\", field:\"caption\")\n<$link to=<> >\n\t<$view tiddler=<> field=<> >\n\t\t\t<$view tiddler=<> field=\"title\" />\n\t\n\n\\end"},"$:/plugins/kookma/utility/procedures/local-link":{"title":"$:/plugins/kookma/utility/procedures/local-link","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure local(folder, label:\"\")\naddprefix[file:///]] }}} target=_blank>\n<%if [\n\\end"},"$:/plugins/kookma/utility/procedures/lorem":{"title":"$:/plugins/kookma/utility/procedures/lorem","author":"Jeremy Ruston","description":"creates few paragraphs of dumy text","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure .lorem(np:1, nw:\"\")\n\\procedure baseText()\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\\end baseText\n\n<$let numwords={{{ [!match[]] :else[split[ ]count[]] }}} numparagraphs=`[range[1,$(np)$]]`>\n<$list filter=\"[split[ ]limitjoin[ ]trim[,]trim[.]addsuffix[.]]\" variable=paragraph>\n\n<$list filter=<> variable=null> \n<>\n<$list filter=\"[!match[1]]\">

\n\n\n\n\n\\end .lorem"},"$:/plugins/kookma/utility/procedures/password":{"title":"$:/plugins/kookma/utility/procedures/password","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure pass(password, label:\"Pass\")\n\\whitespace notrim\n

\n\t<$text text=<
\n\\end\n"},"$:/plugins/kookma/utility/procedures/simple-navigation":{"title":"$:/plugins/kookma/utility/procedures/simple-navigation","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure simple-navigation(tag:\"demo\", class, close:\"no\")\n<$list filter=\"[all[current]tag]\">\n
\n\t<$list filter=\"[tagbefore]\" variable=\"prevTiddler\">\n\t\t<$button to=<> tooltip=<> class=`tc-btn-invisible $(class)$`>previous\n\t\t\t\t<%if [match[yes]] %><$action-sendmessage $message=\"tm-close-tiddler\" $param=<>/><%endif%>\n\t\t\n\t\n\t<%if [tagafter][tagbefore] :and[count[]compare:integer:gteq[2]] %>|<%endif%>\n\t<$list filter=\"[tagafter]\" variable=\"nextTiddler\">\n\t\t<$button to=<> tooltip=<> class=`tc-btn-invisible $(class)$`>next\n\t\t\t\t<%if [match[yes]] %><$action-sendmessage $message=\"tm-close-tiddler\" $param=<>/><%endif%>\n\t\t\n\t\n
\n\n\\end"},"$:/plugins/kookma/utility/procedures/uid":{"title":"$:/plugins/kookma/utility/procedures/uid","author":"Jeremy Ruston","description":"creates a unique id for permanent state tiddler","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure uid(prefix:\"id\")\n<$let uid={{{ [][] :and[join[-]] }}}>\n\t<$button tooltip=\"create unique id\" class=\"tc-btn-invisible\">\n\t<$action-sendmessage $message=\"tm-copy-to-clipboard\" $param=<> successNotification=\"$:/language/Utility/Notifications/UID/CopiedToClipboard/Succeeded\"/>\n\t\t{{$:/core/images/copy-clipboard}} \n\t \n\t<$text text=<>/>\n\n\\end"},"$:/plugins/kookma/utility/procedures/wikitext-example":{"title":"$:/plugins/kookma/utility/procedures/wikitext-example","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure wikitext-example(src)\n
\n\t<$codeblock code=<>/>\n\t

That renders as:

\n\t<$transclude $variable=\"src\" $mode=\"block\"/>\n
\n\\end\n\n\\procedure wikitext-example-with-html(src)\n
\n\t<$codeblock code=<>/>\n\t

That renders as:

\n\t<$transclude $variable=\"src\" $mode=\"block\"/>\n\t

... and the underlying HTML is:

\n\t<$wikify name=\"html\" text=<> output=\"html\">\n\t\t<$codeblock code=<>/>\n\t\n
\n\\end\n\n"},"$:/plugins/kookma/utility/reader-mode/styles":{"title":"$:/plugins/kookma/utility/reader-mode/styles","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\n\\procedure button-selector(title) <$text text=`button.$(title)$, .tc-drop-down button.$(title)$, div.$(title)$` />\n\n\\procedure hide-edit-controls()\n<>,\n<>,\n<>,\n<>,\n<>,\n<>,\n<>,\n<>,\n<>,\n<>{\n\tdisplay: none;\n}\n\\end\n\n\\procedure hide-user-selected-controls()\n<>,\n<>,\n<>,\n<>,\n<>,\n<>,\n<> {\n\tdisplay: none;\n}\n\\end\n\n<$reveal state=\"$:/status/IsReaderMode\" type=\"match\" text=\"yes\" default=\"no\"> \n\n\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\n\n<>\n<>\n"},"$:/plugins/kookma/utility/reader-mode/switch-actions":{"title":"$:/plugins/kookma/utility/reader-mode/switch-actions","key":"((switch-reader-mode))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"\n<$action-listops $tiddler=\"$:/status/IsReaderMode\" $field=text $subfilter=\"+[toggle[yes]]\"/>\n\n\n\n<$list filter=\"$:/core/ui/SideBar/Tools $:/core/ui/SideBar/More\">\n<$action-listops $tiddler=<> $field=tags $subfilter=\"+[toggle[$:/tags/SideBar]]\"/>\n\n\n\n<$list filter=\"\"\"\n $:/plugins/kookma/trashbin/sidebar-tab \n $:/plugins/kookma/favorites/ui/sidebar/active-tab\n +[is[shadow]]\n \"\"\">\n<$action-listops $tiddler=<> $field=tags $subfilter=\"+[toggle[$:/tags/SideBar]]\"/>\n\n\n\n\n\n<$action-listops $tiddler=\"$:/config/DragAndDrop/Enable\" $field=text $subfilter=\"+[toggle[no]]\"/>\n"},"$:/plugins/kookma/utility/readme":{"title":"$:/plugins/kookma/utility/readme","tags":"","type":"text/vnd.tiddlywiki","text":"; Utility plugin\nThe utility plugin objective is to provide set of tools for authors. These tools includes simple transclusions, show raw contents of tiddlers, reader mode, wikitext macros, show fields in view mode, linkify, code, docit, and much more!\n\n; Code and demo\nFor learning plugin features, syntax, tutorial and examples see the plugin demo and code pages\n\n* Demo: https://kookma.github.io/TW-Utility/\n* Code: https://github.com/kookma/TW-Utility\n"},"$:/plugins/kookma/utility/snippets/code-procedure":{"title":"$:/plugins/kookma/utility/snippets/code-procedure","caption":"Code","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/doc-url":{"title":"$:/plugins/kookma/utility/snippets/doc-url","caption":"Docurl","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/local-proc":{"title":"$:/plugins/kookma/utility/snippets/local-proc","caption":"Local","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/pass-proc":{"title":"$:/plugins/kookma/utility/snippets/pass-proc","caption":"Password","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/wikitext-example-transclude":{"title":"$:/plugins/kookma/utility/snippets/wikitext-example-transclude","caption":"Wikitext-example transclude","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<$transclude $variable=\"wikitext-example\" \nsrc=\"\"\"\n\"\"\"/>"},"$:/plugins/kookma/utility/snippets/wikitext-example":{"title":"$:/plugins/kookma/utility/snippets/wikitext-example","caption":"Wikitext-example","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/styles/code":{"title":"$:/plugins/kookma/utility/styles/code","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"div.kk-utility-code {\n\tposition: relative;\n}\ndiv.kk-utility-code > button.tc-btn-invisible {\n\tposition: absolute;\n\tright: 0;\n\tpadding: 0.1em 0.2em;\n\topacity: 0.3;\n}\ndiv.kk-utility-code > button.tc-btn-invisible:hover {\n\ttransition: opacity 150ms ease-in-out;\n\topacity: 1;\n}\ndiv.kk-utility-code > button.tc-btn-invisible svg {\n\twidth: 1.2em;\n\theight: 1.2em;\n}\n/* code caption*/\n.kk-utility-code-caption{\n\tbackground: <>;\n\tborder: solid 1px <>;\n\tborder-bottom: unset;\n\tpadding: 0.3em 0.5em;\n\tborder-radius: 3px 3px 0 0;\n}\n.kk-utility-code-caption:empty{\n\tdisplay:none;\n}\n.kk-utility-code-caption + div.kk-utility-code > pre {\n\tborder-radius: 0 0 3px 3px;\n\tmargin-top: 0em;}\n/*\nConsider changing this rule: It hides the copy-button when\nin a tiddler the code-body field is set to yes \nThis may causes unwanted results. \t \n*/\ndiv.tc-tiddler-body > div > div > button.tc-btn-invisible{\n\tdisplay:none;\n}"},"$:/plugins/kookma/utility/styles/doc-svg":{"title":"$:/plugins/kookma/utility/styles/doc-svg","text":".kk-doc svg{\nwidth: 1.2em;\nheight: 1.2em;\nvertical-align: middle;}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/password":{"title":"$:/plugins/kookma/utility/styles/password","text":".kk-utility-credential-inner{\n\topacity: 0;\n\ttransition: opacity ease-in 2s;\n}\n.kk-utility-credential-outer:hover .kk-utility-credential-inner{\n\topacity: 1;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/reveal-code":{"title":"$:/plugins/kookma/utility/styles/reveal-code","text":"details.kk-utility-details summary {\n\topacity:0.2;\n\tfont-size:0.9em;\n\tdisplay: inline;\n\tcursor: pointer;\n\tpadding: 10px;\n\ttransition: 0.3s;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n}\ndetails.kk-utility-details summary:hover,\ndetails.kk-utility-details[open] > summary {\n\topacity:1;\n}\n\n/* hide in preview pane */\n.tc-tiddler-preview-preview .kk-utility-details{\n\tdisplay: none; \n}\n\n\n/* used in $:/plugins/kookma/utility/ui/ControlPanel/Settings */\n.kk-utility-label{\n\twidth:26em;\n\tdisplay: block;\n\tmargin-top:5px;\n}\n\n.kk-ut-txt{\n\tmin-width:50%;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/subtitle":{"title":"$:/plugins/kookma/utility/styles/subtitle","text":".tc-subtitle svg { /* icons for created/updated on subtitle */\n\tfont-size:1.3em;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/tiddler-size":{"title":"$:/plugins/kookma/utility/styles/tiddler-size","text":"/* tiddler size table */\n\n.kk-utility-tiddlersize{\n\tmargin:0.5em;\n}\n.kk-utility-tiddlersize tr,\n.kk-utility-tiddlersize th,\n.kk-utility-tiddlersize td {\n\tpadding:0 0.25em;\n\tmargin:0; \n\ttext-align:right;\n}\n\n/* tiddler size button and dropdown in Edit mode */\n.kk-utility-tiddlersize-btn{\n\tfloat:left;\n\tmargin-top:-1.25em;\n}\n.kk-utility-tiddlersize-dropdwon{\n\tpadding:0;\n\tfont-size:90%;\n\tmin-width:unset;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/tw-version":{"title":"$:/plugins/kookma/utility/styles/tw-version","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline conditional\n<%if [[$:/config/Utility]getindex[tw-version]match[show]] %>\n/* TW-version added to site title */\n.tc-site-title:before {\n content:\"TW <>\";\n position:absolute;\n margin-top:-1.9em;\n color:<>;\n font-size:13px;\n}\n<%endif%>"},"$:/plugins/kookma/utility/styles/wikitext-macro":{"title":"$:/plugins/kookma/utility/styles/wikitext-macro","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":".doc-example {\n\tmargin: 1em 0;\n\tpadding: 0.8em 0;\n}\n.doc-example:hover {\n\tbackground-color: <>;\n}\n.doc-example ul {\n\tmargin-bottom: 0;\n\tpadding-bottom: 0;\n\tmargin-top: 0.2em;\n}\n\n.doc-example input[type=search] { \n width: 95%;\n}\n.doc-example pre:first-child {\n\tmargin-top: 0;\n}"},"$:/plugins/kookma/utility/tiddlerInfo/tiddler-size":{"title":"$:/plugins/kookma/utility/tiddlerInfo/tiddler-size","caption":"Tiddler size","tags":"$:/tags/TiddlerInfo","type":"text/vnd.tiddlywiki","text":"\\function .fieldnames() [fields[]sort[]] -[[draft.title]] -[[draft.of]]\n\\function .lines() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]count[]else[0]] [enlistcount[]else[0]] +[sum[]]\n\\function .words() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]splitregexp[\\s+]count[]else[0]] [enlistsplitregexp[\\s+]count[]else[0]] +[sum[]]\n\\function .bytes() [.fieldnames[]] :map[<..currentTiddler>getelse[]length[]] [enlistlength[]else[0]] +[sum[]]\n\n\\procedure tiddlerSize()\n \n \n <$list filter=\"[.fieldnames[]]\" variable=\"fieldname\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
fieldnamelineswordsbytes
<><$text text={{{ [getsplitregexp[\\n]count[]else[0]] }}}/><$text text={{{ [getsplitregexp[\\n]splitregexp[\\s+]count[]else[0]] }}}/><$text text={{{ [getlength[]else[0]] }}}/>
field names<$text text={{{ [.fieldnames[]count[]else[0]] }}}/><$text text={{{ [.fieldnames[]splitregexp[\\s+]count[]else[0]] }}}/><$text text={{{ [.fieldnames[]length[]else[0]] +[sum[]] }}}/>
totals<<.lines>><<.words>><<.bytes>>
\n\\end tiddlerSize\n\n<>"},"$:/plugins/kookma/utility/ui/Buttons/draggable-link":{"title":"$:/plugins/kookma/utility/ui/Buttons/draggable-link","caption":"{{$:/core/images/link}} {{$:/language/Buttons/Utility/DraggableHandle/Caption}}","description":"{{$:/language/Buttons/Utility/DraggableHandle/Hint}}","list-after":"$:/core/ui/Buttons/more-tiddler-actions","tags":"$:/tags/ViewToolbar","type":"text/vnd.tiddlywiki","text":"\\procedure btn-actions()\n\n<$list filter=\"[match[normal]]\" variable=ignore>\n<$action-navigate $to=<> $scroll=\"yes\"/>\n\n\n\n<$list filter=\"[match[alt]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-close-other-tiddlers\" param=<> />\n\n\n\n<$list filter=\"[match[ctrl]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-permalink\" param=<> successNotification=\"$:/language/Utility/Notifications/Permlink/CopiedToClipboard/Succeeded\"/>\n\n\n\n<$list filter=\"[match[shift]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-permaview\" param=<> successNotification=\"$:/language/Utility/Notifications/Permview/CopiedToClipboard/Succeeded\"/>\n\n\n\\end\n\n\\whitespace trim\n<$button tooltip={{$:/language/Buttons/Utility/DraggableHandle/Hint}} aria-label={{$:/language/Buttons/Utility/DraggableHandle/Caption}} class=<> dragTiddler=<> actions=<> >\n<$list filter=\"[match[yes]]\">\n{{$:/core/images/link}}\n\n<$list filter=\"[match[yes]]\">\n\n<$text text={{$:/language/Buttons/Utility/DraggableHandle/Caption}}/>\n\n\n"},"$:/plugins/kookma/utility/ui/Buttons/edit-fields":{"title":"$:/plugins/kookma/utility/ui/Buttons/edit-fields","caption":"{{$:/plugins/kookma/utility/images/edit-fields.svg}} {{$:/language/Buttons/Utility/EditFields/Caption}}","description":"{{$:/language/Buttons/Utility/EditFields/Hint}}","list-before":"$:/plugins/kookma/shiraz/ui/Buttons/SwitchPalette","tags":"$:/tags/PageControls","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n\n\\procedure stateTid() $:/state/utility/edit-fields\n\n\\procedure control-panel-button(status, class)\n\\whitespace trim\n\t<$button set=<> setTo=<> tooltip={{$:/language/Buttons/Utility/EditFields/Hint}} aria-label={{$:/language/Buttons/Utility/EditFields/Caption}} class=`$(tv-config-toolbar-class)$ $(class)$` >\n\t\t\t<$list filter=\"[match[yes]]\">\n\t\t\t\t\t{{$:/plugins/kookma/utility/images/edit-fields.svg}} \n\t\t\t\n\t\t\t<$list filter=\"[match[yes]]\">\n\t\t\t\t\t<$text text={{$:/language/Buttons/Utility/EditFields/Caption}}/>\n\t\t\t\n\t\n\\end\t\n\n\n<%if [get[text]match[show]] %>\n\t<>\n<%else%>\n\t<>\n<%endif%>"},"$:/plugins/kookma/utility/ui/ControlPanel/Settings":{"title":"$:/plugins/kookma/utility/ui/ControlPanel/Settings","caption":"Utility","tags":"$:/tags/ControlPanel/SettingsTab $:/tags/MoreSideBar","type":"text/vnd.tiddlywiki","text":"\\procedure help-exclude-reveal-filter()\nExclude Filter: Use this filter to hide the\nsource toggle button on specific tiddlers.\n\\end\n\n\\procedure help-extra-reveal-filter()\nUse this filter to show the source toggle button with\nrevealed source code on specific tiddlers.\n\\end\n\n\nThese settings let you customise the behaviour of Utility plugin.\n\n---\n\n;Show Utility setting in more sidebar\n:<$checkbox tiddler=\"$:/plugins/kookma/utility/ui/ControlPanel/Settings\" tag=\"$:/tags/MoreSideBar\"> Show setting in more sidebar\n\n\n;Options\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"tw-version\" checked=\"show\" unchecked=\"hide\"> Show TiddlyWiki version badge\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"extended-subtitle\" checked=\"show\" unchecked=\"hide\"> Show extended tiddler subtitle\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"tiddler-size-edit-mode\" checked=\"show\" unchecked=\"hide\"> Show tiddler size information in edit mode\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"import-select\" checked=\"show\" unchecked=\"hide\"> Show select tiddlers menu on ''~$:/Import''\n\n\n\n;Source Toggle Button\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"source-toggle-button\" checked=\"show\" unchecked=\"hide\"> Show source button on the tiddlers\n\n\n:
\n<%if [[$:/config/Utility]getindex[source-toggle-button]match[show]] %>\n\n<$edit-text tiddler=\"$:/config/Utility/SourceToggleButton/Exclude-filter\" field=\"text\" tag=input default=\"\" placeholder=\"enter a filter e.g. [has:field[myField]] \" class=\"kk-ut-txt\"/>
\n\n\n<$edit-text tiddler=\"$:/config/Utility/SourceToggleButton/Extra-filter\" field=\"text\" tag=input default=\"\" placeholder=\"enter a filter e.g. [tag[myTag]] \" class=\"kk-ut-txt\"/>\n<%endif%>\n
\n\n;Customize UI elements\n: [[Show/hide selected UI elements|$:/plugins/kookma/utility/customize-ui/modal]]\n\n"},"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/created":{"title":"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/created","list-before":"$:/core/ui/ViewTemplate/subtitle/modified","tags":"$:/tags/ViewTemplate/Subtitle","type":"text/vnd.tiddlywiki","text":"<%if [[$:/config/Utility]getindex[extended-subtitle]match[show]] %>\n<%if [{!!modifier}!is[blank]] %>
<%endif%>\n<%if [{!!modified}!is[blank]] %>\n<> Created <$view field=\"created\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>
\n<> Updated \n<%endif%>\n<%endif%>"},"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/description":{"title":"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/description","tags":"$:/tags/ViewTemplate/Subtitle","type":"text/vnd.tiddlywiki","text":"<%if [[$:/config/Utility]getindex[extended-subtitle]match[show]] :then[!tag[Task]] %>\n<%if [{!!description}!is[blank]] %>\n
<> {{!!description}} \n<%endif%>\n<%endif%>"},"$:/plugins/kookma/utility/viewtemplates/edit-fields":{"title":"$:/plugins/kookma/utility/viewtemplates/edit-fields","description":"Show a toggle button for view fields","list-before":"$:/core/ui/ViewTemplate/body","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$reveal type=match stateTitle=\"$:/state/utility/edit-fields\" stateField=text default=\"hide\" text=show tag=div class=\"kk-ut-viewfields\">\n\n<$vars newFieldNameTiddler=<>\nnewFieldValueTiddler=<> \nsearchListState=<> \nstoreTitle=<> \n>\n<$transclude tiddler=\"$:/core/ui/EditTemplate/fields\"/>\n\n\n\n\n"},"$:/plugins/kookma/utility/viewtemplates/import-select":{"title":"$:/plugins/kookma/utility/viewtemplates/import-select","list-before":"$:/core/ui/ViewTemplate/body","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"\\procedure select-all-actions()\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<$action-setfield $field={{{ [addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>\n\n<$action-setfield $field=\"selection-system-tiddlers\" $value={{$:/state/import/select-all}} />\n<$action-setfield $field=\"selection-shadow-tiddlers\" $value={{$:/state/import/select-all}} />\n<$action-setfield $field=\"selection-ordinary-tiddlers\" $value={{$:/state/import/select-all}} />\n<$action-setfield $field=\"selection-existing-tiddlers\" $value={{$:/state/import/select-all}} />\n\\end\n\n\n\\procedure select-all-state(param)\n<$list filter=\"[match[unchecked]]\" variable=null>\n\t<$action-setfield $tiddler=\"$:/state/import/select-all\" $field=text $value=<>/>\n\n\\end\n\n\n\\procedure cb-action(filter, param)\n<$list filter=\"[{$:/Import}jsonindexes[tiddlers]] :filter[subfilter]\" variable=\"tid\">\n <$action-setfield $tiddler=\"$:/Import\" $field={{{ [[selection-]addsuffix] }}} $value=<>/>\n\n<>\n\\end\n\n\n\\procedure check-boxes()\n<$checkbox tiddler=\"$:/state/import/select-all\" field=\"text\" checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" \n actions=<>\n >All\n\n\n<$checkbox field=\"selection-system-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >System\n\n\n<$checkbox field=\"selection-shadow-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >Shadow\n\n\n<$checkbox field=\"selection-ordinary-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >Ordinary\n\n\n<$checkbox field=\"selection-existing-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >Existing\n\n\n\\end\n\n\\procedure rename-existing-action()\n<$list filter=\"[{$:/Import}jsonindexes[tiddlers]is[tiddler]]\" variable=\"tid\">\n <$action-setfield $tiddler=\"$:/Import\" $field={{{ [[rename-]addsuffix] }}} $value={{{ [] :and[subfilter{!!rename-inputbox}] }}}/>\n\n\\end\n\n\\procedure cancel-rename-existing-action()\n<$list filter=\"[{$:/Import}jsonindexes[tiddlers]is[tiddler]]\" variable=\"tid\">\n <$action-setfield $tiddler=\"$:/Import\" $field={{{ [[rename-]addsuffix] }}} />\n\n\\end\n\n\\procedure rename-existing()\n
\nRename existing\n<$keyboard key={{$:/config/shortcuts/input-cancel}} actions=\"\"\"<$action-deletefield $field=\"rename-inputbox\"/>\"\"\" >\n<$edit-text field=\"rename-inputbox\" tag=input size=\"45\" placeholder=\"enter a subfilter e.g. [addprefix[New-]]\"/>\n\n<$button actions=<> >apply\n<$button actions=<> >cancel\n
\n\\end rename-existing\n\n<%if [[$:/config/Utility]getindex[import-select]match[show]] [all[current]match[$:/Import]status[pending]] :and[count[]match[2]] %>\n<>\n<>\n<%endif%>"},"$:/plugins/kookma/utility/viewtemplates/source-toggle-button":{"title":"$:/plugins/kookma/utility/viewtemplates/source-toggle-button","list-after":"$:/core/ui/ViewTemplate/body","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"\n\\function system-excluded-filter()\n[tag[$:/tags/PageTemplate]] [tag[$:/tags/EditTemplate]] [tag[$:/tags/ViewTemplate]] [tag[$:/tags/KeyboardShortcut]] [tag[$:/tags/ImportPreview]] [tag[$:/tags/EditPreview]] [tag[$:/tags/EditorToolbar]] [tag[$:/EditorTools]] [tag[$:/tags/Actions]] [tag[$:/tags/ToolbarButtonStyle]]\n\n[prefix[$:/boot/]] [prefix[$:/core/macros]] [prefix[$:/core/save/]] [prefix[$:/core/templates/]] [prefix[$:/config/]] [prefix[$:/core/config/]] [prefix[$:/info/]] [prefix[$:/language/]] [prefix[$:/languages/]] [prefix[$:/snippets/]] [prefix[$:/info/]] [prefix[$:/state/]] [prefix[$:/status/]] [prefix[$:/temp/]]\n\n[field:plugin-type[import]]\n[field:code-body[yes]]\n[has[plugin-draft]]\n[has[plugin-type]]\n\n[type[text/css]] [type[application/x-tiddler-dictionary]]\n[type[application/json]] [type[application/javascript]]\n\n\\end system-excluded-filter\n\n\\define show-tiddler-source(open:\"\")\n
\nSource\n<$transclude $variable=\"code\" language={{{ [{!!title}get[type]else[text/vnd.tiddlywiki]] }}} src={{!!text}} />\n
\n\\end\n\n<$reveal type=nomatch stateTitle=<>text=hide tag=div retain=yes animate=yes>\n<%if [[$:/config/Utility]getindex[source-toggle-button]match[show]] %>\n<%if [all[current]has[title]] -[subfilter{$:/config/Utility/SourceToggleButton/Exclude-filter}] -[function[system-excluded-filter]] %>\n\t<%if [tag[show-content]] [tag[show-source]] [subfilter{$:/config/Utility/SourceToggleButton/Extra-filter}] :and[match] %>\n\t\t<>\n\t<%else%>\n\t\t<>\n\t<%endif%>\n<%endif%>\n<%endif%>\n"},"$:/plugins/kookma/utility/widgets/codeblock":{"title":"$:/plugins/kookma/utility/widgets/codeblock","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\widget $codeblock(code, language, caption)\n
<>
\n
\n<%if [!is[blank]] %>\n<$button message=\"tm-copy-to-clipboard\" param=<> tooltip=\"Copy\" class=\"tc-btn-invisible\">\n{{$:/core/images/copy-clipboard}}\n\n<%endif%>\n<$genesis $type=\"$codeblock\" $remappable=\"no\" code=<> language=<>/>\n
\n\\end"}}} \ No newline at end of file +{"tiddlers":{"$:/plugins/kookma/utility/actions/edit-fields":{"title":"$:/plugins/kookma/utility/actions/edit-fields","code-body":"yes","key":"((edit-fields))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"<$action-listops $tiddler=\"$:/state/utility/edit-fields\" $field=\"text\" $subfilter=\"+[toggle[show],[hide]]\" />"},"$:/plugins/kookma/utility/customize-ui/actions":{"title":"$:/plugins/kookma/utility/customize-ui/actions","key":"((customize-ui))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"<$action-sendmessage $message=\"tm-modal\" $param=\"$:/plugins/kookma/utility/customize-ui/modal\" />"},"$:/plugins/kookma/utility/customize-ui/modal":{"title":"$:/plugins/kookma/utility/customize-ui/modal","caption":"Customize UI elements","tags":"","type":"text/vnd.tiddlywiki","text":"''Show/hide selected UI elements''\n\n
\n<$transclude $variable=\"tabs\" tabsList=\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Toolbars]!has[draft.of]] [all[shadows+tiddlers]tag[$:/tags/Utility/UI]!has[draft.of]]\" default=\"$:/core/ui/ControlPanel/Toolbars/ViewToolbar\" class=\"tc-vertical\" explicitState=\"$:/state/tabs/controlpanel/toolbars-1345989671\"/>\n
"},"$:/plugins/kookma/utility/customize-ui/sidebar-elements":{"title":"$:/plugins/kookma/utility/customize-ui/sidebar-elements","caption":"Sidebar elements","tags":"$:/tags/Utility/UI","type":"text/vnd.tiddlywiki","text":"Choose which elements are displayed in right sidebar. \n\n<$checkbox tiddler=\"$:/core/ui/TopBar/menu\" tag=\"$:/tags/TopRightBar\"/> Show right sidebar toggle button
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/search\" tag=\"$:/tags/SideBarSegment\"/> Show search bar
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/tabs\" tag=\"$:/tags/SideBarSegment\"/> Show sidebar tabs
\n"},"$:/plugins/kookma/utility/customize-ui/sidebar-tabs":{"title":"$:/plugins/kookma/utility/customize-ui/sidebar-tabs","caption":"Sidebar tabs","list-after":"$:/plugins/kookma/utility/customize-ui/sidebar-elements","tags":"$:/tags/Utility/UI","type":"text/vnd.tiddlywiki","text":"Choose which tabs are displayed in right sidebar tabs. \n\n<$checkbox tiddler=\"$:/core/ui/SideBar/Open\" tag=\"$:/tags/SideBar\"/> Show Open tab
\n<$checkbox tiddler=\"$:/core/ui/SideBar/Recent\" tag=\"$:/tags/SideBar\"/> Show Recent tab
\n<$checkbox tiddler=\"$:/core/ui/SideBar/Tools\" tag=\"$:/tags/SideBar\"/> Show Tools tab
\n<$checkbox tiddler=\"$:/core/ui/SideBar/More\" tag=\"$:/tags/SideBar\"/> Show More tab
"},"$:/plugins/kookma/utility/customize-ui/site-option":{"title":"$:/plugins/kookma/utility/customize-ui/site-option","caption":"Site options","list-before":"","tags":"$:/tags/Utility/UI","type":"text/vnd.tiddlywiki","text":"Choose which elements are displayed for site. \n\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/site-title\" tag=\"$:/tags/SideBarSegment\"/> Show site title
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/site-subtitle\" tag=\"$:/tags/SideBarSegment\"/> Show site subtitle
\n<$checkbox tiddler=\"$:/core/ui/SideBarSegments/page-controls\" tag=\"$:/tags/SideBarSegment\"/> Show page controls
"},"$:/plugins/kookma/utility/edittemplates/tiddler-size":{"title":"$:/plugins/kookma/utility/edittemplates/tiddler-size","list-after":"$:/core/ui/EditTemplate/controls","tags":"$:/tags/EditTemplate","type":"text/vnd.tiddlywiki","text":"\\function .fieldnames() text\n\\function .lines() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]count[]else[0]] [enlistcount[]else[0]] +[sum[]]\n\\function .words() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]splitregexp[\\s+]count[]else[0]] [enlistsplitregexp[\\s+]count[]else[0]] +[sum[]]\n\\function .bytes() [.fieldnames[]] :map[<..currentTiddler>getelse[]length[]] [enlistlength[]else[0]] +[sum[]]\n\n<%if [[$:/config/Utility]getindex[tiddler-size-edit-mode]match[show]] %>\n\t<$let popid={{{ [[$:/temp/TiddlyTools/Templates/Size/]addsuffixaddsuffix] }}} >\n\t\t<$button class=\"tc-btn-invisible kk-utility-tiddlersize-btn\" popup=<> tooltip=\"show field sizes\">\n\t\t\t Tiddler text: <<.lines>> lines, <<.words>> words, <<.bytes>> bytes {{$:/core/images/down-arrow}} \n\t\t\n\t\t<$reveal state=<> type=\"popup\" class=\"tc-drop-down kk-utility-tiddlersize-dropdwon\">\n\t\t<$importvariables filter=\"[[$:/plugins/kookma/utility/tiddlerInfo/tiddler-size]]\">\n\t\t\t<> \n\t\t\t\n\t\t\n\t\n<%endif%>"},"$:/config/HighlightPlugin/TypeMappings/text/vnd.tiddlywiki":{"title":"$:/config/HighlightPlugin/TypeMappings/text/vnd.tiddlywiki","type":"text/vnd.tiddlywiki","text":"xml"},"$:/config/ShortcutInfo/customize-ui":{"title":"$:/config/ShortcutInfo/customize-ui","tags":"","type":"text/vnd.tiddlywiki","text":"Utility plugin - Show customize UI dialog"},"$:/config/ShortcutInfo/edit-fields":{"title":"$:/config/ShortcutInfo/edit-fields","tags":"","type":"text/vnd.tiddlywiki","text":"Utility plugin - Edit fields in view mode"},"$:/config/ShortcutInfo/switch-reader-mode":{"title":"$:/config/ShortcutInfo/switch-reader-mode","type":"text/vnd.tiddlywiki","text":"Utility plugin - Toggle the reader mode"},"$:/config/shortcuts/customize-ui":{"title":"$:/config/shortcuts/customize-ui","type":"text/vnd.tiddlywiki","text":"ctrl-shift-Period"},"$:/config/shortcuts/edit-fields":{"title":"$:/config/shortcuts/edit-fields","tags":"","type":"text/vnd.tiddlywiki","text":"ctrl-Slash"},"$:/config/shortcuts/switch-reader-mode":{"title":"$:/config/shortcuts/switch-reader-mode","type":"text/vnd.tiddlywiki","text":"ctrl-shift-Slash"},"$:/config/utility/reader-mode":{"title":"$:/config/utility/reader-mode","description":"list of UI controls to be hidden in reader mode","tags":"","type":"text/vnd.tiddlywiki","text":"\n$:/core/ui/Buttons/clone\n$:/core/ui/Buttons/delete\n$:/core/ui/Buttons/edit\n$:/core/ui/Buttons/info\n$:/core/ui/Buttons/new-here\n$:/core/ui/Buttons/new-journal-here\n\n\n$:/core/ui/Buttons/control-panel\n$:/core/ui/Buttons/import\n$:/core/ui/Buttons/manager\n$:/core/ui/Buttons/new-image\n$:/core/ui/Buttons/new-journal\n$:/core/ui/Buttons/new-tiddler\n$:/core/ui/Buttons/save-wiki\n$:/core/ui/Buttons/advanced-search\n\n\n$:/plugins/kookma/favorites/ui/buttons/add-remove\n$:/plugins/kookma/trashbin/ui/toolbar-button\n\n$:/plugins/kookma/commander/ui/Buttons/open-commander\n$:/plugins/kookma/utility/ui/Buttons/edit-fields"},"$:/language/Buttons/Utility/DraggableHandle/Caption":{"title":"$:/language/Buttons/Utility/DraggableHandle/Caption","tags":"","type":"text/vnd.tiddlywiki","text":"draggable handle"},"$:/language/Buttons/Utility/DraggableHandle/Hint":{"title":"$:/language/Buttons/Utility/DraggableHandle/Hint","tags":"","type":"text/vnd.tiddlywiki","text":"Drag, focus, permalink, and permaview"},"$:/language/Buttons/Utility/EditFields/Caption":{"title":"$:/language/Buttons/Utility/EditFields/Caption","tags":"","type":"text/vnd.tiddlywiki","text":"edit fields"},"$:/language/Buttons/Utility/EditFields/Hint":{"title":"$:/language/Buttons/Utility/EditFields/Hint","tags":"","type":"text/vnd.tiddlywiki","text":"Edit fields in the view mode"},"$:/language/Utility/Notifications/Permlink/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/Permlink/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"Permlink was copied to clipboard!"},"$:/language/Utility/Notifications/Permview/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/Permview/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"Permview was copied to clipboard!"},"$:/language/Utility/Notifications/Source/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/Source/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"Source code is copied to clipboard!"},"$:/language/Utility/Notifications/UID/CopiedToClipboard/Succeeded":{"title":"$:/language/Utility/Notifications/UID/CopiedToClipboard/Succeeded","tags":"","type":"text/vnd.tiddlywiki","text":"UID (unique id) is copied to clipboard!"},"$:/plugins/kookma/utility/history":{"title":"$:/plugins/kookma/utility/history","tags":"","type":"text/vnd.tiddlywiki","text":"* ''3.1.0'' -- 2024.11.21 -- Update to TiddlyWiki 5.3.6 and added custom codeblock\n* ''3.0.1'' -- 2024.09.11 -- built with Gatha-Thirdflow, and revert the view template of version 2.8.1\n* ''3.0.0'' -- 2024.07.18 -- updated to TiddlyWiki 5.3.5, some features moved to Shiraz\n\n--- ''Utility 3'' is not backward compatible. It is based \n\n\n* ''2.8.1'' -- 2024.07.16 -- updated to TiddlyWiki 5.3.4, bug fixes\n* ''2.4.0'' -- 2022.11.10 -- center storyriver when sidebar closed\n* ''2.3.4'' -- 2022.10.24 -- bug fixes\n* ''2.3.0'' -- 2022.08.02 -- new macros, update to Tiddlywiki 5.2.3\n* ''2.1.6'' -- 2022.07.06 -- bug fixes, update to Tiddlywiki 5.2.2\n* ''2.1.6'' -- 2021.05.20 -- bug fixes, new state tiddler for view fields\n* ''2.1.4'' -- 2021.04.09 -- new viewtemplate for show fields used\n* ''2.1.2'' -- 2020.04.03 -- page control button issue fixed\n* ''2.1.1'' -- 2020.03.25 -- page control button improved and minor issues in css fixed\n* ''2.1.0'' -- 2020.03.23 -- new transclusion output for fields macro and disable drag and drop globally\n* ''2.0.0'' -- 2020.03.16 -- new author-reader mode switch\n* ''1.8.0'' -- 2020.03.13 -- admin panel added\n* ''1.7.0'' -- 2020.02.23 -- show tiddler raw content including the macros on demand\n* ''1.0.0'' -- 2019.10.13 -- stable release\n* ''0.5.0'' -- 2019.10.10 -- first beta release"},"$:/plugins/kookma/utility/icon":{"title":"$:/plugins/kookma/utility/icon","text":"","type":"image/svg+xml","tags":""},"$:/plugins/kookma/utility/images/edit-fields.svg":{"title":"$:/plugins/kookma/utility/images/edit-fields.svg","caption":"qrcode-edit","library":"Templarian Material Design","tags":"","type":"text/vnd.tiddlywiki","text":""},"$:/plugins/kookma/utility/images/note.svg":{"title":"$:/plugins/kookma/utility/images/note.svg","tags":"","type":"text/vnd.tiddlywiki","url":"https://www.svgrepo.com/svg/489063/note-01","text":"\\parameters (size:\"22pt\")\n> height=<> class=\"kk-note-button tc-image-button\" fill=\"none\" viewBox=\"0 0 24 24\">"},"$:/plugins/kookma/utility/images/tiddler-created.svg":{"title":"$:/plugins/kookma/utility/images/tiddler-created.svg","tags":"","type":"text/vnd.tiddlywiki","url":"https://www.svgrepo.com/svg/488861/clock","text":"\\parameters (size:\"22pt\")\n> height=<> class=\"kk-clock-button tc-image-button\" fill=\"none\" viewBox=\"0 0 24 24\">"},"$:/plugins/kookma/utility/images/tiddler-updated.svg":{"title":"$:/plugins/kookma/utility/images/tiddler-updated.svg","tags":"","type":"text/vnd.tiddlywiki","url":"https://www.svgrepo.com/svg/489199/update","text":"\\parameters (size:\"22pt\")\n> height=<> class=\"kk-update-button tc-image-button\" fill=\"none\" viewBox=\"0 0 24 24\">"},"$:/plugins/kookma/utility/license":{"title":"$:/plugins/kookma/utility/license","tags":"","type":"text/vnd.tiddlywiki","text":"Distributed under an MIT license.\n\nCopyright (c) 2019-2024 [[Mohammad Rahmani|https://github.com/kookma]]\n\n<<<\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n<<<\n"},"$:/plugins/kookma/utility/procedures/code":{"title":"$:/plugins/kookma/utility/procedures/code","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure code(src:\"\", language:\"xml\", caption:\"\")\n<$let code={{{ [is[tiddler]get[text]] [is[blank]then{!!text}else] }}} >\n\t\t\t<$codeblock language=<> code=<> caption=<> />\n\n\\end code\n\n\n"},"$:/plugins/kookma/utility/procedures/custom-transclusion":{"title":"$:/plugins/kookma/utility/procedures/custom-transclusion","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure source-link(tiddler, caption)\n<$tiddler tiddler={{{[get[title]else]}}} >\n<$link/>\n<$transclude $variable=\"code\" language={{{ [get[type]else[text/vnd.tiddlywiki]] }}} src={{!!text}} caption=<>/>\n\n\\end\n\n\\procedure content(tiddler)\n<$tiddler tiddler={{{[get[title]else]}}} >\n<$link/>\n<$transclude $field=\"text\" $mode=\"block\"/>\n\n\\end\n\n\\procedure description(tiddler)\n<$tiddler tiddler={{{[get[title]else]}}} >\n
\n
<$link/>
\n
<$transclude $field=\"description\"/>
\n
\n\n\\end\n\n\\procedure fields(tiddler)\n<$tiddler tiddler={{{[get[title]else]}}} >\n<$link/>\n<$transclude tiddler=\"$:/core/ui/TiddlerFields\"/>\n\n\\end"},"$:/plugins/kookma/utility/procedures/doc-url":{"title":"$:/plugins/kookma/utility/procedures/doc-url","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure doc-url(url)\n<$let topic={{{ [split[.html]last[]] }}}\n ourl= {{{[addprefix[https://tiddlywiki.com]]}}} >\n> target=_blank><$text text={{{[removeprefix[#]] :and[decodeuricomponent[]] }}} />\n\\end"},"$:/plugins/kookma/utility/procedures/docit":{"title":"$:/plugins/kookma/utility/procedures/docit","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure docit()\n
\n''To Be Documented''. Created on <$view field=created format=date template=\"YYYY.0MM.0DD\"/>\n
\n\\end"},"$:/plugins/kookma/utility/procedures/docsvg":{"title":"$:/plugins/kookma/utility/procedures/docsvg","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure doc-svg(tiddler:\"\", color:\"\")\n<$transclude tiddler=<> />\n\\end"},"$:/plugins/kookma/utility/procedures/kbd":{"title":"$:/plugins/kookma/utility/procedures/kbd","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure kbd(keys, color)\n<>\n\\end"},"$:/plugins/kookma/utility/procedures/linkify":{"title":"$:/plugins/kookma/utility/procedures/linkify","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure linkify(tiddler:\"\", field:\"caption\")\n<$link to=<> >\n\t<$view tiddler=<> field=<> >\n\t\t\t<$view tiddler=<> field=\"title\" />\n\t\n\n\\end"},"$:/plugins/kookma/utility/procedures/local-link":{"title":"$:/plugins/kookma/utility/procedures/local-link","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure local(folder, label:\"\")\naddprefix[file:///]] }}} target=_blank>\n<%if [\n\\end"},"$:/plugins/kookma/utility/procedures/lorem":{"title":"$:/plugins/kookma/utility/procedures/lorem","author":"Jeremy Ruston","description":"creates few paragraphs of dumy text","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure .lorem(np:1, nw:\"\")\n\\procedure baseText()\nLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\\end baseText\n\n<$let numwords={{{ [!match[]] :else[split[ ]count[]] }}} numparagraphs=`[range[1,$(np)$]]`>\n<$list filter=\"[split[ ]limitjoin[ ]trim[,]trim[.]addsuffix[.]]\" variable=paragraph>\n\n<$list filter=<> variable=null> \n<>\n<$list filter=\"[!match[1]]\">

\n\n\n\n\n\\end .lorem"},"$:/plugins/kookma/utility/procedures/password":{"title":"$:/plugins/kookma/utility/procedures/password","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure pass(password, label:\"Pass\")\n\\whitespace notrim\n

\n\t<$text text=<
\n\\end\n"},"$:/plugins/kookma/utility/procedures/simple-navigation":{"title":"$:/plugins/kookma/utility/procedures/simple-navigation","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure simple-navigation(tag:\"demo\", class, close:\"no\")\n<$list filter=\"[all[current]tag]\">\n
\n\t<$list filter=\"[tagbefore]\" variable=\"prevTiddler\">\n\t\t<$button to=<> tooltip=<> class=`tc-btn-invisible $(class)$`>previous\n\t\t\t\t<%if [match[yes]] %><$action-sendmessage $message=\"tm-close-tiddler\" $param=<>/><%endif%>\n\t\t\n\t\n\t<%if [tagafter][tagbefore] :and[count[]compare:integer:gteq[2]] %>|<%endif%>\n\t<$list filter=\"[tagafter]\" variable=\"nextTiddler\">\n\t\t<$button to=<> tooltip=<> class=`tc-btn-invisible $(class)$`>next\n\t\t\t\t<%if [match[yes]] %><$action-sendmessage $message=\"tm-close-tiddler\" $param=<>/><%endif%>\n\t\t\n\t\n
\n\n\\end"},"$:/plugins/kookma/utility/procedures/uid":{"title":"$:/plugins/kookma/utility/procedures/uid","author":"Jeremy Ruston","description":"creates a unique id for permanent state tiddler","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure uid(prefix:\"id\")\n<$let uid={{{ [][] :and[join[-]] }}}>\n\t<$button tooltip=\"create unique id\" class=\"tc-btn-invisible\">\n\t<$action-sendmessage $message=\"tm-copy-to-clipboard\" $param=<> successNotification=\"$:/language/Utility/Notifications/UID/CopiedToClipboard/Succeeded\"/>\n\t\t{{$:/core/images/copy-clipboard}} \n\t \n\t<$text text=<>/>\n\n\\end"},"$:/plugins/kookma/utility/procedures/wikitext-example":{"title":"$:/plugins/kookma/utility/procedures/wikitext-example","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\procedure wikitext-example(src)\n
\n\t<$codeblock code=<>/>\n\t

That renders as:

\n\t<$transclude $variable=\"src\" $mode=\"block\"/>\n
\n\\end\n\n\\procedure wikitext-example-with-html(src)\n
\n\t<$codeblock code=<>/>\n\t

That renders as:

\n\t<$transclude $variable=\"src\" $mode=\"block\"/>\n\t

... and the underlying HTML is:

\n\t<$wikify name=\"html\" text=<> output=\"html\">\n\t\t<$codeblock code=<>/>\n\t\n
\n\\end\n\n"},"$:/plugins/kookma/utility/reader-mode/styles":{"title":"$:/plugins/kookma/utility/reader-mode/styles","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"\n\n\\rules only fnprocdef conditional commentblock macrocallinline\n\n\\procedure hide-edit-controls()\n<$list filter=\"[{$:/config/utility/reader-mode}splitregexp[\\n]!is[blank]!prefix[\n<%if [[$:/config/utility/IsReaderMode]get[text]else[no]match[yes]] %>\n\n<>\n<>\n<%endif%>\n\n"},"$:/plugins/kookma/utility/reader-mode/switch-actions":{"title":"$:/plugins/kookma/utility/reader-mode/switch-actions","key":"((switch-reader-mode))","tags":"$:/tags/KeyboardShortcut","type":"text/vnd.tiddlywiki","text":"\n<$let tv-action-refresh-policy=always>\n<$action-listops $tiddler=\"$:/config/utility/IsReaderMode\" $field=text $subfilter=\"+[toggle[yes],[no]]\"/>\n\n\n\n<$list filter=\"$:/core/ui/SideBar/Tools $:/core/ui/SideBar/More\">\n<$action-listops $tiddler=<> $field=tags $subfilter=\"+[toggle[$:/tags/SideBar]]\"/>\n\n\n\n<$list filter=\"\"\"\n $:/plugins/kookma/trashbin/sidebar-tab \n $:/plugins/kookma/favorites/ui/sidebar/active-tab\n $:/plugins/kookma/narenj/ui/side-editor\n +[is[shadow]]\n \"\"\">\n<$action-listops $tiddler=<> $field=tags $subfilter=\"+[toggle[$:/tags/SideBar]]\"/>\n\n\n\n\n\n<$action-listops $tiddler=\"$:/config/DragAndDrop/Enable\" $field=text $subfilter=\"+[toggle[no]]\"/>\n\n\n<%if [[$:/config/Utility]getindex[immersive-reader]match[yes]] %>\n\t<%if [[$:/plugins/kookma/tweaks]!is[missing]] :filter[lookup:no[$:/config/Plugins/Disabled/]match[no]] %>\n\t\t<%if [[$:/config/utility/IsReaderMode]get[text]match[yes]] %>\n\t\t\t<$action-setfield $tiddler=\"$:/state/sidebar\" $field=\"text\" $value=\"no\"/>\n\t\t\t<$action-setfield $tiddler=\"$:/config/Tweaks\" $index=\"centered-storyriver\" $value=\"yes\"/>\n\t\t\t<$action-setfield $tiddler=\"$:/config/Tweaks\" $index=\"right-topbar-pagecontrols\" $value=\"yes\"/>\n\t\t<%else%>\n\t\t\t<$action-setfield $tiddler=\"$:/state/sidebar\" $field=\"text\" $value=\"yes\"/>\n\t\t\t<$action-setfield $tiddler=\"$:/config/Tweaks\" $index=\"centered-storyriver\" $value=\"no\"/>\n\t\t\t<$action-setfield $tiddler=\"$:/config/Tweaks\" $index=\"right-topbar-pagecontrols\" $value=\"no\"/>\n\t\t<%endif%>\n\t<%endif%>\n<%endif%>\n"},"$:/plugins/kookma/utility/readme":{"title":"$:/plugins/kookma/utility/readme","tags":"","type":"text/vnd.tiddlywiki","text":"; Utility plugin\nThe utility plugin objective is to provide set of tools for authors. These tools includes simple transclusions, show raw contents of tiddlers, reader mode, wikitext macros, show fields in view mode, linkify, code, docit, and much more!\n\n; Code and demo\nFor learning plugin features, syntax, tutorial and examples see the plugin demo and code pages\n\n* Demo: https://kookma.github.io/TW-Utility/\n* Code: https://github.com/kookma/TW-Utility\n"},"$:/plugins/kookma/utility/snippets/code-procedure":{"title":"$:/plugins/kookma/utility/snippets/code-procedure","caption":"Code","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/doc-url":{"title":"$:/plugins/kookma/utility/snippets/doc-url","caption":"Docurl","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/linkify":{"title":"$:/plugins/kookma/utility/snippets/linkify","caption":"Linkify","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/local-link":{"title":"$:/plugins/kookma/utility/snippets/local-link","caption":"","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/local-proc":{"title":"$:/plugins/kookma/utility/snippets/local-proc","caption":"Local","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/pass-proc":{"title":"$:/plugins/kookma/utility/snippets/pass-proc","caption":"Password","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/snippets/wikitext-example-transclude":{"title":"$:/plugins/kookma/utility/snippets/wikitext-example-transclude","caption":"Wikitext-example transclude","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<$transclude $variable=\"wikitext-example\" \nsrc=\"\"\"\n\"\"\"/>"},"$:/plugins/kookma/utility/snippets/wikitext-example":{"title":"$:/plugins/kookma/utility/snippets/wikitext-example","caption":"Wikitext-example","tags":"$:/tags/TextEditor/Snippet","type":"text/vnd.tiddlywiki","text":"<>"},"$:/plugins/kookma/utility/styles/code":{"title":"$:/plugins/kookma/utility/styles/code","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":"div.kk-utility-code {\n\tposition: relative;\n}\ndiv.kk-utility-code > button.tc-btn-invisible {\n\tposition: absolute;\n\tright: 0;\n\tpadding: 0.1em 0.2em;\n\topacity: 0.3;\n}\ndiv.kk-utility-code > button.tc-btn-invisible:hover {\n\ttransition: opacity 150ms ease-in-out;\n\topacity: 1;\n}\ndiv.kk-utility-code > button.tc-btn-invisible svg {\n\twidth: 1.2em;\n\theight: 1.2em;\n}\n/* code caption*/\n.kk-utility-code-caption{\n\tbackground: <>;\n\tborder: solid 1px <>;\n\tborder-bottom: unset;\n\tpadding: 0.3em 0.5em;\n\tborder-radius: 3px 3px 0 0;\n}\n.kk-utility-code-caption:empty{\n\tdisplay:none;\n}\n.kk-utility-code-caption + div.kk-utility-code > pre {\n\tborder-radius: 0 0 3px 3px;\n\tmargin-top: 0em;}\n/*\nConsider changing this rule: It hides the copy-button when\nin a tiddler the code-body field is set to yes \nThis may causes unwanted results. \t \n*/\ndiv.tc-tiddler-body > div > div > button.tc-btn-invisible{\n\tdisplay:none;\n}"},"$:/plugins/kookma/utility/styles/controls-on-shadows":{"title":"$:/plugins/kookma/utility/styles/controls-on-shadows","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":" \\rules only commentblock conditional\n\n<%if [[$:/config/Utility]getindex[toolbar-controls-on-shadows]else[hide]match[hide]] %>\n\n.tc-tiddler-shadow .tc-tiddler-controls\n button:not(.tc-btn-\\%24\\%3A\\%2Fcore\\%2Fui\\%2FButtons\\%2Fclose)\n{\n\tdisplay:none;\n}\n\n<%endif%>"},"$:/plugins/kookma/utility/styles/doc-svg":{"title":"$:/plugins/kookma/utility/styles/doc-svg","text":".kk-doc svg{\nwidth: 1.2em;\nheight: 1.2em;\nvertical-align: middle;}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/password":{"title":"$:/plugins/kookma/utility/styles/password","text":".kk-utility-credential-inner{\n\topacity: 0;\n\ttransition: opacity ease-in 2s;\n}\n.kk-utility-credential-outer:hover .kk-utility-credential-inner{\n\topacity: 1;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/reveal-code":{"title":"$:/plugins/kookma/utility/styles/reveal-code","text":"details.kk-utility-details summary {\n\topacity:0.2;\n\tfont-size:0.9em;\n\tdisplay: inline;\n\tcursor: pointer;\n\tpadding: 10px;\n\ttransition: 0.3s;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n}\ndetails.kk-utility-details summary:hover,\ndetails.kk-utility-details[open] > summary {\n\topacity:1;\n}\n\n/* hide in preview pane */\n.tc-tiddler-preview-preview .kk-utility-details{\n\tdisplay: none; \n}\n\n\n/* used in $:/plugins/kookma/utility/ui/ControlPanel/Settings */\n.kk-utility-label{\n\twidth:26em;\n\tdisplay: block;\n\tmargin-top:5px;\n}\n\n.kk-ut-txt{\n\tmin-width:50%;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/subtitle":{"title":"$:/plugins/kookma/utility/styles/subtitle","text":".tc-subtitle svg { /* icons for created/updated on subtitle */\n\tfont-size:1.3em;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/tiddler-size":{"title":"$:/plugins/kookma/utility/styles/tiddler-size","text":"/* tiddler size table */\n\n.kk-utility-tiddlersize{\n\tmargin:0.5em;\n}\n.kk-utility-tiddlersize tr,\n.kk-utility-tiddlersize th,\n.kk-utility-tiddlersize td {\n\tpadding:0 0.25em;\n\tmargin:0; \n\ttext-align:right;\n}\n\n/* tiddler size button and dropdown in Edit mode */\n.kk-utility-tiddlersize-btn{\n\tfloat:left;\n\tmargin-top:-1.25em;\n}\n.kk-utility-tiddlersize-dropdwon{\n\tpadding:0;\n\tfont-size:90%;\n\tmin-width:unset;\n}","tags":"$:/tags/Stylesheet","type":"text/css"},"$:/plugins/kookma/utility/styles/tw-version":{"title":"$:/plugins/kookma/utility/styles/tw-version","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":" \\rules only commentblock conditional macrocallinline\n<%if [[$:/config/Utility]getindex[tw-version]match[show]] %>\n\n/* TW-version added to site title */\n.tc-site-title:before {\n content:\"TW <>\";\n position:absolute;\n margin-top:-1.9em;\n color:<>;\n font-size:13px;\n}\n\n<%endif%>"},"$:/plugins/kookma/utility/styles/wikitext-macro":{"title":"$:/plugins/kookma/utility/styles/wikitext-macro","tags":"$:/tags/Stylesheet","type":"text/vnd.tiddlywiki","text":".doc-example {\n\tmargin: 1em 0;\n\tpadding: 0.8em 0;\n}\n.doc-example:hover {\n\tbackground-color: <>;\n}\n.doc-example ul {\n\tmargin-bottom: 0;\n\tpadding-bottom: 0;\n\tmargin-top: 0.2em;\n}\n\n.doc-example input[type=search] { \n width: 95%;\n}\n.doc-example pre:first-child {\n\tmargin-top: 0;\n}"},"$:/plugins/kookma/utility/tiddlerInfo/tiddler-size":{"title":"$:/plugins/kookma/utility/tiddlerInfo/tiddler-size","caption":"Tiddler size","tags":"$:/tags/TiddlerInfo","type":"text/vnd.tiddlywiki","text":"\\function .fieldnames() [fields[]sort[]] -[[draft.title]] -[[draft.of]]\n\\function .lines() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]count[]else[0]] [enlistcount[]else[0]] +[sum[]]\n\\function .words() [.fieldnames[]] :map[<..currentTiddler>getsplitregexp[\\n]splitregexp[\\s+]count[]else[0]] [enlistsplitregexp[\\s+]count[]else[0]] +[sum[]]\n\\function .bytes() [.fieldnames[]] :map[<..currentTiddler>getelse[]length[]] [enlistlength[]else[0]] +[sum[]]\n\n\\procedure tiddlerSize()\n \n \n <$list filter=\"[.fieldnames[]]\" variable=\"fieldname\">\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
fieldnamelineswordsbytes
<><$text text={{{ [getsplitregexp[\\n]count[]else[0]] }}}/><$text text={{{ [getsplitregexp[\\n]splitregexp[\\s+]count[]else[0]] }}}/><$text text={{{ [getlength[]else[0]] }}}/>
field names<$text text={{{ [.fieldnames[]count[]else[0]] }}}/><$text text={{{ [.fieldnames[]splitregexp[\\s+]count[]else[0]] }}}/><$text text={{{ [.fieldnames[]length[]else[0]] +[sum[]] }}}/>
totals<<.lines>><<.words>><<.bytes>>
\n\\end tiddlerSize\n\n<>"},"$:/plugins/kookma/utility/ui/Buttons/draggable-link":{"title":"$:/plugins/kookma/utility/ui/Buttons/draggable-link","caption":"{{$:/core/images/link}} {{$:/language/Buttons/Utility/DraggableHandle/Caption}}","description":"{{$:/language/Buttons/Utility/DraggableHandle/Hint}}","list-after":"$:/core/ui/Buttons/more-tiddler-actions","tags":"$:/tags/ViewToolbar","type":"text/vnd.tiddlywiki","text":"\\procedure btn-actions()\n\n<$list filter=\"[match[normal]]\" variable=ignore>\n<$action-navigate $to=<> $scroll=\"yes\"/>\n\n\n\n<$list filter=\"[match[alt]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-close-other-tiddlers\" param=<> />\n\n\n\n<$list filter=\"[match[ctrl]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-permalink\" param=<> successNotification=\"$:/language/Utility/Notifications/Permlink/CopiedToClipboard/Succeeded\"/>\n\n\n\n<$list filter=\"[match[shift]]\" variable=ignore>\n<$action-sendmessage $message=\"tm-permaview\" param=<> successNotification=\"$:/language/Utility/Notifications/Permview/CopiedToClipboard/Succeeded\"/>\n\n\n\\end\n\n\\whitespace trim\n<$button tooltip={{$:/language/Buttons/Utility/DraggableHandle/Hint}} aria-label={{$:/language/Buttons/Utility/DraggableHandle/Caption}} class=<> dragTiddler=<> actions=<> >\n<$list filter=\"[match[yes]]\">\n{{$:/core/images/link}}\n\n<$list filter=\"[match[yes]]\">\n\n<$text text={{$:/language/Buttons/Utility/DraggableHandle/Caption}}/>\n\n\n"},"$:/plugins/kookma/utility/ui/Buttons/edit-fields":{"title":"$:/plugins/kookma/utility/ui/Buttons/edit-fields","caption":"{{$:/plugins/kookma/utility/images/edit-fields.svg}} {{$:/language/Buttons/Utility/EditFields/Caption}}","description":"{{$:/language/Buttons/Utility/EditFields/Hint}}","list-before":"$:/plugins/kookma/shiraz/ui/Buttons/SwitchPalette","tags":"$:/tags/PageControls","type":"text/vnd.tiddlywiki","text":"\\whitespace trim\n\n\\procedure stateTid() $:/state/utility/edit-fields\n\n\\procedure control-panel-button(status, class)\n\\whitespace trim\n\t<$button set=<> setTo=<> tooltip={{$:/language/Buttons/Utility/EditFields/Hint}} aria-label={{$:/language/Buttons/Utility/EditFields/Caption}} class=`$(tv-config-toolbar-class)$ $(class)$` >\n\t\t\t<$list filter=\"[match[yes]]\">\n\t\t\t\t\t{{$:/plugins/kookma/utility/images/edit-fields.svg}} \n\t\t\t\n\t\t\t<$list filter=\"[match[yes]]\">\n\t\t\t\t\t<$text text={{$:/language/Buttons/Utility/EditFields/Caption}}/>\n\t\t\t\n\t\n\\end\t\n\n\n<%if [get[text]match[show]] %>\n\t<>\n<%else%>\n\t<>\n<%endif%>"},"$:/plugins/kookma/utility/ui/ControlPanel/Settings":{"title":"$:/plugins/kookma/utility/ui/ControlPanel/Settings","caption":"Utility","tags":"$:/tags/ControlPanel/SettingsTab $:/tags/MoreSideBar","type":"text/vnd.tiddlywiki","text":"\\procedure help-exclude-reveal-filter()\nExclude Filter: Use this filter to hide the\nsource toggle button on specific tiddlers.\n\\end\n\n\\procedure help-extra-reveal-filter()\nUse this filter to show the source toggle button with\nrevealed source code on specific tiddlers.\n\\end\n\n\nThese settings let you customise the behaviour of Utility plugin.\n\n---\n\n;Show Utility setting in more sidebar\n:<$checkbox tiddler=\"$:/plugins/kookma/utility/ui/ControlPanel/Settings\" tag=\"$:/tags/MoreSideBar\"> Show setting in more sidebar\n\n\n;Options\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"tw-version\" checked=\"show\" unchecked=\"hide\"> Show TiddlyWiki version badge\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"extended-subtitle\" checked=\"show\" unchecked=\"hide\"> Show extended tiddler subtitle\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"tiddler-size-edit-mode\" checked=\"show\" unchecked=\"hide\"> Show tiddler size information in edit mode\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"import-select\" checked=\"show\" unchecked=\"hide\"> Show select tiddlers menu on ''~$:/Import''\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"toolbar-controls-on-shadows\" checked=\"show\" unchecked=\"hide\"> Show toolbar controls on shadow tiddlers\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"immersive-reader\" checked=\"yes\"> Enter immersive reader mode\n\n\n;Source Toggle Button\n:<$checkbox tiddler=\"$:/config/Utility\" index=\"source-toggle-button\" checked=\"show\" unchecked=\"hide\"> Show source button on the tiddlers\n\n\n:
\n<%if [[$:/config/Utility]getindex[source-toggle-button]match[show]] %>\n\n<$edit-text tiddler=\"$:/config/Utility/SourceToggleButton/Exclude-filter\" field=\"text\" tag=input default=\"\" placeholder=\"enter a filter e.g. [has:field[myField]] \" class=\"kk-ut-txt\"/>
\n\n\n<$edit-text tiddler=\"$:/config/Utility/SourceToggleButton/Extra-filter\" field=\"text\" tag=input default=\"\" placeholder=\"enter a filter e.g. [tag[myTag]] \" class=\"kk-ut-txt\"/>\n<%endif%>\n
\n\n;Customize UI elements\n: [[Show/hide selected UI elements|$:/plugins/kookma/utility/customize-ui/modal]]\n\n"},"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/created":{"title":"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/created","list-before":"$:/core/ui/ViewTemplate/subtitle/modified","tags":"$:/tags/ViewTemplate/Subtitle","type":"text/vnd.tiddlywiki","text":"<%if [[$:/config/Utility]getindex[extended-subtitle]match[show]] %>\n<%if [{!!modifier}!is[blank]] %>
<%endif%>\n<%if [{!!modified}!is[blank]] %>\n<> Created <$view field=\"created\" format=\"date\" template={{$:/language/Tiddler/DateFormat}}/>
\n<> Updated \n<%endif%>\n<%endif%>"},"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/description":{"title":"$:/plugins/kookma/utility/ui/ViewTemplate/subtitle/description","tags":"$:/tags/ViewTemplate/Subtitle","type":"text/vnd.tiddlywiki","text":"<%if [[$:/config/Utility]getindex[extended-subtitle]match[show]] :then[!tag[Task]] %>\n<%if [{!!description}!is[blank]] %>\n
<> {{!!description}} \n<%endif%>\n<%endif%>"},"$:/plugins/kookma/utility/viewtemplates/edit-fields":{"title":"$:/plugins/kookma/utility/viewtemplates/edit-fields","description":"Show a toggle button for view fields","list-before":"$:/core/ui/ViewTemplate/body","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"<$reveal type=match stateTitle=\"$:/state/utility/edit-fields\" stateField=text default=\"hide\" text=show tag=div class=\"kk-ut-viewfields\">\n\n<$vars newFieldNameTiddler=<>\nnewFieldValueTiddler=<> \nsearchListState=<> \nstoreTitle=<> \n>\n<$transclude tiddler=\"$:/core/ui/EditTemplate/fields\"/>\n\n\n\n\n"},"$:/plugins/kookma/utility/viewtemplates/import-select":{"title":"$:/plugins/kookma/utility/viewtemplates/import-select","list-before":"$:/core/ui/ViewTemplate/body","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"\\procedure select-all-actions()\n<$list filter=\"[all[current]plugintiddlers[]sort[title]]\" variable=\"payloadTiddler\">\n<$action-setfield $field={{{ [addprefix[selection-]] }}} $value={{$:/state/import/select-all}}/>\n\n<$action-setfield $field=\"selection-system-tiddlers\" $value={{$:/state/import/select-all}} />\n<$action-setfield $field=\"selection-shadow-tiddlers\" $value={{$:/state/import/select-all}} />\n<$action-setfield $field=\"selection-ordinary-tiddlers\" $value={{$:/state/import/select-all}} />\n<$action-setfield $field=\"selection-existing-tiddlers\" $value={{$:/state/import/select-all}} />\n\\end\n\n\n\\procedure select-all-state(param)\n<$list filter=\"[match[unchecked]]\" variable=null>\n\t<$action-setfield $tiddler=\"$:/state/import/select-all\" $field=text $value=<>/>\n\n\\end\n\n\n\\procedure cb-action(filter, param)\n<$list filter=\"[{$:/Import}jsonindexes[tiddlers]] :filter[subfilter]\" variable=\"tid\">\n <$action-setfield $tiddler=\"$:/Import\" $field={{{ [[selection-]addsuffix] }}} $value=<>/>\n\n<>\n\\end\n\n\n\\procedure check-boxes()\n<$checkbox tiddler=\"$:/state/import/select-all\" field=\"text\" checked=\"checked\" unchecked=\"unchecked\" default=\"checked\" \n actions=<>\n >All\n\n\n<$checkbox field=\"selection-system-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >System\n\n\n<$checkbox field=\"selection-shadow-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >Shadow\n\n\n<$checkbox field=\"selection-ordinary-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >Ordinary\n\n\n<$checkbox field=\"selection-existing-tiddlers\" default=\"checked\" checked=\"checked\" unchecked=\"unchecked\"\n checkactions= \"\"\"<>\"\"\"\n uncheckactions= \"\"\"<>\"\"\"\n >Existing\n\n\n\\end\n\n\\procedure rename-existing-action()\n<$list filter=\"[{$:/Import}jsonindexes[tiddlers]is[tiddler]]\" variable=\"tid\">\n <$action-setfield $tiddler=\"$:/Import\" $field={{{ [[rename-]addsuffix] }}} $value={{{ [] :and[subfilter{!!rename-inputbox}] }}}/>\n\n\\end\n\n\\procedure cancel-rename-existing-action()\n<$list filter=\"[{$:/Import}jsonindexes[tiddlers]is[tiddler]]\" variable=\"tid\">\n <$action-setfield $tiddler=\"$:/Import\" $field={{{ [[rename-]addsuffix] }}} />\n\n\\end\n\n\\procedure rename-existing()\n
\nRename existing\n<$keyboard key={{$:/config/shortcuts/input-cancel}} actions=\"\"\"<$action-deletefield $field=\"rename-inputbox\"/>\"\"\" >\n<$edit-text field=\"rename-inputbox\" tag=input size=\"45\" placeholder=\"enter a subfilter e.g. [addprefix[New-]]\"/>\n\n<$button actions=<> >apply\n<$button actions=<> >cancel\n
\n\\end rename-existing\n\n<%if [[$:/config/Utility]getindex[import-select]match[show]] [all[current]match[$:/Import]status[pending]] :and[count[]match[2]] %>\n<>\n<>\n<%endif%>"},"$:/plugins/kookma/utility/viewtemplates/source-toggle-button":{"title":"$:/plugins/kookma/utility/viewtemplates/source-toggle-button","list-after":"$:/core/ui/ViewTemplate/body","tags":"$:/tags/ViewTemplate","type":"text/vnd.tiddlywiki","text":"\n\\function system-excluded-filter()\n[tag[$:/tags/PageTemplate]] [tag[$:/tags/EditTemplate]] [tag[$:/tags/ViewTemplate]] [tag[$:/tags/KeyboardShortcut]] [tag[$:/tags/ImportPreview]] [tag[$:/tags/EditPreview]] [tag[$:/tags/EditorToolbar]] [tag[$:/EditorTools]] [tag[$:/tags/Actions]] [tag[$:/tags/ToolbarButtonStyle]]\n\n[prefix[$:/boot/]] [prefix[$:/core/macros]] [prefix[$:/core/save/]] [prefix[$:/core/templates/]] [prefix[$:/config/]] [prefix[$:/core/config/]] [prefix[$:/info/]] [prefix[$:/language/]] [prefix[$:/languages/]] [prefix[$:/snippets/]] [prefix[$:/info/]] [prefix[$:/state/]] [prefix[$:/status/]] [prefix[$:/temp/]]\n\n[field:plugin-type[import]]\n[field:code-body[yes]]\n[has[plugin-draft]]\n[has[plugin-type]]\n\n[type[text/css]] [type[application/x-tiddler-dictionary]]\n[type[application/json]] [type[application/javascript]]\n\n\\end system-excluded-filter\n\n\\define show-tiddler-source(open:\"\")\n
\nSource\n<$transclude $variable=\"code\" language={{{ [{!!title}get[type]else[text/vnd.tiddlywiki]] }}} src={{!!text}} />\n
\n\\end\n\n<$reveal type=nomatch stateTitle=<>text=hide tag=div retain=yes animate=yes>\n<%if [[$:/config/Utility]getindex[source-toggle-button]match[show]] %>\n<%if [all[current]has[title]] -[subfilter{$:/config/Utility/SourceToggleButton/Exclude-filter}] -[function[system-excluded-filter]] %>\n\t<%if [tag[show-content]] [tag[show-source]] [subfilter{$:/config/Utility/SourceToggleButton/Extra-filter}] :and[match] %>\n\t\t<>\n\t<%else%>\n\t\t<>\n\t<%endif%>\n<%endif%>\n<%endif%>\n"},"$:/plugins/kookma/utility/widgets/codeblock":{"title":"$:/plugins/kookma/utility/widgets/codeblock","tags":"$:/tags/Global","type":"text/vnd.tiddlywiki","text":"\\widget $codeblock(code, language, caption)\n
<>
\n
\n<%if [!is[blank]] %>\n<$button message=\"tm-copy-to-clipboard\" param=<> tooltip=\"Copy\" class=\"tc-btn-invisible\">\n{{$:/core/images/copy-clipboard}}\n\n<%endif%>\n<$genesis $type=\"$codeblock\" $remappable=\"no\" code=<> language=<>/>\n
\n\\end"}}} \ No newline at end of file diff --git a/tiddlers/$__plugins_kookma_utility.json.meta b/tiddlers/$__plugins_kookma_utility.json.meta index 9eaaf99..9a99b9e 100644 --- a/tiddlers/$__plugins_kookma_utility.json.meta +++ b/tiddlers/$__plugins_kookma_utility.json.meta @@ -4,7 +4,7 @@ dependents: description: Small tools for authors and developers list: readme license history name: Utility -packaged-by: Gatha on 24th November 2024, 21:57:21 +packaged-by: Gatha on 28th December 2024, 19:24:31 parent-plugin: plugin-priority: plugin-type: plugin @@ -12,4 +12,4 @@ source: https://github.com/kookma/TW-Utility stability: STABILITY_2_STABLE title: $:/plugins/kookma/utility type: application/json -version: 3.1.3 \ No newline at end of file +version: 3.2.1 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_itonnote.json b/tiddlers/$__plugins_linonetwo_itonnote.json index 926b4ea..43df03d 100644 --- a/tiddlers/$__plugins_linonetwo_itonnote.json +++ b/tiddlers/$__plugins_linonetwo_itonnote.json @@ -1 +1,18 @@ -{"author":"LinOnetwo","core-version":">=5.3.0","dependents":"$:/plugins/tiddlywiki/browser-sniff $:/plugins/kookma/toc","description":"Heavy lifting for new users to set up a powerful and opinionated knowledge management system.","list":"readme ControlPanel tree","name":"ItonNote","plugin-type":"plugin","stability":"STABILITY_2_STABLE","text":"{\"tiddlers\":{\"$:/config/DefaultSidebarTab\":{\"title\":\"$:/config/DefaultSidebarTab\",\"creator\":\"LinOnetwo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu\"},\"$:/config/DownloadSaver/AutoSave\":{\"title\":\"$:/config/DownloadSaver/AutoSave\",\"created\":\"20190601103555586\",\"creator\":\"Lin Onetwo\",\"modified\":\"20200410072837906\",\"modifier\":\"Lin Onetwo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/MissingLinks\":{\"title\":\"$:/config/MissingLinks\",\"created\":\"20190419034301891\",\"modified\":\"20200409033736457\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Navigation/UpdateAddressBar\":{\"title\":\"$:/config/Navigation/UpdateAddressBar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"permaview\"},\"$:/config/Navigation/UpdateHistory\":{\"title\":\"$:/config/Navigation/UpdateHistory\",\"created\":\"20190419034422400\",\"modified\":\"20200409033736411\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Navigation/openLinkFromInsideRiver\":{\"title\":\"$:/config/Navigation/openLinkFromInsideRiver\",\"created\":\"20200409033736445\",\"modified\":\"20200409033736445\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"above\"},\"$:/config/Navigation/openLinkFromOutsideRiver\":{\"title\":\"$:/config/Navigation/openLinkFromOutsideRiver\",\"created\":\"20200409033736433\",\"modified\":\"20200409033736433\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"top\"},\"$:/config/Plugins/Disabled/$:/plugins/sycom/g-analytics\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/sycom/g-analytics\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki\",\"created\":\"20200411033813183\",\"modified\":\"20200411033814242\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror\",\"created\":\"20200530042942722\",\"modified\":\"20200530043337009\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/highlight\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/highlight\",\"created\":\"20190419154112345\",\"modified\":\"20200409033736342\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/RelinkOnRename\":{\"title\":\"$:/config/RelinkOnRename\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Search/MinLength\":{\"title\":\"$:/config/Search/MinLength\",\"created\":\"20190419153747812\",\"modified\":\"20200409033736319\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"1\"},\"$:/config/Toolbar/ButtonClass\":{\"title\":\"$:/config/Toolbar/ButtonClass\",\"created\":\"20190419034516378\",\"modified\":\"20200409033736308\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"tc-btn-invisible\"},\"$:/config/WikiParserRules/Inline/wikilink\":{\"title\":\"$:/config/WikiParserRules/Inline/wikilink\",\"created\":\"20190419034308697\",\"modified\":\"20200409033736296\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"disable\"},\"$:/config/codemirror/autoCloseTags\":{\"title\":\"$:/config/codemirror/autoCloseTags\",\"text\":\"true\",\"type\":\"bool\",\"created\":\"20211017131109932\",\"creator\":\"林一二\",\"modified\":\"20211017131109937\",\"modifier\":\"林一二\"},\"$:/config/codemirror/indentWithTabs\":{\"title\":\"$:/config/codemirror/indentWithTabs\",\"text\":\"false\",\"type\":\"bool\",\"created\":\"20210622180509486\",\"creator\":\"TiddlyGit User\",\"modified\":\"20210622180509499\",\"modifier\":\"TiddlyGit User\"},\"$:/config/codemirror/keyMap\":{\"title\":\"$:/config/codemirror/keyMap\",\"text\":\"sublime\\n\",\"type\":\"string\",\"created\":\"20211017131058335\",\"creator\":\"林一二\",\"modified\":\"20211017131058343\",\"modifier\":\"林一二\"},\"$:/config/codemirror/styleActiveLine\":{\"title\":\"$:/config/codemirror/styleActiveLine\",\"text\":\"true\",\"type\":\"bool\",\"created\":\"20230523081008543\",\"creator\":\"WhiteFall\",\"modified\":\"20230523081008543\",\"modifier\":\"WhiteFall\"},\"$:/config/markdown/renderWikiTextPragma\":{\"title\":\"$:/config/markdown/renderWikiTextPragma\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\rules only html image macrocallinline syslink transcludeinline wikilink prettylink filteredtranscludeblock macrocallblock transcludeblock \"},\"$:/config/section-editor/config-editor-type\":{\"title\":\"$:/config/section-editor/config-editor-type\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"main-editor\"},\"$:/config/section-editor/config-visibility-toolbar\":{\"title\":\"$:/config/section-editor/config-visibility-toolbar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/section-editor/hlevel\":{\"title\":\"$:/config/section-editor/hlevel\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"5\"},\"$:/config/section-editor/reader-mode\":{\"title\":\"$:/config/section-editor/reader-mode\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts/cancel-edit-tiddler\":{\"title\":\"$:/config/shortcuts/cancel-edit-tiddler\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"shift-Escape\"},\"$:/language\":{\"title\":\"$:/language\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/languages/zh-Hans\"},\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\":{\"title\":\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"fluid-fixed\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/editor-height\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/editor-height\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4\",\"created\":\"20231010115437154\",\"modified\":\"20231010115437154\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/linkify\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/linkify\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-block\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-block\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-line\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-line\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview-type\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview-type\",\"created\":\"20231010115427906\",\"modified\":\"20231010115427906\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview\",\"created\":\"20231010115425849\",\"modified\":\"20231010115429153\",\"text\":\"show\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/rotate-left\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/rotate-left\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/size\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/size\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/subscript\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/subscript\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/transcludify\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/transcludify\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/stobot/sticky/EditorToolbarButton\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/stobot/sticky/EditorToolbarButton\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/tiddlywiki/markdown/EditorToolbar/mono-line\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/tiddlywiki/markdown/EditorToolbar/mono-line\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/TextEditor/EditorHeight/Mode\":{\"title\":\"$:/config/TextEditor/EditorHeight/Mode\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"auto\"},\"$:/core/ui/EditorToolbar/linkify\":{\"title\":\"$:/core/ui/EditorToolbar/linkify\",\"caption\":\"{{$:/language/Buttons/Linkify/Caption}}\",\"condition\":\"[!has[type]] [type[text/vnd.tiddlywiki]]\",\"description\":\"{{$:/language/Buttons/Linkify/Hint}}\",\"icon\":\"$:/core/images/linkify\",\"shortcuts\":\"((linkify))\",\"tags\":\"$:/tags/EditorToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$action-sendmessage\\n\\t$message=\\\"tm-edit-text-operation\\\"\\n\\t$param=\\\"wrap-selection\\\"\\n\\tprefix=\\\"[[\\\"\\n\\tsuffix=\\\"]]\\\"\\n/>\\n\"},\"$:/core/ui/EditorToolbar/transcludify\":{\"title\":\"$:/core/ui/EditorToolbar/transcludify\",\"caption\":\"{{$:/language/Buttons/Transcludify/Caption}}\",\"condition\":\"[!has[type]] [type[text/vnd.tiddlywiki]]\",\"description\":\"{{$:/language/Buttons/Transcludify/Hint}}\",\"icon\":\"$:/core/images/transcludify\",\"shortcuts\":\"((transcludify))\",\"tags\":\"$:/tags/EditorToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$action-sendmessage\\n\\t$message=\\\"tm-edit-text-operation\\\"\\n\\t$param=\\\"wrap-selection\\\"\\n\\tprefix=\\\"{{\\\"\\n\\tsuffix=\\\"}}\\\"\\n/>\\n\"},\"$:/config/DefaultMoreSidebarTab\":{\"title\":\"$:/config/DefaultMoreSidebarTab\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/core/ui/MoreSideBar/Orphans\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/CommandPalette\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/CommandPalette\",\"created\":\"20231010115031451\",\"modified\":\"20240327124515344\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\",\"created\":\"20200602124339340\",\"modified\":\"20200602124339360\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel\",\"created\":\"20200410174523174\",\"modified\":\"20200410175230294\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption\",\"created\":\"20200410174620924\",\"modified\":\"20200410174809069\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/layout\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/layout\",\"created\":\"20240327124514607\",\"modified\":\"20240327124514607\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/buttons/pagecontrol\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/buttons/pagecontrol\",\"created\":\"20200410174517268\",\"modified\":\"20240327124436927\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/ui/Buttons/open-commander\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/ui/Buttons/open-commander\",\"created\":\"20241126103115722\",\"creator\":\"林一二\",\"modified\":\"20241126103115722\",\"modifier\":\"林一二\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/shiraz/ui/Buttons/switch-palette\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/shiraz/ui/Buttons/switch-palette\",\"created\":\"20241126095403411\",\"creator\":\"林一二\",\"modified\":\"20241126095403411\",\"modifier\":\"林一二\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/solution/buttons/pagecontrol\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/solution/buttons/pagecontrol\",\"created\":\"20231010115501994\",\"modified\":\"20240327124500077\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/utility/ui/Buttons/edit-fields\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/utility/ui/Buttons/edit-fields\",\"created\":\"20241126103109223\",\"creator\":\"林一二\",\"modified\":\"20241126103109223\",\"modifier\":\"林一二\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/GoToEventsCalendarLayoutButton\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/GoToEventsCalendarLayoutButton\",\"created\":\"20240327124452936\",\"modified\":\"20240327124452936\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler\",\"created\":\"20200410064657446\",\"modified\":\"20200410064708140\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here\",\"created\":\"20200409065701335\",\"modified\":\"20200409065702475\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here\",\"created\":\"20200410064650269\",\"modified\":\"20231010115006123\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/bimlas/locator/viewtemplate/open-in-sidebar\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/bimlas/locator/viewtemplate/open-in-sidebar\",\"created\":\"20231010115004755\",\"modified\":\"20231010115004755\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton\",\"created\":\"20231010115002411\",\"modified\":\"20231010115002411\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/zx-script/ViewToolbarButton\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/zx-script/ViewToolbarButton\",\"created\":\"20231010115001562\",\"modified\":\"20231010115001562\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/qrcode/ViewToolbarButton\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/qrcode/ViewToolbarButton\",\"created\":\"20231010114959435\",\"modified\":\"20231010114959435\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button\",\"created\":\"20200411035036487\",\"modified\":\"20200411035037540\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/palette/default-dark\":{\"title\":\"$:/config/palette/default-dark\",\"caption\":\"{{$:/language/ControlPanel/Palette/Config/DefaultDark/Caption}}\",\"text\":\"$:/palettes/Nord\"},\"$:/config/palette/default-light\":{\"title\":\"$:/config/palette/default-light\",\"caption\":\"{{$:/language/ControlPanel/Palette/Config/DefaultLight/Caption}}\",\"text\":\"$:/palettes/Notion\"},\"$:/palette\":{\"title\":\"$:/palette\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/palettes/Notion\"},\"$:/tags/PageControls\":{\"title\":\"$:/tags/PageControls\",\"list\":\"$:/plugins/linonetwo/omni-search-bar/ui/Buttons/search $:/core/ui/Buttons/home $:/core/ui/Buttons/close-all $:/core/ui/Buttons/fold-all $:/core/ui/Buttons/unfold-all $:/core/ui/Buttons/permaview $:/core/ui/Buttons/more-page-actions $:/core/ui/Buttons/new-tiddler $:/plugins/tiddlywiki/markdown/new-markdown-button $:/plugins/kookma/solution/buttons/pagecontrol $:/core/ui/Buttons/new-journal $:/core/ui/Buttons/new-image $:/core/ui/Buttons/import $:/core/ui/Buttons/export-page $:/core/ui/Buttons/control-panel $:/core/ui/Buttons/advanced-search $:/plugins/kookma/commander/buttons/pagecontrol $:/core/ui/Buttons/manager $:/core/ui/Buttons/tag-manager $:/core/ui/Buttons/language $:/core/ui/Buttons/palette $:/core/ui/Buttons/theme $:/core/ui/Buttons/storyview $:/core/ui/Buttons/encryption $:/core/ui/Buttons/timestamp $:/core/ui/Buttons/full-screen $:/core/ui/Buttons/print $:/core/ui/Buttons/refresh $:/plugins/kookma/utility/pagecontrol/view-fields-button $:/core/ui/Buttons/save-wiki $:/plugins/linonetwo/source-control-management/PageControlButton\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/theme\":{\"title\":\"$:/theme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/themes/linonetwo/itonnote\"},\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\":{\"title\":\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"960px\"},\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\":{\"title\":\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"380px\"},\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\":{\"title\":\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"770px\"},\"$:/themes/tiddlywiki/vanilla/options/stickytitles\":{\"title\":\"$:/themes/tiddlywiki/vanilla/options/stickytitles\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\":{\"title\":\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\",\"created\":\"20190420032819437\",\"modified\":\"20200409033737050\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"'Fira Code',\\\"SFMono-Regular\\\",Consolas,\\\"Liberation Mono\\\",Menlo,Courier,monospace\"},\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\":{\"title\":\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\",\"created\":\"20190421072924643\",\"modified\":\"20200409033737038\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"'Fira Code',\\\"SFMono-Regular\\\",Consolas,\\\"Liberation Mono\\\",Menlo,Courier,monospace\"},\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\":{\"title\":\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\",\"created\":\"20190420034215366\",\"modified\":\"20200409033737026\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"'Fira Code',-apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Helvetica, Arial, sans-serif, \\\"Apple Color Emoji\\\", \\\"Segoe UI Emoji\\\", \\\"Segoe UI Symbol\\\"\"},\"$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage\":{\"title\":\"$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"_/dynamic/light-dark/detection\":{\"title\":\"_/dynamic/light-dark/detection\",\"caption\":\"Dynamically detect browser or OS setting\",\"code-body\":\"yes\",\"tags\":\"$:/tags/DarkLightChangeActions\",\"text\":\"<$reveal type=\\\"match\\\" stateTitle=\\\"$:/config/palette/enable-light-dark-detection\\\" text=\\\"yes\\\">\\n\\t<$let default={{{ [match[yes]then[$:/config/palette/default-dark]else[$:/config/palette/default-light]] }}}>\\n\\t\\t<$action-setfield $tiddler=\\\"$:/palette\\\" text={{{ [get[text]] }}}/>\\n\\t\\n\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/contents\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/contents\",\"created\":\"20200415162108079\",\"modified\":\"20200602041547212\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/hamburger\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/hamburger\",\"created\":\"20200415162126215\",\"modified\":\"20200415162128295\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/pagecontrols\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/pagecontrols\",\"created\":\"20200415162131716\",\"modified\":\"20200415162330718\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/sidebar\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/sidebar\",\"created\":\"20200415162109418\",\"modified\":\"20200415162109442\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/topleftbar\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/topleftbar\",\"created\":\"20200415162101755\",\"modified\":\"20200602041539750\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/toprightbar\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/toprightbar\",\"created\":\"20200415162118824\",\"modified\":\"20200415163710486\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/shortcuts-mac/bold\":{\"title\":\"$:/config/shortcuts-mac/bold\",\"created\":\"20200602011151844\",\"modified\":\"20200602011151860\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/italic\":{\"title\":\"$:/config/shortcuts-mac/italic\",\"created\":\"20200602011428084\",\"modified\":\"20200602011428114\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/new-image\":{\"title\":\"$:/config/shortcuts-mac/new-image\",\"created\":\"20200602011526855\",\"modified\":\"20200602011526866\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/new-journal\":{\"title\":\"$:/config/shortcuts-mac/new-journal\",\"created\":\"20200602011519033\",\"modified\":\"20200602011519055\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/toggle-sidebar\":{\"title\":\"$:/config/shortcuts-mac/toggle-sidebar\",\"created\":\"20200602011322158\",\"modified\":\"20200602011322171\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"cmd-B\"},\"$:/config/shortcuts-not-mac/bold\":{\"title\":\"$:/config/shortcuts-not-mac/bold\",\"created\":\"20200602011156768\",\"modified\":\"20200602011156779\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-not-mac/new-image\":{\"title\":\"$:/config/shortcuts-not-mac/new-image\",\"created\":\"20200602011529909\",\"modified\":\"20200602011529924\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-not-mac/new-journal\":{\"title\":\"$:/config/shortcuts-not-mac/new-journal\",\"created\":\"20200602011521325\",\"modified\":\"20200602011521342\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts/bold\":{\"title\":\"$:/config/shortcuts/bold\",\"created\":\"20200602011200184\",\"modified\":\"20200602011200195\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"ctrl-B\"},\"$:/config/shortcuts/toggle-sidebar\":{\"title\":\"$:/config/shortcuts/toggle-sidebar\",\"created\":\"20200602011309990\",\"modified\":\"20200602011310003\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/linonetwo/itonnote/ControlPanel\":{\"title\":\"$:/plugins/linonetwo/itonnote/ControlPanel\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"caption\":\"<>\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n\\n\\\\define single-text-tag-editor(typeName)\\n\\\\whitespace trim\\n
\\n <$let\\n currentTiddler=\\\"$:/plugins/linonetwo/itonnote/Configs/$typeName$\\\"\\n palette={{$:/palette}}\\n tempTitle=<>\\n tabIndex={{$:/config/EditTabIndex}}\\n cancelPopups=\\\"yes\\\"\\n >\\n <$macrocall $name=\\\"tag\\\" tag={{$:/plugins/linonetwo/itonnote/Configs/$typeName$}} />\\n\\n <$edit-text tiddler=<> tag=\\\"input\\\" field=\\\"text\\\" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} />\\n\\n <$button>\\n <$action-setfield tiddler=<> text={{{ [get[text]] }}} />\\n <$action-deletetiddler $tiddler=<> />\\n\\n {{$:/language/EditTemplate/Tags/Add/Button}}\\n \\n \\n \\n
\\n\\\\end\\n\\n<>\\n\\n---\\n\\n!! <>\\n\\n!!! <>\\n\\n;<>\\n:<$checkbox tiddler=\\\"$:/plugins/linonetwo/itonnote/Configs/PageControlBelowPage\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\"> <>\\n\\n!!! <>\\n\\n<>\\n\\n<>\\n\"},\"$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle\":{\"title\":\"$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle\",\"text\":\"Index\"},\"$:/plugins/linonetwo/itonnote/Configs/PageControlBelowPage\":{\"title\":\"$:/plugins/linonetwo/itonnote/Configs/PageControlBelowPage\",\"text\":\"yes\"},\"$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub\":{\"title\":\"$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub\",\"created\":\"20200412034056887\",\"tags\":\"$:/tags/Macro\",\"caption\":\"点击在新标签页打开Github大图\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define view-big-image(source)\\n\\n \\n\\n\\\\end\"},\"$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe\":{\"title\":\"$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe\",\"tags\":\"$:/tags/Macro 自改TW\",\"caption\":\"带有「编辑此块」的引用transclusion宏\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define reuse-pane(content)\\n\\n
\\n $content$\\n
\\n\\\\end\\n\\n\\\\define reuse-tiddler(title)\\n<$macrocall $name=\\\"reuse-pane\\\" content=\\\"\\\"\\\"\\n查看引文:[[$title$]]\\n\\\"\\\"\\\" />\\n\\n{{$title$}}\\n\\n\\\\end\"},\"$:/config/OfficialPluginLibrary\":{\"title\":\"$:/config/OfficialPluginLibrary\",\"tags\":\"$:/tags/PluginLibrary\",\"caption\":\"{{$:/language/OfficialPluginLibrary}}\",\"enabled\":\"no\",\"text\":\"\\\\procedure load-plugin-library-button()\\n\\\\whitespace trim\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[search[zh]]\\\">\\n\\n为了更好的体验,我们建议您\\n<$button>\\n打开 CPL 安装插件\\n<$action-sendmessage $message=\\\"tm-close-tiddler\\\" />\\n<$action-sendmessage $message=\\\"tm-navigate\\\" navigateTo=\\\"$:/plugins/Gk0Wk/CPL-Repo/panel\\\" />\\n\\n\\n\\n\\n<$list filter=\\\"[!search[zh]]\\\">\\n\\nFor a better experience, we recommend you\\n<$button>\\nOpen CPL to install plugins\\n<$action-sendmessage $message=\\\"tm-close-tiddler\\\" />\\n<$action-sendmessage $message=\\\"tm-navigate\\\" navigateTo=\\\"$:/plugins/Gk0Wk/CPL-Repo/panel\\\" />\\n\\n\\n\\n\\\\end\\n\\n<>\\n\"},\"$:/core/ui/ControlPanel/Settings\":{\"title\":\"$:/core/ui/ControlPanel/Settings\",\"tags\":\"$:/tags/ControlPanel\",\"caption\":\"{{$:/language/ControlPanel/Settings/Caption}}\",\"text\":\"
\\n<$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
\\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<>\\n\\n<$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\\\">\\n\\n
\\n\\n!! <$link><$transclude field=\\\"caption\\\"/>\\n\\n<$transclude/>\\n\\n
\\n\\n\\n\"},\"$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu\":{\"title\":\"$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu\",\"tags\":\"$:/tags/SideBar $:/tags/MenuBar\",\"caption\":\"<>\",\"description\":\"<>\",\"is-dropdown\":\"yes\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import [all[tiddlers+shadows]tag[$:/tags/Macro/Toc]]\\n\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n<$scrollable fallthrough=\\\"none\\\" class=\\\"tc-popup-keep tc-menubar-dropdown-sidebar\\\">\\n\\n\\t<$let toc-open-icon=\\\"$:/core/images/fold-button\\\" toc-closed-icon=\\\"$:/core/images/folder\\\">\\n\\t\\t<$transclude $variable=\\\"toc-ui\\\" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />\\n\\t\\n\\n <>\\n\\n\\n\"},\"$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub\":{\"title\":\"$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub\",\"caption\":\"图片:点击在新标签页打开大图\",\"tags\":\"$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub $:/tags/TextEditor/Snippet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<>\"},\"$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler\":{\"title\":\"$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler\",\"caption\":\"添加一个使用当前标题的 toc\",\"tags\":\"[[$:/plugins/linonetwo/itonnote/Help/Index]] $:/tags/TextEditor/Snippet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\n<$let toc-open-icon=\\\"$:/core/images/fold-button\\\" toc-closed-icon=\\\"$:/core/images/folder\\\">\\n <$transclude $variable=\\\"toc-ui\\\" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />\\n\"},\"$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe\":{\"title\":\"$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe\",\"caption\":\"带「编辑此块」的引用Transclusion\",\"tags\":\"$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe $:/tags/TextEditor/Snippet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<>\"},\"$:/plugins/linonetwo/itonnote/UI/PageControlBelowPage\":{\"title\":\"$:/plugins/linonetwo/itonnote/UI/PageControlBelowPage\",\"tags\":\"$:/tags/AboveStory\",\"text\":\"\\n<$list filter=\\\"[[$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage]get[text]else[no]match[yes]]\\\">\\n \\n\"},\"$:/plugins/linonetwo/itonnote/UI/style.css\":{\"title\":\"$:/plugins/linonetwo/itonnote/UI/style.css\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$importvariables filter=\\\"[[$:/themes/tiddlywiki/vanilla/base]]\\\">\\n\\n.page-control-below-page {\\n display: none;\\n\\n padding: 10px;\\n background-color: white;\\n -webkit-backdrop-filter: blur(10px);\\n\\n position: fixed;\\n bottom: 0;\\n left: 0;\\n z-index: 200;\\n width: 100%;\\n}\\n.page-control-below-page .tc-page-controls {\\n margin: 0;\\n\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n justify-content: space-evenly;\\n}\\n\\n@media (max-width: <>) {\\n .page-control-below-page {\\n display: block;\\n }\\n}\\n\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu\",\"text\":\"The folder structure [[auto-generated by tag system|$:/plugins/linonetwo/itonnote/language/en-GB/VirtualFolder]] is shown in the \\\"FolderMenu\\\" tab in the sidebar.\\n\\nThe first directory tree is displayed according to the `currently located entry` and is dynamic; the second directory tree starts from the `Index(root folder)` entry and is static. Because Echart's dynamic display of contextual diagrams is not as nice and distracting as this tree form. So for now, the context is displayed in the form of a directory tree.\\n\\nIf you want to modify the root folder, please open the [[Settings|$:/plugins/linonetwo/itonnote/ControlPanel]].\\n\\n* tagged with A, which is equivalent to storing the file in folder A and using the contents of A as the Readme of the folder\\n* Use the \\\"Create a new tiddler with this tag name\\\" button in any Tiddler to create a file with the current Tiddler as the folder\\n* Click the {{$:/core/images/folder}} button (to make it {{$:/core/images/fold-button}}) to expand the folder\\n* Click directly on the name of a folder to see the Readme of that folder\\n* Click {{$:/core/images/options-button}} button to open more buttons, you can see {{$:/core/images/edit-button}} button, click it to open edit mode.\\n** In edit mode, hover over the folder and the {{$:/core/images/down-arrow}} button will appear on the far right, click on it to see a series of new action buttons, which can be used to create new entries in the folder.\\n** You can also drag the folder to sort it.\\n\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n! <>\\n\\n<>\\n\\n!! Features\\n\\nSome preset content for this plugin.\\n\\n!!! snippets (text snippets)\\n\\nIn edit mode, there is a stamp button that lists a series of text snippets that can be added with one click, thus eliminating the need to memorize these complex text snippets.\\n\\nThis plugin comes with a number of text snippets pre-built, see the introduction of the corresponding Macros for details, or the introduction of the corresponding plugin:\\n\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe]]\\n\\n!!! macros\\n\\n!!!! TransclusionWithEditMe\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe]] Usage:\\n\\n使用普通的 [[Transclusion|https://tiddlywiki.com/#Transclusion]] 时,你没法得知源文件在哪里,如果想要修改内容,还得打开编辑模式、复制被引用的 Tiddler 的标题,然后搜索打开编辑,比较麻烦。\\n\\n使用此宏进行引用就很方便了:\\n\\n```tid\\n<>\\n```\\n\\n会直接在引用的区块旁边显示一个「查看引文」的小浮窗,带有指向源文件的链接,直接点开编辑即可。\\n\\n!!!! OpenImageInGithub\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub]] Usage:\\n\\nIf you have `webcatalog-tiddlywiki-menu-app.jpg` in your Wiki, you normally can just `{{webcatalog-tiddlywiki-menu-app.jpg}}` to place it in your tiddler, but you can use this macro to make it clickable, and open large image in the new browser tab:\\n\\n```tid\\n<>\\n```\\n\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Name\",\"text\":\"TidGi Preset\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Description\",\"text\":\"A series of trivial content for TidGi Preset, usually from the plugin's description file and forum discussions, but most people are too lazy to read the description file, so here is a direct help to configure it.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/PluginConfigs\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/PluginConfigs\",\"text\":\"plugin settings\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Description\",\"text\":\"With these settings, you can customize the behavior of the \\\"TidGi Preset\\\" plugin.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Appearance\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Appearance\",\"text\":\"Appearance\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Caption\",\"text\":\"Show page control buttons at the bottom of the mobile page.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Description\",\"text\":\"On mobile devices, the sidebar is collapsed, so adding page controls at the bottom would be a convenient shortcut.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Caption\",\"text\":\"Folder Menu\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Description\",\"text\":\"Other tiddlers are added to this tag, which is equivalent to this tag being the root folder into which other tiddlers are placed. And it is displayed in the \\\"File Menu\\\" tab on the sidebar.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu/Help\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu/Help\",\"text\":\"[[Help|$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu]]\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/VirtualFolder\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/VirtualFolder\",\"text\":\"!!! Tag\\n\\nThe Tag structure can be thought of as a folder directory structure with soft links to form a graphical structure, since Tag relationships are inherently free, and two notes can be tagged to each other and parented to each other in the folder structure.\\n\\nUsing toc macro, you can create a \\\"file directory\\\" tab in the sidebar, which shows the folder structure generated by the tag. The details are written in [[Official Table-of-Contents Macros doc|https://tiddlywiki.com/#Table-of-Contents%20Macros:%5B%5BTable-of-Contents%20Macros%5D%5D%20%5B%5BTable-of-Contents%20Macros%20(Examples)%5D%5D]], and the plugin should have it pre-populated in [[$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu]], which can be used immediately or modified to override it.\\n\\nThen you can set the \\\"File Directory\\\" tab to be displayed by default in `$:/ControlPanel` -> \\\"Settings\\\" -> \\\"Default Sidebar Tab\\\", so that you can use TiddlyWiki as a folder system. And the plugin should already be pre-configured for this.\\n\\n!!! Slash\\n\\nTiddlyWiki comes with a way to create folders by using slashes in the header.\\n\\nThe various folders that come with the system can be seen via the sidebar under \\\"More\\\" -> \\\"Explore\\\".\\n\\nIf you use the NodeJS version of TiddlyWiki, these tiddlers will also be placed in the corresponding folders on the real file system.\\n\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu\",\"text\":\"侧边栏的「目录结构」标签页里展示了[[通过标签系统自动生成|$:/plugins/linonetwo/itonnote/language/zh-Hans/VirtualFolder]]的文件夹。\\n\\n第一个目录树根据`当前所在的条目`展示,是动态的;第二个目录树从`Index(根文件夹)`条目出发,是静态的。因Echart动态显示上下文的图没有这种树的形式好看且干扰注意力。所以暂用目录树的形式显示上下文。\\n\\n若想修改根文件夹,请打开[[设置|$:/plugins/linonetwo/itonnote/ControlPanel]]。\\n\\n* 打了 A 标签,即相当于将文件存储在文件夹 A 中,并以 A 的内容作为文件夹的说明文本\\n* 在任意条目中使用「创建一个标签为此条目名称的新条目」按钮,可以创建以当前条目为文件夹的文件\\n* 点击 {{$:/core/images/folder}} 按钮(使它变成 {{$:/core/images/fold-button}})可以展开文件夹\\n* 直接点击文件夹的名字可以查看这个文件夹的说明文本\\n* 点击 {{$:/core/images/options-button}} 按钮可以打开更多按钮,可以看到 {{$:/core/images/edit-button}} 按钮,点击后可以打开编辑模式。\\n** 编辑模式下,鼠标悬浮在文件夹上会在最右侧出现 {{$:/core/images/down-arrow}} 按钮,点击可以看到一系列新建操作按钮,可以用于在文件夹内新建条目\\n** 此时也可以拖动文件夹排序\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n! <>\\n\\n<>\\n\\n!! 功能\\n\\n本插件的一些预置内容。\\n\\n!!! snippets(文本片段)\\n\\n在编辑模式下,有一个图章按钮,点击后会列出一系列文本片段,可以一键添加预制内容,因而无需用脑记住这些复杂的文本片段了。\\n\\n本插件预置了一些文本片段,详见相应的 Macros 的介绍,或相应的插件的介绍:\\n\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe]]\\n\\n!!! 宏\\n\\n!!!! TransclusionWithEditMe\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe]] Usage:\\n\\n使用普通的 [[Transclusion|https://tiddlywiki.com/#Transclusion]] 时,你没法得知源文件在哪里,如果想要修改内容,还得打开编辑模式、复制被引用的 Tiddler 的标题,然后搜索打开编辑,比较麻烦。\\n\\n使用此宏进行引用就很方便了:\\n\\n```tid\\n<>\\n```\\n\\n会直接在引用的区块旁边显示一个「查看引文」的小浮窗,带有指向源文件的链接,直接点开编辑即可。\\n\\n!!!! OpenImageInGithub\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub]] Usage:\\n\\n如果您的 Wiki 中有 \\\"webcatalog-tiddlywiki-menu-app.jpg\\\",您通常可以直接使用\\\"{{webcatalog-tiddlywiki-menu-app.jpg}}\\\"将其放到条目中,但您可以使用此宏使其可点击,并在新的浏览器标签页中打开大图:\\nIf you have `webcatalog-tiddlywiki-menu-app.jpg` in your Wiki, you normally can just `{{webcatalog-tiddlywiki-menu-app.jpg}}` to place it in your tiddler, but you can use this macro to make it clickable, and open large image in the new browser tab:\\n\\n```tid\\n<>\\n```\\n\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Name\",\"text\":\"太记预置\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Description\",\"text\":\"为太记预配置了一系列琐碎的内容,一般来自各插件的自述文件和论坛讨论,但大多数人懒得看自述文件,故在此直接帮忙配置好了。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/PluginConfigs\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/PluginConfigs\",\"text\":\"插件设置\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Description\",\"text\":\"通过这些设置,您可以自定义「太记预置」插件的行为。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Appearance\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Appearance\",\"text\":\"外观\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Caption\",\"text\":\"在手机页面下方显示页面控制按钮\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Description\",\"text\":\"在移动设备上,侧边栏是折叠的,因此在底部添加页面控制将是一个方便的快捷方式。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Caption\",\"text\":\"文件目录\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Description\",\"text\":\"其它笔记加上这个标签,相当于这个标签是根目录文件夹,其它笔记放入了这个文件夹中。并显示在侧边栏的「文件目录」标签页里。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu/Help\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu/Help\",\"text\":\"[[使用帮助|$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu]]\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/VirtualFolder\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/VirtualFolder\",\"text\":\"!!! 标签\\n\\n标签结构可以看作是一种文件夹目录结构,通过软链接形成图论结构,因为标签关系本身是自由的,两个笔记可以相互加对方为标签,并在文件夹结构中互为父级,形成任意自由的结构。\\n\\n使用官方的 toc 宏,你可以在侧边栏创建一个「文件目录」标签,显示标签生成的文件夹结构。详细内容写在 [[官方文档的 Table-of-Contents 一文里|https://tw-cn-doc.cpolar.top/#Table-of-Contents%20Macros:%5B%5BTable-of-Contents%20Macros%5D%5D%20%5B%5BTable-of-Contents%20Macros%20(Examples)%5D%5D]] 中,插件应在 [[$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu]] 中预置了,可以立即使用,你也可以修改覆盖。\\n\\n然后,您可以在 `$:/ControlPanel` ->「Settings」 ->「Default Sidebar Tab」中设置默认显示「文件目录」选项卡,这样您就可以将 TiddlyWiki 用作文件夹系统。插件应该已经为此进行了预配置。\\n\\n!!! 斜杠\\n\\nTiddlyWiki 提供了一种在标题里使用斜杠创建文件夹的方法。\\n\\n你可以通过侧边栏的「更多」->「探索」查看系统自带的各种文件夹。\\n\\n如果你使用的是 NodeJS 版本的 TiddlyWiki,这些 tiddlers 也会被放置在真实文件系统的相应文件夹中。\\n\\n!!! 使用哪种?\\n\\n这是个见仁见智的问题,请[[参考中文教程学习|https://tw-cn.netlify.app/#%E4%BD%BF%E7%94%A8%E6%A0%87%E7%AD%BE%E5%BD%93%E6%96%87%E4%BB%B6%E5%A4%B9:%E4%BD%BF%E7%94%A8%E6%A0%87%E7%AD%BE%E5%BD%93%E6%96%87%E4%BB%B6%E5%A4%B9%20%E6%AC%A2%E8%BF%8E%E6%9D%A5%E5%88%B0%E5%A4%AA%E5%BE%AE%EF%BC%81]],也可以加群讨论!\\n\"},\"$:/core/macros/lingo\":{\"title\":\"$:/core/macros/lingo\",\"tags\":\"$:/tags/Global\",\"text\":\"\\n\\n\\\\procedure lingo-base()\\n$:/language/\\n\\\\end lingo-base\\n\\n\\\\procedure lingo(title,override-lingo-base)\\n\\n\\n\\\\whitespace trim\\n<$parameters $parseMode=\\\"parseMode\\\">\\n\\t\\n\\t<$let active-lingo-base={{{ [!match[]else] }}}>\\n\\t\\t\\n\\t\\t<$transclude $tiddler={{{ [addsuffix] }}} $mode=<<parseMode>>>\\n\\t\\t\\t<!-- If that didn't work, try the new <lingo-base><langcode>/<title> format -->\\n\\t\\t\\t<$let language-code={{{ [[$:/language]get[text]get[name]else[en-GB]] }}}>\\n <$transclude $tiddler={{{ [<active-lingo-base>addsuffix<language-code>addsuffix[/]addsuffix<title>] }}} $mode=<<parseMode>>/>\\n\\t\\t\\t</$let>\\n\\t\\t</$transclude>\\n\\t</$let>\\n</$parameters>\\n\\\\end lingo\"},\"$:/plugins/linonetwo/itonnote/readme\":{\"title\":\"$:/plugins/linonetwo/itonnote/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/plugins/linonetwo/itonnote/tree\":{\"title\":\"$:/plugins/linonetwo/itonnote/tree\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/itonnote/\\\">>\"},\"$:/plugins/linonetwo/itonnote/Startup/closeSidebarOnMobile.js\":{\"module-type\":\"startup\",\"title\":\"$:/plugins/linonetwo/itonnote/Startup/closeSidebarOnMobile.js\",\"type\":\"application/javascript\",\"creator\":\"NicolasPetton\",\"Modern.TiddlyDev#Origin\":\"Startup/closeSidebarOnMobile.ts\",\"text\":\"\\\"use strict\\\";exports.name=\\\"close-sidebar-on-mobile\\\",exports.platforms=[\\\"browser\\\"],exports.after=[\\\"rootwidget\\\"];var isOnMobile=()=>\\\"yes\\\"===$tw.wiki.getTiddlerText(\\\"$:/info/browser/is/mobile\\\")||\\\"yes\\\"===$tw.wiki.getTiddlerText(\\\"$:/info/tidgi-mobile\\\"),closeSidebar=()=>{$tw.wiki.addTiddler({title:\\\"$:/state/sidebar\\\",text:\\\"no\\\"}),$tw.wiki.addTiddler({title:\\\"$:/state/notebook-sidebar\\\",text:\\\"no\\\"})},closeSidebarOnMobile=e=>(isOnMobile()&&closeSidebar(),e),setup=()=>{$tw.hooks.addHook(\\\"th-opening-default-tiddlers-list\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-importing-file\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-navigating\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-new-tiddler\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-open-command-palette\\\",closeSidebarOnMobile),closeSidebarOnMobile()};exports.startup=setup;\"}}}","title":"$:/plugins/linonetwo/itonnote","type":"application/json","version":"3.4.1","Modern.TiddlyDev#SHA256-Hashed":"13fb0fe3c65b545a04b75995f42a0b5747e8eff1c7106f1ef2ff1168ed045428"} \ No newline at end of file +[ + { + "author": "LinOnetwo", + "core-version": ">=5.3.0", + "dependents": "$:/plugins/tiddlywiki/browser-sniff $:/plugins/kookma/toc", + "description": "Heavy lifting for new users to set up a powerful and opinionated knowledge management system.", + "list": "readme ControlPanel tree", + "name": "ItonNote", + "plugin-priority": "100", + "plugin-type": "plugin", + "stability": "STABILITY_2_STABLE", + "text": "{\"tiddlers\":{\"$:/config/DefaultSidebarTab\":{\"title\":\"$:/config/DefaultSidebarTab\",\"creator\":\"LinOnetwo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu\"},\"$:/config/DownloadSaver/AutoSave\":{\"title\":\"$:/config/DownloadSaver/AutoSave\",\"created\":\"20190601103555586\",\"creator\":\"Lin Onetwo\",\"modified\":\"20200410072837906\",\"modifier\":\"Lin Onetwo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/MissingLinks\":{\"title\":\"$:/config/MissingLinks\",\"created\":\"20190419034301891\",\"modified\":\"20200409033736457\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Navigation/UpdateAddressBar\":{\"title\":\"$:/config/Navigation/UpdateAddressBar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"permaview\"},\"$:/config/Navigation/UpdateHistory\":{\"title\":\"$:/config/Navigation/UpdateHistory\",\"created\":\"20190419034422400\",\"modified\":\"20200409033736411\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Navigation/openLinkFromInsideRiver\":{\"title\":\"$:/config/Navigation/openLinkFromInsideRiver\",\"created\":\"20200409033736445\",\"modified\":\"20200409033736445\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"above\"},\"$:/config/Navigation/openLinkFromOutsideRiver\":{\"title\":\"$:/config/Navigation/openLinkFromOutsideRiver\",\"created\":\"20200409033736433\",\"modified\":\"20200409033736433\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"top\"},\"$:/config/Plugins/Disabled/$:/plugins/sycom/g-analytics\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/sycom/g-analytics\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror-mode-x-tiddlywiki\",\"created\":\"20200411033813183\",\"modified\":\"20200411033814242\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/codemirror\",\"created\":\"20200530042942722\",\"modified\":\"20200530043337009\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/highlight\":{\"title\":\"$:/config/Plugins/Disabled/$:/plugins/tiddlywiki/highlight\",\"created\":\"20190419154112345\",\"modified\":\"20200409033736342\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"no\"},\"$:/config/RelinkOnRename\":{\"title\":\"$:/config/RelinkOnRename\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/Search/MinLength\":{\"title\":\"$:/config/Search/MinLength\",\"created\":\"20190419153747812\",\"modified\":\"20200409033736319\",\"tags\":\"\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"1\"},\"$:/config/Toolbar/ButtonClass\":{\"title\":\"$:/config/Toolbar/ButtonClass\",\"created\":\"20190419034516378\",\"modified\":\"20200409033736308\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"tc-btn-invisible\"},\"$:/config/WikiParserRules/Inline/wikilink\":{\"title\":\"$:/config/WikiParserRules/Inline/wikilink\",\"created\":\"20190419034308697\",\"modified\":\"20200409033736296\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"disable\"},\"$:/config/codemirror/autoCloseTags\":{\"title\":\"$:/config/codemirror/autoCloseTags\",\"text\":\"true\",\"type\":\"bool\",\"created\":\"20211017131109932\",\"creator\":\"林一二\",\"modified\":\"20211017131109937\",\"modifier\":\"林一二\"},\"$:/config/codemirror/indentWithTabs\":{\"title\":\"$:/config/codemirror/indentWithTabs\",\"text\":\"false\",\"type\":\"bool\",\"created\":\"20210622180509486\",\"creator\":\"TiddlyGit User\",\"modified\":\"20210622180509499\",\"modifier\":\"TiddlyGit User\"},\"$:/config/codemirror/keyMap\":{\"title\":\"$:/config/codemirror/keyMap\",\"text\":\"sublime\\n\",\"type\":\"string\",\"created\":\"20211017131058335\",\"creator\":\"林一二\",\"modified\":\"20211017131058343\",\"modifier\":\"林一二\"},\"$:/config/codemirror/styleActiveLine\":{\"title\":\"$:/config/codemirror/styleActiveLine\",\"text\":\"true\",\"type\":\"bool\",\"created\":\"20230523081008543\",\"creator\":\"WhiteFall\",\"modified\":\"20230523081008543\",\"modifier\":\"WhiteFall\"},\"$:/config/markdown/renderWikiTextPragma\":{\"title\":\"$:/config/markdown/renderWikiTextPragma\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\rules only html image macrocallinline syslink transcludeinline wikilink prettylink filteredtranscludeblock macrocallblock transcludeblock \"},\"$:/config/section-editor/config-editor-type\":{\"title\":\"$:/config/section-editor/config-editor-type\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"main-editor\"},\"$:/config/section-editor/config-visibility-toolbar\":{\"title\":\"$:/config/section-editor/config-visibility-toolbar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/config/section-editor/hlevel\":{\"title\":\"$:/config/section-editor/hlevel\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"5\"},\"$:/config/section-editor/reader-mode\":{\"title\":\"$:/config/section-editor/reader-mode\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts/cancel-edit-tiddler\":{\"title\":\"$:/config/shortcuts/cancel-edit-tiddler\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"shift-Escape\"},\"$:/language\":{\"title\":\"$:/language\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/languages/zh-Hans\"},\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\":{\"title\":\"$:/themes/tiddlywiki/vanilla/options/sidebarlayout\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"fluid-fixed\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/editor-height\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/editor-height\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/heading-4\",\"created\":\"20231010115437154\",\"modified\":\"20231010115437154\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/linkify\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/linkify\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-block\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-block\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-line\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/mono-line\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview-type\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview-type\",\"created\":\"20231010115427906\",\"modified\":\"20231010115427906\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/preview\",\"created\":\"20231010115425849\",\"modified\":\"20231010115429153\",\"text\":\"show\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/rotate-left\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/rotate-left\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/size\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/size\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/subscript\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/subscript\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/transcludify\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/core/ui/EditorToolbar/transcludify\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/stobot/sticky/EditorToolbarButton\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/stobot/sticky/EditorToolbarButton\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/tiddlywiki/markdown/EditorToolbar/mono-line\":{\"title\":\"$:/config/EditorToolbarButtons/Visibility/$:/plugins/tiddlywiki/markdown/EditorToolbar/mono-line\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/TextEditor/EditorHeight/Mode\":{\"title\":\"$:/config/TextEditor/EditorHeight/Mode\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"auto\"},\"$:/core/ui/EditorToolbar/linkify\":{\"title\":\"$:/core/ui/EditorToolbar/linkify\",\"caption\":\"{{$:/language/Buttons/Linkify/Caption}}\",\"condition\":\"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]\",\"description\":\"{{$:/language/Buttons/Linkify/Hint}}\",\"icon\":\"$:/core/images/linkify\",\"shortcuts\":\"((linkify))\",\"tags\":\"$:/tags/EditorToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$action-sendmessage\\n\\t$message=\\\"tm-edit-text-operation\\\"\\n\\t$param=\\\"wrap-selection\\\"\\n\\tprefix=\\\"[[\\\"\\n\\tsuffix=\\\"]]\\\"\\n/>\\n\"},\"$:/core/ui/EditorToolbar/transcludify\":{\"title\":\"$:/core/ui/EditorToolbar/transcludify\",\"caption\":\"{{$:/language/Buttons/Transcludify/Caption}}\",\"condition\":\"[<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]\",\"description\":\"{{$:/language/Buttons/Transcludify/Hint}}\",\"icon\":\"$:/core/images/transcludify\",\"shortcuts\":\"((transcludify))\",\"tags\":\"$:/tags/EditorToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$action-sendmessage\\n\\t$message=\\\"tm-edit-text-operation\\\"\\n\\t$param=\\\"wrap-selection\\\"\\n\\tprefix=\\\"{{\\\"\\n\\tsuffix=\\\"}}\\\"\\n/>\\n\"},\"$:/config/DefaultMoreSidebarTab\":{\"title\":\"$:/config/DefaultMoreSidebarTab\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/core/ui/MoreSideBar/Orphans\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/CommandPalette\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/CommandPalette\",\"created\":\"20231010115031451\",\"modified\":\"20240327124515344\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/advanced-search\",\"created\":\"20200602124339340\",\"modified\":\"20200602124339360\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/control-panel\",\"created\":\"20200410174523174\",\"modified\":\"20200410175230294\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/encryption\",\"created\":\"20200410174620924\",\"modified\":\"20200410174809069\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/home\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/layout\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/layout\",\"created\":\"20240327124514607\",\"modified\":\"20240327124514607\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/more-page-actions\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/buttons/pagecontrol\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/buttons/pagecontrol\",\"created\":\"20200410174517268\",\"modified\":\"20240327124436927\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/ui/Buttons/open-commander\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/commander/ui/Buttons/open-commander\",\"created\":\"20241126103115722\",\"creator\":\"林一二\",\"modified\":\"20241126103115722\",\"modifier\":\"林一二\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/shiraz/ui/Buttons/switch-palette\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/shiraz/ui/Buttons/switch-palette\",\"created\":\"20241126095403411\",\"creator\":\"林一二\",\"modified\":\"20241126095403411\",\"modifier\":\"林一二\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/solution/buttons/pagecontrol\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/solution/buttons/pagecontrol\",\"created\":\"20231010115501994\",\"modified\":\"20240327124500077\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/utility/ui/Buttons/edit-fields\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/kookma/utility/ui/Buttons/edit-fields\",\"created\":\"20241126103109223\",\"creator\":\"林一二\",\"modified\":\"20241126103109223\",\"modifier\":\"林一二\",\"text\":\"hide\"},\"$:/config/PageControlButtons/Visibility/$:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/GoToEventsCalendarLayoutButton\":{\"title\":\"$:/config/PageControlButtons/Visibility/$:/plugins/linonetwo/tw-calendar/tiddlywiki-ui/GoToEventsCalendarLayoutButton\",\"created\":\"20240327124452936\",\"modified\":\"20240327124452936\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/export-tiddler\",\"created\":\"20200410064657446\",\"modified\":\"20200410064708140\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-here\",\"created\":\"20200409065701335\",\"modified\":\"20200409065702475\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/new-journal-here\",\"created\":\"20200410064650269\",\"modified\":\"20231010115006123\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/bimlas/locator/viewtemplate/open-in-sidebar\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/bimlas/locator/viewtemplate/open-in-sidebar\",\"created\":\"20231010115004755\",\"modified\":\"20231010115004755\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/open-in-external-app/ViewToolbarButton\",\"created\":\"20231010115002411\",\"modified\":\"20231010115002411\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/zx-script/ViewToolbarButton\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/linonetwo/zx-script/ViewToolbarButton\",\"created\":\"20231010115001562\",\"modified\":\"20231010115001562\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/qrcode/ViewToolbarButton\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/qrcode/ViewToolbarButton\",\"created\":\"20231010114959435\",\"modified\":\"20231010114959435\",\"text\":\"hide\"},\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button\":{\"title\":\"$:/config/ViewToolbarButtons/Visibility/$:/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button\",\"created\":\"20200411035036487\",\"modified\":\"20200411035037540\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/palette/default-dark\":{\"title\":\"$:/config/palette/default-dark\",\"caption\":\"{{$:/language/ControlPanel/Palette/Config/DefaultDark/Caption}}\",\"text\":\"$:/palettes/Nord\"},\"$:/config/palette/default-light\":{\"title\":\"$:/config/palette/default-light\",\"caption\":\"{{$:/language/ControlPanel/Palette/Config/DefaultLight/Caption}}\",\"text\":\"$:/palettes/Notion\"},\"$:/palette\":{\"title\":\"$:/palette\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/palettes/Notion\"},\"$:/tags/PageControls\":{\"title\":\"$:/tags/PageControls\",\"list\":\"$:/plugins/linonetwo/omni-search-bar/ui/Buttons/search $:/core/ui/Buttons/home $:/core/ui/Buttons/close-all $:/core/ui/Buttons/fold-all $:/core/ui/Buttons/unfold-all $:/core/ui/Buttons/permaview $:/core/ui/Buttons/more-page-actions $:/core/ui/Buttons/new-tiddler $:/plugins/tiddlywiki/markdown/new-markdown-button $:/plugins/kookma/solution/buttons/pagecontrol $:/core/ui/Buttons/new-journal $:/core/ui/Buttons/new-image $:/core/ui/Buttons/import $:/core/ui/Buttons/export-page $:/core/ui/Buttons/control-panel $:/core/ui/Buttons/advanced-search $:/plugins/kookma/commander/buttons/pagecontrol $:/core/ui/Buttons/manager $:/core/ui/Buttons/tag-manager $:/core/ui/Buttons/language $:/core/ui/Buttons/palette $:/core/ui/Buttons/theme $:/core/ui/Buttons/storyview $:/core/ui/Buttons/encryption $:/core/ui/Buttons/timestamp $:/core/ui/Buttons/full-screen $:/core/ui/Buttons/print $:/core/ui/Buttons/refresh $:/plugins/kookma/utility/pagecontrol/view-fields-button $:/core/ui/Buttons/save-wiki $:/plugins/linonetwo/source-control-management/PageControlButton\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/theme\":{\"title\":\"$:/theme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"$:/themes/linonetwo/itonnote\"},\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\":{\"title\":\"$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"960px\"},\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\":{\"title\":\"$:/themes/tiddlywiki/vanilla/metrics/sidebarwidth\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"380px\"},\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\":{\"title\":\"$:/themes/tiddlywiki/vanilla/metrics/storywidth\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"770px\"},\"$:/themes/tiddlywiki/vanilla/options/stickytitles\":{\"title\":\"$:/themes/tiddlywiki/vanilla/options/stickytitles\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\":{\"title\":\"$:/themes/tiddlywiki/vanilla/settings/codefontfamily\",\"created\":\"20190420032819437\",\"modified\":\"20200409033737050\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"'Fira Code',\\\"SFMono-Regular\\\",Consolas,\\\"Liberation Mono\\\",Menlo,Courier,monospace\"},\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\":{\"title\":\"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily\",\"created\":\"20190421072924643\",\"modified\":\"20200409033737038\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"'Fira Code',\\\"SFMono-Regular\\\",Consolas,\\\"Liberation Mono\\\",Menlo,Courier,monospace\"},\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\":{\"title\":\"$:/themes/tiddlywiki/vanilla/settings/fontfamily\",\"created\":\"20190420034215366\",\"modified\":\"20200409033737026\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"'Fira Code',-apple-system, BlinkMacSystemFont, \\\"Segoe UI\\\", Helvetica, Arial, sans-serif, \\\"Apple Color Emoji\\\", \\\"Segoe UI Emoji\\\", \\\"Segoe UI Symbol\\\"\"},\"$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage\":{\"title\":\"$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"yes\"},\"_/dynamic/light-dark/detection\":{\"title\":\"_/dynamic/light-dark/detection\",\"caption\":\"Dynamically detect browser or OS setting\",\"code-body\":\"yes\",\"tags\":\"$:/tags/DarkLightChangeActions\",\"text\":\"<$reveal type=\\\"match\\\" stateTitle=\\\"$:/config/palette/enable-light-dark-detection\\\" text=\\\"yes\\\">\\n\\t<$let default={{{ [<dark-mode>match[yes]then[$:/config/palette/default-dark]else[$:/config/palette/default-light]] }}}>\\n\\t\\t<$action-setfield $tiddler=\\\"$:/palette\\\" text={{{ [<default>get[text]] }}}/>\\n\\t</$let>\\n</$reveal>\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/contents\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/contents\",\"created\":\"20200415162108079\",\"modified\":\"20200602041547212\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/hamburger\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/hamburger\",\"created\":\"20200415162126215\",\"modified\":\"20200415162128295\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/pagecontrols\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/pagecontrols\",\"created\":\"20200415162131716\",\"modified\":\"20200415162330718\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/sidebar\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/sidebar\",\"created\":\"20200415162109418\",\"modified\":\"20200415162109442\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/topleftbar\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/topleftbar\",\"created\":\"20200415162101755\",\"modified\":\"20200602041539750\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"hide\"},\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/toprightbar\":{\"title\":\"$:/config/plugins/menubar/MenuItems/Visibility/$:/plugins/tiddlywiki/menubar/items/toprightbar\",\"created\":\"20200415162118824\",\"modified\":\"20200415163710486\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"show\"},\"$:/config/shortcuts-mac/bold\":{\"title\":\"$:/config/shortcuts-mac/bold\",\"created\":\"20200602011151844\",\"modified\":\"20200602011151860\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/italic\":{\"title\":\"$:/config/shortcuts-mac/italic\",\"created\":\"20200602011428084\",\"modified\":\"20200602011428114\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/new-image\":{\"title\":\"$:/config/shortcuts-mac/new-image\",\"created\":\"20200602011526855\",\"modified\":\"20200602011526866\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/new-journal\":{\"title\":\"$:/config/shortcuts-mac/new-journal\",\"created\":\"20200602011519033\",\"modified\":\"20200602011519055\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-mac/toggle-sidebar\":{\"title\":\"$:/config/shortcuts-mac/toggle-sidebar\",\"created\":\"20200602011322158\",\"modified\":\"20200602011322171\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"cmd-B\"},\"$:/config/shortcuts-not-mac/bold\":{\"title\":\"$:/config/shortcuts-not-mac/bold\",\"created\":\"20200602011156768\",\"modified\":\"20200602011156779\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-not-mac/new-image\":{\"title\":\"$:/config/shortcuts-not-mac/new-image\",\"created\":\"20200602011529909\",\"modified\":\"20200602011529924\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts-not-mac/new-journal\":{\"title\":\"$:/config/shortcuts-not-mac/new-journal\",\"created\":\"20200602011521325\",\"modified\":\"20200602011521342\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/config/shortcuts/bold\":{\"title\":\"$:/config/shortcuts/bold\",\"created\":\"20200602011200184\",\"modified\":\"20200602011200195\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"ctrl-B\"},\"$:/config/shortcuts/toggle-sidebar\":{\"title\":\"$:/config/shortcuts/toggle-sidebar\",\"created\":\"20200602011309990\",\"modified\":\"20200602011310003\",\"type\":\"text/vnd.tiddlywiki\"},\"$:/plugins/linonetwo/itonnote/ControlPanel\":{\"title\":\"$:/plugins/linonetwo/itonnote/ControlPanel\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"caption\":\"<<lingo Name $:/plugins/linonetwo/itonnote/language/>>\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n<!-- copy and modify from $:/plugins/linonetwo/itonnote/Configss/Tags -->\\n\\\\define single-text-tag-editor(typeName)\\n\\\\whitespace trim\\n<div class=\\\"itkg-setting-tags-item\\\">\\n <$let\\n currentTiddler=\\\"$:/plugins/linonetwo/itonnote/Configs/$typeName$\\\"\\n palette={{$:/palette}}\\n tempTitle=<<qualify \\\"edit-$typeName$\\\">>\\n tabIndex={{$:/config/EditTabIndex}}\\n cancelPopups=\\\"yes\\\"\\n >\\n <$macrocall $name=\\\"tag\\\" tag={{$:/plugins/linonetwo/itonnote/Configs/$typeName$}} />\\n\\n <$edit-text tiddler=<<tempTitle>> tag=\\\"input\\\" field=\\\"text\\\" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} />\\n\\n <$button>\\n <$action-setfield tiddler=<<currentTiddler>> text={{{ [<tempTitle>get[text]] }}} />\\n <$action-deletetiddler $tiddler=<<tempTitle>> />\\n\\n {{$:/language/EditTemplate/Tags/Add/Button}}\\n </$button>\\n \\n </$let> \\n</div>\\n\\\\end\\n\\n<<lingo Config/Description>>\\n\\n---\\n\\n!! <<lingo PluginConfigs>>\\n\\n!!! <<lingo Config/Appearance>>\\n\\n;<<lingo Config/PageControlMobile/Caption>>\\n:<$checkbox tiddler=\\\"$:/plugins/linonetwo/itonnote/Configs/PageControlBelowPage\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\"> <<lingo Config/PageControlMobile/Description>></$checkbox>\\n\\n!!! <<lingo Config/FolderMenu/Caption>>\\n\\n<<single-text-tag-editor SideBarFolderMenuBaseTitle>>\\n\\n<<lingo Config/FolderMenu/Description>>\\n\"},\"$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle\":{\"title\":\"$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle\",\"text\":\"Index\"},\"$:/plugins/linonetwo/itonnote/Configs/PageControlBelowPage\":{\"title\":\"$:/plugins/linonetwo/itonnote/Configs/PageControlBelowPage\",\"text\":\"yes\"},\"$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub\":{\"title\":\"$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub\",\"created\":\"20200412034056887\",\"tags\":\"$:/tags/Macro\",\"caption\":\"点击在新标签页打开Github大图\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define view-big-image(source)\\n<a href=\\\"https://raw.githubusercontent.com/linonetwo/wiki/master/Meme-of-LinOnetwo/tiddlers/$source$\\\" title=\\\"Click for a bigger version (opens in a separate tab)\\\" target=\\\"_blank\\\">\\n <img src=\\\"https://raw.githubusercontent.com/linonetwo/wiki/master/Meme-of-LinOnetwo/tiddlers/$source$\\\"/>\\n</a>\\n\\\\end\"},\"$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe\":{\"title\":\"$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe\",\"tags\":\"$:/tags/Macro 自改TW\",\"caption\":\"带有「编辑此块」的引用transclusion宏\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\define reuse-pane(content)\\n<style>\\n.reuse-pane {\\n\\tposition: absolute;\\n\\tright: 10px;\\n\\twidth: auto;\\n\\tmax-width: 4px;\\n\\theight: 1.5em;\\n\\toverflow: hidden;\\n\\tborder: 10px solid transparent;\\n\\tborder-top: 0;\\n\\tbox-sizing: content-box;\\n\\ttransition: max-width 0.5s;\\n}\\n.reuse-pane:hover {\\n max-width: 80vw;\\n}\\n.reuse-pane-content {\\n\\tdisplay: inline-block;\\n\\tbackground-color: rgba(233, 233, 233, 0.9);\\n\\tborder-left: 4px solid rgba(0, 0, 0, 0.05);\\n\\tpadding: 0px 5px;\\n\\tpadding-bottom: 2px;\\n}\\n</style>\\n<div class=\\\"reuse-pane\\\">\\n <small class=\\\"reuse-pane-content\\\">$content$</small>\\n</div>\\n\\\\end\\n\\n\\\\define reuse-tiddler(title)\\n<$macrocall $name=\\\"reuse-pane\\\" content=\\\"\\\"\\\"\\n查看引文:[[$title$]]\\n\\\"\\\"\\\" />\\n\\n{{$title$}}\\n\\n\\\\end\"},\"$:/config/OfficialPluginLibrary\":{\"title\":\"$:/config/OfficialPluginLibrary\",\"tags\":\"$:/tags/PluginLibrary\",\"caption\":\"{{$:/language/OfficialPluginLibrary}}\",\"enabled\":\"no\",\"text\":\"\\\\procedure load-plugin-library-button()\\n\\\\whitespace trim\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\n为了更好的体验,我们建议您\\n<$button>\\n打开 CPL 安装插件\\n<$action-sendmessage $message=\\\"tm-close-tiddler\\\" />\\n<$action-sendmessage $message=\\\"tm-navigate\\\" navigateTo=\\\"$:/plugins/Gk0Wk/CPL-Repo/panel\\\" />\\n</$button>\\n\\n</$list>\\n\\n<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\nFor a better experience, we recommend you\\n<$button>\\nOpen CPL to install plugins\\n<$action-sendmessage $message=\\\"tm-close-tiddler\\\" />\\n<$action-sendmessage $message=\\\"tm-navigate\\\" navigateTo=\\\"$:/plugins/Gk0Wk/CPL-Repo/panel\\\" />\\n</$button>\\n\\n</$list></$list>\\n\\\\end\\n\\n<<load-plugin-library-button>>\\n\"},\"$:/core/ui/ControlPanel/Settings\":{\"title\":\"$:/core/ui/ControlPanel/Settings\",\"tags\":\"$:/tags/ControlPanel\",\"caption\":\"{{$:/language/ControlPanel/Settings/Caption}}\",\"text\":\"<div class=\\\"tc-control-panel\\\">\\n<$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</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<<lingo Hint>>\\n\\n<$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Settings]]\\\">\\n\\n<div style=\\\"border-top:1px solid #eee;\\\">\\n\\n!! <$link><$transclude field=\\\"caption\\\"/></$link>\\n\\n<$transclude/>\\n\\n</div>\\n\\n</$list>\\n\"},\"$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu\":{\"title\":\"$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu\",\"tags\":\"$:/tags/SideBar $:/tags/MenuBar\",\"caption\":\"<<lingo Config/FolderMenu/Caption $:/plugins/linonetwo/itonnote/language/>>\",\"description\":\"<<lingo Config/FolderMenu/Description $:/plugins/linonetwo/itonnote/language/>>\",\"is-dropdown\":\"yes\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\import [all[tiddlers+shadows]tag[$:/tags/Macro/Toc]]\\n\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n<$scrollable fallthrough=\\\"none\\\" class=\\\"tc-popup-keep tc-menubar-dropdown-sidebar\\\">\\n\\n\\t<$let toc-open-icon=\\\"$:/core/images/fold-button\\\" toc-closed-icon=\\\"$:/core/images/folder\\\">\\n\\t\\t<$transclude $variable=\\\"toc-ui\\\" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />\\n\\t</$let>\\n\\n <<lingo FolderMenu/Help>>\\n\\n</$scrollable>\\n\"},\"$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub\":{\"title\":\"$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub\",\"caption\":\"图片:点击在新标签页打开大图\",\"tags\":\"$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub $:/tags/TextEditor/Snippet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<view-big-image xxx.jpg>>\"},\"$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler\":{\"title\":\"$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler\",\"caption\":\"添加一个使用当前标题的 toc\",\"tags\":\"[[$:/plugins/linonetwo/itonnote/Help/Index]] $:/tags/TextEditor/Snippet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\n<$let toc-open-icon=\\\"$:/core/images/fold-button\\\" toc-closed-icon=\\\"$:/core/images/folder\\\">\\n <$transclude $variable=\\\"toc-ui\\\" tag={{$:/plugins/linonetwo/itonnote/Configs/SideBarFolderMenuBaseTitle}} />\\n</$let>\"},\"$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe\":{\"title\":\"$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe\",\"caption\":\"带「编辑此块」的引用Transclusion\",\"tags\":\"$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe $:/tags/TextEditor/Snippet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<reuse-tiddler \\\"title\\\">>\"},\"$:/plugins/linonetwo/itonnote/UI/PageControlBelowPage\":{\"title\":\"$:/plugins/linonetwo/itonnote/UI/PageControlBelowPage\",\"tags\":\"$:/tags/AboveStory\",\"text\":\"<!-- Though visually it is on the bottom of the page, but we have to use AboveStory to make sure it is overlay on the story. -->\\n<$list filter=\\\"[[$:/plugins/linonetwo/itonnote/settings/PageControlBelowPage]get[text]else[no]match[yes]]\\\">\\n <nav class=\\\"page-control-below-page\\\">\\n {{$:/core/ui/PageTemplate/pagecontrols}}\\n </nav>\\n</$list>\"},\"$:/plugins/linonetwo/itonnote/UI/style.css\":{\"title\":\"$:/plugins/linonetwo/itonnote/UI/style.css\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$importvariables filter=\\\"[[$:/themes/tiddlywiki/vanilla/base]]\\\">\\n\\n.page-control-below-page {\\n display: none;\\n\\n padding: 10px;\\n background-color: white;\\n -webkit-backdrop-filter: blur(10px);\\n\\n position: fixed;\\n bottom: 0;\\n left: 0;\\n z-index: 200;\\n width: 100%;\\n}\\n.page-control-below-page .tc-page-controls {\\n margin: 0;\\n\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n justify-content: space-evenly;\\n}\\n\\n@media (max-width: <<sidebarbreakpoint>>) {\\n .page-control-below-page {\\n display: block;\\n }\\n}\\n\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu\",\"text\":\"The folder structure [[auto-generated by tag system|$:/plugins/linonetwo/itonnote/language/en-GB/VirtualFolder]] is shown in the \\\"FolderMenu\\\" tab in the sidebar.\\n\\nThe first directory tree is displayed according to the `currently located entry` and is dynamic; the second directory tree starts from the `Index(root folder)` entry and is static. Because Echart's dynamic display of contextual diagrams is not as nice and distracting as this tree form. So for now, the context is displayed in the form of a directory tree.\\n\\nIf you want to modify the root folder, please open the [[Settings|$:/plugins/linonetwo/itonnote/ControlPanel]].\\n\\n* tagged with A, which is equivalent to storing the file in folder A and using the contents of A as the Readme of the folder\\n* Use the \\\"Create a new tiddler with this tag name\\\" button in any Tiddler to create a file with the current Tiddler as the folder\\n* Click the {{$:/core/images/folder}} button (to make it {{$:/core/images/fold-button}}) to expand the folder\\n* Click directly on the name of a folder to see the Readme of that folder\\n* Click {{$:/core/images/options-button}} button to open more buttons, you can see {{$:/core/images/edit-button}} button, click it to open edit mode.\\n** In edit mode, hover over the folder and the {{$:/core/images/down-arrow}} button will appear on the far right, click on it to see a series of new action buttons, which can be used to create new entries in the folder.\\n** You can also drag the folder to sort it.\\n\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\n!! Features\\n\\nSome preset content for this plugin.\\n\\n!!! snippets (text snippets)\\n\\nIn edit mode, there is a stamp button that lists a series of text snippets that can be added with one click, thus eliminating the need to memorize these complex text snippets.\\n\\nThis plugin comes with a number of text snippets pre-built, see the introduction of the corresponding Macros for details, or the introduction of the corresponding plugin:\\n\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe]]\\n\\n!!! macros\\n\\n!!!! TransclusionWithEditMe\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe]] Usage:\\n\\n使用普通的 [[Transclusion|https://tiddlywiki.com/#Transclusion]] 时,你没法得知源文件在哪里,如果想要修改内容,还得打开编辑模式、复制被引用的 Tiddler 的标题,然后搜索打开编辑,比较麻烦。\\n\\n使用此宏进行引用就很方便了:\\n\\n```tid\\n<<reuse-tiddler \\\"快速创建新笔记按钮\\\">>\\n```\\n\\n会直接在引用的区块旁边显示一个「查看引文」的小浮窗,带有指向源文件的链接,直接点开编辑即可。\\n\\n!!!! OpenImageInGithub\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub]] Usage:\\n\\nIf you have `webcatalog-tiddlywiki-menu-app.jpg` in your Wiki, you normally can just `{{webcatalog-tiddlywiki-menu-app.jpg}}` to place it in your tiddler, but you can use this macro to make it clickable, and open large image in the new browser tab:\\n\\n```tid\\n<<view-big-image webcatalog-tiddlywiki-menu-app.jpg>>\\n```\\n\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Name\",\"text\":\"TidGi Preset\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Description\",\"text\":\"A series of trivial content for TidGi Preset, usually from the plugin's description file and forum discussions, but most people are too lazy to read the description file, so here is a direct help to configure it.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/PluginConfigs\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/PluginConfigs\",\"text\":\"plugin settings\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Description\",\"text\":\"With these settings, you can customize the behavior of the \\\"TidGi Preset\\\" plugin.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Appearance\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/Appearance\",\"text\":\"Appearance\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Caption\",\"text\":\"Show page control buttons at the bottom of the mobile page.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/PageControlMobile/Description\",\"text\":\"On mobile devices, the sidebar is collapsed, so adding page controls at the bottom would be a convenient shortcut.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Caption\",\"text\":\"Folder Menu\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/Config/FolderMenu/Description\",\"text\":\"Other tiddlers are added to this tag, which is equivalent to this tag being the root folder into which other tiddlers are placed. And it is displayed in the \\\"File Menu\\\" tab on the sidebar.\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu/Help\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu/Help\",\"text\":\"[[Help|$:/plugins/linonetwo/itonnote/language/en-GB/FolderMenu]]\"},\"$:/plugins/linonetwo/itonnote/language/en-GB/VirtualFolder\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/en-GB/VirtualFolder\",\"text\":\"!!! Tag\\n\\nThe Tag structure can be thought of as a folder directory structure with soft links to form a graphical structure, since Tag relationships are inherently free, and two notes can be tagged to each other and parented to each other in the folder structure.\\n\\nUsing toc macro, you can create a \\\"file directory\\\" tab in the sidebar, which shows the folder structure generated by the tag. The details are written in [[Official Table-of-Contents Macros doc|https://tiddlywiki.com/#Table-of-Contents%20Macros:%5B%5BTable-of-Contents%20Macros%5D%5D%20%5B%5BTable-of-Contents%20Macros%20(Examples)%5D%5D]], and the plugin should have it pre-populated in [[$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu]], which can be used immediately or modified to override it.\\n\\nThen you can set the \\\"File Directory\\\" tab to be displayed by default in `$:/ControlPanel` -> \\\"Settings\\\" -> \\\"Default Sidebar Tab\\\", so that you can use TiddlyWiki as a folder system. And the plugin should already be pre-configured for this.\\n\\n!!! Slash\\n\\nTiddlyWiki comes with a way to create folders by using slashes in the header.\\n\\nThe various folders that come with the system can be seen via the sidebar under \\\"More\\\" -> \\\"Explore\\\".\\n\\nIf you use the NodeJS version of TiddlyWiki, these tiddlers will also be placed in the corresponding folders on the real file system.\\n\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu\",\"text\":\"侧边栏的「目录结构」标签页里展示了[[通过标签系统自动生成|$:/plugins/linonetwo/itonnote/language/zh-Hans/VirtualFolder]]的文件夹。\\n\\n第一个目录树根据`当前所在的条目`展示,是动态的;第二个目录树从`Index(根文件夹)`条目出发,是静态的。因Echart动态显示上下文的图没有这种树的形式好看且干扰注意力。所以暂用目录树的形式显示上下文。\\n\\n若想修改根文件夹,请打开[[设置|$:/plugins/linonetwo/itonnote/ControlPanel]]。\\n\\n* 打了 A 标签,即相当于将文件存储在文件夹 A 中,并以 A 的内容作为文件夹的说明文本\\n* 在任意条目中使用「创建一个标签为此条目名称的新条目」按钮,可以创建以当前条目为文件夹的文件\\n* 点击 {{$:/core/images/folder}} 按钮(使它变成 {{$:/core/images/fold-button}})可以展开文件夹\\n* 直接点击文件夹的名字可以查看这个文件夹的说明文本\\n* 点击 {{$:/core/images/options-button}} 按钮可以打开更多按钮,可以看到 {{$:/core/images/edit-button}} 按钮,点击后可以打开编辑模式。\\n** 编辑模式下,鼠标悬浮在文件夹上会在最右侧出现 {{$:/core/images/down-arrow}} 按钮,点击可以看到一系列新建操作按钮,可以用于在文件夹内新建条目\\n** 此时也可以拖动文件夹排序\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\n!! 功能\\n\\n本插件的一些预置内容。\\n\\n!!! snippets(文本片段)\\n\\n在编辑模式下,有一个图章按钮,点击后会列出一系列文本片段,可以一键添加预制内容,因而无需用脑记住这些复杂的文本片段了。\\n\\n本插件预置了一些文本片段,详见相应的 Macros 的介绍,或相应的插件的介绍:\\n\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TOCAboutCurrentTiddler]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/OpenImageInGithub]]\\n* [[$:/plugins/linonetwo/itonnote/Snippets/TransclusionWithEditMe]]\\n\\n!!! 宏\\n\\n!!!! TransclusionWithEditMe\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/TransclusionWithEditMe]] Usage:\\n\\n使用普通的 [[Transclusion|https://tiddlywiki.com/#Transclusion]] 时,你没法得知源文件在哪里,如果想要修改内容,还得打开编辑模式、复制被引用的 Tiddler 的标题,然后搜索打开编辑,比较麻烦。\\n\\n使用此宏进行引用就很方便了:\\n\\n```tid\\n<<reuse-tiddler \\\"快速创建新笔记按钮\\\">>\\n```\\n\\n会直接在引用的区块旁边显示一个「查看引文」的小浮窗,带有指向源文件的链接,直接点开编辑即可。\\n\\n!!!! OpenImageInGithub\\n\\n[[$:/plugins/linonetwo/itonnote/Macros/OpenImageInGithub]] Usage:\\n\\n如果您的 Wiki 中有 \\\"webcatalog-tiddlywiki-menu-app.jpg\\\",您通常可以直接使用\\\"{{webcatalog-tiddlywiki-menu-app.jpg}}\\\"将其放到条目中,但您可以使用此宏使其可点击,并在新的浏览器标签页中打开大图:\\nIf you have `webcatalog-tiddlywiki-menu-app.jpg` in your Wiki, you normally can just `{{webcatalog-tiddlywiki-menu-app.jpg}}` to place it in your tiddler, but you can use this macro to make it clickable, and open large image in the new browser tab:\\n\\n```tid\\n<<view-big-image webcatalog-tiddlywiki-menu-app.jpg>>\\n```\\n\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Name\",\"text\":\"太记预置\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Description\",\"text\":\"为太记预配置了一系列琐碎的内容,一般来自各插件的自述文件和论坛讨论,但大多数人懒得看自述文件,故在此直接帮忙配置好了。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/PluginConfigs\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/PluginConfigs\",\"text\":\"插件设置\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Description\",\"text\":\"通过这些设置,您可以自定义「太记预置」插件的行为。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Appearance\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/Appearance\",\"text\":\"外观\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Caption\",\"text\":\"在手机页面下方显示页面控制按钮\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/PageControlMobile/Description\",\"text\":\"在移动设备上,侧边栏是折叠的,因此在底部添加页面控制将是一个方便的快捷方式。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Caption\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Caption\",\"text\":\"文件目录\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Description\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/Config/FolderMenu/Description\",\"text\":\"其它笔记加上这个标签,相当于这个标签是根目录文件夹,其它笔记放入了这个文件夹中。并显示在侧边栏的「文件目录」标签页里。\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu/Help\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu/Help\",\"text\":\"[[使用帮助|$:/plugins/linonetwo/itonnote/language/zh-Hans/FolderMenu]]\"},\"$:/plugins/linonetwo/itonnote/language/zh-Hans/VirtualFolder\":{\"title\":\"$:/plugins/linonetwo/itonnote/language/zh-Hans/VirtualFolder\",\"text\":\"!!! 标签\\n\\n标签结构可以看作是一种文件夹目录结构,通过软链接形成图论结构,因为标签关系本身是自由的,两个笔记可以相互加对方为标签,并在文件夹结构中互为父级,形成任意自由的结构。\\n\\n使用官方的 toc 宏,你可以在侧边栏创建一个「文件目录」标签,显示标签生成的文件夹结构。详细内容写在 [[官方文档的 Table-of-Contents 一文里|https://tw-cn-doc.cpolar.top/#Table-of-Contents%20Macros:%5B%5BTable-of-Contents%20Macros%5D%5D%20%5B%5BTable-of-Contents%20Macros%20(Examples)%5D%5D]] 中,插件应在 [[$:/plugins/linonetwo/itonnote/Sidebar/FolderMenu]] 中预置了,可以立即使用,你也可以修改覆盖。\\n\\n然后,您可以在 `$:/ControlPanel` ->「Settings」 ->「Default Sidebar Tab」中设置默认显示「文件目录」选项卡,这样您就可以将 TiddlyWiki 用作文件夹系统。插件应该已经为此进行了预配置。\\n\\n!!! 斜杠\\n\\nTiddlyWiki 提供了一种在标题里使用斜杠创建文件夹的方法。\\n\\n你可以通过侧边栏的「更多」->「探索」查看系统自带的各种文件夹。\\n\\n如果你使用的是 NodeJS 版本的 TiddlyWiki,这些 tiddlers 也会被放置在真实文件系统的相应文件夹中。\\n\\n!!! 使用哪种?\\n\\n这是个见仁见智的问题,请[[参考中文教程学习|https://tw-cn.netlify.app/#%E4%BD%BF%E7%94%A8%E6%A0%87%E7%AD%BE%E5%BD%93%E6%96%87%E4%BB%B6%E5%A4%B9:%E4%BD%BF%E7%94%A8%E6%A0%87%E7%AD%BE%E5%BD%93%E6%96%87%E4%BB%B6%E5%A4%B9%20%E6%AC%A2%E8%BF%8E%E6%9D%A5%E5%88%B0%E5%A4%AA%E5%BE%AE%EF%BC%81]],也可以加群讨论!\\n\"},\"$:/core/macros/lingo\":{\"title\":\"$:/core/macros/lingo\",\"tags\":\"$:/tags/Global\",\"text\":\"<!-- //TODO: remove after https://github.com/Jermolene/TiddlyWiki5/pull/7821 is merged -->\\n<!-- Note that lingo-base should end with a trailing slash character -->\\n\\\\procedure lingo-base()\\n$:/language/\\n\\\\end lingo-base\\n\\n\\\\procedure lingo(title,override-lingo-base)\\n<!-- Lingo procedure -->\\n<!-- Get the parse mode used to invoke this procedure -->\\n\\\\whitespace trim\\n<$parameters $parseMode=\\\"parseMode\\\">\\n\\t<!-- Compute the lingo-base-->\\n\\t<$let active-lingo-base={{{ [<override-lingo-base>!match[]else<lingo-base>] }}}>\\n\\t\\t<!-- First try the old school <active-lingo-base><title> format -->\\n\\t\\t<$transclude $tiddler={{{ [<active-lingo-base>addsuffix<title>] }}} $mode=<<parseMode>>>\\n\\t\\t\\t<!-- If that didn't work, try the new <lingo-base><langcode>/<title> format -->\\n\\t\\t\\t<$let language-code={{{ [[$:/language]get[text]get[name]else[en-GB]] }}}>\\n <$transclude $tiddler={{{ [<active-lingo-base>addsuffix<language-code>addsuffix[/]addsuffix<title>] }}} $mode=<<parseMode>>/>\\n\\t\\t\\t</$let>\\n\\t\\t</$transclude>\\n\\t</$let>\\n</$parameters>\\n\\\\end lingo\"},\"$:/plugins/linonetwo/itonnote/readme\":{\"title\":\"$:/plugins/linonetwo/itonnote/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/itonnote/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/plugins/linonetwo/itonnote/tree\":{\"title\":\"$:/plugins/linonetwo/itonnote/tree\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/itonnote/\\\">>\"},\"$:/plugins/linonetwo/itonnote/Startup/closeSidebarOnMobile.js\":{\"module-type\":\"startup\",\"title\":\"$:/plugins/linonetwo/itonnote/Startup/closeSidebarOnMobile.js\",\"type\":\"application/javascript\",\"creator\":\"NicolasPetton\",\"Modern.TiddlyDev#Origin\":\"Startup/closeSidebarOnMobile.ts\",\"text\":\"\\\"use strict\\\";exports.name=\\\"close-sidebar-on-mobile\\\",exports.platforms=[\\\"browser\\\"],exports.after=[\\\"rootwidget\\\"];var isOnMobile=()=>\\\"yes\\\"===$tw.wiki.getTiddlerText(\\\"$:/info/browser/is/mobile\\\")||\\\"yes\\\"===$tw.wiki.getTiddlerText(\\\"$:/info/tidgi-mobile\\\"),closeSidebar=()=>{$tw.wiki.addTiddler({title:\\\"$:/state/sidebar\\\",text:\\\"no\\\"}),$tw.wiki.addTiddler({title:\\\"$:/state/notebook-sidebar\\\",text:\\\"no\\\"})},closeSidebarOnMobile=e=>(isOnMobile()&&closeSidebar(),e),setup=()=>{$tw.hooks.addHook(\\\"th-opening-default-tiddlers-list\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-importing-file\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-navigating\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-new-tiddler\\\",closeSidebarOnMobile),$tw.hooks.addHook(\\\"th-open-command-palette\\\",closeSidebarOnMobile),closeSidebarOnMobile()};exports.startup=setup;\"}}}", + "title": "$:/plugins/linonetwo/itonnote", + "type": "application/json", + "version": "3.4.3", + "Modern.TiddlyDev#SHA256-Hashed": "be9b535fcb1973a6bd64d40ac47e751065de8f60760901dc5d1051afa6a2479c" + } +] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher.json b/tiddlers/$__plugins_linonetwo_simple-layout-launcher.json index 31949ea..dbcaa8c 100644 --- a/tiddlers/$__plugins_linonetwo_simple-layout-launcher.json +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher.json @@ -6,10 +6,11 @@ "list": "readme tree", "name": "Simple Layout Launcher", "plugin-type": "plugin", - "text": "{\"tiddlers\":{\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\n!! Procedure\\n\\nThis plugin provides a simple layout switcher which can be used with this procedure call:\\n\\n```tid\\n<<simple-layout-launcher>>\\n```\\n\\n<<simple-layout-launcher>>\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Name\",\"text\":\"Simple Layout Launcher\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/ShortName\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/ShortName\",\"text\":\"SLL\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Description\",\"text\":\"Vanilla style layout launcher, with Metro style square button and large icon.\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\n!! 过程\\n\\n本插件提供了一个简单的布局切换器,它可以通过这个过程调用来使用:\\n\\n```tid\\n<<simple-layout-launcher>>\\n```\\n\\n<<simple-layout-launcher>>\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Name\",\"text\":\"简易布局启动器\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/ShortName\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/ShortName\",\"text\":\"简布局\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Description\",\"text\":\"原生风格的布局启动器,带有地铁风格的方形按钮和大图标。\"},\"$:/snippets/LayoutSwitcher\":{\"title\":\"$:/snippets/LayoutSwitcher\",\"tags\":\"$:/tags/ControlPanel/Appearance\",\"caption\":\"{{$:/language/ControlPanel/LayoutSwitcher/Caption}}\",\"text\":\"<<simple-layout-launcher>>\"},\"$:/plugins/linonetwo/simple-layout-launcher/readme\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/plugins/linonetwo/simple-layout-launcher/sidebar\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/sidebar\",\"tags\":\"$:/tags/SideBar\",\"caption\":\"<<lingo ShortName $:/plugins/linonetwo/simple-layout-launcher/language/>>\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n!! <<lingo Name>>\\n\\n<div class=\\\"simple-layout-launcher-sidebar\\\">\\n <<simple-layout-launcher>>\\n</div>\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image\",\"tags\":\"$:/tags/Image\",\"text\":\"\\\\parameters (size:\\\"22pt\\\")\\n<svg width=<<size>> height=<<size>> class=\\\"tc-image-linonetwo-simple-layout tc-image-button\\\" viewBox=\\\"0 0 24 24\\\">\\n <path d=\\\"M 4 3 C 4.552 3 5 3.448 5 4 L 5 20 C 5 20.552 4.552 21 4 21 C 3.448 21 3 20.552 3 20 L 3 4 C 3 3.448 3.448 3 4 3 Z\\\" style=\\\"stroke: none; fill-rule: evenodd;\\\"/>\\n <path d=\\\"M 10 8 L 18 8 C 18.757 8.044 19.633 8.391 20.121 8.879 C 20.609 9.367 20.956 10.243 21 11 L 21 13 C 20.956 13.757 20.609 14.633 20.121 15.121 C 19.633 15.609 18.757 15.956 18 16 L 10 16 C 9.243 15.956 8.367 15.609 7.879 15.121 C 7.391 14.633 7.044 13.757 7 13 L 7 11 C 7.044 10.243 7.391 9.367 7.879 8.879 C 8.367 8.391 9.243 8.044 10 8 Z M 9.293 10.293 C 9.057 10.529 8.956 10.652 9 11 L 9 13 C 8.956 13.348 9.057 13.471 9.293 13.707 C 9.529 13.943 9.652 14.044 10 14 L 18 14 C 18.348 14.044 18.471 13.943 18.707 13.707 C 18.943 13.471 19.044 13.348 19 13 L 19 11 C 19.044 10.652 18.943 10.529 18.707 10.293 C 18.471 10.057 18.348 9.956 18 10 L 10 10 C 9.652 9.956 9.529 10.057 9.293 10.293 Z\\\" style=\\\"stroke: none; fill-rule: evenodd;\\\"/>\\n</svg>\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout\",\"name\":\"<<lingo Name $:/plugins/linonetwo/simple-layout-launcher/language/>>\",\"icon\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image\",\"description\":\"<<lingo Description $:/plugins/linonetwo/simple-layout-launcher/language/>>\",\"tags\":\"$:/tags/Layout\",\"text\":\"\\\\whitespace trim\\n\\\\import [subfilter{$:/core/config/GlobalImportFilter}]\\n\\\\define containerClasses()\\ntc-page-container tc-language-$(languageTitle)$ simple-layout-launcher-container\\n\\\\end\\n\\\\procedure redirected-navigate-actions()\\n <$action-setfield $tiddler=\\\"$:/layout\\\" text=\\\"\\\" $timestamp=\\\"no\\\">\\n <$action-navigate $to=<<event-navigateTo>> $scroll=\\\"yes\\\" />\\n </$action-setfield>\\n\\\\end\\n\\n<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t<$messagecatcher $tm-navigate=<<redirected-navigate-actions>>>\\n\\t\\t{{$:/core/ui/CommandPaletteTemplate}}\\n\\t\\t<div class=<<containerClasses>>>\\n\\t\\t\\t<div class=\\\"linonetwo-simple-layout-launcher-layout-container\\\">\\n\\t\\t\\t\\t<<simple-layout-launcher>>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</$messagecatcher>\\n</$navigator>\\n\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css\",\"text\":\".simple-layout-launcher-layout-container{width:100%;height:100%}.linonetwo-simple-layout-launcher{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.linonetwo-simple-layout-launcher-item{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;height:150px;aspect-ratio:1;padding:5px;margin:5px}@media (max-width:450px){.tc-modal-body:has(.linonetwo-simple-layout-launcher){padding:0}.linonetwo-simple-layout-launcher-item{height:100px}}@media (max-width:275px){.linonetwo-simple-layout-launcher-item{height:80px}}.linonetwo-simple-layout-launcher-title{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;font-size:1.2em;height:2.4em}.linonetwo-simple-layout-launcher-icon{width:70%;aspect-ratio:1}.linonetwo-simple-layout-launcher-icon svg{width:100%;height:100%}.linonetwo-simple-layout-launcher-description{visibility:hidden;opacity:0;position:absolute;top:0;left:0;width:150px;transition:visibility,opacity .3s linear}.linonetwo-simple-layout-launcher-item:hover .linonetwo-simple-layout-launcher-description{visibility:visible;opacity:1}.linonetwo-simple-layout-launcher-item a{text-decoration:none}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css.variable\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css.variable\",\"tags\":\"$:/tags/Stylesheet\",\"text\":\"\\\\import [[$:/themes/tiddlywiki/vanilla/base]]\\n\\n.linonetwo-simple-layout-launcher-item:hover .linonetwo-simple-layout-launcher-description {\\n\\tbackground: <<colour tiddler-info-background>>;\\n}\\n\\n/** Desktop, center it and add padding */\\n@media (min-width: <<sidebarbreakpoint>>) {\\n\\t.linonetwo-simple-layout-launcher-layout-container {\\n\\t\\tpadding: 100px;\\n\\t}\\n\\t.linonetwo-simple-layout-launcher-layout-container .linonetwo-simple-layout-launcher {\\n\\t\\tjustify-content: center;\\n\\t}\\n}\\n\\n.simple-layout-launcher-sidebar a {\\n\\tfill: <<colour sidebar-tiddler-link-foreground>>;\\n}\\n.simple-layout-launcher-sidebar a:hover {\\n\\tfill: <<colour sidebar-tiddler-link-foreground-hover>>;\\n}\\n\\n/** Mobile layout switcher, model is small can't change, so make item width 100% */\\n@media (max-width: <<sidebarbreakpoint>>) {\\n\\t.tc-modal:has(.tc-modal-body):has(div):has(p):has(.linonetwo-simple-layout-launcher) {\\n\\t\\twidth: 90%;\\n\\t}\\n}\\n\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher\",\"tags\":\"$:/tags/Global\",\"text\":\"\\\\procedure simple-layout-launcher()\\n\\t\\\\whitespace trim\\n\\t<$linkcatcher to=\\\"$:/layout\\\">\\n\\t\\t<div class=\\\"linonetwo-simple-layout-launcher\\\">\\n\\t\\t\\t<$list filter=\\\"[[$:/core/ui/PageTemplate]] [all[tiddlers+shadows]tag[$:/tags/Layout]]\\\">\\n\\t\\t\\t\\t<$set name=\\\"chosen-cls\\\" filter=\\\"[all[current]compare:eq{$:/layout}]\\\" value=\\\"linonetwo-simple-layout-launcher-item tc-chosen\\\" emptyValue=\\\"linonetwo-simple-layout-launcher-item\\\">\\n\\t\\t\\t\\t\\t<$link to={{!!title}}>\\n\\t\\t\\t\\t\\t\\t<div class=<<chosen-cls>>>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"linonetwo-simple-layout-launcher-icon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"linonetwo-simple-layout-launcher-title\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"name\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"linonetwo-simple-layout-launcher-description\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"description\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</$link>\\n\\t\\t\\t\\t</$set>\\n\\t\\t\\t</$list>\\n\\t\\t</div>\\n\\t</$linkcatcher>\\n\\\\end\"},\"$:/plugins/linonetwo/simple-layout-launcher/tree\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/tree\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/simple-layout-launcher/\\\">>\"}}}", + "stability": "STABILITY_2_STABLE", + "text": "{\"tiddlers\":{\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\n!! Procedure\\n\\nThis plugin provides a simple layout switcher which can be used with this procedure call:\\n\\n```tid\\n<<simple-layout-launcher>>\\n```\\n\\n<<simple-layout-launcher>>\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Name\",\"text\":\"Simple Layout Launcher\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/ShortName\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/ShortName\",\"text\":\"SLL\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Description\",\"text\":\"Vanilla style layout launcher, with Metro style square button and large icon.\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\n!! 过程\\n\\n本插件提供了一个简单的布局切换器,它可以通过这个过程调用来使用:\\n\\n```tid\\n<<simple-layout-launcher>>\\n```\\n\\n<<simple-layout-launcher>>\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Name\",\"text\":\"简易布局启动器\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/ShortName\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/ShortName\",\"text\":\"简布局\"},\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Description\",\"text\":\"原生风格的布局启动器,带有地铁风格的方形按钮和大图标。\"},\"$:/snippets/LayoutSwitcher\":{\"title\":\"$:/snippets/LayoutSwitcher\",\"tags\":\"$:/tags/ControlPanel/Appearance\",\"caption\":\"{{$:/language/ControlPanel/LayoutSwitcher/Caption}}\",\"text\":\"<<simple-layout-launcher>>\"},\"$:/plugins/linonetwo/simple-layout-launcher/readme\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/plugins/linonetwo/simple-layout-launcher/sidebar\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/sidebar\",\"tags\":\"$:/tags/SideBar\",\"caption\":\"<<lingo ShortName $:/plugins/linonetwo/simple-layout-launcher/language/>>\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/\\n\\n!! <<lingo Name>>\\n\\n<div class=\\\"simple-layout-launcher-sidebar\\\">\\n <<simple-layout-launcher>>\\n</div>\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image\",\"tags\":\"$:/tags/Image\",\"text\":\"\\\\parameters (size:\\\"22pt\\\")\\n<svg width=<<size>> height=<<size>> class=\\\"tc-image-linonetwo-simple-layout tc-image-button\\\" viewBox=\\\"0 0 24 24\\\">\\n <path d=\\\"M 4 3 C 4.552 3 5 3.448 5 4 L 5 20 C 5 20.552 4.552 21 4 21 C 3.448 21 3 20.552 3 20 L 3 4 C 3 3.448 3.448 3 4 3 Z\\\" style=\\\"stroke: none; fill-rule: evenodd;\\\"/>\\n <path d=\\\"M 10 8 L 18 8 C 18.757 8.044 19.633 8.391 20.121 8.879 C 20.609 9.367 20.956 10.243 21 11 L 21 13 C 20.956 13.757 20.609 14.633 20.121 15.121 C 19.633 15.609 18.757 15.956 18 16 L 10 16 C 9.243 15.956 8.367 15.609 7.879 15.121 C 7.391 14.633 7.044 13.757 7 13 L 7 11 C 7.044 10.243 7.391 9.367 7.879 8.879 C 8.367 8.391 9.243 8.044 10 8 Z M 9.293 10.293 C 9.057 10.529 8.956 10.652 9 11 L 9 13 C 8.956 13.348 9.057 13.471 9.293 13.707 C 9.529 13.943 9.652 14.044 10 14 L 18 14 C 18.348 14.044 18.471 13.943 18.707 13.707 C 18.943 13.471 19.044 13.348 19 13 L 19 11 C 19.044 10.652 18.943 10.529 18.707 10.293 C 18.471 10.057 18.348 9.956 18 10 L 10 10 C 9.652 9.956 9.529 10.057 9.293 10.293 Z\\\" style=\\\"stroke: none; fill-rule: evenodd;\\\"/>\\n</svg>\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout\",\"name\":\"<<lingo Name $:/plugins/linonetwo/simple-layout-launcher/language/>>\",\"icon\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image\",\"description\":\"<<lingo Description $:/plugins/linonetwo/simple-layout-launcher/language/>>\",\"tags\":\"$:/tags/Layout\",\"text\":\"\\\\whitespace trim\\n\\\\import [subfilter{$:/core/config/GlobalImportFilter}]\\n\\\\define containerClasses()\\ntc-page-container tc-language-$(languageTitle)$ simple-layout-launcher-container\\n\\\\end\\n\\\\procedure redirected-navigate-actions()\\n <$action-setfield $tiddler=\\\"$:/layout\\\" text=\\\"\\\" $timestamp=\\\"no\\\">\\n <$action-navigate $to=<<event-navigateTo>> $scroll=\\\"yes\\\" />\\n </$action-setfield>\\n\\\\end\\n\\n<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t<$messagecatcher $tm-navigate=<<redirected-navigate-actions>>>\\n\\t\\t{{$:/core/ui/CommandPaletteTemplate}}\\n\\t\\t<div class=<<containerClasses>>>\\n\\t\\t\\t<div class=\\\"linonetwo-simple-layout-launcher-layout-container\\\">\\n\\t\\t\\t\\t<<simple-layout-launcher>>\\n\\t\\t\\t</div>\\n\\t\\t</div>\\n\\t</$messagecatcher>\\n</$navigator>\\n\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css\",\"text\":\".simple-layout-launcher-layout-container{width:100%;height:100%}.linonetwo-simple-layout-launcher{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.linonetwo-simple-layout-launcher-item{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;height:150px;aspect-ratio:1;padding:5px;margin:5px}@media (max-width:450px){.tc-modal-body:has(.linonetwo-simple-layout-launcher){padding:0}.linonetwo-simple-layout-launcher-item{height:100px}}@media (max-width:275px){.linonetwo-simple-layout-launcher-item{height:80px}}.linonetwo-simple-layout-launcher-title{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;font-size:1.2em;height:2.4em}.linonetwo-simple-layout-launcher-icon{width:70%;aspect-ratio:1}.linonetwo-simple-layout-launcher-icon svg{width:100%;height:100%}.linonetwo-simple-layout-launcher-description{visibility:hidden;opacity:0;position:absolute;top:0;left:0;width:150px;transition:visibility,opacity .3s linear}.linonetwo-simple-layout-launcher-item:hover .linonetwo-simple-layout-launcher-description{visibility:visible;opacity:1}.linonetwo-simple-layout-launcher-item a{text-decoration:none}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css.variable\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css.variable\",\"tags\":\"$:/tags/Stylesheet\",\"text\":\"\\\\import [[$:/themes/tiddlywiki/vanilla/base]]\\n\\n.linonetwo-simple-layout-launcher-item:hover .linonetwo-simple-layout-launcher-description {\\n\\tbackground: <<colour tiddler-info-background>>;\\n}\\n\\n/** Desktop, center it and add padding */\\n@media (min-width: <<sidebarbreakpoint>>) {\\n\\t.linonetwo-simple-layout-launcher-layout-container {\\n\\t\\tpadding: 100px;\\n\\t}\\n\\t.linonetwo-simple-layout-launcher-layout-container .linonetwo-simple-layout-launcher {\\n\\t\\tjustify-content: center;\\n\\t}\\n}\\n\\n.simple-layout-launcher-sidebar a {\\n\\tfill: <<colour sidebar-tiddler-link-foreground>>;\\n}\\n.simple-layout-launcher-sidebar a:hover {\\n\\tfill: <<colour sidebar-tiddler-link-foreground-hover>>;\\n}\\n\\n/** Mobile layout switcher, model is small can't change, so make item width 100% */\\n@media (max-width: <<sidebarbreakpoint>>) {\\n\\t.tc-modal:has(.tc-modal-body):has(div):has(p):has(.linonetwo-simple-layout-launcher) {\\n\\t\\twidth: 90%;\\n\\t}\\n}\\n\"},\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher\",\"tags\":\"$:/tags/Global\",\"text\":\"\\\\procedure on-click()\\n<!-- Close model, similar to click close button. -->\\n<$action-sendmessage $message=\\\"tm-close-tiddler\\\" />\\n\\\\end\\n\\n\\\\procedure simple-layout-launcher()\\n\\t\\\\whitespace trim\\n\\t<$linkcatcher to=\\\"$:/layout\\\" actions=<<on-click>> >\\n\\t\\t<div class=\\\"linonetwo-simple-layout-launcher\\\">\\n\\t\\t\\t<$list filter=\\\"[[$:/core/ui/PageTemplate]] [all[tiddlers+shadows]tag[$:/tags/Layout]]\\\">\\n\\t\\t\\t\\t<$set name=\\\"chosen-cls\\\" filter=\\\"[all[current]compare:eq{$:/layout}]\\\" value=\\\"linonetwo-simple-layout-launcher-item tc-chosen\\\" emptyValue=\\\"linonetwo-simple-layout-launcher-item\\\">\\n\\t\\t\\t\\t\\t<$link to={{!!title}}>\\n\\t\\t\\t\\t\\t\\t<div class=<<chosen-cls>>>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"linonetwo-simple-layout-launcher-icon\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"linonetwo-simple-layout-launcher-title\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"name\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t\\t<span class=\\\"linonetwo-simple-layout-launcher-description\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"description\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t</span>\\n\\t\\t\\t\\t\\t\\t</div>\\n\\t\\t\\t\\t\\t</$link>\\n\\t\\t\\t\\t</$set>\\n\\t\\t\\t</$list>\\n\\t\\t</div>\\n\\t</$linkcatcher>\\n\\\\end\"},\"$:/plugins/linonetwo/simple-layout-launcher/tree\":{\"title\":\"$:/plugins/linonetwo/simple-layout-launcher/tree\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/simple-layout-launcher/\\\">>\"}}}", "title": "$:/plugins/linonetwo/simple-layout-launcher", "type": "application/json", - "version": "0.5.2", - "Modern.TiddlyDev#SHA256-Hashed": "1bb9c1456752144d495dddf10102f4b4e8a57a57f9161f25a25f048cf019c82b" + "version": "0.6.0", + "Modern.TiddlyDev#SHA256-Hashed": "c7f9c6d416cb039c9f47d38513af25d45bc3c1d1d6211ec53ab60be02d8084c6" } ] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Description.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Description.tid new file mode 100644 index 0000000..1f09395 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Description +type: text/vnd.tiddlywiki + +Vanilla style layout launcher, with Metro style square button and large icon. \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Name.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Name.tid new file mode 100644 index 0000000..5b08f6f --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Name.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Name +type: text/vnd.tiddlywiki + +Simple Layout Launcher \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Readme.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Readme.tid new file mode 100644 index 0000000..ee5fc7f --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_Readme.tid @@ -0,0 +1,18 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/en-GB/Readme +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/ + +! <<lingo Name>> + +<<lingo Description>> + +!! Procedure + +This plugin provides a simple layout switcher which can be used with this procedure call: + +```tid +<<simple-layout-launcher>> +``` + +<<simple-layout-launcher>> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_ShortName.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_ShortName.tid new file mode 100644 index 0000000..e905aea --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_en-GB_ShortName.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/en-GB/ShortName +type: text/vnd.tiddlywiki + +SLL \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Description.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Description.tid new file mode 100644 index 0000000..1a5b015 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Description +type: text/vnd.tiddlywiki + +原生风格的布局启动器,带有地铁风格的方形按钮和大图标。 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Name.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Name.tid new file mode 100644 index 0000000..0fdc9e1 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Name.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Name +type: text/vnd.tiddlywiki + +简易布局启动器 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Readme.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Readme.tid new file mode 100644 index 0000000..5ebffb4 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_Readme.tid @@ -0,0 +1,18 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/Readme +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/ + +! <<lingo Name>> + +<<lingo Description>> + +!! 过程 + +本插件提供了一个简单的布局切换器,它可以通过这个过程调用来使用: + +```tid +<<simple-layout-launcher>> +``` + +<<simple-layout-launcher>> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_ShortName.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_ShortName.tid new file mode 100644 index 0000000..9190d3c --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_language_zh-Hans_ShortName.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/language/zh-Hans/ShortName +type: text/vnd.tiddlywiki + +简布局 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_readme.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_readme.tid new file mode 100644 index 0000000..ccfe1cc --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_readme.tid @@ -0,0 +1,6 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/readme +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/ + +<<lingo Readme>> diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_sidebar.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_sidebar.tid new file mode 100644 index 0000000..f294764 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_sidebar.tid @@ -0,0 +1,12 @@ +caption: <<lingo ShortName $:/plugins/linonetwo/simple-layout-launcher/language/>> +tags: $:/tags/SideBar +title: $:/plugins/linonetwo/simple-layout-launcher/sidebar +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/simple-layout-launcher/language/ + +!! <<lingo Name>> + +<div class="simple-layout-launcher-sidebar"> + <<simple-layout-launcher>> +</div> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher-layout-image.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher-layout-image.tid new file mode 100644 index 0000000..3d3dc4e --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher-layout-image.tid @@ -0,0 +1,9 @@ +tags: $:/tags/Image +title: $:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image +type: text/vnd.tiddlywiki + +\parameters (size:"22pt") +<svg width=<<size>> height=<<size>> class="tc-image-linonetwo-simple-layout tc-image-button" viewBox="0 0 24 24"> + <path d="M 4 3 C 4.552 3 5 3.448 5 4 L 5 20 C 5 20.552 4.552 21 4 21 C 3.448 21 3 20.552 3 20 L 3 4 C 3 3.448 3.448 3 4 3 Z" style="stroke: none; fill-rule: evenodd;"/> + <path d="M 10 8 L 18 8 C 18.757 8.044 19.633 8.391 20.121 8.879 C 20.609 9.367 20.956 10.243 21 11 L 21 13 C 20.956 13.757 20.609 14.633 20.121 15.121 C 19.633 15.609 18.757 15.956 18 16 L 10 16 C 9.243 15.956 8.367 15.609 7.879 15.121 C 7.391 14.633 7.044 13.757 7 13 L 7 11 C 7.044 10.243 7.391 9.367 7.879 8.879 C 8.367 8.391 9.243 8.044 10 8 Z M 9.293 10.293 C 9.057 10.529 8.956 10.652 9 11 L 9 13 C 8.956 13.348 9.057 13.471 9.293 13.707 C 9.529 13.943 9.652 14.044 10 14 L 18 14 C 18.348 14.044 18.471 13.943 18.707 13.707 C 18.943 13.471 19.044 13.348 19 13 L 19 11 C 19.044 10.652 18.943 10.529 18.707 10.293 C 18.471 10.057 18.348 9.956 18 10 L 10 10 C 9.652 9.956 9.529 10.057 9.293 10.293 Z" style="stroke: none; fill-rule: evenodd;"/> +</svg> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher-layout.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher-layout.tid new file mode 100644 index 0000000..9d62766 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher-layout.tid @@ -0,0 +1,28 @@ +description: <<lingo Description $:/plugins/linonetwo/simple-layout-launcher/language/>> +icon: $:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout-image +name: <<lingo Name $:/plugins/linonetwo/simple-layout-launcher/language/>> +tags: $:/tags/Layout +title: $:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher-layout +type: text/vnd.tiddlywiki + +\whitespace trim +\import [subfilter{$:/core/config/GlobalImportFilter}] +\define containerClasses() +tc-page-container tc-language-$(languageTitle)$ simple-layout-launcher-container +\end +\procedure redirected-navigate-actions() + <$action-setfield $tiddler="$:/layout" text="" $timestamp="no"> + <$action-navigate $to=<<event-navigateTo>> $scroll="yes" /> + </$action-setfield> +\end + +<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> + <$messagecatcher $tm-navigate=<<redirected-navigate-actions>>> + {{$:/core/ui/CommandPaletteTemplate}} + <div class=<<containerClasses>>> + <div class="linonetwo-simple-layout-launcher-layout-container"> + <<simple-layout-launcher>> + </div> + </div> + </$messagecatcher> +</$navigator> diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css new file mode 100644 index 0000000..def0d93 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css @@ -0,0 +1 @@ +.simple-layout-launcher-layout-container{width:100%;height:100%}.linonetwo-simple-layout-launcher{display:flex;flex-direction:row;width:100%;flex-wrap:wrap}.linonetwo-simple-layout-launcher-item{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;height:150px;aspect-ratio:1;padding:5px;margin:5px}@media (max-width:450px){.tc-modal-body:has(.linonetwo-simple-layout-launcher){padding:0}.linonetwo-simple-layout-launcher-item{height:100px}}@media (max-width:275px){.linonetwo-simple-layout-launcher-item{height:80px}}.linonetwo-simple-layout-launcher-title{display:flex;flex-direction:row;justify-content:center;align-items:center;width:100%;font-size:1.2em;height:2.4em}.linonetwo-simple-layout-launcher-icon{width:70%;aspect-ratio:1}.linonetwo-simple-layout-launcher-icon svg{width:100%;height:100%}.linonetwo-simple-layout-launcher-description{visibility:hidden;opacity:0;position:absolute;top:0;left:0;width:150px;transition:visibility,opacity .3s linear}.linonetwo-simple-layout-launcher-item:hover .linonetwo-simple-layout-launcher-description{visibility:visible;opacity:1}.linonetwo-simple-layout-launcher-item a{text-decoration:none} \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css.meta b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css.meta new file mode 100644 index 0000000..e2e2d79 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css.meta @@ -0,0 +1,3 @@ +tags: $:/tags/Stylesheet +title: $:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css +type: text/css \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css.variable.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css.variable.tid new file mode 100644 index 0000000..528a087 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.css.variable.tid @@ -0,0 +1,33 @@ +tags: $:/tags/Stylesheet +title: $:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher.css.variable +type: text/vnd.tiddlywiki + +\import [[$:/themes/tiddlywiki/vanilla/base]] + +.linonetwo-simple-layout-launcher-item:hover .linonetwo-simple-layout-launcher-description { + background: <<colour tiddler-info-background>>; +} + +/** Desktop, center it and add padding */ +@media (min-width: <<sidebarbreakpoint>>) { + .linonetwo-simple-layout-launcher-layout-container { + padding: 100px; + } + .linonetwo-simple-layout-launcher-layout-container .linonetwo-simple-layout-launcher { + justify-content: center; + } +} + +.simple-layout-launcher-sidebar a { + fill: <<colour sidebar-tiddler-link-foreground>>; +} +.simple-layout-launcher-sidebar a:hover { + fill: <<colour sidebar-tiddler-link-foreground-hover>>; +} + +/** Mobile layout switcher, model is small can't change, so make item width 100% */ +@media (max-width: <<sidebarbreakpoint>>) { + .tc-modal:has(.tc-modal-body):has(div):has(p):has(.linonetwo-simple-layout-launcher) { + width: 90%; + } +} diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.tid new file mode 100644 index 0000000..6bb6102 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_simple-layout-launcher.tid @@ -0,0 +1,33 @@ +tags: $:/tags/Global +title: $:/plugins/linonetwo/simple-layout-launcher/simple-layout-launcher +type: text/vnd.tiddlywiki + +\procedure on-click() +<!-- Close model, similar to click close button. --> +<$action-sendmessage $message="tm-close-tiddler" /> +\end + +\procedure simple-layout-launcher() + \whitespace trim + <$linkcatcher to="$:/layout" actions=<<on-click>> > + <div class="linonetwo-simple-layout-launcher"> + <$list filter="[[$:/core/ui/PageTemplate]] [all[tiddlers+shadows]tag[$:/tags/Layout]]"> + <$set name="chosen-cls" filter="[all[current]compare:eq{$:/layout}]" value="linonetwo-simple-layout-launcher-item tc-chosen" emptyValue="linonetwo-simple-layout-launcher-item"> + <$link to={{!!title}}> + <div class=<<chosen-cls>>> + <span class="linonetwo-simple-layout-launcher-icon"> + <$transclude tiddler={{{ [<currentTiddler>get[icon]] }}}/> + </span> + <span class="linonetwo-simple-layout-launcher-title"> + <$transclude field="name"/> + </span> + <span class="linonetwo-simple-layout-launcher-description"> + <$transclude field="description"/> + </span> + </div> + </$link> + </$set> + </$list> + </div> + </$linkcatcher> +\end \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_simple-layout-launcher_tree.tid b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_tree.tid new file mode 100644 index 0000000..67bd9a8 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_simple-layout-launcher_tree.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/simple-layout-launcher/tree +type: text/vnd.tiddlywiki + +<<tree prefix:"$:/plugins/linonetwo/simple-layout-launcher/">> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_tidgi-external-attachments.json b/tiddlers/$__plugins_linonetwo_tidgi-external-attachments.json index 8b981db..29db745 100644 --- a/tiddlers/$__plugins_linonetwo_tidgi-external-attachments.json +++ b/tiddlers/$__plugins_linonetwo_tidgi-external-attachments.json @@ -1 +1,15 @@ -{"author":"LinOnetwo","dependents":"","description":"External attachments for TidGi Desktop App, drag&drop image/binary file to wiki, and become skinny tiddler (a pointer to actural file). ","list":"readme settings tree","name":"External Attachments for TidGi app","plugin-type":"plugin","text":"{\"tiddlers\":{\"$:/config/ExternalAttachments/Enable\":{\"title\":\"$:/config/ExternalAttachments/Enable\",\"text\":\"yes\"},\"$:/config/ExternalAttachments/DisableForImage\":{\"title\":\"$:/config/ExternalAttachments/DisableForImage\",\"text\":\"yes\"},\"$:/config/ExternalAttachments/MoveToWikiFolder\":{\"title\":\"$:/config/ExternalAttachments/MoveToWikiFolder\",\"text\":\"yes\"},\"$:/config/ExternalAttachments/WikiFolderToMove\":{\"title\":\"$:/config/ExternalAttachments/WikiFolderToMove\",\"text\":\"files\"},\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\":{\"title\":\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\",\"text\":\"no\"},\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\":{\"title\":\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\",\"text\":\"yes\"},\"$:/plugins/linonetwo/tidgi-external-attachments/readme/en-GB\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/readme/en-GB\",\"text\":\"!! Introduction\\n\\nThis plugin provides support for importing tiddlers as external attachments.\\n\\nOn the TidGi App, you can choose to import the binary large file as a 'reference tiddler', which means that the tiddler will refer to the original file via the ''_canonical_uri'' field, while itself will be almost an empty file, thus saving storage space in the Wiki. This reduces the size of the wiki and thus improves performance. However, it does mean that the wiki is no longer fully self-contained.\\n\\n!! Compatibility\\n\\nThis plugin only works when using TiddlyWiki with platforms such as TiddlyDesktop/TidGi Desktop that support the ''path'' attribute for imported/dragged files (provided by app). And also need the app supports `file://` protocol of link.\\n\\n!!! Absolute `file://` link\\n\\nTidGi supports link and `_canonical_uri` to use `file://` prefix (or `open://`, both works the same), for example:\\n\\n```wikitext\\n[ext[Some External File Link with CJK character|file:///Users/linonetwo/Downloads/(OCRed)奖励的惩罚 ((美)科恩著) (Z-Library).pdf]]\\n\\n[ext[An External Folder Link|file:///Users/linonetwo/Downloads/]]\\n```\\n\\nSo when you drag a file into TidGi app, `_canonical_uri` created by this plugin will also prefixed by `file://`.\\n\\nThis prefix looks like `file:///` because absolute paths usually start with `/`, plus two slashes for `file://`, so it looks like three slashes.\\n\\n!!! Relative `file://` link\\n\\nTidGi also supports relative path in your wiki folder. Starting with `file://` and directly followed by a folder name or file name is a relative path, e.g:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://tiddlers/]]\\n```\\n\\nYou can also use `. /` to explicitly indicate that this is a relative path:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://./files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://./tiddlers/]]\\n```\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc}}\"},\"$:/plugins/linonetwo/tidgi-external-attachments/readme/zh-Hans\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/readme/zh-Hans\",\"text\":\"!! 简介\\n\\n这个插件提供了把大文件作为「外部附件」导入太记 App,变成「引用条目」的功能\\n\\n在太记 App 上,你可以选择将二进制大文件作为「引用条目」导入,也就是这个条目会通过 ''_canonical_uri'' 字段引用原始文件,它自身则几乎是个空文件,因此可以节省 Wiki 的存储空间,并提高加载的性能。然而,这也意味着 Wiki 不再是完全独立的了,需要依赖外部文件。\\n\\n!! 兼容性\\n\\n这个插件只在太记 App 桌面版上使用时有效,它支持拖曳导入文件时提供''路径''属性(由应用内的代码提供)。而且还需要应用程序支持 `file://` 协议的链接。\\n\\n!!! 绝对路径 `file://` 链接\\n\\n太记支持在链接和 `_canonical_uri` 字段里使用 `file://` 前缀(或 `open://`,两者效果相同):\\n\\n```wikitext\\n[ext[一个带有中文字符的文件例子|file:///Users/linonetwo/Downloads/(OCRed)奖励的惩罚 ((美)科恩著) (Z-Library).pdf]]\\n\\n[ext[打开外部文件夹的链接|file:///Users/linonetwo/Downloads/]]\\n```\\n\\n因此,当你把一个文件拖入太记时,这个插件创建的 `_canonical_uri` 也将以 `file://` 为前缀。\\n\\n这个前缀看起来像是 `file:///`,是因为绝对路径一般以 `/` 开始,再加上 `file://` 的两个斜杠,所以看起来像是三个斜杠。\\n\\n!!! 相对路径 `file://` 链接\\n\\n太记还支持你的 Wiki 文件夹中的相对路径,以 `file://` 开头并直接跟上文件夹名或文件名,就是相对路径,例如:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://tiddlers/]]\\n```\\n\\n也可以用 `./` 明显地表示这是一个相对路径:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://./files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://./tiddlers/]]\\n```\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc}}\\n\\n!! 解决问题\\n\\n!!! 无法加载文件\\n\\n如果你从 Wiki 文件夹根目录拖进太记的文件无法加载,那么可以试试使用带 `./` 的相对路径。例如进入编辑模式,将 `file://A File.pdf` 这样的路径,改为 `file://./A File.pdf` 这样,可能就修复了。\"},\"$:/plugins/linonetwo/tidgi-external-attachments/readme\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/readme\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\\n\\t<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/readme/zh-Hans}}\\n\\n\\t</$list>\\n\\n\\t<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/readme/en-GB}}\\n\\n\\t</$list>\\n\\n</$list>\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/settings-caption\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/settings-caption\",\"text\":\"\\\\whitespace trim\\n\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\\t<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\t\\t<$transclude tiddler=\\\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans\\\" field=\\\"caption\\\" />\\n\\t</$list>\\n\\n\\t<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\t\\t<$transclude tiddler=\\\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB\\\" field=\\\"caption\\\" />\\n\\t</$list>\\n</$list>\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc\",\"text\":\"!! Config Description\\n\\nBy default, after dragging a large file into the TidGi App, the 'reference tiddler' will use the 'absolute path' to reference the file. For example, if you drag in a PDF from your Windows desktop, the ''_canonical_uri'' field in the Reference tiddler will be filled in with the path to the PDF on your C drive desktop, so if you open the Wiki on a different computer, or delete the PDF on your desktop, the Reference tiddler in the Wiki will failed to open.\\n\\nYou can choose to use the \\\"relative path\\\" to solve this problem. There is a configuration \\\"Use absolute paths for attachments ''outside'' the Wiki folder\\\", by default is on, it means that drag-in the file on your desktop will use a absolute path reference, but also when drag-in a files in your wiki folder, it will use a relative path reference.\\n\\nSo you can firstly create a `files` folder in the Wiki folder, and then drag the PDF into that folder, and then drag the PDF in that folder into the TidGi App, imported as a \\\"reference tiddler\\\". Then even you open the Wiki on a different computer, the file in that in-Wiki folder can still be opened. Of course, you have to keep another configuration \\\"use absolute path reference file ''within'' the Wiki folder (not recommended)\\\" off, it also said that this config is \\\"not recommended to open\\\", it's only for special circumstances.\\n\\nIf you check \\\"Automatically move imported files to the Wiki folder\\\", then at the moment when the file is dragged into TidGi, it will automatically move the file to the Wiki folder, so you don't need to move the file manually. However, if you cancel the import at this time, the file will not be returned to its original location, you need to manually handle the moved file.\\n\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB\",\"caption\":\"ExtAttach\",\"text\":\"!! Configs\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/Enable\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/Enable\\\">Enable importing binary files as external attachments</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/DisableForImage\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/DisableForImage\\\">Disable this plugin when importing images</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\">Automatically move imported files to the Wiki folder</$link> </$checkbox>\\n\\n<%if [{$:/config/ExternalAttachments/MoveToWikiFolder}match[yes]] %>\\n\\n <$edit-text tiddler=\\\"$:/config/ExternalAttachments/WikiFolderToMove\\\" tabindex=-1 focus=false cancelPopups=\\\"yes\\\" fileDrop=no tag=\\\"input\\\" /> Automatically move files to this folder inside the Wiki folder\\n\\n<% else %>\\n\\n <$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\">\\n <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\">\\n Use absolute paths for attachments ''outside'' the Wiki folder (anywhere on the computer)\\n </$link>\\n </$checkbox>\\n\\n<% endif %>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\">Use absolute paths for descendent attachments (inside wiki folder)</$link> </$checkbox>\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc}}\\n\\n!! Trouble Shooting\\n\\n!!! Unable to load a file\\n\\nIf you drag in a file from the root of your Wiki folder and it doesn't load, then try using a relative path with `. /` as a prefix. For example, go into edit mode and change a path from `file://A File.pdf` to a path like `file://./A File.pdf` then it may be fixed.\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc\",\"text\":\"!! 说明\\n\\n默认情况下,将大文件拖入太记 App 后,「引用条目」会使用「绝对路径」来引用该文件。例如你把 Windows 桌面上的 PDF 拖进来,「引用条目」里的 ''_canonical_uri'' 字段会填写 C 盘桌面上 PDF 的路径,这样如果你换了台电脑打开 Wiki,或把桌面上的 PDF 删了,在 Wiki 里的「引用条目」也会打不开。\\n\\n你可以选择使用「相对路径」来解决这个问题。上面有个配置「为 Wiki 文件夹''外''的附件使用绝对路径」,默认是开启的,它的意思是你桌面上的文件它会用绝对路径引用,而 Wiki 文件夹里的文件它会用相对路径引用。\\n\\n所以你可以先在 Wiki 文件夹里创建一个 `files` 文件夹,然后先把 PDF 拖进那个文件夹,再把那个文件夹里的 PDF 拖进太记 App 里,作为「引用条目」导入。这样你换了台电脑打开 Wiki,之前桌面上的文件打不开,但放在 Wiki 文件夹里任何文件夹里的文件还是可以打开的。当然,你得保持另一个配置「使用绝对路径引用 Wiki 文件夹''内''的文件(不推荐开启)」是关闭的,它也说了自己「不推荐开启」,仅供特殊情况使用。\\n\\n如果勾选了「自动将拖入的文件移动到 Wiki 文件夹内」,则在文件拖入太微的那一瞬间,就会自动将文件移动到 Wiki 文件夹内,这样你就不用手动移动文件了。不过注意的是,如果这时候取消导入,文件也不会被放回原处,你需要手动处理一下移过去的文件。\\n\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans\",\"caption\":\"外部附件\",\"text\":\"!! 配置项\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/Enable\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/Enable\\\" >启用本插件,将拖入的二进制文件都作为「引用条目」导入</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/DisableForImage\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/DisableForImage\\\">在拖入图片时不启用本插件</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\">自动将拖入的文件移动到 Wiki 文件夹内</$link> </$checkbox>\\n\\n<%if [{$:/config/ExternalAttachments/MoveToWikiFolder}match[yes]] %>\\n\\n <$edit-text tiddler=\\\"$:/config/ExternalAttachments/WikiFolderToMove\\\" tabindex=-1 focus=false cancelPopups=\\\"yes\\\" fileDrop=no tag=\\\"input\\\" /> 自动移动文件到 Wiki 文件夹里的这个文件夹里\\n\\n<% else %>\\n\\n <$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\">\\n <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\">\\n 为 Wiki 文件夹''外''的附件使用绝对路径(文件在电脑上的任何地方)\\n </$link>\\n </$checkbox>\\n\\n<% endif %>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\">使用绝对路径引用 Wiki 文件夹''内''的文件(不推荐开启)</$link> </$checkbox>\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc}}\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"caption\":\"{{$:/plugins/linonetwo/tidgi-external-attachments/settings/settings-caption}}\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\\n\\t<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\t\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans}}\\n\\n\\t</$list>\\n\\n\\t<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\t\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB}}\\n\\n\\t</$list>\\n\\n</$list>\"},\"$:/plugins/linonetwo/tidgi-external-attachments/tree\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/tree\",\"caption\":\"{{$:/language/SideBar/Explorer/Caption}}\",\"text\":\"<<tree \\\"$:/plugins/linonetwo/tidgi-external-attachments/\\\">>\\n\"},\"$:/plugins/linonetwo/tidgi-external-attachments/startup.js\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/startup.js\",\"type\":\"application/javascript\",\"module-type\":\"startup\",\"Modern.TiddlyDev#Origin\":\"startup.ts\",\"text\":\"\\\"use strict\\\";var ENABLE_EXTERNAL_ATTACHMENTS_TITLE=\\\"$:/config/ExternalAttachments/Enable\\\",DISSABLE_FOR_IMAGE_TITLE=\\\"$:/config/ExternalAttachments/DisableForImage\\\",USE_ABSOLUTE_FOR_DESCENDENTS_TITLE=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\",USE_ABSOLUTE_FOR_NON_DESCENDENTS_TITLE=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\",MOVE_TO_WIKI_FOLDER_TITLE=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\",WIKI_FOLDER_TO_MOVE_TITLE=\\\"$:/config/ExternalAttachments/WikiFolderToMove\\\";function joinPaths(...e){let t=e.join(\\\"/\\\");return t=$tw.platform.isWindows?t.replaceAll(\\\"/\\\",\\\"\\\\\\\\\\\"):t}function basePath(e){return $tw.platform.isWindows?e.split(\\\"\\\\\\\\\\\").pop()||\\\"\\\":e.split(\\\"/\\\").pop()||\\\"\\\"}function makePathRelative(e,t,n={}){const i=(e=$tw.platform.isWindows&&\\\"//\\\"===(e=\\\"/\\\"!==(e=e.replaceAll(\\\"\\\\\\\\\\\",\\\"/\\\")).charAt(0)?\\\"/\\\"+e:e).substring(0,2)?e.substring(1):e).split(\\\"/\\\");var o=t.split(\\\"/\\\"),s=[];$tw.platform.isMac&&\\\"private\\\"===i[1]&&i.splice(1,1),$tw.utils.each(i,function(e,t){i[t]=encodeURI(e)});let r=0;for(;r<i.length&&r<o.length&&i[r]===o[r];)r+=1;if(1===r||n.useAbsoluteForNonDescendents&&r<o.length||n.useAbsoluteForDescendents&&r===o.length)return e;let a=0;for(a=r;a<o.length-1;a++)s.push(\\\"..\\\");for(a=r;a<i.length;a++)s.push(i[a]);return s.join(\\\"/\\\")}exports.name=\\\"tidgi-external-attachments\\\",exports.platforms=[\\\"browser\\\"],exports.after=[\\\"startup\\\"],exports.synchronous=!0,exports.startup=function(){var e;\\\"undefined\\\"!=typeof window&&\\\"function\\\"==typeof window.meta&&(e=window?.meta?.()?.workspaceID)&&window?.service?.workspace?.get(e).then(e=>{const o=e?.wikiFolderLocation;o&&$tw.hooks.addHook(\\\"th-importing-file\\\",function(e){var t,n;if(e.type.startsWith(\\\"image\\\")&&\\\"yes\\\"===$tw.wiki.getTiddlerText(DISSABLE_FOR_IMAGE_TITLE,\\\"\\\"))return!1;let i=window.remote?.getPathForFile?.(e.file);return!(!e.isBinary||!i||\\\"yes\\\"!==$tw.wiki.getTiddlerText(ENABLE_EXTERNAL_ATTACHMENTS_TITLE,\\\"\\\")||(\\\"yes\\\"===$tw.wiki.getTiddlerText(MOVE_TO_WIKI_FOLDER_TITLE,\\\"\\\")&&(t=$tw.wiki.getTiddlerText(WIKI_FOLDER_TO_MOVE_TITLE,\\\"\\\"),n=i,t=joinPaths(o,t,basePath(i)),i=t,window.service?.[\\\"native\\\"]?.movePath?.(n,t,{fileToDir:!0})),n=makePathRelative(i,o,{useAbsoluteForNonDescendents:\\\"yes\\\"===$tw.wiki.getTiddlerText(USE_ABSOLUTE_FOR_NON_DESCENDENTS_TITLE,\\\"\\\"),useAbsoluteForDescendents:\\\"yes\\\"===$tw.wiki.getTiddlerText(USE_ABSOLUTE_FOR_DESCENDENTS_TITLE,\\\"\\\")}),e.callback([{title:e.file.name,type:e.type,_canonical_uri:n=\\\"file://\\\"+n}]),0))})})};\"}}}","title":"$:/plugins/linonetwo/tidgi-external-attachments","type":"application/json","version":"1.3.0","Modern.TiddlyDev#SHA256-Hashed":"7b18d6c6a6df3cf891464c4784bf843f9728da6aa9a5e82bd2d19033cdca8819"} \ No newline at end of file +[ + { + "author": "LinOnetwo", + "dependents": "", + "description": "External attachments for TidGi Desktop App, drag&drop image/binary file to wiki, and become skinny tiddler (a pointer to actural file). ", + "list": "readme settings tree", + "name": "External Attachments for TidGi app", + "plugin-type": "plugin", + "text": "{\"tiddlers\":{\"$:/config/ExternalAttachments/Enable\":{\"title\":\"$:/config/ExternalAttachments/Enable\",\"text\":\"yes\"},\"$:/config/ExternalAttachments/DisableForImage\":{\"title\":\"$:/config/ExternalAttachments/DisableForImage\",\"text\":\"no\"},\"$:/config/ExternalAttachments/MoveToWikiFolder\":{\"title\":\"$:/config/ExternalAttachments/MoveToWikiFolder\",\"text\":\"yes\"},\"$:/config/ExternalAttachments/WikiFolderToMove\":{\"title\":\"$:/config/ExternalAttachments/WikiFolderToMove\",\"text\":\"files\"},\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\":{\"title\":\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\",\"text\":\"no\"},\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\":{\"title\":\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\",\"text\":\"yes\"},\"$:/plugins/linonetwo/tidgi-external-attachments/readme/en-GB\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/readme/en-GB\",\"text\":\"!! Introduction\\n\\nThis plugin provides support for importing tiddlers as external attachments.\\n\\nOn the TidGi App, you can choose to import the binary large file as a 'reference tiddler', which means that the tiddler will refer to the original file via the ''_canonical_uri'' field, while itself will be almost an empty file, thus saving storage space in the Wiki. This reduces the size of the wiki and thus improves performance. However, it does mean that the wiki is no longer fully self-contained.\\n\\n!! Compatibility\\n\\nThis plugin only works when using TiddlyWiki with platforms such as TiddlyDesktop/TidGi Desktop that support the ''path'' attribute for imported/dragged files (provided by app). And also need the app supports `file://` protocol of link.\\n\\n!!! Absolute `file://` link\\n\\nTidGi supports link and `_canonical_uri` to use `file://` prefix (or `open://`, both works the same), for example:\\n\\n```wikitext\\n[ext[Some External File Link with CJK character|file:///Users/linonetwo/Downloads/(OCRed)奖励的惩罚 ((美)科恩著) (Z-Library).pdf]]\\n\\n[ext[An External Folder Link|file:///Users/linonetwo/Downloads/]]\\n```\\n\\nSo when you drag a file into TidGi app, `_canonical_uri` created by this plugin will also prefixed by `file://`.\\n\\nThis prefix looks like `file:///` because absolute paths usually start with `/`, plus two slashes for `file://`, so it looks like three slashes.\\n\\n!!! Relative `file://` link\\n\\nTidGi also supports relative path in your wiki folder. Starting with `file://` and directly followed by a folder name or file name is a relative path, e.g:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://tiddlers/]]\\n```\\n\\nYou can also use `. /` to explicitly indicate that this is a relative path:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://./files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://./tiddlers/]]\\n```\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc}}\"},\"$:/plugins/linonetwo/tidgi-external-attachments/readme/zh-Hans\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/readme/zh-Hans\",\"text\":\"!! 简介\\n\\n这个插件提供了把大文件作为「外部附件」导入太记 App,变成「引用条目」的功能\\n\\n在太记 App 上,你可以选择将二进制大文件作为「引用条目」导入,也就是这个条目会通过 ''_canonical_uri'' 字段引用原始文件,它自身则几乎是个空文件,因此可以节省 Wiki 的存储空间,并提高加载的性能。然而,这也意味着 Wiki 不再是完全独立的了,需要依赖外部文件。\\n\\n!! 兼容性\\n\\n这个插件只在太记 App 桌面版上使用时有效,它支持拖曳导入文件时提供''路径''属性(由应用内的代码提供)。而且还需要应用程序支持 `file://` 协议的链接。\\n\\n!!! 绝对路径 `file://` 链接\\n\\n太记支持在链接和 `_canonical_uri` 字段里使用 `file://` 前缀(或 `open://`,两者效果相同):\\n\\n```wikitext\\n[ext[一个带有中文字符的文件例子|file:///Users/linonetwo/Downloads/(OCRed)奖励的惩罚 ((美)科恩著) (Z-Library).pdf]]\\n\\n[ext[打开外部文件夹的链接|file:///Users/linonetwo/Downloads/]]\\n```\\n\\n因此,当你把一个文件拖入太记时,这个插件创建的 `_canonical_uri` 也将以 `file://` 为前缀。\\n\\n这个前缀看起来像是 `file:///`,是因为绝对路径一般以 `/` 开始,再加上 `file://` 的两个斜杠,所以看起来像是三个斜杠。\\n\\n!!! 相对路径 `file://` 链接\\n\\n太记还支持你的 Wiki 文件夹中的相对路径,以 `file://` 开头并直接跟上文件夹名或文件名,就是相对路径,例如:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://tiddlers/]]\\n```\\n\\n也可以用 `./` 明显地表示这是一个相对路径:\\n\\n```wikitext\\n[ext[PDF in the files folder|file://./files/A File.pdf]]\\n\\n[ext[Open the tiddlers folder|file://./tiddlers/]]\\n```\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc}}\\n\\n!! 解决问题\\n\\n!!! 无法加载文件\\n\\n如果你从 Wiki 文件夹根目录拖进太记的文件无法加载,那么可以试试使用带 `./` 的相对路径。例如进入编辑模式,将 `file://A File.pdf` 这样的路径,改为 `file://./A File.pdf` 这样,可能就修复了。\"},\"$:/plugins/linonetwo/tidgi-external-attachments/readme\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/readme\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\\n\\t<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/readme/zh-Hans}}\\n\\n\\t</$list>\\n\\n\\t<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/readme/en-GB}}\\n\\n\\t</$list>\\n\\n</$list>\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/settings-caption\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/settings-caption\",\"text\":\"\\\\whitespace trim\\n\\n<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\\t<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\t\\t<$transclude tiddler=\\\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans\\\" field=\\\"caption\\\" />\\n\\t</$list>\\n\\n\\t<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\t\\t<$transclude tiddler=\\\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB\\\" field=\\\"caption\\\" />\\n\\t</$list>\\n</$list>\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc\",\"text\":\"!! Config Description\\n\\nBy default, after dragging a large file into the TidGi App, the 'reference tiddler' will use the 'absolute path' to reference the file. For example, if you drag in a PDF from your Windows desktop, the ''_canonical_uri'' field in the Reference tiddler will be filled in with the path to the PDF on your C drive desktop, so if you open the Wiki on a different computer, or delete the PDF on your desktop, the Reference tiddler in the Wiki will failed to open.\\n\\nYou can choose to use the \\\"relative path\\\" to solve this problem. There is a configuration \\\"Use absolute paths for attachments ''outside'' the Wiki folder\\\", by default is on, it means that drag-in the file on your desktop will use a absolute path reference, but also when drag-in a files in your wiki folder, it will use a relative path reference.\\n\\nSo you can firstly create a `files` folder in the Wiki folder, and then drag the PDF into that folder, and then drag the PDF in that folder into the TidGi App, imported as a \\\"reference tiddler\\\". Then even you open the Wiki on a different computer, the file in that in-Wiki folder can still be opened. Of course, you have to keep another configuration \\\"use absolute path reference file ''within'' the Wiki folder (not recommended)\\\" off, it also said that this config is \\\"not recommended to open\\\", it's only for special circumstances.\\n\\nIf you check \\\"Automatically move imported files to the Wiki folder\\\", then at the moment when the file is dragged into TidGi, it will automatically move the file to the Wiki folder, so you don't need to move the file manually. However, if you cancel the import at this time, the file will not be returned to its original location, you need to manually handle the moved file.\\n\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB\",\"caption\":\"ExtAttach\",\"text\":\"!! Configs\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/Enable\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/Enable\\\">Enable importing binary files as external attachments</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/DisableForImage\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/DisableForImage\\\">Disable this plugin when importing images</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\">Automatically move imported files to the Wiki folder</$link> </$checkbox>\\n\\n<%if [{$:/config/ExternalAttachments/MoveToWikiFolder}match[yes]] %>\\n\\n <$edit-text tiddler=\\\"$:/config/ExternalAttachments/WikiFolderToMove\\\" tabindex=-1 focus=false cancelPopups=\\\"yes\\\" fileDrop=no tag=\\\"input\\\" /> Automatically move files to this folder inside the Wiki folder\\n\\n<% else %>\\n\\n <$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\">\\n <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\">\\n Use absolute paths for attachments ''outside'' the Wiki folder (anywhere on the computer)\\n </$link>\\n </$checkbox>\\n\\n<% endif %>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\">Use absolute paths for descendent attachments (inside wiki folder)</$link> </$checkbox>\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB-desc}}\\n\\n!! Trouble Shooting\\n\\n!!! Unable to load a file\\n\\nIf you drag in a file from the root of your Wiki folder and it doesn't load, then try using a relative path with `. /` as a prefix. For example, go into edit mode and change a path from `file://A File.pdf` to a path like `file://./A File.pdf` then it may be fixed.\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc\",\"text\":\"!! 说明\\n\\n默认情况下,将大文件拖入太记 App 后,「引用条目」会使用「绝对路径」来引用该文件。例如你把 Windows 桌面上的 PDF 拖进来,「引用条目」里的 ''_canonical_uri'' 字段会填写 C 盘桌面上 PDF 的路径,这样如果你换了台电脑打开 Wiki,或把桌面上的 PDF 删了,在 Wiki 里的「引用条目」也会打不开。\\n\\n你可以选择使用「相对路径」来解决这个问题。上面有个配置「为 Wiki 文件夹''外''的附件使用绝对路径」,默认是开启的,它的意思是你桌面上的文件它会用绝对路径引用,而 Wiki 文件夹里的文件它会用相对路径引用。\\n\\n所以你可以先在 Wiki 文件夹里创建一个 `files` 文件夹,然后先把 PDF 拖进那个文件夹,再把那个文件夹里的 PDF 拖进太记 App 里,作为「引用条目」导入。这样你换了台电脑打开 Wiki,之前桌面上的文件打不开,但放在 Wiki 文件夹里任何文件夹里的文件还是可以打开的。当然,你得保持另一个配置「使用绝对路径引用 Wiki 文件夹''内''的文件(不推荐开启)」是关闭的,它也说了自己「不推荐开启」,仅供特殊情况使用。\\n\\n如果勾选了「自动将拖入的文件移动到 Wiki 文件夹内」,则在文件拖入太微的那一瞬间,就会自动将文件移动到 Wiki 文件夹内,这样你就不用手动移动文件了。不过注意的是,如果这时候取消导入,文件也不会被放回原处,你需要手动处理一下移过去的文件。\\n\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans\",\"caption\":\"外部附件\",\"text\":\"!! 配置项\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/Enable\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/Enable\\\" >启用本插件,将拖入的二进制文件都作为「引用条目」导入</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/DisableForImage\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/DisableForImage\\\">在拖入图片时不启用本插件</$link> </$checkbox>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\">自动将拖入的文件移动到 Wiki 文件夹内</$link> </$checkbox>\\n\\n<%if [{$:/config/ExternalAttachments/MoveToWikiFolder}match[yes]] %>\\n\\n <$edit-text tiddler=\\\"$:/config/ExternalAttachments/WikiFolderToMove\\\" tabindex=-1 focus=false cancelPopups=\\\"yes\\\" fileDrop=no tag=\\\"input\\\" /> 自动移动文件到 Wiki 文件夹里的这个文件夹里\\n\\n<% else %>\\n\\n <$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\">\\n <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\">\\n 为 Wiki 文件夹''外''的附件使用绝对路径(文件在电脑上的任何地方)\\n </$link>\\n </$checkbox>\\n\\n<% endif %>\\n\\n<$checkbox tiddler=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> <$link to=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\">使用绝对路径引用 Wiki 文件夹''内''的文件(不推荐开启)</$link> </$checkbox>\\n\\n{{$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans-desc}}\"},\"$:/plugins/linonetwo/tidgi-external-attachments/settings\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/settings\",\"tags\":\"$:/tags/ControlPanel/SettingsTab\",\"caption\":\"{{$:/plugins/linonetwo/tidgi-external-attachments/settings/settings-caption}}\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n\\n\\t<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\t\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/settings/zh-Hans}}\\n\\n\\t</$list>\\n\\n\\t<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\t\\n\\t\\t{{$:/plugins/linonetwo/tidgi-external-attachments/settings/en-GB}}\\n\\n\\t</$list>\\n\\n</$list>\"},\"$:/plugins/linonetwo/tidgi-external-attachments/tree\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/tree\",\"caption\":\"{{$:/language/SideBar/Explorer/Caption}}\",\"text\":\"<<tree \\\"$:/plugins/linonetwo/tidgi-external-attachments/\\\">>\\n\"},\"$:/plugins/linonetwo/tidgi-external-attachments/startup.js\":{\"title\":\"$:/plugins/linonetwo/tidgi-external-attachments/startup.js\",\"type\":\"application/javascript\",\"module-type\":\"startup\",\"Modern.TiddlyDev#Origin\":\"startup.ts\",\"text\":\"\\\"use strict\\\";var ENABLE_EXTERNAL_ATTACHMENTS_TITLE=\\\"$:/config/ExternalAttachments/Enable\\\",DISSABLE_FOR_IMAGE_TITLE=\\\"$:/config/ExternalAttachments/DisableForImage\\\",USE_ABSOLUTE_FOR_DESCENDENTS_TITLE=\\\"$:/config/ExternalAttachments/UseAbsoluteForDescendents\\\",USE_ABSOLUTE_FOR_NON_DESCENDENTS_TITLE=\\\"$:/config/ExternalAttachments/UseAbsoluteForNonDescendents\\\",MOVE_TO_WIKI_FOLDER_TITLE=\\\"$:/config/ExternalAttachments/MoveToWikiFolder\\\",WIKI_FOLDER_TO_MOVE_TITLE=\\\"$:/config/ExternalAttachments/WikiFolderToMove\\\";function joinPaths(...e){let t=e.join(\\\"/\\\");return t=$tw.platform.isWindows?t.replaceAll(\\\"/\\\",\\\"\\\\\\\\\\\"):t}function basePath(e){return $tw.platform.isWindows?e.split(\\\"\\\\\\\\\\\").pop()||\\\"\\\":e.split(\\\"/\\\").pop()||\\\"\\\"}function makePathRelative(e,t,n={}){const i=(e=$tw.platform.isWindows&&\\\"//\\\"===(e=\\\"/\\\"!==(e=e.replaceAll(\\\"\\\\\\\\\\\",\\\"/\\\")).charAt(0)?\\\"/\\\"+e:e).substring(0,2)?e.substring(1):e).split(\\\"/\\\");var o=t.split(\\\"/\\\"),s=[];$tw.platform.isMac&&\\\"private\\\"===i[1]&&i.splice(1,1),$tw.utils.each(i,function(e,t){i[t]=encodeURI(e)});let r=0;for(;r<i.length&&r<o.length&&i[r]===o[r];)r+=1;if(1===r||n.useAbsoluteForNonDescendents&&r<o.length||n.useAbsoluteForDescendents&&r===o.length)return e;let a=0;for(a=r;a<o.length-1;a++)s.push(\\\"..\\\");for(a=r;a<i.length;a++)s.push(i[a]);return s.join(\\\"/\\\")}exports.name=\\\"tidgi-external-attachments\\\",exports.platforms=[\\\"browser\\\"],exports.after=[\\\"startup\\\"],exports.synchronous=!0,exports.startup=function(){var e;\\\"undefined\\\"!=typeof window&&\\\"function\\\"==typeof window.meta&&(e=window?.meta?.()?.workspaceID)&&window?.service?.workspace?.get(e).then(e=>{const o=e?.wikiFolderLocation;o&&$tw.hooks.addHook(\\\"th-importing-file\\\",function(e){var t,n;if(e.type.startsWith(\\\"image\\\")&&\\\"yes\\\"===$tw.wiki.getTiddlerText(DISSABLE_FOR_IMAGE_TITLE,\\\"\\\"))return!1;let i=window.remote?.getPathForFile?.(e.file);return!(!e.isBinary||!i||\\\"yes\\\"!==$tw.wiki.getTiddlerText(ENABLE_EXTERNAL_ATTACHMENTS_TITLE,\\\"\\\")||(\\\"yes\\\"===$tw.wiki.getTiddlerText(MOVE_TO_WIKI_FOLDER_TITLE,\\\"\\\")&&(t=$tw.wiki.getTiddlerText(WIKI_FOLDER_TO_MOVE_TITLE,\\\"\\\"),n=i,t=joinPaths(o,t,basePath(i)),i=t,window.service?.[\\\"native\\\"]?.movePath?.(n,t,{fileToDir:!0})),n=makePathRelative(i,o,{useAbsoluteForNonDescendents:\\\"yes\\\"===$tw.wiki.getTiddlerText(USE_ABSOLUTE_FOR_NON_DESCENDENTS_TITLE,\\\"\\\"),useAbsoluteForDescendents:\\\"yes\\\"===$tw.wiki.getTiddlerText(USE_ABSOLUTE_FOR_DESCENDENTS_TITLE,\\\"\\\")}),e.callback([{title:e.file.name,type:e.type,_canonical_uri:n=\\\"file://\\\"+n}]),0))})})};\"}}}", + "title": "$:/plugins/linonetwo/tidgi-external-attachments", + "type": "application/json", + "version": "1.3.1", + "Modern.TiddlyDev#SHA256-Hashed": "9a376161bba7b30b2cf94ddf22de19e049914cf788d9bd60f542a015643a1de5" + } +] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption.json b/tiddlers/$__plugins_linonetwo_title-caption.json index 131670d..55a3b7c 100644 --- a/tiddlers/$__plugins_linonetwo_title-caption.json +++ b/tiddlers/$__plugins_linonetwo_title-caption.json @@ -6,11 +6,12 @@ "description": "Display caption in title area.", "list": "readme config tree", "plugin-type": "plugin", - "text": "{\"tiddlers\":{\"$:/plugins/linonetwo/title-caption/edit/TitleStyle.css\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/TitleStyle.css\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/Stylesheet\",\"text\":\"/**\\n * There will be two inputs, and we select the nearest div to the title input and input.title-caption-plugin-caption-edit, then select the first input that is followed by the title preview element `tc-tiddler-title`\\n */\\ndiv.tc-tiddler-edit-frame div:has(>.title-caption-plugin-caption-edit) .tc-tiddler-title + input {\\n font-size: unset;\\n}\"},\"$:/plugins/linonetwo/title-caption/edit/captionCascade\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/captionCascade\",\"tags\":\"$:/tags/EditTemplate\",\"list-after\":\"$:/core/ui/EditTemplate/title\",\"code-body\":\"yes\",\"text\":\"<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] }}} />\\n\"},\"$:/plugins/linonetwo/title-caption/edit/defaultFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/defaultFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"text\":\"[[]]\"},\"$:/plugins/linonetwo/title-caption/edit/hasCaptionFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/hasCaptionFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"list-before\":\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\",\"text\":\"[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]]\"},\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"list-before\":\"$:/plugins/linonetwo/title-caption/edit/defaultFilter\",\"text\":\"[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]]\"},\"$:/plugins/linonetwo/title-caption/edit/useCaptionEdit\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/useCaptionEdit\",\"code-body\":\"yes\",\"text\":\"<$edit-text tiddler=<<currentTiddler>> field=\\\"caption\\\" focus=\\\"yes\\\" class=\\\"tc-titlebar tc-edit-texteditor title-caption-plugin-caption-edit\\\"/>\\n\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\nGithub: https://github.com/tiddly-gittly/title-caption\\n\\nCaption means \\\"axillary text\\\", it may means the text underneath an image that explains the content of the image, for example, \\\"The second from the left in the picture is Dr Lin\\\". In TiddlyWiki, the \\\"caption\\\" field has been used in various cases where the original title is \\\"Unique identifier used by the system, similar to gibberish\\\", and should show user the human-readable \\\"caption\\\" field. However, by default, TiddlyWiki only displays the \\\"caption\\\" field for some system tiddlers, and user-created tiddlers may still display garbled-like titles.\\n\\nNowadays more and more plugins automatically generate random titles and then use the \\\"caption\\\" field to save human-readable text, so this field is becoming more and more important. This plugin is used to ensure that user tiddlers also display the contents of this field, and can easily edit it.\\n\\n!! Feature\\n\\n!!! View Mode\\n\\nDisplays the contents of the `caption` field as a title for tiddlers containing a `caption` field, or a `_is_titleless` field.\\n\\nThe {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} button is displayed on the toolbar, and when clicked, it will move the contents of the `caption` field to the title field, rename and relink the entry, handle all links and transclusion to it. (Need to install \\\"relink\\\" and \\\"relink-title\\\" plugins)\\n\\n!!! Edit Mode\\n\\nWhen editing, the edit box for the title of said tiddler becomes an edit box for the contents of the `caption` field, and the edit box for the `title` field becomes a smaller, secondary input box.\\n\\nMany quick-recording plugins may just bring up a random title field, but not give you the default `caption` field. Such plugins will typically add the `_is_titleless: yes` field to the tiddler. This plugin recognises this usage and displays a friendly edit box to make it easier for you to edit the `caption` field while editing.\\n\\n!! Tryout\\n\\n!!! Auto generation\\n\\nWith the following i-message layout, you can create tiddlers where the `title` field is a random ID and the `caption` field is the real title.\\n\\n<<simple-layout-launcher>>\\n\\n!!! Manual creation\\n\\nCreate a new tiddler, then add the `caption` field, or the `_is_titleless` field.\\n\\nOnce added, you'll notice that the old \\\"title\\\" edit box becomes an edit box for the `caption` field, and the edit box for the `title` field is now a smaller, secondary input box.\\n\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Name\",\"text\":\"Title Caption\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Description\",\"text\":\"Display caption in title area, and can easily edit it.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitle\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitle\",\"text\":\"Apply caption as title\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitleDescription\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitleDescription\",\"text\":\"Move `caption` field to `title`, overwrite the original `title` field.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description\",\"text\":\"These settings let you customise the behaviour of \\\"Title Caption\\\" plugin.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption\",\"text\":\"Plugin Configs\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption\",\"text\":\"XXX\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description\",\"text\":\"XXX is XXX\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption\",\"text\":\"YYY\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption\",\"text\":\"ZZZ\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\nGithub: https://github.com/tiddly-gittly/title-caption\\n\\nCaption 的意思是说明文字,「说明文字」就是图片下方解释图片内容的文字,例如「图中左二是林博士」。在太微里,「说明文字」字段一直被用于各种原本的标题是「系统使用的类似乱码的唯一标识符」的情况,向用户展示使用人类可读的「说明文字」字段。但太微默认只给部分系统条目显示「说明文字」字段,用户创建的条目可能还是会显示类似乱码的标题。\\n\\n现在越来越多的插件会自动生成随机标题,然后用「说明文字」字段保存人类可读的文本,所以这个字段越来越重要了。这个插件就是用来确保用户条目也会显示这个字段的内容,并且可以轻松地编辑它。\\n\\n!! 功能\\n\\n!!! 查看模式\\n\\n包含 `caption` (说明文字)字段,或 `_is_titleless` (无标题)字段的条目,在阅读模式时,在标题区域显示 `caption` 字段的内容。\\n\\n在工具栏上会显示 {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} 按钮,点击后会将 `caption` 字段的内容挪到标题字段,重命名条目,并且处理所有对它的链接和嵌入。(需要额外安装 \\\"relink \\\"和 \\\"relink-title \\\"插件)\\n\\n!!! 编辑模式\\n\\n在编辑条目时,上述条目的标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。\\n\\n很多快速录入插件可能只会带上随机标题字段,但不会给你加上默认的 `caption` 字段。这种插件一般会给条目加上 `_is_titleless: yes` 的字段。这个插件可以识别这种用法,显示友好的编辑框,让你在编辑时更方便地编辑 `caption` 字段。\\n\\n!! 尝试\\n\\n!!! 自动生成\\n\\n用下面的 i信息 布局,可以创建出 `title` 字段是随机 ID,`caption` 字段是真正标题的条目。\\n\\n<<simple-layout-launcher>>\\n\\n!!! 手动创建\\n\\n创建新条目,然后添加 `caption` 字段,或 `_is_titleless` 字段。\\n\\n添加后,你会发现标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。\\n\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Name\",\"text\":\"标题字段\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Description\",\"text\":\"将「说明文字 caption」字段显示为标题,并且可以轻松地编辑它。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitle\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitle\",\"text\":\"将说明文字应用为标题\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitleDescription\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitleDescription\",\"text\":\"将 `caption` 字段移动到 `title` 字段,覆盖原来的 `title` 字段。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description\",\"text\":\"通过这些设置,您可以自定义「标题字段」插件的行为。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption\",\"text\":\"插件设置\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption\",\"text\":\"配置甲\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description\",\"text\":\"配置甲是甲\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption\",\"text\":\"配置乙\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption\",\"text\":\"配置丙\"},\"$:/plugins/linonetwo/title-caption/readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/core/ui/sideBar/timeline\":{\"title\":\"$:/core/ui/sideBar/timeline\",\"tags\":\"$:/tags/Macro\",\"text\":\"\\\\define timeline-title() <$transclude field=\\\"caption\\\"><$view field=\\\"title\\\"/></$transclude>\\n\"},\"$:/plugins/linonetwo/title-caption/tree\":{\"title\":\"$:/plugins/linonetwo/title-caption/tree\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/title-caption/\\\">>\"},\"$:/plugins/linonetwo/title-caption/view/fallbackCaptionView\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/fallbackCaptionView\",\"text\":\"\\\\whitespace trim\\n<h2 class=\\\"tc-title\\\">\\n <$transclude field=\\\"caption\\\">\\n <$view field=\\\"title\\\"/>\\n </$transclude>\\n</h2>\\n\"},\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\",\"tags\":\"$:/tags/ViewTemplateTitleFilter\",\"list-before\":\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\",\"text\":\"[<currentTiddler>get[caption]!is[blank]then[$:/plugins/linonetwo/title-caption/view/fallbackCaptionView]]\"},\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\",\"tags\":\"$:/tags/ViewTemplateTitleFilter\",\"list-before\":\"$:/config/ViewTemplateTitleFilters/default\",\"text\":\"[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]]\"},\"$:/plugins/linonetwo/title-caption/view/onlyCaptionView\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/onlyCaptionView\",\"text\":\"\\\\whitespace trim\\n<h2 class=\\\"tc-title\\\">\\n <$view field=\\\"caption\\\" />\\n</h2>\\n\"},\"$:/plugins/linonetwo/title-caption/view/toolbar/ApplyCaptionToTitle\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/toolbar/ApplyCaptionToTitle\",\"tags\":\"$:/tags/ViewToolbar\",\"caption\":\"{{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} <<lingo ApplyCaptionToTitle $:/plugins/linonetwo/title-caption/language/>>\",\"description\":\"<<lingo ApplyCaptionToTitleDescription $:/plugins/linonetwo/title-caption/language/>>\",\"text\":\"\\\\whitespace trim\\n\\\\define lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n<$let oldTitle=<<currentTiddler>> newTitle={{!!caption}}>\\n <%if [<oldTitle>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] +[!is[blank]] %>\\n <%if [<oldTitle>get[caption]!is[blank]] %>\\n <$wikify name=\\\"ApplyCaptionToTitle\\\" text=\\\"<<lingo ApplyCaptionToTitle>>\\\" mode=\\\"inline\\\">\\n <$button tooltip=<<ApplyCaptionToTitle>> aria-label=<<ApplyCaptionToTitle>> class=<<tv-config-toolbar-class>> >\\n <$action-deletefield $tiddler=<<oldTitle>> caption/>\\n <$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=<<oldTitle>> to=<<newTitle>> />\\n\\n <$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}}\\n </$list>\\n <$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n <span class=\\\"tc-btn-text\\\">\\n <$text text=<<ApplyCaptionToTitle>>/>\\n </span>\\n </$list>\\n </$button>\\n </$wikify>\\n <%endif%>\\n <%endif%>\\n</$let>\"},\"$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title\",\"tags\":\"$:/tags/Image\",\"text\":\"\\\\parameters (size:\\\"22pt\\\")\\n<svg width=<<size>> height=<<size>> class=\\\"tc-image-bts-card-heading tc-image-button\\\" viewBox=\\\"0 0 16 16\\\"><path d=\\\"M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z\\\"/><path d=\\\"M3 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-1z\\\"/></svg>\"}}}", + "stability": "STABILITY_2_STABLE", + "text": "{\"tiddlers\":{\"$:/plugins/linonetwo/title-caption/edit/TitleStyle.css\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/TitleStyle.css\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":\"$:/tags/Stylesheet\",\"text\":\"/**\\n * There will be two inputs, and we select the nearest div to the title input and input.title-caption-plugin-caption-edit, then select the first input that is followed by the title preview element `tc-tiddler-title`\\n */\\ndiv.tc-tiddler-edit-frame div:has(>.title-caption-plugin-caption-edit) .tc-tiddler-title + input {\\n font-size: unset;\\n}\"},\"$:/plugins/linonetwo/title-caption/edit/captionCascade\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/captionCascade\",\"tags\":\"$:/tags/EditTemplate\",\"list-after\":\"$:/core/ui/EditTemplate/title\",\"code-body\":\"yes\",\"text\":\"<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] }}} />\\n\"},\"$:/plugins/linonetwo/title-caption/edit/defaultFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/defaultFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"text\":\"[[]]\"},\"$:/plugins/linonetwo/title-caption/edit/hasCaptionFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/hasCaptionFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"list-before\":\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\",\"text\":\"[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]]\"},\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/isTitlelessFilter\",\"tags\":\"$:/tags/EditCaptionTemplateTitleFilter\",\"list-before\":\"$:/plugins/linonetwo/title-caption/edit/defaultFilter\",\"text\":\"[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]]\"},\"$:/plugins/linonetwo/title-caption/edit/useCaptionEdit\":{\"title\":\"$:/plugins/linonetwo/title-caption/edit/useCaptionEdit\",\"code-body\":\"yes\",\"text\":\"<$edit-text tiddler=<<currentTiddler>> field=\\\"caption\\\" focus=\\\"yes\\\" class=\\\"tc-titlebar tc-edit-texteditor title-caption-plugin-caption-edit\\\"/>\\n\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\nGithub: https://github.com/tiddly-gittly/title-caption\\n\\nCaption means \\\"axillary text\\\", it may means the text underneath an image that explains the content of the image, for example, \\\"The second from the left in the picture is Dr Lin\\\". In TiddlyWiki, the \\\"caption\\\" field has been used in various cases where the original title is \\\"Unique identifier used by the system, similar to gibberish\\\", and should show user the human-readable \\\"caption\\\" field. However, by default, TiddlyWiki only displays the \\\"caption\\\" field for some system tiddlers, and user-created tiddlers may still display garbled-like titles.\\n\\nNowadays more and more plugins automatically generate random titles and then use the \\\"caption\\\" field to save human-readable text, so this field is becoming more and more important. This plugin is used to ensure that user tiddlers also display the contents of this field, and can easily edit it.\\n\\n!! Feature\\n\\n!!! View Mode\\n\\nDisplays the contents of the `caption` field as a title for tiddlers containing a `caption` field, or a `_is_titleless` field.\\n\\nThe {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} button is displayed on the toolbar, and when clicked, it will move the contents of the `caption` field to the title field, rename and relink the entry, handle all links and transclusion to it. (Need to install \\\"relink\\\" and \\\"relink-title\\\" plugins)\\n\\n!!! Edit Mode\\n\\nWhen editing, the edit box for the title of said tiddler becomes an edit box for the contents of the `caption` field, and the edit box for the `title` field becomes a smaller, secondary input box.\\n\\nMany quick-recording plugins may just bring up a random title field, but not give you the default `caption` field. Such plugins will typically add the `_is_titleless: yes` field to the tiddler. This plugin recognises this usage and displays a friendly edit box to make it easier for you to edit the `caption` field while editing.\\n\\n!! Tryout\\n\\n!!! Auto generation\\n\\nWith the following i-message layout, you can create tiddlers where the `title` field is a random ID and the `caption` field is the real title.\\n\\n<<simple-layout-launcher>>\\n\\n!!! Manual creation\\n\\nCreate a new tiddler, then add the `caption` field, or the `_is_titleless` field.\\n\\nOnce added, you'll notice that the old \\\"title\\\" edit box becomes an edit box for the `caption` field, and the edit box for the `title` field is now a smaller, secondary input box.\\n\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Name\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Name\",\"text\":\"Title Caption\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Description\",\"text\":\"Display caption in title area, and can easily edit it.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitle\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitle\",\"text\":\"Apply caption as title\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitleDescription\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitleDescription\",\"text\":\"Move `caption` field to `title`, overwrite the original `title` field.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description\",\"text\":\"These settings let you customise the behaviour of \\\"Title Caption\\\" plugin.\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption\",\"text\":\"Plugin Configs\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption\",\"text\":\"XXX\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description\",\"text\":\"XXX is XXX\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption\",\"text\":\"YYY\"},\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption\",\"text\":\"ZZZ\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n! <<lingo Name>>\\n\\n<<lingo Description>>\\n\\nGithub: https://github.com/tiddly-gittly/title-caption\\n\\nCaption 的意思是说明文字,「说明文字」就是图片下方解释图片内容的文字,例如「图中左二是林博士」。在太微里,「说明文字」字段一直被用于各种原本的标题是「系统使用的类似乱码的唯一标识符」的情况,向用户展示使用人类可读的「说明文字」字段。但太微默认只给部分系统条目显示「说明文字」字段,用户创建的条目可能还是会显示类似乱码的标题。\\n\\n现在越来越多的插件会自动生成随机标题,然后用「说明文字」字段保存人类可读的文本,所以这个字段越来越重要了。这个插件就是用来确保用户条目也会显示这个字段的内容,并且可以轻松地编辑它。\\n\\n!! 功能\\n\\n!!! 查看模式\\n\\n包含 `caption` (说明文字)字段,或 `_is_titleless` (无标题)字段的条目,在阅读模式时,在标题区域显示 `caption` 字段的内容。\\n\\n在工具栏上会显示 {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} 按钮,点击后会将 `caption` 字段的内容挪到标题字段,重命名条目,并且处理所有对它的链接和嵌入。(需要额外安装 \\\"relink \\\"和 \\\"relink-title \\\"插件)\\n\\n!!! 编辑模式\\n\\n在编辑条目时,上述条目的标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。\\n\\n很多快速录入插件可能只会带上随机标题字段,但不会给你加上默认的 `caption` 字段。这种插件一般会给条目加上 `_is_titleless: yes` 的字段。这个插件可以识别这种用法,显示友好的编辑框,让你在编辑时更方便地编辑 `caption` 字段。\\n\\n!! 尝试\\n\\n!!! 自动生成\\n\\n用下面的 i信息 布局,可以创建出 `title` 字段是随机 ID,`caption` 字段是真正标题的条目。\\n\\n<<simple-layout-launcher>>\\n\\n!!! 手动创建\\n\\n创建新条目,然后添加 `caption` 字段,或 `_is_titleless` 字段。\\n\\n添加后,你会发现标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。\\n\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Name\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Name\",\"text\":\"标题字段\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Description\",\"text\":\"将「说明文字 caption」字段显示为标题,并且可以轻松地编辑它。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitle\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitle\",\"text\":\"将说明文字应用为标题\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitleDescription\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitleDescription\",\"text\":\"将 `caption` 字段移动到 `title` 字段,覆盖原来的 `title` 字段。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description\",\"text\":\"通过这些设置,您可以自定义「标题字段」插件的行为。\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption\",\"text\":\"插件设置\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption\",\"text\":\"配置甲\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description\",\"text\":\"配置甲是甲\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption\",\"text\":\"配置乙\"},\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption\":{\"title\":\"$:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption\",\"text\":\"配置丙\"},\"$:/plugins/linonetwo/title-caption/readme\":{\"title\":\"$:/plugins/linonetwo/title-caption/readme\",\"text\":\"\\\\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n<<lingo Readme>>\\n\"},\"$:/core/ui/sideBar/timeline\":{\"title\":\"$:/core/ui/sideBar/timeline\",\"tags\":\"$:/tags/Macro\",\"text\":\"\\\\define timeline-title() <$transclude field=\\\"caption\\\"><$view field=\\\"title\\\"/></$transclude>\\n\"},\"$:/plugins/linonetwo/title-caption/tree\":{\"title\":\"$:/plugins/linonetwo/title-caption/tree\",\"text\":\"<<tree prefix:\\\"$:/plugins/linonetwo/title-caption/\\\">>\"},\"$:/plugins/linonetwo/title-caption/view/fallbackCaptionView\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/fallbackCaptionView\",\"text\":\"\\\\whitespace trim\\n<h2 class=\\\"tc-title\\\">\\n <$transclude field=\\\"caption\\\">\\n <$view field=\\\"title\\\"/>\\n </$transclude>\\n</h2>\\n\"},\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/hasCaptionFilter\",\"tags\":\"$:/tags/ViewTemplateTitleFilter\",\"list-before\":\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\",\"text\":\"[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/view/fallbackCaptionView]]\"},\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/isTitlelessFilter\",\"tags\":\"$:/tags/ViewTemplateTitleFilter\",\"list-before\":\"$:/config/ViewTemplateTitleFilters/default\",\"text\":\"[<currentTiddler>has:field[_is_titleless]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]]\"},\"$:/plugins/linonetwo/title-caption/view/onlyCaptionView\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/onlyCaptionView\",\"text\":\"\\\\whitespace trim\\n<h2 class=\\\"tc-title\\\">\\n <$view field=\\\"caption\\\" />\\n</h2>\\n\"},\"$:/plugins/linonetwo/title-caption/view/toolbar/ApplyCaptionToTitle\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/toolbar/ApplyCaptionToTitle\",\"tags\":\"$:/tags/ViewToolbar\",\"caption\":\"{{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} <<lingo ApplyCaptionToTitle $:/plugins/linonetwo/title-caption/language/>>\",\"description\":\"<<lingo ApplyCaptionToTitleDescription $:/plugins/linonetwo/title-caption/language/>>\",\"text\":\"\\\\whitespace trim\\n\\\\define lingo-base() $:/plugins/linonetwo/title-caption/language/\\n\\n<$let oldTitle=<<currentTiddler>> newTitle={{!!caption}}>\\n <%if [<oldTitle>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] +[!is[blank]] %>\\n <%if [<oldTitle>get[caption]!is[blank]] %>\\n <$wikify name=\\\"ApplyCaptionToTitle\\\" text=\\\"<<lingo ApplyCaptionToTitle>>\\\" mode=\\\"inline\\\">\\n <$button tooltip=<<ApplyCaptionToTitle>> aria-label=<<ApplyCaptionToTitle>> class=<<tv-config-toolbar-class>> >\\n <$action-deletefield $tiddler=<<oldTitle>> caption _is_titleless />\\n <$action-sendmessage $message=\\\"tm-rename-tiddler\\\" from=<<oldTitle>> to=<<newTitle>> />\\n\\n <$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}}\\n </$list>\\n <$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n <span class=\\\"tc-btn-text\\\">\\n <$text text=<<ApplyCaptionToTitle>>/>\\n </span>\\n </$list>\\n </$button>\\n </$wikify>\\n <%endif%>\\n <%endif%>\\n</$let>\"},\"$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title\":{\"title\":\"$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title\",\"tags\":\"$:/tags/Image\",\"text\":\"\\\\parameters (size:\\\"22pt\\\")\\n<svg width=<<size>> height=<<size>> class=\\\"tc-image-bts-card-heading tc-image-button\\\" viewBox=\\\"0 0 16 16\\\"><path d=\\\"M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z\\\"/><path d=\\\"M3 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-1z\\\"/></svg>\"}}}", "title": "$:/plugins/linonetwo/title-caption", "type": "application/json", - "version": "0.3.0", - "Modern.TiddlyDev#SHA256-Hashed": "0b0ab11ee095612591292357775e5ec02bd24bf25e98df945d14546755e44684", + "version": "0.3.1", + "Modern.TiddlyDev#SHA256-Hashed": "08e3a0de77243361ba9cef967c1c73635528e037cf11a0b1624a9ac7127d3036", "name": "Title -> Caption" } ] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_edit_TitleStyle.css.tid b/tiddlers/$__plugins_linonetwo_title-caption_edit_TitleStyle.css.tid new file mode 100644 index 0000000..eef6d9f --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_edit_TitleStyle.css.tid @@ -0,0 +1,10 @@ +tags: $:/tags/Stylesheet +title: $:/plugins/linonetwo/title-caption/edit/TitleStyle.css +type: text/vnd.tiddlywiki + +/** + * There will be two inputs, and we select the nearest div to the title input and input.title-caption-plugin-caption-edit, then select the first input that is followed by the title preview element `tc-tiddler-title` + */ +div.tc-tiddler-edit-frame div:has(>.title-caption-plugin-caption-edit) .tc-tiddler-title + input { + font-size: unset; +} \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_edit_captionCascade.tid b/tiddlers/$__plugins_linonetwo_title-caption_edit_captionCascade.tid new file mode 100644 index 0000000..e47180a --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_edit_captionCascade.tid @@ -0,0 +1,7 @@ +code-body: yes +list-after: $:/core/ui/EditTemplate/title +tags: $:/tags/EditTemplate +title: $:/plugins/linonetwo/title-caption/edit/captionCascade +type: text/vnd.tiddlywiki + +<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] }}} /> diff --git a/tiddlers/$__plugins_linonetwo_title-caption_edit_defaultFilter.tid b/tiddlers/$__plugins_linonetwo_title-caption_edit_defaultFilter.tid new file mode 100644 index 0000000..7336b60 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_edit_defaultFilter.tid @@ -0,0 +1,5 @@ +tags: $:/tags/EditCaptionTemplateTitleFilter +title: $:/plugins/linonetwo/title-caption/edit/defaultFilter +type: text/vnd.tiddlywiki + +[[]] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_edit_hasCaptionFilter.tid b/tiddlers/$__plugins_linonetwo_title-caption_edit_hasCaptionFilter.tid new file mode 100644 index 0000000..2f2fe4f --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_edit_hasCaptionFilter.tid @@ -0,0 +1,6 @@ +list-before: $:/plugins/linonetwo/title-caption/edit/isTitlelessFilter +tags: $:/tags/EditCaptionTemplateTitleFilter +title: $:/plugins/linonetwo/title-caption/edit/hasCaptionFilter +type: text/vnd.tiddlywiki + +[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_edit_isTitlelessFilter.tid b/tiddlers/$__plugins_linonetwo_title-caption_edit_isTitlelessFilter.tid new file mode 100644 index 0000000..ce45807 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_edit_isTitlelessFilter.tid @@ -0,0 +1,6 @@ +list-before: $:/plugins/linonetwo/title-caption/edit/defaultFilter +tags: $:/tags/EditCaptionTemplateTitleFilter +title: $:/plugins/linonetwo/title-caption/edit/isTitlelessFilter +type: text/vnd.tiddlywiki + +[<currentTiddler>has[_is_titleless]then[$:/plugins/linonetwo/title-caption/edit/useCaptionEdit]] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_edit_useCaptionEdit.tid b/tiddlers/$__plugins_linonetwo_title-caption_edit_useCaptionEdit.tid new file mode 100644 index 0000000..80e00f7 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_edit_useCaptionEdit.tid @@ -0,0 +1,5 @@ +code-body: yes +title: $:/plugins/linonetwo/title-caption/edit/useCaptionEdit +type: text/vnd.tiddlywiki + +<$edit-text tiddler=<<currentTiddler>> field="caption" focus="yes" class="tc-titlebar tc-edit-texteditor title-caption-plugin-caption-edit"/> diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_ApplyCaptionToTitle.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_ApplyCaptionToTitle.tid new file mode 100644 index 0000000..dc707a8 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_ApplyCaptionToTitle.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitle +type: text/vnd.tiddlywiki + +Apply caption as title \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_ApplyCaptionToTitleDescription.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_ApplyCaptionToTitleDescription.tid new file mode 100644 index 0000000..bd0d92f --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_ApplyCaptionToTitleDescription.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/ApplyCaptionToTitleDescription +type: text/vnd.tiddlywiki + +Move `caption` field to `title`, overwrite the original `title` field. \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_Description.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_Description.tid new file mode 100644 index 0000000..a105bbf --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Configs/Description +type: text/vnd.tiddlywiki + +These settings let you customise the behaviour of "Title Caption" plugin. \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_PluginConfigs_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_PluginConfigs_Caption.tid new file mode 100644 index 0000000..90d503d --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_PluginConfigs_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Configs/PluginConfigs/Caption +type: text/vnd.tiddlywiki + +Plugin Configs \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_XXX_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_XXX_Caption.tid new file mode 100644 index 0000000..f085997 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_XXX_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Caption +type: text/vnd.tiddlywiki + +XXX \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_XXX_Description.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_XXX_Description.tid new file mode 100644 index 0000000..5b43089 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_XXX_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Configs/XXX/Description +type: text/vnd.tiddlywiki + +XXX is XXX \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_YYY_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_YYY_Caption.tid new file mode 100644 index 0000000..071c6e5 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_YYY_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Configs/YYY/Caption +type: text/vnd.tiddlywiki + +YYY \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_ZZZ_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_ZZZ_Caption.tid new file mode 100644 index 0000000..b3c8fff --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Configs_ZZZ_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Configs/ZZZ/Caption +type: text/vnd.tiddlywiki + +ZZZ \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Description.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Description.tid new file mode 100644 index 0000000..dcb727a --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Description +type: text/vnd.tiddlywiki + +Display caption in title area, and can easily edit it. \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Name.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Name.tid new file mode 100644 index 0000000..4736f44 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Name.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Name +type: text/vnd.tiddlywiki + +Title Caption \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Readme.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Readme.tid new file mode 100644 index 0000000..15340ae --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_en-GB_Readme.tid @@ -0,0 +1,42 @@ +title: $:/plugins/linonetwo/title-caption/language/en-GB/Readme +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/ + +! <<lingo Name>> + +<<lingo Description>> + +Github: https://github.com/tiddly-gittly/title-caption + +Caption means "axillary text", it may means the text underneath an image that explains the content of the image, for example, "The second from the left in the picture is Dr Lin". In TiddlyWiki, the "caption" field has been used in various cases where the original title is "Unique identifier used by the system, similar to gibberish", and should show user the human-readable "caption" field. However, by default, TiddlyWiki only displays the "caption" field for some system tiddlers, and user-created tiddlers may still display garbled-like titles. + +Nowadays more and more plugins automatically generate random titles and then use the "caption" field to save human-readable text, so this field is becoming more and more important. This plugin is used to ensure that user tiddlers also display the contents of this field, and can easily edit it. + +!! Feature + +!!! View Mode + +Displays the contents of the `caption` field as a title for tiddlers containing a `caption` field, or a `_is_titleless` field. + +The {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} button is displayed on the toolbar, and when clicked, it will move the contents of the `caption` field to the title field, rename and relink the entry, handle all links and transclusion to it. (Need to install "relink" and "relink-title" plugins) + +!!! Edit Mode + +When editing, the edit box for the title of said tiddler becomes an edit box for the contents of the `caption` field, and the edit box for the `title` field becomes a smaller, secondary input box. + +Many quick-recording plugins may just bring up a random title field, but not give you the default `caption` field. Such plugins will typically add the `_is_titleless: yes` field to the tiddler. This plugin recognises this usage and displays a friendly edit box to make it easier for you to edit the `caption` field while editing. + +!! Tryout + +!!! Auto generation + +With the following i-message layout, you can create tiddlers where the `title` field is a random ID and the `caption` field is the real title. + +<<simple-layout-launcher>> + +!!! Manual creation + +Create a new tiddler, then add the `caption` field, or the `_is_titleless` field. + +Once added, you'll notice that the old "title" edit box becomes an edit box for the `caption` field, and the edit box for the `title` field is now a smaller, secondary input box. diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_ApplyCaptionToTitle.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_ApplyCaptionToTitle.tid new file mode 100644 index 0000000..2ce48c4 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_ApplyCaptionToTitle.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitle +type: text/vnd.tiddlywiki + +将说明文字应用为标题 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_ApplyCaptionToTitleDescription.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_ApplyCaptionToTitleDescription.tid new file mode 100644 index 0000000..ac16997 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_ApplyCaptionToTitleDescription.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/ApplyCaptionToTitleDescription +type: text/vnd.tiddlywiki + +将 `caption` 字段移动到 `title` 字段,覆盖原来的 `title` 字段。 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_Description.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_Description.tid new file mode 100644 index 0000000..9388706 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/Description +type: text/vnd.tiddlywiki + +通过这些设置,您可以自定义「标题字段」插件的行为。 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_PluginConfigs_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_PluginConfigs_Caption.tid new file mode 100644 index 0000000..a7e36c0 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_PluginConfigs_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/PluginConfigs/Caption +type: text/vnd.tiddlywiki + +插件设置 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_XXX_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_XXX_Caption.tid new file mode 100644 index 0000000..6546698 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_XXX_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Caption +type: text/vnd.tiddlywiki + +配置甲 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_XXX_Description.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_XXX_Description.tid new file mode 100644 index 0000000..d296727 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_XXX_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/XXX/Description +type: text/vnd.tiddlywiki + +配置甲是甲 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_YYY_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_YYY_Caption.tid new file mode 100644 index 0000000..064ac9b --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_YYY_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/YYY/Caption +type: text/vnd.tiddlywiki + +配置乙 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_ZZZ_Caption.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_ZZZ_Caption.tid new file mode 100644 index 0000000..177a352 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Configs_ZZZ_Caption.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Configs/ZZZ/Caption +type: text/vnd.tiddlywiki + +配置丙 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Description.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Description.tid new file mode 100644 index 0000000..8643726 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Description.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Description +type: text/vnd.tiddlywiki + +将「说明文字 caption」字段显示为标题,并且可以轻松地编辑它。 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Name.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Name.tid new file mode 100644 index 0000000..07c5a89 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Name.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Name +type: text/vnd.tiddlywiki + +标题字段 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Readme.tid b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Readme.tid new file mode 100644 index 0000000..8e483a0 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_language_zh-Hans_Readme.tid @@ -0,0 +1,42 @@ +title: $:/plugins/linonetwo/title-caption/language/zh-Hans/Readme +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/ + +! <<lingo Name>> + +<<lingo Description>> + +Github: https://github.com/tiddly-gittly/title-caption + +Caption 的意思是说明文字,「说明文字」就是图片下方解释图片内容的文字,例如「图中左二是林博士」。在太微里,「说明文字」字段一直被用于各种原本的标题是「系统使用的类似乱码的唯一标识符」的情况,向用户展示使用人类可读的「说明文字」字段。但太微默认只给部分系统条目显示「说明文字」字段,用户创建的条目可能还是会显示类似乱码的标题。 + +现在越来越多的插件会自动生成随机标题,然后用「说明文字」字段保存人类可读的文本,所以这个字段越来越重要了。这个插件就是用来确保用户条目也会显示这个字段的内容,并且可以轻松地编辑它。 + +!! 功能 + +!!! 查看模式 + +包含 `caption` (说明文字)字段,或 `_is_titleless` (无标题)字段的条目,在阅读模式时,在标题区域显示 `caption` 字段的内容。 + +在工具栏上会显示 {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} 按钮,点击后会将 `caption` 字段的内容挪到标题字段,重命名条目,并且处理所有对它的链接和嵌入。(需要额外安装 "relink "和 "relink-title "插件) + +!!! 编辑模式 + +在编辑条目时,上述条目的标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。 + +很多快速录入插件可能只会带上随机标题字段,但不会给你加上默认的 `caption` 字段。这种插件一般会给条目加上 `_is_titleless: yes` 的字段。这个插件可以识别这种用法,显示友好的编辑框,让你在编辑时更方便地编辑 `caption` 字段。 + +!! 尝试 + +!!! 自动生成 + +用下面的 i信息 布局,可以创建出 `title` 字段是随机 ID,`caption` 字段是真正标题的条目。 + +<<simple-layout-launcher>> + +!!! 手动创建 + +创建新条目,然后添加 `caption` 字段,或 `_is_titleless` 字段。 + +添加后,你会发现标题编辑框会变成编辑 `caption` 字段的内容,对 `title` 字段的编辑框则变成了一个较小的、次要的输入框。 diff --git a/tiddlers/$__plugins_linonetwo_title-caption_readme.tid b/tiddlers/$__plugins_linonetwo_title-caption_readme.tid new file mode 100644 index 0000000..e59c552 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_readme.tid @@ -0,0 +1,6 @@ +title: $:/plugins/linonetwo/title-caption/readme +type: text/vnd.tiddlywiki + +\procedure lingo-base() $:/plugins/linonetwo/title-caption/language/ + +<<lingo Readme>> diff --git a/tiddlers/$__plugins_linonetwo_title-caption_tree.tid b/tiddlers/$__plugins_linonetwo_title-caption_tree.tid new file mode 100644 index 0000000..edb7199 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_tree.tid @@ -0,0 +1,4 @@ +title: $:/plugins/linonetwo/title-caption/tree +type: text/vnd.tiddlywiki + +<<tree prefix:"$:/plugins/linonetwo/title-caption/">> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_view_fallbackCaptionView.tid b/tiddlers/$__plugins_linonetwo_title-caption_view_fallbackCaptionView.tid new file mode 100644 index 0000000..36d017e --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_view_fallbackCaptionView.tid @@ -0,0 +1,9 @@ +title: $:/plugins/linonetwo/title-caption/view/fallbackCaptionView +type: text/vnd.tiddlywiki + +\whitespace trim +<h2 class="tc-title"> + <$transclude field="caption"> + <$view field="title"/> + </$transclude> +</h2> diff --git a/tiddlers/$__plugins_linonetwo_title-caption_view_hasCaptionFilter.tid b/tiddlers/$__plugins_linonetwo_title-caption_view_hasCaptionFilter.tid new file mode 100644 index 0000000..e007be5 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_view_hasCaptionFilter.tid @@ -0,0 +1,6 @@ +list-before: $:/plugins/linonetwo/title-caption/view/isTitlelessFilter +tags: $:/tags/ViewTemplateTitleFilter +title: $:/plugins/linonetwo/title-caption/view/hasCaptionFilter +type: text/vnd.tiddlywiki + +[<currentTiddler>has[caption]then[$:/plugins/linonetwo/title-caption/view/fallbackCaptionView]] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_view_isTitlelessFilter.tid b/tiddlers/$__plugins_linonetwo_title-caption_view_isTitlelessFilter.tid new file mode 100644 index 0000000..3325d4d --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_view_isTitlelessFilter.tid @@ -0,0 +1,6 @@ +list-before: $:/config/ViewTemplateTitleFilters/default +tags: $:/tags/ViewTemplateTitleFilter +title: $:/plugins/linonetwo/title-caption/view/isTitlelessFilter +type: text/vnd.tiddlywiki + +[<currentTiddler>has:field[_is_titleless]then[$:/plugins/linonetwo/title-caption/view/useCaptionView]] \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_view_onlyCaptionView.tid b/tiddlers/$__plugins_linonetwo_title-caption_view_onlyCaptionView.tid new file mode 100644 index 0000000..a98afe0 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_view_onlyCaptionView.tid @@ -0,0 +1,7 @@ +title: $:/plugins/linonetwo/title-caption/view/onlyCaptionView +type: text/vnd.tiddlywiki + +\whitespace trim +<h2 class="tc-title"> + <$view field="caption" /> +</h2> diff --git a/tiddlers/$__plugins_linonetwo_title-caption_view_toolbar_ApplyCaptionToTitle.tid b/tiddlers/$__plugins_linonetwo_title-caption_view_toolbar_ApplyCaptionToTitle.tid new file mode 100644 index 0000000..766c6ee --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_view_toolbar_ApplyCaptionToTitle.tid @@ -0,0 +1,30 @@ +caption: {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} <<lingo ApplyCaptionToTitle $:/plugins/linonetwo/title-caption/language/>> +description: <<lingo ApplyCaptionToTitleDescription $:/plugins/linonetwo/title-caption/language/>> +tags: $:/tags/ViewToolbar +title: $:/plugins/linonetwo/title-caption/view/toolbar/ApplyCaptionToTitle +type: text/vnd.tiddlywiki + +\whitespace trim +\define lingo-base() $:/plugins/linonetwo/title-caption/language/ + +<$let oldTitle=<<currentTiddler>> newTitle={{!!caption}}> + <%if [<oldTitle>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditCaptionTemplateTitleFilter]!is[draft]get[text]] +[!is[blank]] %> + <%if [<oldTitle>get[caption]!is[blank]] %> + <$wikify name="ApplyCaptionToTitle" text="<<lingo ApplyCaptionToTitle>>" mode="inline"> + <$button tooltip=<<ApplyCaptionToTitle>> aria-label=<<ApplyCaptionToTitle>> class=<<tv-config-toolbar-class>> > + <$action-deletefield $tiddler=<<oldTitle>> caption _is_titleless /> + <$action-sendmessage $message="tm-rename-tiddler" from=<<oldTitle>> to=<<newTitle>> /> + + <$list filter="[<tv-config-toolbar-icons>match[yes]]"> + {{$:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title}} + </$list> + <$list filter="[<tv-config-toolbar-text>match[yes]]"> + <span class="tc-btn-text"> + <$text text=<<ApplyCaptionToTitle>>/> + </span> + </$list> + </$button> + </$wikify> + <%endif%> + <%endif%> +</$let> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_title-caption_view_toolbar_icon-caption-to-title.tid b/tiddlers/$__plugins_linonetwo_title-caption_view_toolbar_icon-caption-to-title.tid new file mode 100644 index 0000000..54b3450 --- /dev/null +++ b/tiddlers/$__plugins_linonetwo_title-caption_view_toolbar_icon-caption-to-title.tid @@ -0,0 +1,6 @@ +tags: $:/tags/Image +title: $:/plugins/linonetwo/title-caption/view/toolbar/icon-caption-to-title +type: text/vnd.tiddlywiki + +\parameters (size:"22pt") +<svg width=<<size>> height=<<size>> class="tc-image-bts-card-heading tc-image-button" viewBox="0 0 16 16"><path d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"/><path d="M3 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0 2a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5zm0-5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5v-1z"/></svg> \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_tw-react.json b/tiddlers/$__plugins_linonetwo_tw-react.json index d435281..023f92e 100644 --- a/tiddlers/$__plugins_linonetwo_tw-react.json +++ b/tiddlers/$__plugins_linonetwo_tw-react.json @@ -1 +1 @@ -{"tiddlers":{"$:/plugins/linonetwo/tw-react/docs/FAQ":{"title":"$:/plugins/linonetwo/tw-react/docs/FAQ","creator":"LinOnetwo","text":"!! FAQ\n\n!!! _jsxRuntime\n\n`slate-write/node_modules/react-dnd/dist/cjs/core/DndProvider.js` has `var _jsxRuntime = require(\"react/jsx-runtime\");`\n\nBut `slate-write/node_modules/react-dnd/dist/esm/core/DndProvider.mjs` has `import { jsx as _jsx } from \"react/jsx-runtime.js\";`\n\nNote the difference between `react/jsx-runtime` and `react/jsx-runtime.js`!\n\nCurrently tw-react ship with `react/jsx-runtime.js`, so if your plugin uses cjs version of react-dnd, you will have error:\n\n```\nError executing boot module $:/plugins/linonetwo/slate-write/components/index.js: \"Cannot find module named 'react/jsx-runtime' required by module '$:/plugins/linonetwo/slate-write/components/index.js', resolved to react/jsx-runtime\"\n\nundefined\n```\n\nThe solution is to ask me provide a version of tw-react that has `react/jsx-runtime`, or you can use esm version of `react-dnd`.\n"},"$:/plugins/linonetwo/tw-react/docs/example":{"title":"$:/plugins/linonetwo/tw-react/docs/example","creator":"LinOnetwo","type":"text/vnd.tiddlywiki","text":"!! Example\n\n```tid\n<$likeButtonExampleWidget stateTiddler=\"$:/state/tw-react/readme/like-button\" />\n```\n\nButton1:\n\n<$likeButtonExampleWidget stateTiddler=\"$:/state/tw-react/readme/like-button\" />\n\nButton2:\n\n<$likeButtonExampleWidget stateTiddler=\"$:/state/tw-react/readme/like-button\" />\n\nState:\n\n{{$:/state/tw-react/readme/like-button}}\n\nIt keeps its state via a state tiddler, and title of state tiddler is pass-in using `getProps = () => ({ stateTiddler: this.getAttribute('stateTiddler') });`, so `stateTiddler` attribute is passed from widget parameter to the React props.\n\nTwo buttons have shared state [[$:/state/tw-react/readme/like-button]], but not updated when state changed (although you can implement this in the `refresh` method by yourself in your own component), so when you click one, and close this tiddler then reopen it, you will see two buttons have same ''clicked'' state.\n\n`likeButtonExampleWidget` is a class component, it calls a functional component `ExampleFunction` that will use react hook to update self +1 every second.\n\nSee [[example.ts|https://github.com/tiddly-gittly/tw-react/blob/master/src/example.tsx]] and [[exampleFunction.tsx|https://github.com/tiddly-gittly/tw-react/blob/master/src/exampleFunction.tsx]] for example.\n"},"$:/plugins/linonetwo/tw-react/docs/install":{"title":"$:/plugins/linonetwo/tw-react/docs/install","creator":"LinOnetwo","text":"!! Install\n\nAs a user, just install from [[CPL|https://tw-cpl.netlify.app/#linonetwo%2Ftw-react:Index%20linonetwo%2Ftw-react]].\n\nAs a developer, you can continue reading.\n\n!!! Require and externalize 'react', 'react-dom'\n\nPlease make sure to externalize them, for example in the [[RollUp|https://rollupjs.org/]]:\n\n```json\n{\n external: ['react', 'react-dom']\n}\n```\n\nOtherwise you will get [[You might have more than one copy of React in the same app|https://reactjs.org/docs/error-decoder.html/?invariant=321]] error.\n\nAnd use the subclass of Widget provided by this plugin:\n\n```\nconst Widget = require('$:/plugins/linonetwo/tw-react/widget.js').widget\n```\n\n!!! Using Typescript\n\n# use [[TW5-Typed|https://github.com/tiddly-gittly/TW5-Typed]] for basic tw types, see its readme for install instruction\n# install `tw-react` package via `npm i tw-react`, and import the type by `import type { ReactWidget } from 'tw-react';`\n\nUse the type:\n\n```js\nimport { useRenderTiddler } from '$:/plugins/linonetwo/tw-react/index.js';\nimport type { ReactWidget } from 'tw-react';\n\nconst Widget = require('$:/plugins/linonetwo/tw-react/widget.js').widget as typeof ReactWidget;\n\nclass YourWidget extends Widget {\n reactComponent = SomeReactComponent;\n getProps = () => {\n return {\n stateTiddler: this.getAttribute('stateTiddler'),\n // ... other props for your react component\n };\n };\n}\n```\n\n!!! Props\n\nAnything returned from `getProps` method will pass to react component, passing `stateTiddler` is a good idea, but is not mandatory.\n\nFor example, this is what I returned in my `linonetwo/smart-form` plugin:\n\n```js\ngetProps = () => {\n const currentTiddler = this.getAttribute('tiddler', this.getVariable('currentTiddler'));\n // with lots of filter running and data transforms...\n return {\n schema,\n formData,\n children: null,\n onChange,\n };\n };\n```\n\n!!! React Hooks\n\nWe provided some hooks for reactive data management with tw data source. You can import them from the `$:/plugins/linonetwo/tw-react/index.js` (Instead of from `tw-react` package, because they already included in the plugin).\n\n```ts\nimport { useFilter } from '$:/plugins/linonetwo/tw-react/index.js'\n```\n\nYou can't import them from plugin's file, because they are optional, so only included in the npm package, not in the plugin json bundle.\n\n!!!! useFilter\n\nGet list of titles from a filter.\n\n```ts\nconst titles = useFilter('[all[]tag[Index]]');\n```\n\nThe second parameter is an optional dependencies list, you can use it to trigger re-calculate. Otherwise it only rerun filter when filter text changes.\n\n```ts\nconst [toggle, setToggle] = useState(false);\nconst titles = useFilter('[all[]tag[Index]]', [toggle]);\n\n...\n\n<Button onClick={() => setToggle(!toggle)}>Trigger refresh</Button>\n```\n"},"$:/plugins/linonetwo/tw-react/docs/reactAPIs":{"title":"$:/plugins/linonetwo/tw-react/docs/reactAPIs","creator":"LinOnetwo","text":"!! React APIs\n\nTBD, read the source now."},"$:/plugins/linonetwo/tw-react/example.js":{"title":"$:/plugins/linonetwo/tw-react/example.js","text":"\"use strict\";\n\n// src/example.tsx\nvar import_widget = require(\"$:/plugins/linonetwo/tw-react/widget.js\");\n\n// src/exampleFunction.tsx\nvar import_react = require(\"react\");\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nfunction ExampleFunction() {\n const [counter, counterSetter] = (0, import_react.useState)(0);\n (0, import_react.useEffect)(() => {\n let localCounter = 0;\n const handle = setInterval(() => {\n counterSetter(++localCounter);\n }, 1e3);\n return () => {\n clearInterval(handle);\n };\n }, []);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"span\", { children: counter });\n}\n\n// src/example.tsx\nvar import_jsx_runtime2 = require(\"react/jsx-runtime\");\nvar ReactDom = require(\"react-dom\");\nvar React = require(\"react\");\nvar LikeButton = class extends React.Component {\n constructor(props) {\n super(props);\n const defaultState = { liked: false };\n try {\n this.state = JSON.parse($tw.wiki.getTiddlerText(this.props.stateTiddler ?? \"\", \"{}\")) ?? defaultState;\n } catch {\n this.state = defaultState;\n }\n }\n setState(nextState) {\n super.setState(nextState);\n if (this.props.stateTiddler === void 0)\n return;\n $tw.wiki.setText(this.props.stateTiddler, \"text\", void 0, JSON.stringify(nextState));\n }\n render() {\n if (this.state.liked) {\n return \"You liked this.\";\n }\n return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\n \"button\",\n {\n onClick: () => {\n this.setState({ liked: true });\n },\n children: [\n \"Like \",\n /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ExampleFunction, {})\n ]\n }\n );\n }\n};\nvar LikeButtonWidget = class extends import_widget.widget {\n constructor() {\n super(...arguments);\n this.reactComponent = LikeButton;\n this.getProps = () => ({ stateTiddler: this.getAttribute(\"stateTiddler\") });\n }\n};\nexports.likeButtonExampleWidget = LikeButtonWidget;\n","creator":"LinOnetwo","type":"application/javascript","module-type":"widget"},"$:/plugins/linonetwo/tw-react/index.js":{"title":"$:/plugins/linonetwo/tw-react/index.js","text":"\"use strict\";\n\n// src/hooks/context.ts\nvar import_react = require(\"react\");\nvar ParentWidgetContext = (0, import_react.createContext)(void 0);\n\n// src/hooks/useFilter.ts\nvar import_react2 = require(\"react\");\nfunction useFilter(twFilter, widget = $tw.rootWidget, dependencies = []) {\n const [filterResult, setFilterResult] = (0, import_react2.useState)([]);\n const compiledFilter = (0, import_react2.useMemo)(() => $tw.wiki.compileFilter(twFilter), [twFilter]);\n (0, import_react2.useEffect)(() => {\n setFilterResult(compiledFilter(void 0, widget));\n }, [compiledFilter, widget, ...dependencies]);\n return filterResult;\n}\n\n// src/hooks/useRenderTiddler.ts\nvar import_react3 = require(\"react\");\nfunction useRenderTiddler(tiddlerTitle, containerReference, options) {\n const parentWidget = (0, import_react3.useContext)(ParentWidgetContext);\n (0, import_react3.useEffect)(() => {\n const domNode = containerReference.current;\n if (domNode === null) {\n return;\n }\n if (parentWidget === void 0) {\n throw new Error(\n \"Your plugin have a bug: `parentWidget` is undefined, you should use `<ParentWidgetContext.Provider value={props.parentWidget}>`, see tw-react for document.\"\n );\n }\n if (options?.skip === true) {\n return;\n }\n const id = String(Math.random());\n const transcludeWidgetNode = $tw.wiki.makeTranscludeWidget(tiddlerTitle, {\n document,\n parentWidget,\n recursionMarker: \"yes\",\n mode: \"block\",\n importPageMacros: true,\n variables: { \"use-widget-id\": id }\n });\n const tiddlerContainer = document.createElement(\"div\");\n domNode.append(tiddlerContainer);\n transcludeWidgetNode.render(tiddlerContainer, null);\n parentWidget.children.push(transcludeWidgetNode);\n return () => {\n parentWidget.children = parentWidget.children.filter((child) => child.getVariable(\"use-widget-id\") !== id);\n if (domNode === null) {\n return;\n }\n domNode.textContent = \"\";\n };\n }, [tiddlerTitle, containerReference, parentWidget, options?.skip]);\n}\n\n// src/hooks/useWidget.ts\nvar import_react4 = require(\"react\");\nfunction useWidget(parseTreeNode, containerReference, options) {\n const parentWidget = (0, import_react4.useContext)(ParentWidgetContext);\n (0, import_react4.useEffect)(() => {\n const domNode = containerReference.current;\n if (domNode === null) {\n return;\n }\n if (parentWidget === void 0) {\n throw new Error(\n \"Your plugin have a bug: `parentWidget` is undefined, you should use `<ParentWidgetContext.Provider value={props.parentWidget}>`, see tw-react for document.\"\n );\n }\n if (options?.skip === true) {\n return;\n }\n const id = String(Math.random());\n const newWidgetNode = parentWidget.makeChildWidget(parseTreeNode, { variables: { \"use-widget-id\": id } });\n newWidgetNode.render(domNode, null);\n parentWidget.children.push(newWidgetNode);\n return () => {\n parentWidget.children = parentWidget.children.filter((child) => child.getVariable(\"use-widget-id\") !== id);\n if (domNode === null) {\n return;\n }\n domNode.textContent = \"\";\n };\n }, [parseTreeNode, containerReference, parentWidget, options?.skip]);\n}\n\n// src/index.ts\nexports.ParentWidgetContext = ParentWidgetContext;\nexports.useFilter = useFilter;\nexports.useRenderTiddler = useRenderTiddler;\nexports.useWidget = useWidget;\n","creator":"LinOnetwo","type":"application/javascript","module-type":"library"},"react/jsx-runtime.js":{"title":"react/jsx-runtime.js","text":"\"use strict\";var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(e,r,t){var o,f={},_=null,s=null;for(o in void 0!==t&&(_=\"\"+t),void 0!==r.key&&(_=\"\"+r.key),void 0!==r.ref&&(s=r.ref),r)m.call(r,o)&&!p.hasOwnProperty(o)&&(f[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===f[o]&&(f[o]=r[o]);return{$$typeof:k,type:e,key:_,ref:s,props:f,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q;","creator":"LinOnetwo","type":"application/javascript","module-type":"library"},"react-dom/client":{"title":"react-dom/client","text":"const ReactDom=require(\"react-dom\");exports.default=ReactDom;","creator":"LinOnetwo","type":"application/javascript","module-type":"library"},"react-dom":{"title":"react-dom","text":"!function(){\"use strict\";var e,n;e=this,n=function(e,n){function t(e){for(var n=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,t=1;t<arguments.length;t++)n+=\"&args[]=\"+encodeURIComponent(arguments[t]);return\"Minified React error #\"+e+\"; visit \"+n+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function r(e,n){l(e,n),l(e+\"Capture\",n)}function l(e,n){for(Bl[e]=n,e=0;e<n.length;e++)Al.add(n[e])}function a(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}function u(e,n,t,r){var l=ql.hasOwnProperty(n)?ql[n]:null;(null!==l?0!==l.type:r||!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])&&(function(e,n,t,r){if(null===n||void 0===n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case\"function\":case\"symbol\":return!0;case\"boolean\":return!r&&(null!==t?!t.acceptsBooleans:\"data-\"!==(e=e.toLowerCase().slice(0,5))&&\"aria-\"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!Hl.call($l,e)||!Hl.call(jl,e)&&(Ql.test(e)?$l[e]=!0:(jl[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,\"\"+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&\"\":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?\"\":\"\"+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}function o(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=pa&&e[pa]||e[\"@@iterator\"])?e:null}function i(e,n,t){if(void 0===ca)try{throw Error()}catch(e){ca=(n=e.stack.trim().match(/\\n( *(at )?)/))&&n[1]||\"\"}return\"\\n\"+ca+e}function s(e,n){if(!e||ha)return\"\";ha=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&\"string\"==typeof n.stack){for(var l=n.stack.split(\"\\n\"),a=r.stack.split(\"\\n\"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do{if(u--,0>--o||l[u]!==a[o]){var s=\"\\n\"+l[u].replace(\" at new \",\" at \");return e.displayName&&s.includes(\"<anonymous>\")&&(s=s.replace(\"<anonymous>\",e.displayName)),s}}while(1<=u&&0<=o);break}}}finally{ha=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:\"\")?i(e):\"\"}function c(e){switch(e.tag){case 5:return i(e.type);case 16:return i(\"Lazy\");case 13:return i(\"Suspense\");case 19:return i(\"SuspenseList\");case 0:case 2:case 15:return e=s(e.type,!1);case 11:return e=s(e.type.render,!1);case 1:return e=s(e.type,!0);default:return\"\"}}function f(e){var n=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(n.displayName||\"Context\")+\".Consumer\";case 10:return(n._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=(e=n.render).displayName||e.name||\"\",n.displayName||(\"\"!==e?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return n;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return function e(n){if(null==n)return null;if(\"function\"==typeof n)return n.displayName||n.name||null;if(\"string\"==typeof n)return n;switch(n){case Jl:return\"Fragment\";case Zl:return\"Portal\";case na:return\"Profiler\";case ea:return\"StrictMode\";case aa:return\"Suspense\";case ua:return\"SuspenseList\"}if(\"object\"==typeof n)switch(n.$$typeof){case ra:return(n.displayName||\"Context\")+\".Consumer\";case ta:return(n._context.displayName||\"Context\")+\".Provider\";case la:var t=n.render;return(n=n.displayName)||(n=\"\"!==(n=t.displayName||t.name||\"\")?\"ForwardRef(\"+n+\")\":\"ForwardRef\"),n;case oa:return null!==(t=n.displayName||null)?t:e(n.type)||\"Memo\";case ia:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}(n);case 8:return n===ea?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"==typeof n)return n.displayName||n.name||null;if(\"string\"==typeof n)return n}return null}function d(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function p(e){var n=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===n||\"radio\"===n)}function m(e){e._valueTracker||(e._valueTracker=function(e){var n=p(e)?\"checked\":\"value\",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=\"\"+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&\"function\"==typeof t.get&&\"function\"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function h(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r=\"\";return e&&(r=p(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==t&&(n.setValue(e),!0)}function g(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function v(e,n){var t=n.checked;return ma({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function y(e,n){var t=null==n.defaultValue?\"\":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=d(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:\"checkbox\"===n.type||\"radio\"===n.type?null!=n.checked:null!=n.value}}function b(e,n){null!=(n=n.checked)&&u(e,\"checked\",n,!1)}function k(e,n){b(e,n);var t=d(n.value),r=n.type;if(null!=t)\"number\"===r?(0===t&&\"\"===e.value||e.value!=t)&&(e.value=\"\"+t):e.value!==\"\"+t&&(e.value=\"\"+t);else if(\"submit\"===r||\"reset\"===r)return void e.removeAttribute(\"value\");n.hasOwnProperty(\"value\")?S(e,n.type,t):n.hasOwnProperty(\"defaultValue\")&&S(e,n.type,d(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function w(e,n,t){if(n.hasOwnProperty(\"value\")||n.hasOwnProperty(\"defaultValue\")){var r=n.type;if(!(\"submit\"!==r&&\"reset\"!==r||void 0!==n.value&&null!==n.value))return;n=\"\"+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}\"\"!==(t=e.name)&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,\"\"!==t&&(e.name=t)}function S(e,n,t){\"number\"===n&&g(e.ownerDocument)===e||(null==t?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+t&&(e.defaultValue=\"\"+t))}function x(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n[\"$\"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty(\"$\"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=\"\"+d(t),n=null,l=0;l<e.length;l++){if(e[l].value===t)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function E(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(t(91));return ma({},n,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function C(e,n){var r=n.value;if(null==r){if(r=n.children,n=n.defaultValue,null!=r){if(null!=n)throw Error(t(92));if(ga(r)){if(1<r.length)throw Error(t(93));r=r[0]}n=r}null==n&&(n=\"\"),r=n}e._wrapperState={initialValue:d(r)}}function N(e,n){var t=d(n.value),r=d(n.defaultValue);null!=t&&((t=\"\"+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=\"\"+r)}function z(e,n){(n=e.textContent)===e._wrapperState.initialValue&&\"\"!==n&&null!==n&&(e.value=n)}function P(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function _(e,n){return null==e||\"http://www.w3.org/1999/xhtml\"===e?P(n):\"http://www.w3.org/2000/svg\"===e&&\"foreignObject\"===n?\"http://www.w3.org/1999/xhtml\":e}function L(e,n,t){return null==n||\"boolean\"==typeof n||\"\"===n?\"\":t||\"number\"!=typeof n||0===n||ba.hasOwnProperty(e)&&ba[e]?(\"\"+n).trim():n+\"px\"}function T(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf(\"--\"),l=L(t,n[t],r);\"float\"===t&&(t=\"cssFloat\"),r?e.setProperty(t,l):e[t]=l}}function M(e,n){if(n){if(wa[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(t(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(t(60));if(\"object\"!=typeof n.dangerouslySetInnerHTML||!(\"__html\"in n.dangerouslySetInnerHTML))throw Error(t(61))}if(null!=n.style&&\"object\"!=typeof n.style)throw Error(t(62))}}function F(e,n){if(-1===e.indexOf(\"-\"))return\"string\"==typeof n.is;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}function R(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function D(e){if(e=cn(e)){if(\"function\"!=typeof xa)throw Error(t(280));var n=e.stateNode;n&&(n=dn(n),xa(e.stateNode,e.type,n))}}function O(e){Ea?Ca?Ca.push(e):Ca=[e]:Ea=e}function I(){if(Ea){var e=Ea,n=Ca;if(Ca=Ea=null,D(e),n)for(e=0;e<n.length;e++)D(n[e])}}function U(e,n,t){if(Pa)return e(n,t);Pa=!0;try{return Na(e,n,t)}finally{Pa=!1,(null!==Ea||null!==Ca)&&(za(),I())}}function V(e,n){var r=e.stateNode;if(null===r)return null;var l=dn(r);if(null===l)return null;r=l[n];e:switch(n){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(l=!l.disabled)||(l=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!l;break e;default:e=!1}if(e)return null;if(r&&\"function\"!=typeof r)throw Error(t(231,n,typeof r));return r}function A(e,n,r,l,a,u,o,i,s){if(function(e,n,t,r,l,a,u,o,i){Da=!1,Oa=null,Ra.apply(Va,arguments)}.apply(this,arguments),Da){if(!Da)throw Error(t(198));var c=Oa;Da=!1,Oa=null,Ia||(Ia=!0,Ua=c)}}function B(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function W(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&(null!==(e=e.alternate)&&(n=e.memoizedState)),null!==n)return n.dehydrated}return null}function H(e){if(B(e)!==e)throw Error(t(188))}function Q(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=B(e)))throw Error(t(188));return n!==e?null:e}for(var r=e,l=n;;){var a=r.return;if(null===a)break;var u=a.alternate;if(null===u){if(null!==(l=a.return)){r=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===r)return H(a),e;if(u===l)return H(a),n;u=u.sibling}throw Error(t(188))}if(r.return!==l.return)r=a,l=u;else{for(var o=!1,i=a.child;i;){if(i===r){o=!0,r=a,l=u;break}if(i===l){o=!0,l=a,r=u;break}i=i.sibling}if(!o){for(i=u.child;i;){if(i===r){o=!0,r=u,l=a;break}if(i===l){o=!0,l=u,r=a;break}i=i.sibling}if(!o)throw Error(t(189))}}if(r.alternate!==l)throw Error(t(190))}if(3!==r.tag)throw Error(t(188));return r.stateNode.current===r?e:n}(e))?function e(n){if(5===n.tag||6===n.tag)return n;for(n=n.child;null!==n;){var t=e(n);if(null!==t)return t;n=n.sibling}return null}(e):null}function j(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=j(o):0!==(a&=u)&&(r=j(a))}else 0!==(u=t&~l)?r=j(u):0!==a&&(r=j(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-tu(n)),r|=e[t],n&=~l;return r}function q(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:default:return-1}}function K(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Y(){var e=au;return 0==(4194240&(au<<=1))&&(au=64),e}function X(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function G(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-tu(n)]=t}function Z(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-tu(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}function J(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}function ee(e,n){switch(e){case\"focusin\":case\"focusout\":cu=null;break;case\"dragenter\":case\"dragleave\":fu=null;break;case\"mouseover\":case\"mouseout\":du=null;break;case\"pointerover\":case\"pointerout\":pu.delete(n.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":mu.delete(n.pointerId)}}function ne(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==n&&(null!==(n=cn(n))&&_s(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l),e)}function te(e){var n=sn(e.target);if(null!==n){var t=B(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=W(t)))return e.blockedOn=n,void Ms(e.priority,function(){Ls(t)})}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function re(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=fe(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=cn(t))&&_s(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);Sa=r,t.target.dispatchEvent(r),Sa=null,n.shift()}return!0}function le(e,n,t){re(e)&&t.delete(n)}function ae(){iu=!1,null!==cu&&re(cu)&&(cu=null),null!==fu&&re(fu)&&(fu=null),null!==du&&re(du)&&(du=null),pu.forEach(le),mu.forEach(le)}function ue(e,n){e.blockedOn===n&&(e.blockedOn=null,iu||(iu=!0,Ba(Wa,ae)))}function oe(e){if(0<su.length){ue(su[0],e);for(var n=1;n<su.length;n++){var t=su[n];t.blockedOn===e&&(t.blockedOn=null)}}for(null!==cu&&ue(cu,e),null!==fu&&ue(fu,e),null!==du&&ue(du,e),n=function(n){return ue(n,e)},pu.forEach(n),mu.forEach(n),n=0;n<hu.length;n++)(t=hu[n]).blockedOn===e&&(t.blockedOn=null);for(;0<hu.length&&null===(n=hu[0]).blockedOn;)te(n),null===n.blockedOn&&hu.shift()}function ie(e,n,t,r){var l=ou,a=vu.transition;vu.transition=null;try{ou=1,ce(e,n,t,r)}finally{ou=l,vu.transition=a}}function se(e,n,t,r){var l=ou,a=vu.transition;vu.transition=null;try{ou=4,ce(e,n,t,r)}finally{ou=l,vu.transition=a}}function ce(e,n,t,r){if(yu){var l=fe(e,n,t,r);if(null===l)Ye(e,n,r,bu,t),ee(e,r);else if(function(e,n,t,r,l){switch(n){case\"focusin\":return cu=ne(cu,e,n,t,r,l),!0;case\"dragenter\":return fu=ne(fu,e,n,t,r,l),!0;case\"mouseover\":return du=ne(du,e,n,t,r,l),!0;case\"pointerover\":var a=l.pointerId;return pu.set(a,ne(pu.get(a)||null,e,n,t,r,l)),!0;case\"gotpointercapture\":return a=l.pointerId,mu.set(a,ne(mu.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(ee(e,r),4&n&&-1<gu.indexOf(e)){for(;null!==l;){var a=cn(l);if(null!==a&&Ps(a),null===(a=fe(e,n,t,r))&&Ye(e,n,r,bu,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else Ye(e,n,r,null,t)}}function fe(e,n,t,r){if(bu=null,null!==(e=sn(e=R(r))))if(null===(n=B(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=W(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return bu=e,null}function de(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 1;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 4;case\"message\":switch(Ka()){case Ya:return 1;case Xa:return 4;case Ga:case Za:return 16;case Ja:return 536870912;default:return 16}default:return 16}}function pe(){if(Su)return Su;var e,n,t=wu,r=t.length,l=\"value\"in ku?ku.value:ku.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return Su=l.slice(e,1<n?1-n:void 0)}function me(e){var n=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function he(){return!0}function ge(){return!1}function ve(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?he:ge,this.isPropagationStopped=ge,this}return ma(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=he)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=he)},persist:function(){},isPersistent:he}),n}function ye(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=Iu[e])&&!!n[e]}function be(e){return ye}function ke(e,n){switch(e){case\"keyup\":return-1!==Hu.indexOf(n.keyCode);case\"keydown\":return 229!==n.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function we(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}function Se(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===n?!!Gu[e.type]:\"textarea\"===n}function xe(e,n,t,r){O(r),0<(n=Ge(n,\"onChange\")).length&&(t=new Eu(\"onChange\",\"change\",null,t,r),e.push({event:t,listeners:n}))}function Ee(e){Qe(e,0)}function Ce(e){if(h(fn(e)))return e}function Ne(e,n){if(\"change\"===e)return n}function ze(){Zu&&(Zu.detachEvent(\"onpropertychange\",Pe),Ju=Zu=null)}function Pe(e){if(\"value\"===e.propertyName&&Ce(Ju)){var n=[];xe(n,Ju,e,R(e)),U(Ee,n)}}function _e(e,n,t){\"focusin\"===e?(ze(),Ju=t,(Zu=n).attachEvent(\"onpropertychange\",Pe)):\"focusout\"===e&&ze()}function Le(e,n){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return Ce(Ju)}function Te(e,n){if(\"click\"===e)return Ce(n)}function Me(e,n){if(\"input\"===e||\"change\"===e)return Ce(n)}function Fe(e,n){if(no(e,n))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!Hl.call(n,l)||!no(e[l],n[l]))return!1}return!0}function Re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function De(e,n){var t,r=Re(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Re(r)}}function Oe(){for(var e=window,n=g();n instanceof e.HTMLIFrameElement;){try{var t=\"string\"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=g((e=n.contentWindow).document)}return n}function Ie(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(\"input\"===n&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===n||\"true\"===e.contentEditable)}function Ue(e){var n=Oe(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&function e(n,t){return!(!n||!t)&&(n===t||(!n||3!==n.nodeType)&&(t&&3===t.nodeType?e(n,t.parentNode):\"contains\"in n?n.contains(t):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(t))))}(t.ownerDocument.documentElement,t)){if(null!==r&&Ie(t))if(n=r.start,void 0===(e=r.end)&&(e=n),\"selectionStart\"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=De(t,a);var u=De(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(\"function\"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}function Ve(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;uo||null==ro||ro!==g(r)||(\"selectionStart\"in(r=ro)&&Ie(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ao&&Fe(ao,r)||(ao=r,0<(r=Ge(lo,\"onSelect\")).length&&(n=new Eu(\"onSelect\",\"select\",null,n,t),e.push({event:n,listeners:r}),n.target=ro)))}function Ae(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t[\"Webkit\"+e]=\"webkit\"+n,t[\"Moz\"+e]=\"moz\"+n,t}function Be(e){if(io[e])return io[e];if(!oo[e])return e;var n,t=oo[e];for(n in t)if(t.hasOwnProperty(n)&&n in so)return io[e]=t[n];return e}function We(e,n){ho.set(e,n),r(n,[e])}function He(e,n,t){var r=e.type||\"unknown-event\";e.currentTarget=t,A(r,n,void 0,e),e.currentTarget=null}function Qe(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;He(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;He(l,o,s),a=i}}}if(Ia)throw e=Ua,Ia=!1,Ua=null,e}function je(e,n){var t=n[Mo];void 0===t&&(t=n[Mo]=new Set);var r=e+\"__bubble\";t.has(r)||(Ke(n,e,2,!1),t.add(r))}function $e(e,n,t){var r=0;n&&(r|=4),Ke(t,e,r,n)}function qe(e){if(!e[bo]){e[bo]=!0,Al.forEach(function(n){\"selectionchange\"!==n&&(yo.has(n)||$e(n,!1,e),$e(n,!0,e))});var n=9===e.nodeType?e:e.ownerDocument;null===n||n[bo]||(n[bo]=!0,$e(\"selectionchange\",!1,n))}}function Ke(e,n,t,r,l){switch(de(n)){case 1:l=ie;break;case 4:l=se;break;default:l=ce}t=l.bind(null,n,t,e),l=void 0,!_a||\"touchstart\"!==n&&\"touchmove\"!==n&&\"wheel\"!==n||(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function Ye(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=sn(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}U(function(){var r=a,l=R(t),u=[];e:{var o=ho.get(e);if(void 0!==o){var i=Eu,s=e;switch(e){case\"keypress\":if(0===me(t))break e;case\"keydown\":case\"keyup\":i=Uu;break;case\"focusin\":s=\"focus\",i=Lu;break;case\"focusout\":s=\"blur\",i=Lu;break;case\"beforeblur\":case\"afterblur\":i=Lu;break;case\"click\":if(2===t.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":i=Pu;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":i=_u;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":i=Au;break;case co:case fo:case po:i=Tu;break;case mo:i=Bu;break;case\"scroll\":i=Nu;break;case\"wheel\":i=Wu;break;case\"copy\":case\"cut\":case\"paste\":i=Mu;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":i=Vu}var c=0!=(4&n),f=!c&&\"scroll\"===e,d=c?null!==o?o+\"Capture\":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=V(m,d))&&c.push(Xe(m,h,p)))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(o=\"mouseover\"===e||\"pointerover\"===e,i=\"mouseout\"===e||\"pointerout\"===e,(!o||t===Sa||!(s=t.relatedTarget||t.fromElement)||!sn(s)&&!s[To])&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=r,null!==(s=(s=t.relatedTarget||t.toElement)?sn(s):null)&&(s!==(f=B(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=Pu,h=\"onMouseLeave\",d=\"onMouseEnter\",m=\"mouse\",\"pointerout\"!==e&&\"pointerover\"!==e||(c=Vu,h=\"onPointerLeave\",d=\"onPointerEnter\",m=\"pointer\"),f=null==i?o:fn(i),p=null==s?o:fn(s),(o=new c(h,m+\"leave\",i,t,l)).target=f,o.relatedTarget=p,h=null,sn(l)===r&&((c=new c(d,m+\"enter\",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)e:{for(d=s,m=0,p=c=i;p;p=Ze(p))m++;for(p=0,h=d;h;h=Ze(h))p++;for(;0<m-p;)c=Ze(c),m--;for(;0<p-m;)d=Ze(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ze(c),d=Ze(d)}c=null}else c=null;null!==i&&Je(u,o,i,c,!1),null!==s&&null!==f&&Je(u,f,s,c,!0)}if(\"select\"===(i=(o=r?fn(r):window).nodeName&&o.nodeName.toLowerCase())||\"input\"===i&&\"file\"===o.type)var g=Ne;else if(Se(o))if(eo)g=Me;else{g=Le;var v=_e}else(i=o.nodeName)&&\"input\"===i.toLowerCase()&&(\"checkbox\"===o.type||\"radio\"===o.type)&&(g=Te);switch(g&&(g=g(e,r))?xe(u,g,t,l):(v&&v(e,o,r),\"focusout\"===e&&(v=o._wrapperState)&&v.controlled&&\"number\"===o.type&&S(o,\"number\",o.value)),v=r?fn(r):window,e){case\"focusin\":(Se(v)||\"true\"===v.contentEditable)&&(ro=v,lo=r,ao=null);break;case\"focusout\":ao=lo=ro=null;break;case\"mousedown\":uo=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":uo=!1,Ve(u,t,l);break;case\"selectionchange\":if(to)break;case\"keydown\":case\"keyup\":Ve(u,t,l)}var y;if(Qu)e:{switch(e){case\"compositionstart\":var b=\"onCompositionStart\";break e;case\"compositionend\":b=\"onCompositionEnd\";break e;case\"compositionupdate\":b=\"onCompositionUpdate\";break e}b=void 0}else Xu?ke(e,t)&&(b=\"onCompositionEnd\"):\"keydown\"===e&&229===t.keyCode&&(b=\"onCompositionStart\");b&&(qu&&\"ko\"!==t.locale&&(Xu||\"onCompositionStart\"!==b?\"onCompositionEnd\"===b&&Xu&&(y=pe()):(wu=\"value\"in(ku=l)?ku.value:ku.textContent,Xu=!0)),0<(v=Ge(r,b)).length&&(b=new Fu(b,e,null,t,l),u.push({event:b,listeners:v}),y?b.data=y:null!==(y=we(t))&&(b.data=y))),(y=$u?function(e,n){switch(e){case\"compositionend\":return we(n);case\"keypress\":return 32!==n.which?null:(Yu=!0,Ku);case\"textInput\":return(e=n.data)===Ku&&Yu?null:e;default:return null}}(e,t):function(e,n){if(Xu)return\"compositionend\"===e||!Qu&&ke(e,n)?(e=pe(),Su=wu=ku=null,Xu=!1,e):null;switch(e){case\"paste\":return null;case\"keypress\":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case\"compositionend\":return qu&&\"ko\"!==n.locale?null:n.data;default:return null}}(e,t))&&(0<(r=Ge(r,\"onBeforeInput\")).length&&(l=new Ru(\"onBeforeInput\",\"beforeinput\",null,t,l),u.push({event:l,listeners:r}),l.data=y))}Qe(u,n)})}function Xe(e,n,t){return{instance:e,listener:n,currentTarget:t}}function Ge(e,n){for(var t=n+\"Capture\",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=V(e,t))&&r.unshift(Xe(e,a,l)),null!=(a=V(e,n))&&r.push(Xe(e,a,l))),e=e.return}return r}function Ze(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Je(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=V(t,a))&&u.unshift(Xe(t,i,o)):l||null!=(i=V(t,a))&&u.push(Xe(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}function en(e){return(\"string\"==typeof e?e:\"\"+e).replace(ko,\"\\n\").replace(wo,\"\")}function nn(e,n,r,l){if(n=en(n),en(e)!==n&&r)throw Error(t(425))}function tn(){}function rn(e,n){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof n.children||\"number\"==typeof n.children||\"object\"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}function ln(e){setTimeout(function(){throw e})}function an(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType)if(\"/$\"===(t=l.data)){if(0===r)return e.removeChild(l),void oe(n);r--}else\"$\"!==t&&\"$?\"!==t&&\"$!\"!==t||r++;t=l}while(t);oe(n)}function un(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if(\"$\"===(n=e.data)||\"$!\"===n||\"$?\"===n)break;if(\"/$\"===n)return null}}return e}function on(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if(\"$\"===t||\"$!\"===t||\"$?\"===t){if(0===n)return e;n--}else\"/$\"===t&&n++}e=e.previousSibling}return null}function sn(e){var n=e[_o];if(n)return n;for(var t=e.parentNode;t;){if(n=t[To]||t[_o]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=on(e);null!==e;){if(t=e[_o])return t;e=on(e)}return n}t=(e=t).parentNode}return null}function cn(e){return!(e=e[_o]||e[To])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function fn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(t(33))}function dn(e){return e[Lo]||null}function pn(e){return{current:e}}function mn(e,n){0>Oo||(e.current=Do[Oo],Do[Oo]=null,Oo--)}function hn(e,n,t){Do[++Oo]=e.current,e.current=n}function gn(e,n){var t=e.type.contextTypes;if(!t)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function vn(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yn(e,n,r){if(Uo.current!==Io)throw Error(t(168));hn(Uo,n),hn(Vo,r)}function bn(e,n,r){var l=e.stateNode;if(n=n.childContextTypes,\"function\"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in n))throw Error(t(108,f(e)||\"Unknown\",a));return ma({},r,l)}function kn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,Ao=Uo.current,hn(Uo,e),hn(Vo,Vo.current),!0}function wn(e,n,r){var l=e.stateNode;if(!l)throw Error(t(169));r?(e=bn(e,n,Ao),l.__reactInternalMemoizedMergedChildContext=e,mn(Vo),mn(Uo),hn(Uo,e)):mn(Vo),hn(Vo,r)}function Sn(e){null===Bo?Bo=[e]:Bo.push(e)}function xn(){if(!Ho&&null!==Bo){Ho=!0;var e=0,n=ou;try{var t=Bo;for(ou=1;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}Bo=null,Wo=!1}catch(n){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ha(Ya,xn),n}finally{ou=n,Ho=!1}}return null}function En(e,n){Qo[jo++]=qo,Qo[jo++]=$o,$o=e,qo=n}function Cn(e,n,t){Ko[Yo++]=Go,Ko[Yo++]=Zo,Ko[Yo++]=Xo,Xo=e;var r=Go;e=Zo;var l=32-tu(r)-1;r&=~(1<<l),t+=1;var a=32-tu(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,Go=1<<32-tu(n)+l|t<<l|r,Zo=a+e}else Go=1<<a|t<<l|r,Zo=e}function Nn(e){null!==e.return&&(En(e,1),Cn(e,1,0))}function zn(e){for(;e===$o;)$o=Qo[--jo],Qo[jo]=null,qo=Qo[--jo],Qo[jo]=null;for(;e===Xo;)Xo=Ko[--Yo],Ko[Yo]=null,Zo=Ko[--Yo],Ko[Yo]=null,Go=Ko[--Yo],Ko[Yo]=null}function Pn(e,n){var t=Ns(5,null,null,0);t.elementType=\"DELETED\",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function _n(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,Jo=e,ei=un(n.firstChild),!0);case 6:return null!==(n=\"\"===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,Jo=e,ei=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==Xo?{id:Go,overflow:Zo}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=Ns(18,null,null,0)).stateNode=n,t.return=e,e.child=t,Jo=e,ei=null,!0);default:return!1}}function Ln(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Tn(e){if(ni){var n=ei;if(n){var r=n;if(!_n(e,n)){if(Ln(e))throw Error(t(418));n=un(r.nextSibling);var l=Jo;n&&_n(e,n)?Pn(l,r):(e.flags=-4097&e.flags|2,ni=!1,Jo=e)}}else{if(Ln(e))throw Error(t(418));e.flags=-4097&e.flags|2,ni=!1,Jo=e}}}function Mn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Jo=e}function Fn(e){if(e!==Jo)return!1;if(!ni)return Mn(e),ni=!0,!1;var n;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n=\"head\"!==(n=e.type)&&\"body\"!==n&&!rn(e.type,e.memoizedProps)),n&&(n=ei)){if(Ln(e)){for(e=ei;e;)e=un(e.nextSibling);throw Error(t(418))}for(;n;)Pn(e,n),n=un(n.nextSibling)}if(Mn(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(t(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var r=e.data;if(\"/$\"===r){if(0===n){ei=un(e.nextSibling);break e}n--}else\"$\"!==r&&\"$!\"!==r&&\"$?\"!==r||n++}e=e.nextSibling}ei=null}}else ei=Jo?un(e.stateNode.nextSibling):null;return!0}function Rn(){ei=Jo=null,ni=!1}function Dn(e){null===ti?ti=[e]:ti.push(e)}function On(e,n,r){if(null!==(e=r.ref)&&\"function\"!=typeof e&&\"object\"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(t(309));var l=r.stateNode}if(!l)throw Error(t(147,e));var a=l,u=\"\"+e;return null!==n&&null!==n.ref&&\"function\"==typeof n.ref&&n.ref._stringRef===u?n.ref:((n=function(e){var n=a.refs;null===e?delete n[u]:n[u]=e})._stringRef=u,n)}if(\"string\"!=typeof e)throw Error(t(284));if(!r._owner)throw Error(t(290,e))}return e}function In(e,n){throw e=Object.prototype.toString.call(n),Error(t(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(n).join(\", \")+\"}\":e))}function Un(e){return(0,e._init)(e._payload)}function Vn(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function r(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function l(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function a(e,n){return(e=bl(e,n)).index=0,e.sibling=null,e}function u(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function i(n){return e&&null===n.alternate&&(n.flags|=2),n}function s(e,n,t,r){return null===n||6!==n.tag?((n=xl(t,e.mode,r)).return=e,n):((n=a(n,t)).return=e,n)}function c(e,n,t,r){var l=t.type;return l===Jl?d(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===l||\"object\"==typeof l&&null!==l&&l.$$typeof===ia&&Un(l)===n.type)?((r=a(n,t.props)).ref=On(e,n,t),r.return=e,r):((r=kl(t.type,t.key,t.props,null,e.mode,r)).ref=On(e,n,t),r.return=e,r)}function f(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=El(t,e.mode,r)).return=e,n):((n=a(n,t.children||[])).return=e,n)}function d(e,n,t,r,l){return null===n||7!==n.tag?((n=wl(t,e.mode,r,l)).return=e,n):((n=a(n,t)).return=e,n)}function p(e,n,t){if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n)return(n=xl(\"\"+n,e.mode,t)).return=e,n;if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case Gl:return(t=kl(n.type,n.key,n.props,null,e.mode,t)).ref=On(e,null,n),t.return=e,t;case Zl:return(n=El(n,e.mode,t)).return=e,n;case ia:return p(e,(0,n._init)(n._payload),t)}if(ga(n)||o(n))return(n=wl(n,e.mode,t,null)).return=e,n;In(e,n)}return null}function m(e,n,t,r){var l=null!==n?n.key:null;if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t)return null!==l?null:s(e,n,\"\"+t,r);if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case Gl:return t.key===l?c(e,n,t,r):null;case Zl:return t.key===l?f(e,n,t,r):null;case ia:return m(e,n,(l=t._init)(t._payload),r)}if(ga(t)||o(t))return null!==l?null:d(e,n,t,r,null);In(e,t)}return null}function h(e,n,t,r,l){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r)return s(n,e=e.get(t)||null,\"\"+r,l);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case Gl:return c(n,e=e.get(null===r.key?t:r.key)||null,r,l);case Zl:return f(n,e=e.get(null===r.key?t:r.key)||null,r,l);case ia:return h(e,n,t,(0,r._init)(r._payload),l)}if(ga(r)||o(r))return d(n,e=e.get(t)||null,r,l,null);In(n,r)}return null}function g(t,a,o,i){for(var s=null,c=null,f=a,d=a=0,g=null;null!==f&&d<o.length;d++){f.index>d?(g=f,f=null):g=f.sibling;var v=m(t,f,o[d],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(t,f),a=u(v,a,d),null===c?s=v:c.sibling=v,c=v,f=g}if(d===o.length)return r(t,f),ni&&En(t,d),s;if(null===f){for(;d<o.length;d++)null!==(f=p(t,o[d],i))&&(a=u(f,a,d),null===c?s=f:c.sibling=f,c=f);return ni&&En(t,d),s}for(f=l(t,f);d<o.length;d++)null!==(g=h(f,t,d,o[d],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?d:g.key),a=u(g,a,d),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return n(t,e)}),ni&&En(t,d),s}function v(a,i,s,c){var f=o(s);if(\"function\"!=typeof f)throw Error(t(150));if(null==(s=f.call(s)))throw Error(t(151));for(var d=f=null,g=i,v=i=0,y=null,b=s.next();null!==g&&!b.done;v++,b=s.next()){g.index>v?(y=g,g=null):y=g.sibling;var k=m(a,g,b.value,c);if(null===k){null===g&&(g=y);break}e&&g&&null===k.alternate&&n(a,g),i=u(k,i,v),null===d?f=k:d.sibling=k,d=k,g=y}if(b.done)return r(a,g),ni&&En(a,v),f;if(null===g){for(;!b.done;v++,b=s.next())null!==(b=p(a,b.value,c))&&(i=u(b,i,v),null===d?f=b:d.sibling=b,d=b);return ni&&En(a,v),f}for(g=l(a,g);!b.done;v++,b=s.next())null!==(b=h(g,a,v,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?v:b.key),i=u(b,i,v),null===d?f=b:d.sibling=b,d=b);return e&&g.forEach(function(e){return n(a,e)}),ni&&En(a,v),f}return function e(t,l,u,s){if(\"object\"==typeof u&&null!==u&&u.type===Jl&&null===u.key&&(u=u.props.children),\"object\"==typeof u&&null!==u){switch(u.$$typeof){case Gl:e:{for(var c=u.key,f=l;null!==f;){if(f.key===c){if((c=u.type)===Jl){if(7===f.tag){r(t,f.sibling),(l=a(f,u.props.children)).return=t,t=l;break e}}else if(f.elementType===c||\"object\"==typeof c&&null!==c&&c.$$typeof===ia&&Un(c)===f.type){r(t,f.sibling),(l=a(f,u.props)).ref=On(t,f,u),l.return=t,t=l;break e}r(t,f);break}n(t,f),f=f.sibling}u.type===Jl?((l=wl(u.props.children,t.mode,s,u.key)).return=t,t=l):((s=kl(u.type,u.key,u.props,null,t.mode,s)).ref=On(t,l,u),s.return=t,t=s)}return i(t);case Zl:e:{for(f=u.key;null!==l;){if(l.key===f){if(4===l.tag&&l.stateNode.containerInfo===u.containerInfo&&l.stateNode.implementation===u.implementation){r(t,l.sibling),(l=a(l,u.children||[])).return=t,t=l;break e}r(t,l);break}n(t,l),l=l.sibling}(l=El(u,t.mode,s)).return=t,t=l}return i(t);case ia:return e(t,l,(f=u._init)(u._payload),s)}if(ga(u))return g(t,l,u,s);if(o(u))return v(t,l,u,s);In(t,u)}return\"string\"==typeof u&&\"\"!==u||\"number\"==typeof u?(u=\"\"+u,null!==l&&6===l.tag?(r(t,l.sibling),(l=a(l,u)).return=t,t=l):(r(t,l),(l=xl(u,t.mode,s)).return=t,t=l),i(t)):r(t,l)}}function An(){si=ii=oi=null}function Bn(e,n){n=ui.current,mn(ui),e._currentValue=n}function Wn(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Hn(e,n){oi=e,si=ii=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(Oi=!0),e.firstContext=null)}function Qn(e){var n=e._currentValue;if(si!==e)if(e={context:e,memoizedValue:n,next:null},null===ii){if(null===oi)throw Error(t(308));ii=e,oi.dependencies={lanes:0,firstContext:e}}else ii=ii.next=e;return n}function jn(e){null===ci?ci=[e]:ci.push(e)}function $n(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,jn(n)):(t.next=l.next,l.next=t),n.interleaved=t,qn(e,r)}function qn(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}function Kn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yn(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Xn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Gn(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ji)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,fi(e,t)}return null===(l=r.interleaved)?(n.next=n,jn(r)):(n.next=l.next,l.next=n),r.interleaved=n,qn(e,t)}function Zn(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Z(e,t)}}function Jn(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function et(e,n,t,r){var l=e.updateQueue;di=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&((o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i))}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if(\"function\"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(d=\"function\"==typeof(m=h.payload)?m.call(p,f,d):m)||void 0===d)break e;f=ma({},f,d);break e;case 2:di=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do{u|=l.lane,l=l.next}while(l!==n)}else null===a&&(l.shared.lanes=0);os|=u,e.lanes=u,e.memoizedState=f}}function nt(e,n,r){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var l=e[n],a=l.callback;if(null!==a){if(l.callback=null,l=r,\"function\"!=typeof a)throw Error(t(191,a));a.call(l)}}}function tt(e){if(e===pi)throw Error(t(174));return e}function rt(e,n){switch(hn(gi,n),hn(hi,e),hn(mi,pi),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:_(null,\"\");break;default:n=_(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}mn(mi),hn(mi,n)}function lt(e){mn(mi),mn(hi),mn(gi)}function at(e){tt(gi.current);var n=tt(mi.current),t=_(n,e.type);n!==t&&(hn(hi,e),hn(mi,t))}function ut(e){hi.current===e&&(mn(mi),mn(hi))}function ot(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||\"$?\"===t.data||\"$!\"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function it(){for(var e=0;e<yi.length;e++)yi[e]._workInProgressVersionPrimary=null;yi.length=0}function st(){throw Error(t(321))}function ct(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!no(e[t],n[t]))return!1;return!0}function ft(e,n,r,l,a,u){if(wi=u,Si=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,bi.current=null===e||null===e.memoizedState?Li:Ti,e=r(l,a),Ni){u=0;do{if(Ni=!1,zi=0,25<=u)throw Error(t(301));u+=1,Ei=xi=null,n.updateQueue=null,bi.current=Mi,e=r(l,a)}while(Ni)}if(bi.current=_i,n=null!==xi&&null!==xi.next,wi=0,Ei=xi=Si=null,Ci=!1,n)throw Error(t(300));return e}function dt(){var e=0!==zi;return zi=0,e}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ei?Si.memoizedState=Ei=e:Ei=Ei.next=e,Ei}function mt(){if(null===xi){var e=Si.alternate;e=null!==e?e.memoizedState:null}else e=xi.next;var n=null===Ei?Si.memoizedState:Ei.next;if(null!==n)Ei=n,xi=e;else{if(null===e)throw Error(t(310));e={memoizedState:(xi=e).memoizedState,baseState:xi.baseState,baseQueue:xi.baseQueue,queue:xi.queue,next:null},null===Ei?Si.memoizedState=Ei=e:Ei=Ei.next=e}return Ei}function ht(e,n){return\"function\"==typeof n?n(e):n}function gt(e,n,r){if(null===(r=(n=mt()).queue))throw Error(t(311));r.lastRenderedReducer=e;var l=xi,a=l.baseQueue,u=r.pending;if(null!==u){if(null!==a){var o=a.next;a.next=u.next,u.next=o}l.baseQueue=a=u,r.pending=null}if(null!==a){u=a.next,l=l.baseState;var i=o=null,s=null,c=u;do{var f=c.lane;if((wi&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),l=c.hasEagerState?c.eagerState:e(l,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(i=s=d,o=l):s=s.next=d,Si.lanes|=f,os|=f}c=c.next}while(null!==c&&c!==u);null===s?o=l:s.next=i,no(l,n.memoizedState)||(Oi=!0),n.memoizedState=l,n.baseState=o,n.baseQueue=s,r.lastRenderedState=l}if(null!==(e=r.interleaved)){a=e;do{u=a.lane,Si.lanes|=u,os|=u,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[n.memoizedState,r.dispatch]}function vt(e,n,r){if(null===(r=(n=mt()).queue))throw Error(t(311));r.lastRenderedReducer=e;var l=r.dispatch,a=r.pending,u=n.memoizedState;if(null!==a){r.pending=null;var o=a=a.next;do{u=e(u,o.action),o=o.next}while(o!==a);no(u,n.memoizedState)||(Oi=!0),n.memoizedState=u,null===n.baseQueue&&(n.baseState=u),r.lastRenderedState=u}return[u,l]}function yt(e,n,t){}function bt(e,n,r){r=Si;var l=mt(),a=n(),u=!no(l.memoizedState,a);if(u&&(l.memoizedState=a,Oi=!0),l=l.queue,Tt(St.bind(null,r,l,e),[e]),l.getSnapshot!==n||u||null!==Ei&&1&Ei.memoizedState.tag){if(r.flags|=2048,Nt(9,wt.bind(null,r,l,a,n),void 0,null),null===es)throw Error(t(349));0!=(30&wi)||kt(r,n,a)}return a}function kt(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=Si.updateQueue)?(n={lastEffect:null,stores:null},Si.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function wt(e,n,t,r){n.value=t,n.getSnapshot=r,xt(n)&&Et(e)}function St(e,n,t){return t(function(){xt(n)&&Et(e)})}function xt(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!no(e,t)}catch(e){return!0}}function Et(e){var n=qn(e,1);null!==n&&Yr(n,e,1,-1)}function Ct(e){var n=pt();return\"function\"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ht,lastRenderedState:e},n.queue=e,e=e.dispatch=function(e,n,t){var r=Kr(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Bt(e))Wt(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,no(o,u)){var i=n.interleaved;return null===i?(l.next=l,jn(n)):(l.next=i.next,i.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=$n(e,n,l,r))&&(l=qr(),Yr(t,e,r,l),Ht(t,n,r))}}.bind(null,Si,e),[n.memoizedState,e]}function Nt(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=Si.updateQueue)?(n={lastEffect:null,stores:null},Si.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function zt(e){return mt().memoizedState}function Pt(e,n,t,r){var l=pt();Si.flags|=e,l.memoizedState=Nt(1|n,t,void 0,void 0===r?null:r)}function _t(e,n,t,r){var l=mt();r=void 0===r?null:r;var a=void 0;if(null!==xi){var u=xi.memoizedState;if(a=u.destroy,null!==r&&ct(r,u.deps))return void(l.memoizedState=Nt(n,t,a,r))}Si.flags|=e,l.memoizedState=Nt(1|n,t,a,r)}function Lt(e,n){return Pt(8390656,8,e,n)}function Tt(e,n){return _t(2048,8,e,n)}function Mt(e,n){return _t(4,2,e,n)}function Ft(e,n){return _t(4,4,e,n)}function Rt(e,n){return\"function\"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function Dt(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,_t(4,4,Rt.bind(null,n,e),t)}function Ot(e,n){}function It(e,n){var t=mt();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&ct(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Ut(e,n){var t=mt();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&ct(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Vt(e,n,t){return 0==(21&wi)?(e.baseState&&(e.baseState=!1,Oi=!0),e.memoizedState=t):(no(t,n)||(t=Y(),Si.lanes|=t,os|=t,e.baseState=!0),n)}function At(){return mt().memoizedState}function Bt(e){var n=e.alternate;return e===Si||null!==n&&n===Si}function Wt(e,n){Ni=Ci=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ht(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,Z(e,t)}}function Qt(e,n){if(e&&e.defaultProps){for(var t in n=ma({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}function jt(e,n,t,r){t=null===(t=t(r,n=e.memoizedState))||void 0===t?n:ma({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}function $t(e,n,t,r,l,a,u){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!n.prototype||!n.prototype.isPureReactComponent||(!Fe(t,r)||!Fe(l,a))}function qt(e,n,t){var r=!1,l=Io,a=n.contextType;return\"object\"==typeof a&&null!==a?a=Qn(a):(l=vn(n)?Ao:Uo.current,a=(r=null!==(r=n.contextTypes)&&void 0!==r)?gn(e,l):Io),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=Fi,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function Kt(e,n,t,r){e=n.state,\"function\"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),\"function\"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&Fi.enqueueReplaceState(n,n.state,null)}function Yt(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},Kn(e);var a=n.contextType;\"object\"==typeof a&&null!==a?l.context=Qn(a):(a=vn(n)?Ao:Uo.current,l.context=gn(e,a)),l.state=e.memoizedState,\"function\"==typeof(a=n.getDerivedStateFromProps)&&(jt(e,n,a,t),l.state=e.memoizedState),\"function\"==typeof n.getDerivedStateFromProps||\"function\"==typeof l.getSnapshotBeforeUpdate||\"function\"!=typeof l.UNSAFE_componentWillMount&&\"function\"!=typeof l.componentWillMount||(n=l.state,\"function\"==typeof l.componentWillMount&&l.componentWillMount(),\"function\"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&Fi.enqueueReplaceState(l,l.state,null),et(e,t,l,r),l.state=e.memoizedState),\"function\"==typeof l.componentDidMount&&(e.flags|=4194308)}function Xt(e,n){try{var t=\"\",r=n;do{t+=c(r),r=r.return}while(r);var l=t}catch(e){l=\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}return{value:e,source:n,stack:l,digest:null}}function Gt(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function Zt(e,n){try{console.error(n.value)}catch(e){setTimeout(function(){throw e})}}function Jt(e,n,t){(t=Xn(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){hs||(hs=!0,gs=r),Zt(0,n)},t}function er(e,n,t){(t=Xn(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if(\"function\"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){Zt(0,n)}}var a=e.stateNode;return null!==a&&\"function\"==typeof a.componentDidCatch&&(t.callback=function(){Zt(0,n),\"function\"!=typeof r&&(null===vs?vs=new Set([this]):vs.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:\"\"})}),t}function nr(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new Ri;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=function(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=qr(),e.pingedLanes|=e.suspendedLanes&t,es===e&&(ts&t)===t&&(4===as||3===as&&(130023424&ts)===ts&&500>qa()-ds?rl(e,0):ss|=t),Xr(e,n)}.bind(null,e,n,t),n.then(e,e))}function tr(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function rr(e,n,t,r,l){return 0==(1&e.mode)?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=Xn(-1,1)).tag=2,Gn(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}function lr(e,n,t,r){n.child=null===e?ai(n,null,t,r):li(n,e.child,t,r)}function ar(e,n,t,r,l){t=t.render;var a=n.ref;return Hn(n,l),r=ft(e,n,t,r,a,l),t=dt(),null===e||Oi?(ni&&t&&Nn(n),n.flags|=1,lr(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,xr(e,n,l))}function ur(e,n,t,r,l){if(null===e){var a=t.type;return\"function\"!=typeof a||yl(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=kl(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,or(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:Fe)(u,r)&&e.ref===n.ref)return xr(e,n,l)}return n.flags|=1,(e=bl(a,r)).ref=n.ref,e.return=n,n.child=e}function or(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(Fe(a,r)&&e.ref===n.ref){if(Oi=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,xr(e,n,l);0!=(131072&e.flags)&&(Oi=!0)}}return cr(e,n,t,r,l)}function ir(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if(\"hidden\"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},hn(ls,rs),rs|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,hn(ls,rs),rs|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,hn(ls,rs),rs|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,hn(ls,rs),rs|=r;return lr(e,n,l,t),n.child}function sr(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function cr(e,n,t,r,l){var a=vn(t)?Ao:Uo.current;return a=gn(n,a),Hn(n,l),t=ft(e,n,t,r,a,l),r=dt(),null===e||Oi?(ni&&r&&Nn(n),n.flags|=1,lr(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,xr(e,n,l))}function fr(e,n,t,r,l){if(vn(t)){var a=!0;kn(n)}else a=!1;if(Hn(n,l),null===n.stateNode)Sr(e,n),qt(n,t,r),Yt(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;\"object\"==typeof s&&null!==s?s=Qn(s):s=gn(n,s=vn(t)?Ao:Uo.current);var c=t.getDerivedStateFromProps,f=\"function\"==typeof c||\"function\"==typeof u.getSnapshotBeforeUpdate;f||\"function\"!=typeof u.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&Kt(n,u,r,s),di=!1;var d=n.memoizedState;u.state=d,et(n,r,u,l),i=n.memoizedState,o!==r||d!==i||Vo.current||di?(\"function\"==typeof c&&(jt(n,t,c,r),i=n.memoizedState),(o=di||$t(n,t,o,r,d,i,s))?(f||\"function\"!=typeof u.UNSAFE_componentWillMount&&\"function\"!=typeof u.componentWillMount||(\"function\"==typeof u.componentWillMount&&u.componentWillMount(),\"function\"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),\"function\"==typeof u.componentDidMount&&(n.flags|=4194308)):(\"function\"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):(\"function\"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,Yn(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:Qt(n.type,o),u.props=s,f=n.pendingProps,d=u.context,\"object\"==typeof(i=t.contextType)&&null!==i?i=Qn(i):i=gn(n,i=vn(t)?Ao:Uo.current);var p=t.getDerivedStateFromProps;(c=\"function\"==typeof p||\"function\"==typeof u.getSnapshotBeforeUpdate)||\"function\"!=typeof u.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&Kt(n,u,r,i),di=!1,d=n.memoizedState,u.state=d,et(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||Vo.current||di?(\"function\"==typeof p&&(jt(n,t,p,r),m=n.memoizedState),(s=di||$t(n,t,s,r,d,m,i)||!1)?(c||\"function\"!=typeof u.UNSAFE_componentWillUpdate&&\"function\"!=typeof u.componentWillUpdate||(\"function\"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),\"function\"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),\"function\"==typeof u.componentDidUpdate&&(n.flags|=4),\"function\"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):(\"function\"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),\"function\"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):(\"function\"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),\"function\"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return dr(e,n,t,r,a,l)}function dr(e,n,t,r,l,a){sr(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&wn(n,t,!1),xr(e,n,a);r=n.stateNode,Di.current=n;var o=u&&\"function\"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=li(n,e.child,null,a),n.child=li(n,null,o,a)):lr(e,n,o,a),n.memoizedState=r.state,l&&wn(n,t,!0),n.child}function pr(e){var n=e.stateNode;n.pendingContext?yn(0,n.pendingContext,n.pendingContext!==n.context):n.context&&yn(0,n.context,!1),rt(e,n.containerInfo)}function mr(e,n,t,r,l){return Rn(),Dn(l),n.flags|=256,lr(e,n,t,r),n.child}function hr(e){return{baseLanes:e,cachePool:null,transitions:null}}function gr(e,n,r){var l,a=n.pendingProps,u=vi.current,o=!1,i=0!=(128&n.flags);if((l=i)||(l=(null===e||null!==e.memoizedState)&&0!=(2&u)),l?(o=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(u|=1),hn(vi,1&u),null===e)return Tn(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&n.mode)?n.lanes=1:\"$!\"===e.data?n.lanes=8:n.lanes=1073741824,null):(i=a.children,e=a.fallback,o?(a=n.mode,o=n.child,i={mode:\"hidden\",children:i},0==(1&a)&&null!==o?(o.childLanes=0,o.pendingProps=i):o=Sl(i,a,0,null),e=wl(e,a,r,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=hr(r),n.memoizedState=Ii,e):vr(n,i));if(null!==(u=e.memoizedState)&&null!==(l=u.dehydrated))return function(e,n,r,l,a,u,o){if(r)return 256&n.flags?(n.flags&=-257,l=Gt(Error(t(422))),yr(e,n,o,l)):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(u=l.fallback,a=n.mode,l=Sl({mode:\"visible\",children:l.children},a,0,null),(u=wl(u,a,o,null)).flags|=2,l.return=n,u.return=n,l.sibling=u,n.child=l,0!=(1&n.mode)&&li(n,e.child,null,o),n.child.memoizedState=hr(o),n.memoizedState=Ii,u);if(0==(1&n.mode))return yr(e,n,o,null);if(\"$!\"===a.data){if(l=a.nextSibling&&a.nextSibling.dataset)var i=l.dgst;return l=i,u=Error(t(419)),l=Gt(u,l,void 0),yr(e,n,o,l)}if(i=0!=(o&e.childLanes),Oi||i){if(null!==(l=es)){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(l.suspendedLanes|o))?0:a)&&a!==u.retryLane&&(u.retryLane=a,qn(e,a),Yr(l,e,a,-1))}return ul(),l=Gt(Error(t(421))),yr(e,n,o,l)}return\"$?\"===a.data?(n.flags|=128,n.child=e.child,n=function(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),gl(e,t)}.bind(null,e),a._reactRetry=n,null):(e=u.treeContext,ei=un(a.nextSibling),Jo=n,ni=!0,ti=null,null!==e&&(Ko[Yo++]=Go,Ko[Yo++]=Zo,Ko[Yo++]=Xo,Go=e.id,Zo=e.overflow,Xo=n),(n=vr(n,l.children)).flags|=4096,n)}(e,n,i,a,l,u,r);if(o){o=a.fallback,i=n.mode,l=(u=e.child).sibling;var s={mode:\"hidden\",children:a.children};return 0==(1&i)&&n.child!==u?((a=n.child).childLanes=0,a.pendingProps=s,n.deletions=null):(a=bl(u,s)).subtreeFlags=14680064&u.subtreeFlags,null!==l?o=bl(l,o):(o=wl(o,i,r,null)).flags|=2,o.return=n,a.return=n,a.sibling=o,n.child=a,a=o,o=n.child,i=null===(i=e.child.memoizedState)?hr(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,n.memoizedState=Ii,a}return e=(o=e.child).sibling,a=bl(o,{mode:\"visible\",children:a.children}),0==(1&n.mode)&&(a.lanes=r),a.return=n,a.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=a,n.memoizedState=null,a}function vr(e,n,t){return(n=Sl({mode:\"visible\",children:n},e.mode,0,null)).return=e,e.child=n}function yr(e,n,t,r){return null!==r&&Dn(r),li(n,e.child,null,t),(e=vr(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function br(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),Wn(e.return,n,t)}function kr(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function wr(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(lr(e,n,r.children,t),0!=(2&(r=vi.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&br(e,t,n);else if(19===e.tag)br(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(hn(vi,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case\"forwards\":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===ot(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),kr(n,!1,l,t,a);break;case\"backwards\":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===ot(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}kr(n,!0,t,null,a);break;case\"together\":kr(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Sr(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function xr(e,n,r){if(null!==e&&(n.dependencies=e.dependencies),os|=n.lanes,0==(r&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(t(153));if(null!==n.child){for(r=bl(e=n.child,e.pendingProps),n.child=r,r.return=n;null!==e.sibling;)e=e.sibling,(r=r.sibling=bl(e,e.pendingProps)).return=n;r.sibling=null}return n.child}function Er(e,n){if(!ni)switch(e.tailMode){case\"hidden\":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case\"collapsed\":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Cr(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Nr(e,n,r){var l=n.pendingProps;switch(zn(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cr(n),null;case 1:return vn(n.type)&&(mn(Vo),mn(Uo)),Cr(n),null;case 3:return l=n.stateNode,lt(),mn(Vo),mn(Uo),it(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(Fn(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==ti&&(Zr(ti),ti=null))),Vi(e,n),Cr(n),null;case 5:ut(n);var a=tt(gi.current);if(r=n.type,null!==e&&null!=n.stateNode)Ai(e,n,r,l,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(null===n.stateNode)throw Error(t(166));return Cr(n),null}if(e=tt(mi.current),Fn(n)){l=n.stateNode,r=n.type;var o=n.memoizedProps;switch(l[_o]=n,l[Lo]=o,e=0!=(1&n.mode),r){case\"dialog\":je(\"cancel\",l),je(\"close\",l);break;case\"iframe\":case\"object\":case\"embed\":je(\"load\",l);break;case\"video\":case\"audio\":for(a=0;a<vo.length;a++)je(vo[a],l);break;case\"source\":je(\"error\",l);break;case\"img\":case\"image\":case\"link\":je(\"error\",l),je(\"load\",l);break;case\"details\":je(\"toggle\",l);break;case\"input\":y(l,o),je(\"invalid\",l);break;case\"select\":l._wrapperState={wasMultiple:!!o.multiple},je(\"invalid\",l);break;case\"textarea\":C(l,o),je(\"invalid\",l)}for(var i in M(r,o),a=null,o)if(o.hasOwnProperty(i)){var s=o[i];\"children\"===i?\"string\"==typeof s?l.textContent!==s&&(!0!==o.suppressHydrationWarning&&nn(l.textContent,s,e),a=[\"children\",s]):\"number\"==typeof s&&l.textContent!==\"\"+s&&(!0!==o.suppressHydrationWarning&&nn(l.textContent,s,e),a=[\"children\",\"\"+s]):Bl.hasOwnProperty(i)&&null!=s&&\"onScroll\"===i&&je(\"scroll\",l)}switch(r){case\"input\":m(l),w(l,o,!0);break;case\"textarea\":m(l),z(l);break;case\"select\":case\"option\":break;default:\"function\"==typeof o.onClick&&(l.onclick=tn)}l=a,n.updateQueue=l,null!==l&&(n.flags|=4)}else{i=9===a.nodeType?a:a.ownerDocument,\"http://www.w3.org/1999/xhtml\"===e&&(e=P(r)),\"http://www.w3.org/1999/xhtml\"===e?\"script\"===r?((e=i.createElement(\"div\")).innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild)):\"string\"==typeof l.is?e=i.createElement(r,{is:l.is}):(e=i.createElement(r),\"select\"===r&&(i=e,l.multiple?i.multiple=!0:l.size&&(i.size=l.size))):e=i.createElementNS(e,r),e[_o]=n,e[Lo]=l,Ui(e,n,!1,!1),n.stateNode=e;e:{switch(i=F(r,l),r){case\"dialog\":je(\"cancel\",e),je(\"close\",e),a=l;break;case\"iframe\":case\"object\":case\"embed\":je(\"load\",e),a=l;break;case\"video\":case\"audio\":for(a=0;a<vo.length;a++)je(vo[a],e);a=l;break;case\"source\":je(\"error\",e),a=l;break;case\"img\":case\"image\":case\"link\":je(\"error\",e),je(\"load\",e),a=l;break;case\"details\":je(\"toggle\",e),a=l;break;case\"input\":y(e,l),a=v(e,l),je(\"invalid\",e);break;case\"option\":a=l;break;case\"select\":e._wrapperState={wasMultiple:!!l.multiple},a=ma({},l,{value:void 0}),je(\"invalid\",e);break;case\"textarea\":C(e,l),a=E(e,l),je(\"invalid\",e);break;default:a=l}for(o in M(r,a),s=a)if(s.hasOwnProperty(o)){var c=s[o];\"style\"===o?T(e,c):\"dangerouslySetInnerHTML\"===o?null!=(c=c?c.__html:void 0)&&va(e,c):\"children\"===o?\"string\"==typeof c?(\"textarea\"!==r||\"\"!==c)&&ya(e,c):\"number\"==typeof c&&ya(e,\"\"+c):\"suppressContentEditableWarning\"!==o&&\"suppressHydrationWarning\"!==o&&\"autoFocus\"!==o&&(Bl.hasOwnProperty(o)?null!=c&&\"onScroll\"===o&&je(\"scroll\",e):null!=c&&u(e,o,c,i))}switch(r){case\"input\":m(e),w(e,l,!1);break;case\"textarea\":m(e),z(e);break;case\"option\":null!=l.value&&e.setAttribute(\"value\",\"\"+d(l.value));break;case\"select\":e.multiple=!!l.multiple,null!=(o=l.value)?x(e,!!l.multiple,o,!1):null!=l.defaultValue&&x(e,!!l.multiple,l.defaultValue,!0);break;default:\"function\"==typeof a.onClick&&(e.onclick=tn)}switch(r){case\"button\":case\"input\":case\"select\":case\"textarea\":l=!!l.autoFocus;break e;case\"img\":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return Cr(n),null;case 6:if(e&&null!=n.stateNode)Bi(e,n,e.memoizedProps,l);else{if(\"string\"!=typeof l&&null===n.stateNode)throw Error(t(166));if(r=tt(gi.current),tt(mi.current),Fn(n)){if(l=n.stateNode,r=n.memoizedProps,l[_o]=n,(o=l.nodeValue!==r)&&null!==(e=Jo))switch(e.tag){case 3:nn(l.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&nn(l.nodeValue,r,0!=(1&e.mode))}o&&(n.flags|=4)}else(l=(9===r.nodeType?r:r.ownerDocument).createTextNode(l))[_o]=n,n.stateNode=l}return Cr(n),null;case 13:if(mn(vi),l=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ni&&null!==ei&&0!=(1&n.mode)&&0==(128&n.flags)){for(o=ei;o;)o=un(o.nextSibling);Rn(),n.flags|=98560,o=!1}else if(o=Fn(n),null!==l&&null!==l.dehydrated){if(null===e){if(!o)throw Error(t(318));if(!(o=null!==(o=n.memoizedState)?o.dehydrated:null))throw Error(t(317));o[_o]=n}else Rn(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;Cr(n),o=!1}else null!==ti&&(Zr(ti),ti=null),o=!0;if(!o)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=r,n):((l=null!==l)!==(null!==e&&null!==e.memoizedState)&&l&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&vi.current)?0===as&&(as=3):ul())),null!==n.updateQueue&&(n.flags|=4),Cr(n),null);case 4:return lt(),Vi(e,n),null===e&&qe(n.stateNode.containerInfo),Cr(n),null;case 10:return Bn(n.type._context),Cr(n),null;case 17:return vn(n.type)&&(mn(Vo),mn(Uo)),Cr(n),null;case 19:if(mn(vi),null===(o=n.memoizedState))return Cr(n),null;if(l=0!=(128&n.flags),null===(i=o.rendering))if(l)Er(o,!1);else{if(0!==as||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(i=ot(e))){for(n.flags|=128,Er(o,!1),null!==(l=i.updateQueue)&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=r,r=n.child;null!==r;)e=l,(o=r).flags&=14680066,null===(i=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return hn(vi,1&vi.current|2),n.child}e=e.sibling}null!==o.tail&&qa()>ps&&(n.flags|=128,l=!0,Er(o,!1),n.lanes=4194304)}else{if(!l)if(null!==(e=ot(i))){if(n.flags|=128,l=!0,null!==(r=e.updateQueue)&&(n.updateQueue=r,n.flags|=4),Er(o,!0),null===o.tail&&\"hidden\"===o.tailMode&&!i.alternate&&!ni)return Cr(n),null}else 2*qa()-o.renderingStartTime>ps&&1073741824!==r&&(n.flags|=128,l=!0,Er(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(null!==(r=o.last)?r.sibling=i:n.child=i,o.last=i)}return null!==o.tail?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=qa(),n.sibling=null,r=vi.current,hn(vi,l?1&r|2:1&r),n):(Cr(n),null);case 22:case 23:return rs=ls.current,mn(ls),l=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==l&&(n.flags|=8192),l&&0!=(1&n.mode)?0!=(1073741824&rs)&&(Cr(n),6&n.subtreeFlags&&(n.flags|=8192)):Cr(n),null;case 24:case 25:return null}throw Error(t(156,n.tag))}function zr(e,n,r){switch(zn(n),n.tag){case 1:return vn(n.type)&&(mn(Vo),mn(Uo)),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return lt(),mn(Vo),mn(Uo),it(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return ut(n),null;case 13:if(mn(vi),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(t(340));Rn()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return mn(vi),null;case 4:return lt(),null;case 10:return Bn(n.type._context),null;case 22:case 23:return rs=ls.current,mn(ls),null;case 24:default:return null}}function Pr(e,n){var t=e.ref;if(null!==t)if(\"function\"==typeof t)try{t(null)}catch(t){hl(e,n,t)}else t.current=null}function _r(e,n,t){try{t()}catch(t){hl(e,n,t)}}function Lr(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&_r(n,t,a)}l=l.next}while(l!==r)}}function Tr(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Mr(e){var n=e.ref;if(null!==n){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}\"function\"==typeof n?n(e):n.current=e}}function Fr(e){var n=e.alternate;null!==n&&(e.alternate=null,Fr(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(n=e.stateNode)&&(delete n[_o],delete n[Lo],delete n[Mo],delete n[Fo],delete n[Ro])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rr(e){return 5===e.tag||3===e.tag||4===e.tag}function Dr(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Rr(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Or(e,n,t){for(t=t.child;null!==t;)Ir(e,n,t),t=t.sibling}function Ir(e,n,t){if(nu&&\"function\"==typeof nu.onCommitFiberUnmount)try{nu.onCommitFiberUnmount(eu,t)}catch(e){}switch(t.tag){case 5:Hi||Pr(t,n);case 6:var r=qi,l=Ki;qi=null,Or(e,n,t),Ki=l,null!==(qi=r)&&(Ki?(e=qi,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):qi.removeChild(t.stateNode));break;case 18:null!==qi&&(Ki?(e=qi,t=t.stateNode,8===e.nodeType?an(e.parentNode,t):1===e.nodeType&&an(e,t),oe(e)):an(qi,t.stateNode));break;case 4:r=qi,l=Ki,qi=t.stateNode.containerInfo,Ki=!0,Or(e,n,t),qi=r,Ki=l;break;case 0:case 11:case 14:case 15:if(!Hi&&(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect))){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)?_r(t,n,u):0!=(4&a)&&_r(t,n,u)),l=l.next}while(l!==r)}Or(e,n,t);break;case 1:if(!Hi&&(Pr(t,n),\"function\"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){hl(t,n,e)}Or(e,n,t);break;case 21:Or(e,n,t);break;case 22:1&t.mode?(Hi=(r=Hi)||null!==t.memoizedState,Or(e,n,t),Hi=r):Or(e,n,t);break;default:Or(e,n,t)}}function Ur(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Qi),n.forEach(function(n){var l=function(e,n){var r=0;switch(e.tag){case 13:var l=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(t(314))}null!==l&&l.delete(n),gl(e,r)}.bind(null,e,n);r.has(n)||(r.add(n),n.then(l,l))})}}function Vr(e,n,r){if(null!==(r=n.deletions))for(var l=0;l<r.length;l++){var a=r[l];try{var u=e,o=n,i=o;e:for(;null!==i;){switch(i.tag){case 5:qi=i.stateNode,Ki=!1;break e;case 3:case 4:qi=i.stateNode.containerInfo,Ki=!0;break e}i=i.return}if(null===qi)throw Error(t(160));Ir(u,o,a),qi=null,Ki=!1;var s=a.alternate;null!==s&&(s.return=null),a.return=null}catch(e){hl(a,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)Ar(n,e),n=n.sibling}function Ar(e,n,r){var l=e.alternate;switch(r=e.flags,e.tag){case 0:case 11:case 14:case 15:if(Vr(n,e),Br(e),4&r){try{Lr(3,e,e.return),Tr(3,e)}catch(n){hl(e,e.return,n)}try{Lr(5,e,e.return)}catch(n){hl(e,e.return,n)}}break;case 1:Vr(n,e),Br(e),512&r&&null!==l&&Pr(l,l.return);break;case 5:if(Vr(n,e),Br(e),512&r&&null!==l&&Pr(l,l.return),32&e.flags){var a=e.stateNode;try{ya(a,\"\")}catch(n){hl(e,e.return,n)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,i=null!==l?l.memoizedProps:o,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{\"input\"===s&&\"radio\"===o.type&&null!=o.name&&b(a,o),F(s,i);var f=F(s,o);for(i=0;i<c.length;i+=2){var d=c[i],p=c[i+1];\"style\"===d?T(a,p):\"dangerouslySetInnerHTML\"===d?va(a,p):\"children\"===d?ya(a,p):u(a,d,p,f)}switch(s){case\"input\":k(a,o);break;case\"textarea\":N(a,o);break;case\"select\":var m=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?x(a,!!o.multiple,h,!1):m!==!!o.multiple&&(null!=o.defaultValue?x(a,!!o.multiple,o.defaultValue,!0):x(a,!!o.multiple,o.multiple?[]:\"\",!1))}a[Lo]=o}catch(n){hl(e,e.return,n)}}break;case 6:if(Vr(n,e),Br(e),4&r){if(null===e.stateNode)throw Error(t(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(n){hl(e,e.return,n)}}break;case 3:if(Vr(n,e),Br(e),4&r&&null!==l&&l.memoizedState.isDehydrated)try{oe(n.containerInfo)}catch(n){hl(e,e.return,n)}break;case 4:Vr(n,e),Br(e);break;case 13:Vr(n,e),Br(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(ds=qa())),4&r&&Ur(e);break;case 22:if(d=null!==l&&null!==l.memoizedState,1&e.mode?(Hi=(f=Hi)||d,Vr(n,e),Hi=f):Vr(n,e),Br(e),8192&r){if(f=null!==e.memoizedState,(e.stateNode.isHidden=f)&&!d&&0!=(1&e.mode))for(ji=e,d=e.child;null!==d;){for(p=ji=d;null!==ji;){switch(h=(m=ji).child,m.tag){case 0:case 11:case 14:case 15:Lr(4,m,m.return);break;case 1:Pr(m,m.return);var g=m.stateNode;if(\"function\"==typeof g.componentWillUnmount){r=m,n=m.return;try{l=r,g.props=l.memoizedProps,g.state=l.memoizedState,g.componentWillUnmount()}catch(e){hl(r,n,e)}}break;case 5:Pr(m,m.return);break;case 22:if(null!==m.memoizedState){Qr(p);continue}}null!==h?(h.return=m,ji=h):Qr(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,f?\"function\"==typeof(o=a.style).setProperty?o.setProperty(\"display\",\"none\",\"important\"):o.display=\"none\":(s=p.stateNode,i=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty(\"display\")?c.display:null,s.style.display=L(\"display\",i))}catch(n){hl(e,e.return,n)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=f?\"\":p.memoizedProps}catch(n){hl(e,e.return,n)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Vr(n,e),Br(e),4&r&&Ur(e);break;case 21:break;default:Vr(n,e),Br(e)}}function Br(e){var n=e.flags;if(2&n){try{e:{for(var r=e.return;null!==r;){if(Rr(r)){var l=r;break e}r=r.return}throw Error(t(160))}switch(l.tag){case 5:var a=l.stateNode;32&l.flags&&(ya(a,\"\"),l.flags&=-33),function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?r.insertBefore(n,t):r.appendChild(n);else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,Dr(e),a);break;case 3:case 4:var u=l.stateNode.containerInfo;!function e(n,t,r){var l=n.tag;if(5===l||6===l)n=n.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(n,t):r.insertBefore(n,t):(8===r.nodeType?(t=r.parentNode).insertBefore(n,r):(t=r).appendChild(n),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=tn));else if(4!==l&&null!==(n=n.child))for(e(n,t,r),n=n.sibling;null!==n;)e(n,t,r),n=n.sibling}(e,Dr(e),u);break;default:throw Error(t(161))}}catch(n){hl(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function Wr(e,n,t){ji=e,function e(n,t,r){for(var l=0!=(1&n.mode);null!==ji;){var a=ji,u=a.child;if(22===a.tag&&l){var o=null!==a.memoizedState||Wi;if(!o){var i=a.alternate,s=null!==i&&null!==i.memoizedState||Hi;i=Wi;var c=Hi;if(Wi=o,(Hi=s)&&!c)for(ji=a;null!==ji;)s=(o=ji).child,22===o.tag&&null!==o.memoizedState?jr(a):null!==s?(s.return=o,ji=s):jr(a);for(;null!==u;)ji=u,e(u,t,r),u=u.sibling;ji=a,Wi=i,Hi=c}Hr(n,t,r)}else 0!=(8772&a.subtreeFlags)&&null!==u?(u.return=a,ji=u):Hr(n,t,r)}}(e,n,t)}function Hr(e,n,r){for(;null!==ji;){if(0!=(8772&(n=ji).flags)){r=n.alternate;try{if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:Hi||Tr(5,n);break;case 1:var l=n.stateNode;if(4&n.flags&&!Hi)if(null===r)l.componentDidMount();else{var a=n.elementType===n.type?r.memoizedProps:Qt(n.type,r.memoizedProps);l.componentDidUpdate(a,r.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&nt(n,u,l);break;case 3:var o=n.updateQueue;if(null!==o){if(r=null,null!==n.child)switch(n.child.tag){case 5:r=n.child.stateNode;break;case 1:r=n.child.stateNode}nt(n,o,r)}break;case 5:var i=n.stateNode;if(null===r&&4&n.flags){r=i;var s=n.memoizedProps;switch(n.type){case\"button\":case\"input\":case\"select\":case\"textarea\":s.autoFocus&&r.focus();break;case\"img\":s.src&&(r.src=s.src)}}break;case 6:case 4:case 12:break;case 13:if(null===n.memoizedState){var c=n.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&oe(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Hi||512&n.flags&&Mr(n)}catch(e){hl(n,n.return,e)}}if(n===e){ji=null;break}if(null!==(r=n.sibling)){r.return=n.return,ji=r;break}ji=n.return}}function Qr(e){for(;null!==ji;){var n=ji;if(n===e){ji=null;break}var t=n.sibling;if(null!==t){t.return=n.return,ji=t;break}ji=n.return}}function jr(e){for(;null!==ji;){var n=ji;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{Tr(4,n)}catch(e){hl(n,t,e)}break;case 1:var r=n.stateNode;if(\"function\"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){hl(n,l,e)}}var a=n.return;try{Mr(n)}catch(e){hl(n,a,e)}break;case 5:var u=n.return;try{Mr(n)}catch(e){hl(n,u,e)}}}catch(e){hl(n,n.return,e)}if(n===e){ji=null;break}var o=n.sibling;if(null!==o){o.return=n.return,ji=o;break}ji=n.return}}function $r(){ps=qa()+500}function qr(){return 0!=(6&Ji)?qa():-1!==xs?xs:xs=qa()}function Kr(e){return 0==(1&e.mode)?1:0!=(2&Ji)&&0!==ts?ts&-ts:null!==ri.transition?(0===Es&&(Es=Y()),Es):0!==(e=ou)?e:e=void 0===(e=window.event)?16:de(e.type)}function Yr(e,n,r,l){if(50<ws)throw ws=0,Ss=null,Error(t(185));G(e,r,l),0!=(2&Ji)&&e===es||(e===es&&(0==(2&Ji)&&(is|=r),4===as&&Jr(e,ts)),Xr(e,l),1===r&&0===Ji&&0==(1&n.mode)&&($r(),Wo&&xn()))}function Xr(e,n){var r=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-tu(a),o=1<<u,i=l[u];-1===i?0!=(o&t)&&0==(o&r)||(l[u]=q(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var l=$(e,e===es?ts:0);if(0===l)null!==r&&Qa(r),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(null!=r&&Qa(r),1===n)0===e.tag?function(e){Wo=!0,Sn(e)}(el.bind(null,e)):Sn(el.bind(null,e)),zo(function(){0==(6&Ji)&&xn()}),r=null;else{switch(J(l)){case 1:r=Ya;break;case 4:r=Xa;break;case 16:r=Ga;break;case 536870912:r=Ja;break;default:r=Ga}r=vl(r,function e(n,r){xs=-1;Es=0;if(0!=(6&Ji))throw Error(t(327));var l=n.callbackNode;if(pl()&&n.callbackNode!==l)return null;var a=$(n,n===es?ts:0);if(0===a)return null;if(0!=(30&a)||0!=(a&n.expiredLanes)||r)r=ol(n,a);else{r=a;var u=Ji;Ji|=2;var o=al();for(es===n&&ts===r||(ms=null,$r(),rl(n,r));;)try{sl();break}catch(e){ll(n,e)}An(),Xi.current=o,Ji=u,null!==ns?r=0:(es=null,ts=0,r=as)}if(0!==r){if(2===r&&(0!==(u=K(n))&&(a=u,r=Gr(n,u))),1===r)throw l=us,rl(n,0),Jr(n,a),Xr(n,qa()),l;if(6===r)Jr(n,a);else{if(u=n.current.alternate,0==(30&a)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!no(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(u)&&(2===(r=ol(n,a))&&(0!==(o=K(n))&&(a=o,r=Gr(n,o))),1===r))throw l=us,rl(n,0),Jr(n,a),Xr(n,qa()),l;switch(n.finishedWork=u,n.finishedLanes=a,r){case 0:case 1:throw Error(t(345));case 2:dl(n,fs,ms);break;case 3:if(Jr(n,a),(130023424&a)===a&&10<(r=ds+500-qa())){if(0!==$(n,0))break;if(((u=n.suspendedLanes)&a)!==a){qr(),n.pingedLanes|=n.suspendedLanes&u;break}n.timeoutHandle=Eo(dl.bind(null,n,fs,ms),r);break}dl(n,fs,ms);break;case 4:if(Jr(n,a),(4194240&a)===a)break;for(r=n.eventTimes,u=-1;0<a;){var i=31-tu(a);o=1<<i,(i=r[i])>u&&(u=i),a&=~o}if(a=u,10<(a=(120>(a=qa()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Yi(a/1960))-a)){n.timeoutHandle=Eo(dl.bind(null,n,fs,ms),a);break}dl(n,fs,ms);break;case 5:dl(n,fs,ms);break;default:throw Error(t(329))}}}Xr(n,qa());return n.callbackNode===l?e.bind(null,n):null}.bind(null,e))}e.callbackPriority=n,e.callbackNode=r}}function Gr(e,n){var t=cs;return e.current.memoizedState.isDehydrated&&(rl(e,n).flags|=256),2!==(e=ol(e,n))&&(n=fs,fs=t,null!==n&&Zr(n)),e}function Zr(e){null===fs?fs=e:fs.push.apply(fs,e)}function Jr(e,n){for(n&=~ss,n&=~is,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-tu(n),r=1<<t;e[t]=-1,n&=~r}}function el(e){if(0!=(6&Ji))throw Error(t(327));pl();var n=$(e,0);if(0==(1&n))return Xr(e,qa()),null;var r=ol(e,n);if(0!==e.tag&&2===r){var l=K(e);0!==l&&(n=l,r=Gr(e,l))}if(1===r)throw r=us,rl(e,0),Jr(e,n),Xr(e,qa()),r;if(6===r)throw Error(t(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,dl(e,fs,ms),Xr(e,qa()),null}function nl(e,n){var t=Ji;Ji|=1;try{return e(n)}finally{0===(Ji=t)&&($r(),Wo&&xn())}}function tl(e){null!==bs&&0===bs.tag&&0==(6&Ji)&&pl();var n=Ji;Ji|=1;var t=Zi.transition,r=ou;try{if(Zi.transition=null,ou=1,e)return e()}finally{ou=r,Zi.transition=t,0==(6&(Ji=n))&&xn()}}function rl(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,Co(t)),null!==ns)for(t=ns.return;null!==t;){var r=t;switch(zn(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&(mn(Vo),mn(Uo));break;case 3:lt(),mn(Vo),mn(Uo),it();break;case 5:ut(r);break;case 4:lt();break;case 13:case 19:mn(vi);break;case 10:Bn(r.type._context);break;case 22:case 23:rs=ls.current,mn(ls)}t=t.return}if(es=e,ns=e=bl(e.current,null),ts=rs=n,as=0,us=null,ss=is=os=0,fs=cs=null,null!==ci){for(n=0;n<ci.length;n++)if(null!==(r=(t=ci[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}ci=null}return e}function ll(e,n){for(;;){var r=ns;try{if(An(),bi.current=_i,Ci){for(var l=Si.memoizedState;null!==l;){var a=l.queue;null!==a&&(a.pending=null),l=l.next}Ci=!1}if(wi=0,Ei=xi=Si=null,Ni=!1,zi=0,Gi.current=null,null===r||null===r.return){as=1,us=n,ns=null;break}e:{var u=e,o=r.return,i=r,s=n;if(n=ts,i.flags|=32768,null!==s&&\"object\"==typeof s&&\"function\"==typeof s.then){var c=s,f=i,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=tr(o);if(null!==m){m.flags&=-257,rr(m,o,i,0,n),1&m.mode&&nr(u,c,n),s=c;var h=(n=m).updateQueue;if(null===h){var g=new Set;g.add(s),n.updateQueue=g}else h.add(s);break e}if(0==(1&n)){nr(u,c,n),ul();break e}s=Error(t(426))}else if(ni&&1&i.mode){var v=tr(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),rr(v,o,i,0,n),Dn(Xt(s,i));break e}}u=s=Xt(s,i),4!==as&&(as=2),null===cs?cs=[u]:cs.push(u),u=o;do{switch(u.tag){case 3:u.flags|=65536,n&=-n,u.lanes|=n,Jn(u,Jt(0,s,n));break e;case 1:i=s;var y=u.type,b=u.stateNode;if(0==(128&u.flags)&&(\"function\"==typeof y.getDerivedStateFromError||null!==b&&\"function\"==typeof b.componentDidCatch&&(null===vs||!vs.has(b)))){u.flags|=65536,n&=-n,u.lanes|=n,Jn(u,er(u,i,n));break e}}u=u.return}while(null!==u)}fl(r)}catch(e){n=e,ns===r&&null!==r&&(ns=r=r.return);continue}break}}function al(){var e=Xi.current;return Xi.current=_i,null===e?_i:e}function ul(){0!==as&&3!==as&&2!==as||(as=4),null===es||0==(268435455&os)&&0==(268435455&is)||Jr(es,ts)}function ol(e,n){var r=Ji;Ji|=2;var l=al();for(es===e&&ts===n||(ms=null,rl(e,n));;)try{il();break}catch(n){ll(e,n)}if(An(),Ji=r,Xi.current=l,null!==ns)throw Error(t(261));return es=null,ts=0,as}function il(){for(;null!==ns;)cl(ns)}function sl(){for(;null!==ns&&!ja();)cl(ns)}function cl(e){var n=Cs(e.alternate,e,rs);e.memoizedProps=e.pendingProps,null===n?fl(e):ns=n,Gi.current=null}function fl(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=Nr(t,n,rs)))return void(ns=t)}else{if(null!==(t=zr(t,n)))return t.flags&=32767,void(ns=t);if(null===e)return as=6,void(ns=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(n=n.sibling))return void(ns=n);ns=n=e}while(null!==n);0===as&&(as=5)}function dl(e,n,r){var l=ou,a=Zi.transition;try{Zi.transition=null,ou=1,function(e,n,r,l){do{pl()}while(null!==bs);if(0!=(6&Ji))throw Error(t(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(t(177));e.callbackNode=null,e.callbackPriority=0;var u=r.lanes|r.childLanes;if(function(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-tu(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,u),e===es&&(ns=es=null,ts=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||ys||(ys=!0,vl(Ga,function(){return pl(),null})),u=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||u){u=Zi.transition,Zi.transition=null;var o=ou;ou=1;var i=Ji;Ji|=4,Gi.current=null,function(e,n){if(So=yu,Ie(e=Oe())){if(\"selectionStart\"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var l=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(l&&0!==l.rangeCount){r=l.anchorNode;var a=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{r.nodeType,u.nodeType}catch(e){r=null;break e}var o=0,i=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(var m;d!==r||0!==a&&3!==d.nodeType||(i=o+a),d!==u||0!==l&&3!==d.nodeType||(s=o+l),3===d.nodeType&&(o+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break n;if(p===r&&++c===a&&(i=o),p===u&&++f===l&&(s=o),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}r=-1===i||-1===s?null:{start:i,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(xo={focusedElem:e,selectionRange:r},yu=!1,ji=n;null!==ji;)if(e=(n=ji).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,ji=e;else for(;null!==ji;){n=ji;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:Qt(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent=\"\":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(e){hl(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,ji=e;break}ji=n.return}h=$i,$i=!1}(e,r),Ar(r,e),Ue(xo),yu=!!So,xo=So=null,e.current=r,Wr(r,e,a),$a(),Ji=i,ou=o,Zi.transition=u}else e.current=r;if(ys&&(ys=!1,bs=e,ks=a),0===(u=e.pendingLanes)&&(vs=null),function(e,n){if(nu&&\"function\"==typeof nu.onCommitFiberRoot)try{nu.onCommitFiberRoot(eu,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),Xr(e,qa()),null!==n)for(l=e.onRecoverableError,r=0;r<n.length;r++)a=n[r],l(a.value,{componentStack:a.stack,digest:a.digest});if(hs)throw hs=!1,e=gs,gs=null,e;0!=(1&ks)&&0!==e.tag&&pl(),0!=(1&(u=e.pendingLanes))?e===Ss?ws++:(ws=0,Ss=e):ws=0,xn()}(e,n,r,l)}finally{Zi.transition=a,ou=l}return null}function pl(){if(null!==bs){var e=J(ks),n=Zi.transition,r=ou;try{if(Zi.transition=null,ou=16>e?16:e,null===bs)var l=!1;else{if(e=bs,bs=null,ks=0,0!=(6&Ji))throw Error(t(331));var a=Ji;for(Ji|=4,ji=e.current;null!==ji;){var u=ji,o=u.child;if(0!=(16&ji.flags)){var i=u.deletions;if(null!==i){for(var s=0;s<i.length;s++){var c=i[s];for(ji=c;null!==ji;){var f=ji;switch(f.tag){case 0:case 11:case 15:Lr(8,f,u)}var d=f.child;if(null!==d)d.return=f,ji=d;else for(;null!==ji;){var p=(f=ji).sibling,m=f.return;if(Fr(f),f===c){ji=null;break}if(null!==p){p.return=m,ji=p;break}ji=m}}}var h=u.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}ji=u}}if(0!=(2064&u.subtreeFlags)&&null!==o)o.return=u,ji=o;else e:for(;null!==ji;){if(0!=(2048&(u=ji).flags))switch(u.tag){case 0:case 11:case 15:Lr(9,u,u.return)}var y=u.sibling;if(null!==y){y.return=u.return,ji=y;break e}ji=u.return}}var b=e.current;for(ji=b;null!==ji;){var k=(o=ji).child;if(0!=(2064&o.subtreeFlags)&&null!==k)k.return=o,ji=k;else e:for(o=b;null!==ji;){if(0!=(2048&(i=ji).flags))try{switch(i.tag){case 0:case 11:case 15:Tr(9,i)}}catch(e){hl(i,i.return,e)}if(i===o){ji=null;break e}var w=i.sibling;if(null!==w){w.return=i.return,ji=w;break e}ji=i.return}}if(Ji=a,xn(),nu&&\"function\"==typeof nu.onPostCommitFiberRoot)try{nu.onPostCommitFiberRoot(eu,e)}catch(e){}l=!0}return l}finally{ou=r,Zi.transition=n}}return!1}function ml(e,n,t){e=Gn(e,n=Jt(0,n=Xt(t,n),1),1),n=qr(),null!==e&&(G(e,1,n),Xr(e,n))}function hl(e,n,t){if(3===e.tag)ml(e,e,t);else for(;null!==n;){if(3===n.tag){ml(n,e,t);break}if(1===n.tag){var r=n.stateNode;if(\"function\"==typeof n.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===vs||!vs.has(r))){n=Gn(n,e=er(n,e=Xt(t,e),1),1),e=qr(),null!==n&&(G(n,1,e),Xr(n,e));break}}n=n.return}}function gl(e,n){0===n&&(0==(1&e.mode)?n=1:(n=uu,0==(130023424&(uu<<=1))&&(uu=4194304)));var t=qr();null!==(e=qn(e,n))&&(G(e,n,t),Xr(e,t))}function vl(e,n){return Ha(e,n)}function yl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function bl(e,n){var t=e.alternate;return null===t?((t=Ns(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function kl(e,n,r,l,a,u){var o=2;if(l=e,\"function\"==typeof e)yl(e)&&(o=1);else if(\"string\"==typeof e)o=5;else e:switch(e){case Jl:return wl(r.children,a,u,n);case ea:o=8,a|=8;break;case na:return(e=Ns(12,r,n,2|a)).elementType=na,e.lanes=u,e;case aa:return(e=Ns(13,r,n,a)).elementType=aa,e.lanes=u,e;case ua:return(e=Ns(19,r,n,a)).elementType=ua,e.lanes=u,e;case sa:return Sl(r,a,u,n);default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case ta:o=10;break e;case ra:o=9;break e;case la:o=11;break e;case oa:o=14;break e;case ia:o=16,l=null;break e}throw Error(t(130,null==e?e:typeof e,\"\"))}return(n=Ns(o,r,n,a)).elementType=e,n.type=l,n.lanes=u,n}function wl(e,n,t,r){return(e=Ns(7,e,r,n)).lanes=t,e}function Sl(e,n,t,r){return(e=Ns(22,e,r,n)).elementType=sa,e.lanes=t,e.stateNode={isHidden:!1},e}function xl(e,n,t){return(e=Ns(6,e,null,n)).lanes=t,e}function El(e,n,t){return(n=Ns(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Cl(e,n,t,r,l,a,u,o,i,s){return e=new function(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=X(0),this.expirationTimes=X(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=X(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=Ns(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kn(a),e}function Nl(e){if(!e)return Io;e=e._reactInternals;e:{if(B(e)!==e||1!==e.tag)throw Error(t(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(vn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(t(171))}if(1===e.tag){var r=e.type;if(vn(r))return bn(e,r,n)}return n}function zl(e,n,t,r,l,a,u,o,i,s){return(e=Cl(t,r,!0,e,0,a,0,o,i)).context=Nl(null),t=e.current,(a=Xn(r=qr(),l=Kr(t))).callback=void 0!==n&&null!==n?n:null,Gn(t,a,l),e.current.lanes=l,G(e,l,r),Xr(e,r),e}function Pl(e,n,t,r){var l=n.current,a=qr(),u=Kr(l);return t=Nl(t),null===n.context?n.context=t:n.pendingContext=t,(n=Xn(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=Gn(l,n,u))&&(Yr(e,l,u,a),Zn(e,l,u)),u}function _l(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ll(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function Tl(e,n){Ll(e,n),(e=e.alternate)&&Ll(e,n)}function Ml(e){return null===(e=Q(e))?null:e.stateNode}function Fl(e){return null}function Rl(e){this._internalRoot=e}function Dl(e){this._internalRoot=e}function Ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Il(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||\" react-mount-point-unstable \"!==e.nodeValue))}function Ul(){}function Vl(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if(\"function\"==typeof l){var o=l;l=function(){var e=_l(u);o.call(e)}}Pl(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if(\"function\"==typeof r){var a=r;r=function(){var e=_l(u);a.call(e)}}var u=zl(n,r,e,0,null,!1,0,\"\",Ul);return e._reactRootContainer=u,e[To]=u.current,qe(8===e.nodeType?e.parentNode:e),tl(),u}for(;l=e.lastChild;)e.removeChild(l);if(\"function\"==typeof r){var o=r;r=function(){var e=_l(i);o.call(e)}}var i=Cl(e,0,!1,null,0,!1,0,\"\",Ul);return e._reactRootContainer=i,e[To]=i.current,qe(8===e.nodeType?e.parentNode:e),tl(function(){Pl(n,i,t,r)}),i}(t,n,e,l,r);return _l(u)}var Al=new Set,Bl={},Wl=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),Hl=Object.prototype.hasOwnProperty,Ql=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,jl={},$l={},ql={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){ql[e]=new a(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var n=e[0];ql[n]=new a(n,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){ql[e]=new a(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){ql[e]=new a(e,2,!1,e,null,!1,!1)}),\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){ql[e]=new a(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){ql[e]=new a(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){ql[e]=new a(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){ql[e]=new a(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){ql[e]=new a(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kl=/[\\-:]([a-z])/g,Yl=function(e){return e[1].toUpperCase()};\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(e){var n=e.replace(Kl,Yl);ql[n]=new a(n,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var n=e.replace(Kl,Yl);ql[n]=new a(n,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var n=e.replace(Kl,Yl);ql[n]=new a(n,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){ql[e]=new a(e,1,!1,e.toLowerCase(),null,!1,!1)}),ql.xlinkHref=new a(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){ql[e]=new a(e,1,!1,e.toLowerCase(),null,!0,!0)});var Xl=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gl=Symbol.for(\"react.element\"),Zl=Symbol.for(\"react.portal\"),Jl=Symbol.for(\"react.fragment\"),ea=Symbol.for(\"react.strict_mode\"),na=Symbol.for(\"react.profiler\"),ta=Symbol.for(\"react.provider\"),ra=Symbol.for(\"react.context\"),la=Symbol.for(\"react.forward_ref\"),aa=Symbol.for(\"react.suspense\"),ua=Symbol.for(\"react.suspense_list\"),oa=Symbol.for(\"react.memo\"),ia=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\"),Symbol.for(\"react.debug_trace_mode\");var sa=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.cache\"),Symbol.for(\"react.tracing_marker\");var ca,fa,da,pa=Symbol.iterator,ma=Object.assign,ha=!1,ga=Array.isArray,va=(da=function(e,n){if(\"http://www.w3.org/2000/svg\"!==e.namespaceURI||\"innerHTML\"in e)e.innerHTML=n;else{for((fa=fa||document.createElement(\"div\")).innerHTML=\"<svg>\"+n.valueOf().toString()+\"</svg>\",n=fa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},\"undefined\"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction(function(){return da(e,n)})}:da),ya=function(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n},ba={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ka=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(ba).forEach(function(e){ka.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),ba[n]=ba[e]})});var wa=ma({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Sa=null,xa=null,Ea=null,Ca=null,Na=function(e,n){return e(n)},za=function(){},Pa=!1,_a=!1;if(Wl)try{var La={};Object.defineProperty(La,\"passive\",{get:function(){_a=!0}}),window.addEventListener(\"test\",La,La),window.removeEventListener(\"test\",La,La)}catch(da){_a=!1}var Ta,Ma,Fa,Ra=function(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}},Da=!1,Oa=null,Ia=!1,Ua=null,Va={onError:function(e){Da=!0,Oa=e}},Aa=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,Ba=Aa.unstable_scheduleCallback,Wa=Aa.unstable_NormalPriority,Ha=Ba,Qa=Aa.unstable_cancelCallback,ja=Aa.unstable_shouldYield,$a=Aa.unstable_requestPaint,qa=Aa.unstable_now,Ka=Aa.unstable_getCurrentPriorityLevel,Ya=Aa.unstable_ImmediatePriority,Xa=Aa.unstable_UserBlockingPriority,Ga=Wa,Za=Aa.unstable_LowPriority,Ja=Aa.unstable_IdlePriority,eu=null,nu=null,tu=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ru(e)/lu|0)|0},ru=Math.log,lu=Math.LN2,au=64,uu=4194304,ou=0,iu=!1,su=[],cu=null,fu=null,du=null,pu=new Map,mu=new Map,hu=[],gu=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \"),vu=Xl.ReactCurrentBatchConfig,yu=!0,bu=null,ku=null,wu=null,Su=null,xu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=ve(xu),Cu=ma({},xu,{view:0,detail:0}),Nu=ve(Cu),zu=ma({},Cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:be,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==Fa&&(Fa&&\"mousemove\"===e.type?(Ta=e.screenX-Fa.screenX,Ma=e.screenY-Fa.screenY):Ma=Ta=0,Fa=e),Ta)},movementY:function(e){return\"movementY\"in e?e.movementY:Ma}}),Pu=ve(zu),_u=ve(ma({},zu,{dataTransfer:0})),Lu=ve(ma({},Cu,{relatedTarget:0})),Tu=ve(ma({},xu,{animationName:0,elapsedTime:0,pseudoElement:0})),Mu=ve(ma({},xu,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}})),Fu=ve(ma({},xu,{data:0})),Ru=Fu,Du={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},Ou={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},Iu={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"},Uu=ve(ma({},Cu,{key:function(e){if(e.key){var n=Du[e.key]||e.key;if(\"Unidentified\"!==n)return n}return\"keypress\"===e.type?13===(e=me(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?Ou[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:be,charCode:function(e){return\"keypress\"===e.type?me(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?me(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}})),Vu=ve(ma({},zu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Au=ve(ma({},Cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:be})),Bu=ve(ma({},xu,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wu=ve(ma({},zu,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Hu=[9,13,27,32],Qu=Wl&&\"CompositionEvent\"in window,ju=null;Wl&&\"documentMode\"in document&&(ju=document.documentMode);var $u=Wl&&\"TextEvent\"in window&&!ju,qu=Wl&&(!Qu||ju&&8<ju&&11>=ju),Ku=String.fromCharCode(32),Yu=!1,Xu=!1,Gu={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Zu=null,Ju=null,eo=!1;Wl&&(eo=function(e){if(!Wl)return!1;var n=(e=\"on\"+e)in document;return n||((n=document.createElement(\"div\")).setAttribute(e,\"return;\"),n=\"function\"==typeof n[e]),n}(\"input\")&&(!document.documentMode||9<document.documentMode));var no=\"function\"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},to=Wl&&\"documentMode\"in document&&11>=document.documentMode,ro=null,lo=null,ao=null,uo=!1,oo={animationend:Ae(\"Animation\",\"AnimationEnd\"),animationiteration:Ae(\"Animation\",\"AnimationIteration\"),animationstart:Ae(\"Animation\",\"AnimationStart\"),transitionend:Ae(\"Transition\",\"TransitionEnd\")},io={},so={};Wl&&(so=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete oo.animationend.animation,delete oo.animationiteration.animation,delete oo.animationstart.animation),\"TransitionEvent\"in window||delete oo.transitionend.transition);var co=Be(\"animationend\"),fo=Be(\"animationiteration\"),po=Be(\"animationstart\"),mo=Be(\"transitionend\"),ho=new Map,go=\"abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel\".split(\" \");!function(){for(var e=0;e<go.length;e++){var n=go[e];We(n.toLowerCase(),\"on\"+(n=n[0].toUpperCase()+n.slice(1)))}We(co,\"onAnimationEnd\"),We(fo,\"onAnimationIteration\"),We(po,\"onAnimationStart\"),We(\"dblclick\",\"onDoubleClick\"),We(\"focusin\",\"onFocus\"),We(\"focusout\",\"onBlur\"),We(mo,\"onTransitionEnd\")}(),l(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),l(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),l(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),l(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),r(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),r(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),r(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),r(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),r(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),r(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var vo=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),yo=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(vo)),bo=\"_reactListening\"+Math.random().toString(36).slice(2),ko=/\\r\\n?/g,wo=/\\u0000|\\uFFFD/g,So=null,xo=null,Eo=\"function\"==typeof setTimeout?setTimeout:void 0,Co=\"function\"==typeof clearTimeout?clearTimeout:void 0,No=\"function\"==typeof Promise?Promise:void 0,zo=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==No?function(e){return No.resolve(null).then(e).catch(ln)}:Eo,Po=Math.random().toString(36).slice(2),_o=\"__reactFiber$\"+Po,Lo=\"__reactProps$\"+Po,To=\"__reactContainer$\"+Po,Mo=\"__reactEvents$\"+Po,Fo=\"__reactListeners$\"+Po,Ro=\"__reactHandles$\"+Po,Do=[],Oo=-1,Io={},Uo=pn(Io),Vo=pn(!1),Ao=Io,Bo=null,Wo=!1,Ho=!1,Qo=[],jo=0,$o=null,qo=0,Ko=[],Yo=0,Xo=null,Go=1,Zo=\"\",Jo=null,ei=null,ni=!1,ti=null,ri=Xl.ReactCurrentBatchConfig,li=Vn(!0),ai=Vn(!1),ui=pn(null),oi=null,ii=null,si=null,ci=null,fi=qn,di=!1,pi={},mi=pn(pi),hi=pn(pi),gi=pn(pi),vi=pn(0),yi=[],bi=Xl.ReactCurrentDispatcher,ki=Xl.ReactCurrentBatchConfig,wi=0,Si=null,xi=null,Ei=null,Ci=!1,Ni=!1,zi=0,Pi=0,_i={readContext:Qn,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Li={readContext:Qn,useCallback:function(e,n){return pt().memoizedState=[e,void 0===n?null:n],e},useContext:Qn,useEffect:Lt,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Pt(4194308,4,Rt.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Pt(4194308,4,e,n)},useInsertionEffect:function(e,n){return Pt(4,2,e,n)},useMemo:function(e,n){var t=pt();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=pt();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=function(e,n,t){var r=Kr(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Bt(e)?Wt(n,t):null!==(t=$n(e,n,t,r))&&(Yr(t,e,r,qr()),Ht(t,n,r))}.bind(null,Si,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},pt().memoizedState=e},useState:Ct,useDebugValue:Ot,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Ct(!1),n=e[0];return e=function(e,n,t){ou=0!==(t=ou)&&4>t?t:4,e(!0);var r=ki.transition;ki.transition={};try{e(!1),n()}finally{ou=t,ki.transition=r}}.bind(null,e[1]),pt().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){},useSyncExternalStore:function(e,n,r){var l=Si,a=pt();if(ni){if(void 0===r)throw Error(t(407));r=r()}else{if(r=n(),null===es)throw Error(t(349));0!=(30&wi)||kt(l,n,r)}a.memoizedState=r;var u={value:r,getSnapshot:n};return a.queue=u,Lt(St.bind(null,l,u,e),[e]),l.flags|=2048,Nt(9,wt.bind(null,l,u,r,n),void 0,null),r},useId:function(){var e=pt(),n=es.identifierPrefix;if(ni){var t=Zo;n=\":\"+n+\"R\"+(t=(Go&~(1<<32-tu(Go)-1)).toString(32)+t),0<(t=zi++)&&(n+=\"H\"+t.toString(32)),n+=\":\"}else n=\":\"+n+\"r\"+(t=Pi++).toString(32)+\":\";return e.memoizedState=n},unstable_isNewReconciler:!1},Ti={readContext:Qn,useCallback:It,useContext:Qn,useEffect:Tt,useImperativeHandle:Dt,useInsertionEffect:Mt,useLayoutEffect:Ft,useMemo:Ut,useReducer:gt,useRef:zt,useState:function(e){return gt(ht)},useDebugValue:Ot,useDeferredValue:function(e){return Vt(mt(),xi.memoizedState,e)},useTransition:function(){return[gt(ht)[0],mt().memoizedState]},useMutableSource:yt,useSyncExternalStore:bt,useId:At,unstable_isNewReconciler:!1},Mi={readContext:Qn,useCallback:It,useContext:Qn,useEffect:Tt,useImperativeHandle:Dt,useInsertionEffect:Mt,useLayoutEffect:Ft,useMemo:Ut,useReducer:vt,useRef:zt,useState:function(e){return vt(ht)},useDebugValue:Ot,useDeferredValue:function(e){var n=mt();return null===xi?n.memoizedState=e:Vt(n,xi.memoizedState,e)},useTransition:function(){return[vt(ht)[0],mt().memoizedState]},useMutableSource:yt,useSyncExternalStore:bt,useId:At,unstable_isNewReconciler:!1},Fi={isMounted:function(e){return!!(e=e._reactInternals)&&B(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=qr(),l=Kr(e),a=Xn(r,l);a.payload=n,void 0!==t&&null!==t&&(a.callback=t),null!==(n=Gn(e,a,l))&&(Yr(n,e,l,r),Zn(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=qr(),l=Kr(e),a=Xn(r,l);a.tag=1,a.payload=n,void 0!==t&&null!==t&&(a.callback=t),null!==(n=Gn(e,a,l))&&(Yr(n,e,l,r),Zn(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=qr(),r=Kr(e),l=Xn(t,r);l.tag=2,void 0!==n&&null!==n&&(l.callback=n),null!==(n=Gn(e,l,r))&&(Yr(n,e,r,t),Zn(n,e,r))}},Ri=\"function\"==typeof WeakMap?WeakMap:Map,Di=Xl.ReactCurrentOwner,Oi=!1,Ii={dehydrated:null,treeContext:null,retryLane:0},Ui=function(e,n,t,r){for(t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Vi=function(e,n){},Ai=function(e,n,t,r,l){var a=e.memoizedProps;if(a!==r){switch(e=n.stateNode,tt(mi.current),l=null,t){case\"input\":a=v(e,a),r=v(e,r),l=[];break;case\"select\":a=ma({},a,{value:void 0}),r=ma({},r,{value:void 0}),l=[];break;case\"textarea\":a=E(e,a),r=E(e,r),l=[];break;default:\"function\"!=typeof a.onClick&&\"function\"==typeof r.onClick&&(e.onclick=tn)}var u;for(s in M(t,r),t=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if(\"style\"===s){var o=a[s];for(u in o)o.hasOwnProperty(u)&&(t||(t={}),t[u]=\"\")}else\"dangerouslySetInnerHTML\"!==s&&\"children\"!==s&&\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&\"autoFocus\"!==s&&(Bl.hasOwnProperty(s)?l||(l=[]):(l=l||[]).push(s,null));for(s in r){var i=r[s];if(o=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&i!==o&&(null!=i||null!=o))if(\"style\"===s)if(o){for(u in o)!o.hasOwnProperty(u)||i&&i.hasOwnProperty(u)||(t||(t={}),t[u]=\"\");for(u in i)i.hasOwnProperty(u)&&o[u]!==i[u]&&(t||(t={}),t[u]=i[u])}else t||(l||(l=[]),l.push(s,t)),t=i;else\"dangerouslySetInnerHTML\"===s?(i=i?i.__html:void 0,o=o?o.__html:void 0,null!=i&&o!==i&&(l=l||[]).push(s,i)):\"children\"===s?\"string\"!=typeof i&&\"number\"!=typeof i||(l=l||[]).push(s,\"\"+i):\"suppressContentEditableWarning\"!==s&&\"suppressHydrationWarning\"!==s&&(Bl.hasOwnProperty(s)?(null!=i&&\"onScroll\"===s&&je(\"scroll\",e),l||o===i||(l=[])):(l=l||[]).push(s,i))}t&&(l=l||[]).push(\"style\",t);var s=l;(n.updateQueue=s)&&(n.flags|=4)}},Bi=function(e,n,t,r){t!==r&&(n.flags|=4)},Wi=!1,Hi=!1,Qi=\"function\"==typeof WeakSet?WeakSet:Set,ji=null,$i=!1,qi=null,Ki=!1,Yi=Math.ceil,Xi=Xl.ReactCurrentDispatcher,Gi=Xl.ReactCurrentOwner,Zi=Xl.ReactCurrentBatchConfig,Ji=0,es=null,ns=null,ts=0,rs=0,ls=pn(0),as=0,us=null,os=0,is=0,ss=0,cs=null,fs=null,ds=0,ps=1/0,ms=null,hs=!1,gs=null,vs=null,ys=!1,bs=null,ks=0,ws=0,Ss=null,xs=-1,Es=0,Cs=function(e,n,r){if(null!==e)if(e.memoizedProps!==n.pendingProps||Vo.current)Oi=!0;else{if(0==(e.lanes&r)&&0==(128&n.flags))return Oi=!1,function(e,n,t){switch(n.tag){case 3:pr(n),Rn();break;case 5:at(n);break;case 1:vn(n.type)&&kn(n);break;case 4:rt(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;hn(ui,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(hn(vi,1&vi.current),n.flags|=128,null):0!=(t&n.child.childLanes)?gr(e,n,t):(hn(vi,1&vi.current),null!==(e=xr(e,n,t))?e.sibling:null);hn(vi,1&vi.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return wr(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),hn(vi,vi.current),r)break;return null;case 22:case 23:return n.lanes=0,ir(e,n,t)}return xr(e,n,t)}(e,n,r);Oi=0!=(131072&e.flags)}else Oi=!1,ni&&0!=(1048576&n.flags)&&Cn(n,qo,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;Sr(e,n),e=n.pendingProps;var a=gn(n,Uo.current);Hn(n,r),a=ft(null,n,l,e,a,r);var u=dt();return n.flags|=1,\"object\"==typeof a&&null!==a&&\"function\"==typeof a.render&&void 0===a.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,vn(l)?(u=!0,kn(n)):u=!1,n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Kn(n),a.updater=Fi,n.stateNode=a,a._reactInternals=n,Yt(n,l,e,r),n=dr(null,n,l,!0,u,r)):(n.tag=0,ni&&u&&Nn(n),lr(null,n,a,r),n=n.child),n;case 16:l=n.elementType;e:{switch(Sr(e,n),e=n.pendingProps,l=(a=l._init)(l._payload),n.type=l,a=n.tag=function(e){if(\"function\"==typeof e)return yl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===la)return 11;if(e===oa)return 14}return 2}(l),e=Qt(l,e),a){case 0:n=cr(null,n,l,e,r);break e;case 1:n=fr(null,n,l,e,r);break e;case 11:n=ar(null,n,l,e,r);break e;case 14:n=ur(null,n,l,Qt(l.type,e),r);break e}throw Error(t(306,l,\"\"))}return n;case 0:return l=n.type,a=n.pendingProps,cr(e,n,l,a=n.elementType===l?a:Qt(l,a),r);case 1:return l=n.type,a=n.pendingProps,fr(e,n,l,a=n.elementType===l?a:Qt(l,a),r);case 3:e:{if(pr(n),null===e)throw Error(t(387));l=n.pendingProps,a=(u=n.memoizedState).element,Yn(e,n),et(n,l,null,r);var o=n.memoizedState;if(l=o.element,u.isDehydrated){if(u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=u,n.memoizedState=u,256&n.flags){n=mr(e,n,l,r,a=Xt(Error(t(423)),n));break e}if(l!==a){n=mr(e,n,l,r,a=Xt(Error(t(424)),n));break e}for(ei=un(n.stateNode.containerInfo.firstChild),Jo=n,ni=!0,ti=null,r=ai(n,null,l,r),n.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(Rn(),l===a){n=xr(e,n,r);break e}lr(e,n,l,r)}n=n.child}return n;case 5:return at(n),null===e&&Tn(n),l=n.type,a=n.pendingProps,u=null!==e?e.memoizedProps:null,o=a.children,rn(l,a)?o=null:null!==u&&rn(l,u)&&(n.flags|=32),sr(e,n),lr(e,n,o,r),n.child;case 6:return null===e&&Tn(n),null;case 13:return gr(e,n,r);case 4:return rt(n,n.stateNode.containerInfo),l=n.pendingProps,null===e?n.child=li(n,null,l,r):lr(e,n,l,r),n.child;case 11:return l=n.type,a=n.pendingProps,ar(e,n,l,a=n.elementType===l?a:Qt(l,a),r);case 7:return lr(e,n,n.pendingProps,r),n.child;case 8:case 12:return lr(e,n,n.pendingProps.children,r),n.child;case 10:e:{if(l=n.type._context,a=n.pendingProps,u=n.memoizedProps,o=a.value,hn(ui,l._currentValue),l._currentValue=o,null!==u)if(no(u.value,o)){if(u.children===a.children&&!Vo.current){n=xr(e,n,r);break e}}else for(null!==(u=n.child)&&(u.return=n);null!==u;){var i=u.dependencies;if(null!==i){o=u.child;for(var s=i.firstContext;null!==s;){if(s.context===l){if(1===u.tag){(s=Xn(-1,r&-r)).tag=2;var c=u.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}u.lanes|=r,null!==(s=u.alternate)&&(s.lanes|=r),Wn(u.return,r,n),i.lanes|=r;break}s=s.next}}else if(10===u.tag)o=u.type===n.type?null:u.child;else if(18===u.tag){if(null===(o=u.return))throw Error(t(341));o.lanes|=r,null!==(i=o.alternate)&&(i.lanes|=r),Wn(o,r,n),o=u.sibling}else o=u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===n){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}lr(e,n,a.children,r),n=n.child}return n;case 9:return a=n.type,l=n.pendingProps.children,Hn(n,r),l=l(a=Qn(a)),n.flags|=1,lr(e,n,l,r),n.child;case 14:return a=Qt(l=n.type,n.pendingProps),ur(e,n,l,a=Qt(l.type,a),r);case 15:return or(e,n,n.type,n.pendingProps,r);case 17:return l=n.type,a=n.pendingProps,a=n.elementType===l?a:Qt(l,a),Sr(e,n),n.tag=1,vn(l)?(e=!0,kn(n)):e=!1,Hn(n,r),qt(n,l,a),Yt(n,l,a,r),dr(null,n,l,!0,e,r);case 19:return wr(e,n,r);case 22:return ir(e,n,r)}throw Error(t(156,n.tag))},Ns=function(e,n,t,r){return new function(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}(e,n,t,r)},zs=\"function\"==typeof reportError?reportError:function(e){console.error(e)};Dl.prototype.render=Rl.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(t(409));Pl(e,n,null,null)},Dl.prototype.unmount=Rl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;tl(function(){Pl(null,e,null,null)}),n[To]=null}},Dl.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ts();e={blockedOn:null,target:e,priority:n};for(var t=0;t<hu.length&&0!==n&&n<hu[t].priority;t++);hu.splice(t,0,e),0===t&&te(e)}};var Ps=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=j(n.pendingLanes);0!==t&&(Z(n,1|t),Xr(n,qa()),0==(6&Ji)&&($r(),xn()))}break;case 13:tl(function(){var n=qn(e,1);if(null!==n){var t=qr();Yr(n,e,1,t)}}),Tl(e,1)}},_s=function(e){if(13===e.tag){var n=qn(e,134217728);if(null!==n)Yr(n,e,134217728,qr());Tl(e,134217728)}},Ls=function(e){if(13===e.tag){var n=Kr(e),t=qn(e,n);if(null!==t)Yr(t,e,n,qr());Tl(e,n)}},Ts=function(){return ou},Ms=function(e,n){var t=ou;try{return ou=e,n()}finally{ou=t}};xa=function(e,n,r){switch(n){case\"input\":if(k(e,r),n=r.name,\"radio\"===r.type&&null!=n){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+n)+'][type=\"radio\"]'),n=0;n<r.length;n++){var l=r[n];if(l!==e&&l.form===e.form){var a=dn(l);if(!a)throw Error(t(90));h(l),k(l,a)}}}break;case\"textarea\":N(e,r);break;case\"select\":null!=(n=r.value)&&x(e,!!r.multiple,n,!1)}},Na=nl,za=tl;var Fs={usingClientEntryPoint:!1,Events:[cn,fn,dn,O,I,nl]};!function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xl.ReactCurrentDispatcher,findHostInstanceByFiber:Ml,findFiberByHostInstance:e.findFiberByHostInstance||Fl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.3.1\"},\"undefined\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)e=!0;else{try{eu=n.inject(e),nu=n}catch(e){}e=!!n.checkDCE}}}({findFiberByHostInstance:sn,bundleType:0,version:\"18.3.1-next-f1338f8080-20240426\",rendererPackageName:\"react-dom\"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fs,e.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ol(n))throw Error(t(200));return function(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Zl,key:null==r?null:\"\"+r,children:e,containerInfo:n,implementation:t}}(e,n,null,r)},e.createRoot=function(e,n){if(!Ol(e))throw Error(t(299));var r=!1,l=\"\",a=zs;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(l=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),n=Cl(e,1,!1,null,0,r,0,l,a),e[To]=n.current,qe(8===e.nodeType?e.parentNode:e),new Rl(n)},e.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if(\"function\"==typeof e.render)throw Error(t(188));throw e=Object.keys(e).join(\",\"),Error(t(268,e))}return e=null===(e=Q(n))?null:e.stateNode},e.flushSync=function(e){return tl(e)},e.hydrate=function(e,n,r){if(!Il(n))throw Error(t(200));return Vl(null,e,n,!0,r)},e.hydrateRoot=function(e,n,r){if(!Ol(e))throw Error(t(405));var l=null!=r&&r.hydratedSources||null,a=!1,u=\"\",o=zs;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(u=r.identifierPrefix),void 0!==r.onRecoverableError&&(o=r.onRecoverableError)),n=zl(n,null,e,1,null!=r?r:null,a,0,u,o),e[To]=n.current,qe(e),l)for(e=0;e<l.length;e++)a=(a=(r=l[e])._getVersion)(r._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[r,a]:n.mutableSourceEagerHydrationData.push(r,a);return new Dl(n)},e.render=function(e,n,r){if(!Il(n))throw Error(t(200));return Vl(null,e,n,!1,r)},e.unmountComponentAtNode=function(e){if(!Il(e))throw Error(t(40));return!!e._reactRootContainer&&(tl(function(){Vl(null,null,e,!1,function(){e._reactRootContainer=null,e[To]=null})}),!0)},e.unstable_batchedUpdates=nl,e.unstable_renderSubtreeIntoContainer=function(e,n,r,l){if(!Il(r))throw Error(t(200));if(null==e||void 0===e._reactInternals)throw Error(t(38));return Vl(e,n,r,!1,l)},e.version=\"18.3.1-next-f1338f8080-20240426\"},\"object\"==typeof exports&&\"undefined\"!=typeof module?n(exports,require(\"react\")):\"function\"==typeof define&&define.amd?define([\"exports\",\"react\"],n):n((e=e||self).ReactDOM={},e.React)}();","creator":"LinOnetwo","type":"application/javascript","module-type":"library"},"react":{"title":"react","text":"!function(){\"use strict\";var e,t;e=this,t=function(e){function t(e,t,n){this.props=e,this.context=t,this.refs=F,this.updater=n||O}function n(){}function r(e,t,n){this.props=e,this.context=t,this.refs=F,this.updater=n||O}function o(e,t,n){var r,o={},u=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(u=\"\"+t.key),t)U.call(t,r)&&!q.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){for(var l=Array(i),c=0;c<i;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===o[r]&&(o[r]=i[r]);return{$$typeof:k,type:e,key:u,ref:a,props:o,_owner:V.current}}function u(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===k}function a(e,t){return\"object\"==typeof e&&null!==e&&null!=e.key?function(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+e.replace(/[=:]/g,function(e){return t[e]})}(\"\"+e.key):t.toString(36)}function i(e,t,n,r,o){var l=typeof e;\"undefined\"!==l&&\"boolean\"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case\"string\":case\"number\":c=!0;break;case\"object\":switch(e.$$typeof){case k:case w:c=!0}}if(c)return o=o(c=e),e=\"\"===r?\".\"+a(c,0):r,D(o)?(n=\"\",null!=e&&(n=e.replace(A,\"$&/\")+\"/\"),i(o,t,n,\"\",function(e){return e})):null!=o&&(u(o)&&(o=function(e,t){return{$$typeof:k,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||c&&c.key===o.key?\"\":(\"\"+o.key).replace(A,\"$&/\")+\"/\")+e)),t.push(o)),1;if(c=0,r=\"\"===r?\".\":r+\":\",D(e))for(var f=0;f<e.length;f++){var s=r+a(l=e[f],f);c+=i(l,t,n,s,o)}else if(\"function\"==typeof(s=function(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=T&&e[T]||e[\"@@iterator\"])?e:null}(e)))for(e=s.call(e),f=0;!(l=e.next()).done;)c+=i(l=l.value,t,n,s=r+a(l,f++),o);else if(\"object\"===l)throw t=String(e),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===t?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t)+\"). If you meant to render a collection of children, use an array instead.\");return c}function l(e,t,n){if(null==e)return e;var r=[],o=0;return i(e,r,\"\",\"\",function(e){return t.call(n,e,o++)}),r}function c(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}function f(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<y(o,t)))break e;e[r]=t,e[n]=o,n=r}}function s(e){return 0===e.length?null:e[0]}function p(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,u=o>>>1;r<u;){var a=2*(r+1)-1,i=e[a],l=a+1,c=e[l];if(0>y(i,n))l<o&&0>y(c,i)?(e[r]=c,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(l<o&&0>y(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function y(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function d(e){for(var t=s(J);null!==t;){if(null===t.callback)p(J);else{if(!(t.startTime<=e))break;p(J),t.sortIndex=t.expirationTime,f(G,t)}t=s(J)}}function b(e){if(te=!1,d(e),!ee)if(null!==s(G))ee=!0,_(v);else{var t=s(J);null!==t&&h(b,t.startTime-e)}}function v(e,t){ee=!1,te&&(te=!1,re(ie),ie=-1),Z=!0;var n=X;try{for(d(t),Q=s(G);null!==Q&&(!(Q.expirationTime>t)||e&&!m());){var r=Q.callback;if(\"function\"==typeof r){Q.callback=null,X=Q.priorityLevel;var o=r(Q.expirationTime<=t);t=H(),\"function\"==typeof o?Q.callback=o:Q===s(G)&&p(G),d(t)}else p(G);Q=s(G)}if(null!==Q)var u=!0;else{var a=s(J);null!==a&&h(b,a.startTime-t),u=!1}return u}finally{Q=null,X=n,Z=!1}}function m(){return!(H()-ce<le)}function _(e){ae=e,ue||(ue=!0,se())}function h(e,t){ie=ne(function(){e(H())},t)}function g(e){throw Error(\"act(...) is not supported in production builds of React.\")}var k=Symbol.for(\"react.element\"),w=Symbol.for(\"react.portal\"),S=Symbol.for(\"react.fragment\"),x=Symbol.for(\"react.strict_mode\"),C=Symbol.for(\"react.profiler\"),E=Symbol.for(\"react.provider\"),R=Symbol.for(\"react.context\"),P=Symbol.for(\"react.forward_ref\"),$=Symbol.for(\"react.suspense\"),I=Symbol.for(\"react.memo\"),j=Symbol.for(\"react.lazy\"),T=Symbol.iterator,O={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){},enqueueReplaceState:function(e,t,n,r){},enqueueSetState:function(e,t,n,r){}},L=Object.assign,F={};t.prototype.isReactComponent={},t.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},t.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},n.prototype=t.prototype;var M=r.prototype=new n;M.constructor=r,L(M,t.prototype),M.isPureReactComponent=!0;var D=Array.isArray,U=Object.prototype.hasOwnProperty,V={current:null},q={key:!0,ref:!0,__self:!0,__source:!0},A=/\\/+/g,N={current:null},B={transition:null};if(\"object\"==typeof performance&&\"function\"==typeof performance.now)var z=performance,H=function(){return z.now()};else{var W=Date,Y=W.now();H=function(){return W.now()-Y}}var G=[],J=[],K=1,Q=null,X=3,Z=!1,ee=!1,te=!1,ne=\"function\"==typeof setTimeout?setTimeout:null,re=\"function\"==typeof clearTimeout?clearTimeout:null,oe=\"undefined\"!=typeof setImmediate?setImmediate:null;\"undefined\"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var ue=!1,ae=null,ie=-1,le=5,ce=-1,fe=function(){if(null!==ae){var e=H();ce=e;var t=!0;try{t=ae(!0,e)}finally{t?se():(ue=!1,ae=null)}}else ue=!1};if(\"function\"==typeof oe)var se=function(){oe(fe)};else if(\"undefined\"!=typeof MessageChannel){var pe=(M=new MessageChannel).port2;M.port1.onmessage=fe,se=function(){pe.postMessage(null)}}else se=function(){ne(fe,0)};M={ReactCurrentDispatcher:N,ReactCurrentOwner:V,ReactCurrentBatchConfig:B,Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=X;X=e;try{return t()}finally{X=n}},unstable_next:function(e){switch(X){case 1:case 2:case 3:var t=3;break;default:t=X}var n=X;X=t;try{return e()}finally{X=n}},unstable_scheduleCallback:function(e,t,n){var r=H();switch(\"object\"==typeof n&&null!==n?n=\"number\"==typeof(n=n.delay)&&0<n?r+n:r:n=r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:K++,callback:t,priorityLevel:e,startTime:n,expirationTime:o=n+o,sortIndex:-1},n>r?(e.sortIndex=n,f(J,e),null===s(G)&&e===s(J)&&(te?(re(ie),ie=-1):te=!0,h(b,n-r))):(e.sortIndex=o,f(G,e),ee||Z||(ee=!0,_(v))),e},unstable_cancelCallback:function(e){e.callback=null},unstable_wrapCallback:function(e){var t=X;return function(){var n=X;X=t;try{return e.apply(this,arguments)}finally{X=n}}},unstable_getCurrentPriorityLevel:function(){return X},unstable_shouldYield:m,unstable_requestPaint:function(){},unstable_continueExecution:function(){ee||Z||(ee=!0,_(v))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return s(G)},get unstable_now(){return H},unstable_forceFrameRate:function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):le=0<e?Math.floor(1e3/e):5},unstable_Profiling:null}},e.Children={map:l,forEach:function(e,t,n){l(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return l(e,function(){t++}),t},toArray:function(e){return l(e,function(e){return e})||[]},only:function(e){if(!u(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},e.Component=t,e.Fragment=S,e.Profiler=C,e.PureComponent=r,e.StrictMode=x,e.Suspense=$,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,e.act=g,e.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+e+\".\");var r=L({},e.props),o=e.key,u=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,a=V.current),void 0!==t.key&&(o=\"\"+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)U.call(t,l)&&!q.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==i?i[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){i=Array(l);for(var c=0;c<l;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:k,type:e.type,key:o,ref:u,props:r,_owner:a}},e.createContext=function(e){return(e={$$typeof:R,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:E,_context:e},e.Consumer=e},e.createElement=o,e.createFactory=function(e){var t=o.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:P,render:e}},e.isValidElement=u,e.lazy=function(e){return{$$typeof:j,_payload:{_status:-1,_result:e},_init:c}},e.memo=function(e,t){return{$$typeof:I,type:e,compare:void 0===t?null:t}},e.startTransition=function(e,t){t=B.transition,B.transition={};try{e()}finally{B.transition=t}},e.unstable_act=g,e.useCallback=function(e,t){return N.current.useCallback(e,t)},e.useContext=function(e){return N.current.useContext(e)},e.useDebugValue=function(e,t){},e.useDeferredValue=function(e){return N.current.useDeferredValue(e)},e.useEffect=function(e,t){return N.current.useEffect(e,t)},e.useId=function(){return N.current.useId()},e.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return N.current.useMemo(e,t)},e.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},e.useRef=function(e){return N.current.useRef(e)},e.useState=function(e){return N.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return N.current.useTransition()},e.version=\"18.3.1\"},\"object\"==typeof exports&&\"undefined\"!=typeof module?t(exports):\"function\"==typeof define&&define.amd?define([\"exports\"],t):t((e=e||self).React={})}();","creator":"LinOnetwo","type":"application/javascript","module-type":"library"},"$:/plugins/linonetwo/tw-react/readme":{"title":"$:/plugins/linonetwo/tw-react/readme","creator":"LinOnetwo","type":"text/vnd.tiddlywiki","text":"!! What is this\n\nThis is a dependency of slate-write WYSIWYG editor and flowtiwi-sidebar and many other dynamic widgets. This plugin enable powerful data operation and UI operation of those plugins, thus become a prerequisite of those plugins.\n\n!! Example\n\n{{$:/plugins/linonetwo/tw-react/docs/example}}\n\n!! Usage\n\n<<tree prefix:\"$:/plugins/linonetwo/tw-react/docs/\">>\n"},"$:/plugins/linonetwo/tw-react/tree":{"title":"$:/plugins/linonetwo/tw-react/tree","type":"text/vnd.tiddlywiki","text":"<<tree prefix:\"$:/plugins/linonetwo/tw-react/\">>"},"$:/plugins/linonetwo/tw-react/widget.js":{"title":"$:/plugins/linonetwo/tw-react/widget.js","text":"\"use strict\";\n\n// node_modules/.pnpm/@wessberg+connection-observer@1.0.5_patch_hash=fr7zjraqbqi6pqg33c2znbtaw4/node_modules/@wessberg/connection-observer/dist/index.js\nvar ORIGINAL_ATTACH_SHADOW = typeof Element !== \"undefined\" ? Element.prototype.attachShadow : void 0;\nfunction isShady() {\n return typeof window.ShadyDOM !== \"undefined\" && typeof ShadowRoot !== \"undefined\";\n}\nfunction supportsShadowRoots() {\n return typeof ShadowRoot !== \"undefined\";\n}\nfunction patchElementPrototypeAttachShadow(callback) {\n if (ORIGINAL_ATTACH_SHADOW == null || isShady() || typeof Element === \"undefined\")\n return;\n Element.prototype.attachShadow = function(shadowRootInitDict) {\n const shadowRoot = ORIGINAL_ATTACH_SHADOW.call(this, shadowRootInitDict);\n callback(shadowRoot);\n return shadowRoot;\n };\n}\nfunction createPausableQueue(job, ...queueItems) {\n const queue = new Set(queueItems);\n let running = false;\n const flush = () => {\n for (const queuedNode of queue) {\n job(queuedNode);\n }\n queue.clear();\n };\n return {\n isRunning() {\n return running;\n },\n schedule(node) {\n queue.add(node);\n if (running) {\n flush();\n }\n },\n stop() {\n running = false;\n },\n run() {\n if (running)\n return;\n running = true;\n flush();\n }\n };\n}\nvar MUTATION_OBSERVER_INIT = {\n childList: true,\n subtree: true\n};\nvar nextMicrotask = (func) => {\n if (typeof queueMicrotask !== \"undefined\")\n queueMicrotask(func);\n else if (typeof Promise !== \"undefined\")\n Promise.resolve().then(() => func());\n else\n setTimeout(() => func(), 0);\n};\nfunction nodeListToArray(nodeList) {\n if (typeof Symbol !== \"undefined\" && nodeList[Symbol.iterator] != null) {\n return [...nodeList];\n } else {\n const arr = [];\n for (let i = 0; i < nodeList.length; i++) {\n arr[i] = nodeList[i];\n }\n return arr;\n }\n}\nfunction queryRoot(root, query) {\n if (isShady()) {\n return new Set(nodeListToArray(window.ShadyDOM.nativeMethods.querySelectorAll.call(document.documentElement, query)));\n }\n return new Set(!(\"querySelectorAll\" in root) ? [] : nodeListToArray(root.querySelectorAll(query)));\n}\nfunction mergeNodes(a, b) {\n return /* @__PURE__ */ new Set([...a == null ? [] : a, ...b == null ? [] : b]);\n}\nfunction isDocumentOrShadowRoot(root) {\n return \"activeElement\" in root;\n}\nfunction observeMissingRoots(root = document.documentElement) {\n if (isDocumentOrShadowRoot(root)) {\n observeRoot(root);\n }\n if (isShady() && root instanceof ShadowRoot)\n return;\n if (!supportsShadowRoots())\n return;\n const childNodes = root.childNodes;\n const shadowRoot = \"shadowRoot\" in root && root.shadowRoot != null ? [root.shadowRoot] : [];\n for (const node of [...childNodes, ...shadowRoot]) {\n observeMissingRoots(node);\n }\n}\nfunction isConnected(node) {\n if (\"isConnected\" in Node.prototype)\n return node.isConnected;\n return node.ownerDocument == null || !(node.ownerDocument.compareDocumentPosition(node) & node.DOCUMENT_POSITION_DISCONNECTED);\n}\nvar CONNECTION_OBSERVER_INTERNALS_MAP = /* @__PURE__ */ new Map();\nfunction initializeConnectionObserver(observer, callback) {\n const queue = /* @__PURE__ */ new Set();\n const observedTargets = /* @__PURE__ */ new Set();\n const rootToQuerySelectorToMatchedNodesMap = /* @__PURE__ */ new Map();\n const nodeToLastConnectionValueMap = /* @__PURE__ */ new WeakMap();\n let scheduled = false;\n let flushing = false;\n let hasFoundMissingRoots = false;\n const flush = () => {\n flushing = true;\n const arr = [...queue];\n if (arr.length > 0) {\n callback(arr, observer);\n }\n queue.clear();\n scheduled = false;\n flushing = false;\n };\n const scheduleFlush = () => {\n if (!scheduled) {\n scheduled = true;\n nextMicrotask(flush);\n }\n };\n const addToQueue = (entry) => {\n queue.add(entry);\n if (!flushing) {\n scheduleFlush();\n }\n };\n const clearQueue = () => {\n const items = [...queue];\n queue.clear();\n return items;\n };\n const clearObservedTargets = () => {\n observedTargets.clear();\n };\n const queryRootAndHandleMutationChanges = (root, query) => {\n let oldQuerySelectorMap = rootToQuerySelectorToMatchedNodesMap.get(root);\n const currentNodes = queryRoot(root, query);\n const oldNodes = oldQuerySelectorMap == null ? void 0 : oldQuerySelectorMap.get(query);\n const mergedNodes = mergeNodes(currentNodes, oldNodes);\n handleMutationChange(mergedNodes);\n if (oldQuerySelectorMap == null) {\n oldQuerySelectorMap = /* @__PURE__ */ new Map();\n rootToQuerySelectorToMatchedNodesMap.set(root, oldQuerySelectorMap);\n }\n oldQuerySelectorMap.set(query, currentNodes);\n };\n const handleMutationChange = (targetNodes) => {\n for (const targetNode of targetNodes) {\n const lastValue = nodeToLastConnectionValueMap.get(targetNode);\n const isTargetNodeConnected = isConnected(targetNode);\n if (lastValue !== isTargetNodeConnected) {\n nodeToLastConnectionValueMap.set(targetNode, isTargetNodeConnected);\n addToQueue({\n connected: isTargetNodeConnected,\n target: targetNode\n });\n }\n }\n };\n const addObservedTarget = (target) => {\n rootObserverQueue.run();\n if (!hasFoundMissingRoots) {\n hasFoundMissingRoots = true;\n observeMissingRoots();\n }\n observedTargets.add(target);\n if (typeof target !== \"string\") {\n handleMutationChange([target]);\n } else {\n for (const root of OBSERVED_ROOTS) {\n queryRootAndHandleMutationChanges(root, target);\n }\n }\n };\n const internals = {\n observedTargets,\n queryRootAndHandleMutationChanges,\n handleMutationChange,\n addObservedTarget,\n clearObservedTargets,\n clearQueue\n };\n CONNECTION_OBSERVER_INTERNALS_MAP.set(observer, internals);\n}\nvar mutationCallback = (mutations) => {\n for (const mutation of mutations) {\n if (mutation.type !== \"childList\")\n continue;\n for (const observer of CONNECTION_OBSERVER_INTERNALS_MAP.values()) {\n for (const target of observer.observedTargets) {\n if (typeof target === \"string\") {\n observer.queryRootAndHandleMutationChanges(mutation.target, target);\n } else {\n observer.handleMutationChange([target]);\n }\n }\n }\n }\n};\nvar OBSERVED_ROOTS = /* @__PURE__ */ new Set();\nvar observeRoot = /* @__PURE__ */ (() => {\n let instance;\n return function(root) {\n if (OBSERVED_ROOTS.has(root))\n return;\n OBSERVED_ROOTS.add(root);\n if (instance == null) {\n instance = new MutationObserver(mutationCallback);\n }\n instance.observe(root, MUTATION_OBSERVER_INIT);\n };\n})();\nvar rootObserverQueue = createPausableQueue(observeRoot, typeof document !== \"undefined\" ? document.documentElement : void 0);\nvar ConnectionObserver = class _ConnectionObserver {\n constructor(callback) {\n if (new.target === void 0) {\n throw new TypeError(`Constructor ${_ConnectionObserver.name} requires 'new'`);\n }\n if (callback === void 0) {\n throw new ReferenceError(`Failed to construct '${_ConnectionObserver.name}': 1 argument required, but only 0 present.`);\n } else if (typeof callback !== \"function\") {\n throw new TypeError(`Failed to construct '${_ConnectionObserver.name}': The callback provided as parameter 1 is not a function.`);\n }\n if (typeof document === \"undefined\") {\n return;\n }\n initializeConnectionObserver(this, callback);\n }\n /**\n * The Symbol.@@toStringTag value\n */\n get [Symbol.toStringTag]() {\n return `ConnectionObserver`;\n }\n /**\n * Observe the given node or query selector for connections/disconnections.\n * If given a Node, that specific Node will be observed. If given a query selector, such\n * as for example \"img[data-some-attr]\", for each new MutationRecord, the query selector\n * will be executed and the matched nodes will be observed for connections/disconnections\n */\n observe(target) {\n if (target === void 0) {\n throw new ReferenceError(`Failed to execute '${this.observe.name}' on '${_ConnectionObserver.name}': 1 argument required, but only 0 present.`);\n } else if (typeof target !== \"string\" && !(target instanceof Node)) {\n throw new TypeError(`Failed to execute '${this.observe.name}' on '${_ConnectionObserver.name}': parameter 1 is not of type 'Node' or a DOMString.`);\n }\n const internals = CONNECTION_OBSERVER_INTERNALS_MAP.get(this);\n if (internals == null)\n return;\n internals.addObservedTarget(target);\n }\n /**\n * Takes the records immediately (instead of waiting for the next flush)\n */\n takeRecords() {\n const internals = CONNECTION_OBSERVER_INTERNALS_MAP.get(this);\n if (internals == null)\n return [];\n return internals.clearQueue();\n }\n /**\n * Disconnects the ConnectionObserver such that none of its callbacks will be invoked any longer\n */\n disconnect() {\n const internals = CONNECTION_OBSERVER_INTERNALS_MAP.get(this);\n if (internals == null)\n return;\n internals.clearObservedTargets();\n }\n};\npatchElementPrototypeAttachShadow(rootObserverQueue.schedule.bind(rootObserverQueue));\n\n// src/widget.ts\nvar import_widget = require(\"$:/core/modules/widgets/widget.js\");\nvar ReactDom = require(\"react-dom\");\nvar React = require(\"react\");\nif (typeof window !== \"undefined\") {\n window.React = React;\n} else if (typeof global !== \"undefined\") {\n global.React = React;\n}\nvar ReactWidgetImpl = class extends import_widget.widget {\n constructor(parseTreeNode, options) {\n super(parseTreeNode, options);\n /**\n * User of tw-react need to assign his react component to this property.\n */\n this.reactComponent = null;\n this.getProps = () => ({ parentWidget: this });\n if (!$tw.browser) {\n return;\n }\n this.connectionObserver = new ConnectionObserver((entries) => {\n for (const { connected } of entries) {\n if (!connected) {\n this.destroy();\n this.connectionObserver?.disconnect?.();\n }\n }\n });\n }\n refresh(changedTiddlers) {\n return false;\n }\n render(parent, nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n if (this.reactComponent === void 0 || this.reactComponent === null) {\n return;\n }\n const currentProps = this.getProps() ?? {};\n if (currentProps.parentWidget === void 0 || currentProps.parentWidget === null) {\n currentProps.parentWidget = this;\n }\n if (this.root === void 0 || this.containerElement === void 0) {\n this.containerElement = document.createElement(\"div\");\n this.root = ReactDom.createRoot(this.containerElement);\n let domToObserve = this.containerElement;\n if (this.parentDomNode instanceof Node) {\n domToObserve = this.parentDomNode;\n }\n this.connectionObserver?.observe?.(domToObserve);\n }\n this.domNodes.push(this.containerElement);\n try {\n parent.insertBefore(this.containerElement, nextSibling);\n } catch (error) {\n console.warn(`Error while inserting dom node in react widget, this might be cause by use transclude widget for the wikitext contains widget.`, error);\n }\n const reactElement = React.createElement(this.reactComponent, currentProps);\n this.root.render(reactElement);\n }\n refreshSelf() {\n if (this.reactComponent === void 0 || this.reactComponent === null) {\n return;\n }\n if (this.root === void 0) {\n const nextSibling = this.findNextSiblingDomNode();\n this.render(this.parentDomNode, nextSibling);\n return;\n }\n this.computeAttributes();\n this.execute();\n const currentProps = this.getProps() ?? {};\n if (currentProps.parentWidget === void 0 || currentProps.parentWidget === null) {\n currentProps.parentWidget = this;\n }\n const reactElement = React.createElement(this.reactComponent, currentProps);\n this.root.render(reactElement);\n }\n destroy() {\n this.root?.unmount?.();\n }\n};\nexports.widget = ReactWidgetImpl;\n","creator":"LinOnetwo","type":"application/javascript","module-type":"library"}}} \ No newline at end of file +{"tiddlers":{"$:/plugins/linonetwo/tw-react/docs/FAQ":{"title":"$:/plugins/linonetwo/tw-react/docs/FAQ","creator":"LinOnetwo","text":"!! FAQ\n\n!!! _jsxRuntime\n\n`slate-write/node_modules/react-dnd/dist/cjs/core/DndProvider.js` has `var _jsxRuntime = require(\"react/jsx-runtime\");`\n\nBut `slate-write/node_modules/react-dnd/dist/esm/core/DndProvider.mjs` has `import { jsx as _jsx } from \"react/jsx-runtime.js\";`\n\nNote the difference between `react/jsx-runtime` and `react/jsx-runtime.js`!\n\nCurrently tw-react ship with `react/jsx-runtime.js`, so if your plugin uses cjs version of react-dnd, you will have error:\n\n```\nError executing boot module $:/plugins/linonetwo/slate-write/components/index.js: \"Cannot find module named 'react/jsx-runtime' required by module '$:/plugins/linonetwo/slate-write/components/index.js', resolved to react/jsx-runtime\"\n\nundefined\n```\n\nThe solution is to ask me provide a version of tw-react that has `react/jsx-runtime`, or you can use esm version of `react-dnd`.\n"},"$:/plugins/linonetwo/tw-react/docs/example":{"title":"$:/plugins/linonetwo/tw-react/docs/example","creator":"LinOnetwo","type":"text/vnd.tiddlywiki","text":"!! Example\n\n```tid\n<$likeButtonExampleWidget stateTiddler=\"$:/state/tw-react/readme/like-button\" />\n```\n\nButton1:\n\n<$likeButtonExampleWidget stateTiddler=\"$:/state/tw-react/readme/like-button\" />\n\nButton2:\n\n<$likeButtonExampleWidget stateTiddler=\"$:/state/tw-react/readme/like-button\" />\n\nState:\n\n{{$:/state/tw-react/readme/like-button}}\n\nIt keeps its state via a state tiddler, and title of state tiddler is pass-in using `getProps = () => ({ stateTiddler: this.getAttribute('stateTiddler') });`, so `stateTiddler` attribute is passed from widget parameter to the React props.\n\nTwo buttons have shared state [[$:/state/tw-react/readme/like-button]], but not updated when state changed (although you can implement this in the `refresh` method by yourself in your own component), so when you click one, and close this tiddler then reopen it, you will see two buttons have same ''clicked'' state.\n\n`likeButtonExampleWidget` is a class component, it calls a functional component `ExampleFunction` that will use react hook to update self +1 every second.\n\nSee [[example.ts|https://github.com/tiddly-gittly/tw-react/blob/master/src/example.tsx]] and [[exampleFunction.tsx|https://github.com/tiddly-gittly/tw-react/blob/master/src/exampleFunction.tsx]] for example.\n"},"$:/plugins/linonetwo/tw-react/docs/install":{"title":"$:/plugins/linonetwo/tw-react/docs/install","creator":"LinOnetwo","text":"!! Install\n\nAs a user, just install from [[CPL|https://tw-cpl.netlify.app/#linonetwo%2Ftw-react:Index%20linonetwo%2Ftw-react]].\n\nAs a developer, you can continue reading.\n\n!!! Require and externalize 'react', 'react-dom'\n\nPlease make sure to externalize them, for example in the [[RollUp|https://rollupjs.org/]]:\n\n```json\n{\n external: ['react', 'react-dom']\n}\n```\n\nOtherwise you will get [[You might have more than one copy of React in the same app|https://reactjs.org/docs/error-decoder.html/?invariant=321]] error.\n\nAnd use the subclass of Widget provided by this plugin:\n\n```\nconst Widget = require('$:/plugins/linonetwo/tw-react/widget.js').widget\n```\n\n!!! Using Typescript\n\n# use [[TW5-Typed|https://github.com/tiddly-gittly/TW5-Typed]] for basic tw types, see its readme for install instruction\n# install `tw-react` package via `npm i tw-react`, and import the type by `import type { ReactWidget } from 'tw-react';`\n\nUse the type:\n\n```js\nimport { useRenderTiddler } from '$:/plugins/linonetwo/tw-react/index.js';\nimport type { ReactWidget } from 'tw-react';\n\nconst Widget = require('$:/plugins/linonetwo/tw-react/widget.js').widget as typeof ReactWidget;\n\nclass YourWidget extends Widget {\n reactComponent = SomeReactComponent;\n getProps = () => {\n return {\n stateTiddler: this.getAttribute('stateTiddler'),\n // ... other props for your react component\n };\n };\n}\n```\n\n!!! Props\n\nAnything returned from `getProps` method will pass to react component, passing `stateTiddler` is a good idea, but is not mandatory.\n\nFor example, this is what I returned in my `linonetwo/smart-form` plugin:\n\n```js\ngetProps = () => {\n const currentTiddler = this.getAttribute('tiddler', this.getVariable('currentTiddler'));\n // with lots of filter running and data transforms...\n return {\n schema,\n formData,\n children: null,\n onChange,\n };\n };\n```\n\n!!! React Hooks\n\nWe provided some hooks for reactive data management with tw data source. You can import them from the `$:/plugins/linonetwo/tw-react/index.js` (Instead of from `tw-react` package, because they already included in the plugin).\n\n```ts\nimport { useFilter } from '$:/plugins/linonetwo/tw-react/index.js'\n```\n\nYou can't import them from plugin's file, because they are optional, so only included in the npm package, not in the plugin json bundle.\n\n!!!! useFilter\n\nGet list of titles from a filter.\n\n```ts\nconst titles = useFilter('[all[]tag[Index]]');\n```\n\nThe second parameter is an optional dependencies list, you can use it to trigger re-calculate. Otherwise it only rerun filter when filter text changes.\n\n```ts\nconst [toggle, setToggle] = useState(false);\nconst titles = useFilter('[all[]tag[Index]]', [toggle]);\n\n...\n\n<Button onClick={() => setToggle(!toggle)}>Trigger refresh</Button>\n```\n"},"$:/plugins/linonetwo/tw-react/docs/reactAPIs":{"title":"$:/plugins/linonetwo/tw-react/docs/reactAPIs","creator":"LinOnetwo","text":"!! React APIs\n\nTBD, read the source now."},"$:/plugins/linonetwo/tw-react/example.js":{"title":"$:/plugins/linonetwo/tw-react/example.js","text":"\"use strict\";\n\n// src/example.tsx\nvar import_widget = require(\"$:/plugins/linonetwo/tw-react/widget.js\");\n\n// src/exampleFunction.tsx\nvar import_react = require(\"react\");\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nfunction ExampleFunction() {\n const [counter, counterSetter] = (0, import_react.useState)(0);\n (0, import_react.useEffect)(() => {\n let localCounter = 0;\n const handle = setInterval(() => {\n counterSetter(++localCounter);\n }, 1e3);\n return () => {\n clearInterval(handle);\n };\n }, []);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"span\", { children: counter });\n}\n\n// src/example.tsx\nvar import_jsx_runtime2 = require(\"react/jsx-runtime\");\nvar ReactDom = require(\"react-dom\");\nvar React = require(\"react\");\nvar LikeButton = class extends React.Component {\n constructor(props) {\n super(props);\n const defaultState = { liked: false };\n try {\n this.state = JSON.parse($tw.wiki.getTiddlerText(this.props.stateTiddler ?? \"\", \"{}\")) ?? defaultState;\n } catch {\n this.state = defaultState;\n }\n }\n setState(nextState) {\n super.setState(nextState);\n if (this.props.stateTiddler === void 0)\n return;\n $tw.wiki.setText(this.props.stateTiddler, \"text\", void 0, JSON.stringify(nextState));\n }\n render() {\n if (this.state.liked) {\n return \"You liked this.\";\n }\n return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(\n \"button\",\n {\n onClick: () => {\n this.setState({ liked: true });\n },\n children: [\n \"Like \",\n /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ExampleFunction, {})\n ]\n }\n );\n }\n};\nvar LikeButtonWidget = class extends import_widget.widget {\n constructor() {\n super(...arguments);\n this.reactComponent = LikeButton;\n this.getProps = () => ({ stateTiddler: this.getAttribute(\"stateTiddler\") });\n }\n};\nexports.likeButtonExampleWidget = LikeButtonWidget;\n","creator":"LinOnetwo","type":"application/javascript","module-type":"widget"},"$:/plugins/linonetwo/tw-react/index.js":{"title":"$:/plugins/linonetwo/tw-react/index.js","text":"\"use strict\";\n\n// src/hooks/context.ts\nvar import_react = require(\"react\");\nvar ParentWidgetContext = (0, import_react.createContext)(void 0);\n\n// src/hooks/useFilter.ts\nvar import_react2 = require(\"react\");\nfunction useFilter(twFilter, widget = $tw.rootWidget, dependencies = []) {\n const [filterResult, setFilterResult] = (0, import_react2.useState)([]);\n const compiledFilter = (0, import_react2.useMemo)(() => $tw.wiki.compileFilter(twFilter), [twFilter]);\n (0, import_react2.useEffect)(() => {\n setFilterResult(compiledFilter(void 0, widget));\n }, [compiledFilter, widget, ...dependencies]);\n return filterResult;\n}\n\n// src/hooks/useRenderTiddler.ts\nvar import_react3 = require(\"react\");\nfunction useRenderTiddler(tiddlerTitle, containerReference, options) {\n const parentWidget = (0, import_react3.useContext)(ParentWidgetContext);\n (0, import_react3.useEffect)(() => {\n const domNode = containerReference.current;\n if (domNode === null) {\n return;\n }\n if (parentWidget === void 0) {\n throw new Error(\n \"Your plugin have a bug: `parentWidget` is undefined, you should use `<ParentWidgetContext value={props.parentWidget}>`, see tw-react for document.\"\n );\n }\n if (options?.skip === true) {\n return;\n }\n const id = String(Math.random());\n const transcludeWidgetNode = $tw.wiki.makeTranscludeWidget(tiddlerTitle, {\n document,\n parentWidget,\n recursionMarker: \"yes\",\n mode: \"block\",\n importPageMacros: true,\n variables: { \"use-widget-id\": id }\n });\n const tiddlerContainer = document.createElement(\"div\");\n domNode.append(tiddlerContainer);\n transcludeWidgetNode.render(tiddlerContainer, null);\n parentWidget.children.push(transcludeWidgetNode);\n return () => {\n parentWidget.children = parentWidget.children.filter((child) => child.getVariable(\"use-widget-id\") !== id);\n if (domNode === null) {\n return;\n }\n domNode.textContent = \"\";\n };\n }, [tiddlerTitle, containerReference, parentWidget, options?.skip]);\n}\n\n// src/hooks/useWidget.ts\nvar import_react4 = require(\"react\");\nfunction useWidget(parseTreeNode, containerReference, options) {\n const parentWidget = (0, import_react4.useContext)(ParentWidgetContext);\n (0, import_react4.useEffect)(() => {\n const domNode = containerReference.current;\n if (domNode === null) {\n return;\n }\n if (parentWidget === void 0) {\n throw new Error(\n \"Your plugin have a bug: `parentWidget` is undefined, you should use `<ParentWidgetContext value={props.parentWidget}>`, see tw-react for document.\"\n );\n }\n if (options?.skip === true) {\n return;\n }\n const id = String(Math.random());\n const newWidgetNode = parentWidget.makeChildWidget(parseTreeNode, { variables: { \"use-widget-id\": id } });\n newWidgetNode.render(domNode, null);\n parentWidget.children.push(newWidgetNode);\n return () => {\n parentWidget.children = parentWidget.children.filter((child) => child.getVariable(\"use-widget-id\") !== id);\n if (domNode === null) {\n return;\n }\n domNode.textContent = \"\";\n };\n }, [parseTreeNode, containerReference, parentWidget, options?.skip]);\n}\n\n// src/index.ts\nexports.ParentWidgetContext = ParentWidgetContext;\nexports.useFilter = useFilter;\nexports.useRenderTiddler = useRenderTiddler;\nexports.useWidget = useWidget;\n","creator":"LinOnetwo","type":"application/javascript","module-type":"library"},"react-dom/client":{"title":"react-dom/client","text":"\"use strict\";var Scheduler=require(\"react-scheduler.js\"),React=require(\"react\"),ReactDOM=require(\"react-dom\");function formatProdErrorMessage(e){var t=\"https://react.dev/errors/\"+e;if(1<arguments.length){t+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n])}return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function isValidContainer(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var REACT_LEGACY_ELEMENT_TYPE=Symbol.for(\"react.element\"),REACT_ELEMENT_TYPE=Symbol.for(\"react.transitional.element\"),REACT_PORTAL_TYPE=Symbol.for(\"react.portal\"),REACT_FRAGMENT_TYPE=Symbol.for(\"react.fragment\"),REACT_STRICT_MODE_TYPE=Symbol.for(\"react.strict_mode\"),REACT_PROFILER_TYPE=Symbol.for(\"react.profiler\"),REACT_PROVIDER_TYPE=Symbol.for(\"react.provider\"),REACT_CONSUMER_TYPE=Symbol.for(\"react.consumer\"),REACT_CONTEXT_TYPE=Symbol.for(\"react.context\"),REACT_FORWARD_REF_TYPE=Symbol.for(\"react.forward_ref\"),REACT_SUSPENSE_TYPE=Symbol.for(\"react.suspense\"),REACT_SUSPENSE_LIST_TYPE=Symbol.for(\"react.suspense_list\"),REACT_MEMO_TYPE=Symbol.for(\"react.memo\"),REACT_LAZY_TYPE=Symbol.for(\"react.lazy\");Symbol.for(\"react.scope\"),Symbol.for(\"react.debug_trace_mode\");var REACT_OFFSCREEN_TYPE=Symbol.for(\"react.offscreen\");Symbol.for(\"react.legacy_hidden\"),Symbol.for(\"react.tracing_marker\");var REACT_MEMO_CACHE_SENTINEL=Symbol.for(\"react.memo_cache_sentinel\"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=MAYBE_ITERATOR_SYMBOL&&e[MAYBE_ITERATOR_SYMBOL]||e[\"@@iterator\"])?e:null}var REACT_CLIENT_REFERENCE=Symbol.for(\"react.client.reference\");function getComponentNameFromType(e){if(null==e)return null;if(\"function\"==typeof e)return e.$$typeof===REACT_CLIENT_REFERENCE?null:e.displayName||e.name||null;if(\"string\"==typeof e)return e;switch(e){case REACT_FRAGMENT_TYPE:return\"Fragment\";case REACT_PORTAL_TYPE:return\"Portal\";case REACT_PROFILER_TYPE:return\"Profiler\";case REACT_STRICT_MODE_TYPE:return\"StrictMode\";case REACT_SUSPENSE_TYPE:return\"Suspense\";case REACT_SUSPENSE_LIST_TYPE:return\"SuspenseList\"}if(\"object\"==typeof e)switch(e.$$typeof){case REACT_CONTEXT_TYPE:return(e.displayName||\"Context\")+\".Provider\";case REACT_CONSUMER_TYPE:return(e._context.displayName||\"Context\")+\".Consumer\";case REACT_FORWARD_REF_TYPE:var t=e.render;return(e=e.displayName)||(e=\"\"!==(e=t.displayName||t.name||\"\")?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case REACT_MEMO_TYPE:return null!==(t=e.displayName||null)?t:getComponentNameFromType(e.type)||\"Memo\";case REACT_LAZY_TYPE:t=e._payload,e=e._init;try{return getComponentNameFromType(e(t))}catch(e){}}return null}var prefix,suffix,ReactSharedInternals=React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,assign=Object.assign;function describeBuiltInComponentFrame(e){if(void 0===prefix)try{throw Error()}catch(e){var t=e.stack.trim().match(/\\n( *(at )?)/);prefix=t&&t[1]||\"\",suffix=-1<e.stack.indexOf(\"\\n at\")?\" (<anonymous>)\":-1<e.stack.indexOf(\"@\")?\"@unknown:0:0\":\"\"}return\"\\n\"+prefix+e+suffix}var reentry=!1;function describeNativeComponentFrame(e,t){if(!e||reentry)return\"\";reentry=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,\"props\",{set:function(){throw Error()}}),\"object\"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&\"function\"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&\"string\"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=\"DetermineComponentFrameRoot\";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,\"name\");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,\"name\",{value:\"DetermineComponentFrameRoot\"});var a=r.DetermineComponentFrameRoot(),s=a[0],l=a[1];if(s&&l){var i=s.split(\"\\n\"),u=l.split(\"\\n\");for(o=r=0;r<i.length&&!i[r].includes(\"DetermineComponentFrameRoot\");)r++;for(;o<u.length&&!u[o].includes(\"DetermineComponentFrameRoot\");)o++;if(r===i.length||o===u.length)for(r=i.length-1,o=u.length-1;1<=r&&0<=o&&i[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(i[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||i[r]!==u[o]){var c=\"\\n\"+i[r].replace(\" at new \",\" at \");return e.displayName&&c.includes(\"<anonymous>\")&&(c=c.replace(\"<anonymous>\",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{reentry=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:\"\")?describeBuiltInComponentFrame(n):\"\"}function describeFiber(e){switch(e.tag){case 26:case 27:case 5:return describeBuiltInComponentFrame(e.type);case 16:return describeBuiltInComponentFrame(\"Lazy\");case 13:return describeBuiltInComponentFrame(\"Suspense\");case 19:return describeBuiltInComponentFrame(\"SuspenseList\");case 0:case 15:return e=describeNativeComponentFrame(e.type,!1);case 11:return e=describeNativeComponentFrame(e.type.render,!1);case 1:return e=describeNativeComponentFrame(e.type,!0);default:return\"\"}}function getStackByFiberInDevAndProd(e){try{var t=\"\";do{t+=describeFiber(e),e=e.return}while(e);return t}catch(e){return\"\\nError generating stack: \"+e.message+\"\\n\"+e.stack}}function getNearestMountedFiber(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function getSuspenseInstanceFromFiber(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function assertIsMounted(e){if(getNearestMountedFiber(e)!==e)throw Error(formatProdErrorMessage(188))}function findCurrentFiberUsingSlowPath(e){var t=e.alternate;if(!t){if(null===(t=getNearestMountedFiber(e)))throw Error(formatProdErrorMessage(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return assertIsMounted(o),e;if(a===r)return assertIsMounted(o),t;a=a.sibling}throw Error(formatProdErrorMessage(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(formatProdErrorMessage(189))}}if(n.alternate!==r)throw Error(formatProdErrorMessage(190))}if(3!==n.tag)throw Error(formatProdErrorMessage(188));return n.stateNode.current===n?e:t}function findCurrentHostFiberImpl(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=findCurrentHostFiberImpl(e)))return t;e=e.sibling}return null}var isArrayImpl=Array.isArray,ReactDOMSharedInternals=ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,sharedNotPendingObject={pending:!1,data:null,method:null,action:null},valueStack=[],index=-1;function createCursor(e){return{current:e}}function pop(e){0>index||(e.current=valueStack[index],valueStack[index]=null,index--)}function push(e,t){valueStack[++index]=e.current,e.current=t}var contextStackCursor=createCursor(null),contextFiberStackCursor=createCursor(null),rootInstanceStackCursor=createCursor(null),hostTransitionProviderCursor=createCursor(null);function pushHostContainer(e,t){switch(push(rootInstanceStackCursor,t),push(contextFiberStackCursor,e),push(contextStackCursor,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?getOwnHostContext(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=getChildHostContextProd(e=getOwnHostContext(e),t);else switch(t){case\"svg\":t=1;break;case\"math\":t=2;break;default:t=0}}pop(contextStackCursor),push(contextStackCursor,t)}function popHostContainer(){pop(contextStackCursor),pop(contextFiberStackCursor),pop(rootInstanceStackCursor)}function pushHostContext(e){null!==e.memoizedState&&push(hostTransitionProviderCursor,e);var t=contextStackCursor.current,n=getChildHostContextProd(t,e.type);t!==n&&(push(contextFiberStackCursor,e),push(contextStackCursor,n))}function popHostContext(e){contextFiberStackCursor.current===e&&(pop(contextStackCursor),pop(contextFiberStackCursor)),hostTransitionProviderCursor.current===e&&(pop(hostTransitionProviderCursor),HostTransitionContext._currentValue=sharedNotPendingObject)}var hasOwnProperty=Object.prototype.hasOwnProperty,scheduleCallback$3=Scheduler.unstable_scheduleCallback,cancelCallback$1=Scheduler.unstable_cancelCallback,shouldYield=Scheduler.unstable_shouldYield,requestPaint=Scheduler.unstable_requestPaint,now=Scheduler.unstable_now,getCurrentPriorityLevel=Scheduler.unstable_getCurrentPriorityLevel,ImmediatePriority=Scheduler.unstable_ImmediatePriority,UserBlockingPriority=Scheduler.unstable_UserBlockingPriority,NormalPriority$1=Scheduler.unstable_NormalPriority,LowPriority=Scheduler.unstable_LowPriority,IdlePriority=Scheduler.unstable_IdlePriority,log$1=Scheduler.log,unstable_setDisableYieldValue=Scheduler.unstable_setDisableYieldValue,rendererID=null,injectedHook=null;function onCommitRoot(e){if(injectedHook&&\"function\"==typeof injectedHook.onCommitFiberRoot)try{injectedHook.onCommitFiberRoot(rendererID,e,void 0,128==(128&e.current.flags))}catch(e){}}function setIsStrictModeForDevtools(e){if(\"function\"==typeof log$1&&unstable_setDisableYieldValue(e),injectedHook&&\"function\"==typeof injectedHook.setStrictMode)try{injectedHook.setStrictMode(rendererID,e)}catch(e){}}var clz32=Math.clz32?Math.clz32:clz32Fallback,log=Math.log,LN2=Math.LN2;function clz32Fallback(e){return 0===(e>>>=0)?32:31-(log(e)/LN2|0)|0}var nextTransitionLane=128,nextRetryLane=4194304;function getHighestPriorityLanes(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function getNextLanes(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,s=e.warmLanes;e=0!==e.finishedLanes;var l=134217727&n;return 0!==l?0!==(n=l&~o)?r=getHighestPriorityLanes(n):0!==(a&=l)?r=getHighestPriorityLanes(a):e||0!==(s=l&~s)&&(r=getHighestPriorityLanes(s)):0!==(l=n&~o)?r=getHighestPriorityLanes(l):0!==a?r=getHighestPriorityLanes(a):e||0!==(s=n&~s)&&(r=getHighestPriorityLanes(s)),0===r?0:0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(s=t&-t)||32===o&&0!=(4194176&s))?t:r}function checkIfRootIsPrerendering(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function computeExpirationTime(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:default:return-1}}function claimNextTransitionLane(){var e=nextTransitionLane;return 0==(4194176&(nextTransitionLane<<=1))&&(nextTransitionLane=128),e}function claimNextRetryLane(){var e=nextRetryLane;return 0==(62914560&(nextRetryLane<<=1))&&(nextRetryLane=4194304),e}function createLaneMap(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function markRootUpdated$1(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function markRootFinished(e,t,n,r,o,a){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,i=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-clz32(n),d=1<<c;l[c]=0,i[c]=-1;var p=u[c];if(null!==p)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&markSpawnedDeferredLane(e,r,0),0!==a&&0===o&&0!==e.tag&&(e.suspendedLanes|=a&~(s&~t))}function markSpawnedDeferredLane(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-clz32(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function markRootEntangled(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-clz32(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function lanesToEventPriority(e){return 2<(e&=-e)?8<e?0!=(134217727&e)?32:268435456:8:2}function resolveUpdatePriority(){var e=ReactDOMSharedInternals.p;return 0!==e?e:void 0===(e=window.event)?32:getEventPriority(e.type)}function runWithPriority(e,t){var n=ReactDOMSharedInternals.p;try{return ReactDOMSharedInternals.p=e,t()}finally{ReactDOMSharedInternals.p=n}}var randomKey=Math.random().toString(36).slice(2),internalInstanceKey=\"__reactFiber$\"+randomKey,internalPropsKey=\"__reactProps$\"+randomKey,internalContainerInstanceKey=\"__reactContainer$\"+randomKey,internalEventHandlersKey=\"__reactEvents$\"+randomKey,internalEventHandlerListenersKey=\"__reactListeners$\"+randomKey,internalEventHandlesSetKey=\"__reactHandles$\"+randomKey,internalRootNodeResourcesKey=\"__reactResources$\"+randomKey,internalHoistableMarker=\"__reactMarker$\"+randomKey;function detachDeletedInstance(e){delete e[internalInstanceKey],delete e[internalPropsKey],delete e[internalEventHandlersKey],delete e[internalEventHandlerListenersKey],delete e[internalEventHandlesSetKey]}function getClosestInstanceFromNode(e){var t=e[internalInstanceKey];if(t)return t;for(var n=e.parentNode;n;){if(t=n[internalContainerInstanceKey]||n[internalInstanceKey]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=getParentSuspenseInstance(e);null!==e;){if(n=e[internalInstanceKey])return n;e=getParentSuspenseInstance(e)}return t}n=(e=n).parentNode}return null}function getInstanceFromNode(e){if(e=e[internalInstanceKey]||e[internalContainerInstanceKey]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function getNodeFromInstance(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(formatProdErrorMessage(33))}function getResourcesFromRoot(e){var t=e[internalRootNodeResourcesKey];return t||(t=e[internalRootNodeResourcesKey]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function markNodeAsHoistable(e){e[internalHoistableMarker]=!0}var allNativeEvents=new Set,registrationNameDependencies={};function registerTwoPhaseEvent(e,t){registerDirectEvent(e,t),registerDirectEvent(e+\"Capture\",t)}function registerDirectEvent(e,t){for(registrationNameDependencies[e]=t,e=0;e<t.length;e++)allNativeEvents.add(t[e])}var canUseDOM=!(\"undefined\"==typeof window||void 0===window.document||void 0===window.document.createElement),VALID_ATTRIBUTE_NAME_REGEX=RegExp(\"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"),illegalAttributeNameCache={},validatedAttributeNameCache={};function isAttributeNameSafe(e){return!!hasOwnProperty.call(validatedAttributeNameCache,e)||!hasOwnProperty.call(illegalAttributeNameCache,e)&&(VALID_ATTRIBUTE_NAME_REGEX.test(e)?validatedAttributeNameCache[e]=!0:(illegalAttributeNameCache[e]=!0,!1))}function setValueForAttribute(e,t,n){if(isAttributeNameSafe(t))if(null===n)e.removeAttribute(t);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":return void e.removeAttribute(t);case\"boolean\":var r=t.toLowerCase().slice(0,5);if(\"data-\"!==r&&\"aria-\"!==r)return void e.removeAttribute(t)}e.setAttribute(t,\"\"+n)}}function setValueForKnownAttribute(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return void e.removeAttribute(t)}e.setAttribute(t,\"\"+n)}}function setValueForNamespacedAttribute(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case\"undefined\":case\"function\":case\"symbol\":case\"boolean\":return void e.removeAttribute(n)}e.setAttributeNS(t,n,\"\"+r)}}function getToStringValue(e){switch(typeof e){case\"bigint\":case\"boolean\":case\"number\":case\"string\":case\"undefined\":case\"object\":return e;default:return\"\"}}function isCheckable(e){var t=e.type;return(e=e.nodeName)&&\"input\"===e.toLowerCase()&&(\"checkbox\"===t||\"radio\"===t)}function trackValueOnNode(e){var t=isCheckable(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&\"function\"==typeof n.get&&\"function\"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=\"\"+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=\"\"+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function track(e){e._valueTracker||(e._valueTracker=trackValueOnNode(e))}function updateValueIfChanged(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=isCheckable(e)?e.checked?\"true\":\"false\":e.value),(e=r)!==n&&(t.setValue(e),!0)}function getActiveElement(e){if(void 0===(e=e||(\"undefined\"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var escapeSelectorAttributeValueInsideDoubleQuotesRegex=/[\\n\"\\\\]/g;function escapeSelectorAttributeValueInsideDoubleQuotes(e){return e.replace(escapeSelectorAttributeValueInsideDoubleQuotesRegex,function(e){return\"\\\\\"+e.charCodeAt(0).toString(16)+\" \"})}function updateInput(e,t,n,r,o,a,s,l){e.name=\"\",null!=s&&\"function\"!=typeof s&&\"symbol\"!=typeof s&&\"boolean\"!=typeof s?e.type=s:e.removeAttribute(\"type\"),null!=t?\"number\"===s?(0===t&&\"\"===e.value||e.value!=t)&&(e.value=\"\"+getToStringValue(t)):e.value!==\"\"+getToStringValue(t)&&(e.value=\"\"+getToStringValue(t)):\"submit\"!==s&&\"reset\"!==s||e.removeAttribute(\"value\"),null!=t?setDefaultValue(e,s,getToStringValue(t)):null!=n?setDefaultValue(e,s,getToStringValue(n)):null!=r&&e.removeAttribute(\"value\"),null==o&&null!=a&&(e.defaultChecked=!!a),null!=o&&(e.checked=o&&\"function\"!=typeof o&&\"symbol\"!=typeof o),null!=l&&\"function\"!=typeof l&&\"symbol\"!=typeof l&&\"boolean\"!=typeof l?e.name=\"\"+getToStringValue(l):e.removeAttribute(\"name\")}function initInput(e,t,n,r,o,a,s,l){if(null!=a&&\"function\"!=typeof a&&\"symbol\"!=typeof a&&\"boolean\"!=typeof a&&(e.type=a),null!=t||null!=n){if(!(\"submit\"!==a&&\"reset\"!==a||void 0!==t&&null!==t))return;n=null!=n?\"\"+getToStringValue(n):\"\",t=null!=t?\"\"+getToStringValue(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=\"function\"!=typeof(r=null!=r?r:o)&&\"symbol\"!=typeof r&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,null!=s&&\"function\"!=typeof s&&\"symbol\"!=typeof s&&\"boolean\"!=typeof s&&(e.name=s)}function setDefaultValue(e,t,n){\"number\"===t&&getActiveElement(e.ownerDocument)===e||e.defaultValue===\"\"+n||(e.defaultValue=\"\"+n)}function updateOptions(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t[\"$\"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=\"\"+getToStringValue(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function updateTextarea(e,t,n){null==t||((t=\"\"+getToStringValue(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?\"\"+getToStringValue(n):\"\":e.defaultValue!==t&&(e.defaultValue=t)}function initTextarea(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(formatProdErrorMessage(92));if(isArrayImpl(r)){if(1<r.length)throw Error(formatProdErrorMessage(93));r=r[0]}n=r}null==n&&(n=\"\"),t=n}n=getToStringValue(t),e.defaultValue=n,(r=e.textContent)===n&&\"\"!==r&&null!==r&&(e.value=r)}function setTextContent(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var unitlessNumbers=new Set(\"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp\".split(\" \"));function setValueForStyle(e,t,n){var r=0===t.indexOf(\"--\");null==n||\"boolean\"==typeof n||\"\"===n?r?e.setProperty(t,\"\"):\"float\"===t?e.cssFloat=\"\":e[t]=\"\":r?e.setProperty(t,n):\"number\"!=typeof n||0===n||unitlessNumbers.has(t)?\"float\"===t?e.cssFloat=n:e[t]=(\"\"+n).trim():e[t]=n+\"px\"}function setValueForStyles(e,t,n){if(null!=t&&\"object\"!=typeof t)throw Error(formatProdErrorMessage(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf(\"--\")?e.setProperty(r,\"\"):\"float\"===r?e.cssFloat=\"\":e[r]=\"\");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&setValueForStyle(e,o,r)}else for(var a in t)t.hasOwnProperty(a)&&setValueForStyle(e,a,t[a])}function isCustomElement(e){if(-1===e.indexOf(\"-\"))return!1;switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var aliases=new Map([[\"acceptCharset\",\"accept-charset\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"],[\"crossOrigin\",\"crossorigin\"],[\"accentHeight\",\"accent-height\"],[\"alignmentBaseline\",\"alignment-baseline\"],[\"arabicForm\",\"arabic-form\"],[\"baselineShift\",\"baseline-shift\"],[\"capHeight\",\"cap-height\"],[\"clipPath\",\"clip-path\"],[\"clipRule\",\"clip-rule\"],[\"colorInterpolation\",\"color-interpolation\"],[\"colorInterpolationFilters\",\"color-interpolation-filters\"],[\"colorProfile\",\"color-profile\"],[\"colorRendering\",\"color-rendering\"],[\"dominantBaseline\",\"dominant-baseline\"],[\"enableBackground\",\"enable-background\"],[\"fillOpacity\",\"fill-opacity\"],[\"fillRule\",\"fill-rule\"],[\"floodColor\",\"flood-color\"],[\"floodOpacity\",\"flood-opacity\"],[\"fontFamily\",\"font-family\"],[\"fontSize\",\"font-size\"],[\"fontSizeAdjust\",\"font-size-adjust\"],[\"fontStretch\",\"font-stretch\"],[\"fontStyle\",\"font-style\"],[\"fontVariant\",\"font-variant\"],[\"fontWeight\",\"font-weight\"],[\"glyphName\",\"glyph-name\"],[\"glyphOrientationHorizontal\",\"glyph-orientation-horizontal\"],[\"glyphOrientationVertical\",\"glyph-orientation-vertical\"],[\"horizAdvX\",\"horiz-adv-x\"],[\"horizOriginX\",\"horiz-origin-x\"],[\"imageRendering\",\"image-rendering\"],[\"letterSpacing\",\"letter-spacing\"],[\"lightingColor\",\"lighting-color\"],[\"markerEnd\",\"marker-end\"],[\"markerMid\",\"marker-mid\"],[\"markerStart\",\"marker-start\"],[\"overlinePosition\",\"overline-position\"],[\"overlineThickness\",\"overline-thickness\"],[\"paintOrder\",\"paint-order\"],[\"panose-1\",\"panose-1\"],[\"pointerEvents\",\"pointer-events\"],[\"renderingIntent\",\"rendering-intent\"],[\"shapeRendering\",\"shape-rendering\"],[\"stopColor\",\"stop-color\"],[\"stopOpacity\",\"stop-opacity\"],[\"strikethroughPosition\",\"strikethrough-position\"],[\"strikethroughThickness\",\"strikethrough-thickness\"],[\"strokeDasharray\",\"stroke-dasharray\"],[\"strokeDashoffset\",\"stroke-dashoffset\"],[\"strokeLinecap\",\"stroke-linecap\"],[\"strokeLinejoin\",\"stroke-linejoin\"],[\"strokeMiterlimit\",\"stroke-miterlimit\"],[\"strokeOpacity\",\"stroke-opacity\"],[\"strokeWidth\",\"stroke-width\"],[\"textAnchor\",\"text-anchor\"],[\"textDecoration\",\"text-decoration\"],[\"textRendering\",\"text-rendering\"],[\"transformOrigin\",\"transform-origin\"],[\"underlinePosition\",\"underline-position\"],[\"underlineThickness\",\"underline-thickness\"],[\"unicodeBidi\",\"unicode-bidi\"],[\"unicodeRange\",\"unicode-range\"],[\"unitsPerEm\",\"units-per-em\"],[\"vAlphabetic\",\"v-alphabetic\"],[\"vHanging\",\"v-hanging\"],[\"vIdeographic\",\"v-ideographic\"],[\"vMathematical\",\"v-mathematical\"],[\"vectorEffect\",\"vector-effect\"],[\"vertAdvY\",\"vert-adv-y\"],[\"vertOriginX\",\"vert-origin-x\"],[\"vertOriginY\",\"vert-origin-y\"],[\"wordSpacing\",\"word-spacing\"],[\"writingMode\",\"writing-mode\"],[\"xmlnsXlink\",\"xmlns:xlink\"],[\"xHeight\",\"x-height\"]]),isJavaScriptProtocol=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;function sanitizeURL(e){return isJavaScriptProtocol.test(\"\"+e)?\"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\":e}var currentReplayingEvent=null;function getEventTarget(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var restoreTarget=null,restoreQueue=null;function restoreStateOfTarget(e){var t=getInstanceFromNode(e);if(t&&(e=t.stateNode)){var n=e[internalPropsKey]||null;e:switch(e=t.stateNode,t.type){case\"input\":if(updateInput(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,\"radio\"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(\"\"+t)+'\"][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[internalPropsKey]||null;if(!o)throw Error(formatProdErrorMessage(90));updateInput(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&updateValueIfChanged(r)}break e;case\"textarea\":updateTextarea(e,n.value,n.defaultValue);break e;case\"select\":null!=(t=n.value)&&updateOptions(e,!!n.multiple,t,!1)}}}var isInsideEventHandler=!1;function batchedUpdates$1(e,t,n){if(isInsideEventHandler)return e(t,n);isInsideEventHandler=!0;try{return e(t)}finally{if(isInsideEventHandler=!1,(null!==restoreTarget||null!==restoreQueue)&&(flushSyncWork$1(),restoreTarget&&(t=restoreTarget,e=restoreQueue,restoreQueue=restoreTarget=null,restoreStateOfTarget(t),e)))for(t=0;t<e.length;t++)restoreStateOfTarget(e[t])}}function getListener(e,t){var n=e.stateNode;if(null===n)return null;var r=n[internalPropsKey]||null;if(null===r)return null;n=r[t];e:switch(t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(r=!(\"button\"===(e=e.type)||\"input\"===e||\"select\"===e||\"textarea\"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&\"function\"!=typeof n)throw Error(formatProdErrorMessage(231,t,typeof n));return n}var passiveBrowserEventsSupported=!1;if(canUseDOM)try{var options={};Object.defineProperty(options,\"passive\",{get:function(){passiveBrowserEventsSupported=!0}}),window.addEventListener(\"test\",options,options),window.removeEventListener(\"test\",options,options)}catch(e){passiveBrowserEventsSupported=!1}var root=null,startText=null,fallbackText=null;function getData(){if(fallbackText)return fallbackText;var e,t,n=startText,r=n.length,o=\"value\"in root?root.value:root.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===o[a-t];t++);return fallbackText=o.slice(e,1<t?1-t:void 0)}function getEventCharCode(e){var t=e.keyCode;return\"charCode\"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function functionThatReturnsTrue(){return!0}function functionThatReturnsFalse(){return!1}function createSyntheticEvent(e){function t(t,n,r,o,a){for(var s in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?functionThatReturnsTrue:functionThatReturnsFalse,this.isPropagationStopped=functionThatReturnsFalse,this}return assign(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():\"unknown\"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=functionThatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():\"unknown\"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=functionThatReturnsTrue)},persist:function(){},isPersistent:functionThatReturnsTrue}),t}var lastMovementX,lastMovementY,lastMouseEvent,EventInterface={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},SyntheticEvent=createSyntheticEvent(EventInterface),UIEventInterface=assign({},EventInterface,{view:0,detail:0}),SyntheticUIEvent=createSyntheticEvent(UIEventInterface),MouseEventInterface=assign({},UIEventInterface,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:getEventModifierState,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==lastMouseEvent&&(lastMouseEvent&&\"mousemove\"===e.type?(lastMovementX=e.screenX-lastMouseEvent.screenX,lastMovementY=e.screenY-lastMouseEvent.screenY):lastMovementY=lastMovementX=0,lastMouseEvent=e),lastMovementX)},movementY:function(e){return\"movementY\"in e?e.movementY:lastMovementY}}),SyntheticMouseEvent=createSyntheticEvent(MouseEventInterface),DragEventInterface=assign({},MouseEventInterface,{dataTransfer:0}),SyntheticDragEvent=createSyntheticEvent(DragEventInterface),FocusEventInterface=assign({},UIEventInterface,{relatedTarget:0}),SyntheticFocusEvent=createSyntheticEvent(FocusEventInterface),AnimationEventInterface=assign({},EventInterface,{animationName:0,elapsedTime:0,pseudoElement:0}),SyntheticAnimationEvent=createSyntheticEvent(AnimationEventInterface),ClipboardEventInterface=assign({},EventInterface,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}}),SyntheticClipboardEvent=createSyntheticEvent(ClipboardEventInterface),CompositionEventInterface=assign({},EventInterface,{data:0}),SyntheticCompositionEvent=createSyntheticEvent(CompositionEventInterface),normalizeKey={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},translateToKey={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},modifierKeyToProp={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function modifierStateGetter(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=modifierKeyToProp[e])&&!!t[e]}function getEventModifierState(){return modifierStateGetter}var KeyboardEventInterface=assign({},UIEventInterface,{key:function(e){if(e.key){var t=normalizeKey[e.key]||e.key;if(\"Unidentified\"!==t)return t}return\"keypress\"===e.type?13===(e=getEventCharCode(e))?\"Enter\":String.fromCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?translateToKey[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:getEventModifierState,charCode:function(e){return\"keypress\"===e.type?getEventCharCode(e):0},keyCode:function(e){return\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0},which:function(e){return\"keypress\"===e.type?getEventCharCode(e):\"keydown\"===e.type||\"keyup\"===e.type?e.keyCode:0}}),SyntheticKeyboardEvent=createSyntheticEvent(KeyboardEventInterface),PointerEventInterface=assign({},MouseEventInterface,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SyntheticPointerEvent=createSyntheticEvent(PointerEventInterface),TouchEventInterface=assign({},UIEventInterface,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:getEventModifierState}),SyntheticTouchEvent=createSyntheticEvent(TouchEventInterface),TransitionEventInterface=assign({},EventInterface,{propertyName:0,elapsedTime:0,pseudoElement:0}),SyntheticTransitionEvent=createSyntheticEvent(TransitionEventInterface),WheelEventInterface=assign({},MouseEventInterface,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),SyntheticWheelEvent=createSyntheticEvent(WheelEventInterface),ToggleEventInterface=assign({},EventInterface,{newState:0,oldState:0}),SyntheticToggleEvent=createSyntheticEvent(ToggleEventInterface),END_KEYCODES=[9,13,27,32],canUseCompositionEvent=canUseDOM&&\"CompositionEvent\"in window,documentMode=null;canUseDOM&&\"documentMode\"in document&&(documentMode=document.documentMode);var canUseTextInputEvent=canUseDOM&&\"TextEvent\"in window&&!documentMode,useFallbackCompositionData=canUseDOM&&(!canUseCompositionEvent||documentMode&&8<documentMode&&11>=documentMode),SPACEBAR_CHAR=String.fromCharCode(32),hasSpaceKeypress=!1;function isFallbackCompositionEnd(e,t){switch(e){case\"keyup\":return-1!==END_KEYCODES.indexOf(t.keyCode);case\"keydown\":return 229!==t.keyCode;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function getDataFromCustomEvent(e){return\"object\"==typeof(e=e.detail)&&\"data\"in e?e.data:null}var isComposing=!1;function getNativeBeforeInputChars(e,t){switch(e){case\"compositionend\":return getDataFromCustomEvent(t);case\"keypress\":return 32!==t.which?null:(hasSpaceKeypress=!0,SPACEBAR_CHAR);case\"textInput\":return(e=t.data)===SPACEBAR_CHAR&&hasSpaceKeypress?null:e;default:return null}}function getFallbackBeforeInputChars(e,t){if(isComposing)return\"compositionend\"===e||!canUseCompositionEvent&&isFallbackCompositionEnd(e,t)?(e=getData(),fallbackText=startText=root=null,isComposing=!1,e):null;switch(e){case\"paste\":return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return useFallbackCompositionData&&\"ko\"!==t.locale?null:t.data;default:return null}}var supportedInputTypes={color:!0,date:!0,datetime:!0,\"datetime-local\":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function isTextInputElement(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return\"input\"===t?!!supportedInputTypes[e.type]:\"textarea\"===t}function createAndAccumulateChangeEvent(e,t,n,r){restoreTarget?restoreQueue?restoreQueue.push(r):restoreQueue=[r]:restoreTarget=r,0<(t=accumulateTwoPhaseListeners(t,\"onChange\")).length&&(n=new SyntheticEvent(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var activeElement$1=null,activeElementInst$1=null;function runEventInBatch(e){processDispatchQueue(e,0)}function getInstIfValueChanged(e){if(updateValueIfChanged(getNodeFromInstance(e)))return e}function getTargetInstForChangeEvent(e,t){if(\"change\"===e)return t}var isInputEventSupported=!1;if(canUseDOM){var JSCompiler_inline_result$jscomp$283;if(canUseDOM){var isSupported$jscomp$inline_418=\"oninput\"in document;if(!isSupported$jscomp$inline_418){var element$jscomp$inline_419=document.createElement(\"div\");element$jscomp$inline_419.setAttribute(\"oninput\",\"return;\"),isSupported$jscomp$inline_418=\"function\"==typeof element$jscomp$inline_419.oninput}JSCompiler_inline_result$jscomp$283=isSupported$jscomp$inline_418}else JSCompiler_inline_result$jscomp$283=!1;isInputEventSupported=JSCompiler_inline_result$jscomp$283&&(!document.documentMode||9<document.documentMode)}function stopWatchingForValueChange(){activeElement$1&&(activeElement$1.detachEvent(\"onpropertychange\",handlePropertyChange),activeElementInst$1=activeElement$1=null)}function handlePropertyChange(e){if(\"value\"===e.propertyName&&getInstIfValueChanged(activeElementInst$1)){var t=[];createAndAccumulateChangeEvent(t,activeElementInst$1,e,getEventTarget(e)),batchedUpdates$1(runEventInBatch,t)}}function handleEventsForInputEventPolyfill(e,t,n){\"focusin\"===e?(stopWatchingForValueChange(),activeElementInst$1=n,(activeElement$1=t).attachEvent(\"onpropertychange\",handlePropertyChange)):\"focusout\"===e&&stopWatchingForValueChange()}function getTargetInstForInputEventPolyfill(e){if(\"selectionchange\"===e||\"keyup\"===e||\"keydown\"===e)return getInstIfValueChanged(activeElementInst$1)}function getTargetInstForClickEvent(e,t){if(\"click\"===e)return getInstIfValueChanged(t)}function getTargetInstForInputOrChangeEvent(e,t){if(\"input\"===e||\"change\"===e)return getInstIfValueChanged(t)}function is(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var objectIs=\"function\"==typeof Object.is?Object.is:is;function shallowEqual(e,t){if(objectIs(e,t))return!0;if(\"object\"!=typeof e||null===e||\"object\"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!hasOwnProperty.call(t,o)||!objectIs(e[o],t[o]))return!1}return!0}function getLeafNode(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function getNodeForCharacterOffset(e,t){var n,r=getLeafNode(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=getLeafNode(r)}}function containsNode(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?containsNode(e,t.parentNode):\"contains\"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function getActiveElementDeep(e){for(var t=getActiveElement((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n=\"string\"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=getActiveElement((e=t.contentWindow).document)}return t}function hasSelectionCapabilities(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(\"input\"===t&&(\"text\"===e.type||\"search\"===e.type||\"tel\"===e.type||\"url\"===e.type||\"password\"===e.type)||\"textarea\"===t||\"true\"===e.contentEditable)}function restoreSelection(e,t){var n=getActiveElementDeep(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&containsNode(t.ownerDocument.documentElement,t)){if(null!==r&&hasSelectionCapabilities(t))if(e=r.start,void 0===(n=r.end)&&(n=e),\"selectionStart\"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var o=t.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!n.extend&&a>r&&(o=r,r=a,a=o),o=getNodeForCharacterOffset(t,a);var s=getNodeForCharacterOffset(t,r);o&&s&&(1!==n.rangeCount||n.anchorNode!==o.node||n.anchorOffset!==o.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&((e=e.createRange()).setStart(o.node,o.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(\"function\"==typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var skipSelectionChangeEvent=canUseDOM&&\"documentMode\"in document&&11>=document.documentMode,activeElement=null,activeElementInst=null,lastSelection=null,mouseDown=!1;function constructSelectEvent(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;mouseDown||null==activeElement||activeElement!==getActiveElement(r)||(\"selectionStart\"in(r=activeElement)&&hasSelectionCapabilities(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lastSelection&&shallowEqual(lastSelection,r)||(lastSelection=r,0<(r=accumulateTwoPhaseListeners(activeElementInst,\"onSelect\")).length&&(t=new SyntheticEvent(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=activeElement)))}function makePrefixMap(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var vendorPrefixes={animationend:makePrefixMap(\"Animation\",\"AnimationEnd\"),animationiteration:makePrefixMap(\"Animation\",\"AnimationIteration\"),animationstart:makePrefixMap(\"Animation\",\"AnimationStart\"),transitionrun:makePrefixMap(\"Transition\",\"TransitionRun\"),transitionstart:makePrefixMap(\"Transition\",\"TransitionStart\"),transitioncancel:makePrefixMap(\"Transition\",\"TransitionCancel\"),transitionend:makePrefixMap(\"Transition\",\"TransitionEnd\")},prefixedEventNames={},style={};function getVendorPrefixedEventName(e){if(prefixedEventNames[e])return prefixedEventNames[e];if(!vendorPrefixes[e])return e;var t,n=vendorPrefixes[e];for(t in n)if(n.hasOwnProperty(t)&&t in style)return prefixedEventNames[e]=n[t];return e}canUseDOM&&(style=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete vendorPrefixes.animationend.animation,delete vendorPrefixes.animationiteration.animation,delete vendorPrefixes.animationstart.animation),\"TransitionEvent\"in window||delete vendorPrefixes.transitionend.transition);var ANIMATION_END=getVendorPrefixedEventName(\"animationend\"),ANIMATION_ITERATION=getVendorPrefixedEventName(\"animationiteration\"),ANIMATION_START=getVendorPrefixedEventName(\"animationstart\"),TRANSITION_RUN=getVendorPrefixedEventName(\"transitionrun\"),TRANSITION_START=getVendorPrefixedEventName(\"transitionstart\"),TRANSITION_CANCEL=getVendorPrefixedEventName(\"transitioncancel\"),TRANSITION_END=getVendorPrefixedEventName(\"transitionend\"),topLevelEventsToReactNames=new Map,simpleEventPluginEvents=\"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel\".split(\" \");function registerSimpleEvent(e,t){topLevelEventsToReactNames.set(e,t),registerTwoPhaseEvent(t,[e])}var concurrentQueues=[],concurrentQueuesIndex=0,concurrentlyUpdatedLanes=0;function finishQueueingConcurrentUpdates(){for(var e=concurrentQueuesIndex,t=concurrentlyUpdatedLanes=concurrentQueuesIndex=0;t<e;){var n=concurrentQueues[t];concurrentQueues[t++]=null;var r=concurrentQueues[t];concurrentQueues[t++]=null;var o=concurrentQueues[t];concurrentQueues[t++]=null;var a=concurrentQueues[t];if(concurrentQueues[t++]=null,null!==r&&null!==o){var s=r.pending;null===s?o.next=o:(o.next=s.next,s.next=o),r.pending=o}0!==a&&markUpdateLaneFromFiberToRoot(n,o,a)}}function enqueueUpdate$1(e,t,n,r){concurrentQueues[concurrentQueuesIndex++]=e,concurrentQueues[concurrentQueuesIndex++]=t,concurrentQueues[concurrentQueuesIndex++]=n,concurrentQueues[concurrentQueuesIndex++]=r,concurrentlyUpdatedLanes|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function enqueueConcurrentHookUpdate(e,t,n,r){return enqueueUpdate$1(e,t,n,r),getRootForUpdatedFiber(e)}function enqueueConcurrentRenderForLane(e,t){return enqueueUpdate$1(e,null,null,t),getRootForUpdatedFiber(e)}function markUpdateLaneFromFiberToRoot(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,a=e.return;null!==a;)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(o=!0)),e=a,a=a.return;o&&null!==t&&3===e.tag&&(a=e.stateNode,o=31-clz32(n),null===(e=(a=a.hiddenUpdates)[o])?a[o]=[t]:e.push(t),t.lane=536870912|n)}function getRootForUpdatedFiber(e){if(50<nestedUpdateCount)throw nestedUpdateCount=0,rootWithNestedUpdates=null,Error(formatProdErrorMessage(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var emptyContextObject={},CapturedStacks=new WeakMap;function createCapturedValueAtFiber(e,t){if(\"object\"==typeof e&&null!==e){var n=CapturedStacks.get(e);return void 0!==n?n:(t={value:e,source:t,stack:getStackByFiberInDevAndProd(t)},CapturedStacks.set(e,t),t)}return{value:e,source:t,stack:getStackByFiberInDevAndProd(t)}}var forkStack=[],forkStackIndex=0,treeForkProvider=null,treeForkCount=0,idStack=[],idStackIndex=0,treeContextProvider=null,treeContextId=1,treeContextOverflow=\"\";function pushTreeFork(e,t){forkStack[forkStackIndex++]=treeForkCount,forkStack[forkStackIndex++]=treeForkProvider,treeForkProvider=e,treeForkCount=t}function pushTreeId(e,t,n){idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextProvider=e;var r=treeContextId;e=treeContextOverflow;var o=32-clz32(r)-1;r&=~(1<<o),n+=1;var a=32-clz32(t)+o;if(30<a){var s=o-o%5;a=(r&(1<<s)-1).toString(32),r>>=s,o-=s,treeContextId=1<<32-clz32(t)+o|n<<o|r,treeContextOverflow=a+e}else treeContextId=1<<a|n<<o|r,treeContextOverflow=e}function pushMaterializedTreeId(e){null!==e.return&&(pushTreeFork(e,1),pushTreeId(e,1,0))}function popTreeContext(e){for(;e===treeForkProvider;)treeForkProvider=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null,treeForkCount=forkStack[--forkStackIndex],forkStack[forkStackIndex]=null;for(;e===treeContextProvider;)treeContextProvider=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextOverflow=idStack[--idStackIndex],idStack[idStackIndex]=null,treeContextId=idStack[--idStackIndex],idStack[idStackIndex]=null}var hydrationParentFiber=null,nextHydratableInstance=null,isHydrating=!1,hydrationErrors=null,rootOrSingletonContext=!1,HydrationMismatchException=Error(formatProdErrorMessage(519));function throwOnHydrationMismatch(e){throw queueHydrationError(createCapturedValueAtFiber(Error(formatProdErrorMessage(418,\"\")),e)),HydrationMismatchException}function prepareToHydrateHostInstance(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[internalInstanceKey]=e,t[internalPropsKey]=r,n){case\"dialog\":listenToNonDelegatedEvent(\"cancel\",t),listenToNonDelegatedEvent(\"close\",t);break;case\"iframe\":case\"object\":case\"embed\":listenToNonDelegatedEvent(\"load\",t);break;case\"video\":case\"audio\":for(n=0;n<mediaEventTypes.length;n++)listenToNonDelegatedEvent(mediaEventTypes[n],t);break;case\"source\":listenToNonDelegatedEvent(\"error\",t);break;case\"img\":case\"image\":case\"link\":listenToNonDelegatedEvent(\"error\",t),listenToNonDelegatedEvent(\"load\",t);break;case\"details\":listenToNonDelegatedEvent(\"toggle\",t);break;case\"input\":listenToNonDelegatedEvent(\"invalid\",t),initInput(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),track(t);break;case\"select\":listenToNonDelegatedEvent(\"invalid\",t);break;case\"textarea\":listenToNonDelegatedEvent(\"invalid\",t),initTextarea(t,r.value,r.defaultValue,r.children),track(t)}\"string\"!=typeof(n=r.children)&&\"number\"!=typeof n&&\"bigint\"!=typeof n||t.textContent===\"\"+n||!0===r.suppressHydrationWarning||checkForUnmatchedText(t.textContent,n)?(null!=r.popover&&(listenToNonDelegatedEvent(\"beforetoggle\",t),listenToNonDelegatedEvent(\"toggle\",t)),null!=r.onScroll&&listenToNonDelegatedEvent(\"scroll\",t),null!=r.onScrollEnd&&listenToNonDelegatedEvent(\"scrollend\",t),null!=r.onClick&&(t.onclick=noop$1),t=!0):t=!1,t||throwOnHydrationMismatch(e)}function popToNextHostParent(e){for(hydrationParentFiber=e.return;hydrationParentFiber;)switch(hydrationParentFiber.tag){case 3:case 27:return void(rootOrSingletonContext=!0);case 5:case 13:return void(rootOrSingletonContext=!1);default:hydrationParentFiber=hydrationParentFiber.return}}function popHydrationState(e){if(e!==hydrationParentFiber)return!1;if(!isHydrating)return popToNextHostParent(e),isHydrating=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!(\"form\"!==(t=e.type)&&\"button\"!==t)||shouldSetTextContent(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&nextHydratableInstance&&throwOnHydrationMismatch(e),popToNextHostParent(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(formatProdErrorMessage(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if(\"/$\"===(t=e.data)){if(0===n){nextHydratableInstance=getNextHydratable(e.nextSibling);break e}n--}else\"$\"!==t&&\"$!\"!==t&&\"$?\"!==t||n++;e=e.nextSibling}nextHydratableInstance=null}}else nextHydratableInstance=hydrationParentFiber?getNextHydratable(e.stateNode.nextSibling):null;return!0}function resetHydrationState(){nextHydratableInstance=hydrationParentFiber=null,isHydrating=!1}function queueHydrationError(e){null===hydrationErrors?hydrationErrors=[e]:hydrationErrors.push(e)}var SuspenseException=Error(formatProdErrorMessage(460)),SuspenseyCommitException=Error(formatProdErrorMessage(474)),noopSuspenseyCommitThenable={then:function(){}};function isThenableResolved(e){return\"fulfilled\"===(e=e.status)||\"rejected\"===e}function noop$3(){}function trackUsedThenable(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(noop$3,noop$3),t=n),t.status){case\"fulfilled\":return t.value;case\"rejected\":if((e=t.reason)===SuspenseException)throw Error(formatProdErrorMessage(483));throw e;default:if(\"string\"==typeof t.status)t.then(noop$3,noop$3);else{if(null!==(e=workInProgressRoot)&&100<e.shellSuspendCounter)throw Error(formatProdErrorMessage(482));(e=t).status=\"pending\",e.then(function(e){if(\"pending\"===t.status){var n=t;n.status=\"fulfilled\",n.value=e}},function(e){if(\"pending\"===t.status){var n=t;n.status=\"rejected\",n.reason=e}})}switch(t.status){case\"fulfilled\":return t.value;case\"rejected\":if((e=t.reason)===SuspenseException)throw Error(formatProdErrorMessage(483));throw e}throw suspendedThenable=t,SuspenseException}}var suspendedThenable=null;function getSuspendedThenable(){if(null===suspendedThenable)throw Error(formatProdErrorMessage(459));var e=suspendedThenable;return suspendedThenable=null,e}var thenableState$1=null,thenableIndexCounter$1=0;function unwrapThenable(e){var t=thenableIndexCounter$1;return thenableIndexCounter$1+=1,null===thenableState$1&&(thenableState$1=[]),trackUsedThenable(thenableState$1,e,t)}function coerceRef(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function throwOnInvalidObjectType(e,t){if(t.$$typeof===REACT_LEGACY_ELEMENT_TYPE)throw Error(formatProdErrorMessage(525));throw e=Object.prototype.toString.call(t),Error(formatProdErrorMessage(31,\"[object Object]\"===e?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function resolveLazy(e){return(0,e._init)(e._payload)}function createChildReconciler(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=createWorkInProgress(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=createFiberFromText(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function i(e,t,n,r){var a=n.type;return a===REACT_FRAGMENT_TYPE?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||\"object\"==typeof a&&null!==a&&a.$$typeof===REACT_LAZY_TYPE&&resolveLazy(a)===t.type)?(coerceRef(t=o(t,n.props),n),t.return=e,t):(coerceRef(t=createFiberFromTypeAndProps(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=createFiberFromPortal(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=createFiberFromFragment(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if(\"string\"==typeof t&&\"\"!==t||\"number\"==typeof t||\"bigint\"==typeof t)return(t=createFiberFromText(\"\"+t,e.mode,n)).return=e,t;if(\"object\"==typeof t&&null!==t){switch(t.$$typeof){case REACT_ELEMENT_TYPE:return coerceRef(n=createFiberFromTypeAndProps(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case REACT_PORTAL_TYPE:return(t=createFiberFromPortal(t,e.mode,n)).return=e,t;case REACT_LAZY_TYPE:return d(e,t=(0,t._init)(t._payload),n)}if(isArrayImpl(t)||getIteratorFn(t))return(t=createFiberFromFragment(t,e.mode,n,null)).return=e,t;if(\"function\"==typeof t.then)return d(e,unwrapThenable(t),n);if(t.$$typeof===REACT_CONTEXT_TYPE)return d(e,readContextDuringReconciliation(e,t),n);throwOnInvalidObjectType(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if(\"string\"==typeof n&&\"\"!==n||\"number\"==typeof n||\"bigint\"==typeof n)return null!==o?null:l(e,t,\"\"+n,r);if(\"object\"==typeof n&&null!==n){switch(n.$$typeof){case REACT_ELEMENT_TYPE:return n.key===o?i(e,t,n,r):null;case REACT_PORTAL_TYPE:return n.key===o?u(e,t,n,r):null;case REACT_LAZY_TYPE:return p(e,t,n=(o=n._init)(n._payload),r)}if(isArrayImpl(n)||getIteratorFn(n))return null!==o?null:c(e,t,n,r,null);if(\"function\"==typeof n.then)return p(e,t,unwrapThenable(n),r);if(n.$$typeof===REACT_CONTEXT_TYPE)return p(e,t,readContextDuringReconciliation(e,n),r);throwOnInvalidObjectType(e,n)}return null}function f(e,t,n,r,o){if(\"string\"==typeof r&&\"\"!==r||\"number\"==typeof r||\"bigint\"==typeof r)return l(t,e=e.get(n)||null,\"\"+r,o);if(\"object\"==typeof r&&null!==r){switch(r.$$typeof){case REACT_ELEMENT_TYPE:return i(t,e=e.get(null===r.key?n:r.key)||null,r,o);case REACT_PORTAL_TYPE:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case REACT_LAZY_TYPE:return f(e,t,n,r=(0,r._init)(r._payload),o)}if(isArrayImpl(r)||getIteratorFn(r))return c(t,e=e.get(n)||null,r,o,null);if(\"function\"==typeof r.then)return f(e,t,n,unwrapThenable(r),o);if(r.$$typeof===REACT_CONTEXT_TYPE)return f(e,t,n,readContextDuringReconciliation(t,r),o);throwOnInvalidObjectType(t,r)}return null}function m(l,i,u,c){if(\"object\"==typeof u&&null!==u&&u.type===REACT_FRAGMENT_TYPE&&null===u.key&&(u=u.props.children),\"object\"==typeof u&&null!==u){switch(u.$$typeof){case REACT_ELEMENT_TYPE:e:{for(var h=u.key;null!==i;){if(i.key===h){if((h=u.type)===REACT_FRAGMENT_TYPE){if(7===i.tag){n(l,i.sibling),(c=o(i,u.props.children)).return=l,l=c;break e}}else if(i.elementType===h||\"object\"==typeof h&&null!==h&&h.$$typeof===REACT_LAZY_TYPE&&resolveLazy(h)===i.type){n(l,i.sibling),coerceRef(c=o(i,u.props),u),c.return=l,l=c;break e}n(l,i);break}t(l,i),i=i.sibling}u.type===REACT_FRAGMENT_TYPE?((c=createFiberFromFragment(u.props.children,l.mode,c,u.key)).return=l,l=c):(coerceRef(c=createFiberFromTypeAndProps(u.type,u.key,u.props,null,l.mode,c),u),c.return=l,l=c)}return s(l);case REACT_PORTAL_TYPE:e:{for(h=u.key;null!==i;){if(i.key===h){if(4===i.tag&&i.stateNode.containerInfo===u.containerInfo&&i.stateNode.implementation===u.implementation){n(l,i.sibling),(c=o(i,u.children||[])).return=l,l=c;break e}n(l,i);break}t(l,i),i=i.sibling}(c=createFiberFromPortal(u,l.mode,c)).return=l,l=c}return s(l);case REACT_LAZY_TYPE:return m(l,i,u=(h=u._init)(u._payload),c)}if(isArrayImpl(u))return function(o,s,l,i){for(var u=null,c=null,m=s,h=s=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,l[h],i);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),s=a(v,s,h),null===c?u=v:c.sibling=v,c=v,m=g}if(h===l.length)return n(o,m),isHydrating&&pushTreeFork(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],i))&&(s=a(m,s,h),null===c?u=m:c.sibling=m,c=m);return isHydrating&&pushTreeFork(o,h),u}for(m=r(m);h<l.length;h++)null!==(g=f(m,o,h,l[h],i))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),s=a(g,s,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach(function(e){return t(o,e)}),isHydrating&&pushTreeFork(o,h),u}(l,i,u,c);if(getIteratorFn(u)){if(\"function\"!=typeof(h=getIteratorFn(u)))throw Error(formatProdErrorMessage(150));return function(o,s,l,i){if(null==l)throw Error(formatProdErrorMessage(151));for(var u=null,c=null,m=s,h=s=0,g=null,v=l.next();null!==m&&!v.done;h++,v=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(o,m,v.value,i);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(o,m),s=a(y,s,h),null===c?u=y:c.sibling=y,c=y,m=g}if(v.done)return n(o,m),isHydrating&&pushTreeFork(o,h),u;if(null===m){for(;!v.done;h++,v=l.next())null!==(v=d(o,v.value,i))&&(s=a(v,s,h),null===c?u=v:c.sibling=v,c=v);return isHydrating&&pushTreeFork(o,h),u}for(m=r(m);!v.done;h++,v=l.next())null!==(v=f(m,o,h,v.value,i))&&(e&&null!==v.alternate&&m.delete(null===v.key?h:v.key),s=a(v,s,h),null===c?u=v:c.sibling=v,c=v);return e&&m.forEach(function(e){return t(o,e)}),isHydrating&&pushTreeFork(o,h),u}(l,i,u=h.call(u),c)}if(\"function\"==typeof u.then)return m(l,i,unwrapThenable(u),c);if(u.$$typeof===REACT_CONTEXT_TYPE)return m(l,i,readContextDuringReconciliation(l,u),c);throwOnInvalidObjectType(l,u)}return\"string\"==typeof u&&\"\"!==u||\"number\"==typeof u||\"bigint\"==typeof u?(u=\"\"+u,null!==i&&6===i.tag?(n(l,i.sibling),(c=o(i,u)).return=l,l=c):(n(l,i),(c=createFiberFromText(u,l.mode,c)).return=l,l=c),s(l)):n(l,i)}return function(e,t,n,r){try{thenableIndexCounter$1=0;var o=m(e,t,n,r);return thenableState$1=null,o}catch(t){if(t===SuspenseException)throw t;var a=createFiberImplClass(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var reconcileChildFibers=createChildReconciler(!0),mountChildFibers=createChildReconciler(!1),currentTreeHiddenStackCursor=createCursor(null),prevEntangledRenderLanesCursor=createCursor(0);function pushHiddenContext(e,t){push(prevEntangledRenderLanesCursor,e=entangledRenderLanes),push(currentTreeHiddenStackCursor,t),entangledRenderLanes=e|t.baseLanes}function reuseHiddenContextOnStack(){push(prevEntangledRenderLanesCursor,entangledRenderLanes),push(currentTreeHiddenStackCursor,currentTreeHiddenStackCursor.current)}function popHiddenContext(){entangledRenderLanes=prevEntangledRenderLanesCursor.current,pop(currentTreeHiddenStackCursor),pop(prevEntangledRenderLanesCursor)}var suspenseHandlerStackCursor=createCursor(null),shellBoundary=null;function pushPrimaryTreeSuspenseHandler(e){var t=e.alternate;push(suspenseStackCursor,1&suspenseStackCursor.current),push(suspenseHandlerStackCursor,e),null===shellBoundary&&(null===t||null!==currentTreeHiddenStackCursor.current?shellBoundary=e:null!==t.memoizedState&&(shellBoundary=e))}function pushOffscreenSuspenseHandler(e){if(22===e.tag){if(push(suspenseStackCursor,suspenseStackCursor.current),push(suspenseHandlerStackCursor,e),null===shellBoundary){var t=e.alternate;null!==t&&null!==t.memoizedState&&(shellBoundary=e)}}else reuseSuspenseHandlerOnStack(e)}function reuseSuspenseHandlerOnStack(){push(suspenseStackCursor,suspenseStackCursor.current),push(suspenseHandlerStackCursor,suspenseHandlerStackCursor.current)}function popSuspenseHandler(e){pop(suspenseHandlerStackCursor),shellBoundary===e&&(shellBoundary=null),pop(suspenseStackCursor)}var suspenseStackCursor=createCursor(0);function findFirstSuspended(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||\"$?\"===n.data||\"$!\"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var AbortControllerLocal=\"undefined\"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},scheduleCallback$2=Scheduler.unstable_scheduleCallback,NormalPriority=Scheduler.unstable_NormalPriority,CacheContext={$$typeof:REACT_CONTEXT_TYPE,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function createCache(){return{controller:new AbortControllerLocal,data:new Map,refCount:0}}function releaseCache(e){e.refCount--,0===e.refCount&&scheduleCallback$2(NormalPriority,function(){e.controller.abort()})}var currentEntangledListeners=null,currentEntangledPendingCount=0,currentEntangledLane=0,currentEntangledActionThenable=null;function entangleAsyncAction(e,t){if(null===currentEntangledListeners){var n=currentEntangledListeners=[];currentEntangledPendingCount=0,currentEntangledLane=requestTransitionLane(),currentEntangledActionThenable={status:\"pending\",value:void 0,then:function(e){n.push(e)}}}return currentEntangledPendingCount++,t.then(pingEngtangledActionScope,pingEngtangledActionScope),t}function pingEngtangledActionScope(){if(0==--currentEntangledPendingCount&&null!==currentEntangledListeners){null!==currentEntangledActionThenable&&(currentEntangledActionThenable.status=\"fulfilled\");var e=currentEntangledListeners;currentEntangledListeners=null,currentEntangledLane=0,currentEntangledActionThenable=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function chainThenableValue(e,t){var n=[],r={status:\"pending\",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=\"fulfilled\",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=\"rejected\",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var prevOnStartTransitionFinish=ReactSharedInternals.S;ReactSharedInternals.S=function(e,t){\"object\"==typeof t&&null!==t&&\"function\"==typeof t.then&&entangleAsyncAction(e,t),null!==prevOnStartTransitionFinish&&prevOnStartTransitionFinish(e,t)};var resumedCache=createCursor(null);function peekCacheFromPool(){var e=resumedCache.current;return null!==e?e:workInProgressRoot.pooledCache}function pushTransition(e,t){push(resumedCache,null===t?resumedCache.current:t.pool)}function getSuspendedCache(){var e=peekCacheFromPool();return null===e?null:{parent:CacheContext._currentValue,pool:e}}var createFunctionComponentUpdateQueue,renderLanes=0,currentlyRenderingFiber$1=null,currentHook=null,workInProgressHook=null,didScheduleRenderPhaseUpdate=!1,didScheduleRenderPhaseUpdateDuringThisPass=!1,shouldDoubleInvokeUserFnsInHooksDEV=!1,localIdCounter=0,thenableIndexCounter=0,thenableState=null,globalClientIdCounter=0;function throwInvalidHookError(){throw Error(formatProdErrorMessage(321))}function areHookInputsEqual(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!objectIs(e[n],t[n]))return!1;return!0}function renderWithHooks(e,t,n,r,o,a){return renderLanes=a,currentlyRenderingFiber$1=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ReactSharedInternals.H=null===e||null===e.memoizedState?HooksDispatcherOnMount:HooksDispatcherOnUpdate,shouldDoubleInvokeUserFnsInHooksDEV=!1,a=n(r,o),shouldDoubleInvokeUserFnsInHooksDEV=!1,didScheduleRenderPhaseUpdateDuringThisPass&&(a=renderWithHooksAgain(t,n,r,o)),finishRenderingHooks(e),a}function finishRenderingHooks(e){ReactSharedInternals.H=ContextOnlyDispatcher;var t=null!==currentHook&&null!==currentHook.next;if(renderLanes=0,workInProgressHook=currentHook=currentlyRenderingFiber$1=null,didScheduleRenderPhaseUpdate=!1,thenableIndexCounter=0,thenableState=null,t)throw Error(formatProdErrorMessage(300));null===e||didReceiveUpdate||null!==(e=e.dependencies)&&checkIfContextChanged(e)&&(didReceiveUpdate=!0)}function renderWithHooksAgain(e,t,n,r){currentlyRenderingFiber$1=e;var o=0;do{if(didScheduleRenderPhaseUpdateDuringThisPass&&(thenableState=null),thenableIndexCounter=0,didScheduleRenderPhaseUpdateDuringThisPass=!1,25<=o)throw Error(formatProdErrorMessage(301));if(o+=1,workInProgressHook=currentHook=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}ReactSharedInternals.H=HooksDispatcherOnRerender,a=t(n,r)}while(didScheduleRenderPhaseUpdateDuringThisPass);return a}function TransitionAwareHostComponent(){var e=ReactSharedInternals.H,t=e.useState()[0];return t=\"function\"==typeof t.then?useThenable(t):t,e=e.useState()[0],(null!==currentHook?currentHook.memoizedState:null)!==e&&(currentlyRenderingFiber$1.flags|=1024),t}function checkDidRenderIdHook(){var e=0!==localIdCounter;return localIdCounter=0,e}function bailoutHooks(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function resetHooksOnUnwind(e){if(didScheduleRenderPhaseUpdate){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}didScheduleRenderPhaseUpdate=!1}renderLanes=0,workInProgressHook=currentHook=currentlyRenderingFiber$1=null,didScheduleRenderPhaseUpdateDuringThisPass=!1,thenableIndexCounter=localIdCounter=0,thenableState=null}function mountWorkInProgressHook(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===workInProgressHook?currentlyRenderingFiber$1.memoizedState=workInProgressHook=e:workInProgressHook=workInProgressHook.next=e,workInProgressHook}function updateWorkInProgressHook(){if(null===currentHook){var e=currentlyRenderingFiber$1.alternate;e=null!==e?e.memoizedState:null}else e=currentHook.next;var t=null===workInProgressHook?currentlyRenderingFiber$1.memoizedState:workInProgressHook.next;if(null!==t)workInProgressHook=t,currentHook=e;else{if(null===e){if(null===currentlyRenderingFiber$1.alternate)throw Error(formatProdErrorMessage(467));throw Error(formatProdErrorMessage(310))}e={memoizedState:(currentHook=e).memoizedState,baseState:currentHook.baseState,baseQueue:currentHook.baseQueue,queue:currentHook.queue,next:null},null===workInProgressHook?currentlyRenderingFiber$1.memoizedState=workInProgressHook=e:workInProgressHook=workInProgressHook.next=e}return workInProgressHook}function useThenable(e){var t=thenableIndexCounter;return thenableIndexCounter+=1,null===thenableState&&(thenableState=[]),e=trackUsedThenable(thenableState,e,t),t=currentlyRenderingFiber$1,null===(null===workInProgressHook?t.memoizedState:workInProgressHook.next)&&(t=t.alternate,ReactSharedInternals.H=null===t||null===t.memoizedState?HooksDispatcherOnMount:HooksDispatcherOnUpdate),e}function use(e){if(null!==e&&\"object\"==typeof e){if(\"function\"==typeof e.then)return useThenable(e);if(e.$$typeof===REACT_CONTEXT_TYPE)return readContext(e)}throw Error(formatProdErrorMessage(438,String(e)))}function useMemoCache(e){var t=null,n=currentlyRenderingFiber$1.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=currentlyRenderingFiber$1.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n=createFunctionComponentUpdateQueue(),currentlyRenderingFiber$1.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=REACT_MEMO_CACHE_SENTINEL;return t.index++,n}function basicStateReducer(e,t){return\"function\"==typeof t?t(e):t}function updateReducer(e){return updateReducerImpl(updateWorkInProgressHook(),currentHook,e)}function updateReducerImpl(e,t,n){var r=e.queue;if(null===r)throw Error(formatProdErrorMessage(311));r.lastRenderedReducer=n;var o=e.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}t.baseQueue=o=a,r.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,i=null,u=t=o.next,c=!1;do{var d=-536870913&u.lane;if(d!==u.lane?(workInProgressRootRenderLanes&d)===d:(renderLanes&d)===d){var p=u.revertLane;if(0===p)null!==i&&(i=i.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===currentEntangledLane&&(c=!0);else{if((renderLanes&p)===p){u=u.next,p===currentEntangledLane&&(c=!0);continue}d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===i?(l=i=d,s=a):i=i.next=d,currentlyRenderingFiber$1.lanes|=p,workInProgressRootSkippedLanes|=p}d=u.action,shouldDoubleInvokeUserFnsInHooksDEV&&n(a,d),a=u.hasEagerState?u.eagerState:n(a,d)}else p={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===i?(l=i=p,s=a):i=i.next=p,currentlyRenderingFiber$1.lanes|=d,workInProgressRootSkippedLanes|=d;u=u.next}while(null!==u&&u!==t);if(null===i?s=a:i.next=l,!objectIs(a,e.memoizedState)&&(didReceiveUpdate=!0,c&&null!==(n=currentEntangledActionThenable)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=i,r.lastRenderedState=a}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function rerenderReducer(e){var t=updateWorkInProgressHook(),n=t.queue;if(null===n)throw Error(formatProdErrorMessage(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);objectIs(a,t.memoizedState)||(didReceiveUpdate=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function updateSyncExternalStore(e,t,n){var r=currentlyRenderingFiber$1,o=updateWorkInProgressHook(),a=isHydrating;if(a){if(void 0===n)throw Error(formatProdErrorMessage(407));n=n()}else n=t();var s=!objectIs((currentHook||o).memoizedState,n);if(s&&(o.memoizedState=n,didReceiveUpdate=!0),o=o.queue,updateEffect(subscribeToStore.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==workInProgressHook&&1&workInProgressHook.memoizedState.tag){if(r.flags|=2048,pushEffect(9,updateStoreInstance.bind(null,r,o,n,t),{destroy:void 0},null),null===workInProgressRoot)throw Error(formatProdErrorMessage(349));a||0!=(60&renderLanes)||pushStoreConsistencyCheck(r,t,n)}return n}function pushStoreConsistencyCheck(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=currentlyRenderingFiber$1.updateQueue)?(t=createFunctionComponentUpdateQueue(),currentlyRenderingFiber$1.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function updateStoreInstance(e,t,n,r){t.value=n,t.getSnapshot=r,checkIfSnapshotChanged(t)&&forceStoreRerender(e)}function subscribeToStore(e,t,n){return n(function(){checkIfSnapshotChanged(t)&&forceStoreRerender(e)})}function checkIfSnapshotChanged(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!objectIs(e,n)}catch(e){return!0}}function forceStoreRerender(e){var t=enqueueConcurrentRenderForLane(e,2);null!==t&&scheduleUpdateOnFiber(t,e,2)}function mountStateImpl(e){var t=mountWorkInProgressHook();if(\"function\"==typeof e){var n=e;if(e=n(),shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{n()}finally{setIsStrictModeForDevtools(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:e},t}function updateOptimisticImpl(e,t,n,r){return e.baseState=n,updateReducerImpl(e,currentHook,\"function\"==typeof r?r:basicStateReducer)}function dispatchActionState(e,t,n,r,o){if(isRenderPhaseUpdate(e))throw Error(formatProdErrorMessage(485));if(null!==(e=t.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:\"pending\",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==ReactSharedInternals.T?n(!0):a.isTransition=!1,r(a),null===(n=t.pending)?(a.next=t.pending=a,runActionStateAction(t,a)):(a.next=n.next,t.pending=n.next=a)}}function runActionStateAction(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var a=ReactSharedInternals.T,s={};ReactSharedInternals.T=s;try{var l=n(o,r),i=ReactSharedInternals.S;null!==i&&i(s,l),handleActionReturnValue(e,t,l)}catch(n){onActionError(e,t,n)}finally{ReactSharedInternals.T=a}}else try{handleActionReturnValue(e,t,a=n(o,r))}catch(n){onActionError(e,t,n)}}function handleActionReturnValue(e,t,n){null!==n&&\"object\"==typeof n&&\"function\"==typeof n.then?n.then(function(n){onActionSuccess(e,t,n)},function(n){return onActionError(e,t,n)}):onActionSuccess(e,t,n)}function onActionSuccess(e,t,n){t.status=\"fulfilled\",t.value=n,notifyActionListeners(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,runActionStateAction(e,n)))}function onActionError(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status=\"rejected\",t.reason=n,notifyActionListeners(t),t=t.next}while(t!==r)}e.action=null}function notifyActionListeners(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function actionStateReducer(e,t){return t}function mountActionState(e,t){if(isHydrating){var n=workInProgressRoot.formState;if(null!==n){e:{var r=currentlyRenderingFiber$1;if(isHydrating){if(nextHydratableInstance){t:{for(var o=nextHydratableInstance,a=rootOrSingletonContext;8!==o.nodeType;){if(!a){o=null;break t}if(null===(o=getNextHydratable(o.nextSibling))){o=null;break t}}o=\"F!\"===(a=o.data)||\"F\"===a?o:null}if(o){nextHydratableInstance=getNextHydratable(o.nextSibling),r=\"F!\"===o.data;break e}}throwOnHydrationMismatch(r)}r=!1}r&&(t=n[0])}}return(n=mountWorkInProgressHook()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:actionStateReducer,lastRenderedState:t},n.queue=r,n=dispatchSetState.bind(null,currentlyRenderingFiber$1,r),r.dispatch=n,r=mountStateImpl(!1),a=dispatchOptimisticSetState.bind(null,currentlyRenderingFiber$1,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=mountWorkInProgressHook()).queue=o,n=dispatchActionState.bind(null,currentlyRenderingFiber$1,o,a,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function updateActionState(e){return updateActionStateImpl(updateWorkInProgressHook(),currentHook,e)}function updateActionStateImpl(e,t,n){t=updateReducerImpl(e,t,actionStateReducer)[0],e=updateReducer(basicStateReducer)[0],t=\"object\"==typeof t&&null!==t&&\"function\"==typeof t.then?useThenable(t):t;var r=updateWorkInProgressHook(),o=r.queue,a=o.dispatch;return n!==r.memoizedState&&(currentlyRenderingFiber$1.flags|=2048,pushEffect(9,actionStateActionEffect.bind(null,o,n),{destroy:void 0},null)),[t,a,e]}function actionStateActionEffect(e,t){e.action=t}function rerenderActionState(e){var t=updateWorkInProgressHook(),n=currentHook;if(null!==n)return updateActionStateImpl(t,n,e);updateWorkInProgressHook(),t=t.memoizedState;var r=(n=updateWorkInProgressHook()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function pushEffect(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=currentlyRenderingFiber$1.updateQueue)&&(t=createFunctionComponentUpdateQueue(),currentlyRenderingFiber$1.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function updateRef(){return updateWorkInProgressHook().memoizedState}function mountEffectImpl(e,t,n,r){var o=mountWorkInProgressHook();currentlyRenderingFiber$1.flags|=e,o.memoizedState=pushEffect(1|t,n,{destroy:void 0},void 0===r?null:r)}function updateEffectImpl(e,t,n,r){var o=updateWorkInProgressHook();r=void 0===r?null:r;var a=o.memoizedState.inst;null!==currentHook&&null!==r&&areHookInputsEqual(r,currentHook.memoizedState.deps)?o.memoizedState=pushEffect(t,n,a,r):(currentlyRenderingFiber$1.flags|=e,o.memoizedState=pushEffect(1|t,n,a,r))}function mountEffect(e,t){mountEffectImpl(8390656,8,e,t)}function updateEffect(e,t){updateEffectImpl(2048,8,e,t)}function updateInsertionEffect(e,t){return updateEffectImpl(4,2,e,t)}function updateLayoutEffect(e,t){return updateEffectImpl(4,4,e,t)}function imperativeHandleEffect(e,t){if(\"function\"==typeof t){e=e();var n=t(e);return function(){\"function\"==typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function updateImperativeHandle(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,updateEffectImpl(4,4,imperativeHandleEffect.bind(null,t,e),n)}function mountDebugValue(){}function updateCallback(e,t){var n=updateWorkInProgressHook();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&areHookInputsEqual(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function updateMemo(e,t){var n=updateWorkInProgressHook();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&areHookInputsEqual(t,r[1]))return r[0];if(r=e(),shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{e()}finally{setIsStrictModeForDevtools(!1)}}return n.memoizedState=[r,t],r}function mountDeferredValueImpl(e,t,n){return void 0===n||0!=(1073741824&renderLanes)?e.memoizedState=t:(e.memoizedState=n,e=requestDeferredLane(),currentlyRenderingFiber$1.lanes|=e,workInProgressRootSkippedLanes|=e,n)}function updateDeferredValueImpl(e,t,n,r){return objectIs(n,t)?n:null!==currentTreeHiddenStackCursor.current?(e=mountDeferredValueImpl(e,n,r),objectIs(e,t)||(didReceiveUpdate=!0),e):0==(42&renderLanes)?(didReceiveUpdate=!0,e.memoizedState=n):(e=requestDeferredLane(),currentlyRenderingFiber$1.lanes|=e,workInProgressRootSkippedLanes|=e,t)}function startTransition(e,t,n,r,o){var a=ReactDOMSharedInternals.p;ReactDOMSharedInternals.p=0!==a&&8>a?a:8;var s=ReactSharedInternals.T,l={};ReactSharedInternals.T=l,dispatchOptimisticSetState(e,!1,t,n);try{var i=o(),u=ReactSharedInternals.S;if(null!==u&&u(l,i),null!==i&&\"object\"==typeof i&&\"function\"==typeof i.then)dispatchSetStateInternal(e,t,chainThenableValue(i,r),requestUpdateLane(e));else dispatchSetStateInternal(e,t,r,requestUpdateLane(e))}catch(n){dispatchSetStateInternal(e,t,{then:function(){},status:\"rejected\",reason:n},requestUpdateLane())}finally{ReactDOMSharedInternals.p=a,ReactSharedInternals.T=s}}function noop$2(){}function startHostTransition(e,t,n,r){if(5!==e.tag)throw Error(formatProdErrorMessage(476));var o=ensureFormComponentIsStateful(e).queue;startTransition(e,o,t,sharedNotPendingObject,null===n?noop$2:function(){return requestFormReset$1(e),n(r)})}function ensureFormComponentIsStateful(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:sharedNotPendingObject,baseState:sharedNotPendingObject,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:sharedNotPendingObject},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:basicStateReducer,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function requestFormReset$1(e){dispatchSetStateInternal(e,ensureFormComponentIsStateful(e).next.queue,{},requestUpdateLane())}function useHostTransitionStatus(){return readContext(HostTransitionContext)}function updateId(){return updateWorkInProgressHook().memoizedState}function updateRefresh(){return updateWorkInProgressHook().memoizedState}function refreshCache(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=requestUpdateLane(),r=enqueueUpdate(t,e=createUpdate(n),n);return null!==r&&(scheduleUpdateOnFiber(r,t,n),entangleTransitions(r,t,n)),t={cache:createCache()},void(e.payload=t)}t=t.return}}function dispatchReducerAction(e,t,n){var r=requestUpdateLane();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},isRenderPhaseUpdate(e)?enqueueRenderPhaseUpdate(t,n):null!==(n=enqueueConcurrentHookUpdate(e,t,n,r))&&(scheduleUpdateOnFiber(n,e,r),entangleTransitionUpdate(n,t,r))}function dispatchSetState(e,t,n){dispatchSetStateInternal(e,t,n,requestUpdateLane())}function dispatchSetStateInternal(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(isRenderPhaseUpdate(e))enqueueRenderPhaseUpdate(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.hasEagerState=!0,o.eagerState=l,objectIs(l,s))return enqueueUpdate$1(e,t,o,0),null===workInProgressRoot&&finishQueueingConcurrentUpdates(),!1}catch(e){}if(null!==(n=enqueueConcurrentHookUpdate(e,t,o,r)))return scheduleUpdateOnFiber(n,e,r),entangleTransitionUpdate(n,t,r),!0}return!1}function dispatchOptimisticSetState(e,t,n,r){if(r={lane:2,revertLane:requestTransitionLane(),action:r,hasEagerState:!1,eagerState:null,next:null},isRenderPhaseUpdate(e)){if(t)throw Error(formatProdErrorMessage(479))}else null!==(t=enqueueConcurrentHookUpdate(e,n,r,2))&&scheduleUpdateOnFiber(t,e,2)}function isRenderPhaseUpdate(e){var t=e.alternate;return e===currentlyRenderingFiber$1||null!==t&&t===currentlyRenderingFiber$1}function enqueueRenderPhaseUpdate(e,t){didScheduleRenderPhaseUpdateDuringThisPass=didScheduleRenderPhaseUpdate=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function entangleTransitionUpdate(e,t,n){if(0!=(4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,markRootEntangled(e,n)}}createFunctionComponentUpdateQueue=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};var ContextOnlyDispatcher={readContext:readContext,use:use,useCallback:throwInvalidHookError,useContext:throwInvalidHookError,useEffect:throwInvalidHookError,useImperativeHandle:throwInvalidHookError,useLayoutEffect:throwInvalidHookError,useInsertionEffect:throwInvalidHookError,useMemo:throwInvalidHookError,useReducer:throwInvalidHookError,useRef:throwInvalidHookError,useState:throwInvalidHookError,useDebugValue:throwInvalidHookError,useDeferredValue:throwInvalidHookError,useTransition:throwInvalidHookError,useSyncExternalStore:throwInvalidHookError,useId:throwInvalidHookError};ContextOnlyDispatcher.useCacheRefresh=throwInvalidHookError,ContextOnlyDispatcher.useMemoCache=throwInvalidHookError,ContextOnlyDispatcher.useHostTransitionStatus=throwInvalidHookError,ContextOnlyDispatcher.useFormState=throwInvalidHookError,ContextOnlyDispatcher.useActionState=throwInvalidHookError,ContextOnlyDispatcher.useOptimistic=throwInvalidHookError;var HooksDispatcherOnMount={readContext:readContext,use:use,useCallback:function(e,t){return mountWorkInProgressHook().memoizedState=[e,void 0===t?null:t],e},useContext:readContext,useEffect:mountEffect,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,mountEffectImpl(4194308,4,imperativeHandleEffect.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mountEffectImpl(4194308,4,e,t)},useInsertionEffect:function(e,t){mountEffectImpl(4,2,e,t)},useMemo:function(e,t){var n=mountWorkInProgressHook();t=void 0===t?null:t;var r=e();if(shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{e()}finally{setIsStrictModeForDevtools(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=mountWorkInProgressHook();if(void 0!==n){var o=n(t);if(shouldDoubleInvokeUserFnsInHooksDEV){setIsStrictModeForDevtools(!0);try{n(t)}finally{setIsStrictModeForDevtools(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=dispatchReducerAction.bind(null,currentlyRenderingFiber$1,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},mountWorkInProgressHook().memoizedState=e},useState:function(e){var t=(e=mountStateImpl(e)).queue,n=dispatchSetState.bind(null,currentlyRenderingFiber$1,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:mountDebugValue,useDeferredValue:function(e,t){return mountDeferredValueImpl(mountWorkInProgressHook(),e,t)},useTransition:function(){var e=mountStateImpl(!1);return e=startTransition.bind(null,currentlyRenderingFiber$1,e.queue,!0,!1),mountWorkInProgressHook().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=currentlyRenderingFiber$1,o=mountWorkInProgressHook();if(isHydrating){if(void 0===n)throw Error(formatProdErrorMessage(407));n=n()}else{if(n=t(),null===workInProgressRoot)throw Error(formatProdErrorMessage(349));0!=(60&workInProgressRootRenderLanes)||pushStoreConsistencyCheck(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,mountEffect(subscribeToStore.bind(null,r,a,e),[e]),r.flags|=2048,pushEffect(9,updateStoreInstance.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=mountWorkInProgressHook(),t=workInProgressRoot.identifierPrefix;if(isHydrating){var n=treeContextOverflow;t=\":\"+t+\"R\"+(n=(treeContextId&~(1<<32-clz32(treeContextId)-1)).toString(32)+n),0<(n=localIdCounter++)&&(t+=\"H\"+n.toString(32)),t+=\":\"}else t=\":\"+t+\"r\"+(n=globalClientIdCounter++).toString(32)+\":\";return e.memoizedState=t},useCacheRefresh:function(){return mountWorkInProgressHook().memoizedState=refreshCache.bind(null,currentlyRenderingFiber$1)}};HooksDispatcherOnMount.useMemoCache=useMemoCache,HooksDispatcherOnMount.useHostTransitionStatus=useHostTransitionStatus,HooksDispatcherOnMount.useFormState=mountActionState,HooksDispatcherOnMount.useActionState=mountActionState,HooksDispatcherOnMount.useOptimistic=function(e){var t=mountWorkInProgressHook();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dispatchOptimisticSetState.bind(null,currentlyRenderingFiber$1,!0,n),n.dispatch=t,[e,t]};var HooksDispatcherOnUpdate={readContext:readContext,use:use,useCallback:updateCallback,useContext:readContext,useEffect:updateEffect,useImperativeHandle:updateImperativeHandle,useInsertionEffect:updateInsertionEffect,useLayoutEffect:updateLayoutEffect,useMemo:updateMemo,useReducer:updateReducer,useRef:updateRef,useState:function(){return updateReducer(basicStateReducer)},useDebugValue:mountDebugValue,useDeferredValue:function(e,t){return updateDeferredValueImpl(updateWorkInProgressHook(),currentHook.memoizedState,e,t)},useTransition:function(){var e=updateReducer(basicStateReducer)[0],t=updateWorkInProgressHook().memoizedState;return[\"boolean\"==typeof e?e:useThenable(e),t]},useSyncExternalStore:updateSyncExternalStore,useId:updateId};HooksDispatcherOnUpdate.useCacheRefresh=updateRefresh,HooksDispatcherOnUpdate.useMemoCache=useMemoCache,HooksDispatcherOnUpdate.useHostTransitionStatus=useHostTransitionStatus,HooksDispatcherOnUpdate.useFormState=updateActionState,HooksDispatcherOnUpdate.useActionState=updateActionState,HooksDispatcherOnUpdate.useOptimistic=function(e,t){return updateOptimisticImpl(updateWorkInProgressHook(),currentHook,e,t)};var HooksDispatcherOnRerender={readContext:readContext,use:use,useCallback:updateCallback,useContext:readContext,useEffect:updateEffect,useImperativeHandle:updateImperativeHandle,useInsertionEffect:updateInsertionEffect,useLayoutEffect:updateLayoutEffect,useMemo:updateMemo,useReducer:rerenderReducer,useRef:updateRef,useState:function(){return rerenderReducer(basicStateReducer)},useDebugValue:mountDebugValue,useDeferredValue:function(e,t){var n=updateWorkInProgressHook();return null===currentHook?mountDeferredValueImpl(n,e,t):updateDeferredValueImpl(n,currentHook.memoizedState,e,t)},useTransition:function(){var e=rerenderReducer(basicStateReducer)[0],t=updateWorkInProgressHook().memoizedState;return[\"boolean\"==typeof e?e:useThenable(e),t]},useSyncExternalStore:updateSyncExternalStore,useId:updateId};function applyDerivedStateFromProps(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:assign({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}HooksDispatcherOnRerender.useCacheRefresh=updateRefresh,HooksDispatcherOnRerender.useMemoCache=useMemoCache,HooksDispatcherOnRerender.useHostTransitionStatus=useHostTransitionStatus,HooksDispatcherOnRerender.useFormState=rerenderActionState,HooksDispatcherOnRerender.useActionState=rerenderActionState,HooksDispatcherOnRerender.useOptimistic=function(e,t){var n=updateWorkInProgressHook();return null!==currentHook?updateOptimisticImpl(n,currentHook,e,t):(n.baseState=e,[e,n.queue.dispatch])};var classComponentUpdater={isMounted:function(e){return!!(e=e._reactInternals)&&getNearestMountedFiber(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=requestUpdateLane(),o=createUpdate(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=enqueueUpdate(e,o,r))&&(scheduleUpdateOnFiber(t,e,r),entangleTransitions(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=requestUpdateLane(),o=createUpdate(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=enqueueUpdate(e,o,r))&&(scheduleUpdateOnFiber(t,e,r),entangleTransitions(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=requestUpdateLane(),r=createUpdate(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=enqueueUpdate(e,r,n))&&(scheduleUpdateOnFiber(t,e,n),entangleTransitions(t,e,n))}};function checkShouldComponentUpdate(e,t,n,r,o,a,s){return\"function\"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,s):!t.prototype||!t.prototype.isPureReactComponent||(!shallowEqual(n,r)||!shallowEqual(o,a))}function callComponentWillReceiveProps(e,t,n,r){e=t.state,\"function\"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),\"function\"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&classComponentUpdater.enqueueReplaceState(t,t.state,null)}function resolveClassComponentProps(e,t){var n=t;if(\"ref\"in t)for(var r in n={},t)\"ref\"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=assign({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var reportGlobalError=\"function\"==typeof reportError?reportError:function(e){if(\"object\"==typeof window&&\"function\"==typeof window.ErrorEvent){var t=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:\"object\"==typeof e&&null!==e&&\"string\"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(\"object\"==typeof process&&\"function\"==typeof process.emit)return void process.emit(\"uncaughtException\",e);console.error(e)};function defaultOnUncaughtError(e){reportGlobalError(e)}function defaultOnCaughtError(e){console.error(e)}function defaultOnRecoverableError(e){reportGlobalError(e)}function logUncaughtError(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function logCaughtError(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function createRootErrorUpdate(e,t,n){return(n=createUpdate(n)).tag=3,n.payload={element:null},n.callback=function(){logUncaughtError(e,t)},n}function createClassErrorUpdate(e){return(e=createUpdate(e)).tag=3,e}function initializeClassErrorUpdate(e,t,n,r){var o=n.type.getDerivedStateFromError;if(\"function\"==typeof o){var a=r.value;e.payload=function(){return o(a)},e.callback=function(){logCaughtError(t,n,r)}}var s=n.stateNode;null!==s&&\"function\"==typeof s.componentDidCatch&&(e.callback=function(){logCaughtError(t,n,r),\"function\"!=typeof o&&(null===legacyErrorBoundariesThatAlreadyFailed?legacyErrorBoundariesThatAlreadyFailed=new Set([this]):legacyErrorBoundariesThatAlreadyFailed.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:\"\"})})}function throwException(e,t,n,r,o){if(n.flags|=32768,null!==r&&\"object\"==typeof r&&\"function\"==typeof r.then){if(null!==(t=n.alternate)&&propagateParentContextChanges(t,n,o,!0),null!==(n=suspenseHandlerStackCursor.current)){switch(n.tag){case 13:return null===shellBoundary?renderDidSuspendDelayIfPossible():null===n.alternate&&0===workInProgressRootExitStatus&&(workInProgressRootExitStatus=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===noopSuspenseyCommitThenable?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),attachPingListener(e,r,o)),!1;case 22:return n.flags|=65536,r===noopSuspenseyCommitThenable?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),attachPingListener(e,r,o)),!1}throw Error(formatProdErrorMessage(435,n.tag))}return attachPingListener(e,r,o),renderDidSuspendDelayIfPossible(),!1}if(isHydrating)return null!==(t=suspenseHandlerStackCursor.current)?(0==(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==HydrationMismatchException&&queueHydrationError(createCapturedValueAtFiber(e=Error(formatProdErrorMessage(422),{cause:r}),n))):(r!==HydrationMismatchException&&queueHydrationError(createCapturedValueAtFiber(t=Error(formatProdErrorMessage(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=createCapturedValueAtFiber(r,n),enqueueCapturedUpdate(e,o=createRootErrorUpdate(e.stateNode,r,o)),4!==workInProgressRootExitStatus&&(workInProgressRootExitStatus=2)),!1;var a=Error(formatProdErrorMessage(520),{cause:r});if(a=createCapturedValueAtFiber(a,n),null===workInProgressRootConcurrentErrors?workInProgressRootConcurrentErrors=[a]:workInProgressRootConcurrentErrors.push(a),4!==workInProgressRootExitStatus&&(workInProgressRootExitStatus=2),null===t)return!0;r=createCapturedValueAtFiber(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,enqueueCapturedUpdate(n,e=createRootErrorUpdate(n.stateNode,r,e)),!1;case 1:if(t=n.type,a=n.stateNode,0==(128&n.flags)&&(\"function\"==typeof t.getDerivedStateFromError||null!==a&&\"function\"==typeof a.componentDidCatch&&(null===legacyErrorBoundariesThatAlreadyFailed||!legacyErrorBoundariesThatAlreadyFailed.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,initializeClassErrorUpdate(o=createClassErrorUpdate(o),e,n,r),enqueueCapturedUpdate(n,o),!1}n=n.return}while(null!==n);return!1}var SelectiveHydrationException=Error(formatProdErrorMessage(461)),didReceiveUpdate=!1;function reconcileChildren(e,t,n,r){t.child=null===e?mountChildFibers(t,null,n,r):reconcileChildFibers(t,e.child,n,r)}function updateForwardRef(e,t,n,r,o){n=n.render;var a=t.ref;if(\"ref\"in r){var s={};for(var l in r)\"ref\"!==l&&(s[l]=r[l])}else s=r;return prepareToReadContext(t),r=renderWithHooks(e,t,n,s,a,o),l=checkDidRenderIdHook(),null===e||didReceiveUpdate?(isHydrating&&l&&pushMaterializedTreeId(t),t.flags|=1,reconcileChildren(e,t,r,o),t.child):(bailoutHooks(e,t,o),bailoutOnAlreadyFinishedWork(e,t,o))}function updateMemoComponent(e,t,n,r,o){if(null===e){var a=n.type;return\"function\"!=typeof a||shouldConstruct(a)||void 0!==a.defaultProps||null!==n.compare?((e=createFiberFromTypeAndProps(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,updateSimpleMemoComponent(e,t,a,r,o))}if(a=e.child,!checkScheduledUpdateOrContext(e,o)){var s=a.memoizedProps;if((n=null!==(n=n.compare)?n:shallowEqual)(s,r)&&e.ref===t.ref)return bailoutOnAlreadyFinishedWork(e,t,o)}return t.flags|=1,(e=createWorkInProgress(a,r)).ref=t.ref,e.return=t,t.child=e}function updateSimpleMemoComponent(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(shallowEqual(a,r)&&e.ref===t.ref){if(didReceiveUpdate=!1,t.pendingProps=r=a,!checkScheduledUpdateOrContext(e,o))return t.lanes=e.lanes,bailoutOnAlreadyFinishedWork(e,t,o);0!=(131072&e.flags)&&(didReceiveUpdate=!0)}}return updateFunctionComponent(e,t,n,r,o)}function updateOffscreenComponent(e,t,n){var r=t.pendingProps,o=r.children,a=0!=(2&t.stateNode._pendingVisibility),s=null!==e?e.memoizedState:null;if(markRef(e,t),\"hidden\"===r.mode||a){if(0!=(128&t.flags)){if(r=null!==s?s.baseLanes|n:n,null!==e){for(o=t.child=e.child,a=0;null!==o;)a=a|o.lanes|o.childLanes,o=o.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return deferHiddenOffscreenComponent(e,t,r,n)}if(0==(536870912&n))return t.lanes=t.childLanes=536870912,deferHiddenOffscreenComponent(e,t,null!==s?s.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&pushTransition(t,null!==s?s.cachePool:null),null!==s?pushHiddenContext(t,s):reuseHiddenContextOnStack(),pushOffscreenSuspenseHandler(t)}else null!==s?(pushTransition(t,s.cachePool),pushHiddenContext(t,s),reuseSuspenseHandlerOnStack(t),t.memoizedState=null):(null!==e&&pushTransition(t,null),reuseHiddenContextOnStack(),reuseSuspenseHandlerOnStack(t));return reconcileChildren(e,t,o,n),t.child}function deferHiddenOffscreenComponent(e,t,n,r){var o=peekCacheFromPool();return o=null===o?null:{parent:CacheContext._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&pushTransition(t,null),reuseHiddenContextOnStack(),pushOffscreenSuspenseHandler(t),null!==e&&propagateParentContextChanges(e,t,r,!0),null}function markRef(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if(\"function\"!=typeof n&&\"object\"!=typeof n)throw Error(formatProdErrorMessage(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function updateFunctionComponent(e,t,n,r,o){return prepareToReadContext(t),n=renderWithHooks(e,t,n,r,void 0,o),r=checkDidRenderIdHook(),null===e||didReceiveUpdate?(isHydrating&&r&&pushMaterializedTreeId(t),t.flags|=1,reconcileChildren(e,t,n,o),t.child):(bailoutHooks(e,t,o),bailoutOnAlreadyFinishedWork(e,t,o))}function replayFunctionComponent(e,t,n,r,o,a){return prepareToReadContext(t),t.updateQueue=null,n=renderWithHooksAgain(t,r,n,o),finishRenderingHooks(e),r=checkDidRenderIdHook(),null===e||didReceiveUpdate?(isHydrating&&r&&pushMaterializedTreeId(t),t.flags|=1,reconcileChildren(e,t,n,a),t.child):(bailoutHooks(e,t,a),bailoutOnAlreadyFinishedWork(e,t,a))}function updateClassComponent(e,t,n,r,o){if(prepareToReadContext(t),null===t.stateNode){var a=emptyContextObject,s=n.contextType;\"object\"==typeof s&&null!==s&&(a=readContext(s)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=classComponentUpdater,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={},initializeUpdateQueue(t),s=n.contextType,a.context=\"object\"==typeof s&&null!==s?readContext(s):emptyContextObject,a.state=t.memoizedState,\"function\"==typeof(s=n.getDerivedStateFromProps)&&(applyDerivedStateFromProps(t,n,s,r),a.state=t.memoizedState),\"function\"==typeof n.getDerivedStateFromProps||\"function\"==typeof a.getSnapshotBeforeUpdate||\"function\"!=typeof a.UNSAFE_componentWillMount&&\"function\"!=typeof a.componentWillMount||(s=a.state,\"function\"==typeof a.componentWillMount&&a.componentWillMount(),\"function\"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),s!==a.state&&classComponentUpdater.enqueueReplaceState(a,a.state,null),processUpdateQueue(t,r,a,o),suspendIfUpdateReadFromEntangledAsyncAction(),a.state=t.memoizedState),\"function\"==typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var l=t.memoizedProps,i=resolveClassComponentProps(n,l);a.props=i;var u=a.context,c=n.contextType;s=emptyContextObject,\"object\"==typeof c&&null!==c&&(s=readContext(c));var d=n.getDerivedStateFromProps;c=\"function\"==typeof d||\"function\"==typeof a.getSnapshotBeforeUpdate,l=t.pendingProps!==l,c||\"function\"!=typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof a.componentWillReceiveProps||(l||u!==s)&&callComponentWillReceiveProps(t,a,r,s),hasForceUpdate=!1;var p=t.memoizedState;a.state=p,processUpdateQueue(t,r,a,o),suspendIfUpdateReadFromEntangledAsyncAction(),u=t.memoizedState,l||p!==u||hasForceUpdate?(\"function\"==typeof d&&(applyDerivedStateFromProps(t,n,d,r),u=t.memoizedState),(i=hasForceUpdate||checkShouldComponentUpdate(t,n,i,r,p,u,s))?(c||\"function\"!=typeof a.UNSAFE_componentWillMount&&\"function\"!=typeof a.componentWillMount||(\"function\"==typeof a.componentWillMount&&a.componentWillMount(),\"function\"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),\"function\"==typeof a.componentDidMount&&(t.flags|=4194308)):(\"function\"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=i):(\"function\"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,cloneUpdateQueue(e,t),c=resolveClassComponentProps(n,s=t.memoizedProps),a.props=c,d=t.pendingProps,p=a.context,u=n.contextType,i=emptyContextObject,\"object\"==typeof u&&null!==u&&(i=readContext(u)),(u=\"function\"==typeof(l=n.getDerivedStateFromProps)||\"function\"==typeof a.getSnapshotBeforeUpdate)||\"function\"!=typeof a.UNSAFE_componentWillReceiveProps&&\"function\"!=typeof a.componentWillReceiveProps||(s!==d||p!==i)&&callComponentWillReceiveProps(t,a,r,i),hasForceUpdate=!1,p=t.memoizedState,a.state=p,processUpdateQueue(t,r,a,o),suspendIfUpdateReadFromEntangledAsyncAction();var f=t.memoizedState;s!==d||p!==f||hasForceUpdate||null!==e&&null!==e.dependencies&&checkIfContextChanged(e.dependencies)?(\"function\"==typeof l&&(applyDerivedStateFromProps(t,n,l,r),f=t.memoizedState),(c=hasForceUpdate||checkShouldComponentUpdate(t,n,c,r,p,f,i)||null!==e&&null!==e.dependencies&&checkIfContextChanged(e.dependencies))?(u||\"function\"!=typeof a.UNSAFE_componentWillUpdate&&\"function\"!=typeof a.componentWillUpdate||(\"function\"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,i),\"function\"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,i)),\"function\"==typeof a.componentDidUpdate&&(t.flags|=4),\"function\"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):(\"function\"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),\"function\"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=i,r=c):(\"function\"!=typeof a.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),\"function\"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,markRef(e,t),r=0!=(128&t.flags),a||r?(a=t.stateNode,n=r&&\"function\"!=typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=reconcileChildFibers(t,e.child,null,o),t.child=reconcileChildFibers(t,null,n,o)):reconcileChildren(e,t,n,o),t.memoizedState=a.state,e=t.child):e=bailoutOnAlreadyFinishedWork(e,t,o),e}function mountHostRootWithoutHydrating(e,t,n,r){return resetHydrationState(),t.flags|=256,reconcileChildren(e,t,n,r),t.child}var SUSPENDED_MARKER={dehydrated:null,treeContext:null,retryLane:0};function mountSuspenseOffscreenState(e){return{baseLanes:e,cachePool:getSuspendedCache()}}function getRemainingWorkInPrimaryTree(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=workInProgressDeferredLane),e}function updateSuspenseComponent(e,t,n){var r,o=t.pendingProps,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&suspenseStackCursor.current)),r&&(a=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(isHydrating){if(a?pushPrimaryTreeSuspenseHandler(t):reuseSuspenseHandlerOnStack(t),isHydrating){var l,i=nextHydratableInstance;if(l=i){e:{for(l=i,i=rootOrSingletonContext;8!==l.nodeType;){if(!i){i=null;break e}if(null===(l=getNextHydratable(l.nextSibling))){i=null;break e}}i=l}null!==i?(t.memoizedState={dehydrated:i,treeContext:null!==treeContextProvider?{id:treeContextId,overflow:treeContextOverflow}:null,retryLane:536870912},(l=createFiberImplClass(18,null,null,0)).stateNode=i,l.return=t,t.child=l,hydrationParentFiber=t,nextHydratableInstance=null,l=!0):l=!1}l||throwOnHydrationMismatch(t)}if(null!==(i=t.memoizedState)&&null!==(i=i.dehydrated))return\"$!\"===i.data?t.lanes=16:t.lanes=536870912,null;popSuspenseHandler(t)}return i=o.children,o=o.fallback,a?(reuseSuspenseHandlerOnStack(t),i=mountWorkInProgressOffscreenFiber({mode:\"hidden\",children:i},a=t.mode),o=createFiberFromFragment(o,a,n,null),i.return=t,o.return=t,i.sibling=o,t.child=i,(a=t.child).memoizedState=mountSuspenseOffscreenState(n),a.childLanes=getRemainingWorkInPrimaryTree(e,r,n),t.memoizedState=SUSPENDED_MARKER,o):(pushPrimaryTreeSuspenseHandler(t),mountSuspensePrimaryChildren(t,i))}if(null!==(l=e.memoizedState)&&null!==(i=l.dehydrated)){if(s)256&t.flags?(pushPrimaryTreeSuspenseHandler(t),t.flags&=-257,t=retrySuspenseComponentWithoutHydrating(e,t,n)):null!==t.memoizedState?(reuseSuspenseHandlerOnStack(t),t.child=e.child,t.flags|=128,t=null):(reuseSuspenseHandlerOnStack(t),a=o.fallback,i=t.mode,o=mountWorkInProgressOffscreenFiber({mode:\"visible\",children:o.children},i),(a=createFiberFromFragment(a,i,n,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,reconcileChildFibers(t,e.child,null,n),(o=t.child).memoizedState=mountSuspenseOffscreenState(n),o.childLanes=getRemainingWorkInPrimaryTree(e,r,n),t.memoizedState=SUSPENDED_MARKER,t=a);else if(pushPrimaryTreeSuspenseHandler(t),\"$!\"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;r=u,(o=Error(formatProdErrorMessage(419))).stack=\"\",o.digest=r,queueHydrationError({value:o,source:null,stack:null}),t=retrySuspenseComponentWithoutHydrating(e,t,n)}else if(didReceiveUpdate||propagateParentContextChanges(e,t,n,!1),r=0!=(n&e.childLanes),didReceiveUpdate||r){if(null!==(r=workInProgressRoot)){if(0!=(42&(o=n&-n)))o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(0!==(o=0!=(o&(r.suspendedLanes|n))?0:o)&&o!==l.retryLane)throw l.retryLane=o,enqueueConcurrentRenderForLane(e,o),scheduleUpdateOnFiber(r,e,o),SelectiveHydrationException}\"$?\"===i.data||renderDidSuspendDelayIfPossible(),t=retrySuspenseComponentWithoutHydrating(e,t,n)}else\"$?\"===i.data?(t.flags|=128,t.child=e.child,t=retryDehydratedSuspenseBoundary.bind(null,e),i._reactRetry=t,t=null):(e=l.treeContext,nextHydratableInstance=getNextHydratable(i.nextSibling),hydrationParentFiber=t,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!1,null!==e&&(idStack[idStackIndex++]=treeContextId,idStack[idStackIndex++]=treeContextOverflow,idStack[idStackIndex++]=treeContextProvider,treeContextId=e.id,treeContextOverflow=e.overflow,treeContextProvider=t),(t=mountSuspensePrimaryChildren(t,o.children)).flags|=4096);return t}return a?(reuseSuspenseHandlerOnStack(t),a=o.fallback,i=t.mode,u=(l=e.child).sibling,(o=createWorkInProgress(l,{mode:\"hidden\",children:o.children})).subtreeFlags=31457280&l.subtreeFlags,null!==u?a=createWorkInProgress(u,a):(a=createFiberFromFragment(a,i,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,null===(i=e.child.memoizedState)?i=mountSuspenseOffscreenState(n):(null!==(l=i.cachePool)?(u=CacheContext._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=getSuspendedCache(),i={baseLanes:i.baseLanes|n,cachePool:l}),a.memoizedState=i,a.childLanes=getRemainingWorkInPrimaryTree(e,r,n),t.memoizedState=SUSPENDED_MARKER,o):(pushPrimaryTreeSuspenseHandler(t),e=(n=e.child).sibling,(n=createWorkInProgress(n,{mode:\"visible\",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function mountSuspensePrimaryChildren(e,t){return(t=mountWorkInProgressOffscreenFiber({mode:\"visible\",children:t},e.mode)).return=e,e.child=t}function mountWorkInProgressOffscreenFiber(e,t){return createFiberFromOffscreen(e,t,0,null)}function retrySuspenseComponentWithoutHydrating(e,t,n){return reconcileChildFibers(t,e.child,null,n),(e=mountSuspensePrimaryChildren(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function scheduleSuspenseWorkOnFiber(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),scheduleContextWorkOnParentPath(e.return,t,n)}function initSuspenseListRenderState(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function updateSuspenseListComponent(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(reconcileChildren(e,t,r.children,n),0!=(2&(r=suspenseStackCursor.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&scheduleSuspenseWorkOnFiber(e,n,t);else if(19===e.tag)scheduleSuspenseWorkOnFiber(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(push(suspenseStackCursor,r),o){case\"forwards\":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===findFirstSuspended(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),initSuspenseListRenderState(t,!1,o,n,a);break;case\"backwards\":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===findFirstSuspended(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}initSuspenseListRenderState(t,!0,n,null,a);break;case\"together\":initSuspenseListRenderState(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bailoutOnAlreadyFinishedWork(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),workInProgressRootSkippedLanes|=t.lanes,0==(n&t.childLanes)){if(null===e)return null;if(propagateParentContextChanges(e,t,n,!1),0==(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(formatProdErrorMessage(153));if(null!==t.child){for(n=createWorkInProgress(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=createWorkInProgress(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function checkScheduledUpdateOrContext(e,t){return 0!=(e.lanes&t)||!(null===(e=e.dependencies)||!checkIfContextChanged(e))}function attemptEarlyBailoutIfNoScheduledUpdate(e,t,n){switch(t.tag){case 3:pushHostContainer(t,t.stateNode.containerInfo),pushProvider(t,CacheContext,e.memoizedState.cache),resetHydrationState();break;case 27:case 5:pushHostContext(t);break;case 4:pushHostContainer(t,t.stateNode.containerInfo);break;case 10:pushProvider(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(pushPrimaryTreeSuspenseHandler(t),t.flags|=128,null):0!=(n&t.child.childLanes)?updateSuspenseComponent(e,t,n):(pushPrimaryTreeSuspenseHandler(t),null!==(e=bailoutOnAlreadyFinishedWork(e,t,n))?e.sibling:null);pushPrimaryTreeSuspenseHandler(t);break;case 19:var o=0!=(128&e.flags);if((r=0!=(n&t.childLanes))||(propagateParentContextChanges(e,t,n,!1),r=0!=(n&t.childLanes)),o){if(r)return updateSuspenseListComponent(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),push(suspenseStackCursor,suspenseStackCursor.current),r)break;return null;case 22:case 23:return t.lanes=0,updateOffscreenComponent(e,t,n);case 24:pushProvider(t,CacheContext,e.memoizedState.cache)}return bailoutOnAlreadyFinishedWork(e,t,n)}function beginWork(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)didReceiveUpdate=!0;else{if(!checkScheduledUpdateOrContext(e,n)&&0==(128&t.flags))return didReceiveUpdate=!1,attemptEarlyBailoutIfNoScheduledUpdate(e,t,n);didReceiveUpdate=0!=(131072&e.flags)}else didReceiveUpdate=!1,isHydrating&&0!=(1048576&t.flags)&&pushTreeId(t,treeForkCount,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,o=r._init;if(r=o(r._payload),t.type=r,\"function\"!=typeof r){if(void 0!==r&&null!==r){if((o=r.$$typeof)===REACT_FORWARD_REF_TYPE){t.tag=11,t=updateForwardRef(null,t,r,e,n);break e}if(o===REACT_MEMO_TYPE){t.tag=14,t=updateMemoComponent(null,t,r,e,n);break e}}throw t=getComponentNameFromType(r)||r,Error(formatProdErrorMessage(306,t,\"\"))}shouldConstruct(r)?(e=resolveClassComponentProps(r,e),t.tag=1,t=updateClassComponent(null,t,r,e,n)):(t.tag=0,t=updateFunctionComponent(null,t,r,e,n))}return t;case 0:return updateFunctionComponent(e,t,t.type,t.pendingProps,n);case 1:return updateClassComponent(e,t,r=t.type,o=resolveClassComponentProps(r,t.pendingProps),n);case 3:e:{if(pushHostContainer(t,t.stateNode.containerInfo),null===e)throw Error(formatProdErrorMessage(387));var a=t.pendingProps;r=(o=t.memoizedState).element,cloneUpdateQueue(e,t),processUpdateQueue(t,a,null,n);var s=t.memoizedState;if(a=s.cache,pushProvider(t,CacheContext,a),a!==o.cache&&propagateContextChanges(t,[CacheContext],n,!0),suspendIfUpdateReadFromEntangledAsyncAction(),a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=mountHostRootWithoutHydrating(e,t,a,n);break e}if(a!==r){queueHydrationError(r=createCapturedValueAtFiber(Error(formatProdErrorMessage(424)),t)),t=mountHostRootWithoutHydrating(e,t,a,n);break e}for(nextHydratableInstance=getNextHydratable(t.stateNode.containerInfo.firstChild),hydrationParentFiber=t,isHydrating=!0,hydrationErrors=null,rootOrSingletonContext=!0,n=mountChildFibers(t,null,a,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(resetHydrationState(),a===r){t=bailoutOnAlreadyFinishedWork(e,t,n);break e}reconcileChildren(e,t,a,n)}t=t.child}return t;case 26:return markRef(e,t),null===e?(n=getResource(t.type,null,t.pendingProps,null))?t.memoizedState=n:isHydrating||(n=t.type,e=t.pendingProps,(r=getOwnerDocumentFromRootContainer(rootInstanceStackCursor.current).createElement(n))[internalInstanceKey]=t,r[internalPropsKey]=e,setInitialProperties(r,n,e),markNodeAsHoistable(r),t.stateNode=r):t.memoizedState=getResource(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pushHostContext(t),null===e&&isHydrating&&(r=t.stateNode=resolveSingletonInstance(t.type,t.pendingProps,rootInstanceStackCursor.current),hydrationParentFiber=t,rootOrSingletonContext=!0,nextHydratableInstance=getNextHydratable(r.firstChild)),r=t.pendingProps.children,null!==e||isHydrating?reconcileChildren(e,t,r,n):t.child=reconcileChildFibers(t,null,r,n),markRef(e,t),t.child;case 5:return null===e&&isHydrating&&((o=r=nextHydratableInstance)&&(null!==(r=canHydrateInstance(r,t.type,t.pendingProps,rootOrSingletonContext))?(t.stateNode=r,hydrationParentFiber=t,nextHydratableInstance=getNextHydratable(r.firstChild),rootOrSingletonContext=!1,o=!0):o=!1),o||throwOnHydrationMismatch(t)),pushHostContext(t),o=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,r=a.children,shouldSetTextContent(o,a)?r=null:null!==s&&shouldSetTextContent(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=renderWithHooks(e,t,TransitionAwareHostComponent,null,null,n),HostTransitionContext._currentValue=o),markRef(e,t),reconcileChildren(e,t,r,n),t.child;case 6:return null===e&&isHydrating&&((e=n=nextHydratableInstance)&&(null!==(n=canHydrateTextInstance(n,t.pendingProps,rootOrSingletonContext))?(t.stateNode=n,hydrationParentFiber=t,nextHydratableInstance=null,e=!0):e=!1),e||throwOnHydrationMismatch(t)),null;case 13:return updateSuspenseComponent(e,t,n);case 4:return pushHostContainer(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=reconcileChildFibers(t,null,r,n):reconcileChildren(e,t,r,n),t.child;case 11:return updateForwardRef(e,t,t.type,t.pendingProps,n);case 7:return reconcileChildren(e,t,t.pendingProps,n),t.child;case 8:case 12:return reconcileChildren(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,pushProvider(t,t.type,r.value),reconcileChildren(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,prepareToReadContext(t),r=r(o=readContext(o)),t.flags|=1,reconcileChildren(e,t,r,n),t.child;case 14:return updateMemoComponent(e,t,t.type,t.pendingProps,n);case 15:return updateSimpleMemoComponent(e,t,t.type,t.pendingProps,n);case 19:return updateSuspenseListComponent(e,t,n);case 22:return updateOffscreenComponent(e,t,n);case 24:return prepareToReadContext(t),r=readContext(CacheContext),null===e?(null===(o=peekCacheFromPool())&&(o=workInProgressRoot,a=createCache(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:r,cache:o},initializeUpdateQueue(t),pushProvider(t,CacheContext,o)):(0!=(e.lanes&n)&&(cloneUpdateQueue(e,t),processUpdateQueue(t,null,null,n),suspendIfUpdateReadFromEntangledAsyncAction()),o=e.memoizedState,a=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),pushProvider(t,CacheContext,r)):(r=a.cache,pushProvider(t,CacheContext,r),r!==o.cache&&propagateContextChanges(t,[CacheContext],n,!0))),reconcileChildren(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(formatProdErrorMessage(156,t.tag))}var valueCursor=createCursor(null),currentlyRenderingFiber=null,lastContextDependency=null;function pushProvider(e,t,n){push(valueCursor,t._currentValue),t._currentValue=n}function popProvider(e){e._currentValue=valueCursor.current,pop(valueCursor)}function scheduleContextWorkOnParentPath(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function propagateContextChanges(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var i=0;i<t.length;i++)if(l.context===t[i]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),scheduleContextWorkOnParentPath(a.return,n,e),r||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(formatProdErrorMessage(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),scheduleContextWorkOnParentPath(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function propagateParentContextChanges(e,t,n,r){e=null;for(var o=t,a=!1;null!==o;){if(!a)if(0!=(524288&o.flags))a=!0;else if(0!=(262144&o.flags))break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(formatProdErrorMessage(387));if(null!==(s=s.memoizedProps)){var l=o.type;objectIs(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===hostTransitionProviderCursor.current){if(null===(s=o.alternate))throw Error(formatProdErrorMessage(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(HostTransitionContext):e=[HostTransitionContext])}o=o.return}null!==e&&propagateContextChanges(t,e,n,r),t.flags|=262144}function checkIfContextChanged(e){for(e=e.firstContext;null!==e;){if(!objectIs(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function prepareToReadContext(e){currentlyRenderingFiber=e,lastContextDependency=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function readContext(e){return readContextForConsumer(currentlyRenderingFiber,e)}function readContextDuringReconciliation(e,t){return null===currentlyRenderingFiber&&prepareToReadContext(e),readContextForConsumer(e,t)}function readContextForConsumer(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===lastContextDependency){if(null===e)throw Error(formatProdErrorMessage(308));lastContextDependency=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else lastContextDependency=lastContextDependency.next=t;return n}var hasForceUpdate=!1;function initializeUpdateQueue(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cloneUpdateQueue(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function createUpdate(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function enqueueUpdate(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&executionContext)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=getRootForUpdatedFiber(e),markUpdateLaneFromFiberToRoot(e,null,n),t}return enqueueUpdate$1(e,r,t,n),getRootForUpdatedFiber(e)}function entangleTransitions(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194176&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,markRootEntangled(e,n)}}function enqueueCapturedUpdate(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?o=a=s:a=a.next=s,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var didReadFromEntangledAsyncAction=!1;function suspendIfUpdateReadFromEntangledAsyncAction(){if(didReadFromEntangledAsyncAction){if(null!==currentEntangledActionThenable)throw currentEntangledActionThenable}}function processUpdateQueue(e,t,n,r){didReadFromEntangledAsyncAction=!1;var o=e.updateQueue;hasForceUpdate=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var i=l,u=i.next;i.next=null,null===s?a=u:s.next=u,s=i;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=i))}if(null!==a){var d=o.baseState;for(s=0,c=u=i=null,l=a;;){var p=-536870913&l.lane,f=p!==l.lane;if(f?(workInProgressRootRenderLanes&p)===p:(r&p)===p){0!==p&&p===currentEntangledLane&&(didReadFromEntangledAsyncAction=!0),null!==c&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,h=l;p=t;var g=n;switch(h.tag){case 1:if(\"function\"==typeof(m=h.payload)){d=m.call(g,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(p=\"function\"==typeof(m=h.payload)?m.call(g,d,p):m)||void 0===p)break e;d=assign({},d,p);break e;case 2:hasForceUpdate=!0}}null!==(p=l.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=o.callbacks)?o.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,i=d):c=c.next=f,s|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(f=l).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}null===c&&(i=d),o.baseState=i,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===a&&(o.shared.lanes=0),workInProgressRootSkippedLanes|=s,e.lanes=s,e.memoizedState=d}}function callCallback(e,t){if(\"function\"!=typeof e)throw Error(formatProdErrorMessage(191,e));e.call(t)}function commitCallbacks(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)callCallback(n[e],t)}function commitHookEffectListMount(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var a=n.create,s=n.inst;r=a(),s.destroy=r}n=n.next}while(n!==o)}}catch(e){captureCommitPhaseError(t,t.return,e)}}function commitHookEffectListUnmount(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next;r=a;do{if((r.tag&e)===e){var s=r.inst,l=s.destroy;if(void 0!==l){s.destroy=void 0,o=t;var i=n;try{l()}catch(e){captureCommitPhaseError(o,i,e)}}}r=r.next}while(r!==a)}}catch(e){captureCommitPhaseError(t,t.return,e)}}function commitClassCallbacks(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{commitCallbacks(t,n)}catch(t){captureCommitPhaseError(e,e.return,t)}}}function safelyCallComponentWillUnmount(e,t,n){n.props=resolveClassComponentProps(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){captureCommitPhaseError(e,t,n)}}function safelyAttachRef(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var o=r;break;default:o=r}\"function\"==typeof n?e.refCleanup=n(o):n.current=o}}catch(n){captureCommitPhaseError(e,t,n)}}function safelyDetachRef(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if(\"function\"==typeof r)try{r()}catch(n){captureCommitPhaseError(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if(\"function\"==typeof n)try{n(null)}catch(n){captureCommitPhaseError(e,t,n)}else n.current=null}function commitHostMount(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case\"button\":case\"input\":case\"select\":case\"textarea\":n.autoFocus&&r.focus();break e;case\"img\":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){captureCommitPhaseError(e,e.return,t)}}function commitHostUpdate(e,t,n){try{var r=e.stateNode;updateProperties(r,e.type,n,t),r[internalPropsKey]=t}catch(t){captureCommitPhaseError(e,e.return,t)}}function isHostParent(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function getHostSibling(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||isHostParent(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function insertOrAppendPlacementNodeIntoContainer(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=noop$1));else if(4!==r&&27!==r&&null!==(e=e.child))for(insertOrAppendPlacementNodeIntoContainer(e,t,n),e=e.sibling;null!==e;)insertOrAppendPlacementNodeIntoContainer(e,t,n),e=e.sibling}function insertOrAppendPlacementNode(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(insertOrAppendPlacementNode(e,t,n),e=e.sibling;null!==e;)insertOrAppendPlacementNode(e,t,n),e=e.sibling}var offscreenSubtreeIsHidden=!1,offscreenSubtreeWasHidden=!1,needsFormReset=!1,PossiblyWeakSet=\"function\"==typeof WeakSet?WeakSet:Set,nextEffect=null,shouldFireAfterActiveInstanceBlur=!1;function commitBeforeMutationEffects(e,t){if(e=e.containerInfo,eventsEnabled=_enabled,hasSelectionCapabilities(e=getActiveElementDeep(e))){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,i=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=s+o),d!==a||0!==r&&3!==d.nodeType||(i=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=s),p===a&&++c===r&&(i=s),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===i?null:{start:l,end:i}}else n=null}n=n||{start:0,end:0}}else n=null;for(selectionInformation={focusedElem:e,selectionRange:n},_enabled=!1,nextEffect=t;null!==nextEffect;)if(e=(t=nextEffect).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,nextEffect=e;else for(;null!==nextEffect;){switch(a=(t=nextEffect).alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(0!=(1024&e)&&null!==a){e=void 0,n=t,o=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var m=resolveClassComponentProps(n.type,o,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(m,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){captureCommitPhaseError(n,n.return,e)}}break;case 3:if(0!=(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))clearContainerSparingly(e);else if(1===n)switch(e.nodeName){case\"HEAD\":case\"HTML\":case\"BODY\":clearContainerSparingly(e);break;default:e.textContent=\"\"}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(0!=(1024&e))throw Error(formatProdErrorMessage(163))}if(null!==(e=t.sibling)){e.return=t.return,nextEffect=e;break}nextEffect=t.return}return m=shouldFireAfterActiveInstanceBlur,shouldFireAfterActiveInstanceBlur=!1,m}function commitLayoutEffectOnFiber(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:recursivelyTraverseLayoutEffects(e,n),4&r&&commitHookEffectListMount(5,n);break;case 1:if(recursivelyTraverseLayoutEffects(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){captureCommitPhaseError(n,n.return,e)}else{var o=resolveClassComponentProps(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){captureCommitPhaseError(n,n.return,e)}}64&r&&commitClassCallbacks(n),512&r&&safelyAttachRef(n,n.return);break;case 3:if(recursivelyTraverseLayoutEffects(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{commitCallbacks(r,e)}catch(e){captureCommitPhaseError(n,n.return,e)}}break;case 26:recursivelyTraverseLayoutEffects(e,n),512&r&&safelyAttachRef(n,n.return);break;case 27:case 5:recursivelyTraverseLayoutEffects(e,n),null===t&&4&r&&commitHostMount(n),512&r&&safelyAttachRef(n,n.return);break;case 12:recursivelyTraverseLayoutEffects(e,n);break;case 13:recursivelyTraverseLayoutEffects(e,n),4&r&&commitSuspenseHydrationCallbacks(e,n);break;case 22:if(!(o=null!==n.memoizedState||offscreenSubtreeIsHidden)){t=null!==t&&null!==t.memoizedState||offscreenSubtreeWasHidden;var a=offscreenSubtreeIsHidden,s=offscreenSubtreeWasHidden;offscreenSubtreeIsHidden=o,(offscreenSubtreeWasHidden=t)&&!s?recursivelyTraverseReappearLayoutEffects(e,n,0!=(8772&n.subtreeFlags)):recursivelyTraverseLayoutEffects(e,n),offscreenSubtreeIsHidden=a,offscreenSubtreeWasHidden=s}512&r&&(\"manual\"===n.memoizedProps.mode?safelyAttachRef(n,n.return):safelyDetachRef(n,n.return));break;default:recursivelyTraverseLayoutEffects(e,n)}}function detachFiberAfterEffects(e){var t=e.alternate;null!==t&&(e.alternate=null,detachFiberAfterEffects(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&detachDeletedInstance(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var hostParent=null,hostParentIsContainer=!1;function recursivelyTraverseDeletionEffects(e,t,n){for(n=n.child;null!==n;)commitDeletionEffectsOnFiber(e,t,n),n=n.sibling}function commitDeletionEffectsOnFiber(e,t,n){if(injectedHook&&\"function\"==typeof injectedHook.onCommitFiberUnmount)try{injectedHook.onCommitFiberUnmount(rendererID,n)}catch(e){}switch(n.tag){case 26:offscreenSubtreeWasHidden||safelyDetachRef(n,t),recursivelyTraverseDeletionEffects(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:offscreenSubtreeWasHidden||safelyDetachRef(n,t);var r=hostParent,o=hostParentIsContainer;for(hostParent=n.stateNode,recursivelyTraverseDeletionEffects(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);detachDeletedInstance(n),hostParent=r,hostParentIsContainer=o;break;case 5:offscreenSubtreeWasHidden||safelyDetachRef(n,t);case 6:o=hostParent;var a=hostParentIsContainer;if(hostParent=null,recursivelyTraverseDeletionEffects(e,t,n),hostParentIsContainer=a,null!==(hostParent=o))if(hostParentIsContainer)try{e=hostParent,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(e){captureCommitPhaseError(n,t,e)}else try{hostParent.removeChild(n.stateNode)}catch(e){captureCommitPhaseError(n,t,e)}break;case 18:null!==hostParent&&(hostParentIsContainer?(t=hostParent,n=n.stateNode,8===t.nodeType?clearSuspenseBoundary(t.parentNode,n):1===t.nodeType&&clearSuspenseBoundary(t,n),retryIfBlockedOn(t)):clearSuspenseBoundary(hostParent,n.stateNode));break;case 4:r=hostParent,o=hostParentIsContainer,hostParent=n.stateNode.containerInfo,hostParentIsContainer=!0,recursivelyTraverseDeletionEffects(e,t,n),hostParent=r,hostParentIsContainer=o;break;case 0:case 11:case 14:case 15:offscreenSubtreeWasHidden||commitHookEffectListUnmount(2,n,t),offscreenSubtreeWasHidden||commitHookEffectListUnmount(4,n,t),recursivelyTraverseDeletionEffects(e,t,n);break;case 1:offscreenSubtreeWasHidden||(safelyDetachRef(n,t),\"function\"==typeof(r=n.stateNode).componentWillUnmount&&safelyCallComponentWillUnmount(n,t,r)),recursivelyTraverseDeletionEffects(e,t,n);break;case 21:recursivelyTraverseDeletionEffects(e,t,n);break;case 22:offscreenSubtreeWasHidden||safelyDetachRef(n,t),offscreenSubtreeWasHidden=(r=offscreenSubtreeWasHidden)||null!==n.memoizedState,recursivelyTraverseDeletionEffects(e,t,n),offscreenSubtreeWasHidden=r;break;default:recursivelyTraverseDeletionEffects(e,t,n)}}function commitSuspenseHydrationCallbacks(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{retryIfBlockedOn(e)}catch(e){captureCommitPhaseError(t,t.return,e)}}function getRetryCache(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new PossiblyWeakSet),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new PossiblyWeakSet),t;default:throw Error(formatProdErrorMessage(435,e.tag))}}function attachSuspenseRetryListeners(e,t){var n=getRetryCache(e);t.forEach(function(t){var r=resolveRetryWakeable.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}function recursivelyTraverseMutationEffects(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:case 5:hostParent=l.stateNode,hostParentIsContainer=!1;break e;case 3:case 4:hostParent=l.stateNode.containerInfo,hostParentIsContainer=!0;break e}l=l.return}if(null===hostParent)throw Error(formatProdErrorMessage(160));commitDeletionEffectsOnFiber(a,s,o),hostParent=null,hostParentIsContainer=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)commitMutationEffectsOnFiber(t,e),t=t.sibling}var currentHoistableRoot=null;function commitMutationEffectsOnFiber(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),4&r&&(commitHookEffectListUnmount(3,e,e.return),commitHookEffectListMount(3,e),commitHookEffectListUnmount(5,e,e.return));break;case 1:recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),512&r&&(offscreenSubtreeWasHidden||null===n||safelyDetachRef(n,n.return)),64&r&&offscreenSubtreeIsHidden&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=currentHoistableRoot;if(recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),512&r&&(offscreenSubtreeWasHidden||null===n||safelyDetachRef(n,n.return)),4&r){var a=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case\"title\":(!(a=o.getElementsByTagName(\"title\")[0])||a[internalHoistableMarker]||a[internalInstanceKey]||\"http://www.w3.org/2000/svg\"===a.namespaceURI||a.hasAttribute(\"itemprop\"))&&(a=o.createElement(r),o.head.insertBefore(a,o.querySelector(\"head > title\"))),setInitialProperties(a,r,n),a[internalInstanceKey]=e,markNodeAsHoistable(a),r=a;break e;case\"link\":var s=getHydratableHoistableCache(\"link\",\"href\",o).get(r+(n.href||\"\"));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute(\"href\")===(null==n.href?null:n.href)&&a.getAttribute(\"rel\")===(null==n.rel?null:n.rel)&&a.getAttribute(\"title\")===(null==n.title?null:n.title)&&a.getAttribute(\"crossorigin\")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}setInitialProperties(a=o.createElement(r),r,n),o.head.appendChild(a);break;case\"meta\":if(s=getHydratableHoistableCache(\"meta\",\"content\",o).get(r+(n.content||\"\")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute(\"content\")===(null==n.content?null:\"\"+n.content)&&a.getAttribute(\"name\")===(null==n.name?null:n.name)&&a.getAttribute(\"property\")===(null==n.property?null:n.property)&&a.getAttribute(\"http-equiv\")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute(\"charset\")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}setInitialProperties(a=o.createElement(r),r,n),o.head.appendChild(a);break;default:throw Error(formatProdErrorMessage(468,r))}a[internalInstanceKey]=e,markNodeAsHoistable(a),r=a}e.stateNode=r}else mountHoistable(o,e.type,e.stateNode);else e.stateNode=acquireResource(o,r,e.memoizedProps);else a!==r?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===r?mountHoistable(o,e.type,e.stateNode):acquireResource(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&commitHostUpdate(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&r&&null===e.alternate){o=e.stateNode,a=e.memoizedProps;try{for(var i=o.firstChild;i;){var u=i.nextSibling,c=i.nodeName;i[internalHoistableMarker]||\"HEAD\"===c||\"BODY\"===c||\"SCRIPT\"===c||\"STYLE\"===c||\"LINK\"===c&&\"stylesheet\"===i.rel.toLowerCase()||o.removeChild(i),i=u}for(var d=e.type,p=o.attributes;p.length;)o.removeAttributeNode(p[0]);setInitialProperties(o,d,a),o[internalInstanceKey]=e,o[internalPropsKey]=a}catch(t){captureCommitPhaseError(e,e.return,t)}}case 5:if(recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),512&r&&(offscreenSubtreeWasHidden||null===n||safelyDetachRef(n,n.return)),32&e.flags){o=e.stateNode;try{setTextContent(o,\"\")}catch(t){captureCommitPhaseError(e,e.return,t)}}4&r&&null!=e.stateNode&&commitHostUpdate(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(needsFormReset=!0);break;case 6:if(recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),4&r){if(null===e.stateNode)throw Error(formatProdErrorMessage(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){captureCommitPhaseError(e,e.return,t)}}break;case 3:if(tagCaches=null,o=currentHoistableRoot,currentHoistableRoot=getHoistableRoot(t.containerInfo),recursivelyTraverseMutationEffects(t,e),currentHoistableRoot=o,commitReconciliationEffects(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{retryIfBlockedOn(t.containerInfo)}catch(t){captureCommitPhaseError(e,e.return,t)}needsFormReset&&(needsFormReset=!1,recursivelyResetForms(e));break;case 4:r=currentHoistableRoot,currentHoistableRoot=getHoistableRoot(e.stateNode.containerInfo),recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),currentHoistableRoot=r;break;case 12:recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e);break;case 13:recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(globalMostRecentFallbackTime=now()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,attachSuspenseRetryListeners(e,r)));break;case 22:if(512&r&&(offscreenSubtreeWasHidden||null===n||safelyDetachRef(n,n.return)),i=null!==e.memoizedState,u=null!==n&&null!==n.memoizedState,d=offscreenSubtreeWasHidden,offscreenSubtreeIsHidden=(c=offscreenSubtreeIsHidden)||i,offscreenSubtreeWasHidden=d||u,recursivelyTraverseMutationEffects(t,e),offscreenSubtreeWasHidden=d,offscreenSubtreeIsHidden=c,commitReconciliationEffects(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=i?-2&t._visibility:1|t._visibility,i&&(t=offscreenSubtreeIsHidden||offscreenSubtreeWasHidden,null===n||u||t||recursivelyTraverseDisappearLayoutEffects(e)),null===e.memoizedProps||\"manual\"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){u=n=t;try{if(o=u.stateNode,i)\"function\"==typeof(a=o.style).setProperty?a.setProperty(\"display\",\"none\",\"important\"):a.display=\"none\";else{s=u.stateNode;var f=void 0!==(l=u.memoizedProps.style)&&null!==l&&l.hasOwnProperty(\"display\")?l.display:null;s.style.display=null==f||\"boolean\"==typeof f?\"\":(\"\"+f).trim()}}catch(e){captureCommitPhaseError(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?\"\":u.memoizedProps}catch(e){captureCommitPhaseError(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,attachSuspenseRetryListeners(e,n))));break;case 19:recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,attachSuspenseRetryListeners(e,r)));break;case 21:break;default:recursivelyTraverseMutationEffects(t,e),commitReconciliationEffects(e)}}function commitReconciliationEffects(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(isHostParent(n)){var r=n;break e}n=n.return}throw Error(formatProdErrorMessage(160))}switch(r.tag){case 27:var o=r.stateNode;insertOrAppendPlacementNode(e,getHostSibling(e),o);break;case 5:var a=r.stateNode;32&r.flags&&(setTextContent(a,\"\"),r.flags&=-33),insertOrAppendPlacementNode(e,getHostSibling(e),a);break;case 3:case 4:var s=r.stateNode.containerInfo;insertOrAppendPlacementNodeIntoContainer(e,getHostSibling(e),s);break;default:throw Error(formatProdErrorMessage(161))}}}catch(t){captureCommitPhaseError(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function recursivelyResetForms(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;recursivelyResetForms(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function recursivelyTraverseLayoutEffects(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)commitLayoutEffectOnFiber(e,t.alternate,t),t=t.sibling}function recursivelyTraverseDisappearLayoutEffects(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:commitHookEffectListUnmount(4,t,t.return),recursivelyTraverseDisappearLayoutEffects(t);break;case 1:safelyDetachRef(t,t.return);var n=t.stateNode;\"function\"==typeof n.componentWillUnmount&&safelyCallComponentWillUnmount(t,t.return,n),recursivelyTraverseDisappearLayoutEffects(t);break;case 26:case 27:case 5:safelyDetachRef(t,t.return),recursivelyTraverseDisappearLayoutEffects(t);break;case 22:safelyDetachRef(t,t.return),null===t.memoizedState&&recursivelyTraverseDisappearLayoutEffects(t);break;default:recursivelyTraverseDisappearLayoutEffects(t)}e=e.sibling}}function recursivelyTraverseReappearLayoutEffects(e,t,n){for(n=n&&0!=(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,a=t,s=a.flags;switch(a.tag){case 0:case 11:case 15:recursivelyTraverseReappearLayoutEffects(o,a,n),commitHookEffectListMount(4,a);break;case 1:if(recursivelyTraverseReappearLayoutEffects(o,a,n),\"function\"==typeof(o=(r=a).stateNode).componentDidMount)try{o.componentDidMount()}catch(e){captureCommitPhaseError(r,r.return,e)}if(null!==(o=(r=a).updateQueue)){var l=r.stateNode;try{var i=o.shared.hiddenCallbacks;if(null!==i)for(o.shared.hiddenCallbacks=null,o=0;o<i.length;o++)callCallback(i[o],l)}catch(e){captureCommitPhaseError(r,r.return,e)}}n&&64&s&&commitClassCallbacks(a),safelyAttachRef(a,a.return);break;case 26:case 27:case 5:recursivelyTraverseReappearLayoutEffects(o,a,n),n&&null===r&&4&s&&commitHostMount(a),safelyAttachRef(a,a.return);break;case 12:recursivelyTraverseReappearLayoutEffects(o,a,n);break;case 13:recursivelyTraverseReappearLayoutEffects(o,a,n),n&&4&s&&commitSuspenseHydrationCallbacks(o,a);break;case 22:null===a.memoizedState&&recursivelyTraverseReappearLayoutEffects(o,a,n),safelyAttachRef(a,a.return);break;default:recursivelyTraverseReappearLayoutEffects(o,a,n)}t=t.sibling}}function commitOffscreenPassiveMountEffects(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&releaseCache(n))}function commitCachePassiveMountEffect(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&releaseCache(e))}function recursivelyTraversePassiveMountEffects(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)commitPassiveMountOnFiber(e,t,n,r),t=t.sibling}function commitPassiveMountOnFiber(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:recursivelyTraversePassiveMountEffects(e,t,n,r),2048&o&&commitHookEffectListMount(9,t);break;case 3:recursivelyTraversePassiveMountEffects(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&releaseCache(e)));break;case 12:if(2048&o){recursivelyTraversePassiveMountEffects(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,s=a.id,l=a.onPostCommit;\"function\"==typeof l&&l(s,null===t.alternate?\"mount\":\"update\",e.passiveEffectDuration,-0)}catch(e){captureCommitPhaseError(t,t.return,e)}}else recursivelyTraversePassiveMountEffects(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,null!==t.memoizedState?4&a._visibility?recursivelyTraversePassiveMountEffects(e,t,n,r):recursivelyTraverseAtomicPassiveEffects(e,t):4&a._visibility?recursivelyTraversePassiveMountEffects(e,t,n,r):(a._visibility|=4,recursivelyTraverseReconnectPassiveEffects(e,t,n,r,0!=(10256&t.subtreeFlags))),2048&o&&commitOffscreenPassiveMountEffects(t.alternate,t);break;case 24:recursivelyTraversePassiveMountEffects(e,t,n,r),2048&o&&commitCachePassiveMountEffect(t.alternate,t);break;default:recursivelyTraversePassiveMountEffects(e,t,n,r)}}function recursivelyTraverseReconnectPassiveEffects(e,t,n,r,o){for(o=o&&0!=(10256&t.subtreeFlags),t=t.child;null!==t;){var a=e,s=t,l=n,i=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:recursivelyTraverseReconnectPassiveEffects(a,s,l,i,o),commitHookEffectListMount(8,s);break;case 23:break;case 22:var c=s.stateNode;null!==s.memoizedState?4&c._visibility?recursivelyTraverseReconnectPassiveEffects(a,s,l,i,o):recursivelyTraverseAtomicPassiveEffects(a,s):(c._visibility|=4,recursivelyTraverseReconnectPassiveEffects(a,s,l,i,o)),o&&2048&u&&commitOffscreenPassiveMountEffects(s.alternate,s);break;case 24:recursivelyTraverseReconnectPassiveEffects(a,s,l,i,o),o&&2048&u&&commitCachePassiveMountEffect(s.alternate,s);break;default:recursivelyTraverseReconnectPassiveEffects(a,s,l,i,o)}t=t.sibling}}function recursivelyTraverseAtomicPassiveEffects(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:recursivelyTraverseAtomicPassiveEffects(n,r),2048&o&&commitOffscreenPassiveMountEffects(r.alternate,r);break;case 24:recursivelyTraverseAtomicPassiveEffects(n,r),2048&o&&commitCachePassiveMountEffect(r.alternate,r);break;default:recursivelyTraverseAtomicPassiveEffects(n,r)}t=t.sibling}}var suspenseyCommitFlag=8192;function recursivelyAccumulateSuspenseyCommit(e){if(e.subtreeFlags&suspenseyCommitFlag)for(e=e.child;null!==e;)accumulateSuspenseyCommitOnFiber(e),e=e.sibling}function accumulateSuspenseyCommitOnFiber(e){switch(e.tag){case 26:recursivelyAccumulateSuspenseyCommit(e),e.flags&suspenseyCommitFlag&&null!==e.memoizedState&&suspendResource(currentHoistableRoot,e.memoizedState,e.memoizedProps);break;case 5:recursivelyAccumulateSuspenseyCommit(e);break;case 3:case 4:var t=currentHoistableRoot;currentHoistableRoot=getHoistableRoot(e.stateNode.containerInfo),recursivelyAccumulateSuspenseyCommit(e),currentHoistableRoot=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=suspenseyCommitFlag,suspenseyCommitFlag=16777216,recursivelyAccumulateSuspenseyCommit(e),suspenseyCommitFlag=t):recursivelyAccumulateSuspenseyCommit(e));break;default:recursivelyAccumulateSuspenseyCommit(e)}}function detachAlternateSiblings(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function recursivelyTraversePassiveUnmountEffects(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nextEffect=r,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(r,e)}detachAlternateSiblings(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)commitPassiveUnmountOnFiber(e),e=e.sibling}function commitPassiveUnmountOnFiber(e){switch(e.tag){case 0:case 11:case 15:recursivelyTraversePassiveUnmountEffects(e),2048&e.flags&&commitHookEffectListUnmount(9,e,e.return);break;case 3:case 12:recursivelyTraversePassiveUnmountEffects(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,recursivelyTraverseDisconnectPassiveEffects(e)):recursivelyTraversePassiveUnmountEffects(e);break;default:recursivelyTraversePassiveUnmountEffects(e)}}function recursivelyTraverseDisconnectPassiveEffects(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nextEffect=r,commitPassiveUnmountEffectsInsideOfDeletedTree_begin(r,e)}detachAlternateSiblings(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:commitHookEffectListUnmount(8,t,t.return),recursivelyTraverseDisconnectPassiveEffects(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,recursivelyTraverseDisconnectPassiveEffects(t));break;default:recursivelyTraverseDisconnectPassiveEffects(t)}e=e.sibling}}function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(e,t){for(;null!==nextEffect;){var n=nextEffect;switch(n.tag){case 0:case 11:case 15:commitHookEffectListUnmount(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:releaseCache(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nextEffect=r;else e:for(n=e;null!==nextEffect;){var o=(r=nextEffect).sibling,a=r.return;if(detachFiberAfterEffects(r),r===n){nextEffect=null;break e}if(null!==o){o.return=a,nextEffect=o;break e}nextEffect=a}}}function FiberNode(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function createFiberImplClass(e,t,n,r){return new FiberNode(e,t,n,r)}function shouldConstruct(e){return!(!(e=e.prototype)||!e.isReactComponent)}function createWorkInProgress(e,t){var n=e.alternate;return null===n?((n=createFiberImplClass(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function resetWorkInProgress(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function createFiberFromTypeAndProps(e,t,n,r,o,a){var s=0;if(r=e,\"function\"==typeof e)shouldConstruct(e)&&(s=1);else if(\"string\"==typeof e)s=isHostHoistableType(e,n,contextStackCursor.current)?26:\"html\"===e||\"head\"===e||\"body\"===e?27:5;else e:switch(e){case REACT_FRAGMENT_TYPE:return createFiberFromFragment(n.children,o,a,t);case REACT_STRICT_MODE_TYPE:s=8,o|=24;break;case REACT_PROFILER_TYPE:return(e=createFiberImplClass(12,n,t,2|o)).elementType=REACT_PROFILER_TYPE,e.lanes=a,e;case REACT_SUSPENSE_TYPE:return(e=createFiberImplClass(13,n,t,o)).elementType=REACT_SUSPENSE_TYPE,e.lanes=a,e;case REACT_SUSPENSE_LIST_TYPE:return(e=createFiberImplClass(19,n,t,o)).elementType=REACT_SUSPENSE_LIST_TYPE,e.lanes=a,e;case REACT_OFFSCREEN_TYPE:return createFiberFromOffscreen(n,o,a,t);default:if(\"object\"==typeof e&&null!==e)switch(e.$$typeof){case REACT_PROVIDER_TYPE:case REACT_CONTEXT_TYPE:s=10;break e;case REACT_CONSUMER_TYPE:s=9;break e;case REACT_FORWARD_REF_TYPE:s=11;break e;case REACT_MEMO_TYPE:s=14;break e;case REACT_LAZY_TYPE:s=16,r=null;break e}s=29,n=Error(formatProdErrorMessage(130,null===e?\"null\":typeof e,\"\")),r=null}return(t=createFiberImplClass(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function createFiberFromFragment(e,t,n,r){return(e=createFiberImplClass(7,e,r,t)).lanes=n,e}function createFiberFromOffscreen(e,t,n,r){(e=createFiberImplClass(22,e,r,t)).elementType=REACT_OFFSCREEN_TYPE,e.lanes=n;var o={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=o._current;if(null===e)throw Error(formatProdErrorMessage(456));if(0==(2&o._pendingVisibility)){var t=enqueueConcurrentRenderForLane(e,2);null!==t&&(o._pendingVisibility|=2,scheduleUpdateOnFiber(t,e,2))}},attach:function(){var e=o._current;if(null===e)throw Error(formatProdErrorMessage(456));if(0!=(2&o._pendingVisibility)){var t=enqueueConcurrentRenderForLane(e,2);null!==t&&(o._pendingVisibility&=-3,scheduleUpdateOnFiber(t,e,2))}}};return e.stateNode=o,e}function createFiberFromText(e,t,n){return(e=createFiberImplClass(6,e,null,t)).lanes=n,e}function createFiberFromPortal(e,t,n){return(t=createFiberImplClass(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function markUpdate(e){e.flags|=4}function preloadResourceAndSuspendIfNeeded(e,t){if(\"stylesheet\"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!preloadResource(t)){if(null!==(t=suspenseHandlerStackCursor.current)&&((4194176&workInProgressRootRenderLanes)===workInProgressRootRenderLanes?null!==shellBoundary:(62914560&workInProgressRootRenderLanes)!==workInProgressRootRenderLanes&&0==(536870912&workInProgressRootRenderLanes)||t!==shellBoundary))throw suspendedThenable=noopSuspenseyCommitThenable,SuspenseyCommitException;e.flags|=8192}}function scheduleRetryEffect(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?claimNextRetryLane():536870912,e.lanes|=t,workInProgressSuspendedRetryLanes|=t)}function cutOffTailIfNeeded(e,t){if(!isHydrating)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function bubbleProperties(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=31457280&o.subtreeFlags,r|=31457280&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function completeWork(e,t,n){var r=t.pendingProps;switch(popTreeContext(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return bubbleProperties(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),popProvider(CacheContext),popHostContainer(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(popHydrationState(t)?markUpdate(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==hydrationErrors&&(queueRecoverableErrors(hydrationErrors),hydrationErrors=null))),bubbleProperties(t),null;case 26:return n=t.memoizedState,null===e?(markUpdate(t),null!==n?(bubbleProperties(t),preloadResourceAndSuspendIfNeeded(t,n)):(bubbleProperties(t),t.flags&=-16777217)):n?n!==e.memoizedState?(markUpdate(t),bubbleProperties(t),preloadResourceAndSuspendIfNeeded(t,n)):(bubbleProperties(t),t.flags&=-16777217):(e.memoizedProps!==r&&markUpdate(t),bubbleProperties(t),t.flags&=-16777217),null;case 27:popHostContext(t),n=rootInstanceStackCursor.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&markUpdate(t);else{if(!r){if(null===t.stateNode)throw Error(formatProdErrorMessage(166));return bubbleProperties(t),null}e=contextStackCursor.current,popHydrationState(t)?prepareToHydrateHostInstance(t,e):(e=resolveSingletonInstance(o,r,n),t.stateNode=e,markUpdate(t))}return bubbleProperties(t),null;case 5:if(popHostContext(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&markUpdate(t);else{if(!r){if(null===t.stateNode)throw Error(formatProdErrorMessage(166));return bubbleProperties(t),null}if(e=contextStackCursor.current,popHydrationState(t))prepareToHydrateHostInstance(t,e);else{switch(o=getOwnerDocumentFromRootContainer(rootInstanceStackCursor.current),e){case 1:e=o.createElementNS(\"http://www.w3.org/2000/svg\",n);break;case 2:e=o.createElementNS(\"http://www.w3.org/1998/Math/MathML\",n);break;default:switch(n){case\"svg\":e=o.createElementNS(\"http://www.w3.org/2000/svg\",n);break;case\"math\":e=o.createElementNS(\"http://www.w3.org/1998/Math/MathML\",n);break;case\"script\":(e=o.createElement(\"div\")).innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild);break;case\"select\":e=\"string\"==typeof r.is?o.createElement(\"select\",{is:r.is}):o.createElement(\"select\"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=\"string\"==typeof r.is?o.createElement(n,{is:r.is}):o.createElement(n)}}e[internalInstanceKey]=t,e[internalPropsKey]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(setInitialProperties(e,n,r),n){case\"button\":case\"input\":case\"select\":case\"textarea\":e=!!r.autoFocus;break e;case\"img\":e=!0;break e;default:e=!1}e&&markUpdate(t)}}return bubbleProperties(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&markUpdate(t);else{if(\"string\"!=typeof r&&null===t.stateNode)throw Error(formatProdErrorMessage(166));if(e=rootInstanceStackCursor.current,popHydrationState(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=hydrationParentFiber))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[internalInstanceKey]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||checkForUnmatchedText(e.nodeValue,n)))||throwOnHydrationMismatch(t)}else(e=getOwnerDocumentFromRootContainer(e).createTextNode(r))[internalInstanceKey]=t,t.stateNode=e}return bubbleProperties(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=popHydrationState(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(formatProdErrorMessage(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(formatProdErrorMessage(317));o[internalInstanceKey]=t}else resetHydrationState(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;bubbleProperties(t),o=!1}else null!==hydrationErrors&&(queueRecoverableErrors(hydrationErrors),hydrationErrors=null),o=!0;if(!o)return 256&t.flags?(popSuspenseHandler(t),t):(popSuspenseHandler(t),null)}if(popSuspenseHandler(t),0!=(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool);var a=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),scheduleRetryEffect(t,t.updateQueue),bubbleProperties(t),null;case 4:return popHostContainer(),null===e&&listenToAllSupportedEvents(t.stateNode.containerInfo),bubbleProperties(t),null;case 10:return popProvider(t.type),bubbleProperties(t),null;case 19:if(pop(suspenseStackCursor),null===(o=t.memoizedState))return bubbleProperties(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)cutOffTailIfNeeded(o,!1);else{if(0!==workInProgressRootExitStatus||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=findFirstSuspended(e))){for(t.flags|=128,cutOffTailIfNeeded(o,!1),e=a.updateQueue,t.updateQueue=e,scheduleRetryEffect(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)resetWorkInProgress(n,e),n=n.sibling;return push(suspenseStackCursor,1&suspenseStackCursor.current|2),t.child}e=e.sibling}null!==o.tail&&now()>workInProgressRootRenderTargetTime&&(t.flags|=128,r=!0,cutOffTailIfNeeded(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=findFirstSuspended(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,scheduleRetryEffect(t,e),cutOffTailIfNeeded(o,!0),null===o.tail&&\"hidden\"===o.tailMode&&!a.alternate&&!isHydrating)return bubbleProperties(t),null}else 2*now()-o.renderingStartTime>workInProgressRootRenderTargetTime&&536870912!==n&&(t.flags|=128,r=!0,cutOffTailIfNeeded(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=o.last)?e.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=now(),t.sibling=null,e=suspenseStackCursor.current,push(suspenseStackCursor,r?1&e|2:1&e),t):(bubbleProperties(t),null);case 22:case 23:return popSuspenseHandler(t),popHiddenContext(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(536870912&n)&&0==(128&t.flags)&&(bubbleProperties(t),6&t.subtreeFlags&&(t.flags|=8192)):bubbleProperties(t),null!==(n=t.updateQueue)&&scheduleRetryEffect(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&pop(resumedCache),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),popProvider(CacheContext),bubbleProperties(t),null;case 25:return null}throw Error(formatProdErrorMessage(156,t.tag))}function unwindWork(e,t){switch(popTreeContext(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return popProvider(CacheContext),popHostContainer(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return popHostContext(t),null;case 13:if(popSuspenseHandler(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(formatProdErrorMessage(340));resetHydrationState()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return pop(suspenseStackCursor),null;case 4:return popHostContainer(),null;case 10:return popProvider(t.type),null;case 22:case 23:return popSuspenseHandler(t),popHiddenContext(),null!==e&&pop(resumedCache),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return popProvider(CacheContext),null;case 25:default:return null}}function unwindInterruptedWork(e,t){switch(popTreeContext(t),t.tag){case 3:popProvider(CacheContext),popHostContainer();break;case 26:case 27:case 5:popHostContext(t);break;case 4:popHostContainer();break;case 13:popSuspenseHandler(t);break;case 19:pop(suspenseStackCursor);break;case 10:popProvider(t.type);break;case 22:case 23:popSuspenseHandler(t),popHiddenContext(),null!==e&&pop(resumedCache);break;case 24:popProvider(CacheContext)}}var DefaultAsyncDispatcher={getCacheForType:function(e){var t=readContext(CacheContext),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},PossiblyWeakMap=\"function\"==typeof WeakMap?WeakMap:Map,executionContext=0,workInProgressRoot=null,workInProgress=null,workInProgressRootRenderLanes=0,workInProgressSuspendedReason=0,workInProgressThrownValue=null,workInProgressRootDidSkipSuspendedSiblings=!1,workInProgressRootIsPrerendering=!1,workInProgressRootDidAttachPingListener=!1,entangledRenderLanes=0,workInProgressRootExitStatus=0,workInProgressRootSkippedLanes=0,workInProgressRootInterleavedUpdatedLanes=0,workInProgressRootPingedLanes=0,workInProgressDeferredLane=0,workInProgressSuspendedRetryLanes=0,workInProgressRootConcurrentErrors=null,workInProgressRootRecoverableErrors=null,workInProgressRootDidIncludeRecursiveRenderUpdate=!1,globalMostRecentFallbackTime=0,workInProgressRootRenderTargetTime=1/0,workInProgressTransitions=null,legacyErrorBoundariesThatAlreadyFailed=null,rootDoesHavePassiveEffects=!1,rootWithPendingPassiveEffects=null,pendingPassiveEffectsLanes=0,pendingPassiveEffectsRemainingLanes=0,pendingPassiveTransitions=null,nestedUpdateCount=0,rootWithNestedUpdates=null;function requestUpdateLane(){if(0!=(2&executionContext)&&0!==workInProgressRootRenderLanes)return workInProgressRootRenderLanes&-workInProgressRootRenderLanes;if(null!==ReactSharedInternals.T){return 0!==currentEntangledLane?currentEntangledLane:requestTransitionLane()}return resolveUpdatePriority()}function requestDeferredLane(){0===workInProgressDeferredLane&&(workInProgressDeferredLane=0==(536870912&workInProgressRootRenderLanes)||isHydrating?claimNextTransitionLane():536870912);var e=suspenseHandlerStackCursor.current;return null!==e&&(e.flags|=32),workInProgressDeferredLane}function scheduleUpdateOnFiber(e,t,n){(e===workInProgressRoot&&2===workInProgressSuspendedReason||null!==e.cancelPendingCommit)&&(prepareFreshStack(e,0),markRootSuspended(e,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)),markRootUpdated$1(e,n),0!=(2&executionContext)&&e===workInProgressRoot||(e===workInProgressRoot&&(0==(2&executionContext)&&(workInProgressRootInterleavedUpdatedLanes|=n),4===workInProgressRootExitStatus&&markRootSuspended(e,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)),ensureRootIsScheduled(e))}function performWorkOnRoot(e,t,n){if(0!=(6&executionContext))throw Error(formatProdErrorMessage(327));for(var r=!n&&0==(60&t)&&0==(t&e.expiredLanes)||checkIfRootIsPrerendering(e,t),o=r?renderRootConcurrent(e,t):renderRootSync(e,t,!0),a=r;;){if(0===o){workInProgressRootIsPrerendering&&!r&&markRootSuspended(e,t,0,!1);break}if(6===o)markRootSuspended(e,t,0,!workInProgressRootDidSkipSuspendedSiblings);else{if(n=e.current.alternate,a&&!isRenderConsistentWithExternalStores(n)){o=renderRootSync(e,t,!1),a=!1;continue}if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=workInProgressRootConcurrentErrors;var i=l.current.memoizedState.isDehydrated;if(i&&(prepareFreshStack(l,s).flags|=256),2!==(s=renderRootSync(l,s,!1))){if(workInProgressRootDidAttachPingListener&&!i){l.errorRecoveryDisabledLanes|=a,workInProgressRootInterleavedUpdatedLanes|=a,o=4;break e}a=workInProgressRootRecoverableErrors,workInProgressRootRecoverableErrors=o,null!==a&&queueRecoverableErrors(a)}o=s}if(a=!1,2!==o)continue}}if(1===o){prepareFreshStack(e,0),markRootSuspended(e,t,0,!0);break}e:{switch(r=e,o){case 0:case 1:throw Error(formatProdErrorMessage(345));case 4:if((4194176&t)===t){markRootSuspended(r,t,workInProgressDeferredLane,!workInProgressRootDidSkipSuspendedSiblings);break e}break;case 2:workInProgressRootRecoverableErrors=null;break;case 3:case 5:break;default:throw Error(formatProdErrorMessage(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(a=globalMostRecentFallbackTime+300-now())){if(markRootSuspended(r,t,workInProgressDeferredLane,!workInProgressRootDidSkipSuspendedSiblings),0!==getNextLanes(r,0))break e;r.timeoutHandle=scheduleTimeout(commitRootWhenReady.bind(null,r,n,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,t,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes,workInProgressRootDidSkipSuspendedSiblings,2,-0,0),a)}else commitRootWhenReady(r,n,workInProgressRootRecoverableErrors,workInProgressTransitions,workInProgressRootDidIncludeRecursiveRenderUpdate,t,workInProgressDeferredLane,workInProgressRootInterleavedUpdatedLanes,workInProgressSuspendedRetryLanes,workInProgressRootDidSkipSuspendedSiblings,0,-0,0)}}break}ensureRootIsScheduled(e)}function queueRecoverableErrors(e){null===workInProgressRootRecoverableErrors?workInProgressRootRecoverableErrors=e:workInProgressRootRecoverableErrors.push.apply(workInProgressRootRecoverableErrors,e)}function commitRootWhenReady(e,t,n,r,o,a,s,l,i,u,c,d,p){var f=t.subtreeFlags;if((8192&f||16785408==(16785408&f))&&(suspendedState={stylesheets:null,count:0,unsuspend:noop},accumulateSuspenseyCommitOnFiber(t),null!==(t=waitForCommitToBeReady())))return e.cancelPendingCommit=t(commitRoot.bind(null,e,n,r,o,s,l,i,1,d,p)),void markRootSuspended(e,a,s,!u);commitRoot(e,n,r,o,s,l,i,c,d,p)}function isRenderConsistentWithExternalStores(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!objectIs(a(),o))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function markRootSuspended(e,t,n,r){t&=~workInProgressRootPingedLanes,t&=~workInProgressRootInterleavedUpdatedLanes,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var a=31-clz32(o),s=1<<a;r[a]=-1,o&=~s}0!==n&&markSpawnedDeferredLane(e,n,t)}function flushSyncWork$1(){return 0!=(6&executionContext)||(flushSyncWorkAcrossRoots_impl(0,!1),!1)}function resetWorkInProgressStack(){if(null!==workInProgress){if(0===workInProgressSuspendedReason)var e=workInProgress.return;else lastContextDependency=currentlyRenderingFiber=null,resetHooksOnUnwind(e=workInProgress),thenableState$1=null,thenableIndexCounter$1=0,e=workInProgress;for(;null!==e;)unwindInterruptedWork(e.alternate,e),e=e.return;workInProgress=null}}function prepareFreshStack(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,cancelTimeout(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),resetWorkInProgressStack(),workInProgressRoot=e,workInProgress=n=createWorkInProgress(e.current,null),workInProgressRootRenderLanes=t,workInProgressSuspendedReason=0,workInProgressThrownValue=null,workInProgressRootDidSkipSuspendedSiblings=!1,workInProgressRootIsPrerendering=checkIfRootIsPrerendering(e,t),workInProgressRootDidAttachPingListener=!1,workInProgressSuspendedRetryLanes=workInProgressDeferredLane=workInProgressRootPingedLanes=workInProgressRootInterleavedUpdatedLanes=workInProgressRootSkippedLanes=workInProgressRootExitStatus=0,workInProgressRootRecoverableErrors=workInProgressRootConcurrentErrors=null,workInProgressRootDidIncludeRecursiveRenderUpdate=!1,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-clz32(r),a=1<<o;t|=e[o],r&=~a}return entangledRenderLanes=t,finishQueueingConcurrentUpdates(),n}function handleThrow(e,t){currentlyRenderingFiber$1=null,ReactSharedInternals.H=ContextOnlyDispatcher,t===SuspenseException?(t=getSuspendedThenable(),workInProgressSuspendedReason=3):t===SuspenseyCommitException?(t=getSuspendedThenable(),workInProgressSuspendedReason=4):workInProgressSuspendedReason=t===SelectiveHydrationException?8:null!==t&&\"object\"==typeof t&&\"function\"==typeof t.then?6:1,workInProgressThrownValue=t,null===workInProgress&&(workInProgressRootExitStatus=1,logUncaughtError(e,createCapturedValueAtFiber(t,e.current)))}function pushDispatcher(){var e=ReactSharedInternals.H;return ReactSharedInternals.H=ContextOnlyDispatcher,null===e?ContextOnlyDispatcher:e}function pushAsyncDispatcher(){var e=ReactSharedInternals.A;return ReactSharedInternals.A=DefaultAsyncDispatcher,e}function renderDidSuspendDelayIfPossible(){workInProgressRootExitStatus=4,workInProgressRootDidSkipSuspendedSiblings||(4194176&workInProgressRootRenderLanes)!==workInProgressRootRenderLanes&&null!==suspenseHandlerStackCursor.current||(workInProgressRootIsPrerendering=!0),0==(134217727&workInProgressRootSkippedLanes)&&0==(134217727&workInProgressRootInterleavedUpdatedLanes)||null===workInProgressRoot||markRootSuspended(workInProgressRoot,workInProgressRootRenderLanes,workInProgressDeferredLane,!1)}function renderRootSync(e,t,n){var r=executionContext;executionContext|=2;var o=pushDispatcher(),a=pushAsyncDispatcher();workInProgressRoot===e&&workInProgressRootRenderLanes===t||(workInProgressTransitions=null,prepareFreshStack(e,t)),t=!1;var s=workInProgressRootExitStatus;e:for(;;)try{if(0!==workInProgressSuspendedReason&&null!==workInProgress){var l=workInProgress,i=workInProgressThrownValue;switch(workInProgressSuspendedReason){case 8:resetWorkInProgressStack(),s=6;break e;case 3:case 2:case 6:null===suspenseHandlerStackCursor.current&&(t=!0);var u=workInProgressSuspendedReason;if(workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(e,l,i,u),n&&workInProgressRootIsPrerendering){s=0;break e}break;default:u=workInProgressSuspendedReason,workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(e,l,i,u)}}workLoopSync(),s=workInProgressRootExitStatus;break}catch(t){handleThrow(e,t)}return t&&e.shellSuspendCounter++,lastContextDependency=currentlyRenderingFiber=null,executionContext=r,ReactSharedInternals.H=o,ReactSharedInternals.A=a,null===workInProgress&&(workInProgressRoot=null,workInProgressRootRenderLanes=0,finishQueueingConcurrentUpdates()),s}function workLoopSync(){for(;null!==workInProgress;)performUnitOfWork(workInProgress)}function renderRootConcurrent(e,t){var n=executionContext;executionContext|=2;var r=pushDispatcher(),o=pushAsyncDispatcher();workInProgressRoot!==e||workInProgressRootRenderLanes!==t?(workInProgressTransitions=null,workInProgressRootRenderTargetTime=now()+500,prepareFreshStack(e,t)):workInProgressRootIsPrerendering=checkIfRootIsPrerendering(e,t);e:for(;;)try{if(0!==workInProgressSuspendedReason&&null!==workInProgress){t=workInProgress;var a=workInProgressThrownValue;t:switch(workInProgressSuspendedReason){case 1:workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(e,t,a,1);break;case 2:if(isThenableResolved(a)){workInProgressSuspendedReason=0,workInProgressThrownValue=null,replaySuspendedUnitOfWork(t);break}t=function(){2===workInProgressSuspendedReason&&workInProgressRoot===e&&(workInProgressSuspendedReason=7),ensureRootIsScheduled(e)},a.then(t,t);break e;case 3:workInProgressSuspendedReason=7;break e;case 4:workInProgressSuspendedReason=5;break e;case 7:isThenableResolved(a)?(workInProgressSuspendedReason=0,workInProgressThrownValue=null,replaySuspendedUnitOfWork(t)):(workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(e,t,a,7));break;case 5:var s=null;switch(workInProgress.tag){case 26:s=workInProgress.memoizedState;case 5:case 27:var l=workInProgress;if(!s||preloadResource(s)){workInProgressSuspendedReason=0,workInProgressThrownValue=null;var i=l.sibling;if(null!==i)workInProgress=i;else{var u=l.return;null!==u?(workInProgress=u,completeUnitOfWork(u)):workInProgress=null}break t}}workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(e,t,a,5);break;case 6:workInProgressSuspendedReason=0,workInProgressThrownValue=null,throwAndUnwindWorkLoop(e,t,a,6);break;case 8:resetWorkInProgressStack(),workInProgressRootExitStatus=6;break e;default:throw Error(formatProdErrorMessage(462))}}workLoopConcurrent();break}catch(t){handleThrow(e,t)}return lastContextDependency=currentlyRenderingFiber=null,ReactSharedInternals.H=r,ReactSharedInternals.A=o,executionContext=n,null!==workInProgress?0:(workInProgressRoot=null,workInProgressRootRenderLanes=0,finishQueueingConcurrentUpdates(),workInProgressRootExitStatus)}function workLoopConcurrent(){for(;null!==workInProgress&&!shouldYield();)performUnitOfWork(workInProgress)}function performUnitOfWork(e){var t=beginWork(e.alternate,e,entangledRenderLanes);e.memoizedProps=e.pendingProps,null===t?completeUnitOfWork(e):workInProgress=t}function replaySuspendedUnitOfWork(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=replayFunctionComponent(n,t,t.pendingProps,t.type,void 0,workInProgressRootRenderLanes);break;case 11:t=replayFunctionComponent(n,t,t.pendingProps,t.type.render,t.ref,workInProgressRootRenderLanes);break;case 5:resetHooksOnUnwind(t);default:unwindInterruptedWork(n,t),t=beginWork(n,t=workInProgress=resetWorkInProgress(t,entangledRenderLanes),entangledRenderLanes)}e.memoizedProps=e.pendingProps,null===t?completeUnitOfWork(e):workInProgress=t}function throwAndUnwindWorkLoop(e,t,n,r){lastContextDependency=currentlyRenderingFiber=null,resetHooksOnUnwind(t),thenableState$1=null,thenableIndexCounter$1=0;var o=t.return;try{if(throwException(e,o,t,n,workInProgressRootRenderLanes))return workInProgressRootExitStatus=1,logUncaughtError(e,createCapturedValueAtFiber(n,e.current)),void(workInProgress=null)}catch(t){if(null!==o)throw workInProgress=o,t;return workInProgressRootExitStatus=1,logUncaughtError(e,createCapturedValueAtFiber(n,e.current)),void(workInProgress=null)}32768&t.flags?(isHydrating||1===r?e=!0:workInProgressRootIsPrerendering||0!=(536870912&workInProgressRootRenderLanes)?e=!1:(workInProgressRootDidSkipSuspendedSiblings=e=!0,(2===r||3===r||6===r)&&(null!==(r=suspenseHandlerStackCursor.current)&&13===r.tag&&(r.flags|=16384))),unwindUnitOfWork(t,e)):completeUnitOfWork(t)}function completeUnitOfWork(e){var t=e;do{if(0!=(32768&t.flags))return void unwindUnitOfWork(t,workInProgressRootDidSkipSuspendedSiblings);e=t.return;var n=completeWork(t.alternate,t,entangledRenderLanes);if(null!==n)return void(workInProgress=n);if(null!==(t=t.sibling))return void(workInProgress=t);workInProgress=t=e}while(null!==t);0===workInProgressRootExitStatus&&(workInProgressRootExitStatus=5)}function unwindUnitOfWork(e,t){do{var n=unwindWork(e.alternate,e);if(null!==n)return n.flags&=32767,void(workInProgress=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(workInProgress=e);workInProgress=e=n}while(null!==e);workInProgressRootExitStatus=6,workInProgress=null}function commitRoot(e,t,n,r,o,a,s,l,i,u){var c=ReactSharedInternals.T,d=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=2,ReactSharedInternals.T=null,commitRootImpl(e,t,n,r,d,o,a,s,l,i,u)}finally{ReactSharedInternals.T=c,ReactDOMSharedInternals.p=d}}function commitRootImpl(e,t,n,r,o,a,s,l){do{flushPassiveEffects()}while(null!==rootWithPendingPassiveEffects);if(0!=(6&executionContext))throw Error(formatProdErrorMessage(327));var i=e.finishedWork;if(r=e.finishedLanes,null===i)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(formatProdErrorMessage(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=i.lanes|i.childLanes;if(markRootFinished(e,r,u|=concurrentlyUpdatedLanes,a,s,l),e===workInProgressRoot&&(workInProgress=workInProgressRoot=null,workInProgressRootRenderLanes=0),0==(10256&i.subtreeFlags)&&0==(10256&i.flags)||rootDoesHavePassiveEffects||(rootDoesHavePassiveEffects=!0,pendingPassiveEffectsRemainingLanes=u,pendingPassiveTransitions=n,scheduleCallback$1(NormalPriority$1,function(){return flushPassiveEffects(!0),null})),n=0!=(15990&i.flags),0!=(15990&i.subtreeFlags)||n?(n=ReactSharedInternals.T,ReactSharedInternals.T=null,a=ReactDOMSharedInternals.p,ReactDOMSharedInternals.p=2,s=executionContext,executionContext|=4,commitBeforeMutationEffects(e,i),commitMutationEffectsOnFiber(i,e),restoreSelection(selectionInformation,e.containerInfo),_enabled=!!eventsEnabled,selectionInformation=eventsEnabled=null,e.current=i,commitLayoutEffectOnFiber(e,i.alternate,i),requestPaint(),executionContext=s,ReactDOMSharedInternals.p=a,ReactSharedInternals.T=n):e.current=i,rootDoesHavePassiveEffects?(rootDoesHavePassiveEffects=!1,rootWithPendingPassiveEffects=e,pendingPassiveEffectsLanes=r):releaseRootPooledCache(e,u),0===(u=e.pendingLanes)&&(legacyErrorBoundariesThatAlreadyFailed=null),onCommitRoot(i.stateNode,o),ensureRootIsScheduled(e),null!==t)for(o=e.onRecoverableError,i=0;i<t.length;i++)o((u=t[i]).value,{componentStack:u.stack});return 0!=(3&pendingPassiveEffectsLanes)&&flushPassiveEffects(),u=e.pendingLanes,0!=(4194218&r)&&0!=(42&u)?e===rootWithNestedUpdates?nestedUpdateCount++:(nestedUpdateCount=0,rootWithNestedUpdates=e):nestedUpdateCount=0,flushSyncWorkAcrossRoots_impl(0,!1),null}function releaseRootPooledCache(e,t){0==(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,releaseCache(t)))}function flushPassiveEffects(){if(null!==rootWithPendingPassiveEffects){var e=rootWithPendingPassiveEffects,t=pendingPassiveEffectsRemainingLanes;pendingPassiveEffectsRemainingLanes=0;var n=lanesToEventPriority(pendingPassiveEffectsLanes),r=ReactSharedInternals.T,o=ReactDOMSharedInternals.p;try{if(ReactDOMSharedInternals.p=32>n?32:n,ReactSharedInternals.T=null,null===rootWithPendingPassiveEffects)var a=!1;else{n=pendingPassiveTransitions,pendingPassiveTransitions=null;var s=rootWithPendingPassiveEffects,l=pendingPassiveEffectsLanes;if(rootWithPendingPassiveEffects=null,pendingPassiveEffectsLanes=0,0!=(6&executionContext))throw Error(formatProdErrorMessage(331));var i=executionContext;if(executionContext|=4,commitPassiveUnmountOnFiber(s.current),commitPassiveMountOnFiber(s,s.current,l,n),executionContext=i,flushSyncWorkAcrossRoots_impl(0,!1),injectedHook&&\"function\"==typeof injectedHook.onPostCommitFiberRoot)try{injectedHook.onPostCommitFiberRoot(rendererID,s)}catch(e){}a=!0}return a}finally{ReactDOMSharedInternals.p=o,ReactSharedInternals.T=r,releaseRootPooledCache(e,t)}}return!1}function captureCommitPhaseErrorOnRoot(e,t,n){t=createCapturedValueAtFiber(n,t),null!==(e=enqueueUpdate(e,t=createRootErrorUpdate(e.stateNode,t,2),2))&&(markRootUpdated$1(e,2),ensureRootIsScheduled(e))}function captureCommitPhaseError(e,t,n){if(3===e.tag)captureCommitPhaseErrorOnRoot(e,e,n);else for(;null!==t;){if(3===t.tag){captureCommitPhaseErrorOnRoot(t,e,n);break}if(1===t.tag){var r=t.stateNode;if(\"function\"==typeof t.type.getDerivedStateFromError||\"function\"==typeof r.componentDidCatch&&(null===legacyErrorBoundariesThatAlreadyFailed||!legacyErrorBoundariesThatAlreadyFailed.has(r))){e=createCapturedValueAtFiber(n,e),null!==(r=enqueueUpdate(t,n=createClassErrorUpdate(2),2))&&(initializeClassErrorUpdate(n,r,t,e),markRootUpdated$1(r,2),ensureRootIsScheduled(r));break}}t=t.return}}function attachPingListener(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new PossiblyWeakMap;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(workInProgressRootDidAttachPingListener=!0,o.add(n),e=pingSuspendedRoot.bind(null,e,t,n),t.then(e,e))}function pingSuspendedRoot(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,workInProgressRoot===e&&(workInProgressRootRenderLanes&n)===n&&(4===workInProgressRootExitStatus||3===workInProgressRootExitStatus&&(62914560&workInProgressRootRenderLanes)===workInProgressRootRenderLanes&&300>now()-globalMostRecentFallbackTime?0==(2&executionContext)&&prepareFreshStack(e,0):workInProgressRootPingedLanes|=n,workInProgressSuspendedRetryLanes===workInProgressRootRenderLanes&&(workInProgressSuspendedRetryLanes=0)),ensureRootIsScheduled(e)}function retryTimedOutBoundary(e,t){0===t&&(t=claimNextRetryLane()),null!==(e=enqueueConcurrentRenderForLane(e,t))&&(markRootUpdated$1(e,t),ensureRootIsScheduled(e))}function retryDehydratedSuspenseBoundary(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),retryTimedOutBoundary(e,n)}function resolveRetryWakeable(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(formatProdErrorMessage(314))}null!==r&&r.delete(t),retryTimedOutBoundary(e,n)}function scheduleCallback$1(e,t){return scheduleCallback$3(e,t)}var firstScheduledRoot=null,lastScheduledRoot=null,didScheduleMicrotask=!1,mightHavePendingSyncWork=!1,isFlushingWork=!1,currentEventTransitionLane=0;function ensureRootIsScheduled(e){e!==lastScheduledRoot&&null===e.next&&(null===lastScheduledRoot?firstScheduledRoot=lastScheduledRoot=e:lastScheduledRoot=lastScheduledRoot.next=e),mightHavePendingSyncWork=!0,didScheduleMicrotask||(didScheduleMicrotask=!0,scheduleImmediateTask(processRootScheduleInMicrotask))}function flushSyncWorkAcrossRoots_impl(e,t){if(!isFlushingWork&&mightHavePendingSyncWork){isFlushingWork=!0;do{for(var n=!1,r=firstScheduledRoot;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var a=0;else{var s=r.suspendedLanes,l=r.pingedLanes;a=(1<<31-clz32(42|e)+1)-1,a=201326677&(a&=o&~(s&~l))?201326677&a|1:a?2|a:0}0!==a&&(n=!0,performSyncWorkOnRoot(r,a))}else a=workInProgressRootRenderLanes,0==(3&(a=getNextLanes(r,r===workInProgressRoot?a:0)))||checkIfRootIsPrerendering(r,a)||(n=!0,performSyncWorkOnRoot(r,a));r=r.next}}while(n);isFlushingWork=!1}}function processRootScheduleInMicrotask(){mightHavePendingSyncWork=didScheduleMicrotask=!1;var e=0;0!==currentEventTransitionLane&&(shouldAttemptEagerTransition()&&(e=currentEventTransitionLane),currentEventTransitionLane=0);for(var t=now(),n=null,r=firstScheduledRoot;null!==r;){var o=r.next,a=scheduleTaskForRootDuringMicrotask(r,t);0===a?(r.next=null,null===n?firstScheduledRoot=o:n.next=o,null===o&&(lastScheduledRoot=n)):(n=r,(0!==e||0!=(3&a))&&(mightHavePendingSyncWork=!0)),r=o}flushSyncWorkAcrossRoots_impl(e,!1)}function scheduleTaskForRootDuringMicrotask(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var s=31-clz32(a),l=1<<s,i=o[s];-1===i?0!=(l&n)&&0==(l&r)||(o[s]=computeExpirationTime(l,t)):i<=t&&(e.expiredLanes|=l),a&=~l}if(n=workInProgressRootRenderLanes,n=getNextLanes(e,e===(t=workInProgressRoot)?n:0),r=e.callbackNode,0===n||e===t&&2===workInProgressSuspendedReason||null!==e.cancelPendingCommit)return null!==r&&null!==r&&cancelCallback$1(r),e.callbackNode=null,e.callbackPriority=0;if(0==(3&n)||checkIfRootIsPrerendering(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&cancelCallback$1(r),lanesToEventPriority(n)){case 2:case 8:n=UserBlockingPriority;break;case 32:n=NormalPriority$1;break;case 268435456:n=IdlePriority;break;default:n=NormalPriority$1}return r=performWorkOnRootViaSchedulerTask.bind(null,e),n=scheduleCallback$3(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&cancelCallback$1(r),e.callbackPriority=2,e.callbackNode=null,2}function performWorkOnRootViaSchedulerTask(e,t){var n=e.callbackNode;if(flushPassiveEffects()&&e.callbackNode!==n)return null;var r=workInProgressRootRenderLanes;return 0===(r=getNextLanes(e,e===workInProgressRoot?r:0))?null:(performWorkOnRoot(e,r,t),scheduleTaskForRootDuringMicrotask(e,now()),null!=e.callbackNode&&e.callbackNode===n?performWorkOnRootViaSchedulerTask.bind(null,e):null)}function performSyncWorkOnRoot(e,t){if(flushPassiveEffects())return null;performWorkOnRoot(e,t,!0)}function scheduleImmediateTask(e){scheduleMicrotask(function(){0!=(6&executionContext)?scheduleCallback$3(ImmediatePriority,e):e()})}function requestTransitionLane(){return 0===currentEventTransitionLane&&(currentEventTransitionLane=claimNextTransitionLane()),currentEventTransitionLane}function coerceFormActionProp(e){return null==e||\"symbol\"==typeof e||\"boolean\"==typeof e?null:\"function\"==typeof e?e:sanitizeURL(\"\"+e)}function createFormDataWithSubmitter(e,t){var n=t.ownerDocument.createElement(\"input\");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(\"form\",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function extractEvents$1(e,t,n,r,o){if(\"submit\"===t&&n&&n.stateNode===o){var a=coerceFormActionProp((o[internalPropsKey]||null).action),s=r.submitter;s&&(null!==(t=(t=s[internalPropsKey]||null)?coerceFormActionProp(t.formAction):s.getAttribute(\"formAction\"))&&(a=t,s=null));var l=new SyntheticEvent(\"action\",\"action\",null,r,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==currentEventTransitionLane){var e=s?createFormDataWithSubmitter(o,s):new FormData(o);startHostTransition(n,{pending:!0,data:e,method:o.method,action:a},null,e)}}else\"function\"==typeof a&&(l.preventDefault(),e=s?createFormDataWithSubmitter(o,s):new FormData(o),startHostTransition(n,{pending:!0,data:e,method:o.method,action:a},a,e))},currentTarget:o}]})}}for(var i$jscomp$inline_1439=0;i$jscomp$inline_1439<simpleEventPluginEvents.length;i$jscomp$inline_1439++){var eventName$jscomp$inline_1440=simpleEventPluginEvents[i$jscomp$inline_1439],domEventName$jscomp$inline_1441=eventName$jscomp$inline_1440.toLowerCase(),capitalizedEvent$jscomp$inline_1442=eventName$jscomp$inline_1440[0].toUpperCase()+eventName$jscomp$inline_1440.slice(1);registerSimpleEvent(domEventName$jscomp$inline_1441,\"on\"+capitalizedEvent$jscomp$inline_1442)}registerSimpleEvent(ANIMATION_END,\"onAnimationEnd\"),registerSimpleEvent(ANIMATION_ITERATION,\"onAnimationIteration\"),registerSimpleEvent(ANIMATION_START,\"onAnimationStart\"),registerSimpleEvent(\"dblclick\",\"onDoubleClick\"),registerSimpleEvent(\"focusin\",\"onFocus\"),registerSimpleEvent(\"focusout\",\"onBlur\"),registerSimpleEvent(TRANSITION_RUN,\"onTransitionRun\"),registerSimpleEvent(TRANSITION_START,\"onTransitionStart\"),registerSimpleEvent(TRANSITION_CANCEL,\"onTransitionCancel\"),registerSimpleEvent(TRANSITION_END,\"onTransitionEnd\"),registerDirectEvent(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),registerDirectEvent(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),registerDirectEvent(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),registerDirectEvent(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),registerTwoPhaseEvent(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),registerTwoPhaseEvent(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),registerTwoPhaseEvent(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),registerTwoPhaseEvent(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),registerTwoPhaseEvent(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),registerTwoPhaseEvent(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var mediaEventTypes=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),nonDelegatedEvents=new Set(\"beforetoggle cancel close invalid load scroll scrollend toggle\".split(\" \").concat(mediaEventTypes));function processDispatchQueue(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],i=l.instance,u=l.currentTarget;if(l=l.listener,i!==a&&o.isPropagationStopped())break e;a=l,o.currentTarget=u;try{a(o)}catch(e){reportGlobalError(e)}o.currentTarget=null,a=i}else for(s=0;s<r.length;s++){if(i=(l=r[s]).instance,u=l.currentTarget,l=l.listener,i!==a&&o.isPropagationStopped())break e;a=l,o.currentTarget=u;try{a(o)}catch(e){reportGlobalError(e)}o.currentTarget=null,a=i}}}}function listenToNonDelegatedEvent(e,t){var n=t[internalEventHandlersKey];void 0===n&&(n=t[internalEventHandlersKey]=new Set);var r=e+\"__bubble\";n.has(r)||(addTrappedEventListener(t,e,2,!1),n.add(r))}function listenToNativeEvent(e,t,n){var r=0;t&&(r|=4),addTrappedEventListener(n,e,r,t)}var listeningMarker=\"_reactListening\"+Math.random().toString(36).slice(2);function listenToAllSupportedEvents(e){if(!e[listeningMarker]){e[listeningMarker]=!0,allNativeEvents.forEach(function(t){\"selectionchange\"!==t&&(nonDelegatedEvents.has(t)||listenToNativeEvent(t,!1,e),listenToNativeEvent(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[listeningMarker]||(t[listeningMarker]=!0,listenToNativeEvent(\"selectionchange\",!1,t))}}function addTrappedEventListener(e,t,n,r){switch(getEventPriority(t)){case 2:var o=dispatchDiscreteEvent;break;case 8:o=dispatchContinuousEvent;break;default:o=dispatchEvent}n=o.bind(null,t,n,e),o=void 0,!passiveBrowserEventsSupported||\"touchstart\"!==t&&\"touchmove\"!==t&&\"wheel\"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function dispatchEventForPluginEventSystem(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===s)for(s=r.return;null!==s;){var i=s.tag;if((3===i||4===i)&&((i=s.stateNode.containerInfo)===o||8===i.nodeType&&i.parentNode===o))return;s=s.return}for(;null!==l;){if(null===(s=getClosestInstanceFromNode(l)))return;if(5===(i=s.tag)||6===i||26===i||27===i){r=a=s;continue e}l=l.parentNode}}r=r.return}batchedUpdates$1(function(){var r=a,o=getEventTarget(n),s=[];e:{var l=topLevelEventsToReactNames.get(e);if(void 0!==l){var i=SyntheticEvent,u=e;switch(e){case\"keypress\":if(0===getEventCharCode(n))break e;case\"keydown\":case\"keyup\":i=SyntheticKeyboardEvent;break;case\"focusin\":u=\"focus\",i=SyntheticFocusEvent;break;case\"focusout\":u=\"blur\",i=SyntheticFocusEvent;break;case\"beforeblur\":case\"afterblur\":i=SyntheticFocusEvent;break;case\"click\":if(2===n.button)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":i=SyntheticMouseEvent;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":i=SyntheticDragEvent;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":i=SyntheticTouchEvent;break;case ANIMATION_END:case ANIMATION_ITERATION:case ANIMATION_START:i=SyntheticAnimationEvent;break;case TRANSITION_END:i=SyntheticTransitionEvent;break;case\"scroll\":case\"scrollend\":i=SyntheticUIEvent;break;case\"wheel\":i=SyntheticWheelEvent;break;case\"copy\":case\"cut\":case\"paste\":i=SyntheticClipboardEvent;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":i=SyntheticPointerEvent;break;case\"toggle\":case\"beforetoggle\":i=SyntheticToggleEvent}var c=0!=(4&t),d=!c&&(\"scroll\"===e||\"scrollend\"===e),p=c?null!==l?l+\"Capture\":null:l;c=[];for(var f,m=r;null!==m;){var h=m;if(f=h.stateNode,5!==(h=h.tag)&&26!==h&&27!==h||null===f||null===p||null!=(h=getListener(m,p))&&c.push(createDispatchListener(m,h,f)),d)break;m=m.return}0<c.length&&(l=new i(l,u,null,n,o),s.push({event:l,listeners:c}))}}if(0==(7&t)){if(l=\"mouseover\"===e||\"pointerover\"===e,i=\"mouseout\"===e||\"pointerout\"===e,(!l||n===currentReplayingEvent||!(u=n.relatedTarget||n.fromElement)||!getClosestInstanceFromNode(u)&&!u[internalContainerInstanceKey])&&(i||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,i?(i=r,null!==(u=(u=n.relatedTarget||n.toElement)?getClosestInstanceFromNode(u):null)&&(d=getNearestMountedFiber(u),c=u.tag,u!==d||5!==c&&27!==c&&6!==c)&&(u=null)):(i=null,u=r),i!==u)){if(c=SyntheticMouseEvent,h=\"onMouseLeave\",p=\"onMouseEnter\",m=\"mouse\",\"pointerout\"!==e&&\"pointerover\"!==e||(c=SyntheticPointerEvent,h=\"onPointerLeave\",p=\"onPointerEnter\",m=\"pointer\"),d=null==i?l:getNodeFromInstance(i),f=null==u?l:getNodeFromInstance(u),(l=new c(h,m+\"leave\",i,n,o)).target=d,l.relatedTarget=f,h=null,getClosestInstanceFromNode(o)===r&&((c=new c(p,m+\"enter\",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,i&&u)e:{for(p=u,m=0,f=c=i;f;f=getParent(f))m++;for(f=0,h=p;h;h=getParent(h))f++;for(;0<m-f;)c=getParent(c),m--;for(;0<f-m;)p=getParent(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=getParent(c),p=getParent(p)}c=null}else c=null;null!==i&&accumulateEnterLeaveListenersForEvent(s,l,i,c,!1),null!==u&&null!==d&&accumulateEnterLeaveListenersForEvent(s,d,u,c,!0)}if(\"select\"===(i=(l=r?getNodeFromInstance(r):window).nodeName&&l.nodeName.toLowerCase())||\"input\"===i&&\"file\"===l.type)var g=getTargetInstForChangeEvent;else if(isTextInputElement(l))if(isInputEventSupported)g=getTargetInstForInputOrChangeEvent;else{g=getTargetInstForInputEventPolyfill;var v=handleEventsForInputEventPolyfill}else!(i=l.nodeName)||\"input\"!==i.toLowerCase()||\"checkbox\"!==l.type&&\"radio\"!==l.type?r&&isCustomElement(r.elementType)&&(g=getTargetInstForChangeEvent):g=getTargetInstForClickEvent;switch(g&&(g=g(e,r))?createAndAccumulateChangeEvent(s,g,n,o):(v&&v(e,l,r),\"focusout\"===e&&r&&\"number\"===l.type&&null!=r.memoizedProps.value&&setDefaultValue(l,\"number\",l.value)),v=r?getNodeFromInstance(r):window,e){case\"focusin\":(isTextInputElement(v)||\"true\"===v.contentEditable)&&(activeElement=v,activeElementInst=r,lastSelection=null);break;case\"focusout\":lastSelection=activeElementInst=activeElement=null;break;case\"mousedown\":mouseDown=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":mouseDown=!1,constructSelectEvent(s,n,o);break;case\"selectionchange\":if(skipSelectionChangeEvent)break;case\"keydown\":case\"keyup\":constructSelectEvent(s,n,o)}var y;if(canUseCompositionEvent)e:{switch(e){case\"compositionstart\":var b=\"onCompositionStart\";break e;case\"compositionend\":b=\"onCompositionEnd\";break e;case\"compositionupdate\":b=\"onCompositionUpdate\";break e}b=void 0}else isComposing?isFallbackCompositionEnd(e,n)&&(b=\"onCompositionEnd\"):\"keydown\"===e&&229===n.keyCode&&(b=\"onCompositionStart\");b&&(useFallbackCompositionData&&\"ko\"!==n.locale&&(isComposing||\"onCompositionStart\"!==b?\"onCompositionEnd\"===b&&isComposing&&(y=getData()):(startText=\"value\"in(root=o)?root.value:root.textContent,isComposing=!0)),0<(v=accumulateTwoPhaseListeners(r,b)).length&&(b=new SyntheticCompositionEvent(b,e,null,n,o),s.push({event:b,listeners:v}),y?b.data=y:null!==(y=getDataFromCustomEvent(n))&&(b.data=y))),(y=canUseTextInputEvent?getNativeBeforeInputChars(e,n):getFallbackBeforeInputChars(e,n))&&(0<(b=accumulateTwoPhaseListeners(r,\"onBeforeInput\")).length&&(v=new SyntheticCompositionEvent(\"onBeforeInput\",\"beforeinput\",null,n,o),s.push({event:v,listeners:b}),v.data=y)),extractEvents$1(s,e,r,n,o)}processDispatchQueue(s,t)})}function createDispatchListener(e,t,n){return{instance:e,listener:t,currentTarget:n}}function accumulateTwoPhaseListeners(e,t){for(var n=t+\"Capture\",r=[];null!==e;){var o=e,a=o.stateNode;5!==(o=o.tag)&&26!==o&&27!==o||null===a||(null!=(o=getListener(e,n))&&r.unshift(createDispatchListener(e,o,a)),null!=(o=getListener(e,t))&&r.push(createDispatchListener(e,o,a))),e=e.return}return r}function getParent(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function accumulateEnterLeaveListenersForEvent(e,t,n,r,o){for(var a=t._reactName,s=[];null!==n&&n!==r;){var l=n,i=l.alternate,u=l.stateNode;if(l=l.tag,null!==i&&i===r)break;5!==l&&26!==l&&27!==l||null===u||(i=u,o?null!=(u=getListener(n,a))&&s.unshift(createDispatchListener(n,u,i)):o||null!=(u=getListener(n,a))&&s.push(createDispatchListener(n,u,i))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var NORMALIZE_NEWLINES_REGEX=/\\r\\n?/g,NORMALIZE_NULL_AND_REPLACEMENT_REGEX=/\\u0000|\\uFFFD/g;function normalizeMarkupForTextOrAttribute(e){return(\"string\"==typeof e?e:\"\"+e).replace(NORMALIZE_NEWLINES_REGEX,\"\\n\").replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX,\"\")}function checkForUnmatchedText(e,t){return t=normalizeMarkupForTextOrAttribute(t),normalizeMarkupForTextOrAttribute(e)===t}function noop$1(){}function setProp(e,t,n,r,o,a){switch(n){case\"children\":\"string\"==typeof r?\"body\"===t||\"textarea\"===t&&\"\"===r||setTextContent(e,r):(\"number\"==typeof r||\"bigint\"==typeof r)&&\"body\"!==t&&setTextContent(e,\"\"+r);break;case\"className\":setValueForKnownAttribute(e,\"class\",r);break;case\"tabIndex\":setValueForKnownAttribute(e,\"tabindex\",r);break;case\"dir\":case\"role\":case\"viewBox\":case\"width\":case\"height\":setValueForKnownAttribute(e,n,r);break;case\"style\":setValueForStyles(e,r,a);break;case\"data\":if(\"object\"!==t){setValueForKnownAttribute(e,\"data\",r);break}case\"src\":case\"href\":if(\"\"===r&&(\"a\"!==t||\"href\"!==n)){e.removeAttribute(n);break}if(null==r||\"function\"==typeof r||\"symbol\"==typeof r||\"boolean\"==typeof r){e.removeAttribute(n);break}r=sanitizeURL(\"\"+r),e.setAttribute(n,r);break;case\"action\":case\"formAction\":if(\"function\"==typeof r){e.setAttribute(n,\"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')\");break}if(\"function\"==typeof a&&(\"formAction\"===n?(\"input\"!==t&&setProp(e,t,\"name\",o.name,o,null),setProp(e,t,\"formEncType\",o.formEncType,o,null),setProp(e,t,\"formMethod\",o.formMethod,o,null),setProp(e,t,\"formTarget\",o.formTarget,o,null)):(setProp(e,t,\"encType\",o.encType,o,null),setProp(e,t,\"method\",o.method,o,null),setProp(e,t,\"target\",o.target,o,null))),null==r||\"symbol\"==typeof r||\"boolean\"==typeof r){e.removeAttribute(n);break}r=sanitizeURL(\"\"+r),e.setAttribute(n,r);break;case\"onClick\":null!=r&&(e.onclick=noop$1);break;case\"onScroll\":null!=r&&listenToNonDelegatedEvent(\"scroll\",e);break;case\"onScrollEnd\":null!=r&&listenToNonDelegatedEvent(\"scrollend\",e);break;case\"dangerouslySetInnerHTML\":if(null!=r){if(\"object\"!=typeof r||!(\"__html\"in r))throw Error(formatProdErrorMessage(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(formatProdErrorMessage(60));e.innerHTML=n}}break;case\"multiple\":e.multiple=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r;break;case\"muted\":e.muted=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r;break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"defaultValue\":case\"defaultChecked\":case\"innerHTML\":case\"ref\":case\"autoFocus\":break;case\"xlinkHref\":if(null==r||\"function\"==typeof r||\"boolean\"==typeof r||\"symbol\"==typeof r){e.removeAttribute(\"xlink:href\");break}n=sanitizeURL(\"\"+r),e.setAttributeNS(\"http://www.w3.org/1999/xlink\",\"xlink:href\",n);break;case\"contentEditable\":case\"spellCheck\":case\"draggable\":case\"value\":case\"autoReverse\":case\"externalResourcesRequired\":case\"focusable\":case\"preserveAlpha\":null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,\"\"+r):e.removeAttribute(n);break;case\"inert\":case\"allowFullScreen\":case\"async\":case\"autoPlay\":case\"controls\":case\"default\":case\"defer\":case\"disabled\":case\"disablePictureInPicture\":case\"disableRemotePlayback\":case\"formNoValidate\":case\"hidden\":case\"loop\":case\"noModule\":case\"noValidate\":case\"open\":case\"playsInline\":case\"readOnly\":case\"required\":case\"reversed\":case\"scoped\":case\"seamless\":case\"itemScope\":r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,\"\"):e.removeAttribute(n);break;case\"capture\":case\"download\":!0===r?e.setAttribute(n,\"\"):!1!==r&&null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case\"cols\":case\"rows\":case\"size\":case\"span\":null!=r&&\"function\"!=typeof r&&\"symbol\"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case\"rowSpan\":case\"start\":null==r||\"function\"==typeof r||\"symbol\"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case\"popover\":listenToNonDelegatedEvent(\"beforetoggle\",e),listenToNonDelegatedEvent(\"toggle\",e),setValueForAttribute(e,\"popover\",r);break;case\"xlinkActuate\":setValueForNamespacedAttribute(e,\"http://www.w3.org/1999/xlink\",\"xlink:actuate\",r);break;case\"xlinkArcrole\":setValueForNamespacedAttribute(e,\"http://www.w3.org/1999/xlink\",\"xlink:arcrole\",r);break;case\"xlinkRole\":setValueForNamespacedAttribute(e,\"http://www.w3.org/1999/xlink\",\"xlink:role\",r);break;case\"xlinkShow\":setValueForNamespacedAttribute(e,\"http://www.w3.org/1999/xlink\",\"xlink:show\",r);break;case\"xlinkTitle\":setValueForNamespacedAttribute(e,\"http://www.w3.org/1999/xlink\",\"xlink:title\",r);break;case\"xlinkType\":setValueForNamespacedAttribute(e,\"http://www.w3.org/1999/xlink\",\"xlink:type\",r);break;case\"xmlBase\":setValueForNamespacedAttribute(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:base\",r);break;case\"xmlLang\":setValueForNamespacedAttribute(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:lang\",r);break;case\"xmlSpace\":setValueForNamespacedAttribute(e,\"http://www.w3.org/XML/1998/namespace\",\"xml:space\",r);break;case\"is\":setValueForAttribute(e,\"is\",r);break;case\"innerText\":case\"textContent\":break;default:(!(2<n.length)||\"o\"!==n[0]&&\"O\"!==n[0]||\"n\"!==n[1]&&\"N\"!==n[1])&&setValueForAttribute(e,n=aliases.get(n)||n,r)}}function setPropOnCustomElement(e,t,n,r,o,a){switch(n){case\"style\":setValueForStyles(e,r,a);break;case\"dangerouslySetInnerHTML\":if(null!=r){if(\"object\"!=typeof r||!(\"__html\"in r))throw Error(formatProdErrorMessage(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(formatProdErrorMessage(60));e.innerHTML=n}}break;case\"children\":\"string\"==typeof r?setTextContent(e,r):(\"number\"==typeof r||\"bigint\"==typeof r)&&setTextContent(e,\"\"+r);break;case\"onScroll\":null!=r&&listenToNonDelegatedEvent(\"scroll\",e);break;case\"onScrollEnd\":null!=r&&listenToNonDelegatedEvent(\"scrollend\",e);break;case\"onClick\":null!=r&&(e.onclick=noop$1);break;case\"suppressContentEditableWarning\":case\"suppressHydrationWarning\":case\"innerHTML\":case\"ref\":break;case\"innerText\":case\"textContent\":break;default:registrationNameDependencies.hasOwnProperty(n)||(\"o\"!==n[0]||\"n\"!==n[1]||(o=n.endsWith(\"Capture\"),t=n.slice(2,o?n.length-7:void 0),\"function\"==typeof(a=null!=(a=e[internalPropsKey]||null)?a[n]:null)&&e.removeEventListener(t,a,o),\"function\"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,\"\"):setValueForAttribute(e,n,r):(\"function\"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function setInitialProperties(e,t,n){switch(t){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"img\":listenToNonDelegatedEvent(\"error\",e),listenToNonDelegatedEvent(\"load\",e);var r,o=!1,a=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case\"src\":o=!0;break;case\"srcSet\":a=!0;break;case\"children\":case\"dangerouslySetInnerHTML\":throw Error(formatProdErrorMessage(137,t));default:setProp(e,t,r,s,n,null)}}return a&&setProp(e,t,\"srcSet\",n.srcSet,n,null),void(o&&setProp(e,t,\"src\",n.src,n,null));case\"input\":listenToNonDelegatedEvent(\"invalid\",e);var l=r=s=a=null,i=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var c=n[o];if(null!=c)switch(o){case\"name\":a=c;break;case\"type\":s=c;break;case\"checked\":i=c;break;case\"defaultChecked\":u=c;break;case\"value\":r=c;break;case\"defaultValue\":l=c;break;case\"children\":case\"dangerouslySetInnerHTML\":if(null!=c)throw Error(formatProdErrorMessage(137,t));break;default:setProp(e,t,o,c,n,null)}}return initInput(e,r,l,i,u,s,a,!1),void track(e);case\"select\":for(a in listenToNonDelegatedEvent(\"invalid\",e),o=s=r=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case\"value\":r=l;break;case\"defaultValue\":s=l;break;case\"multiple\":o=l;default:setProp(e,t,a,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?updateOptions(e,!!o,t,!1):null!=n&&updateOptions(e,!!o,n,!0));case\"textarea\":for(s in listenToNonDelegatedEvent(\"invalid\",e),r=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case\"value\":o=l;break;case\"defaultValue\":a=l;break;case\"children\":r=l;break;case\"dangerouslySetInnerHTML\":if(null!=l)throw Error(formatProdErrorMessage(91));break;default:setProp(e,t,s,l,n,null)}return initTextarea(e,o,a,r),void track(e);case\"option\":for(i in n)if(n.hasOwnProperty(i)&&null!=(o=n[i]))switch(i){case\"selected\":e.selected=o&&\"function\"!=typeof o&&\"symbol\"!=typeof o;break;default:setProp(e,t,i,o,n,null)}return;case\"dialog\":listenToNonDelegatedEvent(\"cancel\",e),listenToNonDelegatedEvent(\"close\",e);break;case\"iframe\":case\"object\":listenToNonDelegatedEvent(\"load\",e);break;case\"video\":case\"audio\":for(o=0;o<mediaEventTypes.length;o++)listenToNonDelegatedEvent(mediaEventTypes[o],e);break;case\"image\":listenToNonDelegatedEvent(\"error\",e),listenToNonDelegatedEvent(\"load\",e);break;case\"details\":listenToNonDelegatedEvent(\"toggle\",e);break;case\"embed\":case\"source\":case\"link\":listenToNonDelegatedEvent(\"error\",e),listenToNonDelegatedEvent(\"load\",e);case\"area\":case\"base\":case\"br\":case\"col\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"track\":case\"wbr\":case\"menuitem\":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))switch(u){case\"children\":case\"dangerouslySetInnerHTML\":throw Error(formatProdErrorMessage(137,t));default:setProp(e,t,u,o,n,null)}return;default:if(isCustomElement(t)){for(c in n)n.hasOwnProperty(c)&&(void 0!==(o=n[c])&&setPropOnCustomElement(e,t,c,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&setProp(e,t,l,o,n,null))}function updateProperties(e,t,n,r){switch(t){case\"div\":case\"span\":case\"svg\":case\"path\":case\"a\":case\"g\":case\"p\":case\"li\":break;case\"input\":var o=null,a=null,s=null,l=null,i=null,u=null,c=null;for(f in n){var d=n[f];if(n.hasOwnProperty(f)&&null!=d)switch(f){case\"checked\":case\"value\":break;case\"defaultValue\":i=d;default:r.hasOwnProperty(f)||setProp(e,t,f,null,r,d)}}for(var p in r){var f=r[p];if(d=n[p],r.hasOwnProperty(p)&&(null!=f||null!=d))switch(p){case\"type\":a=f;break;case\"name\":o=f;break;case\"checked\":u=f;break;case\"defaultChecked\":c=f;break;case\"value\":s=f;break;case\"defaultValue\":l=f;break;case\"children\":case\"dangerouslySetInnerHTML\":if(null!=f)throw Error(formatProdErrorMessage(137,t));break;default:f!==d&&setProp(e,t,p,f,r,d)}}return void updateInput(e,s,l,i,u,c,a,o);case\"select\":for(a in f=s=l=p=null,n)if(i=n[a],n.hasOwnProperty(a)&&null!=i)switch(a){case\"value\":break;case\"multiple\":f=i;default:r.hasOwnProperty(a)||setProp(e,t,a,null,r,i)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(null!=a||null!=i))switch(o){case\"value\":p=a;break;case\"defaultValue\":l=a;break;case\"multiple\":s=a;default:a!==i&&setProp(e,t,o,a,r,i)}return t=l,n=s,r=f,void(null!=p?updateOptions(e,!!n,p,!1):!!r!=!!n&&(null!=t?updateOptions(e,!!n,t,!0):updateOptions(e,!!n,n?[]:\"\",!1)));case\"textarea\":for(l in f=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case\"value\":case\"children\":break;default:setProp(e,t,l,null,r,o)}for(s in r)if(o=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case\"value\":p=o;break;case\"defaultValue\":f=o;break;case\"children\":break;case\"dangerouslySetInnerHTML\":if(null!=o)throw Error(formatProdErrorMessage(91));break;default:o!==a&&setProp(e,t,s,o,r,a)}return void updateTextarea(e,p,f);case\"option\":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m))switch(m){case\"selected\":e.selected=!1;break;default:setProp(e,t,m,null,r,p)}for(i in r)if(p=r[i],f=n[i],r.hasOwnProperty(i)&&p!==f&&(null!=p||null!=f))switch(i){case\"selected\":e.selected=p&&\"function\"!=typeof p&&\"symbol\"!=typeof p;break;default:setProp(e,t,i,p,r,f)}return;case\"img\":case\"link\":case\"area\":case\"base\":case\"br\":case\"col\":case\"embed\":case\"hr\":case\"keygen\":case\"meta\":case\"param\":case\"source\":case\"track\":case\"wbr\":case\"menuitem\":for(var h in n)p=n[h],n.hasOwnProperty(h)&&null!=p&&!r.hasOwnProperty(h)&&setProp(e,t,h,null,r,p);for(u in r)if(p=r[u],f=n[u],r.hasOwnProperty(u)&&p!==f&&(null!=p||null!=f))switch(u){case\"children\":case\"dangerouslySetInnerHTML\":if(null!=p)throw Error(formatProdErrorMessage(137,t));break;default:setProp(e,t,u,p,r,f)}return;default:if(isCustomElement(t)){for(var g in n)p=n[g],n.hasOwnProperty(g)&&void 0!==p&&!r.hasOwnProperty(g)&&setPropOnCustomElement(e,t,g,void 0,r,p);for(c in r)p=r[c],f=n[c],!r.hasOwnProperty(c)||p===f||void 0===p&&void 0===f||setPropOnCustomElement(e,t,c,p,r,f);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&setProp(e,t,v,null,r,p);for(d in r)p=r[d],f=n[d],!r.hasOwnProperty(d)||p===f||null==p&&null==f||setProp(e,t,d,p,r,f)}var eventsEnabled=null,selectionInformation=null;function getOwnerDocumentFromRootContainer(e){return 9===e.nodeType?e:e.ownerDocument}function getOwnHostContext(e){switch(e){case\"http://www.w3.org/2000/svg\":return 1;case\"http://www.w3.org/1998/Math/MathML\":return 2;default:return 0}}function getChildHostContextProd(e,t){if(0===e)switch(t){case\"svg\":return 1;case\"math\":return 2;default:return 0}return 1===e&&\"foreignObject\"===t?0:e}function shouldSetTextContent(e,t){return\"textarea\"===e||\"noscript\"===e||\"string\"==typeof t.children||\"number\"==typeof t.children||\"bigint\"==typeof t.children||\"object\"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var currentPopstateTransitionEvent=null;function shouldAttemptEagerTransition(){var e=window.event;return e&&\"popstate\"===e.type?e!==currentPopstateTransitionEvent&&(currentPopstateTransitionEvent=e,!0):(currentPopstateTransitionEvent=null,!1)}var scheduleTimeout=\"function\"==typeof setTimeout?setTimeout:void 0,cancelTimeout=\"function\"==typeof clearTimeout?clearTimeout:void 0,localPromise=\"function\"==typeof Promise?Promise:void 0,scheduleMicrotask=\"function\"==typeof queueMicrotask?queueMicrotask:void 0!==localPromise?function(e){return localPromise.resolve(null).then(e).catch(handleErrorInNextTick)}:scheduleTimeout;function handleErrorInNextTick(e){setTimeout(function(){throw e})}function clearSuspenseBoundary(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if(\"/$\"===(n=o.data)){if(0===r)return e.removeChild(o),void retryIfBlockedOn(t);r--}else\"$\"!==n&&\"$?\"!==n&&\"$!\"!==n||r++;n=o}while(n);retryIfBlockedOn(t)}function clearContainerSparingly(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case\"HTML\":case\"HEAD\":case\"BODY\":clearContainerSparingly(n),detachDeletedInstance(n);continue;case\"SCRIPT\":case\"STYLE\":continue;case\"LINK\":if(\"stylesheet\"===n.rel.toLowerCase())continue}e.removeChild(n)}}function canHydrateInstance(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(\"INPUT\"!==e.nodeName||\"hidden\"!==e.type))break}else if(r){if(!e[internalHoistableMarker])switch(t){case\"meta\":if(!e.hasAttribute(\"itemprop\"))break;return e;case\"link\":if(\"stylesheet\"===(a=e.getAttribute(\"rel\"))&&e.hasAttribute(\"data-precedence\"))break;if(a!==o.rel||e.getAttribute(\"href\")!==(null==o.href?null:o.href)||e.getAttribute(\"crossorigin\")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute(\"title\")!==(null==o.title?null:o.title))break;return e;case\"style\":if(e.hasAttribute(\"data-precedence\"))break;return e;case\"script\":if(((a=e.getAttribute(\"src\"))!==(null==o.src?null:o.src)||e.getAttribute(\"type\")!==(null==o.type?null:o.type)||e.getAttribute(\"crossorigin\")!==(null==o.crossOrigin?null:o.crossOrigin))&&a&&e.hasAttribute(\"async\")&&!e.hasAttribute(\"itemprop\"))break;return e;default:return e}}else{if(\"input\"!==t||\"hidden\"!==e.type)return e;var a=null==o.name?null:\"\"+o.name;if(\"hidden\"===o.type&&e.getAttribute(\"name\")===a)return e}if(null===(e=getNextHydratable(e.nextSibling)))break}return null}function canHydrateTextInstance(e,t,n){if(\"\"===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||\"INPUT\"!==e.nodeName||\"hidden\"!==e.type)&&!n)return null;if(null===(e=getNextHydratable(e.nextSibling)))return null}return e}function getNextHydratable(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if(\"$\"===(t=e.data)||\"$!\"===t||\"$?\"===t||\"F!\"===t||\"F\"===t)break;if(\"/$\"===t)return null}}return e}function getParentSuspenseInstance(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(\"$\"===n||\"$!\"===n||\"$?\"===n){if(0===t)return e;t--}else\"/$\"===n&&t++}e=e.previousSibling}return null}function resolveSingletonInstance(e,t,n){switch(t=getOwnerDocumentFromRootContainer(n),e){case\"html\":if(!(e=t.documentElement))throw Error(formatProdErrorMessage(452));return e;case\"head\":if(!(e=t.head))throw Error(formatProdErrorMessage(453));return e;case\"body\":if(!(e=t.body))throw Error(formatProdErrorMessage(454));return e;default:throw Error(formatProdErrorMessage(451))}}var preloadPropsMap=new Map,preconnectsSet=new Set;function getHoistableRoot(e){return\"function\"==typeof e.getRootNode?e.getRootNode():e.ownerDocument}var previousDispatcher=ReactDOMSharedInternals.d;function flushSyncWork(){var e=previousDispatcher.f(),t=flushSyncWork$1();return e||t}function requestFormReset(e){var t=getInstanceFromNode(e);null!==t&&5===t.tag&&\"form\"===t.type?requestFormReset$1(t):previousDispatcher.r(e)}ReactDOMSharedInternals.d={f:flushSyncWork,r:requestFormReset,D:prefetchDNS,C:preconnect,L:preload,m:preloadModule,X:preinitScript,S:preinitStyle,M:preinitModuleScript};var globalDocument=\"undefined\"==typeof document?null:document;function preconnectAs(e,t,n){var r=globalDocument;if(r&&\"string\"==typeof t&&t){var o=escapeSelectorAttributeValueInsideDoubleQuotes(t);o='link[rel=\"'+e+'\"][href=\"'+o+'\"]',\"string\"==typeof n&&(o+='[crossorigin=\"'+n+'\"]'),preconnectsSet.has(o)||(preconnectsSet.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(setInitialProperties(t=r.createElement(\"link\"),\"link\",e),markNodeAsHoistable(t),r.head.appendChild(t)))}}function prefetchDNS(e){previousDispatcher.D(e),preconnectAs(\"dns-prefetch\",e,null)}function preconnect(e,t){previousDispatcher.C(e,t),preconnectAs(\"preconnect\",e,t)}function preload(e,t,n){previousDispatcher.L(e,t,n);var r=globalDocument;if(r&&e&&t){var o='link[rel=\"preload\"][as=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(t)+'\"]';\"image\"===t&&n&&n.imageSrcSet?(o+='[imagesrcset=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(n.imageSrcSet)+'\"]',\"string\"==typeof n.imageSizes&&(o+='[imagesizes=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(n.imageSizes)+'\"]')):o+='[href=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'\"]';var a=o;switch(t){case\"style\":a=getStyleKey(e);break;case\"script\":a=getScriptKey(e)}preloadPropsMap.has(a)||(e=assign({rel:\"preload\",href:\"image\"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),preloadPropsMap.set(a,e),null!==r.querySelector(o)||\"style\"===t&&r.querySelector(getStylesheetSelectorFromKey(a))||\"script\"===t&&r.querySelector(getScriptSelectorFromKey(a))||(setInitialProperties(t=r.createElement(\"link\"),\"link\",e),markNodeAsHoistable(t),r.head.appendChild(t)))}}function preloadModule(e,t){previousDispatcher.m(e,t);var n=globalDocument;if(n&&e){var r=t&&\"string\"==typeof t.as?t.as:\"script\",o='link[rel=\"modulepreload\"][as=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(r)+'\"][href=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'\"]',a=o;switch(r){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":a=getScriptKey(e)}if(!preloadPropsMap.has(a)&&(e=assign({rel:\"modulepreload\",href:e},t),preloadPropsMap.set(a,e),null===n.querySelector(o))){switch(r){case\"audioworklet\":case\"paintworklet\":case\"serviceworker\":case\"sharedworker\":case\"worker\":case\"script\":if(n.querySelector(getScriptSelectorFromKey(a)))return}setInitialProperties(r=n.createElement(\"link\"),\"link\",e),markNodeAsHoistable(r),n.head.appendChild(r)}}}function preinitStyle(e,t,n){previousDispatcher.S(e,t,n);var r=globalDocument;if(r&&e){var o=getResourcesFromRoot(r).hoistableStyles,a=getStyleKey(e);t=t||\"default\";var s=o.get(a);if(!s){var l={loading:0,preload:null};if(s=r.querySelector(getStylesheetSelectorFromKey(a)))l.loading=5;else{e=assign({rel:\"stylesheet\",href:e,\"data-precedence\":t},n),(n=preloadPropsMap.get(a))&&adoptPreloadPropsForStylesheet(e,n);var i=s=r.createElement(\"link\");markNodeAsHoistable(i),setInitialProperties(i,\"link\",e),i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),i.addEventListener(\"load\",function(){l.loading|=1}),i.addEventListener(\"error\",function(){l.loading|=2}),l.loading|=4,insertStylesheet(s,t,r)}s={type:\"stylesheet\",instance:s,count:1,state:l},o.set(a,s)}}}function preinitScript(e,t){previousDispatcher.X(e,t);var n=globalDocument;if(n&&e){var r=getResourcesFromRoot(n).hoistableScripts,o=getScriptKey(e),a=r.get(o);a||((a=n.querySelector(getScriptSelectorFromKey(o)))||(e=assign({src:e,async:!0},t),(t=preloadPropsMap.get(o))&&adoptPreloadPropsForScript(e,t),markNodeAsHoistable(a=n.createElement(\"script\")),setInitialProperties(a,\"link\",e),n.head.appendChild(a)),a={type:\"script\",instance:a,count:1,state:null},r.set(o,a))}}function preinitModuleScript(e,t){previousDispatcher.M(e,t);var n=globalDocument;if(n&&e){var r=getResourcesFromRoot(n).hoistableScripts,o=getScriptKey(e),a=r.get(o);a||((a=n.querySelector(getScriptSelectorFromKey(o)))||(e=assign({src:e,async:!0,type:\"module\"},t),(t=preloadPropsMap.get(o))&&adoptPreloadPropsForScript(e,t),markNodeAsHoistable(a=n.createElement(\"script\")),setInitialProperties(a,\"link\",e),n.head.appendChild(a)),a={type:\"script\",instance:a,count:1,state:null},r.set(o,a))}}function getResource(e,t,n,r){var o=(o=rootInstanceStackCursor.current)?getHoistableRoot(o):null;if(!o)throw Error(formatProdErrorMessage(446));switch(e){case\"meta\":case\"title\":return null;case\"style\":return\"string\"==typeof n.precedence&&\"string\"==typeof n.href?(t=getStyleKey(n.href),(r=(n=getResourcesFromRoot(o).hoistableStyles).get(t))||(r={type:\"style\",instance:null,count:0,state:null},n.set(t,r)),r):{type:\"void\",instance:null,count:0,state:null};case\"link\":if(\"stylesheet\"===n.rel&&\"string\"==typeof n.href&&\"string\"==typeof n.precedence){e=getStyleKey(n.href);var a=getResourcesFromRoot(o).hoistableStyles,s=a.get(e);if(s||(o=o.ownerDocument||o,s={type:\"stylesheet\",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=o.querySelector(getStylesheetSelectorFromKey(e)))&&!a._p&&(s.instance=a,s.state.loading=5),preloadPropsMap.has(e)||(n={rel:\"preload\",as:\"style\",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},preloadPropsMap.set(e,n),a||preloadStylesheet(o,e,n,s.state))),t&&null===r)throw Error(formatProdErrorMessage(528,\"\"));return s}if(t&&null!==r)throw Error(formatProdErrorMessage(529,\"\"));return null;case\"script\":return t=n.async,\"string\"==typeof(n=n.src)&&t&&\"function\"!=typeof t&&\"symbol\"!=typeof t?(t=getScriptKey(n),(r=(n=getResourcesFromRoot(o).hoistableScripts).get(t))||(r={type:\"script\",instance:null,count:0,state:null},n.set(t,r)),r):{type:\"void\",instance:null,count:0,state:null};default:throw Error(formatProdErrorMessage(444,e))}}function getStyleKey(e){return'href=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'\"'}function getStylesheetSelectorFromKey(e){return'link[rel=\"stylesheet\"]['+e+\"]\"}function stylesheetPropsFromRawProps(e){return assign({},e,{\"data-precedence\":e.precedence,precedence:null})}function preloadStylesheet(e,t,n,r){e.querySelector('link[rel=\"preload\"][as=\"style\"]['+t+\"]\")?r.loading=1:(t=e.createElement(\"link\"),r.preload=t,t.addEventListener(\"load\",function(){return r.loading|=1}),t.addEventListener(\"error\",function(){return r.loading|=2}),setInitialProperties(t,\"link\",n),markNodeAsHoistable(t),e.head.appendChild(t))}function getScriptKey(e){return'[src=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(e)+'\"]'}function getScriptSelectorFromKey(e){return\"script[async]\"+e}function acquireResource(e,t,n){if(t.count++,null===t.instance)switch(t.type){case\"style\":var r=e.querySelector('style[data-href~=\"'+escapeSelectorAttributeValueInsideDoubleQuotes(n.href)+'\"]');if(r)return t.instance=r,markNodeAsHoistable(r),r;var o=assign({},n,{\"data-href\":n.href,\"data-precedence\":n.precedence,href:null,precedence:null});return markNodeAsHoistable(r=(e.ownerDocument||e).createElement(\"style\")),setInitialProperties(r,\"style\",o),insertStylesheet(r,n.precedence,e),t.instance=r;case\"stylesheet\":o=getStyleKey(n.href);var a=e.querySelector(getStylesheetSelectorFromKey(o));if(a)return t.state.loading|=4,t.instance=a,markNodeAsHoistable(a),a;r=stylesheetPropsFromRawProps(n),(o=preloadPropsMap.get(o))&&adoptPreloadPropsForStylesheet(r,o),markNodeAsHoistable(a=(e.ownerDocument||e).createElement(\"link\"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),setInitialProperties(a,\"link\",r),t.state.loading|=4,insertStylesheet(a,n.precedence,e),t.instance=a;case\"script\":return a=getScriptKey(n.src),(o=e.querySelector(getScriptSelectorFromKey(a)))?(t.instance=o,markNodeAsHoistable(o),o):(r=n,(o=preloadPropsMap.get(a))&&adoptPreloadPropsForScript(r=assign({},n),o),markNodeAsHoistable(o=(e=e.ownerDocument||e).createElement(\"script\")),setInitialProperties(o,\"link\",r),e.head.appendChild(o),t.instance=o);case\"void\":return null;default:throw Error(formatProdErrorMessage(443,t.type))}else\"stylesheet\"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,insertStylesheet(r,n.precedence,e));return t.instance}function insertStylesheet(e,t,n){for(var r=n.querySelectorAll('link[rel=\"stylesheet\"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,a=o,s=0;s<r.length;s++){var l=r[s];if(l.dataset.precedence===t)a=l;else if(a!==o)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function adoptPreloadPropsForStylesheet(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function adoptPreloadPropsForScript(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tagCaches=null;function getHydratableHoistableCache(e,t,n){if(null===tagCaches){var r=new Map,o=tagCaches=new Map;o.set(n,r)}else(r=(o=tagCaches).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var a=n[o];if(!(a[internalHoistableMarker]||a[internalInstanceKey]||\"link\"===e&&\"stylesheet\"===a.getAttribute(\"rel\"))&&\"http://www.w3.org/2000/svg\"!==a.namespaceURI){var s=a.getAttribute(t)||\"\";s=e+s;var l=r.get(s);l?l.push(a):r.set(s,[a])}}return r}function mountHoistable(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,\"title\"===t?e.querySelector(\"head > title\"):null)}function isHostHoistableType(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case\"meta\":case\"title\":return!0;case\"style\":if(\"string\"!=typeof t.precedence||\"string\"!=typeof t.href||\"\"===t.href)break;return!0;case\"link\":if(\"string\"!=typeof t.rel||\"string\"!=typeof t.href||\"\"===t.href||t.onLoad||t.onError)break;switch(t.rel){case\"stylesheet\":return e=t.disabled,\"string\"==typeof t.precedence&&null==e;default:return!0}case\"script\":if(t.async&&\"function\"!=typeof t.async&&\"symbol\"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&\"string\"==typeof t.src)return!0}return!1}function preloadResource(e){return\"stylesheet\"!==e.type||0!=(3&e.state.loading)}var suspendedState=null;function noop(){}function suspendResource(e,t,n){if(null===suspendedState)throw Error(formatProdErrorMessage(475));var r=suspendedState;if(\"stylesheet\"===t.type&&(\"string\"!=typeof n.media||!1!==matchMedia(n.media).matches)&&0==(4&t.state.loading)){if(null===t.instance){var o=getStyleKey(n.href),a=e.querySelector(getStylesheetSelectorFromKey(o));if(a)return null!==(e=a._p)&&\"object\"==typeof e&&\"function\"==typeof e.then&&(r.count++,r=onUnsuspend.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,void markNodeAsHoistable(a);a=e.ownerDocument||e,n=stylesheetPropsFromRawProps(n),(o=preloadPropsMap.get(o))&&adoptPreloadPropsForStylesheet(n,o),markNodeAsHoistable(a=a.createElement(\"link\"));var s=a;s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),setInitialProperties(a,\"link\",n),t.instance=a}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0==(3&t.state.loading)&&(r.count++,t=onUnsuspend.bind(r),e.addEventListener(\"load\",t),e.addEventListener(\"error\",t))}}function waitForCommitToBeReady(){if(null===suspendedState)throw Error(formatProdErrorMessage(475));var e=suspendedState;return e.stylesheets&&0===e.count&&insertSuspendedStylesheets(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&insertSuspendedStylesheets(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function onUnsuspend(){if(this.count--,0===this.count)if(this.stylesheets)insertSuspendedStylesheets(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var precedencesByRoot=null;function insertSuspendedStylesheets(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,precedencesByRoot=new Map,t.forEach(insertStylesheetIntoRoot,e),precedencesByRoot=null,onUnsuspend.call(e))}function insertStylesheetIntoRoot(e,t){if(!(4&t.state.loading)){var n=precedencesByRoot.get(e);if(n)var r=n.get(null);else{n=new Map,precedencesByRoot.set(e,n);for(var o=e.querySelectorAll(\"link[data-precedence],style[data-precedence]\"),a=0;a<o.length;a++){var s=o[a];\"LINK\"!==s.nodeName&&\"not all\"===s.getAttribute(\"media\")||(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}s=(o=t.instance).getAttribute(\"data-precedence\"),(a=n.get(s)||r)===r&&n.set(null,o),n.set(s,o),this.count++,r=onUnsuspend.bind(this),o.addEventListener(\"load\",r),o.addEventListener(\"error\",r),a?a.parentNode.insertBefore(o,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var HostTransitionContext={$$typeof:REACT_CONTEXT_TYPE,Provider:null,Consumer:null,_currentValue:sharedNotPendingObject,_currentValue2:sharedNotPendingObject,_threadCount:0};function FiberRootNode(e,t,n,r,o,a,s,l){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=createLaneMap(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=createLaneMap(0),this.hiddenUpdates=createLaneMap(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function createFiberRoot(e,t,n,r,o,a,s,l,i,u,c,d){return e=new FiberRootNode(e,t,n,s,l,i,u,d),t=1,!0===a&&(t|=24),a=createFiberImplClass(3,null,null,t),e.current=a,a.stateNode=e,(t=createCache()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},initializeUpdateQueue(a),e}function getContextForSubtree(e){return e?e=emptyContextObject:emptyContextObject}function updateContainerImpl(e,t,n,r,o,a){o=getContextForSubtree(o),null===r.context?r.context=o:r.pendingContext=o,(r=createUpdate(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=enqueueUpdate(e,r,t))&&(scheduleUpdateOnFiber(n,e,t),entangleTransitions(n,e,t))}function markRetryLaneImpl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function markRetryLaneIfNotHydrated(e,t){markRetryLaneImpl(e,t),(e=e.alternate)&&markRetryLaneImpl(e,t)}function attemptContinuousHydration(e){if(13===e.tag){var t=enqueueConcurrentRenderForLane(e,67108864);null!==t&&scheduleUpdateOnFiber(t,e,67108864),markRetryLaneIfNotHydrated(e,67108864)}}var _enabled=!0;function dispatchDiscreteEvent(e,t,n,r){var o=ReactSharedInternals.T;ReactSharedInternals.T=null;var a=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=2,dispatchEvent(e,t,n,r)}finally{ReactDOMSharedInternals.p=a,ReactSharedInternals.T=o}}function dispatchContinuousEvent(e,t,n,r){var o=ReactSharedInternals.T;ReactSharedInternals.T=null;var a=ReactDOMSharedInternals.p;try{ReactDOMSharedInternals.p=8,dispatchEvent(e,t,n,r)}finally{ReactDOMSharedInternals.p=a,ReactSharedInternals.T=o}}function dispatchEvent(e,t,n,r){if(_enabled){var o=findInstanceBlockingEvent(r);if(null===o)dispatchEventForPluginEventSystem(e,t,r,return_targetInst,n),clearIfContinuousEvent(e,r);else if(queueIfContinuousEvent(o,e,t,n,r))r.stopPropagation();else if(clearIfContinuousEvent(e,r),4&t&&-1<discreteReplayableEvents.indexOf(e)){for(;null!==o;){var a=getInstanceFromNode(o);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var s=getHighestPriorityLanes(a.pendingLanes);if(0!==s){var l=a;for(l.pendingLanes|=2,l.entangledLanes|=2;s;){var i=1<<31-clz32(s);l.entanglements[1]|=i,s&=~i}ensureRootIsScheduled(a),0==(6&executionContext)&&(workInProgressRootRenderTargetTime=now()+500,flushSyncWorkAcrossRoots_impl(0,!1))}}break;case 13:null!==(l=enqueueConcurrentRenderForLane(a,2))&&scheduleUpdateOnFiber(l,a,2),flushSyncWork$1(),markRetryLaneIfNotHydrated(a,2)}if(null===(a=findInstanceBlockingEvent(r))&&dispatchEventForPluginEventSystem(e,t,r,return_targetInst,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else dispatchEventForPluginEventSystem(e,t,r,null,n)}}function findInstanceBlockingEvent(e){return findInstanceBlockingTarget(e=getEventTarget(e))}var return_targetInst=null;function findInstanceBlockingTarget(e){if(return_targetInst=null,null!==(e=getClosestInstanceFromNode(e))){var t=getNearestMountedFiber(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=getSuspenseInstanceFromFiber(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return return_targetInst=e,null}function getEventPriority(e){switch(e){case\"beforetoggle\":case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"toggle\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 2;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 8;case\"message\":switch(getCurrentPriorityLevel()){case ImmediatePriority:return 2;case UserBlockingPriority:return 8;case NormalPriority$1:case LowPriority:return 32;case IdlePriority:return 268435456;default:return 32}default:return 32}}var hasScheduledReplayAttempt=!1,queuedFocus=null,queuedDrag=null,queuedMouse=null,queuedPointers=new Map,queuedPointerCaptures=new Map,queuedExplicitHydrationTargets=[],discreteReplayableEvents=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset\".split(\" \");function clearIfContinuousEvent(e,t){switch(e){case\"focusin\":case\"focusout\":queuedFocus=null;break;case\"dragenter\":case\"dragleave\":queuedDrag=null;break;case\"mouseover\":case\"mouseout\":queuedMouse=null;break;case\"pointerover\":case\"pointerout\":queuedPointers.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":queuedPointerCaptures.delete(t.pointerId)}}function accumulateOrCreateContinuousQueuedReplayableEvent(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=getInstanceFromNode(t))&&attemptContinuousHydration(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function queueIfContinuousEvent(e,t,n,r,o){switch(t){case\"focusin\":return queuedFocus=accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus,e,t,n,r,o),!0;case\"dragenter\":return queuedDrag=accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag,e,t,n,r,o),!0;case\"mouseover\":return queuedMouse=accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse,e,t,n,r,o),!0;case\"pointerover\":var a=o.pointerId;return queuedPointers.set(a,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(a)||null,e,t,n,r,o)),!0;case\"gotpointercapture\":return a=o.pointerId,queuedPointerCaptures.set(a,accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(a)||null,e,t,n,r,o)),!0}return!1}function attemptExplicitHydrationTarget(e){var t=getClosestInstanceFromNode(e.target);if(null!==t){var n=getNearestMountedFiber(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=getSuspenseInstanceFromFiber(n)))return e.blockedOn=t,void runWithPriority(e.priority,function(){if(13===n.tag){var e=requestUpdateLane(),t=enqueueConcurrentRenderForLane(n,e);null!==t&&scheduleUpdateOnFiber(t,n,e),markRetryLaneIfNotHydrated(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function attemptReplayContinuousQueuedEvent(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=findInstanceBlockingEvent(e.nativeEvent);if(null!==n)return null!==(t=getInstanceFromNode(n))&&attemptContinuousHydration(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);currentReplayingEvent=r,n.target.dispatchEvent(r),currentReplayingEvent=null,t.shift()}return!0}function attemptReplayContinuousQueuedEventInMap(e,t,n){attemptReplayContinuousQueuedEvent(e)&&n.delete(t)}function replayUnblockedEvents(){hasScheduledReplayAttempt=!1,null!==queuedFocus&&attemptReplayContinuousQueuedEvent(queuedFocus)&&(queuedFocus=null),null!==queuedDrag&&attemptReplayContinuousQueuedEvent(queuedDrag)&&(queuedDrag=null),null!==queuedMouse&&attemptReplayContinuousQueuedEvent(queuedMouse)&&(queuedMouse=null),queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap),queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap)}function scheduleCallbackIfUnblocked(e,t){e.blockedOn===t&&(e.blockedOn=null,hasScheduledReplayAttempt||(hasScheduledReplayAttempt=!0,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,replayUnblockedEvents)))}var lastScheduledReplayQueue=null;function scheduleReplayQueueIfNeeded(e){lastScheduledReplayQueue!==e&&(lastScheduledReplayQueue=e,Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority,function(){lastScheduledReplayQueue===e&&(lastScheduledReplayQueue=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if(\"function\"!=typeof r){if(null===findInstanceBlockingTarget(r||n))continue;break}var a=getInstanceFromNode(n);null!==a&&(e.splice(t,3),t-=3,startHostTransition(a,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function retryIfBlockedOn(e){function t(t){return scheduleCallbackIfUnblocked(t,e)}null!==queuedFocus&&scheduleCallbackIfUnblocked(queuedFocus,e),null!==queuedDrag&&scheduleCallbackIfUnblocked(queuedDrag,e),null!==queuedMouse&&scheduleCallbackIfUnblocked(queuedMouse,e),queuedPointers.forEach(t),queuedPointerCaptures.forEach(t);for(var n=0;n<queuedExplicitHydrationTargets.length;n++){var r=queuedExplicitHydrationTargets[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<queuedExplicitHydrationTargets.length&&null===(n=queuedExplicitHydrationTargets[0]).blockedOn;)attemptExplicitHydrationTarget(n),null===n.blockedOn&&queuedExplicitHydrationTargets.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],a=n[r+1],s=o[internalPropsKey]||null;if(\"function\"==typeof a)s||scheduleReplayQueueIfNeeded(n);else if(s){var l=null;if(a&&a.hasAttribute(\"formAction\")){if(o=a,s=a[internalPropsKey]||null)l=s.formAction;else if(null!==findInstanceBlockingTarget(o))continue}else l=s.action;\"function\"==typeof l?n[r+1]=l:(n.splice(r,3),r-=3),scheduleReplayQueueIfNeeded(n)}}}function ReactDOMRoot(e){this._internalRoot=e}function ReactDOMHydrationRoot(e){this._internalRoot=e}ReactDOMHydrationRoot.prototype.render=ReactDOMRoot.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(formatProdErrorMessage(409));updateContainerImpl(t.current,requestUpdateLane(),e,t,null,null)},ReactDOMHydrationRoot.prototype.unmount=ReactDOMRoot.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&flushPassiveEffects(),updateContainerImpl(e.current,2,null,e,null,null),flushSyncWork$1(),t[internalContainerInstanceKey]=null}},ReactDOMHydrationRoot.prototype.unstable_scheduleHydration=function(e){if(e){var t=resolveUpdatePriority();e={blockedOn:null,target:e,priority:t};for(var n=0;n<queuedExplicitHydrationTargets.length&&0!==t&&t<queuedExplicitHydrationTargets[n].priority;n++);queuedExplicitHydrationTargets.splice(n,0,e),0===n&&attemptExplicitHydrationTarget(e)}};var isomorphicReactPackageVersion$jscomp$inline_1686=React.version;if(\"19.0.0\"!==isomorphicReactPackageVersion$jscomp$inline_1686)throw Error(formatProdErrorMessage(527,isomorphicReactPackageVersion$jscomp$inline_1686,\"19.0.0\"));ReactDOMSharedInternals.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if(\"function\"==typeof e.render)throw Error(formatProdErrorMessage(188));throw e=Object.keys(e).join(\",\"),Error(formatProdErrorMessage(268,e))}return e=null===(e=null!==(e=findCurrentFiberUsingSlowPath(t))?findCurrentHostFiberImpl(e):null)?null:e.stateNode};var internals$jscomp$inline_2165={bundleType:0,version:\"19.0.0\",rendererPackageName:\"react-dom\",currentDispatcherRef:ReactSharedInternals,findFiberByHostInstance:getClosestInstanceFromNode,reconcilerVersion:\"19.0.0\"};if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var hook$jscomp$inline_2166=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hook$jscomp$inline_2166.isDisabled&&hook$jscomp$inline_2166.supportsFiber)try{rendererID=hook$jscomp$inline_2166.inject(internals$jscomp$inline_2165),injectedHook=hook$jscomp$inline_2166}catch(e){}}exports.createRoot=function(e,t){if(!isValidContainer(e))throw Error(formatProdErrorMessage(299));var n=!1,r=\"\",o=defaultOnUncaughtError,a=defaultOnCaughtError,s=defaultOnRecoverableError,l=null;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&(l=t.unstable_transitionCallbacks)),t=createFiberRoot(e,1,!1,null,null,n,r,o,a,s,l,null),e[internalContainerInstanceKey]=t.current,listenToAllSupportedEvents(8===e.nodeType?e.parentNode:e),new ReactDOMRoot(t)},exports.hydrateRoot=function(e,t,n){if(!isValidContainer(e))throw Error(formatProdErrorMessage(299));var r=!1,o=\"\",a=defaultOnUncaughtError,s=defaultOnCaughtError,l=defaultOnRecoverableError,i=null,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(a=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(l=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&(i=n.unstable_transitionCallbacks),void 0!==n.formState&&(u=n.formState)),(t=createFiberRoot(e,1,!0,t,null!=n?n:null,r,o,a,s,l,i,u)).context=getContextForSubtree(null),n=t.current,(o=createUpdate(r=requestUpdateLane())).callback=null,enqueueUpdate(n,o,r),t.current.lanes=r,markRootUpdated$1(t,r),ensureRootIsScheduled(t),e[internalContainerInstanceKey]=t.current,listenToAllSupportedEvents(e),new ReactDOMHydrationRoot(t)},exports.version=\"19.0.0\";","type":"application/javascript","module-type":"library"},"react-dom":{"title":"react-dom","text":"\"use strict\";var React=require(\"react\");function formatProdErrorMessage(r){var e=\"https://react.dev/errors/\"+r;if(1<arguments.length){e+=\"?args[]=\"+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+=\"&args[]=\"+encodeURIComponent(arguments[t])}return\"Minified React error #\"+r+\"; visit \"+e+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}function noop(){}var Internals={d:{f:noop,r:function(){throw Error(formatProdErrorMessage(522))},D:noop,C:noop,L:noop,m:noop,X:noop,S:noop,M:noop},p:0,findDOMNode:null},REACT_PORTAL_TYPE=Symbol.for(\"react.portal\");function createPortal$1(r,e,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:REACT_PORTAL_TYPE,key:null==n?null:\"\"+n,children:r,containerInfo:e,implementation:t}}var ReactSharedInternals=React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function getCrossOriginStringAs(r,e){return\"font\"===r?\"\":\"string\"==typeof e?\"use-credentials\"===e?e:\"\":void 0}exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Internals,exports.createPortal=function(r,e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)throw Error(formatProdErrorMessage(299));return createPortal$1(r,e,null,t)},exports.flushSync=function(r){var e=ReactSharedInternals.T,t=Internals.p;try{if(ReactSharedInternals.T=null,Internals.p=2,r)return r()}finally{ReactSharedInternals.T=e,Internals.p=t,Internals.d.f()}},exports.preconnect=function(r,e){\"string\"==typeof r&&(e?e=\"string\"==typeof(e=e.crossOrigin)?\"use-credentials\"===e?e:\"\":void 0:e=null,Internals.d.C(r,e))},exports.prefetchDNS=function(r){\"string\"==typeof r&&Internals.d.D(r)},exports.preinit=function(r,e){if(\"string\"==typeof r&&e&&\"string\"==typeof e.as){var t=e.as,n=getCrossOriginStringAs(t,e.crossOrigin),i=\"string\"==typeof e.integrity?e.integrity:void 0,o=\"string\"==typeof e.fetchPriority?e.fetchPriority:void 0;\"style\"===t?Internals.d.S(r,\"string\"==typeof e.precedence?e.precedence:void 0,{crossOrigin:n,integrity:i,fetchPriority:o}):\"script\"===t&&Internals.d.X(r,{crossOrigin:n,integrity:i,fetchPriority:o,nonce:\"string\"==typeof e.nonce?e.nonce:void 0})}},exports.preinitModule=function(r,e){if(\"string\"==typeof r)if(\"object\"==typeof e&&null!==e){if(null==e.as||\"script\"===e.as){var t=getCrossOriginStringAs(e.as,e.crossOrigin);Internals.d.M(r,{crossOrigin:t,integrity:\"string\"==typeof e.integrity?e.integrity:void 0,nonce:\"string\"==typeof e.nonce?e.nonce:void 0})}}else null==e&&Internals.d.M(r)},exports.preload=function(r,e){if(\"string\"==typeof r&&\"object\"==typeof e&&null!==e&&\"string\"==typeof e.as){var t=e.as,n=getCrossOriginStringAs(t,e.crossOrigin);Internals.d.L(r,t,{crossOrigin:n,integrity:\"string\"==typeof e.integrity?e.integrity:void 0,nonce:\"string\"==typeof e.nonce?e.nonce:void 0,type:\"string\"==typeof e.type?e.type:void 0,fetchPriority:\"string\"==typeof e.fetchPriority?e.fetchPriority:void 0,referrerPolicy:\"string\"==typeof e.referrerPolicy?e.referrerPolicy:void 0,imageSrcSet:\"string\"==typeof e.imageSrcSet?e.imageSrcSet:void 0,imageSizes:\"string\"==typeof e.imageSizes?e.imageSizes:void 0,media:\"string\"==typeof e.media?e.media:void 0})}},exports.preloadModule=function(r,e){if(\"string\"==typeof r)if(e){var t=getCrossOriginStringAs(e.as,e.crossOrigin);Internals.d.m(r,{as:\"string\"==typeof e.as&&\"script\"!==e.as?e.as:void 0,crossOrigin:t,integrity:\"string\"==typeof e.integrity?e.integrity:void 0})}else Internals.d.m(r)},exports.requestFormReset=function(r){Internals.d.r(r)},exports.unstable_batchedUpdates=function(r,e){return r(e)},exports.useFormState=function(r,e,t){return ReactSharedInternals.H.useFormState(r,e,t)},exports.useFormStatus=function(){return ReactSharedInternals.H.useHostTransitionStatus()},exports.version=\"19.0.0\";","type":"application/javascript","module-type":"library"},"react/jsx-runtime.js":{"title":"react/jsx-runtime.js","text":"\"use strict\";var REACT_ELEMENT_TYPE=Symbol.for(\"react.transitional.element\"),REACT_FRAGMENT_TYPE=Symbol.for(\"react.fragment\");function jsxProd(e,r,o){var t=null;if(void 0!==o&&(t=\"\"+o),void 0!==r.key&&(t=\"\"+r.key),\"key\"in r)for(var E in o={},r)\"key\"!==E&&(o[E]=r[E]);else o=r;return r=o.ref,{$$typeof:REACT_ELEMENT_TYPE,type:e,key:t,ref:void 0!==r?r:null,props:o}}exports.Fragment=REACT_FRAGMENT_TYPE,exports.jsx=jsxProd,exports.jsxs=jsxProd;","type":"application/javascript","module-type":"library"},"react-scheduler.js":{"title":"react-scheduler.js","text":"\"use strict\";function push(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(!(0<compare(n,t)))break e;e[o]=t,e[r]=n,r=o}}function peek(e){return 0===e.length?null:e[0]}function pop(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,a=n>>>1;o<a;){var i=2*(o+1)-1,l=e[i],u=i+1,s=e[u];if(0>compare(l,r))u<n&&0>compare(s,l)?(e[o]=s,e[u]=r,o=u):(e[o]=l,e[i]=r,o=i);else{if(!(u<n&&0>compare(s,r)))break e;e[o]=s,e[u]=r,o=u}}}return t}function compare(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(exports.unstable_now=void 0,\"object\"==typeof performance&&\"function\"==typeof performance.now){var localPerformance=performance;exports.unstable_now=function(){return localPerformance.now()}}else{var localDate=Date,initialTime=localDate.now();exports.unstable_now=function(){return localDate.now()-initialTime}}var taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=3,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1,localSetTimeout=\"function\"==typeof setTimeout?setTimeout:null,localClearTimeout=\"function\"==typeof clearTimeout?clearTimeout:null,localSetImmediate=\"undefined\"!=typeof setImmediate?setImmediate:null;function advanceTimers(e){for(var t=peek(timerQueue);null!==t;){if(null===t.callback)pop(timerQueue);else{if(!(t.startTime<=e))break;pop(timerQueue),t.sortIndex=t.expirationTime,push(taskQueue,t)}t=peek(timerQueue)}}function handleTimeout(e){if(isHostTimeoutScheduled=!1,advanceTimers(e),!isHostCallbackScheduled)if(null!==peek(taskQueue))isHostCallbackScheduled=!0,requestHostCallback();else{var t=peek(timerQueue);null!==t&&requestHostTimeout(handleTimeout,t.startTime-e)}}var schedulePerformWorkUntilDeadline,isMessageLoopRunning=!1,taskTimeoutID=-1,frameInterval=5,startTime=-1;function shouldYieldToHost(){return!(exports.unstable_now()-startTime<frameInterval)}function performWorkUntilDeadline(){if(isMessageLoopRunning){var e=exports.unstable_now();startTime=e;var t=!0;try{e:{isHostCallbackScheduled=!1,isHostTimeoutScheduled&&(isHostTimeoutScheduled=!1,localClearTimeout(taskTimeoutID),taskTimeoutID=-1),isPerformingWork=!0;var r=currentPriorityLevel;try{t:{for(advanceTimers(e),currentTask=peek(taskQueue);null!==currentTask&&!(currentTask.expirationTime>e&&shouldYieldToHost());){var o=currentTask.callback;if(\"function\"==typeof o){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var n=o(currentTask.expirationTime<=e);if(e=exports.unstable_now(),\"function\"==typeof n){currentTask.callback=n,advanceTimers(e),t=!0;break t}currentTask===peek(taskQueue)&&pop(taskQueue),advanceTimers(e)}else pop(taskQueue);currentTask=peek(taskQueue)}if(null!==currentTask)t=!0;else{var a=peek(timerQueue);null!==a&&requestHostTimeout(handleTimeout,a.startTime-e),t=!1}}break e}finally{currentTask=null,currentPriorityLevel=r,isPerformingWork=!1}t=void 0}}finally{t?schedulePerformWorkUntilDeadline():isMessageLoopRunning=!1}}}if(\"function\"==typeof localSetImmediate)schedulePerformWorkUntilDeadline=function(){localSetImmediate(performWorkUntilDeadline)};else if(\"undefined\"!=typeof MessageChannel){var channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,schedulePerformWorkUntilDeadline=function(){port.postMessage(null)}}else schedulePerformWorkUntilDeadline=function(){localSetTimeout(performWorkUntilDeadline,0)};function requestHostCallback(){isMessageLoopRunning||(isMessageLoopRunning=!0,schedulePerformWorkUntilDeadline())}function requestHostTimeout(e,t){taskTimeoutID=localSetTimeout(function(){e(exports.unstable_now())},t)}exports.unstable_IdlePriority=5,exports.unstable_ImmediatePriority=1,exports.unstable_LowPriority=4,exports.unstable_NormalPriority=3,exports.unstable_Profiling=null,exports.unstable_UserBlockingPriority=2,exports.unstable_cancelCallback=function(e){e.callback=null},exports.unstable_continueExecution=function(){isHostCallbackScheduled||isPerformingWork||(isHostCallbackScheduled=!0,requestHostCallback())},exports.unstable_forceFrameRate=function(e){0>e||125<e?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):frameInterval=0<e?Math.floor(1e3/e):5},exports.unstable_getCurrentPriorityLevel=function(){return currentPriorityLevel},exports.unstable_getFirstCallbackNode=function(){return peek(taskQueue)},exports.unstable_next=function(e){switch(currentPriorityLevel){case 1:case 2:case 3:var t=3;break;default:t=currentPriorityLevel}var r=currentPriorityLevel;currentPriorityLevel=t;try{return e()}finally{currentPriorityLevel=r}},exports.unstable_pauseExecution=function(){},exports.unstable_requestPaint=function(){},exports.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=currentPriorityLevel;currentPriorityLevel=e;try{return t()}finally{currentPriorityLevel=r}},exports.unstable_scheduleCallback=function(e,t,r){var o=exports.unstable_now();switch(\"object\"==typeof r&&null!==r?r=\"number\"==typeof(r=r.delay)&&0<r?o+r:o:r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return e={id:taskIdCounter++,callback:t,priorityLevel:e,startTime:r,expirationTime:n=r+n,sortIndex:-1},r>o?(e.sortIndex=r,push(timerQueue,e),null===peek(taskQueue)&&e===peek(timerQueue)&&(isHostTimeoutScheduled?(localClearTimeout(taskTimeoutID),taskTimeoutID=-1):isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,r-o))):(e.sortIndex=n,push(taskQueue,e),isHostCallbackScheduled||isPerformingWork||(isHostCallbackScheduled=!0,requestHostCallback())),e},exports.unstable_shouldYield=shouldYieldToHost,exports.unstable_wrapCallback=function(e){var t=currentPriorityLevel;return function(){var r=currentPriorityLevel;currentPriorityLevel=t;try{return e.apply(this,arguments)}finally{currentPriorityLevel=r}}};","type":"application/javascript","module-type":"library"},"react":{"title":"react","text":"\"use strict\";var REACT_ELEMENT_TYPE=Symbol.for(\"react.transitional.element\"),REACT_PORTAL_TYPE=Symbol.for(\"react.portal\"),REACT_FRAGMENT_TYPE=Symbol.for(\"react.fragment\"),REACT_STRICT_MODE_TYPE=Symbol.for(\"react.strict_mode\"),REACT_PROFILER_TYPE=Symbol.for(\"react.profiler\"),REACT_CONSUMER_TYPE=Symbol.for(\"react.consumer\"),REACT_CONTEXT_TYPE=Symbol.for(\"react.context\"),REACT_FORWARD_REF_TYPE=Symbol.for(\"react.forward_ref\"),REACT_SUSPENSE_TYPE=Symbol.for(\"react.suspense\"),REACT_MEMO_TYPE=Symbol.for(\"react.memo\"),REACT_LAZY_TYPE=Symbol.for(\"react.lazy\"),MAYBE_ITERATOR_SYMBOL=Symbol.iterator;function getIteratorFn(e){return null===e||\"object\"!=typeof e?null:\"function\"==typeof(e=MAYBE_ITERATOR_SYMBOL&&e[MAYBE_ITERATOR_SYMBOL]||e[\"@@iterator\"])?e:null}var ReactNoopUpdateQueue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},assign=Object.assign,emptyObject={};function Component(e,t,r){this.props=e,this.context=t,this.refs=emptyObject,this.updater=r||ReactNoopUpdateQueue}function ComponentDummy(){}function PureComponent(e,t,r){this.props=e,this.context=t,this.refs=emptyObject,this.updater=r||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(e,t){if(\"object\"!=typeof e&&\"function\"!=typeof e&&null!=e)throw Error(\"takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,e,t,\"setState\")},Component.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")},ComponentDummy.prototype=Component.prototype;var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,assign(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;var isArrayImpl=Array.isArray,ReactSharedInternals={H:null,A:null,T:null,S:null},hasOwnProperty=Object.prototype.hasOwnProperty;function ReactElement(e,t,r,n,o,a){return r=a.ref,{$$typeof:REACT_ELEMENT_TYPE,type:e,key:t,ref:void 0!==r?r:null,props:a}}function cloneAndReplaceKey(e,t){return ReactElement(e.type,t,void 0,void 0,void 0,e.props)}function isValidElement(e){return\"object\"==typeof e&&null!==e&&e.$$typeof===REACT_ELEMENT_TYPE}function escape(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+e.replace(/[=:]/g,function(e){return t[e]})}var userProvidedKeyEscapeRegex=/\\/+/g;function getElementKey(e,t){return\"object\"==typeof e&&null!==e&&null!=e.key?escape(\"\"+e.key):t.toString(36)}function noop$1(){}function resolveThenable(e){switch(e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason;default:switch(\"string\"==typeof e.status?e.then(noop$1,noop$1):(e.status=\"pending\",e.then(function(t){\"pending\"===e.status&&(e.status=\"fulfilled\",e.value=t)},function(t){\"pending\"===e.status&&(e.status=\"rejected\",e.reason=t)})),e.status){case\"fulfilled\":return e.value;case\"rejected\":throw e.reason}}throw e}function mapIntoArray(e,t,r,n,o){var a=typeof e;\"undefined\"!==a&&\"boolean\"!==a||(e=null);var u=!1;if(null===e)u=!0;else switch(a){case\"bigint\":case\"string\":case\"number\":u=!0;break;case\"object\":switch(e.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:u=!0;break;case REACT_LAZY_TYPE:return mapIntoArray((u=e._init)(e._payload),t,r,n,o)}}if(u)return o=o(e),u=\"\"===n?\".\"+getElementKey(e,0):n,isArrayImpl(o)?(r=\"\",null!=u&&(r=u.replace(userProvidedKeyEscapeRegex,\"$&/\")+\"/\"),mapIntoArray(o,t,r,\"\",function(e){return e})):null!=o&&(isValidElement(o)&&(o=cloneAndReplaceKey(o,r+(null==o.key||e&&e.key===o.key?\"\":(\"\"+o.key).replace(userProvidedKeyEscapeRegex,\"$&/\")+\"/\")+u)),t.push(o)),1;u=0;var s=\"\"===n?\".\":n+\":\";if(isArrayImpl(e))for(var c=0;c<e.length;c++)u+=mapIntoArray(n=e[c],t,r,a=s+getElementKey(n,c),o);else if(\"function\"==typeof(c=getIteratorFn(e)))for(e=c.call(e),c=0;!(n=e.next()).done;)u+=mapIntoArray(n=n.value,t,r,a=s+getElementKey(n,c++),o);else if(\"object\"===a){if(\"function\"==typeof e.then)return mapIntoArray(resolveThenable(e),t,r,n,o);throw t=String(e),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===t?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t)+\"). If you meant to render a collection of children, use an array instead.\")}return u}function mapChildren(e,t,r){if(null==e)return e;var n=[],o=0;return mapIntoArray(e,n,\"\",\"\",function(e){return t.call(r,e,o++)}),n}function lazyInitializer(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var reportGlobalError=\"function\"==typeof reportError?reportError:function(e){if(\"object\"==typeof window&&\"function\"==typeof window.ErrorEvent){var t=new window.ErrorEvent(\"error\",{bubbles:!0,cancelable:!0,message:\"object\"==typeof e&&null!==e&&\"string\"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(\"object\"==typeof process&&\"function\"==typeof process.emit)return void process.emit(\"uncaughtException\",e);console.error(e)};function noop(){}exports.Children={map:mapChildren,forEach:function(e,t,r){mapChildren(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return mapChildren(e,function(){t++}),t},toArray:function(e){return mapChildren(e,function(e){return e})||[]},only:function(e){if(!isValidElement(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},exports.Component=Component,exports.Fragment=REACT_FRAGMENT_TYPE,exports.Profiler=REACT_PROFILER_TYPE,exports.PureComponent=PureComponent,exports.StrictMode=REACT_STRICT_MODE_TYPE,exports.Suspense=REACT_SUSPENSE_TYPE,exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ReactSharedInternals,exports.act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},exports.cache=function(e){return function(){return e.apply(null,arguments)}},exports.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error(\"The argument must be a React element, but you passed \"+e+\".\");var n=assign({},e.props),o=e.key,a=void 0;if(null!=t)for(u in void 0!==t.ref&&(a=void 0),void 0!==t.key&&(o=\"\"+t.key),t)!hasOwnProperty.call(t,u)||\"key\"===u||\"__self\"===u||\"__source\"===u||\"ref\"===u&&void 0===t.ref||(n[u]=t[u]);var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];n.children=s}return ReactElement(e.type,o,void 0,void 0,a,n)},exports.createContext=function(e){return(e={$$typeof:REACT_CONTEXT_TYPE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:REACT_CONSUMER_TYPE,_context:e},e},exports.createElement=function(e,t,r){var n,o={},a=null;if(null!=t)for(n in void 0!==t.key&&(a=\"\"+t.key),t)hasOwnProperty.call(t,n)&&\"key\"!==n&&\"__self\"!==n&&\"__source\"!==n&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return ReactElement(e,a,void 0,void 0,null,o)},exports.createRef=function(){return{current:null}},exports.forwardRef=function(e){return{$$typeof:REACT_FORWARD_REF_TYPE,render:e}},exports.isValidElement=isValidElement,exports.lazy=function(e){return{$$typeof:REACT_LAZY_TYPE,_payload:{_status:-1,_result:e},_init:lazyInitializer}},exports.memo=function(e,t){return{$$typeof:REACT_MEMO_TYPE,type:e,compare:void 0===t?null:t}},exports.startTransition=function(e){var t=ReactSharedInternals.T,r={};ReactSharedInternals.T=r;try{var n=e(),o=ReactSharedInternals.S;null!==o&&o(r,n),\"object\"==typeof n&&null!==n&&\"function\"==typeof n.then&&n.then(noop,reportGlobalError)}catch(e){reportGlobalError(e)}finally{ReactSharedInternals.T=t}},exports.unstable_useCacheRefresh=function(){return ReactSharedInternals.H.useCacheRefresh()},exports.use=function(e){return ReactSharedInternals.H.use(e)},exports.useActionState=function(e,t,r){return ReactSharedInternals.H.useActionState(e,t,r)},exports.useCallback=function(e,t){return ReactSharedInternals.H.useCallback(e,t)},exports.useContext=function(e){return ReactSharedInternals.H.useContext(e)},exports.useDebugValue=function(){},exports.useDeferredValue=function(e,t){return ReactSharedInternals.H.useDeferredValue(e,t)},exports.useEffect=function(e,t){return ReactSharedInternals.H.useEffect(e,t)},exports.useId=function(){return ReactSharedInternals.H.useId()},exports.useImperativeHandle=function(e,t,r){return ReactSharedInternals.H.useImperativeHandle(e,t,r)},exports.useInsertionEffect=function(e,t){return ReactSharedInternals.H.useInsertionEffect(e,t)},exports.useLayoutEffect=function(e,t){return ReactSharedInternals.H.useLayoutEffect(e,t)},exports.useMemo=function(e,t){return ReactSharedInternals.H.useMemo(e,t)},exports.useOptimistic=function(e,t){return ReactSharedInternals.H.useOptimistic(e,t)},exports.useReducer=function(e,t,r){return ReactSharedInternals.H.useReducer(e,t,r)},exports.useRef=function(e){return ReactSharedInternals.H.useRef(e)},exports.useState=function(e){return ReactSharedInternals.H.useState(e)},exports.useSyncExternalStore=function(e,t,r){return ReactSharedInternals.H.useSyncExternalStore(e,t,r)},exports.useTransition=function(){return ReactSharedInternals.H.useTransition()},exports.version=\"19.0.0\";","type":"application/javascript","module-type":"library"},"$:/plugins/linonetwo/tw-react/readme":{"title":"$:/plugins/linonetwo/tw-react/readme","creator":"LinOnetwo","type":"text/vnd.tiddlywiki","text":"!! What is this\n\nThis is a dependency of slate-write WYSIWYG editor and flowtiwi-sidebar and many other dynamic widgets. This plugin enable powerful data operation and UI operation of those plugins, thus become a prerequisite of those plugins.\n\n!! Example\n\n{{$:/plugins/linonetwo/tw-react/docs/example}}\n\n!! Usage\n\n<<tree prefix:\"$:/plugins/linonetwo/tw-react/docs/\">>\n"},"$:/plugins/linonetwo/tw-react/tree":{"title":"$:/plugins/linonetwo/tw-react/tree","type":"text/vnd.tiddlywiki","text":"<<tree prefix:\"$:/plugins/linonetwo/tw-react/\">>"},"$:/plugins/linonetwo/tw-react/widget.js":{"title":"$:/plugins/linonetwo/tw-react/widget.js","text":"\"use strict\";\n\n// node_modules/.pnpm/@wessberg+connection-observer@1.0.5_patch_hash=fr7zjraqbqi6pqg33c2znbtaw4/node_modules/@wessberg/connection-observer/dist/index.js\nvar ORIGINAL_ATTACH_SHADOW = typeof Element !== \"undefined\" ? Element.prototype.attachShadow : void 0;\nfunction isShady() {\n return typeof window.ShadyDOM !== \"undefined\" && typeof ShadowRoot !== \"undefined\";\n}\nfunction supportsShadowRoots() {\n return typeof ShadowRoot !== \"undefined\";\n}\nfunction patchElementPrototypeAttachShadow(callback) {\n if (ORIGINAL_ATTACH_SHADOW == null || isShady() || typeof Element === \"undefined\")\n return;\n Element.prototype.attachShadow = function(shadowRootInitDict) {\n const shadowRoot = ORIGINAL_ATTACH_SHADOW.call(this, shadowRootInitDict);\n callback(shadowRoot);\n return shadowRoot;\n };\n}\nfunction createPausableQueue(job, ...queueItems) {\n const queue = new Set(queueItems);\n let running = false;\n const flush = () => {\n for (const queuedNode of queue) {\n job(queuedNode);\n }\n queue.clear();\n };\n return {\n isRunning() {\n return running;\n },\n schedule(node) {\n queue.add(node);\n if (running) {\n flush();\n }\n },\n stop() {\n running = false;\n },\n run() {\n if (running)\n return;\n running = true;\n flush();\n }\n };\n}\nvar MUTATION_OBSERVER_INIT = {\n childList: true,\n subtree: true\n};\nvar nextMicrotask = (func) => {\n if (typeof queueMicrotask !== \"undefined\")\n queueMicrotask(func);\n else if (typeof Promise !== \"undefined\")\n Promise.resolve().then(() => func());\n else\n setTimeout(() => func(), 0);\n};\nfunction nodeListToArray(nodeList) {\n if (typeof Symbol !== \"undefined\" && nodeList[Symbol.iterator] != null) {\n return [...nodeList];\n } else {\n const arr = [];\n for (let i = 0; i < nodeList.length; i++) {\n arr[i] = nodeList[i];\n }\n return arr;\n }\n}\nfunction queryRoot(root, query) {\n if (isShady()) {\n return new Set(nodeListToArray(window.ShadyDOM.nativeMethods.querySelectorAll.call(document.documentElement, query)));\n }\n return new Set(!(\"querySelectorAll\" in root) ? [] : nodeListToArray(root.querySelectorAll(query)));\n}\nfunction mergeNodes(a, b) {\n return /* @__PURE__ */ new Set([...a == null ? [] : a, ...b == null ? [] : b]);\n}\nfunction isDocumentOrShadowRoot(root) {\n return \"activeElement\" in root;\n}\nfunction observeMissingRoots(root = document.documentElement) {\n if (isDocumentOrShadowRoot(root)) {\n observeRoot(root);\n }\n if (isShady() && root instanceof ShadowRoot)\n return;\n if (!supportsShadowRoots())\n return;\n const childNodes = root.childNodes;\n const shadowRoot = \"shadowRoot\" in root && root.shadowRoot != null ? [root.shadowRoot] : [];\n for (const node of [...childNodes, ...shadowRoot]) {\n observeMissingRoots(node);\n }\n}\nfunction isConnected(node) {\n if (\"isConnected\" in Node.prototype)\n return node.isConnected;\n return node.ownerDocument == null || !(node.ownerDocument.compareDocumentPosition(node) & node.DOCUMENT_POSITION_DISCONNECTED);\n}\nvar CONNECTION_OBSERVER_INTERNALS_MAP = /* @__PURE__ */ new Map();\nfunction initializeConnectionObserver(observer, callback) {\n const queue = /* @__PURE__ */ new Set();\n const observedTargets = /* @__PURE__ */ new Set();\n const rootToQuerySelectorToMatchedNodesMap = /* @__PURE__ */ new Map();\n const nodeToLastConnectionValueMap = /* @__PURE__ */ new WeakMap();\n let scheduled = false;\n let flushing = false;\n let hasFoundMissingRoots = false;\n const flush = () => {\n flushing = true;\n const arr = [...queue];\n if (arr.length > 0) {\n callback(arr, observer);\n }\n queue.clear();\n scheduled = false;\n flushing = false;\n };\n const scheduleFlush = () => {\n if (!scheduled) {\n scheduled = true;\n nextMicrotask(flush);\n }\n };\n const addToQueue = (entry) => {\n queue.add(entry);\n if (!flushing) {\n scheduleFlush();\n }\n };\n const clearQueue = () => {\n const items = [...queue];\n queue.clear();\n return items;\n };\n const clearObservedTargets = () => {\n observedTargets.clear();\n };\n const queryRootAndHandleMutationChanges = (root, query) => {\n let oldQuerySelectorMap = rootToQuerySelectorToMatchedNodesMap.get(root);\n const currentNodes = queryRoot(root, query);\n const oldNodes = oldQuerySelectorMap == null ? void 0 : oldQuerySelectorMap.get(query);\n const mergedNodes = mergeNodes(currentNodes, oldNodes);\n handleMutationChange(mergedNodes);\n if (oldQuerySelectorMap == null) {\n oldQuerySelectorMap = /* @__PURE__ */ new Map();\n rootToQuerySelectorToMatchedNodesMap.set(root, oldQuerySelectorMap);\n }\n oldQuerySelectorMap.set(query, currentNodes);\n };\n const handleMutationChange = (targetNodes) => {\n for (const targetNode of targetNodes) {\n const lastValue = nodeToLastConnectionValueMap.get(targetNode);\n const isTargetNodeConnected = isConnected(targetNode);\n if (lastValue !== isTargetNodeConnected) {\n nodeToLastConnectionValueMap.set(targetNode, isTargetNodeConnected);\n addToQueue({\n connected: isTargetNodeConnected,\n target: targetNode\n });\n }\n }\n };\n const addObservedTarget = (target) => {\n rootObserverQueue.run();\n if (!hasFoundMissingRoots) {\n hasFoundMissingRoots = true;\n observeMissingRoots();\n }\n observedTargets.add(target);\n if (typeof target !== \"string\") {\n handleMutationChange([target]);\n } else {\n for (const root of OBSERVED_ROOTS) {\n queryRootAndHandleMutationChanges(root, target);\n }\n }\n };\n const internals = {\n observedTargets,\n queryRootAndHandleMutationChanges,\n handleMutationChange,\n addObservedTarget,\n clearObservedTargets,\n clearQueue\n };\n CONNECTION_OBSERVER_INTERNALS_MAP.set(observer, internals);\n}\nvar mutationCallback = (mutations) => {\n for (const mutation of mutations) {\n if (mutation.type !== \"childList\")\n continue;\n for (const observer of CONNECTION_OBSERVER_INTERNALS_MAP.values()) {\n for (const target of observer.observedTargets) {\n if (typeof target === \"string\") {\n observer.queryRootAndHandleMutationChanges(mutation.target, target);\n } else {\n observer.handleMutationChange([target]);\n }\n }\n }\n }\n};\nvar OBSERVED_ROOTS = /* @__PURE__ */ new Set();\nvar observeRoot = /* @__PURE__ */ (() => {\n let instance;\n return function(root) {\n if (OBSERVED_ROOTS.has(root))\n return;\n OBSERVED_ROOTS.add(root);\n if (instance == null) {\n instance = new MutationObserver(mutationCallback);\n }\n instance.observe(root, MUTATION_OBSERVER_INIT);\n };\n})();\nvar rootObserverQueue = createPausableQueue(observeRoot, typeof document !== \"undefined\" ? document.documentElement : void 0);\nvar ConnectionObserver = class _ConnectionObserver {\n constructor(callback) {\n if (new.target === void 0) {\n throw new TypeError(`Constructor ${_ConnectionObserver.name} requires 'new'`);\n }\n if (callback === void 0) {\n throw new ReferenceError(`Failed to construct '${_ConnectionObserver.name}': 1 argument required, but only 0 present.`);\n } else if (typeof callback !== \"function\") {\n throw new TypeError(`Failed to construct '${_ConnectionObserver.name}': The callback provided as parameter 1 is not a function.`);\n }\n if (typeof document === \"undefined\") {\n return;\n }\n initializeConnectionObserver(this, callback);\n }\n /**\n * The Symbol.@@toStringTag value\n */\n get [Symbol.toStringTag]() {\n return `ConnectionObserver`;\n }\n /**\n * Observe the given node or query selector for connections/disconnections.\n * If given a Node, that specific Node will be observed. If given a query selector, such\n * as for example \"img[data-some-attr]\", for each new MutationRecord, the query selector\n * will be executed and the matched nodes will be observed for connections/disconnections\n */\n observe(target) {\n if (target === void 0) {\n throw new ReferenceError(`Failed to execute '${this.observe.name}' on '${_ConnectionObserver.name}': 1 argument required, but only 0 present.`);\n } else if (typeof target !== \"string\" && !(target instanceof Node)) {\n throw new TypeError(`Failed to execute '${this.observe.name}' on '${_ConnectionObserver.name}': parameter 1 is not of type 'Node' or a DOMString.`);\n }\n const internals = CONNECTION_OBSERVER_INTERNALS_MAP.get(this);\n if (internals == null)\n return;\n internals.addObservedTarget(target);\n }\n /**\n * Takes the records immediately (instead of waiting for the next flush)\n */\n takeRecords() {\n const internals = CONNECTION_OBSERVER_INTERNALS_MAP.get(this);\n if (internals == null)\n return [];\n return internals.clearQueue();\n }\n /**\n * Disconnects the ConnectionObserver such that none of its callbacks will be invoked any longer\n */\n disconnect() {\n const internals = CONNECTION_OBSERVER_INTERNALS_MAP.get(this);\n if (internals == null)\n return;\n internals.clearObservedTargets();\n }\n};\npatchElementPrototypeAttachShadow(rootObserverQueue.schedule.bind(rootObserverQueue));\n\n// src/widget.ts\nvar import_widget = require(\"$:/core/modules/widgets/widget.js\");\nvar ReactDom = require(\"react-dom\");\nvar ReactDomClient = require(\"react-dom/client\");\nvar React = require(\"react\");\nif (typeof window !== \"undefined\") {\n window.React = React;\n} else if (typeof global !== \"undefined\") {\n global.React = React;\n}\nvar ReactWidgetImpl = class extends import_widget.widget {\n constructor(parseTreeNode, options) {\n super(parseTreeNode, options);\n /**\n * User of tw-react need to assign his react component to this property.\n */\n this.reactComponent = null;\n this.getProps = () => ({ parentWidget: this });\n if (!$tw.browser) {\n return;\n }\n this.connectionObserver = new ConnectionObserver((entries) => {\n for (const { connected } of entries) {\n if (!connected) {\n this.destroy();\n this.connectionObserver?.disconnect?.();\n }\n }\n });\n }\n refresh(changedTiddlers) {\n return false;\n }\n render(parent, nextSibling) {\n this.parentDomNode = parent;\n this.computeAttributes();\n this.execute();\n if (this.reactComponent === void 0 || this.reactComponent === null) {\n return;\n }\n const currentProps = this.getProps() ?? {};\n if (currentProps.parentWidget === void 0 || currentProps.parentWidget === null) {\n currentProps.parentWidget = this;\n }\n if (this.root === void 0 || this.containerElement === void 0) {\n this.containerElement = document.createElement(\"div\");\n this.root = ReactDomClient.createRoot(this.containerElement);\n let domToObserve = this.containerElement;\n if (this.parentDomNode instanceof Node) {\n domToObserve = this.parentDomNode;\n }\n this.connectionObserver?.observe?.(domToObserve);\n }\n this.domNodes.push(this.containerElement);\n try {\n parent.insertBefore(this.containerElement, nextSibling);\n } catch (error) {\n console.warn(`Error while inserting dom node in react widget, this might be cause by use transclude widget for the wikitext contains widget.`, error);\n }\n const reactElement = React.createElement(this.reactComponent, currentProps);\n this.root.render(reactElement);\n }\n refreshSelf() {\n if (this.reactComponent === void 0 || this.reactComponent === null) {\n return;\n }\n if (this.root === void 0 && this.parentDomNode !== void 0) {\n const nextSibling = this.findNextSiblingDomNode();\n this.render(this.parentDomNode, nextSibling);\n return;\n }\n this.computeAttributes();\n this.execute();\n const currentProps = this.getProps() ?? {};\n if (currentProps.parentWidget === void 0 || currentProps.parentWidget === null) {\n currentProps.parentWidget = this;\n }\n const reactElement = React.createElement(this.reactComponent, currentProps);\n this.root?.render?.(reactElement);\n }\n destroy() {\n this.root?.unmount?.();\n }\n};\nexports.widget = ReactWidgetImpl;\n","creator":"LinOnetwo","type":"application/javascript","module-type":"library"}}} \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_tw-react.json.meta b/tiddlers/$__plugins_linonetwo_tw-react.json.meta index c70e0d5..afeb2d9 100644 --- a/tiddlers/$__plugins_linonetwo_tw-react.json.meta +++ b/tiddlers/$__plugins_linonetwo_tw-react.json.meta @@ -5,6 +5,7 @@ description: Allow using ReactJS Components in TW widget. list: readme tree name: ReactJS plugin-type: plugin +stability: STABILITY_2_STABLE title: $:/plugins/linonetwo/tw-react type: application/json -version: 0.7.0 \ No newline at end of file +version: 1.0.0 \ No newline at end of file diff --git a/tiddlers/$__plugins_linonetwo_zx-script.json b/tiddlers/$__plugins_linonetwo_zx-script.json index e2f0a78..62d72e0 100644 --- a/tiddlers/$__plugins_linonetwo_zx-script.json +++ b/tiddlers/$__plugins_linonetwo_zx-script.json @@ -1,16 +1,17 @@ [ { - "title": "$:/plugins/linonetwo/zx-script", - "name": "ZX Script Executor", - "description": "ZX is a tool for writing better scripts, this plugin allows you to execute a tiddler with zx.", "author": "LinOnetwo", "core-version": ">=5.1.22", - "plugin-type": "plugin", - "version": "0.2.2", "dependents": "$:/plugins/linonetwo/itonnote", + "description": "ZX is a tool for writing better scripts, this plugin allows you to execute a tiddler with zx.", "list": "readme demo developer", + "name": "ZX Script Executor", + "plugin-type": "plugin", + "stability": "STABILITY_1_EXPERIMENTAL", + "text": "{\"tiddlers\":{\"$:/plugins/linonetwo/zx-script/DecorateCoreCodeblockWidget\":{\"title\":\"$:/plugins/linonetwo/zx-script/DecorateCoreCodeblockWidget\",\"tags\":\"$:/tags/Global/View/Body\",\"text\":\"\\\\widget $codeblock(code, language)\\n<%if markdown md js javascript ts typescript bash zsh shell sh +[match<language>] %>\\n <$set name=\\\"output-id\\\" filter=\\\"[<code>sha256[]]\\\">\\n <$button class=\\\"code-block-zx-script-execution-button\\\">\\n {{$:/plugins/linonetwo/zx-script/zx-icon}}ZX\\n <$action-sendmessage $message=\\\"tm-zx\\\" code=<<code>> language=<<language>> id=<<output-id>> />\\n </$button>\\n <$genesis $type=\\\"$codeblock\\\" $remappable=\\\"no\\\" code=<<code>> language=<<language>> />\\n <!-- Output -->\\n <$let output-title={{{ [<output-id>addprefix[$:/state/linonetwo/zx-script/output/]] }}} >\\n <%if [<output-title>is[tiddler]] %>\\n\\n <!-- Similar to $:/plugins/linonetwo/zx-script/OutputBar -->\\n <$transclude $tiddler=<<output-title>> />\\n\\n <small><$link to=<<output-title>> /></small>\\n <%endif%>\\n </$let>\\n </$set>\\n<%else%>\\n <$genesis $type=\\\"$codeblock\\\" $remappable=\\\"no\\\" code=<<code>> language=<<language>> />\\n<%endif%>\\n\\\\end\\n\"},\"$:/plugins/linonetwo/zx-script/OutputBar\":{\"title\":\"$:/plugins/linonetwo/zx-script/OutputBar\",\"tags\":\"$:/tags/ViewTemplate\",\"list-before\":\"$:/plugins/linonetwo/inverse-link-and-folder/infobar\",\"text\":\"<$let output-title={{{ [{!!title}addprefix[$:/state/linonetwo/zx-script/output/]] }}} >\\n <%if [<output-title>is[tiddler]] %>\\n <!-- Space between top level and inner level transclude can't be omit, otherwise generated line will stick together, and destroy the tw render -->\\n <$transclude $tiddler=<<output-title>> />\\n\\n <small><$link to=<<output-title>> /></small>\\n <%endif%>\\n</$let>\"},\"$:/plugins/linonetwo/zx-script/ViewToolbarButton\":{\"title\":\"$:/plugins/linonetwo/zx-script/ViewToolbarButton\",\"tags\":\"$:/tags/ViewToolbar\",\"list-before\":\"$:/core/ui/Buttons/close\",\"caption\":\"{{$:/plugins/linonetwo/zx-script/zx-icon}} {{$:/plugins/linonetwo/zx-script/zx-button-caption}}\",\"short-caption\":\"zx script executor\",\"description\":\"Run tiddler as ZX Script\",\"text\":\"\\\\whitespace trim\\n<%if [all[current]!has[plugin-type]] %>\\n <%if [all[current]field:type[application/javascript]] :else[all[current]search:text[```]] %>\\n <$button>\\n <$action-sendmessage $message=\\\"tm-zx\\\" title={{!!title}} field=\\\"text\\\"/>\\n <%if [<tv-config-toolbar-icons>match[yes]] %>\\n {{$:/plugins/linonetwo/zx-script/zx-icon}}\\n <%endif%>\\n <%if [<tv-config-toolbar-text>match[yes]] %>\\n <span class=\\\"tc-btn-text\\\">\\n {{$:/plugins/linonetwo/zx-script/zx-button-caption}}\\n </span>\\n <%endif%>\\n </$button>\\n <%endif%>\\n<%endif%>\\n\"},\"$:/plugins/linonetwo/zx-script/demo\":{\"title\":\"$:/plugins/linonetwo/zx-script/demo\",\"text\":\"!! ZX JS script Demo\\n\\n```js\\nconsole.log(`!! Hi!`);\\n```\\n\\nResult will form a tiddler.\\n\\n```js\\nconsole.log(`\\nCode block:\\n\\n\\\\`\\\\`\\\\`js\\nconsole.log(\\\\`!! Hi!\\\\`);\\n\\\\`\\\\`\\\\`\\n`);\\n```\\n\\n!! Dynamic WikiText Demo\\n\\n```js\\nconst ramdomID = Math.random().toString(36).slice(2);\\nconst text = `<fieldset>\\n\\t<legend>Quick Add</legend>\\n\\n\\t<$button>\\n\\t\\t<$action-sendmessage $message=\\\"tm-new-tiddler\\\" title=<<now \\\"YYYY-MM-DD\\\">> tags=\\\"${ramdomID}\\\" />\\n Add New Tiddler with ID ${ramdomID}\\n\\t</$button>\\n\\n</fieldset>`\\n\\nconsole.log(text)\\n```\\n\\n!! Wiki Scripting Demo\\n\\n```js\\nconst exampleTitle = '$:/plugins/linonetwo/zx-script/style.css';\\n\\n// to write script execute in tiddlywiki context, start with this separator ↓\\n/** tw */\\n// You can use $tw.wiki.getTiddler to get tiddler data, and can use some variables from previous context\\nconst tiddlerData = $tw.wiki.getTiddler(exampleTitle);\\n// This script runs in the nodejs side, and you can't access some API from nodejs ↓ it will cause error\\n// $tw.notifier.display('$:/state/notification/asdf');\\n\\n// You can even add tiddler using the API! But this will be add to the nodejs side, it will take a while to wait it sync to the browser side.\\n// $tw.syncadaptor.wiki.addTiddler({ title: 'asdf', text: 'aaa bbb' });\\n// You can't add state tiddler this way, they won't get sync to the browser. (nodejs wiki limitation)\\n// $tw.syncadaptor.wiki.addTiddler({ title: '$:/state/notification/asdf', text: 'aaa bbb' });\\n\\n// You can use console to print some data\\nconsole.log(tiddlerData.fields.type);\\n// You can assign some data to a variable, it can be used in next context\\nconst tiddlerDataString = JSON.stringify(tiddlerData);\\n\\n// ↓ If you end the block with separator, you can write script execute in zx environment again\\n/** tw */\\nconsole.log(`\\\\n!! Hi!\\\\n`);\\nconsole.log(tiddlerDataString);\\n```\\n\\n!!! DB and execution\\n\\nStart from v0.8.0-prerelease11 of [TidGi](https://github.com/tiddly-gittly/TidGi-Desktop/releases), it has a [better-sqlite3](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md) instance at `$tw.utils.Sqlite`. Which is accessible for server side plugin (TidGi is a launcher for nodejs wiki, so can run server side plugins) or zx script.\\n\\n```js\\n// pure nodejs context\\nconsole.log(`## Hi!`);\\nlet aaa = 3;\\n\\n/** tw */\\n\\n// now in worker_thread with $tw wiki access\\n\\nlet filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))})\\nconsole.log(filterExample)\\n\\n// use Sqlite\\nconst db = $tw.utils.Sqlite\\nconst stmt = db.prepare('SELECT title, text FROM tiddlers');\\nconst result = stmt.pluck().all()\\nconsole.log(result)\\n```\"},\"$:/plugins/linonetwo/zx-script/developer\":{\"title\":\"$:/plugins/linonetwo/zx-script/developer\",\"text\":\"!! Developer guide\\n\\n!!! Output\\n\\nWe place output of zx to a temporary tiddler, whose name start with \\\"$:/state/linonetwo/zx-script/output/\\\"\\n\\nAnd we get the name of this tiddler in wikitext using `[{!!title}addprefix[$:/state/linonetwo/zx-script/output/]`, so it can be transcluded with `{{{ }}}`\\n\\n!!! Batch execution\\n\\nYou can use message to programmatically execute any code:\\n\\n```tid\\n<$action-sendmessage $message=\\\"tm-zx\\\" code=<<code>> language=<<language>> id=<<output-id>> />\\n```\\n\\nThe id should be an unique identifier, for example:\\n\\n```tid\\n<$set name=\\\"output-id\\\" filter=\\\"[<code>sha256[]]\\\">\\n```\\n\\nRead [[$:/plugins/linonetwo/zx-script/DecorateCoreCodeblockWidget]] for how I use it.\\n\"},\"$:/plugins/linonetwo/zx-script/readme\":{\"title\":\"$:/plugins/linonetwo/zx-script/readme\",\"text\":\"!! Background\\n\\n[[google/zx|https://github.com/google/zx]] is a tool for writing better scripts, with Javascript.\\n\\nThis tiddlywiki plugin enables you to run any tiddler with zx.\\n\\n!! Prerequisit\\n\\nThis plugin requires [[TidGi Desktop App|https://github.com/tiddly-gittly/TidGi-Desktop]] environment to function properly. It will send tiddler content to the `zx` inside TidGi, and prints the output.\\n\\n!! Basic Usage\\n\\n!!! Button\\n\\nA ViewToolbar button is added. You can click on it to execute the script inside your tiddler.\\n\\nAnd the zx output will be printed below your tiddler content.\\n\\nTiddler with title extension `*.js *.md *.mjs` can be execute without problem. Other tiddler witout extension (no `.xxx`) will be executed as `*.md` file, for example, tid file without extions will be executed as `*.md`, but it works without problem too, even you are writing wiki text instead of markdown.\\n\\nIf you add filetype `application/javascript` to your tiddler, it will be recognized as `*.mjs`.\\n\\n!!! Codeblock\\n\\nAn execution button is added to the codeblock widget, if language is supported.\\n\\n```js\\nconsole.log(`!! Hi!`);\\n```\\n\\nSee [[$:/plugins/linonetwo/zx-script/demo]] for demo of full tiddler execution.\\n\\n!! Wiki Scripting\\n\\n!!! Execute the code block on the $tw context\\n\\nYou can write some code that is surrounded with `/** tw */` separator. They will be recognized as js code and executed on the context that have access to the $tw api.\\n\\nSee [[$:/plugins/linonetwo/zx-script/demo]] for examples.\\n\\nGlobal variables you can use:\\n\\n* `$tw` try it in your [[developer tool|https://developer.mozilla.org/en-US/docs/Tools]] to play around!\\n* `_` [[lodash|https://lodash.com/docs/]]\\n\\nThis means you can fetch some data on the zx script, and write the results to the wiki, creating new tiddlers.\\n\\n!!! Access filter and macros\\n\\nFilter function's call example is\\n\\n```js\\n/** tw */\\nconst result = $tw.wiki.filterOperators.sum((callback) => {callback({}, '2');callback({}, '2')})\\nconsole.log(result)\\n```\\n\\n!! Developer Documentation\\n\\nSee [[$:/plugins/linonetwo/zx-script/developer]]\\n\"},\"$:/plugins/linonetwo/zx-script/style.css\":{\"title\":\"$:/plugins/linonetwo/zx-script/style.css\",\"text\":\".code-block-zx-script-execution-button{position:absolute;right:0;transform:translate(-100%,0);opacity:.3}.code-block-zx-script-execution-button:hover{opacity:.8}.code-block-zx-script-execution-button:active{opacity:1}article.zx-script-output{display:flex;flex-direction:column}\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/linonetwo/zx-script/zx-button-caption\":{\"title\":\"$:/plugins/linonetwo/zx-script/zx-button-caption\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"ZX Script\"},\"$:/plugins/linonetwo/zx-script/zx-icon\":{\"title\":\"$:/plugins/linonetwo/zx-script/zx-icon\",\"tags\":\"$:/tags/Image\",\"text\":\"<svg width=\\\"22pt\\\" height=\\\"22pt\\\" class=\\\"tc-image-zx-script tc-image-button\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" version=\\\"1.1\\\" x=\\\"0px\\\" y=\\\"0px\\\" viewBox=\\\"0 0 100 90.25\\\"><path d=\\\"M93.103,83.904c0,0,1.708-1.634,3.242,0c1.535,1.634,0.322,2.203-0.223,2.426c-0.544,0.223-2.623,0.446-3.341-0.197 S92.635,84.248,93.103,83.904z\\\"></path><path d=\\\"M89.241,79.622c0,0,3.144-3.021,4.827-0.842c1.683,2.178,1.312,3.021-1.486,3.614c-2.796,0.595-3.861,1.263-5.37,0.595 c-1.511-0.669-2.005-2.13,0.495-2.724C89.241,79.622,89.241,79.622,89.241,79.622z\\\"></path><path d=\\\"M83.598,73.087c0.074-0.123,2.772-2.054,4.802-1.782c2.03,0.272,3.045,1.46,3.688,2.476s0.247,2.476-1.708,3.095 c-1.955,0.618-4.184,1.633-5.272,2.376c-1.089,0.742-2.302,0.989-3.317,0.42c-1.014-0.569-3.144-0.668-3.837-2.426 c-0.692-1.757,1.238-1.731,1.882-2.128S83.598,73.087,83.598,73.087z\\\"></path><path d=\\\"M74.191,66.429c0,0,4.554-3.218,7.476-3.664c2.921-0.445,4.652,0.99,5.891,2.625c1.237,1.633,2.438,4.059-1.603,5 c-4.041,0.94-5.328,2.029-6.17,2.524c-0.841,0.494-3.861,2.178-5.841,2.079c-1.98-0.099-4.803-1.089-5.842-1.881 c-1.04-0.792-2.872-1.733,0-3.268c2.871-1.535,4.059-2.277,4.059-2.277L74.191,66.429z\\\"></path><path d=\\\"M68.828,53.541c0,0,5.742-3.497,8.978-3.564c3.234-0.066,3.894,0.396,4.884,2.508c0.99,2.114,2.399,4.555,2.399,4.555 s0.636,2.708-2.796,3.631c-3.431,0.925-8.05,3.563-10.164,4.488c-2.113,0.925-6.206,4.818-11.024,4.753 c-4.817-0.065-8.978-1.518-10.297-3.894c-1.32-2.377,0.726-3.895,2.574-3.961c1.849-0.067,7.591-3.696,8.977-4.29 C63.746,57.173,68.828,53.541,68.828,53.541z\\\"></path><path d=\\\"M51.203,40.271l8.581-3.563c0,0,6.206-1.979,8.714-1.451c2.508,0.527,5.741,2.376,6.864,3.96s2.398,6.006,2.288,7.063 s-5.918,3.17-8.162,4.226c-2.245,1.056-13.004,6.007-14.588,7.128c-1.584,1.122-10.033,3.299-12.739,3.036 c-2.707-0.263-9.308-2.772-10.628-4.555s-3.367-3.763-0.99-4.95c2.376-1.188,6.138-2.573,8.118-3.828 C40.643,46.082,51.203,40.271,51.203,40.271z\\\"></path><path d=\\\"M28.894,11.229c0,0,14.158-0.198,16.535,0c2.376,0.198,13.367,0.495,16.139,2.277s5.941,5.644,7.128,8.614 c1.188,2.97,2.675,7.525,0,8.713c-2.673,1.188-14.06,5.743-17.425,7.624c-3.367,1.881-16.734,6.832-18.714,7.822 c-1.98,0.99-10.396,5.897-14.654,3.691c-4.258-2.205-7.525-11.91-7.921-14.384c0,0-2.475-5.743-2.673-15.644 c0,0-0.297-2.674-1.881-6.832c-1.584-4.159-3.07-6.436-3.07-6.436S0.675,0.833,4.041,2.516c3.366,1.683,2.818,2.161,6.237,3.564 c3.862,1.584,10,3.367,10.595,3.564C21.467,9.843,28.894,11.229,28.894,11.229z\\\"></path></svg>\"},\"$:/plugins/linonetwo/zx-script/zx-message.js\":{\"title\":\"$:/plugins/linonetwo/zx-script/zx-message.js\",\"type\":\"application/javascript\",\"module-type\":\"startup\",\"Modern.TiddlyDev#Origin\":\"zx-message.ts\",\"text\":\"\\\"use strict\\\";function execute(e,i,a=\\\"text/vnd.tiddlywiki\\\",n,s){if(\\\"observables\\\"in window){let t=e.replaceAll(/[$/:]/g,\\\"-\\\");if(!t.endsWith(\\\".mjs\\\")&&!t.endsWith(\\\".js\\\")&&!t.endsWith(\\\".md\\\"))switch(a){case\\\"text/vnd.tiddlywiki\\\":case\\\"text/plain\\\":case\\\"text/markdown\\\":case\\\"text/x-markdown\\\":case\\\"text/html\\\":t+=\\\".md\\\";break;case\\\"text/x-shellscript\\\":i=i.split(\\\"\\\\n\\\").map(t=>\\\"await $`\\\".concat(t.trim(),\\\"`;\\\")).join(\\\"\\\\n\\\"),t+=\\\".mjs\\\";break;case\\\"application/typescript\\\":t+=\\\".ts\\\";break;default:t+=\\\".mjs\\\"}n(),window.observables[\\\"native\\\"].executeZxScript$({fileContent:i,fileName:t}).subscribe(s)}}function executeOnTiddler(t,e=\\\"text\\\"){if(t){var i=$tw.wiki.getTiddler(t),a=(null==i?void 0:i.fields.type)||\\\"text/vnd.tiddlywiki\\\",i=(null==i?void 0:i.fields[e])||\\\"\\\";const n=\\\"$:/state/linonetwo/zx-script/output/\\\".concat(t);execute(t,i,a,()=>{$tw.wiki.setText(n,\\\"text\\\",void 0,\\\"\\\")},t=>{var e=$tw.wiki.getTiddlerText(n);$tw.wiki.setText(n,\\\"text\\\",void 0,\\\"\\\".concat(null!=e?e:\\\"\\\",\\\"\\\\n\\\").concat(null!=t?t:\\\"\\\")),$tw.wiki.setText(n,\\\"type\\\",void 0,\\\"text/vnd.tiddlywiki\\\")})}}function executeOnAnyCode(t,e,i=\\\"application/javascript\\\"){if(t){const a=\\\"$:/state/linonetwo/zx-script/output/\\\".concat(t);execute(\\\"zx-tmp-\\\".concat(t),e,i,()=>{$tw.wiki.setText(a,\\\"text\\\",void 0,\\\"\\\")},t=>{var e=$tw.wiki.getTiddlerText(a);$tw.wiki.setText(a,\\\"text\\\",void 0,\\\"\\\".concat(null!=e?e:\\\"\\\",\\\"\\\\n\\\").concat(null!=t?t:\\\"\\\")),$tw.wiki.setText(a,\\\"type\\\",void 0,\\\"text/vnd.tiddlywiki\\\")})}}exports.name=\\\"zx-message\\\",exports.platforms=[\\\"browser\\\",\\\"node\\\"],exports.after=[\\\"startup\\\"],exports.synchronous=!0,exports.startup=function(){$tw.rootWidget.addEventListener(\\\"tm-zx\\\",function(e){var i,a=null==(a=e.paramObject)?void 0:a.title;if(a)return executeOnTiddler(a,null==(a=e.paramObject)?void 0:a.field),!1;var a=null==(a=e.paramObject)?void 0:a.id,n=null==(n=e.paramObject)?void 0:n.code;if(a&&n){let t=(null==(i=e.paramObject)?void 0:i.mime)||\\\"text/vnd.tiddlywiki\\\";switch(null==(i=e.paramObject)?void 0:i.language){case\\\"markdown\\\":case\\\"md\\\":t=\\\"text/x-markdown\\\";break;case\\\"js\\\":case\\\"javascript\\\":t=\\\"application/javascript\\\";break;case\\\"ts\\\":case\\\"typescript\\\":t=\\\"application/typescript\\\";break;case\\\"bash\\\":case\\\"zsh\\\":case\\\"shell\\\":case\\\"sh\\\":t=\\\"text/x-shellscript\\\"}return executeOnAnyCode(a,n,t),!1}return!0})};\"}}}", + "title": "$:/plugins/linonetwo/zx-script", "type": "application/json", - "text": "{\"tiddlers\":{\"$:/plugins/linonetwo/zx-script/OutputBar\":{\"title\":\"$:/plugins/linonetwo/zx-script/OutputBar\",\"creator\":\"LinOnetwo\",\"tags\":\"$:/tags/ViewTemplate\",\"type\":\"text/vnd.tiddlywiki\",\"list-before\":\"$:/plugins/linonetwo/inverse-link-and-folder/infobar\",\"text\":\"<$list filter=\\\"[{!!title}addprefix[$:/state/linonetwo/zx-script/output/]is[tiddler]then{!!title}]\\\">\\n <$list filter=\\\"[{!!title}addprefix[$:/state/linonetwo/zx-script/output/]]\\\">\\n <!-- Space between top level and inner level transclude can't be omit, otherwise generated line will stick together, and destroy the tw render -->\\n <$transclude>\\n\\n <$transclude tiddler=\\\"$:/language/MissingTiddler/Hint\\\"/>\\n\\n </$transclude>\\n\\n <small><$link to=<<currentTiddler>> /></small>\\n </$list>\\n</$list>\\n\"},\"$:/plugins/linonetwo/zx-script/ViewToolbarButton\":{\"title\":\"$:/plugins/linonetwo/zx-script/ViewToolbarButton\",\"tags\":\"$:/tags/ViewToolbar\",\"type\":\"text/vnd.tiddlywiki\",\"list-before\":\"$:/core/ui/Buttons/close\",\"caption\":\"{{$:/plugins/linonetwo/zx-script/zx-icon}} {{$:/plugins/linonetwo/zx-script/zx-button-caption}}\",\"short-caption\":\"zx script executor\",\"description\":\"Run tiddler as ZX Script\",\"text\":\"\\\\whitespace trim\\n<$list filter=\\\"[all[current]!has[plugin-type]]\\\">\\n<$list filter=\\\"[all[current]field:type[application/javascript]] :else[all[current]search:text[```]]\\\">\\n <$execute-zx-script content={{!!text}} title={{!!title}} type={{!!type}} />\\n</$list>\\n</$list>\"},\"$:/plugins/linonetwo/zx-script/demo\":{\"title\":\"$:/plugins/linonetwo/zx-script/demo\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! ZX JS script Demo\\n\\n```js\\nconsole.log(`!! Hi!`);\\n```\\n\\nResult will form a tiddler.\\n\\n```js\\nconsole.log(`\\nCode block:\\n\\n\\\\`\\\\`\\\\`js\\nconsole.log(\\\\`!! Hi!\\\\`);\\n\\\\`\\\\`\\\\`\\n`);\\n```\\n\\n!! Dynamic WikiText Demo\\n\\n```js\\nconst ramdomID = Math.random().toString(36).slice(2);\\nconst text = `<fieldset>\\n\\t<legend>Quick Add</legend>\\n\\n\\t<$button>\\n\\t\\t<$action-sendmessage $message=\\\"tm-new-tiddler\\\" title=<<now \\\"YYYY-MM-DD\\\">> tags=\\\"${ramdomID}\\\" />\\n Add New Tiddler with ID ${ramdomID}\\n\\t</$button>\\n\\n</fieldset>`\\n\\nconsole.log(text)\\n```\\n\\n!! Wiki Scripting Demo\\n\\n```js\\nconst exampleTitle = '$:/plugins/linonetwo/zx-script/style.css';\\n\\n// to write script execute in tiddlywiki context, start with this separator ↓\\n/** tw */\\n// You can use $tw.wiki.getTiddler to get tiddler data, and can use some variables from previous context\\nconst tiddlerData = $tw.wiki.getTiddler(exampleTitle);\\n// This script runs in the nodejs side, and you can't access some API from nodejs ↓ it will cause error\\n// $tw.notifier.display('$:/state/notification/asdf');\\n\\n// You can even add tiddler using the API! But this will be add to the nodejs side, it will take a while to wait it sync to the browser side.\\n// $tw.syncadaptor.wiki.addTiddler({ title: 'asdf', text: 'aaa bbb' });\\n// You can't add state tiddler this way, they won't get sync to the browser. (nodejs wiki limitation)\\n// $tw.syncadaptor.wiki.addTiddler({ title: '$:/state/notification/asdf', text: 'aaa bbb' });\\n\\n// You can use console to print some data\\nconsole.log(tiddlerData.fields.type);\\n// You can assign some data to a variable, it can be used in next context\\nconst tiddlerDataString = JSON.stringify(tiddlerData);\\n\\n// ↓ If you end the block with separator, you can write script execute in zx environment again\\n/** tw */\\nconsole.log(`\\\\n!! Hi!\\\\n`);\\nconsole.log(tiddlerDataString);\\n```\\n\\n!!! DB and execution\\n\\nStart from v0.8.0-prerelease11 of [TidGi](https://github.com/tiddly-gittly/TidGi-Desktop/releases), it has a [better-sqlite3](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/api.md) instance at `$tw.utils.Sqlite`. Which is accessible for server side plugin (TidGi is a launcher for nodejs wiki, so can run server side plugins) or zx script.\\n\\n```js\\n// pure nodejs context\\nconsole.log(`## Hi!`);\\nlet aaa = 3;\\n\\n/** tw */\\n\\n// now in worker_thread with $tw wiki access\\n\\nlet filterExample = $tw.wiki.filterOperators.sum((callback) => {callback({}, String(aaa));callback({}, String(aaa))})\\nconsole.log(filterExample)\\n\\n// use Sqlite\\nconst db = $tw.utils.Sqlite\\nconst stmt = db.prepare('SELECT title, text FROM tiddlers');\\nconst result = stmt.pluck().all()\\nconsole.log(result)\\n```\"},\"$:/plugins/linonetwo/zx-script/developer\":{\"title\":\"$:/plugins/linonetwo/zx-script/developer\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Developer guide\\n\\n!!! Icon\\n\\nIf you want to change the icon/text of the button, you need to change both [[ViewToolbarButton.tid|$:/plugins/linonetwo/zx-script/ViewToolbarButton]]'s caption field, and [[button.js|$:/plugins/linonetwo/zx-script/button.js]]'s `importButton.innerHTML = xxxx`.\\n\\nBecause we are using javascript to write the widget, it can't benefit from the caption field of tiddler that add tag [[$:/tags/ViewToolbar]].\\n\\nAnd so the caption add by javascript is shown not properly in view-toolbar, it will display both the icon and the text. So we need to use `.tc-tiddler-controls > button > .tc-button-zx-script-caption` to hide the text when it is in the view-toolbar.\\n\\n!!! List before\\n\\nWe use\\n\\n```tid\\nlist-before: $:/plugins/linonetwo/inverse-link-and-folder/infobar\\n```\\n\\nto make sure zx output is placed above the backlinks plugin.\\n\\n!!! Output\\n\\nWe place output of zx to a temporary tiddler, whose name start with \\\"$:/state/linonetwo/zx-script/output/\\\"\\n\\nAnd we get the name of this tiddler in wikitext using `[{!!title}addprefix[$:/state/linonetwo/zx-script/output/]`, so it can be transcluded with `{{{ }}}`\\n\"},\"$:/plugins/linonetwo/zx-script/readme\":{\"title\":\"$:/plugins/linonetwo/zx-script/readme\",\"created\":\"20210915220048497\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! Background\\n\\n[[google/zx|https://github.com/google/zx]] is a tool for writing better scripts, with Javascript.\\n\\nThis tiddlywiki plugin enables you to run any tiddler with zx.\\n\\n!! Basic Usage\\n\\n!!! Prerequisit\\n\\nThis plugin requires [TidGi](https://github.com/tiddly-gittly/TidGi-Desktop) Desktop App environment to function properly. It will send tiddler content to the `zx` inside TidGi, and prints the output.\\n\\n!!! Tiddler Type\\n\\nTiddler with title extension `*.js *.md *.mjs` can be execute without problem. Other tiddler witout extension (no `.xxx`) will be executed as `*.md` file, for example, tid file without extions will be executed as `*.md`, but it works without problem too, even you are writing wiki text instead of markdown.\\n\\nIf you add filetype `application/javascript` to your tiddler, it will be recognized as `*.mjs`.\\n\\n!!! Button\\n\\nA ViewToolbar button is added. You can click on it to execute the script inside your tiddler.\\n\\nAnd the zx output will be printed below your tiddler content.\\n\\n!!! Demo\\n\\n```js\\nconsole.log(`!! Hi!`);\\n```\\n\\nSee [[$:/plugins/linonetwo/zx-script/demo]] for demo of full tiddler execution.\\n\\n!! Wiki Scripting\\n\\n!!! Execute the code block on the $tw context\\n\\nYou can write some code that is surrounded with `/** tw */` separator. They will be recognized as js code and executed on the context that have access to the $tw api.\\n\\nGlobal variables you can use:\\n\\n* `$tw` try it in your [[developer tool|https://developer.mozilla.org/en-US/docs/Tools]] to play around!\\n* `_` [[lodash|https://lodash.com/docs/]]\\n\\nThis means you can fetch some data on the zx script, and write the results to the wiki, creating new tiddlers.\\n\\n!!! Access filter and macros\\n\\nFilter function's call example is\\n\\n```js\\n/** tw */\\nconst result = $tw.wiki.filterOperators.sum((callback) => {callback({}, '2');callback({}, '2')})\\nconsole.log(result)\\n```\\n\\n!! Developer Documentation\\n\\nSee [[$:/plugins/linonetwo/zx-script/developer]]\\n\"},\"$:/plugins/linonetwo/zx-script/style.css\":{\"title\":\"$:/plugins/linonetwo/zx-script/style.css\",\"text\":\".tc-tiddler-controls button .tc-button-zx-script-caption{display:none}.code-block-zx-script-execution-button{position:absolute;right:0;opacity:.3}.code-block-zx-script-execution-button:hover{opacity:.8}.code-block-zx-script-execution-button:active{opacity:1}article.zx-script-output{display:flex;flex-direction:column}\",\"creator\":\"LinOnetwo\",\"tags\":\"$:/tags/Stylesheet\",\"type\":\"text/css\"},\"$:/plugins/linonetwo/zx-script/zx-button-caption\":{\"title\":\"$:/plugins/linonetwo/zx-script/zx-button-caption\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"ZX Script\"},\"$:/plugins/linonetwo/zx-script/zx-icon\":{\"title\":\"$:/plugins/linonetwo/zx-script/zx-icon\",\"tags\":\"$:/tags/Image\",\"text\":\"<svg width=\\\"22pt\\\" height=\\\"22pt\\\" class=\\\"tc-image-zx-script tc-image-button\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" version=\\\"1.1\\\" x=\\\"0px\\\" y=\\\"0px\\\" viewBox=\\\"0 0 100 90.25\\\"><path d=\\\"M93.103,83.904c0,0,1.708-1.634,3.242,0c1.535,1.634,0.322,2.203-0.223,2.426c-0.544,0.223-2.623,0.446-3.341-0.197 S92.635,84.248,93.103,83.904z\\\"></path><path d=\\\"M89.241,79.622c0,0,3.144-3.021,4.827-0.842c1.683,2.178,1.312,3.021-1.486,3.614c-2.796,0.595-3.861,1.263-5.37,0.595 c-1.511-0.669-2.005-2.13,0.495-2.724C89.241,79.622,89.241,79.622,89.241,79.622z\\\"></path><path d=\\\"M83.598,73.087c0.074-0.123,2.772-2.054,4.802-1.782c2.03,0.272,3.045,1.46,3.688,2.476s0.247,2.476-1.708,3.095 c-1.955,0.618-4.184,1.633-5.272,2.376c-1.089,0.742-2.302,0.989-3.317,0.42c-1.014-0.569-3.144-0.668-3.837-2.426 c-0.692-1.757,1.238-1.731,1.882-2.128S83.598,73.087,83.598,73.087z\\\"></path><path d=\\\"M74.191,66.429c0,0,4.554-3.218,7.476-3.664c2.921-0.445,4.652,0.99,5.891,2.625c1.237,1.633,2.438,4.059-1.603,5 c-4.041,0.94-5.328,2.029-6.17,2.524c-0.841,0.494-3.861,2.178-5.841,2.079c-1.98-0.099-4.803-1.089-5.842-1.881 c-1.04-0.792-2.872-1.733,0-3.268c2.871-1.535,4.059-2.277,4.059-2.277L74.191,66.429z\\\"></path><path d=\\\"M68.828,53.541c0,0,5.742-3.497,8.978-3.564c3.234-0.066,3.894,0.396,4.884,2.508c0.99,2.114,2.399,4.555,2.399,4.555 s0.636,2.708-2.796,3.631c-3.431,0.925-8.05,3.563-10.164,4.488c-2.113,0.925-6.206,4.818-11.024,4.753 c-4.817-0.065-8.978-1.518-10.297-3.894c-1.32-2.377,0.726-3.895,2.574-3.961c1.849-0.067,7.591-3.696,8.977-4.29 C63.746,57.173,68.828,53.541,68.828,53.541z\\\"></path><path d=\\\"M51.203,40.271l8.581-3.563c0,0,6.206-1.979,8.714-1.451c2.508,0.527,5.741,2.376,6.864,3.96s2.398,6.006,2.288,7.063 s-5.918,3.17-8.162,4.226c-2.245,1.056-13.004,6.007-14.588,7.128c-1.584,1.122-10.033,3.299-12.739,3.036 c-2.707-0.263-9.308-2.772-10.628-4.555s-3.367-3.763-0.99-4.95c2.376-1.188,6.138-2.573,8.118-3.828 C40.643,46.082,51.203,40.271,51.203,40.271z\\\"></path><path d=\\\"M28.894,11.229c0,0,14.158-0.198,16.535,0c2.376,0.198,13.367,0.495,16.139,2.277s5.941,5.644,7.128,8.614 c1.188,2.97,2.675,7.525,0,8.713c-2.673,1.188-14.06,5.743-17.425,7.624c-3.367,1.881-16.734,6.832-18.714,7.822 c-1.98,0.99-10.396,5.897-14.654,3.691c-4.258-2.205-7.525-11.91-7.921-14.384c0,0-2.475-5.743-2.673-15.644 c0,0-0.297-2.674-1.881-6.832c-1.584-4.159-3.07-6.436-3.07-6.436S0.675,0.833,4.041,2.516c3.366,1.683,2.818,2.161,6.237,3.564 c3.862,1.584,10,3.367,10.595,3.564C21.467,9.843,28.894,11.229,28.894,11.229z\\\"></path></svg>\"},\"$:/plugins/linonetwo/zx-script/button.js\":{\"title\":\"$:/plugins/linonetwo/zx-script/button.js\",\"type\":\"application/javascript\",\"module-type\":\"widget\",\"Modern.TiddlyDev#Origin\":\"button.ts\",\"text\":\"\\\"use strict\\\";var import_widget=require(\\\"$:/core/modules/widgets/widget.js\\\");function execute(e,i,s=\\\"text/vnd.tiddlywiki\\\",n,c){if(\\\"observables\\\"in window){let t=e.replace(/[/$:]/g,\\\"-\\\");if(!t.endsWith(\\\".mjs\\\")&&!t.endsWith(\\\".js\\\")&&!t.endsWith(\\\".md\\\"))switch(s){case\\\"text/vnd.tiddlywiki\\\":case\\\"text/plain\\\":case\\\"text/markdown\\\":case\\\"text/x-markdown\\\":case\\\"text/html\\\":t+=\\\".md\\\";break;case\\\"text/x-shellscript\\\":i=i.split(\\\"\\\\n\\\").map(t=>`await $\\\\`${t.trim()}\\\\`;`).join(\\\"\\\\n\\\"),t+=\\\".mjs\\\";break;case\\\"application/typescript\\\":t+=\\\".ts\\\";break;default:t+=\\\".mjs\\\"}n(),window.observables[\\\"native\\\"].executeZxScript$({fileContent:i,fileName:t}).subscribe(c)}}var ZXExecuteButtonWidget=class extends import_widget.widget{constructor(t,e){super(t,e),this.initialise(t,e)}render(t,e){this.parentDomNode=t,this.computeAttributes();var i=this.document.createElement(\\\"button\\\");$tw.utils.addClass(i,\\\"tc-btn-invisible\\\"),i.innerHTML=`${$tw.wiki.getTiddlerText(\\\"$:/plugins/linonetwo/zx-script/zx-icon\\\")}<span class=\\\"tc-btn-text tc-button-zx-script-caption\\\">${$tw.wiki.getTiddlerText(\\\"$:/plugins/linonetwo/zx-script/zx-button-caption\\\")}</span>`,i.onclick=this.onExecuteButtonClick.bind(this),i.title=\\\"ZX\\\",i.ariaLabel=i.title,t.insertBefore(i,e),this.domNodes.push(i)}async onExecuteButtonClick(){var t=this.getAttribute(\\\"title\\\");if(t){var e=this.getAttribute(\\\"type\\\")||\\\"text/vnd.tiddlywiki\\\",i=this.getAttribute(\\\"content\\\",\\\"\\\");const s=\\\"$:/state/linonetwo/zx-script/output/\\\"+t;execute(t,i,e,()=>{$tw.wiki.setText(s,\\\"text\\\",void 0,\\\"\\\")},t=>{var e=$tw.wiki.getTiddlerText(s);$tw.wiki.setText(s,\\\"text\\\",void 0,`${null!=e?e:\\\"\\\"}\\n`+(null!=t?t:\\\"\\\")),$tw.wiki.setText(s,\\\"type\\\",void 0,\\\"text/vnd.tiddlywiki\\\")})}}};exports[\\\"execute-zx-script\\\"]=ZXExecuteButtonWidget;\"},\"$:/plugins/linonetwo/zx-script/codeblock.js\":{\"title\":\"$:/plugins/linonetwo/zx-script/codeblock.js\",\"type\":\"application/javascript\",\"module-type\":\"widget\",\"Modern.TiddlyDev#Origin\":\"codeblock.ts\",\"text\":\"\\\"use strict\\\";function execute(t,s,i=\\\"text/vnd.tiddlywiki\\\",a,r){if(\\\"observables\\\"in window){let e=t.replace(/[/$:]/g,\\\"-\\\");if(!e.endsWith(\\\".mjs\\\")&&!e.endsWith(\\\".js\\\")&&!e.endsWith(\\\".md\\\"))switch(i){case\\\"text/vnd.tiddlywiki\\\":case\\\"text/plain\\\":case\\\"text/markdown\\\":case\\\"text/x-markdown\\\":case\\\"text/html\\\":e+=\\\".md\\\";break;case\\\"text/x-shellscript\\\":s=s.split(\\\"\\\\n\\\").map(e=>`await $\\\\`${e.trim()}\\\\`;`).join(\\\"\\\\n\\\"),e+=\\\".mjs\\\";break;case\\\"application/typescript\\\":e+=\\\".ts\\\";break;default:e+=\\\".mjs\\\"}a(),window.observables[\\\"native\\\"].executeZxScript$({fileContent:s,fileName:e}).subscribe(r)}}var BaseCodeBlockWidget=require(\\\"$:/core/modules/widgets/codeblock.js\\\").codeblock,ZX_SCRIPT_OUTPUT_ID=\\\"zx-script-output-id\\\";BaseCodeBlockWidget.prototype.render=function(e,t){this.parentDomNode=e,this.computeAttributes(),this.execute();var s=this.document.createElement(\\\"code\\\"),i=this.document.createElement(\\\"pre\\\");s.appendChild(this.document.createTextNode(this.getAttribute(\\\"code\\\"))),i.appendChild(s);const a=this.getAttribute(\\\"language\\\"),d=this.document.createElement(\\\"article\\\");d.style.display=\\\"none\\\",$tw.utils.addClass(d,\\\"zx-script-output\\\"),[\\\"md\\\",\\\"js\\\",\\\"javascript\\\",\\\"ts\\\",\\\"typescript\\\",\\\"bash\\\",\\\"shell\\\",\\\"sh\\\",\\\"zsh\\\"].includes(a)&&((s=this.document.createElement(\\\"button\\\")).innerText=\\\"ZX\\\",s.className=\\\"code-block-zx-script-execution-button\\\",s.addEventListener(\\\"click\\\",()=>{var e=\\\"tmp.\\\"+a,t=this.getAttribute(\\\"code\\\");let s=\\\"text/vnd.tiddlywiki\\\";switch(a){case\\\"markdown\\\":case\\\"md\\\":s=\\\"text/x-markdown\\\";break;case\\\"js\\\":case\\\"javascript\\\":s=\\\"application/javascript\\\";break;case\\\"ts\\\":case\\\"typescript\\\":s=\\\"application/typescript\\\";break;case\\\"bash\\\":case\\\"zsh\\\":case\\\"shell\\\":case\\\"sh\\\":s=\\\"text/x-shellscript\\\";break;default:return void(d.innerText=\\\"ZX don't execute \\\"+a)}const r=Math.random().toString(36).slice(2);let c=\\\"\\\";execute(e,t,s,()=>{d.innerText=\\\"\\\",d.style.display=\\\"flex\\\",$tw.utils.addClass(d,\\\"hljs\\\"),$tw.utils.addClass(d,\\\"js\\\"),$tw.utils.addClass(d,\\\"javascript\\\"),c=\\\"\\\"},e=>{var t=\\\"\\\"+c+(c?\\\"\\\\n\\\\n\\\":\\\"\\\")+(null!=e?e:\\\"\\\");c=t;try{this.children=this.children.filter(e=>e.getVariable(ZX_SCRIPT_OUTPUT_ID,{allowSelfAssigned:!0})!==r),d.innerText=\\\"\\\";var s=$tw.wiki.parseText(\\\"text/vnd.tiddlywiki\\\",t).tree,i=this.makeChildWidget({type:\\\"tiddler\\\",children:s});i.setVariable(ZX_SCRIPT_OUTPUT_ID,r),i.render(d,null),this.children.push(i)}catch(a){console.error(a),d.innerText=t}})}),e.insertBefore(s,t)),e.insertBefore(i,t),e.insertBefore(d,t),this.domNodes.push(i),this.domNodes.push(d),this.postRender&&this.postRender()};\"}}}", - "Modern.TiddlyDev#SHA256-Hashed": "fe21225458c587c899d93b46c60c62a40d83b1cdb769f7aa225465260dd047a5" + "version": "1.0.0", + "Modern.TiddlyDev#SHA256-Hashed": "a6d1f1d5e399af7b036dc169691f6217b152f9965647639d3680c219aac5b4c2" } ] \ No newline at end of file diff --git a/tiddlers/$__snippets_LayoutSwitcher.tid b/tiddlers/$__snippets_LayoutSwitcher.tid new file mode 100644 index 0000000..01addb5 --- /dev/null +++ b/tiddlers/$__snippets_LayoutSwitcher.tid @@ -0,0 +1,6 @@ +caption: {{$:/language/ControlPanel/LayoutSwitcher/Caption}} +tags: $:/tags/ControlPanel/Appearance +title: $:/snippets/LayoutSwitcher +type: text/vnd.tiddlywiki + +<<simple-layout-launcher>> \ No newline at end of file