@alexsun-top/opencode-chat-room 0.7.8 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/LICENSE +21 -0
  3. package/README.md +77 -36
  4. package/README.zh-CN.md +82 -41
  5. package/cli.ts +27 -1
  6. package/dist/cli.js +6905 -2764
  7. package/package.json +33 -3
  8. package/packages/chat-room-channeld/README.md +315 -0
  9. package/packages/chat-room-channeld/dist/feishu-adapter.js +1262 -0
  10. package/packages/chat-room-channeld/dist/mock-adapter.js +295 -0
  11. package/packages/chat-room-channeld/src/adapter.ts +509 -0
  12. package/packages/chat-room-channeld/src/cli.ts +124 -0
  13. package/packages/chat-room-channeld/src/config.ts +269 -0
  14. package/packages/chat-room-channeld/src/delivery.ts +163 -0
  15. package/packages/chat-room-channeld/src/feishu-adapter.ts +303 -0
  16. package/packages/chat-room-channeld/src/feishu-card.ts +27 -0
  17. package/packages/chat-room-channeld/src/feishu-inbound.ts +158 -0
  18. package/packages/chat-room-channeld/src/feishu-live.ts +355 -0
  19. package/packages/chat-room-channeld/src/feishu-send.ts +342 -0
  20. package/packages/chat-room-channeld/src/feishu-ws-frames.ts +173 -0
  21. package/packages/chat-room-channeld/src/framing.ts +128 -0
  22. package/packages/chat-room-channeld/src/host-helpers.ts +52 -0
  23. package/packages/chat-room-channeld/src/host.ts +627 -0
  24. package/packages/chat-room-channeld/src/inbound.ts +26 -0
  25. package/packages/chat-room-channeld/src/ingest-gate.ts +108 -0
  26. package/packages/chat-room-channeld/src/log.ts +26 -0
  27. package/packages/chat-room-channeld/src/mock-adapter.ts +206 -0
  28. package/packages/chat-room-channeld/src/protocol.ts +75 -0
  29. package/packages/chat-room-channeld/src/published.ts +37 -0
  30. package/packages/chat-room-channeld/src/rules.ts +127 -0
  31. package/packages/chat-room-channeld/src/state.ts +502 -0
  32. package/packages/chat-room-channeld/src/stats.ts +209 -0
  33. package/plugin.ts +22 -5
  34. package/server/addressing-routes.ts +130 -0
  35. package/server/admin-state.ts +13 -13
  36. package/server/app.ts +95 -0
  37. package/server/assets/NOTICE.txt +3 -2
  38. package/server/assets/SHIKI-LICENSE +22 -0
  39. package/server/assets/base.css +24 -10
  40. package/server/assets/chat/announcements.js +70 -7
  41. package/server/assets/chat/doc-preview.js +187 -39
  42. package/server/assets/chat/events.js +3 -0
  43. package/server/assets/chat/files.js +46 -4
  44. package/server/assets/chat/forward.js +69 -0
  45. package/server/assets/chat/index.js +4 -0
  46. package/server/assets/chat/integration-editor.js +163 -0
  47. package/server/assets/chat/integration-values.js +124 -0
  48. package/server/assets/chat/integrations.js +498 -0
  49. package/server/assets/chat/locales/de.js +45 -4
  50. package/server/assets/chat/locales/es.js +45 -4
  51. package/server/assets/chat/locales/fr.js +45 -4
  52. package/server/assets/chat/locales/it.js +45 -4
  53. package/server/assets/chat/locales/ja.js +45 -4
  54. package/server/assets/chat/locales/ko.js +45 -4
  55. package/server/assets/chat/markdown-footnotes.js +115 -0
  56. package/server/assets/chat/markdown.js +46 -43
  57. package/server/assets/chat/messages.js +5 -5
  58. package/server/assets/chat/office-preview.js +69 -0
  59. package/server/assets/chat/palette.js +1 -1
  60. package/server/assets/chat/panels.js +36 -0
  61. package/server/assets/chat/recall.js +58 -7
  62. package/server/assets/chat/receipts.js +15 -3
  63. package/server/assets/chat/reminders.js +69 -8
  64. package/server/assets/chat/replies.js +7 -1
  65. package/server/assets/chat/resource-format.js +11 -0
  66. package/server/assets/chat/settings.js +30 -2
  67. package/server/assets/chat/shiki.js +87 -0
  68. package/server/assets/chat/side-pane.js +9 -3
  69. package/server/assets/chat/state.js +107 -11
  70. package/server/assets/chat/system-events.js +32 -0
  71. package/server/assets/chat/system-messages.js +23 -12
  72. package/server/assets/chat/task-row.js +0 -6
  73. package/server/assets/chat/tasks.js +121 -33
  74. package/server/assets/code-highlight.css +74 -62
  75. package/server/assets/conversation.css +126 -25
  76. package/server/assets/doc-preview.css +36 -3
  77. package/server/assets/files.css +5 -0
  78. package/server/assets/fluent-icons.svg +2 -0
  79. package/server/assets/monaco/LICENSE +21 -0
  80. package/server/assets/monaco/ThirdPartyNotices.txt +448 -0
  81. package/server/assets/monaco/codicon-jdswhhtn.ttf +0 -0
  82. package/server/assets/monaco/editor.worker.js +45 -0
  83. package/server/assets/monaco/integration-rules.css +1 -0
  84. package/server/assets/monaco/integration-rules.js +1297 -0
  85. package/server/assets/monaco/json.worker.js +77 -0
  86. package/server/assets/office/THIRD-PARTY-NOTICES.txt +11 -0
  87. package/server/assets/office/docx.bundle.js +33 -0
  88. package/server/assets/office/licenses/docx-preview-LICENSE.txt +201 -0
  89. package/server/assets/office/licenses/echarts-LICENSE.txt +222 -0
  90. package/server/assets/office/licenses/jszip-LICENSE.txt +651 -0
  91. package/server/assets/office/licenses/lodash-LICENSE.txt +47 -0
  92. package/server/assets/office/licenses/pptx-preview-LICENSE.txt +8 -0
  93. package/server/assets/office/licenses/tslib-LICENSE.txt +12 -0
  94. package/server/assets/office/licenses/uuid-LICENSE.txt +9 -0
  95. package/server/assets/office/licenses/xlsx-LICENSE.txt +201 -0
  96. package/server/assets/{HIGHLIGHT-LICENSE → office/licenses/zrender-LICENSE.txt} +2 -2
  97. package/server/assets/office/pptx.bundle.js +104 -0
  98. package/server/assets/office/xlsx.bundle.js +141 -0
  99. package/server/assets/recall.css +5 -4
  100. package/server/assets/responsive.css +52 -8
  101. package/server/assets/settings.css +73 -1
  102. package/server/assets/shiki.bundle.js +152 -0
  103. package/server/assets/tasks.css +57 -7
  104. package/server/channel-integration.ts +519 -0
  105. package/server/channel-settings.ts +77 -0
  106. package/server/channels.ts +557 -0
  107. package/server/chat-server.ts +33 -558
  108. package/server/chat.html +195 -22
  109. package/server/http-server.ts +3 -182
  110. package/server/resource-routes.ts +16 -16
  111. package/server/routes/inbox.ts +100 -0
  112. package/server/routes/pages.ts +83 -0
  113. package/server/routes/questions.ts +39 -0
  114. package/server/routes/room-actions.ts +162 -0
  115. package/server/routes/rooms.ts +160 -0
  116. package/server/startup.ts +84 -0
  117. package/server/sw.js +5 -2
  118. package/server/task-routes.ts +1 -1
  119. package/skills/chatroom/SKILL.md +1 -1
  120. package/src/center/center-client.ts +71 -1
  121. package/src/config/file-config.ts +29 -42
  122. package/src/platform/http-server.ts +182 -0
  123. package/src/protocol/addressing.ts +21 -0
  124. package/src/protocol/config.ts +58 -0
  125. package/src/protocol/room.ts +51 -0
  126. package/src/rooms/resources.ts +26 -16
  127. package/src/rooms/room-service.ts +2 -48
  128. package/src/rooms/storage.ts +329 -0
  129. package/src/rooms/tasks.ts +21 -5
  130. package/src/runtime/v2-plugin.ts +8 -2
  131. package/src/runtime/watch.ts +4 -3
  132. package/src/state/pg-database.ts +183 -0
  133. package/src/state/pg-migrate.ts +175 -0
  134. package/src/state/pg-sql.mjs +175 -0
  135. package/src/state/pg-worker.mjs +148 -0
  136. package/src/state/sqlite-announcements.ts +25 -0
  137. package/src/state/sqlite-database.ts +121 -0
  138. package/src/state/sqlite-legacy.ts +90 -0
  139. package/src/state/sqlite-members.ts +155 -0
  140. package/src/state/sqlite-messages.ts +288 -0
  141. package/src/state/sqlite-resources.ts +39 -0
  142. package/src/state/sqlite-rooms.ts +87 -0
  143. package/src/state/sqlite-schema.ts +80 -0
  144. package/src/state/sqlite-state-store.ts +33 -0
  145. package/src/state/sqlite-state.ts +15 -866
  146. package/src/state/sqlite-tasks.ts +65 -0
  147. package/src/state/sqlite-transaction.ts +13 -0
  148. package/src/state/sqlite.ts +21 -1
  149. package/src/state/store.ts +13 -3
  150. package/src/tui/app.mjs +32 -19
  151. package/src/tui/config.mjs +12 -4
  152. package/src/tui/http.mjs +16 -2
  153. package/src/tui/i18n.mjs +38 -0
  154. package/src/tui/info-app.mjs +50 -51
  155. package/src/tui/info-content.mjs +79 -44
  156. package/src/tui/join-app.mjs +9 -9
  157. package/src/tui/locales/en.mjs +349 -0
  158. package/src/tui/locales/zh-CN.mjs +349 -0
  159. package/src/tui/main.mjs +85 -37
  160. package/src/tui/markdown.mjs +3 -2
  161. package/src/tui/mentions.mjs +3 -1
  162. package/src/tui/message-app.mjs +22 -21
  163. package/src/tui/message-view.mjs +2 -1
  164. package/src/tui/palette-app.mjs +9 -8
  165. package/src/tui/palette.mjs +30 -24
  166. package/src/tui/prefs.mjs +92 -0
  167. package/src/tui/reminder-app.mjs +18 -17
  168. package/src/tui/room-settings-app.mjs +30 -28
  169. package/src/tui/settings-app.mjs +153 -0
  170. package/src/tui/ui-content.mjs +65 -86
  171. package/src/tui/ui-help.mjs +73 -0
  172. package/src/tui/ui-overlay-view.mjs +23 -7
  173. package/src/tui/ui-suggest.mjs +6 -5
  174. package/src/tui/ui-theme.mjs +37 -33
  175. package/src/tui/ui-view.mjs +22 -7
  176. package/src/tui/ui.mjs +15 -3
  177. package/src/web/editor.worker.ts +1 -0
  178. package/src/web/integration-rules-editor.ts +439 -0
  179. package/src/web/integration-rules.ts +22 -0
  180. package/src/web/integration-schema.ts +228 -0
  181. package/src/web/json.worker.ts +1 -0
  182. package/src/web/office-viewer.ts +221 -0
  183. package/server/assets/highlight-10.7.3.min.js +0 -1358
@@ -0,0 +1,104 @@
1
+ var xpt=Object.create;var{getPrototypeOf:Spt,defineProperty:A2,getOwnPropertyNames:bpt}=Object;var pV=Object.prototype.hasOwnProperty;function wpt(r){return this[r]}var Tpt,Apt,hV=(r,e,t)=>{var i=r!=null&&typeof r==="object";if(i){var n=e?Tpt??=new WeakMap:Apt??=new WeakMap,a=n.get(r);if(a)return a}t=r!=null?xpt(Spt(r)):{};let o=e||!r||!r.__esModule||!pV.call(r,"default")?A2(t,"default",{value:r,enumerable:!0}):t;if(r&&typeof r==="object"||typeof r==="function"){for(let s of bpt(r))if(!pV.call(o,s))A2(o,s,{get:wpt.bind(r,s),enumerable:!0})}if(i)n.set(r,o);return o};var dV=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Cpt=(r)=>r;function Ept(r,e){this[r]=Cpt.bind(null,e)}var Mpt=(r,e)=>{for(var t in e)A2(r,t,{get:e[t],enumerable:!0,configurable:!0,set:Ept.bind(e,t)})};var k=(r,e,t)=>()=>{if(r)try{e=r(r=0)}catch(i){t=[i]}if(t)throw t[0];return e};var C2=((r)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});function dd(r,e){if(typeof e!=="function"&&e!==null)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");E2(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Mi(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(f){o(f)}}function l(c){try{u(i.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):n(c.value).then(s,l)}u((i=i.apply(r,e||[])).next())})}function Li(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;if(n=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if((a=t.trys,!(a=a.length>0&&a[a.length-1]))&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=e.call(r,t)}catch(c){u=[6,c],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function vd(r,e,t){if(t||arguments.length===2){for(var i=0,n=e.length,a;i<n;i++)if(a||!(i in e)){if(!a)a=Array.prototype.slice.call(e,0,i);a[i]=e[i]}}return r.concat(a||Array.prototype.slice.call(e))}var E2=function(r,e){return E2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]},E2(r,e)},Jt=function(){return Jt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e},Jt.apply(this,arguments)};var vV=()=>{};var gV=dV(function(mV,M2){/*!
2
+
3
+ JSZip v3.10.2 - A JavaScript class for generating and reading zip files
4
+ <http://stuartk.com/jszip>
5
+
6
+ (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
7
+ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8
+
9
+ JSZip uses the library pako released under the MIT license :
10
+ https://github.com/nodeca/pako/blob/main/LICENSE
11
+ */(function(r){if(typeof mV=="object"&&typeof M2<"u")M2.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=r()})(function(){return function r(e,t,i){function n(s,l){if(!t[s]){if(!e[s]){var u=C2;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=t[s]={exports:{}};e[s][0].call(f.exports,function(p){var h=e[s][1][p];return n(h||p)},f,f.exports,r,e,t,i)}return t[s].exports}for(var a=C2,o=0;o<i.length;o++)n(i[o]);return n}({1:[function(r,e,t){var i=r("./utils"),n=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(o){for(var s,l,u,c,f,p,h,v=[],g=0,y=o.length,m=y,d=i.getTypeOf(o)!=="string";g<o.length;)m=y-g,u=d?(s=o[g++],l=g<y?o[g++]:0,g<y?o[g++]:0):(s=o.charCodeAt(g++),l=g<y?o.charCodeAt(g++):0,g<y?o.charCodeAt(g++):0),c=s>>2,f=(3&s)<<4|l>>4,p=1<m?(15&l)<<2|u>>6:64,h=2<m?63&u:64,v.push(a.charAt(c)+a.charAt(f)+a.charAt(p)+a.charAt(h));return v.join("")},t.decode=function(o){var s,l,u,c,f,p,h=0,v=0,g="data:";if(o.substr(0,g.length)===g)throw Error("Invalid base64 input, it looks like a data url.");var y,m=3*(o=o.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(o.charAt(o.length-1)===a.charAt(64)&&m--,o.charAt(o.length-2)===a.charAt(64)&&m--,m%1!=0)throw Error("Invalid base64 input, bad content length.");for(y=n.uint8array?new Uint8Array(0|m):Array(0|m);h<o.length;)s=a.indexOf(o.charAt(h++))<<2|(c=a.indexOf(o.charAt(h++)))>>4,l=(15&c)<<4|(f=a.indexOf(o.charAt(h++)))>>2,u=(3&f)<<6|(p=a.indexOf(o.charAt(h++))),y[v++]=s,f!==64&&(y[v++]=l),p!==64&&(y[v++]=u);return y}},{"./support":30,"./utils":32}],2:[function(r,e,t){var i=r("./external"),n=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),o=r("./stream/DataLengthProbe");function s(l,u,c,f,p){this.compressedSize=l,this.uncompressedSize=u,this.crc32=c,this.compression=f,this.compressedContent=p}s.prototype={getContentWorker:function(){var l=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),u=this;return l.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(l,u,c){return l.pipe(new a).pipe(new o("uncompressedSize")).pipe(u.compressWorker(c)).pipe(new o("compressedSize")).withStreamInfo("compression",u)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,e,t){var i=r("./stream/GenericWorker");t.STORE={magic:"\x00\x00",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},t.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,e,t){var i=r("./utils"),n=function(){for(var a,o=[],s=0;s<256;s++){a=s;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;o[s]=a}return o}();e.exports=function(a,o){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?function(s,l,u,c){var f=n,p=c+u;s^=-1;for(var h=c;h<p;h++)s=s>>>8^f[255&(s^l[h])];return-1^s}(0|o,a,a.length,0):function(s,l,u,c){var f=n,p=c+u;s^=-1;for(var h=c;h<p;h++)s=s>>>8^f[255&(s^l.charCodeAt(h))];return-1^s}(0|o,a,a.length,0):0}},{"./utils":32}],5:[function(r,e,t){t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(r,e,t){var i=null;i=typeof Promise<"u"?Promise:r("lie"),e.exports={Promise:i}},{lie:37}],7:[function(r,e,t){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",n=r("pako"),a=r("./utils"),o=r("./stream/GenericWorker"),s=i?"uint8array":"array";function l(u,c){o.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=c,this.meta={}}t.magic="\b\x00",a.inherits(l,o),l.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,u.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(c){u.push({data:c,meta:u.meta})}},t.compressWorker=function(u){return new l("Deflate",u)},t.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,e,t){function i(f,p){var h,v="";for(h=0;h<p;h++)v+=String.fromCharCode(255&f),f>>>=8;return v}function n(f,p,h,v,g,y){var m,d,{file:x,compression:S}=f,w=y!==s.utf8encode,T=a.transformTo("string",y(x.name)),A=a.transformTo("string",s.utf8encode(x.name)),M=x.comment,D=a.transformTo("string",y(M)),L=a.transformTo("string",s.utf8encode(M)),I=A.length!==x.name.length,E=L.length!==M.length,R="",B="",z="",{dir:V,date:H}=x,K={crc32:0,compressedSize:0,uncompressedSize:0};p&&!h||(K.crc32=f.crc32,K.compressedSize=f.compressedSize,K.uncompressedSize=f.uncompressedSize);var F=0;p&&(F|=8),w||!I&&!E||(F|=2048);var G=0,rt=0;V&&(G|=16),g==="UNIX"?(rt=798,G|=function(at,mt){var Tt=at;return at||(Tt=mt?16893:33204),(65535&Tt)<<16}(x.unixPermissions,V)):(rt=20,G|=function(at){return 63&(at||0)}(x.dosPermissions)),m=H.getUTCHours(),m<<=6,m|=H.getUTCMinutes(),m<<=5,m|=H.getUTCSeconds()/2,d=H.getUTCFullYear()-1980,d<<=4,d|=H.getUTCMonth()+1,d<<=5,d|=H.getUTCDate(),I&&(B=i(1,1)+i(l(T),4)+A,R+="up"+i(B.length,2)+B),E&&(z=i(1,1)+i(l(D),4)+L,R+="uc"+i(z.length,2)+z);var ot="";return ot+=`
12
+ \x00`,ot+=i(F,2),ot+=S.magic,ot+=i(m,2),ot+=i(d,2),ot+=i(K.crc32,4),ot+=i(K.compressedSize,4),ot+=i(K.uncompressedSize,4),ot+=i(T.length,2),ot+=i(R.length,2),{fileRecord:u.LOCAL_FILE_HEADER+ot+T+R,dirRecord:u.CENTRAL_FILE_HEADER+i(rt,2)+ot+i(D.length,2)+"\x00\x00\x00\x00"+i(G,4)+i(v,4)+T+R+D}}var a=r("../utils"),o=r("../stream/GenericWorker"),s=r("../utf8"),l=r("../crc32"),u=r("../signature");function c(f,p,h,v){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=h,this.encodeFileName=v,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(f){var p=f.meta.percent||0,h=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,o.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:h?(p+100*(h-v-1))/h:100}}))},c.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var p=this.streamFiles&&!f.file.dir;if(p){var h=n(f,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(f){this.accumulate=!1;var p=this.streamFiles&&!f.file.dir,h=n(f,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),p)this.push({data:function(v){return u.DATA_DESCRIPTOR+i(v.crc32,4)+i(v.compressedSize,4)+i(v.uncompressedSize,4)}(f),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var f=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var h=this.bytesWritten-f,v=function(g,y,m,d,x){var S=a.transformTo("string",x(d));return u.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+i(g,2)+i(g,2)+i(y,4)+i(m,4)+i(S.length,2)+S}(this.dirRecords.length,h,f,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(f){this._sources.push(f);var p=this;return f.on("data",function(h){p.processChunk(h)}),f.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),f.on("error",function(h){p.error(h)}),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(f){var p=this._sources;if(!o.prototype.error.call(this,f))return!1;for(var h=0;h<p.length;h++)try{p[h].error(f)}catch(v){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var f=this._sources,p=0;p<f.length;p++)f[p].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,e,t){var i=r("../compressions"),n=r("./ZipFileWorker");t.generateWorker=function(a,o,s){var l=new n(o.streamFiles,s,o.platform,o.encodeFileName),u=0;try{a.forEach(function(c,f){u++;var p=function(y,m){var d=y||m,x=i[d];if(!x)throw Error(d+" is not a valid compression method !");return x}(f.options.compression,o.compression),h=f.options.compressionOptions||o.compressionOptions||{},{dir:v,date:g}=f;f._compressWorker(p,h).withStreamInfo("file",{name:c,dir:v,date:g,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(l)}),l.entriesCount=u}catch(c){l.error(c)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,e,t){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var n=new i;for(var a in this)typeof this[a]!="function"&&(n[a]=this[a]);return n}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.2",i.loadAsync=function(n,a){return new i().loadAsync(n,a)},i.external=r("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,e,t){var i=r("./utils"),n=r("./external"),a=r("./utf8"),o=r("./zipEntries"),s=r("./stream/Crc32Probe"),l=r("./nodejsUtils");function u(c){return new n.Promise(function(f,p){var h=c.decompressed.getContentWorker().pipe(new s);h.on("error",function(v){p(v)}).on("end",function(){h.streamInfo.crc32!==c.decompressed.crc32?p(Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}e.exports=function(c,f){var p=this;return f=i.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(c)?n.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",c,!0,f.optimizedBinaryString,f.base64).then(function(h){var v=new o(f);return v.load(h),v}).then(function(h){var v=[n.Promise.resolve(h)],g=h.files;if(f.checkCRC32)for(var y=0;y<g.length;y++)v.push(u(g[y]));return n.Promise.all(v)}).then(function(h){for(var v=h.shift(),g=v.files,y=0;y<g.length;y++){var m=g[y],d=m.fileNameStr,x=i.resolve(m.fileNameStr);p.file(x,m.decompressed,{binary:!0,optimizedBinaryString:!0,date:m.date,dir:m.dir,comment:m.fileCommentStr.length?m.fileCommentStr:null,unixPermissions:m.unixPermissions,dosPermissions:m.dosPermissions,createFolders:f.createFolders}),m.dir||(p.file(x).unsafeOriginalName=d)}return v.zipComment.length&&(p.comment=v.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,e,t){var i=r("../utils"),n=r("../stream/GenericWorker");function a(o,s){n.call(this,"Nodejs stream input adapter for "+o),this._upstreamEnded=!1,this._bindStream(s)}i.inherits(a,n),a.prototype._bindStream=function(o){var s=this;(this._stream=o).pause(),o.on("data",function(l){s.push({data:l,meta:{percent:0}})}).on("error",function(l){s.isPaused?this.generatedError=l:s.error(l)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},a.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,e,t){var i=r("readable-stream").Readable;function n(a,o,s){i.call(this,o),this._helper=a;var l=this;a.on("data",function(u,c){l.push(u)||l._helper.pause(),s&&s(c)}).on("error",function(u){l.emit("error",u)}).on("end",function(){l.push(null)})}r("../utils").inherits(n,i),n.prototype._read=function(){this._helper.resume()},e.exports=n},{"../utils":32,"readable-stream":16}],14:[function(r,e,t){e.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,n){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,n);if(typeof i=="number")throw Error('The "data" argument must not be a number');return new Buffer(i,n)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var n=new Buffer(i);return n.fill(0),n},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,e,t){function i(x,S,w){var T,A=a.getTypeOf(S),M=a.extend(w||{},l);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(x=g(x)),M.createFolders&&(T=v(x))&&y.call(this,T,!0);var D=A==="string"&&M.binary===!1&&M.base64===!1;w&&w.binary!==void 0||(M.binary=!D),(S instanceof u&&S.uncompressedSize===0||M.dir||!S||S.length===0)&&(M.base64=!1,M.binary=!0,S="",M.compression="STORE",A="string");var L=null;L=S instanceof u||S instanceof o?S:p.isNode&&p.isStream(S)?new h(x,S):a.prepareContent(x,S,M.binary,M.optimizedBinaryString,M.base64);var I=new c(x,L,M);this.files[x]=I}var n=r("./utf8"),a=r("./utils"),o=r("./stream/GenericWorker"),s=r("./stream/StreamHelper"),l=r("./defaults"),u=r("./compressedObject"),c=r("./zipObject"),f=r("./generate"),p=r("./nodejsUtils"),h=r("./nodejs/NodejsStreamInputAdapter"),v=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var S=x.lastIndexOf("/");return 0<S?x.substring(0,S):""},g=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},y=function(x,S){return S=S!==void 0?S:l.createFolders,x=g(x),this.files[x]||i.call(this,x,null,{dir:!0,createFolders:S}),this.files[x]};function m(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var d={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var S,w,T;for(S in this.files)T=this.files[S],(w=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&x(w,T)},filter:function(x){var S=[];return this.forEach(function(w,T){x(w,T)&&S.push(T)}),S},file:function(x,S,w){if(arguments.length!==1)return x=this.root+x,i.call(this,x,S,w),this;if(m(x)){var T=x;return this.filter(function(M,D){return!D.dir&&T.test(M)})}var A=this.files[this.root+x];return A&&!A.dir?A:null},folder:function(x){if(!x)return this;if(m(x))return this.filter(function(A,M){return M.dir&&x.test(A)});var S=this.root+x,w=y.call(this,S),T=this.clone();return T.root=w.name,T},remove:function(x){x=this.root+x;var S=this.files[x];if(S||(x.slice(-1)!=="/"&&(x+="/"),S=this.files[x]),S&&!S.dir)delete this.files[x];else for(var w=this.filter(function(A,M){return M.name.slice(0,x.length)===x}),T=0;T<w.length;T++)delete this.files[w[T].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var S,w={};try{if((w=a.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw Error("No output type specified.");a.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var T=w.comment||this.comment||"";S=f.generateWorker(this,w,T)}catch(A){(S=new o("error")).error(A)}return new s(S,w.type||"string",w.mimeType)},generateAsync:function(x,S){return this.generateInternalStream(x).accumulate(S)},generateNodeStream:function(x,S){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(S)}};e.exports=d},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,e,t){e.exports=r("stream")},{stream:void 0}],17:[function(r,e,t){var i=r("./DataReader");function n(a){i.call(this,a);for(var o=0;o<this.data.length;o++)a[o]=255&a[o]}r("../utils").inherits(n,i),n.prototype.byteAt=function(a){return this.data[this.zero+a]},n.prototype.lastIndexOfSignature=function(a){for(var o=a.charCodeAt(0),s=a.charCodeAt(1),l=a.charCodeAt(2),u=a.charCodeAt(3),c=this.length-4;0<=c;--c)if(this.data[c]===o&&this.data[c+1]===s&&this.data[c+2]===l&&this.data[c+3]===u)return c-this.zero;return-1},n.prototype.readAndCheckSignature=function(a){var o=a.charCodeAt(0),s=a.charCodeAt(1),l=a.charCodeAt(2),u=a.charCodeAt(3),c=this.readData(4);return o===c[0]&&s===c[1]&&l===c[2]&&u===c[3]},n.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},e.exports=n},{"../utils":32,"./DataReader":18}],18:[function(r,e,t){var i=r("../utils");function n(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var o,s=0;for(this.checkOffset(a),o=this.index+a-1;o>=this.index;o--)s=(s<<8)+this.byteAt(o);return this.index+=a,s},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},e.exports=n},{"../utils":32}],19:[function(r,e,t){var i=r("./Uint8ArrayReader");function n(a){i.call(this,a)}r("../utils").inherits(n,i),n.prototype.readData=function(a){this.checkOffset(a);var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,e,t){var i=r("./DataReader");function n(a){i.call(this,a)}r("../utils").inherits(n,i),n.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},n.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},n.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},n.prototype.readData=function(a){this.checkOffset(a);var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(r,e,t){var i=r("./ArrayReader");function n(a){i.call(this,a)}r("../utils").inherits(n,i),n.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(r,e,t){var i=r("../utils"),n=r("../support"),a=r("./ArrayReader"),o=r("./StringReader"),s=r("./NodeBufferReader"),l=r("./Uint8ArrayReader");e.exports=function(u){var c=i.getTypeOf(u);return i.checkSupport(c),c!=="string"||n.uint8array?c==="nodebuffer"?new s(u):n.uint8array?new l(i.transformTo("uint8array",u)):new a(i.transformTo("array",u)):new o(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,e,t){t.LOCAL_FILE_HEADER="PK\x03\x04",t.CENTRAL_FILE_HEADER="PK\x01\x02",t.CENTRAL_DIRECTORY_END="PK\x05\x06",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,e,t){var i=r("./GenericWorker"),n=r("../utils");function a(o){i.call(this,"ConvertWorker to "+o),this.destType=o}n.inherits(a,i),a.prototype.processChunk=function(o){this.push({data:n.transformTo(this.destType,o.data),meta:o.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,e,t){var i=r("./GenericWorker"),n=r("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,i),a.prototype.processChunk=function(o){this.streamInfo.crc32=n(o.data,this.streamInfo.crc32||0),this.push(o)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,e,t){var i=r("../utils"),n=r("./GenericWorker");function a(o){n.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}i.inherits(a,n),a.prototype.processChunk=function(o){if(o){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+o.data.length}n.prototype.processChunk.call(this,o)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,e,t){var i=r("../utils"),n=r("./GenericWorker");function a(o){n.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(l){s.dataIsReady=!0,s.data=l,s.max=l&&l.length||0,s.type=i.getTypeOf(l),s.isPaused||s._tickAndRepeat()},function(l){s.error(l)})}i.inherits(a,n),a.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,s);break;case"uint8array":o=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":o=this.data.slice(this.index,s)}return this.index=s,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,e,t){function i(n){this.name=n||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,a){return this._listeners[n].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,a){if(this._listeners[n])for(var o=0;o<this._listeners[n].length;o++)this._listeners[n][o].call(this,a)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo,this.mergeStreamInfo(),this.previous=n;var a=this;return n.on("data",function(o){a.processChunk(o)}),n.on("end",function(){a.end()}),n.on("error",function(o){a.error(o)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var n=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,a){return this.extraStreamInfo[n]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}},e.exports=i},{}],29:[function(r,e,t){var i=r("../utils"),n=r("./ConvertWorker"),a=r("./GenericWorker"),o=r("../base64"),s=r("../support"),l=r("../external"),u=null;if(s.nodestream)try{u=r("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function c(p,h){return new l.Promise(function(v,g){var y=[],{_internalType:m,_outputType:d,_mimeType:x}=p;p.on("data",function(S,w){y.push(S),h&&h(w)}).on("error",function(S){y=[],g(S)}).on("end",function(){try{var S=function(w,T,A){switch(w){case"blob":return i.newBlob(i.transformTo("arraybuffer",T),A);case"base64":return o.encode(T);default:return i.transformTo(w,T)}}(d,function(w,T){var A,M=0,D=null,L=0;for(A=0;A<T.length;A++)L+=T[A].length;switch(w){case"string":return T.join("");case"array":return Array.prototype.concat.apply([],T);case"uint8array":for(D=new Uint8Array(L),A=0;A<T.length;A++)D.set(T[A],M),M+=T[A].length;return D;case"nodebuffer":return Buffer.concat(T);default:throw Error("concat : unsupported type '"+w+"'")}}(m,y),x);v(S)}catch(w){g(w)}y=[]}).resume()})}function f(p,h,v){var g=h;switch(h){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=h,this._mimeType=v,i.checkSupport(g),this._worker=p.pipe(new n(g)),p.lock()}catch(y){this._worker=new a("error"),this._worker.error(y)}}f.prototype={accumulate:function(p){return c(this,p)},on:function(p,h){var v=this;return p==="data"?this._worker.on(p,function(g){h.call(v,g.data,g.meta)}):this._worker.on(p,function(){i.delay(h,arguments,v)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},p)}},e.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,e,t){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",t.nodebuffer=typeof Buffer<"u",t.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=new Blob([i],{type:"application/zip"}).size===0}catch(a){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(i),t.blob=n.getBlob("application/zip").size===0}catch(o){t.blob=!1}}}try{t.nodestream=!!r("readable-stream").Readable}catch(a){t.nodestream=!1}},{"readable-stream":16}],31:[function(r,e,t){for(var i=r("./utils"),n=r("./support"),a=r("./nodejsUtils"),o=r("./stream/GenericWorker"),s=Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;s[254]=s[254]=1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}t.utf8encode=function(f){return n.nodebuffer?a.newBufferFrom(f,"utf-8"):function(p){var h,v,g,y,m,d=p.length,x=0;for(y=0;y<d;y++)(64512&(v=p.charCodeAt(y)))==55296&&y+1<d&&(64512&(g=p.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(g-56320),y++),x+=v<128?1:v<2048?2:v<65536?3:4;for(h=n.uint8array?new Uint8Array(x):Array(x),y=m=0;m<x;y++)(64512&(v=p.charCodeAt(y)))==55296&&y+1<d&&(64512&(g=p.charCodeAt(y+1)))==56320&&(v=65536+(v-55296<<10)+(g-56320),y++),v<128?h[m++]=v:(v<2048?h[m++]=192|v>>>6:(v<65536?h[m++]=224|v>>>12:(h[m++]=240|v>>>18,h[m++]=128|v>>>12&63),h[m++]=128|v>>>6&63),h[m++]=128|63&v);return h}(f)},t.utf8decode=function(f){return n.nodebuffer?i.transformTo("nodebuffer",f).toString("utf-8"):function(p){var h,v,g,y,m=p.length,d=Array(2*m);for(h=v=0;h<m;)if((g=p[h++])<128)d[v++]=g;else if(4<(y=s[g]))d[v++]=65533,h+=y-1;else{for(g&=y===2?31:y===3?15:7;1<y&&h<m;)g=g<<6|63&p[h++],y--;1<y?d[v++]=65533:g<65536?d[v++]=g:(g-=65536,d[v++]=55296|g>>10&1023,d[v++]=56320|1023&g)}return d.length!==v&&(d.subarray?d=d.subarray(0,v):d.length=v),i.applyFromCharCode(d)}(f=i.transformTo(n.uint8array?"uint8array":"array",f))},i.inherits(u,o),u.prototype.processChunk=function(f){var p=i.transformTo(n.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var h=p;(p=new Uint8Array(h.length+this.leftOver.length)).set(this.leftOver,0),p.set(h,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var v=function(y,m){var d;for((m=m||y.length)>y.length&&(m=y.length),d=m-1;0<=d&&(192&y[d])==128;)d--;return d<0?m:d===0?m:d+s[y[d]]>m?d:m}(p),g=p;v!==p.length&&(n.uint8array?(g=p.subarray(0,v),this.leftOver=p.subarray(v,p.length)):(g=p.slice(0,v),this.leftOver=p.slice(v,p.length))),this.push({data:t.utf8decode(g),meta:f.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=u,i.inherits(c,o),c.prototype.processChunk=function(f){this.push({data:t.utf8encode(f.data),meta:f.meta})},t.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,e,t){var i=r("./support"),n=r("./base64"),a=r("./nodejsUtils"),o=r("./external");function s(h){return h}function l(h,v){for(var g=0;g<h.length;++g)v[g]=255&h.charCodeAt(g);return v}r("setimmediate"),t.newBlob=function(h,v){t.checkSupport("blob");try{return new Blob([h],{type:v})}catch(y){try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return g.append(h),g.getBlob(v)}catch(m){throw Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(h,v,g){var y=[],m=0,d=h.length;if(d<=g)return String.fromCharCode.apply(null,h);for(;m<d;)v==="array"||v==="nodebuffer"?y.push(String.fromCharCode.apply(null,h.slice(m,Math.min(m+g,d)))):y.push(String.fromCharCode.apply(null,h.subarray(m,Math.min(m+g,d)))),m+=g;return y.join("")},stringifyByChar:function(h){for(var v="",g=0;g<h.length;g++)v+=String.fromCharCode(h[g]);return v},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(h){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch(h){return!1}}()}};function c(h){var v=65536,g=t.getTypeOf(h),y=!0;if(g==="uint8array"?y=u.applyCanBeUsed.uint8array:g==="nodebuffer"&&(y=u.applyCanBeUsed.nodebuffer),y)for(;1<v;)try{return u.stringifyByChunk(h,g,v)}catch(m){v=Math.floor(v/2)}return u.stringifyByChar(h)}function f(h,v){for(var g=0;g<h.length;g++)v[g]=h[g];return v}t.applyFromCharCode=c;var p={};p.string={string:s,array:function(h){return l(h,Array(h.length))},arraybuffer:function(h){return p.string.uint8array(h).buffer},uint8array:function(h){return l(h,new Uint8Array(h.length))},nodebuffer:function(h){return l(h,a.allocBuffer(h.length))}},p.array={string:c,array:s,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return a.newBufferFrom(h)}},p.arraybuffer={string:function(h){return c(new Uint8Array(h))},array:function(h){return f(new Uint8Array(h),Array(h.byteLength))},arraybuffer:s,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return a.newBufferFrom(new Uint8Array(h))}},p.uint8array={string:c,array:function(h){return f(h,Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:s,nodebuffer:function(h){return a.newBufferFrom(h)}},p.nodebuffer={string:c,array:function(h){return f(h,Array(h.length))},arraybuffer:function(h){return p.nodebuffer.uint8array(h).buffer},uint8array:function(h){return f(h,new Uint8Array(h.length))},nodebuffer:s},t.transformTo=function(h,v){if(v=v||"",!h)return v;t.checkSupport(h);var g=t.getTypeOf(v);return p[g][h](v)},t.resolve=function(h){for(var v=h.split("/"),g=[],y=0;y<v.length;y++){var m=v[y];m==="."||m===""&&y!==0&&y!==v.length-1||(m===".."?g.pop():g.push(m))}return g.join("/")},t.getTypeOf=function(h){if(typeof h=="string")return"string";var v=Object.prototype.toString.call(h);return v==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(h)?"nodebuffer":i.uint8array&&v==="[object Uint8Array]"?"uint8array":i.arraybuffer&&v==="[object ArrayBuffer]"?"arraybuffer":void 0},t.checkSupport=function(h){if(!i[h.toLowerCase()])throw Error(h+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(h){var v,g,y="";for(g=0;g<(h||"").length;g++)y+="\\x"+((v=h.charCodeAt(g))<16?"0":"")+v.toString(16).toUpperCase();return y},t.delay=function(h,v,g){setImmediate(function(){h.apply(g||null,v||[])})},t.inherits=function(h,v){function g(){}g.prototype=v.prototype,h.prototype=new g},t.extend=function(){var h,v,g={};for(h=0;h<arguments.length;h++)for(v in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],v)&&g[v]===void 0&&(g[v]=arguments[h][v]);return g},t.prepareContent=function(h,v,g,y,m){return o.Promise.resolve(v).then(function(d){return i.blob&&(d instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(d))!==-1)?Blob.prototype.arrayBuffer!==void 0?d.arrayBuffer():typeof FileReader<"u"?new o.Promise(function(x,S){var w=new FileReader;w.onload=function(T){x(T.target.result)},w.onerror=function(T){S(T.target.error)},w.readAsArrayBuffer(d)}):o.Promise.reject(Error(h+" is a Blob, but we have no way of reading it.")):d}).then(function(d){var x=t.getTypeOf(d);return x?(x==="arraybuffer"?d=t.transformTo("uint8array",d):x==="string"&&(m?d=n.decode(d):g&&y!==!0&&(d=function(S){return l(S,i.uint8array?new Uint8Array(S.length):Array(S.length))}(d))),d):o.Promise.reject(Error("Can't read the data of '"+h+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,e,t){var i=r("./reader/readerFor"),n=r("./utils"),a=r("./signature"),o=r("./zipEntry"),s=r("./support");function l(u){this.files=[],this.loadOptions=u}l.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var c=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+n.pretty(c)+", expected "+n.pretty(u)+")")}},isSignature:function(u,c){var f=this.reader.index;this.reader.setIndex(u);var p=this.reader.readString(4)===c;return this.reader.setIndex(f),p},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),c=s.uint8array?"uint8array":"array",f=n.transformTo(c,u);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u,c,f,p=this.zip64EndOfCentralSize-44;0<p;)u=this.reader.readInt(2),c=this.reader.readInt(4),f=this.reader.readData(c),this.zip64ExtensibleData[u]={id:u,length:c,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,c;for(u=0;u<this.files.length;u++)c=this.files[u],this.reader.setIndex(c.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),c.readLocalPart(this.reader),c.handleUTF8(),c.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(u=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(u<0)throw!this.isSignature(0,a.LOCAL_FILE_HEADER)?Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(u);var c=u;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var p=c-f;if(0<p)this.isSignature(c,a.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(u){this.reader=i(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,e,t){var i=r("./reader/readerFor"),n=r("./utils"),a=r("./compressedObject"),o=r("./crc32"),s=r("./utf8"),l=r("./compressions"),u=r("./support");function c(f,p){this.options=f,this.loadOptions=p}c.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var p,h;if(f.skip(22),this.fileNameLength=f.readInt(2),h=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(h),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((p=function(v){for(var g in l)if(Object.prototype.hasOwnProperty.call(l,g)&&l[g].magic===v)return l[g];return null}(this.compressionMethod))===null)throw Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,p,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var p=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");f.skip(p),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=i(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var p,h,v,g=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<g;)p=f.readInt(2),h=f.readInt(2),v=f.readData(h),this.extraFields[p]={id:p,length:h,value:v};f.setIndex(g)},handleUTF8:function(){var f=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var h=n.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var g=n.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(g)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var p=i(f.value);return p.readInt(1)!==1?null:o(this.fileName)!==p.readInt(4)?null:s.utf8decode(p.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var p=i(f.value);return p.readInt(1)!==1?null:o(this.fileComment)!==p.readInt(4)?null:s.utf8decode(p.readData(f.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,e,t){function i(p,h,v){this.name=p,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=h,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var n=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),o=r("./utf8"),s=r("./compressedObject"),l=r("./stream/GenericWorker");i.prototype={internalStream:function(p){var h=null,v="string";try{if(!p)throw Error("No output type specified.");var g=(v=p.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),h=this._decompressWorker();var y=!this._dataBinary;y&&!g&&(h=h.pipe(new o.Utf8EncodeWorker)),!y&&g&&(h=h.pipe(new o.Utf8DecodeWorker))}catch(m){(h=new l("error")).error(m)}return new n(h,v,"")},async:function(p,h){return this.internalStream(p).accumulate(h)},nodeStream:function(p,h){return this.internalStream(p||"nodebuffer").toNodejsStream(h)},_compressWorker:function(p,h){if(this._data instanceof s&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(v,p,h)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)i.prototype[u[f]]=c;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,e,t){(function(i){var n,a,o=i.MutationObserver||i.WebKitMutationObserver;if(o){var s=0,l=new o(p),u=i.document.createTextNode("");l.observe(u,{characterData:!0}),n=function(){u.data=s=++s%2}}else if(i.setImmediate||i.MessageChannel===void 0)n="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var h=i.document.createElement("script");h.onreadystatechange=function(){p(),h.onreadystatechange=null,h.parentNode.removeChild(h),h=null},i.document.documentElement.appendChild(h)}:function(){setTimeout(p,0)};else{var c=new i.MessageChannel;c.port1.onmessage=p,n=function(){c.port2.postMessage(0)}}var f=[];function p(){var h,v;a=!0;for(var g=f.length;g;){for(v=f,f=[],h=-1;++h<g;)v[h]();g=f.length}a=!1}e.exports=function(h){f.push(h)!==1||a||n()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,e,t){var i=r("immediate");function n(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(g){if(typeof g!="function")throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,g!==n&&h(this,g)}function c(g,y,m){this.promise=g,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}function f(g,y,m){i(function(){var d;try{d=y(m)}catch(x){return a.reject(g,x)}d===g?a.reject(g,TypeError("Cannot resolve promise with itself")):a.resolve(g,d)})}function p(g){var y=g&&g.then;if(g&&(typeof g=="object"||typeof g=="function")&&typeof y=="function")return function(){y.apply(g,arguments)}}function h(g,y){var m=!1;function d(w){m||(m=!0,a.reject(g,w))}function x(w){m||(m=!0,a.resolve(g,w))}var S=v(function(){y(x,d)});S.status==="error"&&d(S.value)}function v(g,y){var m={};try{m.value=g(y),m.status="success"}catch(d){m.status="error",m.value=d}return m}(e.exports=u).prototype.finally=function(g){if(typeof g!="function")return this;var y=this.constructor;return this.then(function(m){return y.resolve(g()).then(function(){return m})},function(m){return y.resolve(g()).then(function(){throw m})})},u.prototype.catch=function(g){return this.then(null,g)},u.prototype.then=function(g,y){if(typeof g!="function"&&this.state===s||typeof y!="function"&&this.state===o)return this;var m=new this.constructor(n);return this.state!==l?f(m,this.state===s?g:y,this.outcome):this.queue.push(new c(m,g,y)),m},c.prototype.callFulfilled=function(g){a.resolve(this.promise,g)},c.prototype.otherCallFulfilled=function(g){f(this.promise,this.onFulfilled,g)},c.prototype.callRejected=function(g){a.reject(this.promise,g)},c.prototype.otherCallRejected=function(g){f(this.promise,this.onRejected,g)},a.resolve=function(g,y){var m=v(p,y);if(m.status==="error")return a.reject(g,m.value);var d=m.value;if(d)h(g,d);else{g.state=s,g.outcome=y;for(var x=-1,S=g.queue.length;++x<S;)g.queue[x].callFulfilled(y)}return g},a.reject=function(g,y){g.state=o,g.outcome=y;for(var m=-1,d=g.queue.length;++m<d;)g.queue[m].callRejected(y);return g},u.resolve=function(g){if(g instanceof this)return g;return a.resolve(new this(n),g)},u.reject=function(g){var y=new this(n);return a.reject(y,g)},u.all=function(g){var y=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(TypeError("must be an array"));var m=g.length,d=!1;if(!m)return this.resolve([]);var x=Array(m),S=0,w=-1,T=new this(n);for(;++w<m;)A(g[w],w);return T;function A(M,D){y.resolve(M).then(function(L){x[D]=L,++S!==m||d||(d=!0,a.resolve(T,x))},function(L){d||(d=!0,a.reject(T,L))})}},u.race=function(g){var y=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(TypeError("must be an array"));var m=g.length,d=!1;if(!m)return this.resolve([]);var x=-1,S=new this(n);for(;++x<m;)w=g[x],y.resolve(w).then(function(T){d||(d=!0,a.resolve(S,T))},function(T){d||(d=!0,a.reject(S,T))});var w;return S}},{immediate:36}],38:[function(r,e,t){var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,e,t){var i=r("./zlib/deflate"),n=r("./utils/common"),a=r("./utils/strings"),o=r("./zlib/messages"),s=r("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,f=0,p=8;function h(g){if(!(this instanceof h))return new h(g);this.options=n.assign({level:c,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},g||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var m=i.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(m!==u)throw Error(o[m]);if(y.header&&i.deflateSetHeader(this.strm,y.header),y.dictionary){var d;if(d=typeof y.dictionary=="string"?a.string2buf(y.dictionary):l.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(m=i.deflateSetDictionary(this.strm,d))!==u)throw Error(o[m]);this._dict_set=!0}}function v(g,y){var m=new h(y);if(m.push(g,!0),m.err)throw m.msg||o[m.err];return m.result}h.prototype.push=function(g,y){var m,d,x=this.strm,S=this.options.chunkSize;if(this.ended)return!1;d=y===~~y?y:y===!0?4:0,typeof g=="string"?x.input=a.string2buf(g):l.call(g)==="[object ArrayBuffer]"?x.input=new Uint8Array(g):x.input=g,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new n.Buf8(S),x.next_out=0,x.avail_out=S),(m=i.deflate(x,d))!==1&&m!==u)return this.onEnd(m),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||d!==4&&d!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(n.shrinkBuf(x.output,x.next_out))):this.onData(n.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&m!==1);return d===4?(m=i.deflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===u):d!==2||(this.onEnd(u),!(x.avail_out=0))},h.prototype.onData=function(g){this.chunks.push(g)},h.prototype.onEnd=function(g){g===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},t.Deflate=h,t.deflate=v,t.deflateRaw=function(g,y){return(y=y||{}).raw=!0,v(g,y)},t.gzip=function(g,y){return(y=y||{}).gzip=!0,v(g,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,e,t){var i=r("./zlib/inflate"),n=r("./utils/common"),a=r("./utils/strings"),o=r("./zlib/constants"),s=r("./zlib/messages"),l=r("./zlib/zstream"),u=r("./zlib/gzheader"),c=Object.prototype.toString;function f(h){if(!(this instanceof f))return new f(h);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},h||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||h&&h.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&(15&v.windowBits)==0&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var g=i.inflateInit2(this.strm,v.windowBits);if(g!==o.Z_OK)throw Error(s[g]);this.header=new u,i.inflateGetHeader(this.strm,this.header)}function p(h,v){var g=new f(v);if(g.push(h,!0),g.err)throw g.msg||s[g.err];return g.result}f.prototype.push=function(h,v){var g,y,m,d,x,S,w=this.strm,T=this.options.chunkSize,A=this.options.dictionary,M=!1;if(this.ended)return!1;y=v===~~v?v:v===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof h=="string"?w.input=a.binstring2buf(h):c.call(h)==="[object ArrayBuffer]"?w.input=new Uint8Array(h):w.input=h,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new n.Buf8(T),w.next_out=0,w.avail_out=T),(g=i.inflate(w,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&A&&(S=typeof A=="string"?a.string2buf(A):c.call(A)==="[object ArrayBuffer]"?new Uint8Array(A):A,g=i.inflateSetDictionary(this.strm,S)),g===o.Z_BUF_ERROR&&M===!0&&(g=o.Z_OK,M=!1),g!==o.Z_STREAM_END&&g!==o.Z_OK)return this.onEnd(g),!(this.ended=!0);w.next_out&&(w.avail_out!==0&&g!==o.Z_STREAM_END&&(w.avail_in!==0||y!==o.Z_FINISH&&y!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(m=a.utf8border(w.output,w.next_out),d=w.next_out-m,x=a.buf2string(w.output,m),w.next_out=d,w.avail_out=T-d,d&&n.arraySet(w.output,w.output,m,d,0),this.onData(x)):this.onData(n.shrinkBuf(w.output,w.next_out)))),w.avail_in===0&&w.avail_out===0&&(M=!0)}while((0<w.avail_in||w.avail_out===0)&&g!==o.Z_STREAM_END);return g===o.Z_STREAM_END&&(y=o.Z_FINISH),y===o.Z_FINISH?(g=i.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,g===o.Z_OK):y!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(w.avail_out=0))},f.prototype.onData=function(h){this.chunks.push(h)},f.prototype.onEnd=function(h){h===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},t.Inflate=f,t.inflate=p,t.inflateRaw=function(h,v){return(v=v||{}).raw=!0,p(h,v)},t.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,e,t){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";t.assign=function(o){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var l=s.shift();if(l){if(typeof l!="object")throw TypeError(l+"must be non-object");for(var u in l)l.hasOwnProperty(u)&&(o[u]=l[u])}}return o},t.shrinkBuf=function(o,s){return o.length===s?o:o.subarray?o.subarray(0,s):(o.length=s,o)};var n={arraySet:function(o,s,l,u,c){if(s.subarray&&o.subarray)o.set(s.subarray(l,l+u),c);else for(var f=0;f<u;f++)o[c+f]=s[l+f]},flattenChunks:function(o){var s,l,u,c,f,p;for(s=u=0,l=o.length;s<l;s++)u+=o[s].length;for(p=new Uint8Array(u),s=c=0,l=o.length;s<l;s++)f=o[s],p.set(f,c),c+=f.length;return p}},a={arraySet:function(o,s,l,u,c){for(var f=0;f<u;f++)o[c+f]=s[l+f]},flattenChunks:function(o){return[].concat.apply([],o)}};t.setTyped=function(o){o?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,n)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(i)},{}],42:[function(r,e,t){var i=r("./common"),n=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(u){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){a=!1}for(var o=new i.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(u,c){if(c<65537&&(u.subarray&&a||!u.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(u,c));for(var f="",p=0;p<c;p++)f+=String.fromCharCode(u[p]);return f}o[254]=o[254]=1,t.string2buf=function(u){var c,f,p,h,v,g=u.length,y=0;for(h=0;h<g;h++)(64512&(f=u.charCodeAt(h)))==55296&&h+1<g&&(64512&(p=u.charCodeAt(h+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),h++),y+=f<128?1:f<2048?2:f<65536?3:4;for(c=new i.Buf8(y),h=v=0;v<y;h++)(64512&(f=u.charCodeAt(h)))==55296&&h+1<g&&(64512&(p=u.charCodeAt(h+1)))==56320&&(f=65536+(f-55296<<10)+(p-56320),h++),f<128?c[v++]=f:(f<2048?c[v++]=192|f>>>6:(f<65536?c[v++]=224|f>>>12:(c[v++]=240|f>>>18,c[v++]=128|f>>>12&63),c[v++]=128|f>>>6&63),c[v++]=128|63&f);return c},t.buf2binstring=function(u){return l(u,u.length)},t.binstring2buf=function(u){for(var c=new i.Buf8(u.length),f=0,p=c.length;f<p;f++)c[f]=u.charCodeAt(f);return c},t.buf2string=function(u,c){var f,p,h,v,g=c||u.length,y=Array(2*g);for(f=p=0;f<g;)if((h=u[f++])<128)y[p++]=h;else if(4<(v=o[h]))y[p++]=65533,f+=v-1;else{for(h&=v===2?31:v===3?15:7;1<v&&f<g;)h=h<<6|63&u[f++],v--;1<v?y[p++]=65533:h<65536?y[p++]=h:(h-=65536,y[p++]=55296|h>>10&1023,y[p++]=56320|1023&h)}return l(y,p)},t.utf8border=function(u,c){var f;for((c=c||u.length)>u.length&&(c=u.length),f=c-1;0<=f&&(192&u[f])==128;)f--;return f<0?c:f===0?c:f+o[u[f]]>c?f:c}},{"./common":41}],43:[function(r,e,t){e.exports=function(i,n,a,o){for(var s=65535&i|0,l=i>>>16&65535|0,u=0;a!==0;){for(a-=u=2000<a?2000:a;l=l+(s=s+n[o++]|0)|0,--u;);s%=65521,l%=65521}return s|l<<16|0}},{}],44:[function(r,e,t){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,e,t){var i=function(){for(var n,a=[],o=0;o<256;o++){n=o;for(var s=0;s<8;s++)n=1&n?3988292384^n>>>1:n>>>1;a[o]=n}return a}();e.exports=function(n,a,o,s){var l=i,u=s+o;n^=-1;for(var c=s;c<u;c++)n=n>>>8^l[255&(n^a[c])];return-1^n}},{}],46:[function(r,e,t){var i,n=r("../utils/common"),a=r("./trees"),o=r("./adler32"),s=r("./crc32"),l=r("./messages"),u=0,c=4,f=0,p=-2,h=-1,v=4,g=2,y=8,m=9,d=286,x=30,S=19,w=2*d+1,T=15,A=3,M=258,D=M+A+1,L=42,I=113,E=1,R=2,B=3,z=4;function V(N,vt){return N.msg=l[vt],vt}function H(N){return(N<<1)-(4<N?9:0)}function K(N){for(var vt=N.length;0<=--vt;)N[vt]=0}function F(N){var vt=N.state,ut=vt.pending;ut>N.avail_out&&(ut=N.avail_out),ut!==0&&(n.arraySet(N.output,vt.pending_buf,vt.pending_out,ut,N.next_out),N.next_out+=ut,vt.pending_out+=ut,N.total_out+=ut,N.avail_out-=ut,vt.pending-=ut,vt.pending===0&&(vt.pending_out=0))}function G(N,vt){a._tr_flush_block(N,0<=N.block_start?N.block_start:-1,N.strstart-N.block_start,vt),N.block_start=N.strstart,F(N.strm)}function rt(N,vt){N.pending_buf[N.pending++]=vt}function ot(N,vt){N.pending_buf[N.pending++]=vt>>>8&255,N.pending_buf[N.pending++]=255&vt}function at(N,vt){var ut,q,{max_chain_length:X,strstart:lt,prev_length:At,nice_match:Ct}=N,pt=N.strstart>N.w_size-D?N.strstart-(N.w_size-D):0,{window:Ht,w_mask:ie,prev:Kt}=N,_e=N.strstart+M,gr=Ht[lt+At-1],Ge=Ht[lt+At];N.prev_length>=N.good_match&&(X>>=2),Ct>N.lookahead&&(Ct=N.lookahead);do if(Ht[(ut=vt)+At]===Ge&&Ht[ut+At-1]===gr&&Ht[ut]===Ht[lt]&&Ht[++ut]===Ht[lt+1]){lt+=2,ut++;do;while(Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&Ht[++lt]===Ht[++ut]&&lt<_e);if(q=M-(_e-lt),lt=_e-M,At<q){if(N.match_start=vt,Ct<=(At=q))break;gr=Ht[lt+At-1],Ge=Ht[lt+At]}}while((vt=Kt[vt&ie])>pt&&--X!=0);return At<=N.lookahead?At:N.lookahead}function mt(N){var vt,ut,q,X,lt,At,Ct,pt,Ht,ie,Kt=N.w_size;do{if(X=N.window_size-N.lookahead-N.strstart,N.strstart>=Kt+(Kt-D)){for(n.arraySet(N.window,N.window,Kt,Kt,0),N.match_start-=Kt,N.strstart-=Kt,N.block_start-=Kt,vt=ut=N.hash_size;q=N.head[--vt],N.head[vt]=Kt<=q?q-Kt:0,--ut;);for(vt=ut=Kt;q=N.prev[--vt],N.prev[vt]=Kt<=q?q-Kt:0,--ut;);X+=Kt}if(N.strm.avail_in===0)break;if(At=N.strm,Ct=N.window,pt=N.strstart+N.lookahead,Ht=X,ie=void 0,ie=At.avail_in,Ht<ie&&(ie=Ht),ut=ie===0?0:(At.avail_in-=ie,n.arraySet(Ct,At.input,At.next_in,ie,pt),At.state.wrap===1?At.adler=o(At.adler,Ct,ie,pt):At.state.wrap===2&&(At.adler=s(At.adler,Ct,ie,pt)),At.next_in+=ie,At.total_in+=ie,ie),N.lookahead+=ut,N.lookahead+N.insert>=A)for(lt=N.strstart-N.insert,N.ins_h=N.window[lt],N.ins_h=(N.ins_h<<N.hash_shift^N.window[lt+1])&N.hash_mask;N.insert&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[lt+A-1])&N.hash_mask,N.prev[lt&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=lt,lt++,N.insert--,!(N.lookahead+N.insert<A)););}while(N.lookahead<D&&N.strm.avail_in!==0)}function Tt(N,vt){for(var ut,q;;){if(N.lookahead<D){if(mt(N),N.lookahead<D&&vt===u)return E;if(N.lookahead===0)break}if(ut=0,N.lookahead>=A&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+A-1])&N.hash_mask,ut=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart),ut!==0&&N.strstart-ut<=N.w_size-D&&(N.match_length=at(N,ut)),N.match_length>=A)if(q=a._tr_tally(N,N.strstart-N.match_start,N.match_length-A),N.lookahead-=N.match_length,N.match_length<=N.max_lazy_match&&N.lookahead>=A){for(N.match_length--;N.strstart++,N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+A-1])&N.hash_mask,ut=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart,--N.match_length!=0;);N.strstart++}else N.strstart+=N.match_length,N.match_length=0,N.ins_h=N.window[N.strstart],N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+1])&N.hash_mask;else q=a._tr_tally(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++;if(q&&(G(N,!1),N.strm.avail_out===0))return E}return N.insert=N.strstart<A-1?N.strstart:A-1,vt===c?(G(N,!0),N.strm.avail_out===0?B:z):N.last_lit&&(G(N,!1),N.strm.avail_out===0)?E:R}function Ut(N,vt){for(var ut,q,X;;){if(N.lookahead<D){if(mt(N),N.lookahead<D&&vt===u)return E;if(N.lookahead===0)break}if(ut=0,N.lookahead>=A&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+A-1])&N.hash_mask,ut=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart),N.prev_length=N.match_length,N.prev_match=N.match_start,N.match_length=A-1,ut!==0&&N.prev_length<N.max_lazy_match&&N.strstart-ut<=N.w_size-D&&(N.match_length=at(N,ut),N.match_length<=5&&(N.strategy===1||N.match_length===A&&4096<N.strstart-N.match_start)&&(N.match_length=A-1)),N.prev_length>=A&&N.match_length<=N.prev_length){for(X=N.strstart+N.lookahead-A,q=a._tr_tally(N,N.strstart-1-N.prev_match,N.prev_length-A),N.lookahead-=N.prev_length-1,N.prev_length-=2;++N.strstart<=X&&(N.ins_h=(N.ins_h<<N.hash_shift^N.window[N.strstart+A-1])&N.hash_mask,ut=N.prev[N.strstart&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=N.strstart),--N.prev_length!=0;);if(N.match_available=0,N.match_length=A-1,N.strstart++,q&&(G(N,!1),N.strm.avail_out===0))return E}else if(N.match_available){if((q=a._tr_tally(N,0,N.window[N.strstart-1]))&&G(N,!1),N.strstart++,N.lookahead--,N.strm.avail_out===0)return E}else N.match_available=1,N.strstart++,N.lookahead--}return N.match_available&&(q=a._tr_tally(N,0,N.window[N.strstart-1]),N.match_available=0),N.insert=N.strstart<A-1?N.strstart:A-1,vt===c?(G(N,!0),N.strm.avail_out===0?B:z):N.last_lit&&(G(N,!1),N.strm.avail_out===0)?E:R}function qt(N,vt,ut,q,X){this.good_length=N,this.max_lazy=vt,this.nice_length=ut,this.max_chain=q,this.func=X}function Zt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(2*w),this.dyn_dtree=new n.Buf16(2*(2*x+1)),this.bl_tree=new n.Buf16(2*(2*S+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(T+1),this.heap=new n.Buf16(2*d+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*d+1),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Rt(N){var vt;return N&&N.state?(N.total_in=N.total_out=0,N.data_type=g,(vt=N.state).pending=0,vt.pending_out=0,vt.wrap<0&&(vt.wrap=-vt.wrap),vt.status=vt.wrap?L:I,N.adler=vt.wrap===2?0:1,vt.last_flush=u,a._tr_init(vt),f):V(N,p)}function oe(N){var vt=Rt(N);return vt===f&&function(ut){ut.window_size=2*ut.w_size,K(ut.head),ut.max_lazy_match=i[ut.level].max_lazy,ut.good_match=i[ut.level].good_length,ut.nice_match=i[ut.level].nice_length,ut.max_chain_length=i[ut.level].max_chain,ut.strstart=0,ut.block_start=0,ut.lookahead=0,ut.insert=0,ut.match_length=ut.prev_length=A-1,ut.match_available=0,ut.ins_h=0}(N.state),vt}function Vt(N,vt,ut,q,X,lt){if(!N)return p;var At=1;if(vt===h&&(vt=6),q<0?(At=0,q=-q):15<q&&(At=2,q-=16),X<1||m<X||ut!==y||q<8||15<q||vt<0||9<vt||lt<0||v<lt)return V(N,p);q===8&&(q=9);var Ct=new Zt;return(N.state=Ct).strm=N,Ct.wrap=At,Ct.gzhead=null,Ct.w_bits=q,Ct.w_size=1<<Ct.w_bits,Ct.w_mask=Ct.w_size-1,Ct.hash_bits=X+7,Ct.hash_size=1<<Ct.hash_bits,Ct.hash_mask=Ct.hash_size-1,Ct.hash_shift=~~((Ct.hash_bits+A-1)/A),Ct.window=new n.Buf8(2*Ct.w_size),Ct.head=new n.Buf16(Ct.hash_size),Ct.prev=new n.Buf16(Ct.w_size),Ct.lit_bufsize=1<<X+6,Ct.pending_buf_size=4*Ct.lit_bufsize,Ct.pending_buf=new n.Buf8(Ct.pending_buf_size),Ct.d_buf=1*Ct.lit_bufsize,Ct.l_buf=3*Ct.lit_bufsize,Ct.level=vt,Ct.strategy=lt,Ct.method=ut,oe(N)}i=[new qt(0,0,0,0,function(N,vt){var ut=65535;for(ut>N.pending_buf_size-5&&(ut=N.pending_buf_size-5);;){if(N.lookahead<=1){if(mt(N),N.lookahead===0&&vt===u)return E;if(N.lookahead===0)break}N.strstart+=N.lookahead,N.lookahead=0;var q=N.block_start+ut;if((N.strstart===0||N.strstart>=q)&&(N.lookahead=N.strstart-q,N.strstart=q,G(N,!1),N.strm.avail_out===0))return E;if(N.strstart-N.block_start>=N.w_size-D&&(G(N,!1),N.strm.avail_out===0))return E}return N.insert=0,vt===c?(G(N,!0),N.strm.avail_out===0?B:z):(N.strstart>N.block_start&&(G(N,!1),N.strm.avail_out),E)}),new qt(4,4,8,4,Tt),new qt(4,5,16,8,Tt),new qt(4,6,32,32,Tt),new qt(4,4,16,16,Ut),new qt(8,16,32,32,Ut),new qt(8,16,128,128,Ut),new qt(8,32,128,256,Ut),new qt(32,128,258,1024,Ut),new qt(32,258,258,4096,Ut)],t.deflateInit=function(N,vt){return Vt(N,vt,y,15,8,0)},t.deflateInit2=Vt,t.deflateReset=oe,t.deflateResetKeep=Rt,t.deflateSetHeader=function(N,vt){return N&&N.state?N.state.wrap!==2?p:(N.state.gzhead=vt,f):p},t.deflate=function(N,vt){var ut,q,X,lt;if(!N||!N.state||5<vt||vt<0)return N?V(N,p):p;if(q=N.state,!N.output||!N.input&&N.avail_in!==0||q.status===666&&vt!==c)return V(N,N.avail_out===0?-5:p);if(q.strm=N,ut=q.last_flush,q.last_flush=vt,q.status===L)if(q.wrap===2)N.adler=0,rt(q,31),rt(q,139),rt(q,8),q.gzhead?(rt(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),rt(q,255&q.gzhead.time),rt(q,q.gzhead.time>>8&255),rt(q,q.gzhead.time>>16&255),rt(q,q.gzhead.time>>24&255),rt(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),rt(q,255&q.gzhead.os),q.gzhead.extra&&q.gzhead.extra.length&&(rt(q,255&q.gzhead.extra.length),rt(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(N.adler=s(N.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=69):(rt(q,0),rt(q,0),rt(q,0),rt(q,0),rt(q,0),rt(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),rt(q,3),q.status=I);else{var At=y+(q.w_bits-8<<4)<<8;At|=(2<=q.strategy||q.level<2?0:q.level<6?1:q.level===6?2:3)<<6,q.strstart!==0&&(At|=32),At+=31-At%31,q.status=I,ot(q,At),q.strstart!==0&&(ot(q,N.adler>>>16),ot(q,65535&N.adler)),N.adler=1}if(q.status===69)if(q.gzhead.extra){for(X=q.pending;q.gzindex<(65535&q.gzhead.extra.length)&&(q.pending!==q.pending_buf_size||(q.gzhead.hcrc&&q.pending>X&&(N.adler=s(N.adler,q.pending_buf,q.pending-X,X)),F(N),X=q.pending,q.pending!==q.pending_buf_size));)rt(q,255&q.gzhead.extra[q.gzindex]),q.gzindex++;q.gzhead.hcrc&&q.pending>X&&(N.adler=s(N.adler,q.pending_buf,q.pending-X,X)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=73)}else q.status=73;if(q.status===73)if(q.gzhead.name){X=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>X&&(N.adler=s(N.adler,q.pending_buf,q.pending-X,X)),F(N),X=q.pending,q.pending===q.pending_buf_size)){lt=1;break}lt=q.gzindex<q.gzhead.name.length?255&q.gzhead.name.charCodeAt(q.gzindex++):0,rt(q,lt)}while(lt!==0);q.gzhead.hcrc&&q.pending>X&&(N.adler=s(N.adler,q.pending_buf,q.pending-X,X)),lt===0&&(q.gzindex=0,q.status=91)}else q.status=91;if(q.status===91)if(q.gzhead.comment){X=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>X&&(N.adler=s(N.adler,q.pending_buf,q.pending-X,X)),F(N),X=q.pending,q.pending===q.pending_buf_size)){lt=1;break}lt=q.gzindex<q.gzhead.comment.length?255&q.gzhead.comment.charCodeAt(q.gzindex++):0,rt(q,lt)}while(lt!==0);q.gzhead.hcrc&&q.pending>X&&(N.adler=s(N.adler,q.pending_buf,q.pending-X,X)),lt===0&&(q.status=103)}else q.status=103;if(q.status===103&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&F(N),q.pending+2<=q.pending_buf_size&&(rt(q,255&N.adler),rt(q,N.adler>>8&255),N.adler=0,q.status=I)):q.status=I),q.pending!==0){if(F(N),N.avail_out===0)return q.last_flush=-1,f}else if(N.avail_in===0&&H(vt)<=H(ut)&&vt!==c)return V(N,-5);if(q.status===666&&N.avail_in!==0)return V(N,-5);if(N.avail_in!==0||q.lookahead!==0||vt!==u&&q.status!==666){var Ct=q.strategy===2?function(pt,Ht){for(var ie;;){if(pt.lookahead===0&&(mt(pt),pt.lookahead===0)){if(Ht===u)return E;break}if(pt.match_length=0,ie=a._tr_tally(pt,0,pt.window[pt.strstart]),pt.lookahead--,pt.strstart++,ie&&(G(pt,!1),pt.strm.avail_out===0))return E}return pt.insert=0,Ht===c?(G(pt,!0),pt.strm.avail_out===0?B:z):pt.last_lit&&(G(pt,!1),pt.strm.avail_out===0)?E:R}(q,vt):q.strategy===3?function(pt,Ht){for(var ie,Kt,_e,gr,Ge=pt.window;;){if(pt.lookahead<=M){if(mt(pt),pt.lookahead<=M&&Ht===u)return E;if(pt.lookahead===0)break}if(pt.match_length=0,pt.lookahead>=A&&0<pt.strstart&&(Kt=Ge[_e=pt.strstart-1])===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]){gr=pt.strstart+M;do;while(Kt===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]&&Kt===Ge[++_e]&&_e<gr);pt.match_length=M-(gr-_e),pt.match_length>pt.lookahead&&(pt.match_length=pt.lookahead)}if(pt.match_length>=A?(ie=a._tr_tally(pt,1,pt.match_length-A),pt.lookahead-=pt.match_length,pt.strstart+=pt.match_length,pt.match_length=0):(ie=a._tr_tally(pt,0,pt.window[pt.strstart]),pt.lookahead--,pt.strstart++),ie&&(G(pt,!1),pt.strm.avail_out===0))return E}return pt.insert=0,Ht===c?(G(pt,!0),pt.strm.avail_out===0?B:z):pt.last_lit&&(G(pt,!1),pt.strm.avail_out===0)?E:R}(q,vt):i[q.level].func(q,vt);if(Ct!==B&&Ct!==z||(q.status=666),Ct===E||Ct===B)return N.avail_out===0&&(q.last_flush=-1),f;if(Ct===R&&(vt===1?a._tr_align(q):vt!==5&&(a._tr_stored_block(q,0,0,!1),vt===3&&(K(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),F(N),N.avail_out===0))return q.last_flush=-1,f}return vt!==c?f:q.wrap<=0?1:(q.wrap===2?(rt(q,255&N.adler),rt(q,N.adler>>8&255),rt(q,N.adler>>16&255),rt(q,N.adler>>24&255),rt(q,255&N.total_in),rt(q,N.total_in>>8&255),rt(q,N.total_in>>16&255),rt(q,N.total_in>>24&255)):(ot(q,N.adler>>>16),ot(q,65535&N.adler)),F(N),0<q.wrap&&(q.wrap=-q.wrap),q.pending!==0?f:1)},t.deflateEnd=function(N){var vt;return N&&N.state?(vt=N.state.status)!==L&&vt!==69&&vt!==73&&vt!==91&&vt!==103&&vt!==I&&vt!==666?V(N,p):(N.state=null,vt===I?V(N,-3):f):p},t.deflateSetDictionary=function(N,vt){var ut,q,X,lt,At,Ct,pt,Ht,ie=vt.length;if(!N||!N.state)return p;if((lt=(ut=N.state).wrap)===2||lt===1&&ut.status!==L||ut.lookahead)return p;for(lt===1&&(N.adler=o(N.adler,vt,ie,0)),ut.wrap=0,ie>=ut.w_size&&(lt===0&&(K(ut.head),ut.strstart=0,ut.block_start=0,ut.insert=0),Ht=new n.Buf8(ut.w_size),n.arraySet(Ht,vt,ie-ut.w_size,ut.w_size,0),vt=Ht,ie=ut.w_size),At=N.avail_in,Ct=N.next_in,pt=N.input,N.avail_in=ie,N.next_in=0,N.input=vt,mt(ut);ut.lookahead>=A;){for(q=ut.strstart,X=ut.lookahead-(A-1);ut.ins_h=(ut.ins_h<<ut.hash_shift^ut.window[q+A-1])&ut.hash_mask,ut.prev[q&ut.w_mask]=ut.head[ut.ins_h],ut.head[ut.ins_h]=q,q++,--X;);ut.strstart=q,ut.lookahead=A-1,mt(ut)}return ut.strstart+=ut.lookahead,ut.block_start=ut.strstart,ut.insert=ut.lookahead,ut.lookahead=0,ut.match_length=ut.prev_length=A-1,ut.match_available=0,N.next_in=Ct,N.input=pt,N.avail_in=At,ut.wrap=lt,f},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,e,t){e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,e,t){e.exports=function(i,n){var a,o,s,l,u,c,f,p,h,v,g,y,m,d,x,S,w,T,A,M,D,L,I,E,R;a=i.state,o=i.next_in,E=i.input,s=o+(i.avail_in-5),l=i.next_out,R=i.output,u=l-(n-i.avail_out),c=l+(i.avail_out-257),f=a.dmax,p=a.wsize,h=a.whave,v=a.wnext,g=a.window,y=a.hold,m=a.bits,d=a.lencode,x=a.distcode,S=(1<<a.lenbits)-1,w=(1<<a.distbits)-1;t:do{m<15&&(y+=E[o++]<<m,m+=8,y+=E[o++]<<m,m+=8),T=d[y&S];e:for(;;){if(y>>>=A=T>>>24,m-=A,(A=T>>>16&255)===0)R[l++]=65535&T;else{if(!(16&A)){if((64&A)==0){T=d[(65535&T)+(y&(1<<A)-1)];continue e}if(32&A){a.mode=12;break t}i.msg="invalid literal/length code",a.mode=30;break t}M=65535&T,(A&=15)&&(m<A&&(y+=E[o++]<<m,m+=8),M+=y&(1<<A)-1,y>>>=A,m-=A),m<15&&(y+=E[o++]<<m,m+=8,y+=E[o++]<<m,m+=8),T=x[y&w];r:for(;;){if(y>>>=A=T>>>24,m-=A,!(16&(A=T>>>16&255))){if((64&A)==0){T=x[(65535&T)+(y&(1<<A)-1)];continue r}i.msg="invalid distance code",a.mode=30;break t}if(D=65535&T,m<(A&=15)&&(y+=E[o++]<<m,(m+=8)<A&&(y+=E[o++]<<m,m+=8)),f<(D+=y&(1<<A)-1)){i.msg="invalid distance too far back",a.mode=30;break t}if(y>>>=A,m-=A,(A=l-u)<D){if(h<(A=D-A)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break t}if(I=g,(L=0)===v){if(L+=p-A,A<M){for(M-=A;R[l++]=g[L++],--A;);L=l-D,I=R}}else if(v<A){if(L+=p+v-A,(A-=v)<M){for(M-=A;R[l++]=g[L++],--A;);if(L=0,v<M){for(M-=A=v;R[l++]=g[L++],--A;);L=l-D,I=R}}}else if(L+=v-A,A<M){for(M-=A;R[l++]=g[L++],--A;);L=l-D,I=R}for(;2<M;)R[l++]=I[L++],R[l++]=I[L++],R[l++]=I[L++],M-=3;M&&(R[l++]=I[L++],1<M&&(R[l++]=I[L++]))}else{for(L=l-D;R[l++]=R[L++],R[l++]=R[L++],R[l++]=R[L++],2<(M-=3););M&&(R[l++]=R[L++],1<M&&(R[l++]=R[L++]))}break}}break}}while(o<s&&l<c);o-=M=m>>3,y&=(1<<(m-=M<<3))-1,i.next_in=o,i.next_out=l,i.avail_in=o<s?s-o+5:5-(o-s),i.avail_out=l<c?c-l+257:257-(l-c),a.hold=y,a.bits=m}},{}],49:[function(r,e,t){var i=r("../utils/common"),n=r("./adler32"),a=r("./crc32"),o=r("./inffast"),s=r("./inftrees"),l=1,u=2,c=0,f=-2,p=1,h=852,v=592;function g(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(L){var I;return L&&L.state?(I=L.state,L.total_in=L.total_out=I.total=0,L.msg="",I.wrap&&(L.adler=1&I.wrap),I.mode=p,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new i.Buf32(h),I.distcode=I.distdyn=new i.Buf32(v),I.sane=1,I.back=-1,c):f}function d(L){var I;return L&&L.state?((I=L.state).wsize=0,I.whave=0,I.wnext=0,m(L)):f}function x(L,I){var E,R;return L&&L.state?(R=L.state,I<0?(E=0,I=-I):(E=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?f:(R.window!==null&&R.wbits!==I&&(R.window=null),R.wrap=E,R.wbits=I,d(L))):f}function S(L,I){var E,R;return L?(R=new y,(L.state=R).window=null,(E=x(L,I))!==c&&(L.state=null),E):f}var w,T,A=!0;function M(L){if(A){var I;for(w=new i.Buf32(512),T=new i.Buf32(32),I=0;I<144;)L.lens[I++]=8;for(;I<256;)L.lens[I++]=9;for(;I<280;)L.lens[I++]=7;for(;I<288;)L.lens[I++]=8;for(s(l,L.lens,0,288,w,0,L.work,{bits:9}),I=0;I<32;)L.lens[I++]=5;s(u,L.lens,0,32,T,0,L.work,{bits:5}),A=!1}L.lencode=w,L.lenbits=9,L.distcode=T,L.distbits=5}function D(L,I,E,R){var B,z=L.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new i.Buf8(z.wsize)),R>=z.wsize?(i.arraySet(z.window,I,E-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(R<(B=z.wsize-z.wnext)&&(B=R),i.arraySet(z.window,I,E-R,B,z.wnext),(R-=B)?(i.arraySet(z.window,I,E-R,R,0),z.wnext=R,z.whave=z.wsize):(z.wnext+=B,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=B))),0}t.inflateReset=d,t.inflateReset2=x,t.inflateResetKeep=m,t.inflateInit=function(L){return S(L,15)},t.inflateInit2=S,t.inflate=function(L,I){var E,R,B,z,V,H,K,F,G,rt,ot,at,mt,Tt,Ut,qt,Zt,Rt,oe,Vt,N,vt,ut,q,X=0,lt=new i.Buf8(4),At=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return f;(E=L.state).mode===12&&(E.mode=13),V=L.next_out,B=L.output,K=L.avail_out,z=L.next_in,R=L.input,H=L.avail_in,F=E.hold,G=E.bits,rt=H,ot=K,vt=c;t:for(;;)switch(E.mode){case p:if(E.wrap===0){E.mode=13;break}for(;G<16;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(2&E.wrap&&F===35615){lt[E.check=0]=255&F,lt[1]=F>>>8&255,E.check=a(E.check,lt,2,0),G=F=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&F)<<8)+(F>>8))%31){L.msg="incorrect header check",E.mode=30;break}if((15&F)!=8){L.msg="unknown compression method",E.mode=30;break}if(G-=4,N=8+(15&(F>>>=4)),E.wbits===0)E.wbits=N;else if(N>E.wbits){L.msg="invalid window size",E.mode=30;break}E.dmax=1<<N,L.adler=E.check=1,E.mode=512&F?10:12,G=F=0;break;case 2:for(;G<16;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(E.flags=F,(255&E.flags)!=8){L.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){L.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=F>>8&1),512&E.flags&&(lt[0]=255&F,lt[1]=F>>>8&255,E.check=a(E.check,lt,2,0)),G=F=0,E.mode=3;case 3:for(;G<32;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}E.head&&(E.head.time=F),512&E.flags&&(lt[0]=255&F,lt[1]=F>>>8&255,lt[2]=F>>>16&255,lt[3]=F>>>24&255,E.check=a(E.check,lt,4,0)),G=F=0,E.mode=4;case 4:for(;G<16;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}E.head&&(E.head.xflags=255&F,E.head.os=F>>8),512&E.flags&&(lt[0]=255&F,lt[1]=F>>>8&255,E.check=a(E.check,lt,2,0)),G=F=0,E.mode=5;case 5:if(1024&E.flags){for(;G<16;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}E.length=F,E.head&&(E.head.extra_len=F),512&E.flags&&(lt[0]=255&F,lt[1]=F>>>8&255,E.check=a(E.check,lt,2,0)),G=F=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(H<(at=E.length)&&(at=H),at&&(E.head&&(N=E.head.extra_len-E.length,E.head.extra||(E.head.extra=Array(E.head.extra_len)),i.arraySet(E.head.extra,R,z,at,N)),512&E.flags&&(E.check=a(E.check,R,at,z)),H-=at,z+=at,E.length-=at),E.length))break t;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(H===0)break t;for(at=0;N=R[z+at++],E.head&&N&&E.length<65536&&(E.head.name+=String.fromCharCode(N)),N&&at<H;);if(512&E.flags&&(E.check=a(E.check,R,at,z)),H-=at,z+=at,N)break t}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(H===0)break t;for(at=0;N=R[z+at++],E.head&&N&&E.length<65536&&(E.head.comment+=String.fromCharCode(N)),N&&at<H;);if(512&E.flags&&(E.check=a(E.check,R,at,z)),H-=at,z+=at,N)break t}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;G<16;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(F!==(65535&E.check)){L.msg="header crc mismatch",E.mode=30;break}G=F=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),L.adler=E.check=0,E.mode=12;break;case 10:for(;G<32;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}L.adler=E.check=g(F),G=F=0,E.mode=11;case 11:if(E.havedict===0)return L.next_out=V,L.avail_out=K,L.next_in=z,L.avail_in=H,E.hold=F,E.bits=G,2;L.adler=E.check=1,E.mode=12;case 12:if(I===5||I===6)break t;case 13:if(E.last){F>>>=7&G,G-=7&G,E.mode=27;break}for(;G<3;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}switch(E.last=1&F,G-=1,3&(F>>>=1)){case 0:E.mode=14;break;case 1:if(M(E),E.mode=20,I!==6)break;F>>>=2,G-=2;break t;case 2:E.mode=17;break;case 3:L.msg="invalid block type",E.mode=30}F>>>=2,G-=2;break;case 14:for(F>>>=7&G,G-=7&G;G<32;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if((65535&F)!=(F>>>16^65535)){L.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&F,G=F=0,E.mode=15,I===6)break t;case 15:E.mode=16;case 16:if(at=E.length){if(H<at&&(at=H),K<at&&(at=K),at===0)break t;i.arraySet(B,R,z,at,V),H-=at,z+=at,K-=at,V+=at,E.length-=at;break}E.mode=12;break;case 17:for(;G<14;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(E.nlen=257+(31&F),F>>>=5,G-=5,E.ndist=1+(31&F),F>>>=5,G-=5,E.ncode=4+(15&F),F>>>=4,G-=4,286<E.nlen||30<E.ndist){L.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;G<3;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}E.lens[At[E.have++]]=7&F,F>>>=3,G-=3}for(;E.have<19;)E.lens[At[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,ut={bits:E.lenbits},vt=s(0,E.lens,0,19,E.lencode,0,E.work,ut),E.lenbits=ut.bits,vt){L.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;qt=(X=E.lencode[F&(1<<E.lenbits)-1])>>>16&255,Zt=65535&X,!((Ut=X>>>24)<=G);){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(Zt<16)F>>>=Ut,G-=Ut,E.lens[E.have++]=Zt;else{if(Zt===16){for(q=Ut+2;G<q;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(F>>>=Ut,G-=Ut,E.have===0){L.msg="invalid bit length repeat",E.mode=30;break}N=E.lens[E.have-1],at=3+(3&F),F>>>=2,G-=2}else if(Zt===17){for(q=Ut+3;G<q;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}G-=Ut,N=0,at=3+(7&(F>>>=Ut)),F>>>=3,G-=3}else{for(q=Ut+7;G<q;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}G-=Ut,N=0,at=11+(127&(F>>>=Ut)),F>>>=7,G-=7}if(E.have+at>E.nlen+E.ndist){L.msg="invalid bit length repeat",E.mode=30;break}for(;at--;)E.lens[E.have++]=N}}if(E.mode===30)break;if(E.lens[256]===0){L.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,ut={bits:E.lenbits},vt=s(l,E.lens,0,E.nlen,E.lencode,0,E.work,ut),E.lenbits=ut.bits,vt){L.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,ut={bits:E.distbits},vt=s(u,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,ut),E.distbits=ut.bits,vt){L.msg="invalid distances set",E.mode=30;break}if(E.mode=20,I===6)break t;case 20:E.mode=21;case 21:if(6<=H&&258<=K){L.next_out=V,L.avail_out=K,L.next_in=z,L.avail_in=H,E.hold=F,E.bits=G,o(L,ot),V=L.next_out,B=L.output,K=L.avail_out,z=L.next_in,R=L.input,H=L.avail_in,F=E.hold,G=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;qt=(X=E.lencode[F&(1<<E.lenbits)-1])>>>16&255,Zt=65535&X,!((Ut=X>>>24)<=G);){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(qt&&(240&qt)==0){for(Rt=Ut,oe=qt,Vt=Zt;qt=(X=E.lencode[Vt+((F&(1<<Rt+oe)-1)>>Rt)])>>>16&255,Zt=65535&X,!(Rt+(Ut=X>>>24)<=G);){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}F>>>=Rt,G-=Rt,E.back+=Rt}if(F>>>=Ut,G-=Ut,E.back+=Ut,E.length=Zt,qt===0){E.mode=26;break}if(32&qt){E.back=-1,E.mode=12;break}if(64&qt){L.msg="invalid literal/length code",E.mode=30;break}E.extra=15&qt,E.mode=22;case 22:if(E.extra){for(q=E.extra;G<q;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}E.length+=F&(1<<E.extra)-1,F>>>=E.extra,G-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;qt=(X=E.distcode[F&(1<<E.distbits)-1])>>>16&255,Zt=65535&X,!((Ut=X>>>24)<=G);){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if((240&qt)==0){for(Rt=Ut,oe=qt,Vt=Zt;qt=(X=E.distcode[Vt+((F&(1<<Rt+oe)-1)>>Rt)])>>>16&255,Zt=65535&X,!(Rt+(Ut=X>>>24)<=G);){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}F>>>=Rt,G-=Rt,E.back+=Rt}if(F>>>=Ut,G-=Ut,E.back+=Ut,64&qt){L.msg="invalid distance code",E.mode=30;break}E.offset=Zt,E.extra=15&qt,E.mode=24;case 24:if(E.extra){for(q=E.extra;G<q;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}E.offset+=F&(1<<E.extra)-1,F>>>=E.extra,G-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){L.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(K===0)break t;if(at=ot-K,E.offset>at){if((at=E.offset-at)>E.whave&&E.sane){L.msg="invalid distance too far back",E.mode=30;break}mt=at>E.wnext?(at-=E.wnext,E.wsize-at):E.wnext-at,at>E.length&&(at=E.length),Tt=E.window}else Tt=B,mt=V-E.offset,at=E.length;for(K<at&&(at=K),K-=at,E.length-=at;B[V++]=Tt[mt++],--at;);E.length===0&&(E.mode=21);break;case 26:if(K===0)break t;B[V++]=E.length,K--,E.mode=21;break;case 27:if(E.wrap){for(;G<32;){if(H===0)break t;H--,F|=R[z++]<<G,G+=8}if(ot-=K,L.total_out+=ot,E.total+=ot,ot&&(L.adler=E.check=E.flags?a(E.check,B,ot,V-ot):n(E.check,B,ot,V-ot)),ot=K,(E.flags?F:g(F))!==E.check){L.msg="incorrect data check",E.mode=30;break}G=F=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;G<32;){if(H===0)break t;H--,F+=R[z++]<<G,G+=8}if(F!==(4294967295&E.total)){L.msg="incorrect length check",E.mode=30;break}G=F=0}E.mode=29;case 29:vt=1;break t;case 30:vt=-3;break t;case 31:return-4;case 32:default:return f}return L.next_out=V,L.avail_out=K,L.next_in=z,L.avail_in=H,E.hold=F,E.bits=G,(E.wsize||ot!==L.avail_out&&E.mode<30&&(E.mode<27||I!==4))&&D(L,L.output,L.next_out,ot-L.avail_out)?(E.mode=31,-4):(rt-=L.avail_in,ot-=L.avail_out,L.total_in+=rt,L.total_out+=ot,E.total+=ot,E.wrap&&ot&&(L.adler=E.check=E.flags?a(E.check,B,ot,L.next_out-ot):n(E.check,B,ot,L.next_out-ot)),L.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(rt==0&&ot===0||I===4)&&vt===c&&(vt=-5),vt)},t.inflateEnd=function(L){if(!L||!L.state)return f;var I=L.state;return I.window&&(I.window=null),L.state=null,c},t.inflateGetHeader=function(L,I){var E;return L&&L.state?(2&(E=L.state).wrap)==0?f:((E.head=I).done=!1,c):f},t.inflateSetDictionary=function(L,I){var E,R=I.length;return L&&L.state?(E=L.state).wrap!==0&&E.mode!==11?f:E.mode===11&&n(1,I,R,0)!==E.check?-3:D(L,I,R,R)?(E.mode=31,-4):(E.havedict=1,c):f},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,e,t){var i=r("../utils/common"),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(l,u,c,f,p,h,v,g){var y,m,d,x,S,w,T,A,M,D=g.bits,L=0,I=0,E=0,R=0,B=0,z=0,V=0,H=0,K=0,F=0,G=null,rt=0,ot=new i.Buf16(16),at=new i.Buf16(16),mt=null,Tt=0;for(L=0;L<=15;L++)ot[L]=0;for(I=0;I<f;I++)ot[u[c+I]]++;for(B=D,R=15;1<=R&&ot[R]===0;R--);if(R<B&&(B=R),R===0)return p[h++]=20971520,p[h++]=20971520,g.bits=1,0;for(E=1;E<R&&ot[E]===0;E++);for(B<E&&(B=E),L=H=1;L<=15;L++)if(H<<=1,(H-=ot[L])<0)return-1;if(0<H&&(l===0||R!==1))return-1;for(at[1]=0,L=1;L<15;L++)at[L+1]=at[L]+ot[L];for(I=0;I<f;I++)u[c+I]!==0&&(v[at[u[c+I]]++]=I);if(w=l===0?(G=mt=v,19):l===1?(G=n,rt-=257,mt=a,Tt-=257,256):(G=o,mt=s,-1),L=E,S=h,V=I=F=0,d=-1,x=(K=1<<(z=B))-1,l===1&&852<K||l===2&&592<K)return 1;for(;;){for(T=L-V,M=v[I]<w?(A=0,v[I]):v[I]>w?(A=mt[Tt+v[I]],G[rt+v[I]]):(A=96,0),y=1<<L-V,E=m=1<<z;p[S+(F>>V)+(m-=y)]=T<<24|A<<16|M|0,m!==0;);for(y=1<<L-1;F&y;)y>>=1;if(y!==0?(F&=y-1,F+=y):F=0,I++,--ot[L]==0){if(L===R)break;L=u[c+v[I]]}if(B<L&&(F&x)!==d){for(V===0&&(V=B),S+=E,H=1<<(z=L-V);z+V<R&&!((H-=ot[z+V])<=0);)z++,H<<=1;if(K+=1<<z,l===1&&852<K||l===2&&592<K)return 1;p[d=F&x]=B<<24|z<<16|S-h|0}}return F!==0&&(p[S+F]=L-V<<24|4194304|0),g.bits=B,0}},{"../utils/common":41}],51:[function(r,e,t){e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,e,t){var i=r("../utils/common"),n=0,a=1;function o(X){for(var lt=X.length;0<=--lt;)X[lt]=0}var s=0,l=29,u=256,c=u+1+l,f=30,p=19,h=2*c+1,v=15,g=16,y=7,m=256,d=16,x=17,S=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],T=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=Array(2*(c+2));o(D);var L=Array(2*f);o(L);var I=Array(512);o(I);var E=Array(256);o(E);var R=Array(l);o(R);var B,z,V,H=Array(f);function K(X,lt,At,Ct,pt){this.static_tree=X,this.extra_bits=lt,this.extra_base=At,this.elems=Ct,this.max_length=pt,this.has_stree=X&&X.length}function F(X,lt){this.dyn_tree=X,this.max_code=0,this.stat_desc=lt}function G(X){return X<256?I[X]:I[256+(X>>>7)]}function rt(X,lt){X.pending_buf[X.pending++]=255&lt,X.pending_buf[X.pending++]=lt>>>8&255}function ot(X,lt,At){X.bi_valid>g-At?(X.bi_buf|=lt<<X.bi_valid&65535,rt(X,X.bi_buf),X.bi_buf=lt>>g-X.bi_valid,X.bi_valid+=At-g):(X.bi_buf|=lt<<X.bi_valid&65535,X.bi_valid+=At)}function at(X,lt,At){ot(X,At[2*lt],At[2*lt+1])}function mt(X,lt){for(var At=0;At|=1&X,X>>>=1,At<<=1,0<--lt;);return At>>>1}function Tt(X,lt,At){var Ct,pt,Ht=Array(v+1),ie=0;for(Ct=1;Ct<=v;Ct++)Ht[Ct]=ie=ie+At[Ct-1]<<1;for(pt=0;pt<=lt;pt++){var Kt=X[2*pt+1];Kt!==0&&(X[2*pt]=mt(Ht[Kt]++,Kt))}}function Ut(X){var lt;for(lt=0;lt<c;lt++)X.dyn_ltree[2*lt]=0;for(lt=0;lt<f;lt++)X.dyn_dtree[2*lt]=0;for(lt=0;lt<p;lt++)X.bl_tree[2*lt]=0;X.dyn_ltree[2*m]=1,X.opt_len=X.static_len=0,X.last_lit=X.matches=0}function qt(X){8<X.bi_valid?rt(X,X.bi_buf):0<X.bi_valid&&(X.pending_buf[X.pending++]=X.bi_buf),X.bi_buf=0,X.bi_valid=0}function Zt(X,lt,At,Ct){var pt=2*lt,Ht=2*At;return X[pt]<X[Ht]||X[pt]===X[Ht]&&Ct[lt]<=Ct[At]}function Rt(X,lt,At){for(var Ct=X.heap[At],pt=At<<1;pt<=X.heap_len&&(pt<X.heap_len&&Zt(lt,X.heap[pt+1],X.heap[pt],X.depth)&&pt++,!Zt(lt,Ct,X.heap[pt],X.depth));)X.heap[At]=X.heap[pt],At=pt,pt<<=1;X.heap[At]=Ct}function oe(X,lt,At){var Ct,pt,Ht,ie,Kt=0;if(X.last_lit!==0)for(;Ct=X.pending_buf[X.d_buf+2*Kt]<<8|X.pending_buf[X.d_buf+2*Kt+1],pt=X.pending_buf[X.l_buf+Kt],Kt++,Ct===0?at(X,pt,lt):(at(X,(Ht=E[pt])+u+1,lt),(ie=w[Ht])!==0&&ot(X,pt-=R[Ht],ie),at(X,Ht=G(--Ct),At),(ie=T[Ht])!==0&&ot(X,Ct-=H[Ht],ie)),Kt<X.last_lit;);at(X,m,lt)}function Vt(X,lt){var At,Ct,pt,Ht=lt.dyn_tree,ie=lt.stat_desc.static_tree,Kt=lt.stat_desc.has_stree,_e=lt.stat_desc.elems,gr=-1;for(X.heap_len=0,X.heap_max=h,At=0;At<_e;At++)Ht[2*At]!==0?(X.heap[++X.heap_len]=gr=At,X.depth[At]=0):Ht[2*At+1]=0;for(;X.heap_len<2;)Ht[2*(pt=X.heap[++X.heap_len]=gr<2?++gr:0)]=1,X.depth[pt]=0,X.opt_len--,Kt&&(X.static_len-=ie[2*pt+1]);for(lt.max_code=gr,At=X.heap_len>>1;1<=At;At--)Rt(X,Ht,At);for(pt=_e;At=X.heap[1],X.heap[1]=X.heap[X.heap_len--],Rt(X,Ht,1),Ct=X.heap[1],X.heap[--X.heap_max]=At,X.heap[--X.heap_max]=Ct,Ht[2*pt]=Ht[2*At]+Ht[2*Ct],X.depth[pt]=(X.depth[At]>=X.depth[Ct]?X.depth[At]:X.depth[Ct])+1,Ht[2*At+1]=Ht[2*Ct+1]=pt,X.heap[1]=pt++,Rt(X,Ht,1),2<=X.heap_len;);X.heap[--X.heap_max]=X.heap[1],function(Ge,si){var Ga,Wi,Ha,Ir,xo,ds,{dyn_tree:en,max_code:ol}=si,ou=si.stat_desc.static_tree,Zf=si.stat_desc.has_stree,jf=si.stat_desc.extra_bits,$e=si.stat_desc.extra_base,Vr=si.stat_desc.max_length,Xf=0;for(Ir=0;Ir<=v;Ir++)Ge.bl_count[Ir]=0;for(en[2*Ge.heap[Ge.heap_max]+1]=0,Ga=Ge.heap_max+1;Ga<h;Ga++)Vr<(Ir=en[2*en[2*(Wi=Ge.heap[Ga])+1]+1]+1)&&(Ir=Vr,Xf++),en[2*Wi+1]=Ir,ol<Wi||(Ge.bl_count[Ir]++,xo=0,$e<=Wi&&(xo=jf[Wi-$e]),ds=en[2*Wi],Ge.opt_len+=ds*(Ir+xo),Zf&&(Ge.static_len+=ds*(ou[2*Wi+1]+xo)));if(Xf!==0){do{for(Ir=Vr-1;Ge.bl_count[Ir]===0;)Ir--;Ge.bl_count[Ir]--,Ge.bl_count[Ir+1]+=2,Ge.bl_count[Vr]--,Xf-=2}while(0<Xf);for(Ir=Vr;Ir!==0;Ir--)for(Wi=Ge.bl_count[Ir];Wi!==0;)ol<(Ha=Ge.heap[--Ga])||(en[2*Ha+1]!==Ir&&(Ge.opt_len+=(Ir-en[2*Ha+1])*en[2*Ha],en[2*Ha+1]=Ir),Wi--)}}(X,lt),Tt(Ht,gr,X.bl_count)}function N(X,lt,At){var Ct,pt,Ht=-1,ie=lt[1],Kt=0,_e=7,gr=4;for(ie===0&&(_e=138,gr=3),lt[2*(At+1)+1]=65535,Ct=0;Ct<=At;Ct++)pt=ie,ie=lt[2*(Ct+1)+1],++Kt<_e&&pt===ie||(Kt<gr?X.bl_tree[2*pt]+=Kt:pt!==0?(pt!==Ht&&X.bl_tree[2*pt]++,X.bl_tree[2*d]++):Kt<=10?X.bl_tree[2*x]++:X.bl_tree[2*S]++,Ht=pt,gr=(Kt=0)===ie?(_e=138,3):pt===ie?(_e=6,3):(_e=7,4))}function vt(X,lt,At){var Ct,pt,Ht=-1,ie=lt[1],Kt=0,_e=7,gr=4;for(ie===0&&(_e=138,gr=3),Ct=0;Ct<=At;Ct++)if(pt=ie,ie=lt[2*(Ct+1)+1],!(++Kt<_e&&pt===ie)){if(Kt<gr)for(;at(X,pt,X.bl_tree),--Kt!=0;);else pt!==0?(pt!==Ht&&(at(X,pt,X.bl_tree),Kt--),at(X,d,X.bl_tree),ot(X,Kt-3,2)):Kt<=10?(at(X,x,X.bl_tree),ot(X,Kt-3,3)):(at(X,S,X.bl_tree),ot(X,Kt-11,7));Ht=pt,gr=(Kt=0)===ie?(_e=138,3):pt===ie?(_e=6,3):(_e=7,4)}}o(H);var ut=!1;function q(X,lt,At,Ct){ot(X,(s<<1)+(Ct?1:0),3),function(pt,Ht,ie,Kt){qt(pt),Kt&&(rt(pt,ie),rt(pt,~ie)),i.arraySet(pt.pending_buf,pt.window,Ht,ie,pt.pending),pt.pending+=ie}(X,lt,At,!0)}t._tr_init=function(X){ut||(function(){var lt,At,Ct,pt,Ht,ie=Array(v+1);for(pt=Ct=0;pt<l-1;pt++)for(R[pt]=Ct,lt=0;lt<1<<w[pt];lt++)E[Ct++]=pt;for(E[Ct-1]=pt,pt=Ht=0;pt<16;pt++)for(H[pt]=Ht,lt=0;lt<1<<T[pt];lt++)I[Ht++]=pt;for(Ht>>=7;pt<f;pt++)for(H[pt]=Ht<<7,lt=0;lt<1<<T[pt]-7;lt++)I[256+Ht++]=pt;for(At=0;At<=v;At++)ie[At]=0;for(lt=0;lt<=143;)D[2*lt+1]=8,lt++,ie[8]++;for(;lt<=255;)D[2*lt+1]=9,lt++,ie[9]++;for(;lt<=279;)D[2*lt+1]=7,lt++,ie[7]++;for(;lt<=287;)D[2*lt+1]=8,lt++,ie[8]++;for(Tt(D,c+1,ie),lt=0;lt<f;lt++)L[2*lt+1]=5,L[2*lt]=mt(lt,5);B=new K(D,w,u+1,c,v),z=new K(L,T,0,f,v),V=new K([],A,0,p,y)}(),ut=!0),X.l_desc=new F(X.dyn_ltree,B),X.d_desc=new F(X.dyn_dtree,z),X.bl_desc=new F(X.bl_tree,V),X.bi_buf=0,X.bi_valid=0,Ut(X)},t._tr_stored_block=q,t._tr_flush_block=function(X,lt,At,Ct){var pt,Ht,ie=0;0<X.level?(X.strm.data_type===2&&(X.strm.data_type=function(Kt){var _e,gr=4093624447;for(_e=0;_e<=31;_e++,gr>>>=1)if(1&gr&&Kt.dyn_ltree[2*_e]!==0)return n;if(Kt.dyn_ltree[18]!==0||Kt.dyn_ltree[20]!==0||Kt.dyn_ltree[26]!==0)return a;for(_e=32;_e<u;_e++)if(Kt.dyn_ltree[2*_e]!==0)return a;return n}(X)),Vt(X,X.l_desc),Vt(X,X.d_desc),ie=function(Kt){var _e;for(N(Kt,Kt.dyn_ltree,Kt.l_desc.max_code),N(Kt,Kt.dyn_dtree,Kt.d_desc.max_code),Vt(Kt,Kt.bl_desc),_e=p-1;3<=_e&&Kt.bl_tree[2*M[_e]+1]===0;_e--);return Kt.opt_len+=3*(_e+1)+5+5+4,_e}(X),pt=X.opt_len+3+7>>>3,(Ht=X.static_len+3+7>>>3)<=pt&&(pt=Ht)):pt=Ht=At+5,At+4<=pt&&lt!==-1?q(X,lt,At,Ct):X.strategy===4||Ht===pt?(ot(X,2+(Ct?1:0),3),oe(X,D,L)):(ot(X,4+(Ct?1:0),3),function(Kt,_e,gr,Ge){var si;for(ot(Kt,_e-257,5),ot(Kt,gr-1,5),ot(Kt,Ge-4,4),si=0;si<Ge;si++)ot(Kt,Kt.bl_tree[2*M[si]+1],3);vt(Kt,Kt.dyn_ltree,_e-1),vt(Kt,Kt.dyn_dtree,gr-1)}(X,X.l_desc.max_code+1,X.d_desc.max_code+1,ie+1),oe(X,X.dyn_ltree,X.dyn_dtree)),Ut(X),Ct&&qt(X)},t._tr_tally=function(X,lt,At){return X.pending_buf[X.d_buf+2*X.last_lit]=lt>>>8&255,X.pending_buf[X.d_buf+2*X.last_lit+1]=255&lt,X.pending_buf[X.l_buf+X.last_lit]=255&At,X.last_lit++,lt===0?X.dyn_ltree[2*At]++:(X.matches++,lt--,X.dyn_ltree[2*(E[At]+u+1)]++,X.dyn_dtree[2*G(lt)]++),X.last_lit===X.lit_bufsize-1},t._tr_align=function(X){ot(X,2,3),at(X,m,D),function(lt){lt.bi_valid===16?(rt(lt,lt.bi_buf),lt.bi_buf=0,lt.bi_valid=0):8<=lt.bi_valid&&(lt.pending_buf[lt.pending++]=255&lt.bi_buf,lt.bi_buf>>=8,lt.bi_valid-=8)}(X)}},{"../utils/common":41}],53:[function(r,e,t){e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,e,t){(function(i){(function(n,a){if(!n.setImmediate){var o,s,l,u,c=1,f={},p=!1,h=n.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(n);v=v&&v.setTimeout?v:n,o={}.toString.call(n.process)==="[object process]"?function(d){process.nextTick(function(){y(d)})}:function(){if(n.postMessage&&!n.importScripts){var d=!0,x=n.onmessage;return n.onmessage=function(){d=!1},n.postMessage("","*"),n.onmessage=x,d}}()?(u="setImmediate$"+Math.random()+"$",n.addEventListener?n.addEventListener("message",m,!1):n.attachEvent("onmessage",m),function(d){n.postMessage(u+d,"*")}):n.MessageChannel?((l=new MessageChannel).port1.onmessage=function(d){y(d.data)},function(d){l.port2.postMessage(d)}):h&&("onreadystatechange"in h.createElement("script"))?(s=h.documentElement,function(d){var x=h.createElement("script");x.onreadystatechange=function(){y(d),x.onreadystatechange=null,s.removeChild(x),x=null},s.appendChild(x)}):function(d){setTimeout(y,0,d)},v.setImmediate=function(d){typeof d!="function"&&(d=Function(""+d));for(var x=Array(arguments.length-1),S=0;S<x.length;S++)x[S]=arguments[S+1];var w={callback:d,args:x};return f[c]=w,o(c),c++},v.clearImmediate=g}function g(d){delete f[d]}function y(d){if(p)setTimeout(y,0,d);else{var x=f[d];if(x){p=!0;try{(function(S){var{callback:w,args:T}=S;switch(T.length){case 0:w();break;case 1:w(T[0]);break;case 2:w(T[0],T[1]);break;case 3:w(T[0],T[1],T[2]);break;default:w.apply(a,T)}})(x)}finally{g(d),p=!1}}}}function m(d){d.source===n&&typeof d.data=="string"&&d.data.indexOf(u)===0&&y(+d.data.slice(u.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var yV=dV(function(lg,ug){(function(){var r,e="4.18.1",t=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",n="Expected a function",a="Invalid `variable` option passed into `_.template`",o="Invalid `imports` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",c=1,f=2,p=4,h=1,v=2,g=1,y=2,m=4,d=8,x=16,S=32,w=64,T=128,A=256,M=512,D=30,L="...",I=800,E=16,R=1,B=2,z=3,V=1/0,H=9007199254740991,K=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,F=NaN,G=4294967295,rt=G-1,ot=G>>>1,at=[["ary",T],["bind",g],["bindKey",y],["curry",d],["curryRight",x],["flip",M],["partial",S],["partialRight",w],["rearg",A]],mt="[object Arguments]",Tt="[object Array]",Ut="[object AsyncFunction]",qt="[object Boolean]",Zt="[object Date]",Rt="[object DOMException]",oe="[object Error]",Vt="[object Function]",N="[object GeneratorFunction]",vt="[object Map]",ut="[object Number]",q="[object Null]",X="[object Object]",lt="[object Promise]",At="[object Proxy]",Ct="[object RegExp]",pt="[object Set]",Ht="[object String]",ie="[object Symbol]",Kt="[object Undefined]",_e="[object WeakMap]",gr="[object WeakSet]",Ge="[object ArrayBuffer]",si="[object DataView]",Ga="[object Float32Array]",Wi="[object Float64Array]",Ha="[object Int8Array]",Ir="[object Int16Array]",xo="[object Int32Array]",ds="[object Uint8Array]",en="[object Uint8ClampedArray]",ol="[object Uint16Array]",ou="[object Uint32Array]",Zf=/\b__p \+= '';/g,jf=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vr=/&(?:amp|lt|gt|quot|#39);/g,Xf=/[&<>"']/g,Znt=RegExp(Vr.source),jnt=RegExp(Xf.source),Xnt=/<%-([\s\S]+?)%>/g,Knt=/<%([\s\S]+?)%>/g,zz=/<%=([\s\S]+?)%>/g,qnt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jnt=/^\w*$/,$nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pC=/[\\^$.*+?()[\]{}|]/g,Qnt=RegExp(pC.source),hC=/^\s+/,tat=/\s/,eat=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,rat=/\{\n\/\* \[wrapped with (.+)\] \*/,iat=/,? & /,nat=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bz=/[()=,{}\[\]\/\s]/,aat=/\\(\\)?/g,oat=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Uz=/\w*$/,sat=/^[-+]0x[0-9a-f]+$/i,lat=/^0b[01]+$/i,uat=/^\[object .+?Constructor\]$/,cat=/^0o[0-7]+$/i,fat=/^(?:0|[1-9]\d*)$/,pat=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,b_=/($^)/,hat=/['\n\r\u2028\u2029\\]/g,w_="\\ud800-\\udfff",dat="\\u0300-\\u036f",vat="\\ufe20-\\ufe2f",mat="\\u20d0-\\u20ff",Vz=dat+vat+mat,Fz="\\u2700-\\u27bf",Gz="a-z\\xdf-\\xf6\\xf8-\\xff",gat="\\xac\\xb1\\xd7\\xf7",yat="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_at="\\u2000-\\u206f",xat=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hz="A-Z\\xc0-\\xd6\\xd8-\\xde",Wz="\\ufe0e\\ufe0f",Yz=gat+yat+_at+xat,dC="['’]",Sat="["+w_+"]",Zz="["+Yz+"]",T_="["+Vz+"]",jz="\\d+",bat="["+Fz+"]",Xz="["+Gz+"]",Kz="[^"+w_+Yz+jz+Fz+Gz+Hz+"]",vC="\\ud83c[\\udffb-\\udfff]",wat="(?:"+T_+"|"+vC+")",qz="[^"+w_+"]",mC="(?:\\ud83c[\\udde6-\\uddff]){2}",gC="[\\ud800-\\udbff][\\udc00-\\udfff]",ed="["+Hz+"]",Jz="\\u200d",$z="(?:"+Xz+"|"+Kz+")",Tat="(?:"+ed+"|"+Kz+")",Qz="(?:"+dC+"(?:d|ll|m|re|s|t|ve))?",tB="(?:"+dC+"(?:D|LL|M|RE|S|T|VE))?",eB=wat+"?",rB="["+Wz+"]?",Aat="(?:"+Jz+"(?:"+[qz,mC,gC].join("|")+")"+rB+eB+")*",Cat="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Eat="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iB=rB+eB+Aat,Mat="(?:"+[bat,mC,gC].join("|")+")"+iB,Lat="(?:"+[qz+T_+"?",T_,mC,gC,Sat].join("|")+")",Dat=RegExp(dC,"g"),Iat=RegExp(T_,"g"),yC=RegExp(vC+"(?="+vC+")|"+Lat+iB,"g"),Pat=RegExp([ed+"?"+Xz+"+"+Qz+"(?="+[Zz,ed,"$"].join("|")+")",Tat+"+"+tB+"(?="+[Zz,ed+$z,"$"].join("|")+")",ed+"?"+$z+"+"+Qz,ed+"+"+tB,Eat,Cat,jz,Mat].join("|"),"g"),Rat=RegExp("["+Jz+w_+Vz+Wz+"]"),Oat=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kat=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nat=-1,qr={};qr[Ga]=qr[Wi]=qr[Ha]=qr[Ir]=qr[xo]=qr[ds]=qr[en]=qr[ol]=qr[ou]=!0,qr[mt]=qr[Tt]=qr[Ge]=qr[qt]=qr[si]=qr[Zt]=qr[oe]=qr[Vt]=qr[vt]=qr[ut]=qr[X]=qr[Ct]=qr[pt]=qr[Ht]=qr[_e]=!1;var Fr={};Fr[mt]=Fr[Tt]=Fr[Ge]=Fr[si]=Fr[qt]=Fr[Zt]=Fr[Ga]=Fr[Wi]=Fr[Ha]=Fr[Ir]=Fr[xo]=Fr[vt]=Fr[ut]=Fr[X]=Fr[Ct]=Fr[pt]=Fr[Ht]=Fr[ie]=Fr[ds]=Fr[en]=Fr[ol]=Fr[ou]=!0,Fr[oe]=Fr[Vt]=Fr[_e]=!1;var zat={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Bat={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Uat={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Vat={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fat=parseFloat,Gat=parseInt,nB=typeof global=="object"&&global&&global.Object===Object&&global,Hat=typeof self=="object"&&self&&self.Object===Object&&self,Yi=nB||Hat||Function("return this")(),_C=typeof lg=="object"&&lg&&!lg.nodeType&&lg,Kf=_C&&typeof ug=="object"&&ug&&!ug.nodeType&&ug,aB=Kf&&Kf.exports===_C,xC=aB&&nB.process,So=function(){try{var ct=Kf&&Kf.require&&Kf.require("util").types;if(ct)return ct;return xC&&xC.binding&&xC.binding("util")}catch(Et){}}(),oB=So&&So.isArrayBuffer,sB=So&&So.isDate,lB=So&&So.isMap,uB=So&&So.isRegExp,cB=So&&So.isSet,fB=So&&So.isTypedArray;function Wa(ct,Et,_t){switch(_t.length){case 0:return ct.call(Et);case 1:return ct.call(Et,_t[0]);case 2:return ct.call(Et,_t[0],_t[1]);case 3:return ct.call(Et,_t[0],_t[1],_t[2])}return ct.apply(Et,_t)}function Wat(ct,Et,_t,ve){var Fe=-1,Sr=ct==null?0:ct.length;while(++Fe<Sr){var Bi=ct[Fe];Et(ve,Bi,_t(Bi),ct)}return ve}function Ya(ct,Et){var _t=-1,ve=ct==null?0:ct.length;while(++_t<ve)if(Et(ct[_t],_t,ct)===!1)break;return ct}function Yat(ct,Et){var _t=ct==null?0:ct.length;while(_t--)if(Et(ct[_t],_t,ct)===!1)break;return ct}function pB(ct,Et){var _t=-1,ve=ct==null?0:ct.length;while(++_t<ve)if(!Et(ct[_t],_t,ct))return!1;return!0}function cc(ct,Et){var _t=-1,ve=ct==null?0:ct.length,Fe=0,Sr=[];while(++_t<ve){var Bi=ct[_t];if(Et(Bi,_t,ct))Sr[Fe++]=Bi}return Sr}function A_(ct,Et){var _t=ct==null?0:ct.length;return!!_t&&rd(ct,Et,0)>-1}function SC(ct,Et,_t){var ve=-1,Fe=ct==null?0:ct.length;while(++ve<Fe)if(_t(Et,ct[ve]))return!0;return!1}function ei(ct,Et){var _t=-1,ve=ct==null?0:ct.length,Fe=Array(ve);while(++_t<ve)Fe[_t]=Et(ct[_t],_t,ct);return Fe}function fc(ct,Et){var _t=-1,ve=Et.length,Fe=ct.length;while(++_t<ve)ct[Fe+_t]=Et[_t];return ct}function bC(ct,Et,_t,ve){var Fe=-1,Sr=ct==null?0:ct.length;if(ve&&Sr)_t=ct[++Fe];while(++Fe<Sr)_t=Et(_t,ct[Fe],Fe,ct);return _t}function Zat(ct,Et,_t,ve){var Fe=ct==null?0:ct.length;if(ve&&Fe)_t=ct[--Fe];while(Fe--)_t=Et(_t,ct[Fe],Fe,ct);return _t}function wC(ct,Et){var _t=-1,ve=ct==null?0:ct.length;while(++_t<ve)if(Et(ct[_t],_t,ct))return!0;return!1}var jat=TC("length");function Xat(ct){return ct.split("")}function Kat(ct){return ct.match(nat)||[]}function hB(ct,Et,_t){var ve;return _t(ct,function(Fe,Sr,Bi){if(Et(Fe,Sr,Bi))return ve=Sr,!1}),ve}function C_(ct,Et,_t,ve){var Fe=ct.length,Sr=_t+(ve?1:-1);while(ve?Sr--:++Sr<Fe)if(Et(ct[Sr],Sr,ct))return Sr;return-1}function rd(ct,Et,_t){return Et===Et?sot(ct,Et,_t):C_(ct,dB,_t)}function qat(ct,Et,_t,ve){var Fe=_t-1,Sr=ct.length;while(++Fe<Sr)if(ve(ct[Fe],Et))return Fe;return-1}function dB(ct){return ct!==ct}function vB(ct,Et){var _t=ct==null?0:ct.length;return _t?CC(ct,Et)/_t:F}function TC(ct){return function(Et){return Et==null?r:Et[ct]}}function AC(ct){return function(Et){return ct==null?r:ct[Et]}}function mB(ct,Et,_t,ve,Fe){return Fe(ct,function(Sr,Bi,zr){_t=ve?(ve=!1,Sr):Et(_t,Sr,Bi,zr)}),_t}function Jat(ct,Et){var _t=ct.length;ct.sort(Et);while(_t--)ct[_t]=ct[_t].value;return ct}function CC(ct,Et){var _t,ve=-1,Fe=ct.length;while(++ve<Fe){var Sr=Et(ct[ve]);if(Sr!==r)_t=_t===r?Sr:_t+Sr}return _t}function EC(ct,Et){var _t=-1,ve=Array(ct);while(++_t<ct)ve[_t]=Et(_t);return ve}function $at(ct,Et){return ei(Et,function(_t){return[_t,ct[_t]]})}function gB(ct){return ct?ct.slice(0,SB(ct)+1).replace(hC,""):ct}function Za(ct){return function(Et){return ct(Et)}}function MC(ct,Et){return ei(Et,function(_t){return ct[_t]})}function jm(ct,Et){return ct.has(Et)}function yB(ct,Et){var _t=-1,ve=ct.length;while(++_t<ve&&rd(Et,ct[_t],0)>-1);return _t}function _B(ct,Et){var _t=ct.length;while(_t--&&rd(Et,ct[_t],0)>-1);return _t}function Qat(ct,Et){var _t=ct.length,ve=0;while(_t--)if(ct[_t]===Et)++ve;return ve}var tot=AC(zat),eot=AC(Bat);function rot(ct){return"\\"+Vat[ct]}function iot(ct,Et){return ct==null?r:ct[Et]}function id(ct){return Rat.test(ct)}function not(ct){return Oat.test(ct)}function aot(ct){var Et,_t=[];while(!(Et=ct.next()).done)_t.push(Et.value);return _t}function LC(ct){var Et=-1,_t=Array(ct.size);return ct.forEach(function(ve,Fe){_t[++Et]=[Fe,ve]}),_t}function xB(ct,Et){return function(_t){return ct(Et(_t))}}function pc(ct,Et){var _t=-1,ve=ct.length,Fe=0,Sr=[];while(++_t<ve){var Bi=ct[_t];if(Bi===Et||Bi===u)ct[_t]=u,Sr[Fe++]=_t}return Sr}function E_(ct){var Et=-1,_t=Array(ct.size);return ct.forEach(function(ve){_t[++Et]=ve}),_t}function oot(ct){var Et=-1,_t=Array(ct.size);return ct.forEach(function(ve){_t[++Et]=[ve,ve]}),_t}function sot(ct,Et,_t){var ve=_t-1,Fe=ct.length;while(++ve<Fe)if(ct[ve]===Et)return ve;return-1}function lot(ct,Et,_t){var ve=_t+1;while(ve--)if(ct[ve]===Et)return ve;return ve}function nd(ct){return id(ct)?cot(ct):jat(ct)}function vs(ct){return id(ct)?fot(ct):Xat(ct)}function SB(ct){var Et=ct.length;while(Et--&&tat.test(ct.charAt(Et)));return Et}var uot=AC(Uat);function cot(ct){var Et=yC.lastIndex=0;while(yC.test(ct))++Et;return Et}function fot(ct){return ct.match(yC)||[]}function pot(ct){return ct.match(Pat)||[]}var hot=function ct(Et){Et=Et==null?Yi:hc.defaults(Yi.Object(),Et,hc.pick(Yi,kat));var _t=Et.Array,ve=Et.Date,Fe=Et.Error,Sr=Et.Function,Bi=Et.Math,zr=Et.Object,DC=Et.RegExp,dot=Et.String,bo=Et.TypeError,M_=_t.prototype,vot=Sr.prototype,ad=zr.prototype,L_=Et["__core-js_shared__"],D_=vot.toString,Ar=ad.hasOwnProperty,mot=0,bB=function(){var _=/[^.]+$/.exec(L_&&L_.keys&&L_.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),I_=ad.toString,got=D_.call(zr),yot=Yi._,_ot=DC("^"+D_.call(Ar).replace(pC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P_=aB?Et.Buffer:r,dc=Et.Symbol,R_=Et.Uint8Array,wB=P_?P_.allocUnsafe:r,O_=xB(zr.getPrototypeOf,zr),TB=zr.create,AB=ad.propertyIsEnumerable,k_=M_.splice,CB=dc?dc.isConcatSpreadable:r,Xm=dc?dc.iterator:r,qf=dc?dc.toStringTag:r,N_=function(){try{var _=ep(zr,"defineProperty");return _({},"",{}),_}catch(b){}}(),xot=Et.clearTimeout!==Yi.clearTimeout&&Et.clearTimeout,Sot=ve&&ve.now!==Yi.Date.now&&ve.now,bot=Et.setTimeout!==Yi.setTimeout&&Et.setTimeout,{ceil:z_,floor:B_}=Bi,IC=zr.getOwnPropertySymbols,wot=P_?P_.isBuffer:r,EB=Et.isFinite,Tot=M_.join,Aot=xB(zr.keys,zr),{max:Ui,min:xn}=Bi,Cot=ve.now,Eot=Et.parseInt,MB=Bi.random,Mot=M_.reverse,PC=ep(Et,"DataView"),Km=ep(Et,"Map"),RC=ep(Et,"Promise"),od=ep(Et,"Set"),qm=ep(Et,"WeakMap"),Jm=ep(zr,"create"),U_=qm&&new qm,sd={},Lot=rp(PC),Dot=rp(Km),Iot=rp(RC),Pot=rp(od),Rot=rp(qm),V_=dc?dc.prototype:r,$m=V_?V_.valueOf:r,LB=V_?V_.toString:r;function Y(_){if(vi(_)&&!We(_)&&!(_ instanceof sr)){if(_ instanceof wo)return _;if(Ar.call(_,"__wrapped__"))return DU(_)}return new wo(_)}var ld=function(){function _(){}return function(b){if(!li(b))return{};if(TB)return TB(b);_.prototype=b;var C=new _;return _.prototype=r,C}}();function F_(){}function wo(_,b){this.__wrapped__=_,this.__actions__=[],this.__chain__=!!b,this.__index__=0,this.__values__=r}Y.templateSettings={escape:Xnt,evaluate:Knt,interpolate:zz,variable:"",imports:{_:Y}},Y.prototype=F_.prototype,Y.prototype.constructor=Y,wo.prototype=ld(F_.prototype),wo.prototype.constructor=wo;function sr(_){this.__wrapped__=_,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Oot(){var _=new sr(this.__wrapped__);return _.__actions__=la(this.__actions__),_.__dir__=this.__dir__,_.__filtered__=this.__filtered__,_.__iteratees__=la(this.__iteratees__),_.__takeCount__=this.__takeCount__,_.__views__=la(this.__views__),_}function kot(){if(this.__filtered__){var _=new sr(this);_.__dir__=-1,_.__filtered__=!0}else _=this.clone(),_.__dir__*=-1;return _}function Not(){var _=this.__wrapped__.value(),b=this.__dir__,C=We(_),O=b<0,U=C?_.length:0,j=Xst(0,U,this.__views__),{start:tt,end:st}=j,ft=st-tt,kt=O?st:tt-1,Nt=this.__iteratees__,Wt=Nt.length,se=0,Se=xn(ft,this.__takeCount__);if(!C||!O&&U==ft&&Se==ft)return QB(_,this.__actions__);var Oe=[];t:while(ft--&&se<Se){kt+=b;var je=-1,Le=_[kt];while(++je<Wt){var nr=Nt[je],{iteratee:cr,type:Ka}=nr,Gn=cr(Le);if(Ka==B)Le=Gn;else if(!Gn)if(Ka==R)continue t;else break t}Oe[se++]=Le}return Oe}sr.prototype=ld(F_.prototype),sr.prototype.constructor=sr;function Jf(_){var b=-1,C=_==null?0:_.length;this.clear();while(++b<C){var O=_[b];this.set(O[0],O[1])}}function zot(){this.__data__=Jm?Jm(null):{},this.size=0}function Bot(_){var b=this.has(_)&&delete this.__data__[_];return this.size-=b?1:0,b}function Uot(_){var b=this.__data__;if(Jm){var C=b[_];return C===s?r:C}return Ar.call(b,_)?b[_]:r}function Vot(_){var b=this.__data__;return Jm?b[_]!==r:Ar.call(b,_)}function Fot(_,b){var C=this.__data__;return this.size+=this.has(_)?0:1,C[_]=Jm&&b===r?s:b,this}Jf.prototype.clear=zot,Jf.prototype.delete=Bot,Jf.prototype.get=Uot,Jf.prototype.has=Vot,Jf.prototype.set=Fot;function su(_){var b=-1,C=_==null?0:_.length;this.clear();while(++b<C){var O=_[b];this.set(O[0],O[1])}}function Got(){this.__data__=[],this.size=0}function Hot(_){var b=this.__data__,C=G_(b,_);if(C<0)return!1;var O=b.length-1;if(C==O)b.pop();else k_.call(b,C,1);return--this.size,!0}function Wot(_){var b=this.__data__,C=G_(b,_);return C<0?r:b[C][1]}function Yot(_){return G_(this.__data__,_)>-1}function Zot(_,b){var C=this.__data__,O=G_(C,_);if(O<0)++this.size,C.push([_,b]);else C[O][1]=b;return this}su.prototype.clear=Got,su.prototype.delete=Hot,su.prototype.get=Wot,su.prototype.has=Yot,su.prototype.set=Zot;function lu(_){var b=-1,C=_==null?0:_.length;this.clear();while(++b<C){var O=_[b];this.set(O[0],O[1])}}function jot(){this.size=0,this.__data__={hash:new Jf,map:new(Km||su),string:new Jf}}function Xot(_){var b=tx(this,_).delete(_);return this.size-=b?1:0,b}function Kot(_){return tx(this,_).get(_)}function qot(_){return tx(this,_).has(_)}function Jot(_,b){var C=tx(this,_),O=C.size;return C.set(_,b),this.size+=C.size==O?0:1,this}lu.prototype.clear=jot,lu.prototype.delete=Xot,lu.prototype.get=Kot,lu.prototype.has=qot,lu.prototype.set=Jot;function $f(_){var b=-1,C=_==null?0:_.length;this.__data__=new lu;while(++b<C)this.add(_[b])}function $ot(_){return this.__data__.set(_,s),this}function Qot(_){return this.__data__.has(_)}$f.prototype.add=$f.prototype.push=$ot,$f.prototype.has=Qot;function ms(_){var b=this.__data__=new su(_);this.size=b.size}function tst(){this.__data__=new su,this.size=0}function est(_){var b=this.__data__,C=b.delete(_);return this.size=b.size,C}function rst(_){return this.__data__.get(_)}function ist(_){return this.__data__.has(_)}function nst(_,b){var C=this.__data__;if(C instanceof su){var O=C.__data__;if(!Km||O.length<t-1)return O.push([_,b]),this.size=++C.size,this;C=this.__data__=new lu(O)}return C.set(_,b),this.size=C.size,this}ms.prototype.clear=tst,ms.prototype.delete=est,ms.prototype.get=rst,ms.prototype.has=ist,ms.prototype.set=nst;function DB(_,b){var C=We(_),O=!C&&ip(_),U=!C&&!O&&_c(_),j=!C&&!O&&!U&&pd(_),tt=C||O||U||j,st=tt?EC(_.length,dot):[],ft=st.length;for(var kt in _)if((b||Ar.call(_,kt))&&!(tt&&(kt=="length"||U&&(kt=="offset"||kt=="parent")||j&&(kt=="buffer"||kt=="byteLength"||kt=="byteOffset")||fu(kt,ft))))st.push(kt);return st}function IB(_){var b=_.length;return b?_[WC(0,b-1)]:r}function ast(_,b){return ex(la(_),Qf(b,0,_.length))}function ost(_){return ex(la(_))}function OC(_,b,C){if(C!==r&&!ys(_[b],C)||C===r&&!(b in _))sl(_,b,C)}function Qm(_,b,C){var O=_[b];if(!(Ar.call(_,b)&&ys(O,C))||C===r&&!(b in _))sl(_,b,C)}function G_(_,b){var C=_.length;while(C--)if(ys(_[C][0],b))return C;return-1}function sst(_,b,C,O){return vc(_,function(U,j,tt){b(O,U,C(U),tt)}),O}function PB(_,b){return _&&ul(b,Zi(b),_)}function lst(_,b){return _&&ul(b,ca(b),_)}function sl(_,b,C){if(b=="__proto__"&&N_)N_(_,b,{configurable:!0,enumerable:!0,value:C,writable:!0});else _[b]=C}function kC(_,b){var C=-1,O=b.length,U=_t(O),j=_==null;while(++C<O)U[C]=j?r:m2(_,b[C]);return U}function Qf(_,b,C){if(_===_){if(C!==r)_=_<=C?_:C;if(b!==r)_=_>=b?_:b}return _}function To(_,b,C,O,U,j){var tt,st=b&c,ft=b&f,kt=b&p;if(C)tt=U?C(_,O,U,j):C(_);if(tt!==r)return tt;if(!li(_))return _;var Nt=We(_);if(Nt){if(tt=qst(_),!st)return la(_,tt)}else{var Wt=Sn(_),se=Wt==Vt||Wt==N;if(_c(_))return rU(_,st);if(Wt==X||Wt==mt||se&&!U){if(tt=ft||se?{}:SU(_),!st)return ft?Ust(_,lst(tt,_)):Bst(_,PB(tt,_))}else{if(!Fr[Wt])return U?_:{};tt=Jst(_,Wt,st)}}j||(j=new ms);var Se=j.get(_);if(Se)return Se;if(j.set(_,tt),qU(_))_.forEach(function(Le){tt.add(To(Le,b,C,Le,_,j))});else if(XU(_))_.forEach(function(Le,nr){tt.set(nr,To(Le,b,C,nr,_,j))});var Oe=kt?ft?e2:t2:ft?ca:Zi,je=Nt?r:Oe(_);return Ya(je||_,function(Le,nr){if(je)nr=Le,Le=_[nr];Qm(tt,nr,To(Le,b,C,nr,_,j))}),tt}function ust(_){var b=Zi(_);return function(C){return RB(C,_,b)}}function RB(_,b,C){var O=C.length;if(_==null)return!O;_=zr(_);while(O--){var U=C[O],j=b[U],tt=_[U];if(tt===r&&!(U in _)||!j(tt))return!1}return!0}function OB(_,b,C){if(typeof _!="function")throw new bo(n);return og(function(){_.apply(r,C)},b)}function tg(_,b,C,O){var U=-1,j=A_,tt=!0,st=_.length,ft=[],kt=b.length;if(!st)return ft;if(C)b=ei(b,Za(C));if(O)j=SC,tt=!1;else if(b.length>=t)j=jm,tt=!1,b=new $f(b);t:while(++U<st){var Nt=_[U],Wt=C==null?Nt:C(Nt);if(Nt=O||Nt!==0?Nt:0,tt&&Wt===Wt){var se=kt;while(se--)if(b[se]===Wt)continue t;ft.push(Nt)}else if(!j(b,Wt,O))ft.push(Nt)}return ft}var vc=sU(ll),kB=sU(zC,!0);function cst(_,b){var C=!0;return vc(_,function(O,U,j){return C=!!b(O,U,j),C}),C}function H_(_,b,C){var O=-1,U=_.length;while(++O<U){var j=_[O],tt=b(j);if(tt!=null&&(st===r?tt===tt&&!Xa(tt):C(tt,st)))var st=tt,ft=j}return ft}function fst(_,b,C,O){var U=_.length;if(C=Ye(C),C<0)C=-C>U?0:U+C;if(O=O===r||O>U?U:Ye(O),O<0)O+=U;O=C>O?0:$U(O);while(C<O)_[C++]=b;return _}function NB(_,b){var C=[];return vc(_,function(O,U,j){if(b(O,U,j))C.push(O)}),C}function rn(_,b,C,O,U){var j=-1,tt=_.length;C||(C=Qst),U||(U=[]);while(++j<tt){var st=_[j];if(b>0&&C(st))if(b>1)rn(st,b-1,C,O,U);else fc(U,st);else if(!O)U[U.length]=st}return U}var NC=lU(),zB=lU(!0);function ll(_,b){return _&&NC(_,b,Zi)}function zC(_,b){return _&&zB(_,b,Zi)}function W_(_,b){return cc(b,function(C){return pu(_[C])})}function tp(_,b){b=gc(b,_);var C=0,O=b.length;while(_!=null&&C<O)_=_[gs(b[C++])];return C&&C==O?_:r}function BB(_,b,C){var O=b(_);return We(_)?O:fc(O,C(_))}function Vn(_){if(_==null)return _===r?Kt:q;return qf&&qf in zr(_)?jst(_):olt(_)}function BC(_,b){return _>b}function pst(_,b){return _!=null&&Ar.call(_,b)}function hst(_,b){return _!=null&&b in zr(_)}function dst(_,b,C){return _>=xn(b,C)&&_<Ui(b,C)}function UC(_,b,C){var O=C?SC:A_,U=_[0].length,j=_.length,tt=j,st=_t(j),ft=1/0,kt=[];while(tt--){var Nt=_[tt];if(tt&&b)Nt=ei(Nt,Za(b));ft=xn(Nt.length,ft),st[tt]=!C&&(b||U>=120&&Nt.length>=120)?new $f(tt&&Nt):r}Nt=_[0];var Wt=-1,se=st[0];t:while(++Wt<U&&kt.length<ft){var Se=Nt[Wt],Oe=b?b(Se):Se;if(Se=C||Se!==0?Se:0,!(se?jm(se,Oe):O(kt,Oe,C))){tt=j;while(--tt){var je=st[tt];if(!(je?jm(je,Oe):O(_[tt],Oe,C)))continue t}if(se)se.push(Oe);kt.push(Se)}}return kt}function vst(_,b,C,O){return ll(_,function(U,j,tt){b(O,C(U),j,tt)}),O}function eg(_,b,C){b=gc(b,_),_=AU(_,b);var O=_==null?_:_[gs(Co(b))];return O==null?r:Wa(O,_,C)}function UB(_){return vi(_)&&Vn(_)==mt}function mst(_){return vi(_)&&Vn(_)==Ge}function gst(_){return vi(_)&&Vn(_)==Zt}function rg(_,b,C,O,U){if(_===b)return!0;if(_==null||b==null||!vi(_)&&!vi(b))return _!==_&&b!==b;return yst(_,b,C,O,rg,U)}function yst(_,b,C,O,U,j){var tt=We(_),st=We(b),ft=tt?Tt:Sn(_),kt=st?Tt:Sn(b);ft=ft==mt?X:ft,kt=kt==mt?X:kt;var Nt=ft==X,Wt=kt==X,se=ft==kt;if(se&&_c(_)){if(!_c(b))return!1;tt=!0,Nt=!1}if(se&&!Nt)return j||(j=new ms),tt||pd(_)?yU(_,b,C,O,U,j):Yst(_,b,ft,C,O,U,j);if(!(C&h)){var Se=Nt&&Ar.call(_,"__wrapped__"),Oe=Wt&&Ar.call(b,"__wrapped__");if(Se||Oe){var je=Se?_.value():_,Le=Oe?b.value():b;return j||(j=new ms),U(je,Le,C,O,j)}}if(!se)return!1;return j||(j=new ms),Zst(_,b,C,O,U,j)}function _st(_){return vi(_)&&Sn(_)==vt}function VC(_,b,C,O){var U=C.length,j=U,tt=!O;if(_==null)return!j;_=zr(_);while(U--){var st=C[U];if(tt&&st[2]?st[1]!==_[st[0]]:!(st[0]in _))return!1}while(++U<j){st=C[U];var ft=st[0],kt=_[ft],Nt=st[1];if(tt&&st[2]){if(kt===r&&!(ft in _))return!1}else{var Wt=new ms;if(O)var se=O(kt,Nt,ft,_,b,Wt);if(!(se===r?rg(Nt,kt,h|v,O,Wt):se))return!1}}return!0}function VB(_){if(!li(_)||elt(_))return!1;var b=pu(_)?_ot:uat;return b.test(rp(_))}function xst(_){return vi(_)&&Vn(_)==Ct}function Sst(_){return vi(_)&&Sn(_)==pt}function bst(_){return vi(_)&&sx(_.length)&&!!qr[Vn(_)]}function FB(_){if(typeof _=="function")return _;if(_==null)return fa;if(typeof _=="object")return We(_)?WB(_[0],_[1]):HB(_);return cV(_)}function FC(_){if(!ag(_))return Aot(_);var b=[];for(var C in zr(_))if(Ar.call(_,C)&&C!="constructor")b.push(C);return b}function wst(_){if(!li(_))return alt(_);var b=ag(_),C=[];for(var O in _)if(!(O=="constructor"&&(b||!Ar.call(_,O))))C.push(O);return C}function GC(_,b){return _<b}function GB(_,b){var C=-1,O=ua(_)?_t(_.length):[];return vc(_,function(U,j,tt){O[++C]=b(U,j,tt)}),O}function HB(_){var b=i2(_);if(b.length==1&&b[0][2])return wU(b[0][0],b[0][1]);return function(C){return C===_||VC(C,_,b)}}function WB(_,b){if(a2(_)&&bU(b))return wU(gs(_),b);return function(C){var O=m2(C,_);return O===r&&O===b?g2(C,_):rg(b,O,h|v)}}function Y_(_,b,C,O,U){if(_===b)return;NC(b,function(j,tt){if(U||(U=new ms),li(j))Tst(_,b,tt,C,Y_,O,U);else{var st=O?O(s2(_,tt),j,tt+"",_,b,U):r;if(st===r)st=j;OC(_,tt,st)}},ca)}function Tst(_,b,C,O,U,j,tt){var st=s2(_,C),ft=s2(b,C),kt=tt.get(ft);if(kt){OC(_,C,kt);return}var Nt=j?j(st,ft,C+"",_,b,tt):r,Wt=Nt===r;if(Wt){var se=We(ft),Se=!se&&_c(ft),Oe=!se&&!Se&&pd(ft);if(Nt=ft,se||Se||Oe)if(We(st))Nt=st;else if(bi(st))Nt=la(st);else if(Se)Wt=!1,Nt=rU(ft,!0);else if(Oe)Wt=!1,Nt=iU(ft,!0);else Nt=[];else if(sg(ft)||ip(ft)){if(Nt=st,ip(st))Nt=QU(st);else if(!li(st)||pu(st))Nt=SU(ft)}else Wt=!1}if(Wt)tt.set(ft,Nt),U(Nt,ft,O,j,tt),tt.delete(ft);OC(_,C,Nt)}function YB(_,b){var C=_.length;if(!C)return;return b+=b<0?C:0,fu(b,C)?_[b]:r}function ZB(_,b,C){if(b.length)b=ei(b,function(j){if(We(j))return function(tt){return tp(tt,j.length===1?j[0]:j)};return j});else b=[fa];var O=-1;b=ei(b,Za(De()));var U=GB(_,function(j,tt,st){var ft=ei(b,function(kt){return kt(j)});return{criteria:ft,index:++O,value:j}});return Jat(U,function(j,tt){return zst(j,tt,C)})}function Ast(_,b){return jB(_,b,function(C,O){return g2(_,O)})}function jB(_,b,C){var O=-1,U=b.length,j={};while(++O<U){var tt=b[O],st=tp(_,tt);if(C(st,tt))ig(j,gc(tt,_),st)}return j}function Cst(_){return function(b){return tp(b,_)}}function HC(_,b,C,O){var U=O?qat:rd,j=-1,tt=b.length,st=_;if(_===b)b=la(b);if(C)st=ei(_,Za(C));while(++j<tt){var ft=0,kt=b[j],Nt=C?C(kt):kt;while((ft=U(st,Nt,ft,O))>-1){if(st!==_)k_.call(st,ft,1);k_.call(_,ft,1)}}return _}function XB(_,b){var C=_?b.length:0,O=C-1;while(C--){var U=b[C];if(C==O||U!==j){var j=U;if(fu(U))k_.call(_,U,1);else jC(_,U)}}return _}function WC(_,b){return _+B_(MB()*(b-_+1))}function Est(_,b,C,O){var U=-1,j=Ui(z_((b-_)/(C||1)),0),tt=_t(j);while(j--)tt[O?j:++U]=_,_+=C;return tt}function YC(_,b){var C="";if(!_||b<1||b>H)return C;do{if(b%2)C+=_;if(b=B_(b/2),b)_+=_}while(b);return C}function qe(_,b){return l2(TU(_,b,fa),_+"")}function Mst(_){return IB(hd(_))}function Lst(_,b){var C=hd(_);return ex(C,Qf(b,0,C.length))}function ig(_,b,C,O){if(!li(_))return _;b=gc(b,_);var U=-1,j=b.length,tt=j-1,st=_;while(st!=null&&++U<j){var ft=gs(b[U]),kt=C;if(ft==="__proto__"||ft==="constructor"||ft==="prototype")return _;if(U!=tt){var Nt=st[ft];if(kt=O?O(Nt,ft,st):r,kt===r)kt=li(Nt)?Nt:fu(b[U+1])?[]:{}}Qm(st,ft,kt),st=st[ft]}return _}var KB=!U_?fa:function(_,b){return U_.set(_,b),_},Dst=!N_?fa:function(_,b){return N_(_,"toString",{configurable:!0,enumerable:!1,value:_2(b),writable:!0})};function Ist(_){return ex(hd(_))}function Ao(_,b,C){var O=-1,U=_.length;if(b<0)b=-b>U?0:U+b;if(C=C>U?U:C,C<0)C+=U;U=b>C?0:C-b>>>0,b>>>=0;var j=_t(U);while(++O<U)j[O]=_[O+b];return j}function Pst(_,b){var C;return vc(_,function(O,U,j){return C=b(O,U,j),!C}),!!C}function Z_(_,b,C){var O=0,U=_==null?O:_.length;if(typeof b=="number"&&b===b&&U<=ot){while(O<U){var j=O+U>>>1,tt=_[j];if(tt!==null&&!Xa(tt)&&(C?tt<=b:tt<b))O=j+1;else U=j}return U}return ZC(_,b,fa,C)}function ZC(_,b,C,O){var U=0,j=_==null?0:_.length;if(j===0)return 0;b=C(b);var tt=b!==b,st=b===null,ft=Xa(b),kt=b===r;while(U<j){var Nt=B_((U+j)/2),Wt=C(_[Nt]),se=Wt!==r,Se=Wt===null,Oe=Wt===Wt,je=Xa(Wt);if(tt)var Le=O||Oe;else if(kt)Le=Oe&&(O||se);else if(st)Le=Oe&&se&&(O||!Se);else if(ft)Le=Oe&&se&&!Se&&(O||!je);else if(Se||je)Le=!1;else Le=O?Wt<=b:Wt<b;if(Le)U=Nt+1;else j=Nt}return xn(j,rt)}function qB(_,b){var C=-1,O=_.length,U=0,j=[];while(++C<O){var tt=_[C],st=b?b(tt):tt;if(!C||!ys(st,ft)){var ft=st;j[U++]=tt===0?0:tt}}return j}function JB(_){if(typeof _=="number")return _;if(Xa(_))return F;return+_}function ja(_){if(typeof _=="string")return _;if(We(_))return ei(_,ja)+"";if(Xa(_))return LB?LB.call(_):"";var b=_+"";return b=="0"&&1/_==-V?"-0":b}function mc(_,b,C){var O=-1,U=A_,j=_.length,tt=!0,st=[],ft=st;if(C)tt=!1,U=SC;else if(j>=t){var kt=b?null:Hst(_);if(kt)return E_(kt);tt=!1,U=jm,ft=new $f}else ft=b?[]:st;t:while(++O<j){var Nt=_[O],Wt=b?b(Nt):Nt;if(Nt=C||Nt!==0?Nt:0,tt&&Wt===Wt){var se=ft.length;while(se--)if(ft[se]===Wt)continue t;if(b)ft.push(Wt);st.push(Nt)}else if(!U(ft,Wt,C)){if(ft!==st)ft.push(Wt);st.push(Nt)}}return st}function jC(_,b){b=gc(b,_);var C=-1,O=b.length;if(!O)return!0;while(++C<O){var U=gs(b[C]);if(U==="__proto__"&&!Ar.call(_,"__proto__"))return!1;if((U==="constructor"||U==="prototype")&&C<O-1)return!1}var j=AU(_,b);return j==null||delete j[gs(Co(b))]}function $B(_,b,C,O){return ig(_,b,C(tp(_,b)),O)}function j_(_,b,C,O){var U=_.length,j=O?U:-1;while((O?j--:++j<U)&&b(_[j],j,_));return C?Ao(_,O?0:j,O?j+1:U):Ao(_,O?j+1:0,O?U:j)}function QB(_,b){var C=_;if(C instanceof sr)C=C.value();return bC(b,function(O,U){return U.func.apply(U.thisArg,fc([O],U.args))},C)}function XC(_,b,C){var O=_.length;if(O<2)return O?mc(_[0]):[];var U=-1,j=_t(O);while(++U<O){var tt=_[U],st=-1;while(++st<O)if(st!=U)j[U]=tg(j[U]||tt,_[st],b,C)}return mc(rn(j,1),b,C)}function tU(_,b,C){var O=-1,U=_.length,j=b.length,tt={};while(++O<U){var st=O<j?b[O]:r;C(tt,_[O],st)}return tt}function KC(_){return bi(_)?_:[]}function qC(_){return typeof _=="function"?_:fa}function gc(_,b){if(We(_))return _;return a2(_,b)?[_]:LU(Cr(_))}var Rst=qe;function yc(_,b,C){var O=_.length;return C=C===r?O:C,!b&&C>=O?_:Ao(_,b,C)}var eU=xot||function(_){return Yi.clearTimeout(_)};function rU(_,b){if(b)return _.slice();var C=_.length,O=wB?wB(C):new _.constructor(C);return _.copy(O),O}function JC(_){var b=new _.constructor(_.byteLength);return new R_(b).set(new R_(_)),b}function Ost(_,b){var C=b?JC(_.buffer):_.buffer;return new _.constructor(C,_.byteOffset,_.byteLength)}function kst(_){var b=new _.constructor(_.source,Uz.exec(_));return b.lastIndex=_.lastIndex,b}function Nst(_){return $m?zr($m.call(_)):{}}function iU(_,b){var C=b?JC(_.buffer):_.buffer;return new _.constructor(C,_.byteOffset,_.length)}function nU(_,b){if(_!==b){var C=_!==r,O=_===null,U=_===_,j=Xa(_),tt=b!==r,st=b===null,ft=b===b,kt=Xa(b);if(!st&&!kt&&!j&&_>b||j&&tt&&ft&&!st&&!kt||O&&tt&&ft||!C&&ft||!U)return 1;if(!O&&!j&&!kt&&_<b||kt&&C&&U&&!O&&!j||st&&C&&U||!tt&&U||!ft)return-1}return 0}function zst(_,b,C){var O=-1,U=_.criteria,j=b.criteria,tt=U.length,st=C.length;while(++O<tt){var ft=nU(U[O],j[O]);if(ft){if(O>=st)return ft;var kt=C[O];return ft*(kt=="desc"?-1:1)}}return _.index-b.index}function aU(_,b,C,O){var U=-1,j=_.length,tt=C.length,st=-1,ft=b.length,kt=Ui(j-tt,0),Nt=_t(ft+kt),Wt=!O;while(++st<ft)Nt[st]=b[st];while(++U<tt)if(Wt||U<j)Nt[C[U]]=_[U];while(kt--)Nt[st++]=_[U++];return Nt}function oU(_,b,C,O){var U=-1,j=_.length,tt=-1,st=C.length,ft=-1,kt=b.length,Nt=Ui(j-st,0),Wt=_t(Nt+kt),se=!O;while(++U<Nt)Wt[U]=_[U];var Se=U;while(++ft<kt)Wt[Se+ft]=b[ft];while(++tt<st)if(se||U<j)Wt[Se+C[tt]]=_[U++];return Wt}function la(_,b){var C=-1,O=_.length;b||(b=_t(O));while(++C<O)b[C]=_[C];return b}function ul(_,b,C,O){var U=!C;C||(C={});var j=-1,tt=b.length;while(++j<tt){var st=b[j],ft=O?O(C[st],_[st],st,C,_):r;if(ft===r)ft=_[st];if(U)sl(C,st,ft);else Qm(C,st,ft)}return C}function Bst(_,b){return ul(_,n2(_),b)}function Ust(_,b){return ul(_,_U(_),b)}function X_(_,b){return function(C,O){var U=We(C)?Wat:sst,j=b?b():{};return U(C,_,De(O,2),j)}}function ud(_){return qe(function(b,C){var O=-1,U=C.length,j=U>1?C[U-1]:r,tt=U>2?C[2]:r;if(j=_.length>3&&typeof j=="function"?(U--,j):r,tt&&Fn(C[0],C[1],tt))j=U<3?r:j,U=1;b=zr(b);while(++O<U){var st=C[O];if(st)_(b,st,O,j)}return b})}function sU(_,b){return function(C,O){if(C==null)return C;if(!ua(C))return _(C,O);var U=C.length,j=b?U:-1,tt=zr(C);while(b?j--:++j<U)if(O(tt[j],j,tt)===!1)break;return C}}function lU(_){return function(b,C,O){var U=-1,j=zr(b),tt=O(b),st=tt.length;while(st--){var ft=tt[_?st:++U];if(C(j[ft],ft,j)===!1)break}return b}}function Vst(_,b,C){var O=b&g,U=ng(_);function j(){var tt=this&&this!==Yi&&this instanceof j?U:_;return tt.apply(O?C:this,arguments)}return j}function uU(_){return function(b){b=Cr(b);var C=id(b)?vs(b):r,O=C?C[0]:b.charAt(0),U=C?yc(C,1).join(""):b.slice(1);return O[_]()+U}}function cd(_){return function(b){return bC(lV(sV(b).replace(Dat,"")),_,"")}}function ng(_){return function(){var b=arguments;switch(b.length){case 0:return new _;case 1:return new _(b[0]);case 2:return new _(b[0],b[1]);case 3:return new _(b[0],b[1],b[2]);case 4:return new _(b[0],b[1],b[2],b[3]);case 5:return new _(b[0],b[1],b[2],b[3],b[4]);case 6:return new _(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new _(b[0],b[1],b[2],b[3],b[4],b[5],b[6])}var C=ld(_.prototype),O=_.apply(C,b);return li(O)?O:C}}function Fst(_,b,C){var O=ng(_);function U(){var j=arguments.length,tt=_t(j),st=j,ft=fd(U);while(st--)tt[st]=arguments[st];var kt=j<3&&tt[0]!==ft&&tt[j-1]!==ft?[]:pc(tt,ft);if(j-=kt.length,j<C)return dU(_,b,K_,U.placeholder,r,tt,kt,r,r,C-j);var Nt=this&&this!==Yi&&this instanceof U?O:_;return Wa(Nt,this,tt)}return U}function cU(_){return function(b,C,O){var U=zr(b);if(!ua(b)){var j=De(C,3);b=Zi(b),C=function(st){return j(U[st],st,U)}}var tt=_(b,C,O);return tt>-1?U[j?b[tt]:tt]:r}}function fU(_){return cu(function(b){var C=b.length,O=C,U=wo.prototype.thru;if(_)b.reverse();while(O--){var j=b[O];if(typeof j!="function")throw new bo(n);if(U&&!tt&&Q_(j)=="wrapper")var tt=new wo([],!0)}O=tt?O:C;while(++O<C){j=b[O];var st=Q_(j),ft=st=="wrapper"?r2(j):r;if(ft&&o2(ft[0])&&ft[1]==(T|d|S|A)&&!ft[4].length&&ft[9]==1)tt=tt[Q_(ft[0])].apply(tt,ft[3]);else tt=j.length==1&&o2(j)?tt[st]():tt.thru(j)}return function(){var kt=arguments,Nt=kt[0];if(tt&&kt.length==1&&We(Nt))return tt.plant(Nt).value();var Wt=0,se=C?b[Wt].apply(this,kt):Nt;while(++Wt<C)se=b[Wt].call(this,se);return se}})}function K_(_,b,C,O,U,j,tt,st,ft,kt){var Nt=b&T,Wt=b&g,se=b&y,Se=b&(d|x),Oe=b&M,je=se?r:ng(_);function Le(){var nr=arguments.length,cr=_t(nr),Ka=nr;while(Ka--)cr[Ka]=arguments[Ka];if(Se)var Gn=fd(Le),qa=Qat(cr,Gn);if(O)cr=aU(cr,O,U,Se);if(j)cr=oU(cr,j,tt,Se);if(nr-=qa,Se&&nr<kt){var wi=pc(cr,Gn);return dU(_,b,K_,Le.placeholder,C,cr,wi,st,ft,kt-nr)}var _s=Wt?C:this,du=se?_s[_]:_;if(nr=cr.length,st)cr=slt(cr,st);else if(Oe&&nr>1)cr.reverse();if(Nt&&ft<nr)cr.length=ft;if(this&&this!==Yi&&this instanceof Le)du=je||ng(du);return du.apply(_s,cr)}return Le}function pU(_,b){return function(C,O){return vst(C,_,b(O),{})}}function q_(_,b){return function(C,O){var U;if(C===r&&O===r)return b;if(C!==r)U=C;if(O!==r){if(U===r)return O;if(typeof C=="string"||typeof O=="string")C=ja(C),O=ja(O);else C=JB(C),O=JB(O);U=_(C,O)}return U}}function $C(_){return cu(function(b){return b=ei(b,Za(De())),qe(function(C){var O=this;return _(b,function(U){return Wa(U,O,C)})})})}function J_(_,b){b=b===r?" ":ja(b);var C=b.length;if(C<2)return C?YC(b,_):b;var O=YC(b,z_(_/nd(b)));return id(b)?yc(vs(O),0,_).join(""):O.slice(0,_)}function Gst(_,b,C,O){var U=b&g,j=ng(_);function tt(){var st=-1,ft=arguments.length,kt=-1,Nt=O.length,Wt=_t(Nt+ft),se=this&&this!==Yi&&this instanceof tt?j:_;while(++kt<Nt)Wt[kt]=O[kt];while(ft--)Wt[kt++]=arguments[++st];return Wa(se,U?C:this,Wt)}return tt}function hU(_){return function(b,C,O){if(O&&typeof O!="number"&&Fn(b,C,O))C=O=r;if(b=hu(b),C===r)C=b,b=0;else C=hu(C);return O=O===r?b<C?1:-1:hu(O),Est(b,C,O,_)}}function $_(_){return function(b,C){if(!(typeof b=="string"&&typeof C=="string"))b=Eo(b),C=Eo(C);return _(b,C)}}function dU(_,b,C,O,U,j,tt,st,ft,kt){var Nt=b&d,Wt=Nt?tt:r,se=Nt?r:tt,Se=Nt?j:r,Oe=Nt?r:j;if(b|=Nt?S:w,b&=~(Nt?w:S),!(b&m))b&=~(g|y);var je=[_,b,U,Se,Wt,Oe,se,st,ft,kt],Le=C.apply(r,je);if(o2(_))CU(Le,je);return Le.placeholder=O,EU(Le,_,b)}function QC(_){var b=Bi[_];return function(C,O){if(C=Eo(C),O=O==null?0:xn(Ye(O),292),O&&EB(C)){var U=(Cr(C)+"e").split("e"),j=b(U[0]+"e"+(+U[1]+O));return U=(Cr(j)+"e").split("e"),+(U[0]+"e"+(+U[1]-O))}return b(C)}}var Hst=!(od&&1/E_(new od([,-0]))[1]==V)?b2:function(_){return new od(_)};function vU(_){return function(b){var C=Sn(b);if(C==vt)return LC(b);if(C==pt)return oot(b);return $at(b,_(b))}}function uu(_,b,C,O,U,j,tt,st){var ft=b&y;if(!ft&&typeof _!="function")throw new bo(n);var kt=O?O.length:0;if(!kt)b&=~(S|w),O=U=r;if(tt=tt===r?tt:Ui(Ye(tt),0),st=st===r?st:Ye(st),kt-=U?U.length:0,b&w){var Nt=O,Wt=U;O=U=r}var se=ft?r:r2(_),Se=[_,b,C,O,U,Nt,Wt,j,tt,st];if(se)nlt(Se,se);if(_=Se[0],b=Se[1],C=Se[2],O=Se[3],U=Se[4],st=Se[9]=Se[9]===r?ft?0:_.length:Ui(Se[9]-kt,0),!st&&b&(d|x))b&=~(d|x);if(!b||b==g)var Oe=Vst(_,b,C);else if(b==d||b==x)Oe=Fst(_,b,st);else if((b==S||b==(g|S))&&!U.length)Oe=Gst(_,b,C,O);else Oe=K_.apply(r,Se);var je=se?KB:CU;return EU(je(Oe,Se),_,b)}function mU(_,b,C,O){if(_===r||ys(_,ad[C])&&!Ar.call(O,C))return b;return _}function gU(_,b,C,O,U,j){if(li(_)&&li(b))j.set(b,_),Y_(_,b,r,gU,j),j.delete(b);return _}function Wst(_){return sg(_)?r:_}function yU(_,b,C,O,U,j){var tt=C&h,st=_.length,ft=b.length;if(st!=ft&&!(tt&&ft>st))return!1;var kt=j.get(_),Nt=j.get(b);if(kt&&Nt)return kt==b&&Nt==_;var Wt=-1,se=!0,Se=C&v?new $f:r;j.set(_,b),j.set(b,_);while(++Wt<st){var Oe=_[Wt],je=b[Wt];if(O)var Le=tt?O(je,Oe,Wt,b,_,j):O(Oe,je,Wt,_,b,j);if(Le!==r){if(Le)continue;se=!1;break}if(Se){if(!wC(b,function(nr,cr){if(!jm(Se,cr)&&(Oe===nr||U(Oe,nr,C,O,j)))return Se.push(cr)})){se=!1;break}}else if(!(Oe===je||U(Oe,je,C,O,j))){se=!1;break}}return j.delete(_),j.delete(b),se}function Yst(_,b,C,O,U,j,tt){switch(C){case si:if(_.byteLength!=b.byteLength||_.byteOffset!=b.byteOffset)return!1;_=_.buffer,b=b.buffer;case Ge:if(_.byteLength!=b.byteLength||!j(new R_(_),new R_(b)))return!1;return!0;case qt:case Zt:case ut:return ys(+_,+b);case oe:return _.name==b.name&&_.message==b.message;case Ct:case Ht:return _==b+"";case vt:var st=LC;case pt:var ft=O&h;if(st||(st=E_),_.size!=b.size&&!ft)return!1;var kt=tt.get(_);if(kt)return kt==b;O|=v,tt.set(_,b);var Nt=yU(st(_),st(b),O,U,j,tt);return tt.delete(_),Nt;case ie:if($m)return $m.call(_)==$m.call(b)}return!1}function Zst(_,b,C,O,U,j){var tt=C&h,st=t2(_),ft=st.length,kt=t2(b),Nt=kt.length;if(ft!=Nt&&!tt)return!1;var Wt=ft;while(Wt--){var se=st[Wt];if(!(tt?se in b:Ar.call(b,se)))return!1}var Se=j.get(_),Oe=j.get(b);if(Se&&Oe)return Se==b&&Oe==_;var je=!0;j.set(_,b),j.set(b,_);var Le=tt;while(++Wt<ft){se=st[Wt];var nr=_[se],cr=b[se];if(O)var Ka=tt?O(cr,nr,se,b,_,j):O(nr,cr,se,_,b,j);if(!(Ka===r?nr===cr||U(nr,cr,C,O,j):Ka)){je=!1;break}Le||(Le=se=="constructor")}if(je&&!Le){var Gn=_.constructor,qa=b.constructor;if(Gn!=qa&&(("constructor"in _)&&("constructor"in b))&&!(typeof Gn=="function"&&Gn instanceof Gn&&typeof qa=="function"&&qa instanceof qa))je=!1}return j.delete(_),j.delete(b),je}function cu(_){return l2(TU(_,r,RU),_+"")}function t2(_){return BB(_,Zi,n2)}function e2(_){return BB(_,ca,_U)}var r2=!U_?b2:function(_){return U_.get(_)};function Q_(_){var b=_.name+"",C=sd[b],O=Ar.call(sd,b)?C.length:0;while(O--){var U=C[O],j=U.func;if(j==null||j==_)return U.name}return b}function fd(_){var b=Ar.call(Y,"placeholder")?Y:_;return b.placeholder}function De(){var _=Y.iteratee||x2;return _=_===x2?FB:_,arguments.length?_(arguments[0],arguments[1]):_}function tx(_,b){var C=_.__data__;return tlt(b)?C[typeof b=="string"?"string":"hash"]:C.map}function i2(_){var b=Zi(_),C=b.length;while(C--){var O=b[C],U=_[O];b[C]=[O,U,bU(U)]}return b}function ep(_,b){var C=iot(_,b);return VB(C)?C:r}function jst(_){var b=Ar.call(_,qf),C=_[qf];try{_[qf]=r;var O=!0}catch(j){}var U=I_.call(_);if(O)if(b)_[qf]=C;else delete _[qf];return U}var n2=!IC?w2:function(_){if(_==null)return[];return _=zr(_),cc(IC(_),function(b){return AB.call(_,b)})},_U=!IC?w2:function(_){var b=[];while(_)fc(b,n2(_)),_=O_(_);return b},Sn=Vn;if(PC&&Sn(new PC(new ArrayBuffer(1)))!=si||Km&&Sn(new Km)!=vt||RC&&Sn(RC.resolve())!=lt||od&&Sn(new od)!=pt||qm&&Sn(new qm)!=_e)Sn=function(_){var b=Vn(_),C=b==X?_.constructor:r,O=C?rp(C):"";if(O)switch(O){case Lot:return si;case Dot:return vt;case Iot:return lt;case Pot:return pt;case Rot:return _e}return b};function Xst(_,b,C){var O=-1,U=C.length;while(++O<U){var j=C[O],tt=j.size;switch(j.type){case"drop":_+=tt;break;case"dropRight":b-=tt;break;case"take":b=xn(b,_+tt);break;case"takeRight":_=Ui(_,b-tt);break}}return{start:_,end:b}}function Kst(_){var b=_.match(rat);return b?b[1].split(iat):[]}function xU(_,b,C){b=gc(b,_);var O=-1,U=b.length,j=!1;while(++O<U){var tt=gs(b[O]);if(!(j=_!=null&&C(_,tt)))break;_=_[tt]}if(j||++O!=U)return j;return U=_==null?0:_.length,!!U&&sx(U)&&fu(tt,U)&&(We(_)||ip(_))}function qst(_){var b=_.length,C=new _.constructor(b);if(b&&typeof _[0]=="string"&&Ar.call(_,"index"))C.index=_.index,C.input=_.input;return C}function SU(_){return typeof _.constructor=="function"&&!ag(_)?ld(O_(_)):{}}function Jst(_,b,C){var O=_.constructor;switch(b){case Ge:return JC(_);case qt:case Zt:return new O(+_);case si:return Ost(_,C);case Ga:case Wi:case Ha:case Ir:case xo:case ds:case en:case ol:case ou:return iU(_,C);case vt:return new O;case ut:case Ht:return new O(_);case Ct:return kst(_);case pt:return new O;case ie:return Nst(_)}}function $st(_,b){var C=b.length;if(!C)return _;var O=C-1;return b[O]=(C>1?"& ":"")+b[O],b=b.join(C>2?", ":" "),_.replace(eat,`{
13
+ /* [wrapped with `+b+`] */
14
+ `)}function Qst(_){return We(_)||ip(_)||!!(CB&&_&&_[CB])}function fu(_,b){var C=typeof _;return b=b==null?H:b,!!b&&(C=="number"||C!="symbol"&&fat.test(_))&&(_>-1&&_%1==0&&_<b)}function Fn(_,b,C){if(!li(C))return!1;var O=typeof b;if(O=="number"?ua(C)&&fu(b,C.length):O=="string"&&(b in C))return ys(C[b],_);return!1}function a2(_,b){if(We(_))return!1;var C=typeof _;if(C=="number"||C=="symbol"||C=="boolean"||_==null||Xa(_))return!0;return Jnt.test(_)||!qnt.test(_)||b!=null&&_ in zr(b)}function tlt(_){var b=typeof _;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?_!=="__proto__":_===null}function o2(_){var b=Q_(_),C=Y[b];if(typeof C!="function"||!(b in sr.prototype))return!1;if(_===C)return!0;var O=r2(C);return!!O&&_===O[0]}function elt(_){return!!bB&&bB in _}var rlt=L_?pu:T2;function ag(_){var b=_&&_.constructor,C=typeof b=="function"&&b.prototype||ad;return _===C}function bU(_){return _===_&&!li(_)}function wU(_,b){return function(C){if(C==null)return!1;return C[_]===b&&(b!==r||(_ in zr(C)))}}function ilt(_){var b=ax(_,function(O){if(C.size===l)C.clear();return O}),C=b.cache;return b}function nlt(_,b){var C=_[1],O=b[1],U=C|O,j=U<(g|y|T),tt=O==T&&C==d||O==T&&C==A&&_[7].length<=b[8]||O==(T|A)&&b[7].length<=b[8]&&C==d;if(!(j||tt))return _;if(O&g)_[2]=b[2],U|=C&g?0:m;var st=b[3];if(st){var ft=_[3];_[3]=ft?aU(ft,st,b[4]):st,_[4]=ft?pc(_[3],u):b[4]}if(st=b[5],st)ft=_[5],_[5]=ft?oU(ft,st,b[6]):st,_[6]=ft?pc(_[5],u):b[6];if(st=b[7],st)_[7]=st;if(O&T)_[8]=_[8]==null?b[8]:xn(_[8],b[8]);if(_[9]==null)_[9]=b[9];return _[0]=b[0],_[1]=U,_}function alt(_){var b=[];if(_!=null)for(var C in zr(_))b.push(C);return b}function olt(_){return I_.call(_)}function TU(_,b,C){return b=Ui(b===r?_.length-1:b,0),function(){var O=arguments,U=-1,j=Ui(O.length-b,0),tt=_t(j);while(++U<j)tt[U]=O[b+U];U=-1;var st=_t(b+1);while(++U<b)st[U]=O[U];return st[b]=C(tt),Wa(_,this,st)}}function AU(_,b){return b.length<2?_:tp(_,Ao(b,0,-1))}function slt(_,b){var C=_.length,O=xn(b.length,C),U=la(_);while(O--){var j=b[O];_[O]=fu(j,C)?U[j]:r}return _}function s2(_,b){if(b==="constructor"&&typeof _[b]==="function")return;if(b=="__proto__")return;return _[b]}var CU=MU(KB),og=bot||function(_,b){return Yi.setTimeout(_,b)},l2=MU(Dst);function EU(_,b,C){var O=b+"";return l2(_,$st(O,llt(Kst(O),C)))}function MU(_){var b=0,C=0;return function(){var O=Cot(),U=E-(O-C);if(C=O,U>0){if(++b>=I)return arguments[0]}else b=0;return _.apply(r,arguments)}}function ex(_,b){var C=-1,O=_.length,U=O-1;b=b===r?O:b;while(++C<b){var j=WC(C,U),tt=_[j];_[j]=_[C],_[C]=tt}return _.length=b,_}var LU=ilt(function(_){var b=[];if(_.charCodeAt(0)===46)b.push("");return _.replace($nt,function(C,O,U,j){b.push(U?j.replace(aat,"$1"):O||C)}),b});function gs(_){if(typeof _=="string"||Xa(_))return _;var b=_+"";return b=="0"&&1/_==-V?"-0":b}function rp(_){if(_!=null){try{return D_.call(_)}catch(b){}try{return _+""}catch(b){}}return""}function llt(_,b){return Ya(at,function(C){var O="_."+C[0];if(b&C[1]&&!A_(_,O))_.push(O)}),_.sort()}function DU(_){if(_ instanceof sr)return _.clone();var b=new wo(_.__wrapped__,_.__chain__);return b.__actions__=la(_.__actions__),b.__index__=_.__index__,b.__values__=_.__values__,b}function ult(_,b,C){if(C?Fn(_,b,C):b===r)b=1;else b=Ui(Ye(b),0);var O=_==null?0:_.length;if(!O||b<1)return[];var U=0,j=0,tt=_t(z_(O/b));while(U<O)tt[j++]=Ao(_,U,U+=b);return tt}function clt(_){var b=-1,C=_==null?0:_.length,O=0,U=[];while(++b<C){var j=_[b];if(j)U[O++]=j}return U}function flt(){var _=arguments.length;if(!_)return[];var b=_t(_-1),C=arguments[0],O=_;while(O--)b[O-1]=arguments[O];return fc(We(C)?la(C):[C],rn(b,1))}var plt=qe(function(_,b){return bi(_)?tg(_,rn(b,1,bi,!0)):[]}),hlt=qe(function(_,b){var C=Co(b);if(bi(C))C=r;return bi(_)?tg(_,rn(b,1,bi,!0),De(C,2)):[]}),dlt=qe(function(_,b){var C=Co(b);if(bi(C))C=r;return bi(_)?tg(_,rn(b,1,bi,!0),r,C):[]});function vlt(_,b,C){var O=_==null?0:_.length;if(!O)return[];return b=C||b===r?1:Ye(b),Ao(_,b<0?0:b,O)}function mlt(_,b,C){var O=_==null?0:_.length;if(!O)return[];return b=C||b===r?1:Ye(b),b=O-b,Ao(_,0,b<0?0:b)}function glt(_,b){return _&&_.length?j_(_,De(b,3),!0,!0):[]}function ylt(_,b){return _&&_.length?j_(_,De(b,3),!0):[]}function _lt(_,b,C,O){var U=_==null?0:_.length;if(!U)return[];if(C&&typeof C!="number"&&Fn(_,b,C))C=0,O=U;return fst(_,b,C,O)}function IU(_,b,C){var O=_==null?0:_.length;if(!O)return-1;var U=C==null?0:Ye(C);if(U<0)U=Ui(O+U,0);return C_(_,De(b,3),U)}function PU(_,b,C){var O=_==null?0:_.length;if(!O)return-1;var U=O-1;if(C!==r)U=Ye(C),U=C<0?Ui(O+U,0):xn(U,O-1);return C_(_,De(b,3),U,!0)}function RU(_){var b=_==null?0:_.length;return b?rn(_,1):[]}function xlt(_){var b=_==null?0:_.length;return b?rn(_,V):[]}function Slt(_,b){var C=_==null?0:_.length;if(!C)return[];return b=b===r?1:Ye(b),rn(_,b)}function blt(_){var b=-1,C=_==null?0:_.length,O={};while(++b<C){var U=_[b];sl(O,U[0],U[1])}return O}function OU(_){return _&&_.length?_[0]:r}function wlt(_,b,C){var O=_==null?0:_.length;if(!O)return-1;var U=C==null?0:Ye(C);if(U<0)U=Ui(O+U,0);return rd(_,b,U)}function Tlt(_){var b=_==null?0:_.length;return b?Ao(_,0,-1):[]}var Alt=qe(function(_){var b=ei(_,KC);return b.length&&b[0]===_[0]?UC(b):[]}),Clt=qe(function(_){var b=Co(_),C=ei(_,KC);if(b===Co(C))b=r;else C.pop();return C.length&&C[0]===_[0]?UC(C,De(b,2)):[]}),Elt=qe(function(_){var b=Co(_),C=ei(_,KC);if(b=typeof b=="function"?b:r,b)C.pop();return C.length&&C[0]===_[0]?UC(C,r,b):[]});function Mlt(_,b){return _==null?"":Tot.call(_,b)}function Co(_){var b=_==null?0:_.length;return b?_[b-1]:r}function Llt(_,b,C){var O=_==null?0:_.length;if(!O)return-1;var U=O;if(C!==r)U=Ye(C),U=U<0?Ui(O+U,0):xn(U,O-1);return b===b?lot(_,b,U):C_(_,dB,U,!0)}function Dlt(_,b){return _&&_.length?YB(_,Ye(b)):r}var Ilt=qe(kU);function kU(_,b){return _&&_.length&&b&&b.length?HC(_,b):_}function Plt(_,b,C){return _&&_.length&&b&&b.length?HC(_,b,De(C,2)):_}function Rlt(_,b,C){return _&&_.length&&b&&b.length?HC(_,b,r,C):_}var Olt=cu(function(_,b){var C=_==null?0:_.length,O=kC(_,b);return XB(_,ei(b,function(U){return fu(U,C)?+U:U}).sort(nU)),O});function klt(_,b){var C=[];if(!(_&&_.length))return C;var O=-1,U=[],j=_.length;b=De(b,3);while(++O<j){var tt=_[O];if(b(tt,O,_))C.push(tt),U.push(O)}return XB(_,U),C}function u2(_){return _==null?_:Mot.call(_)}function Nlt(_,b,C){var O=_==null?0:_.length;if(!O)return[];if(C&&typeof C!="number"&&Fn(_,b,C))b=0,C=O;else b=b==null?0:Ye(b),C=C===r?O:Ye(C);return Ao(_,b,C)}function zlt(_,b){return Z_(_,b)}function Blt(_,b,C){return ZC(_,b,De(C,2))}function Ult(_,b){var C=_==null?0:_.length;if(C){var O=Z_(_,b);if(O<C&&ys(_[O],b))return O}return-1}function Vlt(_,b){return Z_(_,b,!0)}function Flt(_,b,C){return ZC(_,b,De(C,2),!0)}function Glt(_,b){var C=_==null?0:_.length;if(C){var O=Z_(_,b,!0)-1;if(ys(_[O],b))return O}return-1}function Hlt(_){return _&&_.length?qB(_):[]}function Wlt(_,b){return _&&_.length?qB(_,De(b,2)):[]}function Ylt(_){var b=_==null?0:_.length;return b?Ao(_,1,b):[]}function Zlt(_,b,C){if(!(_&&_.length))return[];return b=C||b===r?1:Ye(b),Ao(_,0,b<0?0:b)}function jlt(_,b,C){var O=_==null?0:_.length;if(!O)return[];return b=C||b===r?1:Ye(b),b=O-b,Ao(_,b<0?0:b,O)}function Xlt(_,b){return _&&_.length?j_(_,De(b,3),!1,!0):[]}function Klt(_,b){return _&&_.length?j_(_,De(b,3)):[]}var qlt=qe(function(_){return mc(rn(_,1,bi,!0))}),Jlt=qe(function(_){var b=Co(_);if(bi(b))b=r;return mc(rn(_,1,bi,!0),De(b,2))}),$lt=qe(function(_){var b=Co(_);return b=typeof b=="function"?b:r,mc(rn(_,1,bi,!0),r,b)});function Qlt(_){return _&&_.length?mc(_):[]}function tut(_,b){return _&&_.length?mc(_,De(b,2)):[]}function eut(_,b){return b=typeof b=="function"?b:r,_&&_.length?mc(_,r,b):[]}function c2(_){if(!(_&&_.length))return[];var b=0;return _=cc(_,function(C){if(bi(C))return b=Ui(C.length,b),!0}),EC(b,function(C){return ei(_,TC(C))})}function NU(_,b){if(!(_&&_.length))return[];var C=c2(_);if(b==null)return C;return ei(C,function(O){return Wa(b,r,O)})}var rut=qe(function(_,b){return bi(_)?tg(_,b):[]}),iut=qe(function(_){return XC(cc(_,bi))}),nut=qe(function(_){var b=Co(_);if(bi(b))b=r;return XC(cc(_,bi),De(b,2))}),aut=qe(function(_){var b=Co(_);return b=typeof b=="function"?b:r,XC(cc(_,bi),r,b)}),out=qe(c2);function sut(_,b){return tU(_||[],b||[],Qm)}function lut(_,b){return tU(_||[],b||[],ig)}var uut=qe(function(_){var b=_.length,C=b>1?_[b-1]:r;return C=typeof C=="function"?(_.pop(),C):r,NU(_,C)});function zU(_){var b=Y(_);return b.__chain__=!0,b}function cut(_,b){return b(_),_}function rx(_,b){return b(_)}var fut=cu(function(_){var b=_.length,C=b?_[0]:0,O=this.__wrapped__,U=function(j){return kC(j,_)};if(b>1||this.__actions__.length||!(O instanceof sr)||!fu(C))return this.thru(U);return O=O.slice(C,+C+(b?1:0)),O.__actions__.push({func:rx,args:[U],thisArg:r}),new wo(O,this.__chain__).thru(function(j){if(b&&!j.length)j.push(r);return j})});function put(){return zU(this)}function hut(){return new wo(this.value(),this.__chain__)}function dut(){if(this.__values__===r)this.__values__=JU(this.value());var _=this.__index__>=this.__values__.length,b=_?r:this.__values__[this.__index__++];return{done:_,value:b}}function vut(){return this}function mut(_){var b,C=this;while(C instanceof F_){var O=DU(C);if(O.__index__=0,O.__values__=r,b)U.__wrapped__=O;else b=O;var U=O;C=C.__wrapped__}return U.__wrapped__=_,b}function gut(){var _=this.__wrapped__;if(_ instanceof sr){var b=_;if(this.__actions__.length)b=new sr(this);return b=b.reverse(),b.__actions__.push({func:rx,args:[u2],thisArg:r}),new wo(b,this.__chain__)}return this.thru(u2)}function yut(){return QB(this.__wrapped__,this.__actions__)}var _ut=X_(function(_,b,C){if(Ar.call(_,C))++_[C];else sl(_,C,1)});function xut(_,b,C){var O=We(_)?pB:cst;if(C&&Fn(_,b,C))b=r;return O(_,De(b,3))}function Sut(_,b){var C=We(_)?cc:NB;return C(_,De(b,3))}var but=cU(IU),wut=cU(PU);function Tut(_,b){return rn(ix(_,b),1)}function Aut(_,b){return rn(ix(_,b),V)}function Cut(_,b,C){return C=C===r?1:Ye(C),rn(ix(_,b),C)}function BU(_,b){var C=We(_)?Ya:vc;return C(_,De(b,3))}function UU(_,b){var C=We(_)?Yat:kB;return C(_,De(b,3))}var Eut=X_(function(_,b,C){if(Ar.call(_,C))_[C].push(b);else sl(_,C,[b])});function Mut(_,b,C,O){_=ua(_)?_:hd(_),C=C&&!O?Ye(C):0;var U=_.length;if(C<0)C=Ui(U+C,0);return lx(_)?C<=U&&_.indexOf(b,C)>-1:!!U&&rd(_,b,C)>-1}var Lut=qe(function(_,b,C){var O=-1,U=typeof b=="function",j=ua(_)?_t(_.length):[];return vc(_,function(tt){j[++O]=U?Wa(b,tt,C):eg(tt,b,C)}),j}),Dut=X_(function(_,b,C){sl(_,C,b)});function ix(_,b){var C=We(_)?ei:GB;return C(_,De(b,3))}function Iut(_,b,C,O){if(_==null)return[];if(!We(b))b=b==null?[]:[b];if(C=O?r:C,!We(C))C=C==null?[]:[C];return ZB(_,b,C)}var Put=X_(function(_,b,C){_[C?0:1].push(b)},function(){return[[],[]]});function Rut(_,b,C){var O=We(_)?bC:mB,U=arguments.length<3;return O(_,De(b,4),C,U,vc)}function Out(_,b,C){var O=We(_)?Zat:mB,U=arguments.length<3;return O(_,De(b,4),C,U,kB)}function kut(_,b){var C=We(_)?cc:NB;return C(_,ox(De(b,3)))}function Nut(_){var b=We(_)?IB:Mst;return b(_)}function zut(_,b,C){if(C?Fn(_,b,C):b===r)b=1;else b=Ye(b);var O=We(_)?ast:Lst;return O(_,b)}function But(_){var b=We(_)?ost:Ist;return b(_)}function Uut(_){if(_==null)return 0;if(ua(_))return lx(_)?nd(_):_.length;var b=Sn(_);if(b==vt||b==pt)return _.size;return FC(_).length}function Vut(_,b,C){var O=We(_)?wC:Pst;if(C&&Fn(_,b,C))b=r;return O(_,De(b,3))}var Fut=qe(function(_,b){if(_==null)return[];var C=b.length;if(C>1&&Fn(_,b[0],b[1]))b=[];else if(C>2&&Fn(b[0],b[1],b[2]))b=[b[0]];return ZB(_,rn(b,1),[])}),nx=Sot||function(){return Yi.Date.now()};function Gut(_,b){if(typeof b!="function")throw new bo(n);return _=Ye(_),function(){if(--_<1)return b.apply(this,arguments)}}function VU(_,b,C){return b=C?r:b,b=_&&b==null?_.length:b,uu(_,T,r,r,r,r,b)}function FU(_,b){var C;if(typeof b!="function")throw new bo(n);return _=Ye(_),function(){if(--_>0)C=b.apply(this,arguments);if(_<=1)b=r;return C}}var f2=qe(function(_,b,C){var O=g;if(C.length){var U=pc(C,fd(f2));O|=S}return uu(_,O,b,C,U)}),GU=qe(function(_,b,C){var O=g|y;if(C.length){var U=pc(C,fd(GU));O|=S}return uu(b,O,_,C,U)});function HU(_,b,C){b=C?r:b;var O=uu(_,d,r,r,r,r,r,b);return O.placeholder=HU.placeholder,O}function WU(_,b,C){b=C?r:b;var O=uu(_,x,r,r,r,r,r,b);return O.placeholder=WU.placeholder,O}function YU(_,b,C){var O,U,j,tt,st,ft,kt=0,Nt=!1,Wt=!1,se=!0;if(typeof _!="function")throw new bo(n);if(b=Eo(b)||0,li(C))Nt=!!C.leading,Wt="maxWait"in C,j=Wt?Ui(Eo(C.maxWait)||0,b):j,se="trailing"in C?!!C.trailing:se;function Se(wi){var _s=O,du=U;return O=U=r,kt=wi,tt=_.apply(du,_s),tt}function Oe(wi){return kt=wi,st=og(nr,b),Nt?Se(wi):tt}function je(wi){var _s=wi-ft,du=wi-kt,fV=b-_s;return Wt?xn(fV,j-du):fV}function Le(wi){var _s=wi-ft,du=wi-kt;return ft===r||_s>=b||_s<0||Wt&&du>=j}function nr(){var wi=nx();if(Le(wi))return cr(wi);st=og(nr,je(wi))}function cr(wi){if(st=r,se&&O)return Se(wi);return O=U=r,tt}function Ka(){if(st!==r)eU(st);kt=0,O=ft=U=st=r}function Gn(){return st===r?tt:cr(nx())}function qa(){var wi=nx(),_s=Le(wi);if(O=arguments,U=this,ft=wi,_s){if(st===r)return Oe(ft);if(Wt)return eU(st),st=og(nr,b),Se(ft)}if(st===r)st=og(nr,b);return tt}return qa.cancel=Ka,qa.flush=Gn,qa}var Hut=qe(function(_,b){return OB(_,1,b)}),Wut=qe(function(_,b,C){return OB(_,Eo(b)||0,C)});function Yut(_){return uu(_,M)}function ax(_,b){if(typeof _!="function"||b!=null&&typeof b!="function")throw new bo(n);var C=function(){var O=arguments,U=b?b.apply(this,O):O[0],j=C.cache;if(j.has(U))return j.get(U);var tt=_.apply(this,O);return C.cache=j.set(U,tt)||j,tt};return C.cache=new(ax.Cache||lu),C}ax.Cache=lu;function ox(_){if(typeof _!="function")throw new bo(n);return function(){var b=arguments;switch(b.length){case 0:return!_.call(this);case 1:return!_.call(this,b[0]);case 2:return!_.call(this,b[0],b[1]);case 3:return!_.call(this,b[0],b[1],b[2])}return!_.apply(this,b)}}function Zut(_){return FU(2,_)}var jut=Rst(function(_,b){b=b.length==1&&We(b[0])?ei(b[0],Za(De())):ei(rn(b,1),Za(De()));var C=b.length;return qe(function(O){var U=-1,j=xn(O.length,C);while(++U<j)O[U]=b[U].call(this,O[U]);return Wa(_,this,O)})}),p2=qe(function(_,b){var C=pc(b,fd(p2));return uu(_,S,r,b,C)}),ZU=qe(function(_,b){var C=pc(b,fd(ZU));return uu(_,w,r,b,C)}),Xut=cu(function(_,b){return uu(_,A,r,r,r,b)});function Kut(_,b){if(typeof _!="function")throw new bo(n);return b=b===r?b:Ye(b),qe(_,b)}function qut(_,b){if(typeof _!="function")throw new bo(n);return b=b==null?0:Ui(Ye(b),0),qe(function(C){var O=C[b],U=yc(C,0,b);if(O)fc(U,O);return Wa(_,this,U)})}function Jut(_,b,C){var O=!0,U=!0;if(typeof _!="function")throw new bo(n);if(li(C))O="leading"in C?!!C.leading:O,U="trailing"in C?!!C.trailing:U;return YU(_,b,{leading:O,maxWait:b,trailing:U})}function $ut(_){return VU(_,1)}function Qut(_,b){return p2(qC(b),_)}function tct(){if(!arguments.length)return[];var _=arguments[0];return We(_)?_:[_]}function ect(_){return To(_,p)}function rct(_,b){return b=typeof b=="function"?b:r,To(_,p,b)}function ict(_){return To(_,c|p)}function nct(_,b){return b=typeof b=="function"?b:r,To(_,c|p,b)}function act(_,b){return b==null||RB(_,b,Zi(b))}function ys(_,b){return _===b||_!==_&&b!==b}var oct=$_(BC),sct=$_(function(_,b){return _>=b}),ip=UB(function(){return arguments}())?UB:function(_){return vi(_)&&Ar.call(_,"callee")&&!AB.call(_,"callee")},We=_t.isArray,lct=oB?Za(oB):mst;function ua(_){return _!=null&&sx(_.length)&&!pu(_)}function bi(_){return vi(_)&&ua(_)}function uct(_){return _===!0||_===!1||vi(_)&&Vn(_)==qt}var _c=wot||T2,cct=sB?Za(sB):gst;function fct(_){return vi(_)&&_.nodeType===1&&!sg(_)}function pct(_){if(_==null)return!0;if(ua(_)&&(We(_)||typeof _=="string"||typeof _.splice=="function"||_c(_)||pd(_)||ip(_)))return!_.length;var b=Sn(_);if(b==vt||b==pt)return!_.size;if(ag(_))return!FC(_).length;for(var C in _)if(Ar.call(_,C))return!1;return!0}function hct(_,b){return rg(_,b)}function dct(_,b,C){C=typeof C=="function"?C:r;var O=C?C(_,b):r;return O===r?rg(_,b,r,C):!!O}function h2(_){if(!vi(_))return!1;var b=Vn(_);return b==oe||b==Rt||typeof _.message=="string"&&typeof _.name=="string"&&!sg(_)}function vct(_){return typeof _=="number"&&EB(_)}function pu(_){if(!li(_))return!1;var b=Vn(_);return b==Vt||b==N||b==Ut||b==At}function jU(_){return typeof _=="number"&&_==Ye(_)}function sx(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=H}function li(_){var b=typeof _;return _!=null&&(b=="object"||b=="function")}function vi(_){return _!=null&&typeof _=="object"}var XU=lB?Za(lB):_st;function mct(_,b){return _===b||VC(_,b,i2(b))}function gct(_,b,C){return C=typeof C=="function"?C:r,VC(_,b,i2(b),C)}function yct(_){return KU(_)&&_!=+_}function _ct(_){if(rlt(_))throw new Fe(i);return VB(_)}function xct(_){return _===null}function Sct(_){return _==null}function KU(_){return typeof _=="number"||vi(_)&&Vn(_)==ut}function sg(_){if(!vi(_)||Vn(_)!=X)return!1;var b=O_(_);if(b===null)return!0;var C=Ar.call(b,"constructor")&&b.constructor;return typeof C=="function"&&C instanceof C&&D_.call(C)==got}var d2=uB?Za(uB):xst;function bct(_){return jU(_)&&_>=-H&&_<=H}var qU=cB?Za(cB):Sst;function lx(_){return typeof _=="string"||!We(_)&&vi(_)&&Vn(_)==Ht}function Xa(_){return typeof _=="symbol"||vi(_)&&Vn(_)==ie}var pd=fB?Za(fB):bst;function wct(_){return _===r}function Tct(_){return vi(_)&&Sn(_)==_e}function Act(_){return vi(_)&&Vn(_)==gr}var Cct=$_(GC),Ect=$_(function(_,b){return _<=b});function JU(_){if(!_)return[];if(ua(_))return lx(_)?vs(_):la(_);if(Xm&&_[Xm])return aot(_[Xm]());var b=Sn(_),C=b==vt?LC:b==pt?E_:hd;return C(_)}function hu(_){if(!_)return _===0?_:0;if(_=Eo(_),_===V||_===-V){var b=_<0?-1:1;return b*K}return _===_?_:0}function Ye(_){var b=hu(_),C=b%1;return b===b?C?b-C:b:0}function $U(_){return _?Qf(Ye(_),0,G):0}function Eo(_){if(typeof _=="number")return _;if(Xa(_))return F;if(li(_)){var b=typeof _.valueOf=="function"?_.valueOf():_;_=li(b)?b+"":b}if(typeof _!="string")return _===0?_:+_;_=gB(_);var C=lat.test(_);return C||cat.test(_)?Gat(_.slice(2),C?2:8):sat.test(_)?F:+_}function QU(_){return ul(_,ca(_))}function Mct(_){return _?Qf(Ye(_),-H,H):_===0?_:0}function Cr(_){return _==null?"":ja(_)}var Lct=ud(function(_,b){if(ag(b)||ua(b)){ul(b,Zi(b),_);return}for(var C in b)if(Ar.call(b,C))Qm(_,C,b[C])}),tV=ud(function(_,b){ul(b,ca(b),_)}),eV=ud(function(_,b,C,O){ul(b,ca(b),_,O)}),v2=ud(function(_,b,C,O){ul(b,Zi(b),_,O)}),Dct=cu(kC);function Ict(_,b){var C=ld(_);return b==null?C:PB(C,b)}var Pct=qe(function(_,b){_=zr(_);var C=-1,O=b.length,U=O>2?b[2]:r;if(U&&Fn(b[0],b[1],U))O=1;while(++C<O){var j=b[C],tt=ca(j),st=-1,ft=tt.length;while(++st<ft){var kt=tt[st],Nt=_[kt];if(Nt===r||ys(Nt,ad[kt])&&!Ar.call(_,kt))_[kt]=j[kt]}}return _}),Rct=qe(function(_){return _.push(r,gU),Wa(rV,r,_)});function Oct(_,b){return hB(_,De(b,3),ll)}function kct(_,b){return hB(_,De(b,3),zC)}function Nct(_,b){return _==null?_:NC(_,De(b,3),ca)}function zct(_,b){return _==null?_:zB(_,De(b,3),ca)}function Bct(_,b){return _&&ll(_,De(b,3))}function Uct(_,b){return _&&zC(_,De(b,3))}function Vct(_){return _==null?[]:W_(_,Zi(_))}function Fct(_){return _==null?[]:W_(_,ca(_))}function m2(_,b,C){var O=_==null?r:tp(_,b);return O===r?C:O}function Gct(_,b){return _!=null&&xU(_,b,pst)}function g2(_,b){return _!=null&&xU(_,b,hst)}var Hct=pU(function(_,b,C){if(b!=null&&typeof b.toString!="function")b=I_.call(b);_[b]=C},_2(fa)),Wct=pU(function(_,b,C){if(b!=null&&typeof b.toString!="function")b=I_.call(b);if(Ar.call(_,b))_[b].push(C);else _[b]=[C]},De),Yct=qe(eg);function Zi(_){return ua(_)?DB(_):FC(_)}function ca(_){return ua(_)?DB(_,!0):wst(_)}function Zct(_,b){var C={};return b=De(b,3),ll(_,function(O,U,j){sl(C,b(O,U,j),O)}),C}function jct(_,b){var C={};return b=De(b,3),ll(_,function(O,U,j){sl(C,U,b(O,U,j))}),C}var Xct=ud(function(_,b,C){Y_(_,b,C)}),rV=ud(function(_,b,C,O){Y_(_,b,C,O)}),Kct=cu(function(_,b){var C={};if(_==null)return C;var O=!1;if(b=ei(b,function(j){return j=gc(j,_),O||(O=j.length>1),j}),ul(_,e2(_),C),O)C=To(C,c|f|p,Wst);var U=b.length;while(U--)jC(C,b[U]);return C});function qct(_,b){return iV(_,ox(De(b)))}var Jct=cu(function(_,b){return _==null?{}:Ast(_,b)});function iV(_,b){if(_==null)return{};var C=ei(e2(_),function(O){return[O]});return b=De(b),jB(_,C,function(O,U){return b(O,U[0])})}function $ct(_,b,C){b=gc(b,_);var O=-1,U=b.length;if(!U)U=1,_=r;while(++O<U){var j=_==null?r:_[gs(b[O])];if(j===r)O=U,j=C;_=pu(j)?j.call(_):j}return _}function Qct(_,b,C){return _==null?_:ig(_,b,C)}function tft(_,b,C,O){return O=typeof O=="function"?O:r,_==null?_:ig(_,b,C,O)}var nV=vU(Zi),aV=vU(ca);function eft(_,b,C){var O=We(_),U=O||_c(_)||pd(_);if(b=De(b,4),C==null){var j=_&&_.constructor;if(U)C=O?new j:[];else if(li(_))C=pu(j)?ld(O_(_)):{};else C={}}return(U?Ya:ll)(_,function(tt,st,ft){return b(C,tt,st,ft)}),C}function rft(_,b){return _==null?!0:jC(_,b)}function ift(_,b,C){return _==null?_:$B(_,b,qC(C))}function nft(_,b,C,O){return O=typeof O=="function"?O:r,_==null?_:$B(_,b,qC(C),O)}function hd(_){return _==null?[]:MC(_,Zi(_))}function aft(_){return _==null?[]:MC(_,ca(_))}function oft(_,b,C){if(C===r)C=b,b=r;if(C!==r)C=Eo(C),C=C===C?C:0;if(b!==r)b=Eo(b),b=b===b?b:0;return Qf(Eo(_),b,C)}function sft(_,b,C){if(b=hu(b),C===r)C=b,b=0;else C=hu(C);return _=Eo(_),dst(_,b,C)}function lft(_,b,C){if(C&&typeof C!="boolean"&&Fn(_,b,C))b=C=r;if(C===r){if(typeof b=="boolean")C=b,b=r;else if(typeof _=="boolean")C=_,_=r}if(_===r&&b===r)_=0,b=1;else if(_=hu(_),b===r)b=_,_=0;else b=hu(b);if(_>b){var O=_;_=b,b=O}if(C||_%1||b%1){var U=MB();return xn(_+U*(b-_+Fat("1e-"+((U+"").length-1))),b)}return WC(_,b)}var uft=cd(function(_,b,C){return b=b.toLowerCase(),_+(C?oV(b):b)});function oV(_){return y2(Cr(_).toLowerCase())}function sV(_){return _=Cr(_),_&&_.replace(pat,tot).replace(Iat,"")}function cft(_,b,C){_=Cr(_),b=ja(b);var O=_.length;C=C===r?O:Qf(Ye(C),0,O);var U=C;return C-=b.length,C>=0&&_.slice(C,U)==b}function fft(_){return _=Cr(_),_&&jnt.test(_)?_.replace(Xf,eot):_}function pft(_){return _=Cr(_),_&&Qnt.test(_)?_.replace(pC,"\\$&"):_}var hft=cd(function(_,b,C){return _+(C?"-":"")+b.toLowerCase()}),dft=cd(function(_,b,C){return _+(C?" ":"")+b.toLowerCase()}),vft=uU("toLowerCase");function mft(_,b,C){_=Cr(_),b=Ye(b);var O=b?nd(_):0;if(!b||O>=b)return _;var U=(b-O)/2;return J_(B_(U),C)+_+J_(z_(U),C)}function gft(_,b,C){_=Cr(_),b=Ye(b);var O=b?nd(_):0;return b&&O<b?_+J_(b-O,C):_}function yft(_,b,C){_=Cr(_),b=Ye(b);var O=b?nd(_):0;return b&&O<b?J_(b-O,C)+_:_}function _ft(_,b,C){if(C||b==null)b=0;else if(b)b=+b;return Eot(Cr(_).replace(hC,""),b||0)}function xft(_,b,C){if(C?Fn(_,b,C):b===r)b=1;else b=Ye(b);return YC(Cr(_),b)}function Sft(){var _=arguments,b=Cr(_[0]);return _.length<3?b:b.replace(_[1],_[2])}var bft=cd(function(_,b,C){return _+(C?"_":"")+b.toLowerCase()});function wft(_,b,C){if(C&&typeof C!="number"&&Fn(_,b,C))b=C=r;if(C=C===r?G:C>>>0,!C)return[];if(_=Cr(_),_&&(typeof b=="string"||b!=null&&!d2(b))){if(b=ja(b),!b&&id(_))return yc(vs(_),0,C)}return _.split(b,C)}var Tft=cd(function(_,b,C){return _+(C?" ":"")+y2(b)});function Aft(_,b,C){return _=Cr(_),C=C==null?0:Qf(Ye(C),0,_.length),b=ja(b),_.slice(C,C+b.length)==b}function Cft(_,b,C){var O=Y.templateSettings;if(C&&Fn(_,b,C))b=r;_=Cr(_),b=v2({},b,O,mU);var U=v2({},b.imports,O.imports,mU),j=Zi(U),tt=MC(U,j);Ya(j,function(Le){if(Bz.test(Le))throw new Fe(o)});var st,ft,kt=0,Nt=b.interpolate||b_,Wt="__p += '",se=DC((b.escape||b_).source+"|"+Nt.source+"|"+(Nt===zz?oat:b_).source+"|"+(b.evaluate||b_).source+"|$","g"),Se="//# sourceURL="+(Ar.call(b,"sourceURL")?(b.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nat+"]")+`
15
+ `;_.replace(se,function(Le,nr,cr,Ka,Gn,qa){if(cr||(cr=Ka),Wt+=_.slice(kt,qa).replace(hat,rot),nr)st=!0,Wt+=`' +
16
+ __e(`+nr+`) +
17
+ '`;if(Gn)ft=!0,Wt+=`';
18
+ `+Gn+`;
19
+ __p += '`;if(cr)Wt+=`' +
20
+ ((__t = (`+cr+`)) == null ? '' : __t) +
21
+ '`;return kt=qa+Le.length,Le}),Wt+=`';
22
+ `;var Oe=Ar.call(b,"variable")&&b.variable;if(!Oe)Wt=`with (obj) {
23
+ `+Wt+`
24
+ }
25
+ `;else if(Bz.test(Oe))throw new Fe(a);Wt=(ft?Wt.replace(Zf,""):Wt).replace(jf,"$1").replace($e,"$1;"),Wt="function("+(Oe||"obj")+`) {
26
+ `+(Oe?"":`obj || (obj = {});
27
+ `)+"var __t, __p = ''"+(st?", __e = _.escape":"")+(ft?`, __j = Array.prototype.join;
28
+ function print() { __p += __j.call(arguments, '') }
29
+ `:`;
30
+ `)+Wt+`return __p
31
+ }`;var je=uV(function(){return Sr(j,Se+"return "+Wt).apply(r,tt)});if(je.source=Wt,h2(je))throw je;return je}function Eft(_){return Cr(_).toLowerCase()}function Mft(_){return Cr(_).toUpperCase()}function Lft(_,b,C){if(_=Cr(_),_&&(C||b===r))return gB(_);if(!_||!(b=ja(b)))return _;var O=vs(_),U=vs(b),j=yB(O,U),tt=_B(O,U)+1;return yc(O,j,tt).join("")}function Dft(_,b,C){if(_=Cr(_),_&&(C||b===r))return _.slice(0,SB(_)+1);if(!_||!(b=ja(b)))return _;var O=vs(_),U=_B(O,vs(b))+1;return yc(O,0,U).join("")}function Ift(_,b,C){if(_=Cr(_),_&&(C||b===r))return _.replace(hC,"");if(!_||!(b=ja(b)))return _;var O=vs(_),U=yB(O,vs(b));return yc(O,U).join("")}function Pft(_,b){var C=D,O=L;if(li(b)){var U="separator"in b?b.separator:U;C="length"in b?Ye(b.length):C,O="omission"in b?ja(b.omission):O}_=Cr(_);var j=_.length;if(id(_)){var tt=vs(_);j=tt.length}if(C>=j)return _;var st=C-nd(O);if(st<1)return O;var ft=tt?yc(tt,0,st).join(""):_.slice(0,st);if(U===r)return ft+O;if(tt)st+=ft.length-st;if(d2(U)){if(_.slice(st).search(U)){var kt,Nt=ft;if(!U.global)U=DC(U.source,Cr(Uz.exec(U))+"g");U.lastIndex=0;while(kt=U.exec(Nt))var Wt=kt.index;ft=ft.slice(0,Wt===r?st:Wt)}}else if(_.indexOf(ja(U),st)!=st){var se=ft.lastIndexOf(U);if(se>-1)ft=ft.slice(0,se)}return ft+O}function Rft(_){return _=Cr(_),_&&Znt.test(_)?_.replace(Vr,uot):_}var Oft=cd(function(_,b,C){return _+(C?" ":"")+b.toUpperCase()}),y2=uU("toUpperCase");function lV(_,b,C){if(_=Cr(_),b=C?r:b,b===r)return not(_)?pot(_):Kat(_);return _.match(b)||[]}var uV=qe(function(_,b){try{return Wa(_,r,b)}catch(C){return h2(C)?C:new Fe(C)}}),kft=cu(function(_,b){return Ya(b,function(C){C=gs(C),sl(_,C,f2(_[C],_))}),_});function Nft(_){var b=_==null?0:_.length,C=De();return _=!b?[]:ei(_,function(O){if(typeof O[1]!="function")throw new bo(n);return[C(O[0]),O[1]]}),qe(function(O){var U=-1;while(++U<b){var j=_[U];if(Wa(j[0],this,O))return Wa(j[1],this,O)}})}function zft(_){return ust(To(_,c))}function _2(_){return function(){return _}}function Bft(_,b){return _==null||_!==_?b:_}var Uft=fU(),Vft=fU(!0);function fa(_){return _}function x2(_){return FB(typeof _=="function"?_:To(_,c))}function Fft(_){return HB(To(_,c))}function Gft(_,b){return WB(_,To(b,c))}var Hft=qe(function(_,b){return function(C){return eg(C,_,b)}}),Wft=qe(function(_,b){return function(C){return eg(_,C,b)}});function S2(_,b,C){var O=Zi(b),U=W_(b,O);if(C==null&&!(li(b)&&(U.length||!O.length)))C=b,b=_,_=this,U=W_(b,Zi(b));var j=!(li(C)&&("chain"in C))||!!C.chain,tt=pu(_);return Ya(U,function(st){var ft=b[st];if(_[st]=ft,tt)_.prototype[st]=function(){var kt=this.__chain__;if(j||kt){var Nt=_(this.__wrapped__),Wt=Nt.__actions__=la(this.__actions__);return Wt.push({func:ft,args:arguments,thisArg:_}),Nt.__chain__=kt,Nt}return ft.apply(_,fc([this.value()],arguments))}}),_}function Yft(){if(Yi._===this)Yi._=yot;return this}function b2(){}function Zft(_){return _=Ye(_),qe(function(b){return YB(b,_)})}var jft=$C(ei),Xft=$C(pB),Kft=$C(wC);function cV(_){return a2(_)?TC(gs(_)):Cst(_)}function qft(_){return function(b){return _==null?r:tp(_,b)}}var Jft=hU(),$ft=hU(!0);function w2(){return[]}function T2(){return!1}function Qft(){return{}}function tpt(){return""}function ept(){return!0}function rpt(_,b){if(_=Ye(_),_<1||_>H)return[];var C=G,O=xn(_,G);b=De(b),_-=G;var U=EC(O,b);while(++C<_)b(C);return U}function ipt(_){if(We(_))return ei(_,gs);return Xa(_)?[_]:la(LU(Cr(_)))}function npt(_){var b=++mot;return Cr(_)+b}var apt=q_(function(_,b){return _+b},0),opt=QC("ceil"),spt=q_(function(_,b){return _/b},1),lpt=QC("floor");function upt(_){return _&&_.length?H_(_,fa,BC):r}function cpt(_,b){return _&&_.length?H_(_,De(b,2),BC):r}function fpt(_){return vB(_,fa)}function ppt(_,b){return vB(_,De(b,2))}function hpt(_){return _&&_.length?H_(_,fa,GC):r}function dpt(_,b){return _&&_.length?H_(_,De(b,2),GC):r}var vpt=q_(function(_,b){return _*b},1),mpt=QC("round"),gpt=q_(function(_,b){return _-b},0);function ypt(_){return _&&_.length?CC(_,fa):0}function _pt(_,b){return _&&_.length?CC(_,De(b,2)):0}if(Y.after=Gut,Y.ary=VU,Y.assign=Lct,Y.assignIn=tV,Y.assignInWith=eV,Y.assignWith=v2,Y.at=Dct,Y.before=FU,Y.bind=f2,Y.bindAll=kft,Y.bindKey=GU,Y.castArray=tct,Y.chain=zU,Y.chunk=ult,Y.compact=clt,Y.concat=flt,Y.cond=Nft,Y.conforms=zft,Y.constant=_2,Y.countBy=_ut,Y.create=Ict,Y.curry=HU,Y.curryRight=WU,Y.debounce=YU,Y.defaults=Pct,Y.defaultsDeep=Rct,Y.defer=Hut,Y.delay=Wut,Y.difference=plt,Y.differenceBy=hlt,Y.differenceWith=dlt,Y.drop=vlt,Y.dropRight=mlt,Y.dropRightWhile=glt,Y.dropWhile=ylt,Y.fill=_lt,Y.filter=Sut,Y.flatMap=Tut,Y.flatMapDeep=Aut,Y.flatMapDepth=Cut,Y.flatten=RU,Y.flattenDeep=xlt,Y.flattenDepth=Slt,Y.flip=Yut,Y.flow=Uft,Y.flowRight=Vft,Y.fromPairs=blt,Y.functions=Vct,Y.functionsIn=Fct,Y.groupBy=Eut,Y.initial=Tlt,Y.intersection=Alt,Y.intersectionBy=Clt,Y.intersectionWith=Elt,Y.invert=Hct,Y.invertBy=Wct,Y.invokeMap=Lut,Y.iteratee=x2,Y.keyBy=Dut,Y.keys=Zi,Y.keysIn=ca,Y.map=ix,Y.mapKeys=Zct,Y.mapValues=jct,Y.matches=Fft,Y.matchesProperty=Gft,Y.memoize=ax,Y.merge=Xct,Y.mergeWith=rV,Y.method=Hft,Y.methodOf=Wft,Y.mixin=S2,Y.negate=ox,Y.nthArg=Zft,Y.omit=Kct,Y.omitBy=qct,Y.once=Zut,Y.orderBy=Iut,Y.over=jft,Y.overArgs=jut,Y.overEvery=Xft,Y.overSome=Kft,Y.partial=p2,Y.partialRight=ZU,Y.partition=Put,Y.pick=Jct,Y.pickBy=iV,Y.property=cV,Y.propertyOf=qft,Y.pull=Ilt,Y.pullAll=kU,Y.pullAllBy=Plt,Y.pullAllWith=Rlt,Y.pullAt=Olt,Y.range=Jft,Y.rangeRight=$ft,Y.rearg=Xut,Y.reject=kut,Y.remove=klt,Y.rest=Kut,Y.reverse=u2,Y.sampleSize=zut,Y.set=Qct,Y.setWith=tft,Y.shuffle=But,Y.slice=Nlt,Y.sortBy=Fut,Y.sortedUniq=Hlt,Y.sortedUniqBy=Wlt,Y.split=wft,Y.spread=qut,Y.tail=Ylt,Y.take=Zlt,Y.takeRight=jlt,Y.takeRightWhile=Xlt,Y.takeWhile=Klt,Y.tap=cut,Y.throttle=Jut,Y.thru=rx,Y.toArray=JU,Y.toPairs=nV,Y.toPairsIn=aV,Y.toPath=ipt,Y.toPlainObject=QU,Y.transform=eft,Y.unary=$ut,Y.union=qlt,Y.unionBy=Jlt,Y.unionWith=$lt,Y.uniq=Qlt,Y.uniqBy=tut,Y.uniqWith=eut,Y.unset=rft,Y.unzip=c2,Y.unzipWith=NU,Y.update=ift,Y.updateWith=nft,Y.values=hd,Y.valuesIn=aft,Y.without=rut,Y.words=lV,Y.wrap=Qut,Y.xor=iut,Y.xorBy=nut,Y.xorWith=aut,Y.zip=out,Y.zipObject=sut,Y.zipObjectDeep=lut,Y.zipWith=uut,Y.entries=nV,Y.entriesIn=aV,Y.extend=tV,Y.extendWith=eV,S2(Y,Y),Y.add=apt,Y.attempt=uV,Y.camelCase=uft,Y.capitalize=oV,Y.ceil=opt,Y.clamp=oft,Y.clone=ect,Y.cloneDeep=ict,Y.cloneDeepWith=nct,Y.cloneWith=rct,Y.conformsTo=act,Y.deburr=sV,Y.defaultTo=Bft,Y.divide=spt,Y.endsWith=cft,Y.eq=ys,Y.escape=fft,Y.escapeRegExp=pft,Y.every=xut,Y.find=but,Y.findIndex=IU,Y.findKey=Oct,Y.findLast=wut,Y.findLastIndex=PU,Y.findLastKey=kct,Y.floor=lpt,Y.forEach=BU,Y.forEachRight=UU,Y.forIn=Nct,Y.forInRight=zct,Y.forOwn=Bct,Y.forOwnRight=Uct,Y.get=m2,Y.gt=oct,Y.gte=sct,Y.has=Gct,Y.hasIn=g2,Y.head=OU,Y.identity=fa,Y.includes=Mut,Y.indexOf=wlt,Y.inRange=sft,Y.invoke=Yct,Y.isArguments=ip,Y.isArray=We,Y.isArrayBuffer=lct,Y.isArrayLike=ua,Y.isArrayLikeObject=bi,Y.isBoolean=uct,Y.isBuffer=_c,Y.isDate=cct,Y.isElement=fct,Y.isEmpty=pct,Y.isEqual=hct,Y.isEqualWith=dct,Y.isError=h2,Y.isFinite=vct,Y.isFunction=pu,Y.isInteger=jU,Y.isLength=sx,Y.isMap=XU,Y.isMatch=mct,Y.isMatchWith=gct,Y.isNaN=yct,Y.isNative=_ct,Y.isNil=Sct,Y.isNull=xct,Y.isNumber=KU,Y.isObject=li,Y.isObjectLike=vi,Y.isPlainObject=sg,Y.isRegExp=d2,Y.isSafeInteger=bct,Y.isSet=qU,Y.isString=lx,Y.isSymbol=Xa,Y.isTypedArray=pd,Y.isUndefined=wct,Y.isWeakMap=Tct,Y.isWeakSet=Act,Y.join=Mlt,Y.kebabCase=hft,Y.last=Co,Y.lastIndexOf=Llt,Y.lowerCase=dft,Y.lowerFirst=vft,Y.lt=Cct,Y.lte=Ect,Y.max=upt,Y.maxBy=cpt,Y.mean=fpt,Y.meanBy=ppt,Y.min=hpt,Y.minBy=dpt,Y.stubArray=w2,Y.stubFalse=T2,Y.stubObject=Qft,Y.stubString=tpt,Y.stubTrue=ept,Y.multiply=vpt,Y.nth=Dlt,Y.noConflict=Yft,Y.noop=b2,Y.now=nx,Y.pad=mft,Y.padEnd=gft,Y.padStart=yft,Y.parseInt=_ft,Y.random=lft,Y.reduce=Rut,Y.reduceRight=Out,Y.repeat=xft,Y.replace=Sft,Y.result=$ct,Y.round=mpt,Y.runInContext=ct,Y.sample=Nut,Y.size=Uut,Y.snakeCase=bft,Y.some=Vut,Y.sortedIndex=zlt,Y.sortedIndexBy=Blt,Y.sortedIndexOf=Ult,Y.sortedLastIndex=Vlt,Y.sortedLastIndexBy=Flt,Y.sortedLastIndexOf=Glt,Y.startCase=Tft,Y.startsWith=Aft,Y.subtract=gpt,Y.sum=ypt,Y.sumBy=_pt,Y.template=Cft,Y.times=rpt,Y.toFinite=hu,Y.toInteger=Ye,Y.toLength=$U,Y.toLower=Eft,Y.toNumber=Eo,Y.toSafeInteger=Mct,Y.toString=Cr,Y.toUpper=Mft,Y.trim=Lft,Y.trimEnd=Dft,Y.trimStart=Ift,Y.truncate=Pft,Y.unescape=Rft,Y.uniqueId=npt,Y.upperCase=Oft,Y.upperFirst=y2,Y.each=BU,Y.eachRight=UU,Y.first=OU,S2(Y,function(){var _={};return ll(Y,function(b,C){if(!Ar.call(Y.prototype,C))_[C]=b}),_}(),{chain:!1}),Y.VERSION=e,Ya(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){Y[_].placeholder=Y}),Ya(["drop","take"],function(_,b){sr.prototype[_]=function(C){C=C===r?1:Ui(Ye(C),0);var O=this.__filtered__&&!b?new sr(this):this.clone();if(O.__filtered__)O.__takeCount__=xn(C,O.__takeCount__);else O.__views__.push({size:xn(C,G),type:_+(O.__dir__<0?"Right":"")});return O},sr.prototype[_+"Right"]=function(C){return this.reverse()[_](C).reverse()}}),Ya(["filter","map","takeWhile"],function(_,b){var C=b+1,O=C==R||C==z;sr.prototype[_]=function(U){var j=this.clone();return j.__iteratees__.push({iteratee:De(U,3),type:C}),j.__filtered__=j.__filtered__||O,j}}),Ya(["head","last"],function(_,b){var C="take"+(b?"Right":"");sr.prototype[_]=function(){return this[C](1).value()[0]}}),Ya(["initial","tail"],function(_,b){var C="drop"+(b?"":"Right");sr.prototype[_]=function(){return this.__filtered__?new sr(this):this[C](1)}}),sr.prototype.compact=function(){return this.filter(fa)},sr.prototype.find=function(_){return this.filter(_).head()},sr.prototype.findLast=function(_){return this.reverse().find(_)},sr.prototype.invokeMap=qe(function(_,b){if(typeof _=="function")return new sr(this);return this.map(function(C){return eg(C,_,b)})}),sr.prototype.reject=function(_){return this.filter(ox(De(_)))},sr.prototype.slice=function(_,b){_=Ye(_);var C=this;if(C.__filtered__&&(_>0||b<0))return new sr(C);if(_<0)C=C.takeRight(-_);else if(_)C=C.drop(_);if(b!==r)b=Ye(b),C=b<0?C.dropRight(-b):C.take(b-_);return C},sr.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},sr.prototype.toArray=function(){return this.take(G)},ll(sr.prototype,function(_,b){var C=/^(?:filter|find|map|reject)|While$/.test(b),O=/^(?:head|last)$/.test(b),U=Y[O?"take"+(b=="last"?"Right":""):b],j=O||/^find/.test(b);if(!U)return;Y.prototype[b]=function(){var tt=this.__wrapped__,st=O?[1]:arguments,ft=tt instanceof sr,kt=st[0],Nt=ft||We(tt),Wt=function(nr){var cr=U.apply(Y,fc([nr],st));return O&&se?cr[0]:cr};if(Nt&&C&&typeof kt=="function"&&kt.length!=1)ft=Nt=!1;var se=this.__chain__,Se=!!this.__actions__.length,Oe=j&&!se,je=ft&&!Se;if(!j&&Nt){tt=je?tt:new sr(this);var Le=_.apply(tt,st);return Le.__actions__.push({func:rx,args:[Wt],thisArg:r}),new wo(Le,se)}if(Oe&&je)return _.apply(this,st);return Le=this.thru(Wt),Oe?O?Le.value()[0]:Le.value():Le}}),Ya(["pop","push","shift","sort","splice","unshift"],function(_){var b=M_[_],C=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",O=/^(?:pop|shift)$/.test(_);Y.prototype[_]=function(){var U=arguments;if(O&&!this.__chain__){var j=this.value();return b.apply(We(j)?j:[],U)}return this[C](function(tt){return b.apply(We(tt)?tt:[],U)})}}),ll(sr.prototype,function(_,b){var C=Y[b];if(C){var O=C.name+"";if(!Ar.call(sd,O))sd[O]=[];sd[O].push({name:b,func:C})}}),sd[K_(r,y).name]=[{name:"wrapper",func:r}],sr.prototype.clone=Oot,sr.prototype.reverse=kot,sr.prototype.value=Not,Y.prototype.at=fut,Y.prototype.chain=put,Y.prototype.commit=hut,Y.prototype.next=dut,Y.prototype.plant=mut,Y.prototype.reverse=gut,Y.prototype.toJSON=Y.prototype.valueOf=Y.prototype.value=yut,Y.prototype.first=Y.prototype.head,Xm)Y.prototype[Xm]=vut;return Y},hc=hot();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd)Yi._=hc,define(function(){return hc});else if(Kf)(Kf.exports=hc)._=hc,_C._=hc;else Yi._=hc}).call(lg)});var Lpt,L2;var _V=k(()=>{Lpt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),L2={randomUUID:Lpt}});function I2(){if(!D2){if(typeof crypto>"u"||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");D2=crypto.getRandomValues.bind(crypto)}return D2(Dpt)}var D2,Dpt;var xV=k(()=>{Dpt=new Uint8Array(16)});function SV(r,e=0){return(nn[r[e+0]]+nn[r[e+1]]+nn[r[e+2]]+nn[r[e+3]]+"-"+nn[r[e+4]]+nn[r[e+5]]+"-"+nn[r[e+6]]+nn[r[e+7]]+"-"+nn[r[e+8]]+nn[r[e+9]]+"-"+nn[r[e+10]]+nn[r[e+11]]+nn[r[e+12]]+nn[r[e+13]]+nn[r[e+14]]+nn[r[e+15]]).toLowerCase()}var nn;var bV=k(()=>{nn=[];for(let r=0;r<256;++r)nn.push((r+256).toString(16).slice(1))});function Ipt(r,e,t){if(L2.randomUUID&&!e&&!r)return L2.randomUUID();r=r||{};let i=r.random??r.rng?.()??I2();if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){if(t=t||0,t<0||t+16>e.length)throw RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let n=0;n<16;++n)e[t+n]=i[n];return e}return SV(i)}var P2;var wV=k(()=>{_V();xV();bV();P2=Ipt});var TV=k(()=>{wV()});function W(r,e){if(typeof e!=="function"&&e!==null)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");R2(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var R2=function(r,e){return R2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]},R2(r,e)};var dt=k(()=>{/*! *****************************************************************************
32
+ Copyright (c) Microsoft Corporation.
33
+
34
+ Permission to use, copy, modify, and/or distribute this software for any
35
+ purpose with or without fee is hereby granted.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
+ PERFORMANCE OF THIS SOFTWARE.
44
+ ***************************************************************************** */});function Opt(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);if(i)t.firefox=!0,t.version=i[1];if(n)t.ie=!0,t.version=n[1];if(a)t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18;if(o)t.weChat=!0;e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&("transition"in l)||t.edge||("WebKitCSSMatrix"in window)&&("m11"in new WebKitCSSMatrix)||("MozPerspective"in l))&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var Ppt,Rpt,xc,Te;var Vi=k(()=>{Ppt=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Rpt=function(){function r(){this.browser=new Ppt,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=typeof window<"u"}return r}(),xc=new Rpt;if(typeof wx==="object"&&typeof wx.getSystemInfoSync==="function")xc.wxa=!0,xc.touchEventsSupported=!0;else if(typeof document>"u"&&typeof self<"u")xc.worker=!0;else if(!xc.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent==="string"&&navigator.userAgent.indexOf("Node.js")>-1)xc.node=!0,xc.svgSupported=!0;else Opt(navigator.userAgent,xc);Te=xc});function Bpt(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-kpt)/Npt;e[i]=n}return e}var ux=12,O2="sans-serif",pa,kpt=20,Npt=100,zpt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N",Upt,ri;var Ja=k(()=>{pa=ux+"px "+O2;Upt=Bpt(zpt),ri={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,i){if(!r){var n=ri.createCanvas();r=n&&n.getContext("2d")}if(r){if(e!==i)e=r.font=i||pa;return r.measureText(t)}else{t=t||"",i=i||pa;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||ux,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=Upt[t[l]];s+=u==null?o:u*o}return{width:s}}}}(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}}});function px(){if(k2>=Hpt)k2=0;return k2++}function xs(){var r=[];for(var e=0;e<arguments.length;e++)r[e]=arguments[e];if(typeof console<"u")console.error.apply(console,r)}function It(r){if(r==null||typeof r!=="object")return r;var e=r,t=md.call(r);if(t==="[object Array]"){if(!cg(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=It(r[i])}}else if(MV[t]){if(!cg(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!EV[t]&&!cg(r)&&!vu(r)){e={};for(var o in r)if(r.hasOwnProperty(o)&&o!==z2)e[o]=It(r[o])}return e}function re(r,e,t){if(!Pt(e)||!Pt(r))return t?It(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==z2){var n=r[i],a=e[i];if(Pt(a)&&Pt(n)&&!it(a)&&!it(n)&&!vu(a)&&!vu(n)&&!CV(a)&&!CV(n)&&!cg(a)&&!cg(n))re(n,a,t);else if(t||!(i in r))r[i]=It(e[i])}return r}function gd(r,e){var t=r[0];for(var i=1,n=r.length;i<n;i++)t=re(t,r[i],e);return t}function et(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)if(e.hasOwnProperty(t)&&t!==z2)r[t]=e[t];return r}function LV(r,e,t){r=r||{};for(var i=0;i<t.length;i++){var n=t[i];r[n]=e[n]}return r}function Dt(r,e,t){var i=le(e);for(var n=0,a=i.length;n<a;n++){var o=i[n];if(t?e[o]!=null:r[o]==null)r[o]=e[o]}return r}function Xt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function DV(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var n in t)if(t.hasOwnProperty(n))r.prototype[n]=t[n];r.prototype.constructor=r,r.superClass=e}function dr(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames){var i=Object.getOwnPropertyNames(e);for(var n=0;n<i.length;n++){var a=i[n];if(a!=="constructor"){if(t?e[a]!=null:r[a]==null)r[a]=e[a]}}}else Dt(r,e,t)}function ii(r){if(!r)return!1;if(typeof r==="string")return!1;return typeof r.length==="number"}function P(r,e,t){if(!(r&&e))return;if(r.forEach&&r.forEach===Vpt)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)e.call(t,r[i],i,r);else for(var a in r)if(r.hasOwnProperty(a))e.call(t,r[a],a,r)}function nt(r,e,t){if(!r)return[];if(!e)return hx(r);if(r.map&&r.map===Gpt)return r.map(e,t);else{var i=[];for(var n=0,a=r.length;n<a;n++)i.push(e.call(t,r[n],n,r));return i}}function an(r,e,t,i){if(!(r&&e))return;for(var n=0,a=r.length;n<a;n++)t=e.call(i,t,r[n],n,r);return t}function be(r,e,t){if(!r)return[];if(!e)return hx(r);if(r.filter&&r.filter===Fpt)return r.filter(e,t);else{var i=[];for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))i.push(r[n]);return i}}function $a(r,e,t){if(!(r&&e))return;for(var i=0,n=r.length;i<n;i++)if(e.call(t,r[i],i,r))return r[i]}function le(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)if(r.hasOwnProperty(t))e.push(t);return e}function Wpt(r,e){var t=[];for(var i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(N2.call(arguments)))}}function ne(r){var e=[];for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(N2.call(arguments)))}}function it(r){if(Array.isArray)return Array.isArray(r);return md.call(r)==="[object Array]"}function Mt(r){return typeof r==="function"}function ht(r){return typeof r==="string"}function fg(r){return md.call(r)==="[object String]"}function ue(r){return typeof r==="number"}function Pt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function CV(r){return!!EV[md.call(r)]}function ui(r){return!!MV[md.call(r)]}function vu(r){return typeof r==="object"&&typeof r.nodeType==="number"&&typeof r.ownerDocument==="object"}function Sc(r){return r.colorStops!=null}function IV(r){return r.image!=null}function PV(r){return md.call(r)==="[object RegExp]"}function Jr(r){return r!==r}function Gr(){var r=[];for(var e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function St(r,e){return r!=null?r:e}function Hr(r,e,t){return r!=null?r:e!=null?e:t}function hx(r){var e=[];for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];return N2.apply(r,e)}function bc(r){if(typeof r==="number")return[r,r,r,r];var e=r.length;if(e===2)return[r[0],r[1],r[0],r[1]];else if(e===3)return[r[0],r[1],r[2],r[1]];return r}function xe(r,e){if(!r)throw Error(e)}function Ti(r){if(r==null)return null;else if(typeof r.trim==="function")return r.trim();else return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function np(r){r[RV]=!0}function cg(r){return r[RV]}function Zpt(){return OV?new Map:new Ypt}function gt(r){return new jpt(r)}function mu(r,e){var t=new r.constructor(r.length+e.length);for(var i=0;i<r.length;i++)t[i]=r[i];var n=r.length;for(var i=0;i<e.length;i++)t[i+n]=e[i];return t}function wc(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}if(e)et(t,e);return t}function dx(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Bt(r,e){return r.hasOwnProperty(e)}function ar(){}var EV,MV,md,fx,Vpt,Fpt,N2,Gpt,AV,cx,z2="__proto__",k2=2311,Hpt,eIt,xt,RV="__ec_primitive__",Ypt,OV,jpt,yd,rIt;var Z=k(()=>{Ja();EV=an(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),MV=an(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),md=Object.prototype.toString,fx=Array.prototype,Vpt=fx.forEach,Fpt=fx.filter,N2=fx.slice,Gpt=fx.map,AV=function(){}.constructor,cx=AV?AV.prototype:null,Hpt=Math.pow(2,53)-1;eIt=ri.createCanvas;xt=cx&&Mt(cx.bind)?cx.call.bind(cx.bind):Wpt;Ypt=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);if(t)delete this.data[e];return t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return le(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)if(t.hasOwnProperty(i))e(t[i],i)},r}(),OV=typeof Map==="function";jpt=function(){function r(e){var t=it(e);this.data=Zpt();var i=this;e instanceof r?e.each(n):e&&P(e,n);function n(a,o){t?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,n){e.call(t,i,n)})},r.prototype.keys=function(){var e=this.data.keys();return OV?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();yd=180/Math.PI,rIt=Number.EPSILON||Math.pow(2,-52)});function Ee(r,e){if(typeof e!=="function"&&e!==null)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");B2(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var B2=function(r,e){return B2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n))t[n]=i[n]},B2(r,e)};var Wr=k(()=>{/*! *****************************************************************************
45
+ Copyright (c) Microsoft Corporation.
46
+
47
+ Permission to use, copy, modify, and/or distribute this software for any
48
+ purpose with or without fee is hereby granted.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
51
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
52
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
53
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
54
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
55
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
56
+ PERFORMANCE OF THIS SOFTWARE.
57
+ ***************************************************************************** */});function cl(r,e){if(r==null)r=0;if(e==null)e=0;return[r,e]}function Di(r,e){return r[0]=e[0],r[1]=e[1],r}function ha(r){return[r[0],r[1]]}function Mo(r,e,t){return r[0]=e,r[1]=t,r}function U2(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function pg(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function Ss(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function vx(r){return Math.sqrt(Xpt(r))}function Xpt(r){return r[0]*r[0]+r[1]*r[1]}function _d(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Lo(r,e){var t=vx(e);if(t===0)r[0]=0,r[1]=0;else r[0]=e[0]/t,r[1]=e[1]/t;return r}function mx(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}function Kpt(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}function xd(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function vr(r,e,t){var i=e[0],n=e[1];return r[0]=t[0]*i+t[2]*n+t[4],r[1]=t[1]*i+t[3]*n+t[5],r}function Qa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function to(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var Do,gu;var br=k(()=>{Do=mx;gu=Kpt});var Sd,qpt,kV;var NV=k(()=>{Sd=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),qpt=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;if(t)this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Sd(t,e),"dragstart",e.event)},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var{offsetX:i,offsetY:n}=e,a=i-this._x,o=n-this._y;this._x=i,this._y=n,t.drift(a,o,e),this.handler.dispatchToElement(new Sd(t,e),"drag",e.event);var s=this.handler.findHover(i,n,t).target,l=this._dropTarget;if(this._dropTarget=s,t!==s){if(l&&s!==l)this.handler.dispatchToElement(new Sd(l,e),"dragleave",e.event);if(s&&s!==l)this.handler.dispatchToElement(new Sd(s,e),"dragenter",e.event)}}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;if(t)t.dragging=!1;if(this.handler.dispatchToElement(new Sd(t,e),"dragend",e.event),this._dropTarget)this.handler.dispatchToElement(new Sd(this._dropTarget,e),"drop",e.event);this._draggingTarget=null,this._dropTarget=null},r}(),kV=qpt});var Jpt,Ai;var fl=k(()=>{Jpt=function(){function r(e){if(e)this._$eventProcessor=e}return r.prototype.on=function(e,t,i,n){if(!this._$handlers)this._$handlers={};var a=this._$handlers;if(typeof t==="function")n=i,i=t,t=null;if(!i||!e)return this;var o=this._$eventProcessor;if(t!=null&&o&&o.normalizeQuery)t=o.normalizeQuery(t);if(!a[e])a[e]=[];for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:t,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){var n=[];for(var a=0,o=i[e].length;a<o;a++)if(i[e][a].h!==t)n.push(i[e][a]);i[e]=n}if(i[e]&&i[e].length===0)delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){var t=[];for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n){var o=t.length,s=n.length;for(var l=0;l<s;l++){var u=n[l];if(a&&a.filter&&u.query!=null&&!a.filter(e,u.query))continue;switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){var t=[];for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n){var o=t.length,s=t[o-1],l=n.length;for(var u=0;u<l;u++){var c=n[u];if(a&&a.filter&&c.query!=null&&!a.filter(e,c.query))continue;switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}}return a&&a.afterTrigger&&a.afterTrigger(e),this},r}(),Ai=Jpt});function V2(r,e,t,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/$pt);return r[t][l]}var u=i|1<<t,c=t+1;while(i&1<<c)c++;var f=0;for(var p=0,h=0;p<s;p++){var v=1<<p;if(!(v&n))f+=(h%2?-1:1)*r[t][p]*V2(r,e-1,c,u,n|v,a),h++}return a[o]=f,f}function F2(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},n=V2(t,8,0,0,0,i);if(n===0)return;var a=[];for(var o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*V2(t,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}var $pt;var zV=k(()=>{$pt=Math.log(2)});function BV(r,e,t,i,n){return yx(G2,e,i,n,!0)&&yx(r,t,G2[0],G2[1])}function UV(r,e){r&&t(r),e&&t(e);function t(i){var n=i[gx];if(n)n.clearMarkers&&n.clearMarkers(),delete i[gx]}}function yx(r,e,t,i,n){if(e.getBoundingClientRect&&Te.domSupported&&!H2(e)){var a=e[gx]||(e[gx]={}),o=Qpt(e,a),s=tht(o,a,n);if(s)return s(r,t,i),!0}return!1}function Qpt(r,e){var t=e.markers;if(t)return t;t=e.markers=[];var i=["left","right"],n=["top","bottom"];for(var a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){P(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function tht(r,e,t){var i=t?"invTrans":"trans",n=e[i],a=e.srcCoords,o=[],s=[],l=!0;for(var u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,{left:p,top:h}=c;o.push(p,h),l=l&&a&&p===a[f]&&h===a[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=t?F2(s,o):F2(o,s))}function H2(r){return r.nodeName.toUpperCase()==="CANVAS"}function Pi(r){return r==null?"":(r+"").replace(eht,function(e,t){return rht[t]})}var gx="___zrEVENTSAVED",G2,eht,rht;var hg=k(()=>{Vi();zV();Z();G2=[];eht=/([&<>"'])/g,rht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}});function _x(r,e,t,i){if(t=t||{},i)VV(r,e,t);else if(nht&&e.layerX!=null&&e.layerX!==e.offsetX)t.zrX=e.layerX,t.zrY=e.layerY;else if(e.offsetX!=null)t.zrX=e.offsetX,t.zrY=e.offsetY;else VV(r,e,t);return t}function VV(r,e,t){if(Te.domSupported&&r.getBoundingClientRect){var{clientX:i,clientY:n}=e;if(H2(r)){var a=r.getBoundingClientRect();t.zrX=i-a.left,t.zrY=n-a.top;return}else if(yx(W2,r,i,n)){t.zrX=W2[0],t.zrY=W2[1];return}}t.zrX=t.zrY=0}function xx(r){return r||window.event}function da(r,e,t){if(e=xx(e),e.zrX!=null)return e;var i=e.type,n=i&&i.indexOf("touch")>=0;if(!n){_x(r,e,e,t);var a=aht(e);e.zrDelta=a?a/120:-(e.detail||0)/3}else{var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&_x(r,o,e,t)}var s=e.button;if(e.which==null&&s!==void 0&&iht.test(e.type))e.which=s&1?1:s&2?3:s&4?2:0;return e}function aht(r){var e=r.wheelDelta;if(e)return e;var{deltaX:t,deltaY:i}=r;if(t==null||i==null)return e;var n=i!==0?Math.abs(i):Math.abs(t),a=i>0?-1:i<0?1:t>0?-1:1;return 3*n*a}function dg(r,e,t,i){r.addEventListener(e,t,i)}function FV(r,e,t,i){r.removeEventListener(e,t,i)}function Y2(r){return r.which===2||r.which===3}var iht,W2,nht,va=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};var pl=k(()=>{Vi();hg();iht=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,W2=[],nht=Te.browser.firefox&&+Te.browser.version.split(".")[0]<39});function GV(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function oht(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var HV,Z2;var WV=k(()=>{pl();HV=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var n=e.touches;if(!n)return;var a={points:[],touches:[],target:t,event:e};for(var o=0,s=n.length;o<s;o++){var l=n[o],u=_x(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)},r.prototype._recognize=function(e){for(var t in Z2)if(Z2.hasOwnProperty(t)){var i=Z2[t](this._track,e);if(i)return i}},r}();Z2={pinch:function(r,e){var t=r.length;if(!t)return;var i=(r[t-1]||{}).points,n=(r[t-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=GV(i)/GV(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=oht(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}});function Qe(){return[1,0,0,1,0,0]}function bs(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function hl(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Ri(r,e,t){var i=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function on(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function bn(r,e,t,i){if(i===void 0)i=[0,0];var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=n*f+s*c,r[1]=-n*c+s*f,r[2]=a*f+l*c,r[3]=-a*c+f*l,r[4]=f*(o-i[0])+c*(u-i[1])+i[0],r[5]=f*(u-i[1])-c*(o-i[0])+i[1],r}function wd(r,e,t){var i=t[0],n=t[1];return r[0]=e[0]*i,r[1]=e[1]*n,r[2]=e[2]*i,r[3]=e[3]*n,r[4]=e[4]*i,r[5]=e[5]*n,r}function mi(r,e){var t=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*i;if(!l)return null;return l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-t*s)*l,r}function YV(r){var e=Qe();return hl(e,r),e}var sht,Qt;var Tc=k(()=>{sht=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(!e)return;var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,n){e.x=t.x+i.x*n,e.y=t.y+i.y*n},r.lerp=function(e,t,i,n){var a=1-n;e.x=a*t.x+n*i.x,e.y=a*t.y+n*i.y},r}(),Qt=sht});function jV(r,e,t,i,n,a,o,s){var l=K2(e-t),u=K2(i-r),c=up(l,u),f=ZV[n],p=ZV[1-n],h=lht[n];if(e<t||i<r)if(l<u){if(a)q2[f]=-l;if(s)o[f]=e,o[h]=0}else{if(a)q2[f]=u;if(s)o[f]=r,o[h]=0}else{if(o)o[f]=Td(r,t),o[h]=up(e,i)-o[f];if(a){if(c<mg[0]||eo.useDir){if(mg[0]=up(c,mg[0]),l<u||!eo.bidirectional){if(vg[f]=l,vg[p]=0,eo.useDir)eo.calcDirMTV()}if(l>=u||!eo.bidirectional){if(vg[f]=-u,vg[p]=0,eo.useDir)eo.calcDirMTV()}}}}}function $2(){var r=0,e=new Qt,t=new Qt,i={minTv:new Qt,maxTv:new Qt,useDir:!1,dirMinTv:new Qt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){if(i.touchThreshold=0,a&&a.touchThreshold!=null)i.touchThreshold=Td(0,a.touchThreshold);if(i.negativeSize=!1,!o)return;if(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null){if(i.useDir=!0,i.dirMinTv.copy(i.minTv),t.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,!i.bidirectional)e.set(Math.cos(r),Math.sin(r))}},calcDirMTV:function(){var{minTv:a,dirMinTv:o}=i,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),c=l*a.y+u*a.x;if(n(c)){if(n(a.x)&&n(a.y))o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,n(t.x)&&n(t.y)){o.set(0,0);return}if((i.bidirectional||e.dot(t)>0)&&t.len()<o.len())o.copy(t)}};function n(a){return K2(a)<0.0000000001}return i}var up,Td,K2,ZV,lht,ap,op,sp,lp,eo,vg,q2,mg,yu,gg,j2,cp,J2,Sx,XV,uht,cht,X2,Gt;var fr=k(()=>{br();Tc();up=Math.min,Td=Math.max,K2=Math.abs,ZV=["x","y"],lht=["width","height"],ap=new Qt,op=new Qt,sp=new Qt,lp=new Qt,eo=$2(),vg=eo.minTv,q2=eo.maxTv,mg=[0,0],yu=function(){function r(e,t,i,n){j2(this,e,t,i,n)}return r.set=function(e,t,i,n,a){if(n<0)t=t+n,n=-n;if(a<0)i=i+a,a=-a;return e.x=t,e.y=i,e.width=n,e.height=a,e},r.prototype.union=function(e){var t=up(e.x,this.x),i=up(e.y,this.y);if(isFinite(this.x)&&isFinite(this.width))this.width=Td(e.x+e.width,this.x+this.width)-t;else this.width=e.width;if(isFinite(this.y)&&isFinite(this.height))this.height=Td(e.y+e.height,this.y+this.height)-i;else this.height=e.height;this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return J2(Qe(),this,e)},r.prototype.intersect=function(e,t,i){return r.intersect(this,e,t,i)},r.intersect=function(e,t,i,n){if(i)Qt.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a)a.x=a.y=a.width=a.height=NaN;if(!e||!t)return!1;if(!(e instanceof r))e=j2(uht,e.x,e.y,e.width,e.height);if(!(t instanceof r))t=j2(cht,t.x,t.y,t.width,t.height);var s=!!i;eo.reset(n,s);var l=eo.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,p=e.y+e.height-l,h=t.x+l,v=t.x+t.width-l,g=t.y+l,y=t.y+t.height-l;if(u>c||f>p||h>v||g>y)return!1;var m=!(c<h||v<u||p<g||y<f);if(s||a){if(mg[0]=1/0,mg[1]=0,jV(u,c,h,v,0,s,a,o),jV(f,p,g,y,1,s,a,o),s)Qt.copy(i,m?eo.useDir?eo.dirMinTv:vg:q2)}return m},r.contain=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){cp(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,i){if(!i){if(e!==t)cp(e,t);return}if(i[1]<0.00001&&i[1]>-0.00001&&i[2]<0.00001&&i[2]>-0.00001){var n=i[0],a=i[3],o=i[4],s=i[5];if(e.x=t.x*n+o,e.y=t.y*a+s,e.width=t.width*n,e.height=t.height*a,e.width<0)e.x+=e.width,e.width=-e.width;if(e.height<0)e.y+=e.height,e.height=-e.height;return}ap.x=sp.x=t.x,ap.y=lp.y=t.y,op.x=lp.x=t.x+t.width,op.y=sp.y=t.y+t.height,ap.transform(i),lp.transform(i),op.transform(i),sp.transform(i),e.x=up(ap.x,op.x,sp.x,lp.x),e.y=up(ap.y,op.y,sp.y,lp.y);var l=Td(ap.x,op.x,sp.x,lp.x),u=Td(ap.y,op.y,sp.y,lp.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,i){var n=i.width/t.width,a=i.height/t.height;return e=bs(e||[]),on(e,e,Mo(X2,-t.x,-t.y)),wd(e,e,Mo(X2,n,a)),on(e,e,Mo(X2,i.x,i.y)),e},r}(),gg=yu.create,j2=yu.set,cp=yu.copy,J2=yu.calculateTransform,Sx=yu.applyTransform,XV=yu.contain,uht=new yu(0,0,0,0),cht=new yu(0,0,0,0),X2=[];Gt=yu});function fht(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:pht}}function pht(){va(this.event)}function vht(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){var i=r,n=void 0,a=!1;while(i){if(i.ignoreClip)a=!0;if(!a){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}if(i.silent)n=!0;var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?qV:!0}return!1}function KV(r,e,t,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=vht(o,t,i))){if(!e.topTarget&&(e.topTarget=o),s!==qV){e.target=o;break}}}}function $V(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var qV="silent",hht,yg,dht,Q2,JV,QV;var t5=k(()=>{Wr();Z();br();NV();fl();pl();WV();fr();hht=function(r){Ee(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ai),yg=function(){function r(e,t){this.x=e,this.y=t}return r}(),dht=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Q2=new Gt(0,0,0,0),JV=function(r){Ee(e,r);function e(t,i,n,a,o){var s=r.call(this)||this;return s._hovered=new yg(0,0),s.storage=t,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new hht,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new kV(s),s}return e.prototype.setHandlerProxy=function(t){if(this.proxy)this.proxy.dispose();if(t)P(dht,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this;this.proxy=t},e.prototype.mousemove=function(t){var{zrX:i,zrY:n}=t,a=$V(this,i,n),o=this._hovered,s=o.target;if(s&&!s.__zr)o=this.findHover(o.x,o.y),s=o.target;var l=this._hovered=a?new yg(i,n):this.findHover(i,n),u=l.target,c=this.proxy;if(c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s)this.dispatchToElement(o,"mouseout",t);if(this.dispatchToElement(l,"mousemove",t),u&&u!==s)this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;if(i!=="only_globalout")this.dispatchToElement(this._hovered,"mouseout",t);if(i!=="no_globalout")this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new yg(0,0)},e.prototype.dispatch=function(t,i){var n=this[t];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,n){t=t||{};var a=t.target;if(a&&a.silent)return;var o="on"+i,s=fht(i,t,n);while(a)if(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,s.cancelBubble)break;if(!s.cancelBubble){if(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer)this.painter.eachOtherLayer(function(l){if(typeof l[o]==="function")l[o].call(l,s);if(l.trigger)l.trigger(i,s)})}},e.prototype.findHover=function(t,i,n){var a=this.storage.getDisplayList(),o=new yg(t,i);if(KV(a,o,t,i,n),this._pointerSize&&!o.target){var s=[],l=this._pointerSize,u=l/2,c=new Gt(t-u,i-u,l,l);for(var f=a.length-1;f>=0;f--){var p=a[f];if(p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)){if(Q2.copy(p.getBoundingRect()),p.transform)Q2.applyTransform(p.transform);if(Q2.intersect(c))s.push(p)}}if(s.length){var h=4,v=Math.PI/12,g=Math.PI*2;for(var y=0;y<u;y+=h)for(var m=0;m<g;m+=v){var d=t+y*Math.cos(m),x=i+y*Math.sin(m);if(KV(s,o,d,x,n),o.target)return o}}}return o},e.prototype.processGesture=function(t,i){if(!this._gestureMgr)this._gestureMgr=new HV;var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;t.gestureEvent=o;var s=new yg;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Ai);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){JV.prototype[r]=function(e){var{zrX:t,zrY:i}=e,n=$V(this,t,i),a,o;if(r!=="mouseup"||!n)a=this.findHover(t,i),o=a.target;if(r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Do(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});QV=JV});function mht(r){var e=0;while(r>=i5)e|=r&1,r>>=1;return r+e}function e5(r,e,t,i){var n=e+1;if(n===t)return 1;if(i(r[n++],r[e])<0){while(n<t&&i(r[n],r[n-1])<0)n++;ght(r,e,n)}else while(n<t&&i(r[n],r[n-1])>=0)n++;return n-e}function ght(r,e,t){t--;while(e<t){var i=r[e];r[e++]=r[t],r[t--]=i}}function r5(r,e,t,i,n){if(i===e)i++;for(;i<t;i++){var a=r[i],o=e,s=i,l;while(o<s)if(l=o+s>>>1,n(a,r[l])<0)s=l;else o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:while(u>0)r[o+u]=r[o+u-1],u--}r[o]=a}}function tE(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])>0){s=i-n;while(l<s&&a(r,e[t+n+l])>0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;o+=n,l+=n}else{s=n+1;while(l<s&&a(r,e[t+n-l])<=0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;var u=o;o=n-l,l=n-u}o++;while(o<l){var c=o+(l-o>>>1);if(a(r,e[t+c])>0)o=c+1;else l=c}return l}function eE(r,e,t,i,n,a){var o=0,s=0,l=1;if(a(r,e[t+n])<0){s=n+1;while(l<s&&a(r,e[t+n-l])<0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;var u=o;o=n-l,l=n-u}else{s=i-n;while(l<s&&a(r,e[t+n+l])>=0)if(o=l,l=(l<<1)+1,l<=0)l=s;if(l>s)l=s;o+=n,l+=n}o++;while(o<l){var c=o+(l-o>>>1);if(a(r,e[t+c])<0)l=c;else o=c+1}return l}function yht(r,e){var t=_g,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){while(a>1){var h=a-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1]){if(n[h-1]<n[h+1])h--}else if(n[h]>n[h+1])break;c(h)}}function u(){while(a>1){var h=a-2;if(h>0&&n[h-1]<n[h+1])h--;c(h)}}function c(h){var v=i[h],g=n[h],y=i[h+1],m=n[h+1];if(n[h]=g+m,h===a-3)i[h+1]=i[h+2],n[h+1]=n[h+2];a--;var d=eE(r[y],r,v,g,0,e);if(v+=d,g-=d,g===0)return;if(m=tE(r[v+g-1],r,y,m,m-1,e),m===0)return;if(g<=m)f(v,g,y,m);else p(v,g,y,m)}function f(h,v,g,y){var m=0;for(m=0;m<v;m++)o[m]=r[h+m];var d=0,x=g,S=h;if(r[S++]=r[x++],--y===0){for(m=0;m<v;m++)r[S+m]=o[d+m];return}if(v===1){for(m=0;m<y;m++)r[S+m]=r[x+m];r[S+y]=o[d];return}var w=t,T,A,M;while(!0){T=0,A=0,M=!1;do if(e(r[x],o[d])<0){if(r[S++]=r[x++],A++,T=0,--y===0){M=!0;break}}else if(r[S++]=o[d++],T++,A=0,--v===1){M=!0;break}while((T|A)<w);if(M)break;do{if(T=eE(r[x],o,d,v,0,e),T!==0){for(m=0;m<T;m++)r[S+m]=o[d+m];if(S+=T,d+=T,v-=T,v<=1){M=!0;break}}if(r[S++]=r[x++],--y===0){M=!0;break}if(A=tE(o[d],r,x,y,0,e),A!==0){for(m=0;m<A;m++)r[S+m]=r[x+m];if(S+=A,x+=A,y-=A,y===0){M=!0;break}}if(r[S++]=o[d++],--v===1){M=!0;break}w--}while(T>=_g||A>=_g);if(M)break;if(w<0)w=0;w+=2}if(t=w,t<1&&(t=1),v===1){for(m=0;m<y;m++)r[S+m]=r[x+m];r[S+y]=o[d]}else if(v===0)throw Error();else for(m=0;m<v;m++)r[S+m]=o[d+m]}function p(h,v,g,y){var m=0;for(m=0;m<y;m++)o[m]=r[g+m];var d=h+v-1,x=y-1,S=g+y-1,w=0,T=0;if(r[S--]=r[d--],--v===0){w=S-(y-1);for(m=0;m<y;m++)r[w+m]=o[m];return}if(y===1){S-=v,d-=v,T=S+1,w=d+1;for(m=v-1;m>=0;m--)r[T+m]=r[w+m];r[S]=o[x];return}var A=t;while(!0){var M=0,D=0,L=!1;do if(e(o[x],r[d])<0){if(r[S--]=r[d--],M++,D=0,--v===0){L=!0;break}}else if(r[S--]=o[x--],D++,M=0,--y===1){L=!0;break}while((M|D)<A);if(L)break;do{if(M=v-eE(o[x],r,h,v,v-1,e),M!==0){S-=M,d-=M,v-=M,T=S+1,w=d+1;for(m=M-1;m>=0;m--)r[T+m]=r[w+m];if(v===0){L=!0;break}}if(r[S--]=o[x--],--y===1){L=!0;break}if(D=y-tE(r[d],o,0,y,y-1,e),D!==0){S-=D,x-=D,y-=D,T=S+1,w=x+1;for(m=0;m<D;m++)r[T+m]=o[w+m];if(y<=1){L=!0;break}}if(r[S--]=r[d--],--v===0){L=!0;break}A--}while(M>=_g||D>=_g);if(L)break;if(A<0)A=0;A+=2}if(t=A,t<1)t=1;if(y===1){S-=v,d-=v,T=S+1,w=d+1;for(m=v-1;m>=0;m--)r[T+m]=r[w+m];r[S]=o[x]}else if(y===0)throw Error();else{w=S-(y-1);for(m=0;m<y;m++)r[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function fp(r,e,t,i){if(!t)t=0;if(!i)i=r.length;var n=i-t;if(n<2)return;var a=0;if(n<i5){a=e5(r,t,i,e),r5(r,t,i,t+a,e);return}var o=yht(r,e),s=mht(n);do{if(a=e5(r,t,i,e),a<s){var l=n;if(l>s)l=s;r5(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),n-=a,t+=a}while(n!==0);o.forceMergeRuns()}var i5=32,_g=7;var Ci=1,pp=2,Ac=4;function rE(){if(n5)return;n5=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors")}function a5(r,e){if(r.zlevel===e.zlevel){if(r.z===e.z)return r.z2-e.z2;return r.z-e.z}return r.zlevel-e.zlevel}var n5=!1,_ht,o5;var s5=k(()=>{Z();_ht=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=a5}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;if(e||!i.length)this.updateDisplayList(t);return i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;var t=this._roots,i=this._displayList;for(var n=0,a=t.length;n<a;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,fp(i,a5)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(e.ignore&&!i)return;e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(!s)s=e.__clipPaths=[];if(a)for(var l=0;l<t.length;l++)s[o++]=t[l];var u=n,c=e;while(u)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s)s.length=o;if(e.childrenRef){var f=e.childrenRef();for(var p=0;p<f.length;p++){var h=f[p];if(e.__dirty)h.__dirty|=Ci;this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;if(isNaN(v.z))rE(),v.z=0;if(isNaN(v.z2))rE(),v.z2=0;if(isNaN(v.zlevel))rE(),v.zlevel=0;this._displayList[this._displayListLen++]=v}var g=e.getDecalElement&&e.getDecalElement();if(g)this._updateAndAddDisplayable(g,s,i);var y=e.getTextGuideLine();if(y)this._updateAndAddDisplayable(y,s,i);var m=e.getTextContent();if(m)this._updateAndAddDisplayable(m,s,i)},r.prototype.addRoot=function(e){if(e.__zr&&e.__zr.storage===this)return;this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var n=Xt(this._roots,e);if(n>=0)this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0;return},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),o5=_ht});var l5,xg;var iE=k(()=>{Vi();l5=Te.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};xg=l5});var bx,Tx;var nE=k(()=>{bx={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){if((r*=2)<1)return 0.5*r*r;return-0.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){if((r*=2)<1)return 0.5*r*r*r;return 0.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){if((r*=2)<1)return 0.5*r*r*r*r;return-0.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){if((r*=2)<1)return 0.5*r*r*r*r*r;return 0.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return 0.5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){if(r===0)return 0;if(r===1)return 1;if((r*=2)<1)return 0.5*Math.pow(1024,r-1);return 0.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){if((r*=2)<1)return-0.5*(Math.sqrt(1-r*r)-1);return 0.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=0.1,i=0.4;if(r===0)return 0;if(r===1)return 1;if(!t||t<1)t=1,e=i/4;else e=i*Math.asin(1/t)/(2*Math.PI);return-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i))},elasticOut:function(r){var e,t=0.1,i=0.4;if(r===0)return 0;if(r===1)return 1;if(!t||t<1)t=1,e=i/4;else e=i*Math.asin(1/t)/(2*Math.PI);return t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1},elasticInOut:function(r){var e,t=0.1,i=0.4;if(r===0)return 0;if(r===1)return 1;if(!t||t<1)t=1,e=i/4;else e=i*Math.asin(1/t)/(2*Math.PI);if((r*=2)<1)return-0.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i));return t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*0.5+1},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;if((r*=2)<1)return 0.5*(r*r*((e+1)*r-e));return 0.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-bx.bounceOut(1-r)},bounceOut:function(r){if(r<0.36363636363636365)return 7.5625*r*r;else if(r<0.7272727272727273)return 7.5625*(r-=0.5454545454545454)*r+0.75;else if(r<0.9090909090909091)return 7.5625*(r-=0.8181818181818182)*r+0.9375;else return 7.5625*(r-=0.9545454545454546)*r+0.984375},bounceInOut:function(r){if(r<0.5)return bx.bounceIn(r*2)*0.5;return bx.bounceOut(r*2-1)*0.5+0.5}},Tx=bx});function Cc(r){return r>-Ex&&r<Ex}function f5(r){return r>Ex||r<-Ex}function ni(r,e,t,i,n){var a=1-n;return a*a*(a*r+3*n*e)+n*n*(n*i+3*a*t)}function aE(r,e,t,i,n){var a=1-n;return 3*(((e-r)*a+2*(t-e)*n)*a+(i-t)*n*n)}function hp(r,e,t,i,n,a){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,c=s*s-3*o*l,f=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Cc(c)&&Cc(f))if(Cc(s))a[0]=0;else{var v=-l/s;if(v>=0&&v<=1)a[h++]=v}else{var g=f*f-4*c*p;if(Cc(g)){var y=f/c,v=-s/o+y,m=-y/2;if(v>=0&&v<=1)a[h++]=v;if(m>=0&&m<=1)a[h++]=m}else if(g>0){var d=Ec(g),x=c*s+1.5*o*(-f+d),S=c*s+1.5*o*(-f-d);if(x<0)x=-Ax(-x,Cx);else x=Ax(x,Cx);if(S<0)S=-Ax(-S,Cx);else S=Ax(S,Cx);var v=(-s-(x+S))/(3*o);if(v>=0&&v<=1)a[h++]=v}else{var w=(2*c*s-3*o*f)/(2*Ec(c*c*c)),T=Math.acos(w)/3,A=Ec(c),M=Math.cos(T),v=(-s-2*A*M)/(3*o),m=(-s+A*(M+u5*Math.sin(T)))/(3*o),D=(-s+A*(M-u5*Math.sin(T)))/(3*o);if(v>=0&&v<=1)a[h++]=v;if(m>=0&&m<=1)a[h++]=m;if(D>=0&&D<=1)a[h++]=D}}return h}function Mx(r,e,t,i,n){var a=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Cc(o)){if(f5(a)){var u=-s/a;if(u>=0&&u<=1)n[l++]=u}}else{var c=a*a-4*o*s;if(Cc(c))n[0]=-a/(2*o);else if(c>0){var f=Ec(c),u=(-a+f)/(2*o),p=(-a-f)/(2*o);if(u>=0&&u<=1)n[l++]=u;if(p>=0&&p<=1)n[l++]=p}}return l}function Po(r,e,t,i,n,a){var o=(e-r)*n+r,s=(t-e)*n+e,l=(i-t)*n+t,u=(s-o)*n+o,c=(l-s)*n+s,f=(c-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=i}function Lx(r,e,t,i,n,a,o,s,l,u,c){var f,p=0.005,h=1/0,v,g,y,m;dl[0]=l,dl[1]=u;for(var d=0;d<1;d+=0.05)if(Io[0]=ni(r,t,n,o,d),Io[1]=ni(e,i,a,s,d),y=gu(dl,Io),y<h)f=d,h=y;h=1/0;for(var x=0;x<32;x++){if(p<c5)break;if(v=f-p,g=f+p,Io[0]=ni(r,t,n,o,v),Io[1]=ni(e,i,a,s,v),y=gu(Io,dl),v>=0&&y<h)f=v,h=y;else if(Ad[0]=ni(r,t,n,o,g),Ad[1]=ni(e,i,a,s,g),m=gu(Ad,dl),g<=1&&m<h)f=g,h=m;else p*=0.5}if(c)c[0]=ni(r,t,n,o,f),c[1]=ni(e,i,a,s,f);return Ec(h)}function p5(r,e,t,i,n,a,o,s,l){var u=r,c=e,f=0,p=1/l;for(var h=1;h<=l;h++){var v=h*p,g=ni(r,t,n,o,v),y=ni(e,i,a,s,v),m=g-u,d=y-c;f+=Math.sqrt(m*m+d*d),u=g,c=y}return f}function ci(r,e,t,i){var n=1-i;return n*(n*r+2*i*e)+i*i*t}function Sg(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function h5(r,e,t,i,n){var a=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(Cc(a)){if(f5(o)){var u=-s/o;if(u>=0&&u<=1)n[l++]=u}}else{var c=o*o-4*a*s;if(Cc(c)){var u=-o/(2*a);if(u>=0&&u<=1)n[l++]=u}else if(c>0){var f=Ec(c),u=(-o+f)/(2*a),p=(-o-f)/(2*a);if(u>=0&&u<=1)n[l++]=u;if(p>=0&&p<=1)n[l++]=p}}return l}function Dx(r,e,t){var i=r+t-2*e;if(i===0)return 0.5;else return(r-e)/i}function Mc(r,e,t,i,n){var a=(e-r)*i+r,o=(t-e)*i+e,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Ix(r,e,t,i,n,a,o,s,l){var u,c=0.005,f=1/0;dl[0]=o,dl[1]=s;for(var p=0;p<1;p+=0.05){Io[0]=ci(r,t,n,p),Io[1]=ci(e,i,a,p);var h=gu(dl,Io);if(h<f)u=p,f=h}f=1/0;for(var v=0;v<32;v++){if(c<c5)break;var g=u-c,y=u+c;Io[0]=ci(r,t,n,g),Io[1]=ci(e,i,a,g);var h=gu(Io,dl);if(g>=0&&h<f)u=g,f=h;else{Ad[0]=ci(r,t,n,y),Ad[1]=ci(e,i,a,y);var m=gu(Ad,dl);if(y<=1&&m<f)u=y,f=m;else c*=0.5}}if(l)l[0]=ci(r,t,n,u),l[1]=ci(e,i,a,u);return Ec(f)}function d5(r,e,t,i,n,a,o){var s=r,l=e,u=0,c=1/o;for(var f=1;f<=o;f++){var p=f*c,h=ci(r,t,n,p),v=ci(e,i,a,p),g=h-s,y=v-l;u+=Math.sqrt(g*g+y*y),s=h,l=v}return u}var Ax,Ec,Ex=0.00000001,c5=0.0001,u5,Cx=0.3333333333333333,dl,Io,Ad;var ga=k(()=>{br();Ax=Math.pow,Ec=Math.sqrt,u5=Ec(3),dl=cl(),Io=cl(),Ad=cl()});function Cd(r){var e=r&&xht.exec(r);if(e){var t=e[1].split(","),i=+Ti(t[0]),n=+Ti(t[1]),a=+Ti(t[2]),o=+Ti(t[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:hp(0,i,a,1,l,s)&&ni(0,n,o,1,s[0])}}}var xht;var Px=k(()=>{ga();Z();xht=/cubic-bezier\(([0-9,\.e ]+)\)/});var Sht,v5;var m5=k(()=>{nE();Z();Px();Sht=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1000,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ar,this.ondestroy=e.ondestroy||ar,this.onrestart=e.onrestart||ar,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(!this._inited)this._startTime=e+this._delay,this._inited=!0;if(this._paused){this._pausedTime+=t;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;if(a<0)a=0;a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Mt(e)?e:Tx[e]||Cd(e)},r}(),v5=Sht});var g5,bht,wht,vl;var wg=k(()=>{g5=function(){function r(e){this.value=e}return r}(),bht=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new g5(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){if(!this.head)this.head=this.tail=e;else this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e;this._len++},r.prototype.remove=function(e){var{prev:t,next:i}=e;if(t)t.next=i;else this.head=i;if(i)i.prev=t;else this.tail=t;e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),wht=function(){function r(e){this._list=new bht,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}if(s)s.value=t;else s=new g5(t);s.key=e,i.insertEntry(s),n[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null){if(t!==i.tail)i.remove(t),i.insertEntry(t);return t.value}},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),vl=wht});function ws(r){return r=Math.round(r),r<0?0:r>255?255:r}function Tht(r){return r=Math.round(r),r<0?0:r>360?360:r}function Tg(r){return r<0?0:r>1?1:r}function oE(r){var e=r;if(e.length&&e.charAt(e.length-1)==="%")return ws(parseFloat(e)/100*255);return ws(parseInt(e,10))}function _u(r){var e=r;if(e.length&&e.charAt(e.length-1)==="%")return Tg(parseFloat(e)/100);return Tg(parseFloat(e))}function sE(r,e,t){if(t<0)t+=1;else if(t>1)t-=1;if(t*6<1)return r+(e-r)*t*6;if(t*2<1)return e;if(t*3<2)return r+(e-r)*(0.6666666666666666-t)*6;return r}function Lc(r,e,t){return r+(e-r)*t}function Ro(r,e,t,i,n){return r[0]=e,r[1]=t,r[2]=i,r[3]=n,r}function lE(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}function Ed(r,e){if(Rx)lE(Rx,e);Rx=x5.put(r,Rx||e.slice())}function Oi(r,e){if(!r)return;e=e||[];var t=x5.get(r);if(t)return lE(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in y5)return lE(e,y5[i]),Ed(r,e),e;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Ro(e,0,0,0,1);return}return Ro(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ed(r,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ro(e,0,0,0,1);return}return Ro(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ed(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ro(e,+u[0],+u[1],+u[2],1):Ro(e,0,0,0,1);c=_u(u.pop());case"rgb":if(u.length>=3)return Ro(e,oE(u[0]),oE(u[1]),oE(u[2]),u.length===3?c:_u(u[3])),Ed(r,e),e;else{Ro(e,0,0,0,1);return}case"hsla":if(u.length!==4){Ro(e,0,0,0,1);return}return u[3]=_u(u[3]),uE(u,e),Ed(r,e),e;case"hsl":if(u.length!==3){Ro(e,0,0,0,1);return}return uE(u,e),Ed(r,e),e;default:return}}Ro(e,0,0,0,1);return}function uE(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=_u(r[1]),n=_u(r[2]),a=n<=0.5?n*(i+1):n+i-n*i,o=n*2-a;if(e=e||[],Ro(e,ws(sE(o,a,t+0.3333333333333333)*255),ws(sE(o,a,t)*255),ws(sE(o,a,t-0.3333333333333333)*255),1),r.length===4)e[3]=r[3];return e}function Aht(r){if(!r)return;var e=r[0]/255,t=r[1]/255,i=r[2]/255,n=Math.min(e,t,i),a=Math.max(e,t,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{if(s<0.5)u=o/(a+n);else u=o/(2-a-n);var c=((a-e)/6+o/2)/o,f=((a-t)/6+o/2)/o,p=((a-i)/6+o/2)/o;if(e===a)l=p-f;else if(t===a)l=0.3333333333333333+c-p;else if(i===a)l=0.6666666666666666+f-c;if(l<0)l+=1;if(l>1)l-=1}var h=[l*360,u,s];if(r[3]!=null)h.push(r[3]);return h}function Ox(r,e){var t=Oi(r);if(t){for(var i=0;i<3;i++){if(e<0)t[i]=t[i]*(1-e)|0;else t[i]=(255-t[i])*e+t[i]|0;if(t[i]>255)t[i]=255;else if(t[i]<0)t[i]=0}return ya(t,t.length===4?"rgba":"rgb")}}function kx(r,e,t){if(!(e&&e.length)||!(r>=0&&r<=1))return;t=t||[];var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=e[n],s=e[a],l=i-n;return t[0]=ws(Lc(o[0],s[0],l)),t[1]=ws(Lc(o[1],s[1],l)),t[2]=ws(Lc(o[2],s[2],l)),t[3]=Tg(Lc(o[3],s[3],l)),t}function S5(r,e,t){if(!(e&&e.length)||!(r>=0&&r<=1))return;var i=r*(e.length-1),n=Math.floor(i),a=Math.ceil(i),o=Oi(e[n]),s=Oi(e[a]),l=i-n,u=ya([ws(Lc(o[0],s[0],l)),ws(Lc(o[1],s[1],l)),ws(Lc(o[2],s[2],l)),Tg(Lc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:a,value:i}:u}function Oo(r,e,t,i){var n=Oi(r);if(r)return n=Aht(n),e!=null&&(n[0]=Tht(Mt(e)?e(n[0]):e)),t!=null&&(n[1]=_u(Mt(t)?t(n[1]):t)),i!=null&&(n[2]=_u(Mt(i)?i(n[2]):i)),ya(uE(n),"rgba")}function dp(r,e){var t=Oi(r);if(t&&e!=null)return t[3]=Tg(e),ya(t,"rgba")}function ya(r,e){if(!r||!r.length)return;var t=r[0]+","+r[1]+","+r[2];if(e==="rgba"||e==="hsva"||e==="hsla")t+=","+r[3];return e+"("+t+")"}function Md(r,e){var t=Oi(r);return t?(0.299*t[0]+0.587*t[1]+0.114*t[2])*t[3]/255+(1-t[3])*e:0}function Ag(r){if(ht(r)){var e=_5.get(r);if(!e)e=Ox(r,-0.1),_5.put(r,e);return e}else if(Sc(r)){var t=et({},r);return t.colorStops=nt(r.colorStops,function(i){return{offset:i.offset,color:Ox(i.color,-0.1)}}),t}return r}var y5,x5,Rx=null,_5;var sn=k(()=>{wg();Z();y5={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]};x5=new vl(20);_5=new vl(100)});function Dc(r){var e;if(!r||r==="transparent")r="none";else if(typeof r==="string"&&r.indexOf("rgba")>-1){var t=Oi(r);if(t)r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3]}return{color:r,opacity:e==null?1:e}}function ml(r){return r<b5&&r>-b5}function zx(r){return Bx(r*1000)/1000}function Ux(r){return Bx(r*1e4)/1e4}function w5(r){return"matrix("+zx(r[0])+","+zx(r[1])+","+zx(r[2])+","+zx(r[3])+","+Ux(r[4])+","+Ux(r[5])+")"}function A5(r,e,t){if(t==="top")r+=e/2;else if(t==="bottom")r-=e/2;return r}function C5(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function E5(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function cE(r){return r&&!!r.image}function Cht(r){return r&&!!r.svgElement}function Cg(r){return cE(r)||Cht(r)}function Vx(r){return r.type==="linear"}function Fx(r){return r.type==="radial"}function Gx(r){return r&&(r.type==="linear"||r.type==="radial")}function Eg(r){return"url(#"+r+")"}function Hx(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Wx(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*yd,n=St(r.scaleX,1),a=St(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];if(e||t)l.push("translate("+e+"px,"+t+"px)");if(i)l.push("rotate("+i+")");if(n!==1||a!==1)l.push("scale("+n+","+a+")");if(o||s)l.push("skew("+Bx(o*yd)+"deg, "+Bx(s*yd)+"deg)");return l.join(" ")}var Bx,b5=0.0001,T5,M5;var vp=k(()=>{Z();sn();Bx=Math.round;T5={left:"start",right:"end",center:"middle",middle:"middle"};M5=function(){if(typeof Buffer<"u"&&typeof Buffer.from==="function")return function(r){return Buffer.from(r).toString("base64")};if(typeof btoa==="function"&&typeof unescape==="function"&&typeof encodeURIComponent==="function")return function(r){return btoa(unescape(encodeURIComponent(r)))};return function(r){return null}}()});function xu(r,e,t){return(e-r)*t+r}function fE(r,e,t,i){var n=e.length;for(var a=0;a<n;a++)r[a]=xu(e[a],t[a],i);return r}function Eht(r,e,t,i){var n=e.length,a=n&&e[0].length;for(var o=0;o<n;o++){if(!r[o])r[o]=[];for(var s=0;s<a;s++)r[o][s]=xu(e[o][s],t[o][s],i)}return r}function Yx(r,e,t,i){var n=e.length;for(var a=0;a<n;a++)r[a]=e[a]+t[a]*i;return r}function L5(r,e,t,i){var n=e.length,a=n&&e[0].length;for(var o=0;o<n;o++){if(!r[o])r[o]=[];for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function Mht(r,e){var t=r.length,i=e.length,n=t>i?e:r,a=Math.min(t,i),o=n[a-1]||{color:[0,0,0,0],offset:0};for(var s=a;s<Math.max(t,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function Lht(r,e,t){var i=r,n=e;if(!i.push||!n.push)return;var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(t===1?n[l]:pE.call(n[l]))}var u=i[0]&&i[0].length;for(var l=0;l<i.length;l++)if(t===1){if(isNaN(i[l]))i[l]=n[l]}else for(var c=0;c<u;c++)if(isNaN(i[l][c]))i[l][c]=n[l][c]}function mp(r){if(ii(r)){var e=r.length;if(ii(r[0])){var t=[];for(var i=0;i<e;i++)t.push(pE.call(r[i]));return t}return pE.call(r)}return r}function Xx(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Dht(r){return ii(r&&r[0])?2:1}function I5(r){return r===hE||r===dE}function jx(r){return r===Kx||r===P5}var pE,Zx=0,Kx=1,P5=2,Lg=3,hE=4,dE=5,D5=6,Mg,Iht,Pht,Dg;var qx=k(()=>{m5();sn();Z();nE();Px();vp();pE=Array.prototype.slice;Mg=[0,0,0,0],Iht=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){if(this._finished=!0,this._additiveTrack)this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=D5,l=t;if(ii(t)){var u=Dht(t);if(s=u,u===1&&!ue(t[0])||u===2&&!ue(t[0][0]))o=!0}else if(ue(t)&&!Jr(t))s=Zx;else if(ht(t))if(!isNaN(+t))s=Zx;else{var c=Oi(t);if(c)l=c,s=Lg}else if(Sc(t)){var f=et({},l);if(f.colorStops=nt(t.colorStops,function(h){return{offset:h.offset,color:Oi(h.color)}}),Vx(t))s=hE;else if(Fx(t))s=dE;l=f}if(a===0)this.valType=s;else if(s!==this.valType||s===D5)o=!0;this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:t,percent:0};if(i)p.easing=i,p.easingFunc=Mt(i)?i:Tx[i]||Cd(i);return n.push(p),p},r.prototype.prepare=function(e,t){var i=this.keyframes;if(this._needsSort)i.sort(function(g,y){return g.time-y.time});var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=jx(n),u=I5(n);for(var c=0;c<a;c++){var f=i[c],p=f.value,h=o.value;if(f.percent=f.time/e,!s){if(l&&c!==a-1)Lht(p,h,n);else if(u)Mht(p.colorStops,h.colorStops)}}if(!s&&n!==dE&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;var v=i[0].value;for(var c=0;c<a;c++)if(n===Zx)i[c].additiveValue=i[c].value-v;else if(n===Lg)i[c].additiveValue=Yx([],i[c].value,v,-1);else if(jx(n))i[c].additiveValue=n===Kx?Yx([],i[c].value,v,-1):L5([],i[c].value,v,-1)}},r.prototype.step=function(e,t){if(this._finished)return;if(this._additiveTrack&&this._additiveTrack._finished)this._additiveTrack=null;var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Lg,c,f=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(t<0)c=0;else if(t<this._lastFrP){var g=p(f+1,s-1);for(c=g;c>=0;c--)if(o[c].percent<=t)break;c=p(c,s-2)}else{for(c=f;c<s;c++)if(o[c].percent>t)break;c=p(c-1,s-2)}v=o[c+1],h=o[c]}if(!(h&&v))return;this._lastFr=c,this._lastFrP=t;var y=v.percent-h.percent,m=y===0?1:p((t-h.percent)/y,1);if(v.easingFunc)m=v.easingFunc(m);var d=i?this._additiveValue:u?Mg:e[l];if((jx(a)||u)&&!d)d=this._additiveValue=[];if(this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(jx(a))a===Kx?fE(d,h[n],v[n],m):Eht(d,h[n],v[n],m);else if(I5(a)){var x=h[n],S=v[n],w=a===hE;if(e[l]={type:w?"linear":"radial",x:xu(x.x,S.x,m),y:xu(x.y,S.y,m),colorStops:nt(x.colorStops,function(A,M){var D=S.colorStops[M];return{offset:xu(A.offset,D.offset,m),color:Xx(fE([],A.color,D.color,m))}}),global:S.global},w)e[l].x2=xu(x.x2,S.x2,m),e[l].y2=xu(x.y2,S.y2,m);else e[l].r=xu(x.r,S.r,m)}else if(u){if(fE(d,h[n],v[n],m),!i)e[l]=Xx(d)}else{var T=xu(h[n],v[n],m);if(i)this._additiveValue=T;else e[l]=T}if(i)this._addToTarget(e)},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,n=this._additiveValue;if(t===Zx)e[i]=e[i]+n;else if(t===Lg)Oi(e[i],Mg),Yx(Mg,Mg,n,1),e[i]=Xx(Mg);else if(t===Kx)Yx(e[i],e[i],n,1);else if(t===P5)L5(e[i],e[i],n,1)},r}(),Pht=function(){function r(e,t,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){xs("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,le(t),i)},r.prototype.whenWithKeys=function(e,t,i,n){var a=this._tracks;for(var o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new Iht(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,p=f[f.length-1];if(u=p&&p.value,c.valType===Lg&&u)u=Xx(u)}else u=this._target[s];if(u==null)continue;if(e>0)l.addKeyframe(0,mp(u),n);this._trackKeys.push(s)}l.addKeyframe(e,mp(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e){var t=e.length;for(var i=0;i<t;i++)e[i].call(this)}},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e)e.removeClip(this._clip);if(this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){var e=this._tracks,t=this._trackKeys;for(var i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);if(a)t=a}return t},r.prototype.start=function(e){if(this._started>0)return;this._started=1;var t=this,i=[],n=this._maxTime||0;for(var a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];if(f)t._target[s.propName]=f.rawValue;s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new v5({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var v=t._additiveAnimators;if(v){var g=!1;for(var y=0;y<v.length;y++)if(v[y]._clip){g=!0;break}if(!g)t._additiveAnimators=null}for(var y=0;y<i.length;y++)i[y].step(t._target,h);var m=t._onframeCbs;if(m)for(var y=0;y<m.length;y++)m[y](t._target,h)},ondestroy:function(){t._doneCallback()}});if(this._clip=p,this.animation)this.animation.addClip(p);if(e)p.setEasing(e)}else this._doneCallback();return this},r.prototype.stop=function(e){if(!this._clip)return;var t=this._clip;if(e)t.onframe(1);this._abortedCallback()},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){if(e){if(!this._onframeCbs)this._onframeCbs=[];this._onframeCbs.push(e)}return this},r.prototype.done=function(e){if(e){if(!this._doneCbs)this._doneCbs=[];this._doneCbs.push(e)}return this},r.prototype.aborted=function(e){if(e){if(!this._abortedCbs)this._abortedCbs=[];this._abortedCbs.push(e)}return this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return nt(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;var i=this._tracks,n=this._trackKeys;for(var a=0;a<e.length;a++){var o=i[e[a]];if(o&&!o.isFinished()){if(t)o.step(this._target,1);else if(this._started===1)o.step(this._target,0);o.setFinished()}}var s=!0;for(var a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}if(s)this._abortedCallback();return s},r.prototype.saveTo=function(e,t,i){if(!e)return;t=t||this._trackKeys;for(var n=0;n<t.length;n++){var a=t[n],o=this._tracks[a];if(!o||o.isFinished())continue;var s=o.keyframes,l=s[i?0:s.length-1];if(l)e[a]=mp(l.rawValue)}},r.prototype.__changeFinalValue=function(e,t){t=t||le(e);for(var i=0;i<t.length;i++){var n=t[i],a=this._tracks[n];if(!a)continue;var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}},r}(),Dg=Pht});function gp(){return new Date().getTime()}var Rht,R5;var O5=k(()=>{Wr();fl();iE();qx();Rht=function(r){Ee(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){if(t.animation)this.removeClip(t);if(!this._head)this._head=this._tail=t;else this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t;t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();if(i)this.addClip(i)},e.prototype.removeClip=function(t){if(!t.animation)return;var{prev:i,next:n}=t;if(i)i.next=n;else this._head=n;if(n)n.prev=i;else this._tail=i;t.next=t.prev=t.animation=null},e.prototype.removeAnimator=function(t){var i=t.getClip();if(i)this.removeClip(i);t.animation=null},e.prototype.update=function(t){var i=gp()-this._pausedTime,n=i-this._time,a=this._head;while(a){var o=a.next,s=a.step(i,n);if(s)a.ondestroy(),this.removeClip(a),a=o;else a=o}if(this._time=i,!t)this.trigger("frame",n),this.stage.update&&this.stage.update()},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){if(t._running)xg(i),!t._paused&&t.update()}xg(i)},e.prototype.start=function(){if(this._running)return;this._time=gp(),this._pausedTime=0,this._startLoop()},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){if(!this._paused)this._pauseStart=gp(),this._paused=!0},e.prototype.resume=function(){if(this._paused)this._pausedTime+=gp()-this._pauseStart,this._paused=!1},e.prototype.clear=function(){var t=this._head;while(t){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var n=new Dg(t,i.loop);return this.addAnimator(n),n},e}(Ai),R5=Rht});function _E(r){var e=r.pointerType;return e==="pen"||e==="touch"}function kht(r){if(r.touching=!0,r.touchTimer!=null)clearTimeout(r.touchTimer),r.touchTimer=null;r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function gE(r){r&&(r.zrByTouch=!0)}function Nht(r,e){return da(r.dom,new zht(r,e),!0)}function B5(r,e){var t=e,i=!1;while(t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot))t=t.parentNode;return i}function Bht(r,e){var t=e.domHandlers;if(Te.pointerEventsSupported)P(mE.pointer,function(i){Jx(e,i,function(n){t[i].call(r,n)})});else{if(Te.touchEventsSupported)P(mE.touch,function(i){Jx(e,i,function(n){t[i].call(r,n),kht(e)})});P(mE.mouse,function(i){Jx(e,i,function(n){if(n=xx(n),!e.touching)t[i].call(r,n)})})}}function Uht(r,e){if(Te.pointerEventsSupported)P(k5.pointer,t);else if(!Te.touchEventsSupported)P(k5.mouse,t);function t(i){function n(a){if(a=xx(a),!B5(r,a.target))a=Nht(r,a),e.domHandlers[i].call(r,a)}Jx(e,i,n,{capture:!0})}}function Jx(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,dg(r.domTarget,e,t,i)}function yE(r){var e=r.mounted;for(var t in e)if(e.hasOwnProperty(t))FV(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Oht=300,vE,mE,k5,N5=!1,zht,Ts,xE,z5,Vht,U5;var V5=k(()=>{Wr();pl();Z();fl();Vi();vE=Te.domSupported,mE=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=nt(r,function(n){var a=n.replace("mouse","pointer");return t.hasOwnProperty(a)?a:n});return{mouse:r,touch:e,pointer:i}}(),k5={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};zht=function(){function r(e,t){this.stopPropagation=ar,this.stopImmediatePropagation=ar,this.preventDefault=ar,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Ts={mousedown:function(r){r=da(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=da(this.dom,r);var e=this.__mayPointerCapture;if(e&&(r.zrX!==e[0]||r.zrY!==e[1]))this.__togglePointerCapture(!0);this.trigger("mousemove",r)},mouseup:function(r){r=da(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=da(this.dom,r);var e=r.toElement||r.relatedTarget;if(!B5(this,e)){if(this.__pointerCapturing)r.zrEventControl="no_globalout";this.trigger("mouseout",r)}},wheel:function(r){N5=!0,r=da(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){if(N5)return;r=da(this.dom,r),this.trigger("mousewheel",r)},touchstart:function(r){r=da(this.dom,r),gE(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ts.mousemove.call(this,r),Ts.mousedown.call(this,r)},touchmove:function(r){r=da(this.dom,r),gE(r),this.handler.processGesture(r,"change"),Ts.mousemove.call(this,r)},touchend:function(r){if(r=da(this.dom,r),gE(r),this.handler.processGesture(r,"end"),Ts.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Oht)Ts.click.call(this,r)},pointerdown:function(r){Ts.mousedown.call(this,r)},pointermove:function(r){if(!_E(r))Ts.mousemove.call(this,r)},pointerup:function(r){Ts.mouseup.call(this,r)},pointerout:function(r){if(!_E(r))Ts.mouseout.call(this,r)}};P(["click","dblclick","contextmenu"],function(r){Ts[r]=function(e){e=da(this.dom,e),this.trigger(r,e)}});xE={pointermove:function(r){if(!_E(r))xE.mousemove.call(this,r)},pointerup:function(r){xE.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;if(this.__togglePointerCapture(!1),this.trigger("mouseup",r),e)r.zrEventControl="only_globalout",this.trigger("mouseout",r)}};z5=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),Vht=function(r){Ee(e,r);function e(t,i){var n=r.call(this)||this;if(n.__pointerCapturing=!1,n.dom=t,n.painterRoot=i,n._localHandlerScope=new z5(t,Ts),vE)n._globalHandlerScope=new z5(document,xE);return Bht(n,n._localHandlerScope),n}return e.prototype.dispose=function(){if(yE(this._localHandlerScope),vE)yE(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,vE&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?Uht(this,i):yE(i)}},e}(Ai),U5=Vht});var F5=1,yp,Ig=0.4,Pg="#333",Rg="#ccc",G5="#eee";var _p=k(()=>{Vi();if(Te.hasGlobalWindow)F5=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1);yp=F5});function xp(r){return r>W5||r<-W5}function bp(){return new wE}function _a(r,e){return LV(r,e,ko)}var H5,W5=0.00005,Sp,Ld,SE,bE,wE,gl,ko,xa;var No=k(()=>{Z();br();H5=bs;Sp=[],Ld=[],SE=Qe(),bE=Math.abs,wE=function(){function r(){}return r.prototype.getLocalTransform=function(e){return gl(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return xp(this.rotation)||xp(this.x)||xp(this.y)||xp(this.scaleX-1)||xp(this.scaleY-1)||xp(this.skewX)||xp(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){if(i)H5(i),this.invTransform=null;return}if(i=i||Qe(),t)this.getLocalTransform(i);else H5(i);if(e)if(t)Ri(i,e,i);else hl(i,e);this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Qe(),mi(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Sp);var i=Sp[0]<0?-1:1,n=Sp[1]<0?-1:1,a=((Sp[0]-i)*t+i)/Sp[0]||0,o=((Sp[1]-n)*t+n)/Sp[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(!e)return;var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0},r.prototype.decomposeTransform=function(){if(!this.transform)return;var e=this.parent,t=this.transform;if(e&&e.transform)e.invTransform=e.invTransform||Qe(),Ri(Ld,e.invTransform,t),t=Ld;var i=this.originX,n=this.originY;if(i||n)SE[4]=i,SE[5]=n,Ri(Ld,t,SE),Ld[4]-=i,Ld[5]-=n,t=Ld;this.setLocalTransform(t)},r.prototype.getGlobalScale=function(e){var t=this.transform;if(e=e||[],!t)return e[0]=1,e[1]=1,e;if(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0)e[0]=-e[0];if(t[3]<0)e[1]=-e[1];return e},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;if(n)vr(i,i,n);return i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;if(n)vr(i,i,n);return i},r.prototype.getLineScale=function(){var e=this.transform;return e&&bE(e[0]-1)>0.0000000001&&bE(e[3]-1)>0.0000000001?Math.sqrt(bE(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){_a(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,n=e.originY||0,{scaleX:a,scaleY:o,anchorX:s,anchorY:l}=e,u=e.rotation||0,{x:c,y:f}=e,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,g=n+l;t[4]=-v*a-p*g*o,t[5]=-g*o-h*v*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=h*a,t[2]=p*o,u&&bn(t,t,u),t[4]+=i+c,t[5]+=n+f,t},r.initDefaultProps=function(){var e=r.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}(),r}(),gl=wE.getLocalTransform;ko=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];xa=wE});function As(r){if(!$x)$x=new vl(100);r=r||pa;var e=$x.get(r);if(!e)e={font:r,strWidthCache:new vl(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ri.measureText("国",r).width,asciiCharWidth:ri.measureText("a",r).width},$x.put(r,e);return e}function Fht(r){if(TE>=Y5)return;r=r||pa;var e=[],t=+new Date;for(var i=0;i<=127;i++)e[i]=ri.measureText(String.fromCharCode(i),r).width;var n=+new Date-t;if(n>16)TE=Y5;else if(n>2)TE++;return e}function AE(r,e){if(!r.asciiWidthMapTried)r.asciiWidthMap=Fht(r.font),r.asciiWidthMapTried=!0;return 0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Cs(r,e){var t=r.strWidthCache,i=t.get(e);if(i==null)i=ri.measureText(e,r.font).width,t.put(e,i);return i}function Z5(r,e,t,i){var n=Cs(As(e),r),a=wp(e),o=Pc(0,n,t),s=Su(0,a,i),l=new Gt(o,s,n,a);return l}function Ic(r,e,t,i){var n=((r||"")+"").split(`
58
+ `),a=n.length;if(a===1)return Z5(n[0],e,t,i);else{var o=new Gt(0,0,0,0);for(var s=0;s<n.length;s++){var l=Z5(n[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}}function Pc(r,e,t,i){if(t==="right")!i?r-=e:r+=e;else if(t==="center")!i?r-=e/2:r+=e/2;return r}function Su(r,e,t,i){if(t==="middle")!i?r-=e/2:r+=e/2;else if(t==="bottom")!i?r-=e:r+=e;return r}function wp(r){return As(r).stWideCharWidth}function wn(r,e){if(typeof r==="string"){if(r.lastIndexOf("%")>=0)return parseFloat(r)/100*e;return parseFloat(r)}return r}function Tp(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,{height:a,width:o}=t,s=a/2,{x:l,y:u}=t,c="left",f="top";if(i instanceof Array)l+=wn(i[0],t.width),u+=wn(i[1],t.height),c=null,f=null;else switch(i){case"left":l-=n,u+=s,c="right",f="middle";break;case"right":l+=n+o,u+=s,f="middle";break;case"top":l+=o/2,u-=n,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+n,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=n,u+=s,f="middle";break;case"insideRight":l+=o-n,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=n,c="center";break;case"insideBottom":l+=o/2,u+=a-n,c="center",f="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=a-n,f="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,c="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=f,r}var $x,TE=0,Y5=5;var Hn=k(()=>{fr();wg();Ja()});function ME(r,e,t,i,n){t=t||{};var a=[];q5(r,"",r,e,t,i,a,n);var o=a.length,s=!1,l=t.done,u=t.aborted,c=function(){if(s=!0,o--,o<=0)s?l&&l():u&&u()},f=function(){if(o--,o<=0)s?l&&l():u&&u()};if(!o)l&&l();if(a.length>0&&t.during)a[0].during(function(v,g){t.during(g)});for(var p=0;p<a.length;p++){var h=a[p];if(c)h.done(c);if(f)h.aborted(f);if(t.force)h.duration(t.duration);h.start(t.easing)}return a}function LE(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function Wht(r){return ii(r[0])}function Yht(r,e,t){if(ii(e[t])){if(!ii(r[t]))r[t]=[];if(ui(e[t])){var i=e[t].length;if(r[t].length!==i)r[t]=new e[t].constructor(i),LE(r[t],e[t],i)}else{var n=e[t],a=r[t],o=n.length;if(Wht(n)){var s=n[0].length;for(var l=0;l<o;l++)if(!a[l])a[l]=Array.prototype.slice.call(n[l]);else LE(a[l],n[l],s)}else LE(a,n,o);a.length=n.length}}else r[t]=e[t]}function Zht(r,e){return r===e||ii(r)&&ii(e)&&jht(r,e)}function jht(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function q5(r,e,t,i,n,a,o,s){var l=le(i),{duration:u,delay:c,additive:f,setToFinal:p}=n,h=!Pt(a),v=r.animators,g=[];for(var y=0;y<l.length;y++){var m=l[y],d=i[m];if(d!=null&&t[m]!=null&&(h||a[m]))if(Pt(d)&&!ii(d)&&!Sc(d)){if(e){if(!s)t[m]=d,r.updateDuringAnimation(e);continue}q5(r,m,t[m],d,n,a&&a[m],o,s)}else g.push(m);else if(!s)t[m]=d,r.updateDuringAnimation(e),g.push(m)}var x=g.length;if(!f&&x)for(var S=0;S<v.length;S++){var w=v[S];if(w.targetName===e){var T=w.stopTracks(g);if(T){var A=Xt(v,w);v.splice(A,1)}}}if(!n.force)g=be(g,function(I){return!Zht(i[I],t[I])}),x=g.length;if(x>0||n.force&&!o.length){var M=void 0,D=void 0,L=void 0;if(s){if(D={},p)M={};for(var S=0;S<x;S++){var m=g[S];if(D[m]=t[m],p)M[m]=i[m];else t[m]=i[m]}}else if(p){L={};for(var S=0;S<x;S++){var m=g[S];L[m]=mp(t[m]),Yht(t,i,m)}}var w=new Dg(t,!1,!1,f?be(v,function(E){return E.targetName===e}):null);if(w.targetName=e,n.scope)w.scope=n.scope;if(p&&M)w.whenWithKeys(0,M,g);if(L)w.whenWithKeys(0,L,g);w.whenWithKeys(u==null?500:u,s?D:i,g).delay(c||0),r.addAnimator(w,e),o.push(w)}}function j5(r,e,t,i){return!(t&&t.hoverLayer||i)||X5(r)||e&&X5(e)?eS:Id}function X5(r){return r.type==="text"||r.type==="tspan"}function K5(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var CE="__zr_normal__",EE,Ght,Dd,Hht,tS,eS=0,Id=1,DE,rS;var iS=k(()=>{No();qx();fr();fl();Hn();Z();_p();sn();EE=ko.concat(["ignore"]),Ght=an(ko,function(r,e){return r[e]=!0,r},{ignore:!1}),Dd={},Hht=new Gt(0,0,0,0),tS=[],DE=function(){function r(e){this.id=px(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;if(!n)n=this.transform=[1,0,0,1,0,0];n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){if(this.updateTransform(),this.__dirty)this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){if(!this.textConfig)this.textConfig={};var i=this.textConfig,n=i.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(t);var c=i.position!=null,f=i.autoOverflowArea,p=void 0;if(f||c){if(p=Hht,i.layoutRect)p.copy(i.layoutRect);else p.copy(this.getBoundingRect());if(!n)p.applyTransform(this.transform)}if(c){if(this.calculateTextPosition)this.calculateTextPosition(Dd,i,p);else Tp(Dd,i,p);a.x=Dd.x,a.y=Dd.y,o=Dd.align,s=Dd.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,g=void 0;if(h==="center")v=p.width*0.5,g=p.height*0.5;else v=wn(h[0],p.width),g=wn(h[1],p.height);u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+g+(n?0:p.y)}}if(i.rotation!=null)a.rotation=i.rotation;var y=i.offset;if(y){if(a.x+=y[0],a.y+=y[1],!u)a.originX=-y[0],a.originY=-y[1]}var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var d=m.overflowRect=m.overflowRect||new Gt(0,0,0,0);a.getLocalTransform(tS),mi(tS,tS),Gt.copy(d,p),d.applyTransform(tS)}else m.overflowRect=null;var x=i.inside==null?typeof i.position==="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,w=void 0,T=void 0;if(x&&this.canBeInsideText()){if(S=i.insideFill,w=i.insideStroke,S==null||S==="auto")S=this.getInsideTextFill();if(w==null||w==="auto")w=this.getInsideTextStroke(S),T=!0}else{if(S=i.outsideFill,w=i.outsideStroke,S==null||S==="auto")S=this.getOutsideFill();if(w==null||w==="auto")w=this.getOutsideStroke(S),T=!0}if(S=S||"#000",S!==m.fill||w!==m.stroke||T!==m.autoStroke||o!==m.align||s!==m.verticalAlign)l=!0,m.fill=S,m.stroke=w,m.autoStroke=T,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m);if(t.__dirty|=Ci,l)t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rg:Pg},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t==="string"&&Oi(t);if(!i)i=[255,255,255,1];var n=i[3],a=this.__zr.isDarkMode();for(var o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,ya(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){if(e==="textConfig")this.setTextConfig(t);else if(e==="textContent")this.setTextContent(t);else if(e==="clipPath")this.setClipPath(t);else if(e==="extra")this.extra=this.extra||{},et(this.extra,t);else this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e==="string")this.attrKV(e,t);else if(Pt(e)){var i=e,n=le(i);for(var a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);var t=this._normalState;for(var i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(n.getLoop()||a&&a!==CE)continue;var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;if(!t)t=this._normalState={};if(e.textConfig&&!t.textConfig)t.textConfig=this.textConfig;this._savePrimaryToNormal(e,t,EE)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var n=0;n<i.length;n++){var a=i[n];if(e[a]!=null&&!(a in t))t[a]=this[a]}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;if(!t[e])t[e]={};return t[e]},r.prototype.clearStates=function(e){this.useState(CE,!1,e)},r.prototype.useState=function(e,t,i,n){var a=e===CE,o=this.hasState();if(!o&&a)return;var s=this.currentStates,l=this.stateTransition;if(Xt(s,e)>=0&&(t||s.length===1))return;var u;if(this.stateProxy&&!a)u=this.stateProxy(e);if(!u)u=this.states&&this.states[e];if(!u&&!a){xs("State "+e+" not exists.");return}if(!a)this.saveCurrentToNormalState(u);var c=this._textContent,f=j5(this,c,u,n);if(f&&!this.__inHover)this.__inHover=f;this._applyStateObj(e,u,this._normalState,t,K5(this,i,l),l);var p=this._textGuide;if(c)c.useState(e,t,i,!!f);if(p)p.useState(e,t,i,!!f);if(a)this.currentStates=[],this._normalState={};else if(!t)this.currentStates=[e];else this.currentStates.push(e);if(this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover)this.__inHover=eS,this.__dirty&=~Ci;return u},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;if(this.stateProxy)c=this.stateProxy(u,e);if(!c)c=this.states[u];if(c)n.push(c)}var f=n[o-1],p=this._textContent,h=j5(this,p,f,i);if(h&&!this.__inHover)this.__inHover=h;var v=this._mergeStates(n),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,K5(this,t,g),g);var y=this._textGuide;if(p)p.useStates(e,t,!!h);if(y)y.useStates(e,t,!!h);if(this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover)this.__inHover=eS,this.__dirty&=~Ci}},r.prototype.isSilent=function(){var e=this;while(e){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];if(t.targetName)t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=Xt(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var n=this.currentStates.slice(),a=Xt(n,e),o=Xt(n,t)>=0;if(a>=0)if(!o)n[a]=t;else n.splice(a,1);else if(i&&!o)n.push(t);this.useStates(n)},r.prototype.toggleState=function(e,t){if(t)this.useState(e,!0);else this.removeState(e)},r.prototype._mergeStates=function(e){var t={},i;for(var n=0;n<e.length;n++){var a=e[n];if(et(t,a),a.textConfig)i=i||{},et(i,a.textConfig)}if(i)t.textConfig=i;return t},r.prototype._applyStateObj=function(e,t,i,n,a,o){if(this.__inHover===Id)return;var s=!(t&&n);if(t&&t.textConfig)this.textConfig=et({},n?this.textConfig:i.textConfig),et(this.textConfig,t.textConfig);else if(s){if(i.textConfig)this.textConfig=i.textConfig}var l={},u=!1;for(var c=0;c<EE.length;c++){var f=EE[c],p=a&&Ght[f];if(t&&t[f]!=null)if(p)u=!0,l[f]=t[f];else this[f]=t[f];else if(s){if(i[f]!=null)if(p)u=!0,l[f]=i[f];else this[f]=i[f]}}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;if(!h.getLoop())h.__changeFinalValue(v?(t||i)[v]:t||i)}if(u)this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget)return;if(e===this)return;var t=this.__zr;if(t)e.addSelfToZr(t);e.__zr=t,e.__hostTarget=this},r.prototype._detachComponent=function(e){if(e.__zr)e.removeSelfFromZr(e.__zr);e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){if(this._clipPath&&this._clipPath!==e)this.removeClipPath();this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;if(e)this._detachComponent(e),this._clipPath=null,this.markRedraw()},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;if(t===e)return;if(t&&t!==e)this.removeTextContent();e.innerTransformable=new xa,this._attachComponent(e),this._textContent=e,this.markRedraw()},r.prototype.setTextConfig=function(e){if(!this.textConfig)this.textConfig={};et(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;if(e)e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw()},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){if(this._textGuide&&this._textGuide!==e)this.removeTextGuideLine();this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;if(e)this._detachComponent(e),this._textGuide=null,this.markRedraw()},r.prototype.markRedraw=function(){this.__dirty|=Ci;var e=this.__zr;if(e)if(this.__inHover)e.refreshHover();else e.refresh();if(this.__hostTarget)this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr===e)return;this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);if(this._clipPath)this._clipPath.addSelfToZr(e);if(this._textContent)this._textContent.addSelfToZr(e);if(this._textGuide)this._textGuide.addSelfToZr(e)},r.prototype.removeSelfFromZr=function(e){if(!this.__zr)return;this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);if(this._clipPath)this._clipPath.removeSelfFromZr(e);if(this._textContent)this._textContent.removeSelfFromZr(e);if(this._textGuide)this._textGuide.removeSelfFromZr(e)},r.prototype.animate=function(e,t,i){var n=e?this[e]:this,a=new Dg(n,t,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var i=this.__zr,n=this;if(e.during(function(){n.updateDuringAnimation(t)}).done(function(){var a=n.animators,o=Xt(a,e);if(o>=0)a.splice(o,1)}),this.animators.push(e),i)i.animation.addAnimator(e);i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){var i=this.animators,n=i.length,a=[];for(var o=0;o<n;o++){var s=i[o];if(!e||e===s.scope)s.stop(t);else a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,i){ME(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){ME(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,n){var a=ME(this,t,i,n);for(var o=0;o<a.length;o++)a[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=eS,e.__dirty=Ci;var t={};function i(a,o,s){if(!t[a+o+s])console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[a+o+s]=!0}function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(p){c[s]=p}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(p){c[l]=p}})}}if(Object.defineProperty)n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY")}(),r}();dr(DE,Ai);dr(DE,xa);rS=DE});var J5,Lt;var Rc=k(()=>{Wr();Z();iS();fr();J5=function(r){Ee(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){var i=this._children;for(var n=0;n<i.length;n++)if(i[n].name===t)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t){if(t!==this&&t.parent!==this)this._children.push(t),this._doAdd(t)}return this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);if(a>=0)n.splice(a,0,t),this._doAdd(t)}return this},e.prototype.replace=function(t,i){var n=Xt(this._children,t);if(n>=0)this.replaceAt(i,n);return this},e.prototype.replaceAt=function(t,i){var n=this._children,a=n[i];if(t&&t!==this&&t.parent!==this&&t!==a){n[i]=t,a.parent=null;var o=this.__zr;if(o)a.removeSelfFromZr(o);this._doAdd(t)}return this},e.prototype._doAdd=function(t){if(t.parent)t.parent.remove(t);t.parent=this;var i=this.__zr;if(i&&i!==t.__zr)t.addSelfToZr(i);i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,n=this._children,a=Xt(n,t);if(a<0)return this;if(n.splice(a,1),t.parent=null,i)t.removeSelfFromZr(i);return i&&i.refresh(),this},e.prototype.removeAll=function(){var t=this._children,i=this.__zr;for(var n=0;n<t.length;n++){var a=t[n];if(i)a.removeSelfFromZr(i);a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){var n=this._children;for(var a=0;a<n.length;a++){var o=n[a];t.call(i,o,a)}return this},e.prototype.traverse=function(t,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=t.call(i,a);if(a.isGroup&&!o)a.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){var i=new Gt(0,0,0,0),n=t||this._children,a=[],o=null;for(var s=0;s<n.length;s++){var l=n[s];if(l.ignore||l.invisible)continue;var u=l.getBoundingRect(),c=l.getLocalTransform(a);if(c)Gt.applyTransform(i,u,c),o=o||i.clone(),o.union(i);else o=o||u.clone(),o.union(u)}return o||i},e}(rS);J5.prototype.type="group";Lt=J5});function Xht(r){delete $5[r]}function Kht(r){if(!r)return!1;if(typeof r==="string")return Md(r,1)<Ig;else if(r.colorStops){var e=r.colorStops,t=0,i=e.length;for(var n=0;n<i;n++)t+=Md(e[n].color,1);return t/=i,t<Ig}return!1}function PE(r,e){var t=new qht(px(),r,e);return $5[t.id]=t,t}function Q5(r,e){nS[r]=e}function tF(r){if(typeof IE==="function")return IE(r)}function eF(r){IE=r}var nS,$5,qht,IE;var aS=k(()=>{Vi();Z();t5();s5();O5();V5();sn();_p();Rc();/*!
59
+ * ZRender, a high performance 2d drawing library.
60
+ *
61
+ * Copyright (c) 2013, Baidu Inc.
62
+ * All rights reserved.
63
+ *
64
+ * LICENSE
65
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
66
+ */nS={},$5={};qht=function(){function r(e,t,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new o5,o=i.renderer||"canvas";if(!nS[o])o=le(nS)[0];i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new nS[o](t,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Te.node&&!Te.worker&&!l?new U5(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,f=c==null||c==="auto"?Te.touchEventsSupported:!!c,p=44,h;if(f)h=St(i.pointerSize,p);if(this.handler=new QV(a,s,u,s.root,h),this.animation=new R5({stage:{update:l?null:function(){return n._flush(!1)}}}),!l)this.animation.start()}return r.prototype.add=function(e){if(this._disposed||!e)return;this.storage.addRoot(e),e.addSelfToZr(this),this.refresh()},r.prototype.remove=function(e){if(this._disposed||!e)return;this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh()},r.prototype.configLayer=function(e,t){if(this._disposed)return;if(this.painter.configLayer)this.painter.configLayer(e,t);this.refresh()},r.prototype.setBackgroundColor=function(e){if(this._disposed)return;if(this.painter.setBackgroundColor)this.painter.setBackgroundColor(e);this.refresh(),this._backgroundColor=e,this._darkMode=Kht(e)},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){if(this._disposed)return;this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){if(e.animUpdate)this.animation.update(!0);this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){if(this._disposed)return;this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){if(this._disposed)return;this._flush(!0)},r.prototype._flush=function(e){var t,i=gp(),n=this._needsRefresh,a=this._needsRefreshHover;if(n||a)t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a});var o=gp();if(t)this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i});else if(this._sleepAfterStill>0){if(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)this.animation.stop()}},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){if(this._disposed)return;this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){if(this._disposed)return;this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){if(this._disposed)return;e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},r.prototype.clearAnimation=function(){if(this._disposed)return;this.animation.clear()},r.prototype.getWidth=function(){if(this._disposed)return;return this.painter.getWidth()},r.prototype.getHeight=function(){if(this._disposed)return;return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){if(this._disposed)return;this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(this._disposed)return;return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){if(!this._disposed)this.handler.on(e,t,i);return this},r.prototype.off=function(e,t){if(this._disposed)return;this.handler.off(e,t)},r.prototype.trigger=function(e,t){if(this._disposed)return;this.handler.trigger(e,t)},r.prototype.clear=function(){if(this._disposed)return;var e=this.storage.getRoots();for(var t=0;t<e.length;t++)if(e[t]instanceof Lt)e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){if(this._disposed)return;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Xht(this.id)},r}()});function $ht(r){return r.replace(/^\s+|\s+$/g,"")}function Ne(r,e,t,i){var n=e[0],a=e[1],o=t[0],s=t[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i){if(l>0){if(r<=n)return o;else if(r>=a)return s}else if(r>=n)return o;else if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function tdt(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Od(r,e,t)}function Od(r,e,t){if(ht(r)){if(oF(r))return parseFloat(r)/100*e+(t||0);return parseFloat(r)}return r==null?NaN:+r}function aF(r){return ht(r)&&oF(r)}function oF(r){return!!$ht(r).match(/%$/)}function Me(r,e,t){if(isNaN(e))return t?""+r:+r;return e=ke(ce(0,e),iF),r=(+r).toFixed(e),t?r:+r}function Pr(r){return r.sort(function(e,t){return e-t}),r}function ro(r){if(r=+r,isNaN(r))return 0;if(r>0.00000000000001){var e=1;for(var t=0;t<15;t++,e*=10)if(Sa(r*e)/e===r)return t}return edt(r)}function edt(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,n=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:n-1-a;return ce(0,o-i)}function kd(r,e,t){var i=yr(r[1]-r[0]);if(!isFinite(i)||i===0)return NaN;var n=Pd(2*yr(t||1)*yr(i))/RE,a=Pd(yr(e))/RE,o=ce(0,zo(-n+a));if(!isFinite(o))o=NaN;return o}function sF(r,e){var t=an(r,function(h,v){return h+(isNaN(v)?0:v)},0);if(t===0)return[];var i=Oc(10,e),n=nt(r,function(h){return(isNaN(h)?0:h)/t*i*100}),a=i*100,o=nt(n,function(h){return Tn(h)}),s=an(o,function(h,v){return h+v},0),l=nt(n,function(h,v){return h-o[v]});while(s<a){var u=Number.NEGATIVE_INFINITY,c=null;for(var f=0,p=l.length;f<p;++f)if(l[f]>u)u=l[f],c=f;++o[c],l[c]=0,++s}return nt(o,function(h){return h/i})}function bu(r,e){var t=ce(ro(r),ro(e)),i=r+e;return t>iF?i:Me(i,t)}function OE(r){var e=Rd*2;return(r%e+e)%e}function kc(r){return r>-rF&&r<rF}function Bo(r){if(r instanceof Date)return r;else if(ht(r)){var e=rdt.exec(r);if(!e)return new Date(NaN);if(!e[8])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);else{var t=+e[4]||0;if(e[8].toUpperCase()!=="Z")t-=+e[8].slice(0,3);return new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}}else if(r==null)return new Date(NaN);return new Date(Sa(r))}function oS(r){return Oc(10,sS(r))}function sS(r){if(r===0)return 0;var e=Tn(Pd(r)/RE);if(r/Oc(10,e)>=10)e++;return e}function Ap(r,e){var t=sS(r),i=Oc(10,t),n=r/i,a;if(e===kE)a=1;else if(e)if(n<1.5)a=1;else if(n<2.5)a=2;else if(n<4)a=3;else if(n<7)a=5;else a=10;else if(n<1)a=1;else if(n<2)a=2;else if(n<3)a=3;else if(n<5)a=5;else a=10;return r=a*i,Me(r,-t)}function lS(r,e){var t=(r.length-1)*e+1,i=Tn(t),n=+r[i-1],a=t-i;return a?n+a*(r[i]-n):n}function NE(r){r.sort(function(l,u){return s(l,u,0)?-1:1});var e=-1/0,t=1;for(var i=0;i<r.length;){var n=r[i].interval,a=r[i].close;for(var o=0;o<2;o++){if(n[o]<=e)n[o]=e,a[o]=!o?1-t:1;e=n[o],t=a[o]}if(n[0]===n[1]&&a[0]*a[1]!==1)r.splice(i,1);else i++}return r;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(!c?1:-1)||!c&&s(l,u,1))}}function Uo(r){var e=parseFloat(r);return e==r&&(e!==0||!ht(r)||r.indexOf("x")<=0)?e:NaN}function Og(r){return!isNaN(Uo(r))}function kg(){return Sa(Qht()*9)}function lF(r,e){if(e===0)return r;return lF(e,r%e)}function zE(r,e){if(r==null)return e;if(e==null)return r;return r*e/lF(r,e)}function ki(r){return r!=null&&isFinite(r)}var rF=0.0001,iF=20,nF=14,ke,ce,yr,Sa,Tn,zo,Oc,Pd,RE,Rd,Qht,wt,Nd,rdt,kE=2;var te=k(()=>{Z();ke=Math.min,ce=Math.max,yr=Math.abs,Sa=Math.round,Tn=Math.floor,zo=Math.ceil,Oc=Math.pow,Pd=Math.log,RE=Math.LN10,Rd=Math.PI,Qht=Math.random;wt=tdt;Nd=Oc(2,53)-1;rdt=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/});function cF(r,e,t){if(ndt){if(t){if(uF[e])return;uF[e]=!0}console[r](idt+e)}}function BE(r,e){cF("warn",r,e)}function uS(r,e){cF("error",r,e)}function fF(r){}function Ue(r){throw Error(r)}var idt="[ECharts] ",uF,ndt;var Vo=k(()=>{uF={},ndt=typeof console<"u"&&console.warn&&console.log});function pF(r,e,t){return(e-r)*t+r}function Ve(r){return r instanceof Array?r:r==null?[]:[r]}function io(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,n=t.length;i<n;i++){var a=t[i];if(!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a))r.emphasis[e][a]=r[e][a]}}}function Ms(r){return Pt(r)&&!it(r)&&!(r instanceof Date)?r.value:r}function vF(r){return Pt(r)&&!(r instanceof Array)}function cS(r,e,t){var i=t==="normalMerge",n=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=gt();P(e,function(l,u){if(!Pt(l)){e[u]=null;return}});var s=adt(r,o,t);if(i||n)odt(s,r,o,e);if(i)sdt(s,e);if(i||n)ldt(s,e,n);else if(a)udt(s,e);return cdt(s),s}function adt(r,e,t){var i=[];if(t==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];if(a&&a.id!=null)e.set(a.id,n);i.push({existing:t==="replaceMerge"||zd(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function odt(r,e,t,i){P(i,function(n,a){if(!n||n.id==null)return;var o=Ng(n.id),s=t.get(o);if(s!=null){var l=r[s];xe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],i[a]=null}})}function sdt(r,e){P(e,function(t,i){if(!t||t.name==null)return;for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||t.id==null)&&!zd(t)&&!zd(a)&&mF("name",a,t)){r[n].newOption=t,e[i]=null;return}}})}function ldt(r,e,t){P(e,function(i){if(!i)return;var n,a=0;while((n=r[a])&&(n.newOption||zd(n.existing)||n.existing&&i.id!=null&&!mF("id",i,n.existing)))a++;if(n)n.newOption=i,n.brandNew=t;else r.push({newOption:i,brandNew:t,existing:null,keyInfo:null});a++})}function udt(r,e){P(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function cdt(r){var e=gt();P(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),P(r,function(t){var i=t.newOption;xe(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),P(r,function(t,i){var{existing:n,newOption:a,keyInfo:o}=t;if(!Pt(a))return;if(o.name=a.name!=null?Ng(a.name):n?n.name:hF+i,n)o.id=Ng(n.id);else if(a.id!=null)o.id=Ng(a.id);else{var s=0;do o.id="\x00"+o.name+"\x00"+s++;while(e.get(o.id))}e.set(o.id,t)})}function mF(r,e,t){var i=Rr(e[r],null),n=Rr(t[r],null);return i!=null&&n!=null&&i===n}function Ng(r){return Rr(r,"")}function Rr(r,e){if(r==null)return e;return ht(r)?r:ue(r)||fg(r)?r+"":e}function Bd(r){var e=r.name;return!!(e&&e.indexOf(hF))}function zd(r){return r&&r.id!=null&&Ng(r.id).indexOf(dF)===0}function gF(r){return dF+r}function yF(r,e,t){P(r,function(i){var n=i.newOption;if(Pt(n))i.keyInfo.mainType=e,i.keyInfo.subType=fdt(e,n,i.existing,t)})}function fdt(r,e,t,i){var n=e.type?e.type:t?t.subType:i.determineSubType(r,e);return n}function _F(r,e){var t={},i={};return n(r||[],t),n(e||[],i,t),[a(t),a(i)];function n(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Rr(o[u].seriesId,null);if(f==null)return;var p=Ve(o[u].dataIndex),h=l&&l[f];for(var v=0,g=p.length;v<g;v++){var y=p[v];if(h&&h[y])h[y]=null;else(s[f]||(s[f]={}))[y]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Fo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;else if(e.dataIndex!=null)return it(e.dataIndex)?nt(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);else if(e.name!=null)return it(e.name)?nt(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Ft(){var r="__ec_inner_"+pdt++;return function(e){return e[r]||(e[r]={})}}function yl(r,e,t){var i=zg(e,t),{mainTypeSpecified:n,queryOptionMap:a,others:o}=i,s=o,l=t?t.defaultMainType:null;if(!n&&l)a.set(l,{});return a.each(function(u,c){var f=_l(r,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function zg(r,e){var t;if(ht(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var n=gt(),a={},o=!1;return P(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!c||!f||e&&e.includeMainTypes&&Xt(e.includeMainTypes,c)<0)return;o=o||!!c;var p=n.get(c)||n.set(c,{});p[f]=s}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}function _l(r,e,t,i){i=i||Xe;var{index:n,id:a,name:o}=t,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1)if(i.enableNone)return s.models=[],s;else n=-1;if(n==="all")if(i.enableAll)n=a=o=null;else n=-1;return s.models=r.queryComponents({mainType:e,index:n,id:a,name:o}),s}function Ud(r,e,t){var i={};i[e+"Id"]=r[e+"Id"],i[e+"Index"]=r[e+"Index"],i[e+"Name"]=r[e+"Name"];var n={mainType:e,query:i};return t&&(n.subType=t),n}function VE(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function SF(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function bF(r){if(r==="auto")return Te.domSupported?"html":"richText";else return r||"html"}function Bg(r,e){var t=gt(),i=[];return P(r,function(n){var a=e(n);(t.get(a)||(i.push(a),t.set(a,[]))).push(n)}),{keys:i,buckets:t}}function fS(r,e,t,i,n){var a=e==null||e==="auto";if(i==null)return i;if(ue(i)){var o=pF(t||0,i,n);return Me(o,a?Math.max(ro(t||0),ro(i)):e)}else if(ht(i))return n<1?t:i;else{var s=[],l=t,u=i,c=Math.max(l?l.length:0,u.length);for(var f=0;f<c;++f){var p=r.getDimensionInfo(f);if(p&&p.type==="ordinal")s[f]=(n<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=pF(h,v,n);s[f]=Me(o,a?Math.max(ro(h),ro(v)):e)}}return s}}function pS(r){r.option=r.parentModel=r.ecModel=null}function $r(){return[1/0,-1/0]}function Ug(r,e){if(Es(e))e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e)}function FE(r,e){if(Es(e)&&e<r[0])r[0]=e}function GE(r,e){if(Es(e)&&e>r[1])r[1]=e}function wF(r,e){if(Ds(e[0],e[1]))e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1])}function Es(r){return r!=null&&isFinite(r)}function Ds(r,e){return Es(r)&&Es(e)&&r<=e}function TF(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Vd(r){if(Ds(r[0],r[1])&&r[0]>r[1])r[0]=r[1]}function Go(){var r="__ec_once_"+hdt++;return function(e,t){if(!Bt(e,r))e[r]=1,t()}}function Nc(r,e,t){var i=gt(),n=0;if(P(r,function(a){var o=e(a),s=i.get(o)||0;if(t)t(a,s);if(!s&&!t)r[n++]=a;i.set(o,s+1)}),!t)r.length=n}function AF(r){return r.value+""}function CF(r){return r+""}function ln(r,e){return St(e,!0)?r.seriesIndex+2:0}function hS(r,e,t){var i=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&i>=t.threshold,large:r.get("large")&&i>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function Ke(r,e){return{seriesType:r,overallReset:e}}function xl(r){return{overallReset:r}}var hF="series\x00",dF="\x00_ec_\x00",UE,pdt,Xe,xF,Ls,hdt;var yt=k(()=>{Z();Vi();te();UE=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];pdt=kg();Xe={useDefault:!0,enableAll:!1,enableNone:!1},xF={useDefault:!1,enableAll:!0,enableNone:!0};Ls=function(){function r(){}return r.prototype.reset=function(e,t,i,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=i!=null?i:n>0?e.length:0,this.item=null,this.key=NaN,this},r.prototype.next=function(){if(this._step>0?this._idx<this._end:this._idx>=this._end)return this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0;return!1},r}();hdt=kg()});function wa(r){var e={main:"",sub:""};if(r){var t=r.split(ddt);e.main=t[0]||"",e.sub=t[1]||""}return e}function vdt(r){xe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function MF(r){return!!(r&&r[EF])}function Fd(r,e){r.$constructor=r,r.extend=function(t){var i=this,n;if(mdt(i))n=function(a){W(o,a);function o(){return a.apply(this,arguments)||this}return o}(i);else n=function(){(t.$constructor||i).apply(this,arguments)},DV(n,this);return et(n.prototype,t),n[EF]=!0,n.extend=this.extend,n.superCall=ydt,n.superApply=_dt,n.superClass=i,n}}function mdt(r){return Mt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function dS(r,e){r.extend=e.extend}function LF(r){var e=["__\x00is_clz",gdt++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function ydt(r,e){var t=[];for(var i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function _dt(r,e,t){return this.superClass.prototype[e].apply(r,t)}function zc(r){var e={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){vdt(n),i.prototype.type=n;var a=wa(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Cp){var o=t(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=e[i];if(o&&o[Cp])o=n?o[n]:null;if(a&&!o)throw Error(!n?i+".type should be specified.":"Component "+i+"."+(n||"")+" is used but not imported.");return o},r.getClassesByMainType=function(i){var n=wa(i),a=[],o=e[n.main];if(o&&o[Cp])P(o,function(s,l){l!==Cp&&a.push(s)});else a.push(o);return a},r.hasClass=function(i){var n=wa(i);return!!e[n.main]},r.getAllClassMainTypes=function(){var i=[];return P(e,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=wa(i),a=e[n.main];return a&&a[Cp]};function t(i){var n=e[i.main];if(!n||!n[Cp])n=e[i.main]={},n[Cp]=!0;return n}}var ddt=".",Cp="___EC__COMPONENT__CONTAINER___",EF="___EC__EXTENDED_CLASS___",gdt;var Sl=k(()=>{dt();Z();gdt=Math.round(Math.random()*10)});function Ta(r,e){for(var t=0;t<r.length;t++)if(!r[t][1])r[t][1]=r[t][0];return e=e||!1,function(i,n,a){var o={};for(var s=0;s<r.length;s++){var l=r[s][1];if(n&&Xt(n,l)>=0||a&&Xt(a,l)<0)continue;var u=i.getShallow(l,e);if(u!=null)o[r[s][0]]=u}return o}}var Ep=k(()=>{Z()});var xdt,Sdt,DF;var IF=k(()=>{Ep();xdt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Sdt=Ta(xdt),DF=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return Sdt(this,e,t)},r}()});function RF(r){if(typeof r==="string"){var e=WE.get(r);return e&&e.image}else return r}function Vg(r,e,t,i,n){if(!r)return e;else if(typeof r==="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=WE.get(r),o={hostEl:t,cb:i,cbPayload:n};if(a)e=a.image,!Gd(e)&&a.pending.push(o);else e=ri.loadImage(r,PF,PF),e.__zrImageSrc=r,WE.put(r,e.__cachedImgObj={image:e,pending:[o]});return e}else return r}function PF(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Gd(r){return r&&r.width&&r.height}var WE;var vS=k(()=>{wg();Ja();WE=new vl(50)});function wdt(r,e,t,i,n,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
67
+ `);a=zF(t,i,n,a);var s=!1,l={};for(var u=0,c=o.length;u<c;u++)BF(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
68
+ `),r.isTruncated=s}function zF(r,e,t,i){i=i||{};var n=et({},i);t=St(t,"..."),n.maxIterations=St(i.maxIterations,2);var a=n.minChar=St(i.minChar,0),o=n.fontMeasureInfo=As(e),s=o.asciiCharWidth;n.placeholder=St(i.placeholder,"");var l=r=Math.max(0,r-1);for(var u=0;u<a&&l>=s;u++)l-=s;var c=Cs(o,t);if(c>l)t="",c=0;return l=r-c,n.ellipsis=t,n.ellipsisWidth=c,n.contentWidth=l,n.containerWidth=r,n}function BF(r,e,t){var{containerWidth:i,contentWidth:n,fontMeasureInfo:a}=t;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Cs(a,e);if(o<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?Tdt(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Cs(a,e)}if(e==="")e=t.placeholder;r.textLine=e,r.isTruncated=!0}function Tdt(r,e,t){var i=0,n=0;for(var a=r.length;n<a&&i<e;n++)i+=AE(t,r.charCodeAt(n));return n}function UF(r,e,t,i){var n=XE(r),{overflow:a,padding:o}=e,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c=a==="truncate",f=wp(u),p=St(e.lineHeight,f),h=e.lineOverflow==="truncate",v=!1,g=e.width;if(g==null&&t!=null)g=t-s;var y=e.height;if(y==null&&i!=null)y=i-l;var m;if(g!=null&&(a==="break"||a==="breakAll"))m=n?FF(n,e.font,g,a==="breakAll",0).lines:[];else m=n?n.split(`
69
+ `):[];var d=m.length*p;if(y==null)y=d;if(d>y&&h){var x=Math.floor(y/p);v=v||m.length>x,m=m.slice(0,x),d=m.length*p}if(n&&c&&g!=null){var S=zF(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w={};for(var T=0;T<m.length;T++)BF(w,m[T],S),m[T]=w.textLine,v=v||w.isTruncated}var A=y,M=0,D=As(u);for(var T=0;T<m.length;T++)M=Math.max(Cs(D,m[T]),M);if(g==null)g=M;var L=g;return A+=l,L+=s,{lines:m,height:y,outerWidth:L,outerHeight:A,lineHeight:p,calculatedLineHeight:f,contentWidth:M,contentHeight:d,width:g,isTruncated:v}}function VF(r,e,t,i,n){var a=new Cdt,o=XE(r);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;if(c==null&&t!=null)c=t-l;var f=e.height;if(f==null&&i!=null)f=i-u;var p=e.overflow,h=(p==="break"||p==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:p==="breakAll"}:null,v=YE.lastIndex=0,g;while((g=YE.exec(o))!=null){var y=g.index;if(y>v)ZE(a,o.substring(v,y),e,h);ZE(a,g[2],e,h,g[1]),v=YE.lastIndex}if(v<o.length)ZE(a,o.substring(v,o.length),e,h);var m=[],d=0,x=0,S=p==="truncate",w=e.lineOverflow==="truncate",T={};function A(Ut,qt,Zt){Ut.width=qt,Ut.lineHeight=Zt,d+=Zt,x=Math.max(x,qt)}t:for(var M=0;M<a.lines.length;M++){var D=a.lines[M],L=0,I=0;for(var E=0;E<D.tokens.length;E++){var R=D.tokens[E],B=R.styleName&&e.rich[R.styleName]||{},z=R.textPadding=B.padding,V=z?z[1]+z[3]:0,H=R.font=B.font||e.font;R.contentHeight=wp(H);var K=St(B.height,R.contentHeight);if(R.innerHeight=K,z&&(K+=z[0]+z[2]),R.height=K,R.lineHeight=Hr(B.lineHeight,e.lineHeight,K),R.align=B&&B.align||n,R.verticalAlign=B&&B.verticalAlign||"middle",w&&f!=null&&d+R.lineHeight>f){var F=a.lines.length;if(E>0)D.tokens=D.tokens.slice(0,E),A(D,I,L),a.lines=a.lines.slice(0,M+1);else a.lines=a.lines.slice(0,M);a.isTruncated=a.isTruncated||a.lines.length<F;break t}var G=B.width,rt=G==null||G==="auto";if(typeof G==="string"&&G.charAt(G.length-1)==="%")R.percentWidth=G,m.push(R),R.contentWidth=Cs(As(H),R.text);else{if(rt){var ot=B.backgroundColor,at=ot&&ot.image;if(at){if(at=RF(at),Gd(at))R.width=Math.max(R.width,at.width*K/at.height)}}var mt=S&&c!=null?c-I:null;if(mt!=null&&mt<R.width)if(!rt||mt<V)R.text="",R.width=R.contentWidth=0;else wdt(T,R.text,mt-V,H,e.ellipsis,{minChar:e.truncateMinChar}),R.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,R.width=R.contentWidth=Cs(As(H),R.text);else R.contentWidth=Cs(As(H),R.text)}R.width+=V,I+=R.width,B&&(L=Math.max(L,R.lineHeight))}A(D,I,L)}a.outerWidth=a.width=St(c,x),a.outerHeight=a.height=St(f,d),a.contentHeight=d,a.contentWidth=x,a.outerWidth+=l,a.outerHeight+=u;for(var M=0;M<m.length;M++){var R=m[M],Tt=R.percentWidth;R.width=parseInt(Tt,10)/100*a.width}return a}function ZE(r,e,t,i,n){var a=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,c,f;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=wn(o.width,i.width)+h;if(s.length>0){if(v+i.accumWidth>i.width)c=e.split(`
70
+ `),u=!0}i.accumWidth=v}else{var g=FF(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,f=g.linesWidths,c=g.lines}}if(!c)c=e.split(`
71
+ `);var y=As(l);for(var m=0;m<c.length;m++){var d=c[m],x=new Adt;if(x.styleName=n,x.text=d,x.isLineHolder=!d&&!a,typeof o.width==="number")x.width=o.width;else x.width=f?f[m]:Cs(y,d);if(!m&&!u){var S=(s[s.length-1]||(s[0]=new OF)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=x:(d||!w||a)&&S.push(x)}else s.push(new OF([x]))}}function Edt(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}function Ldt(r){if(Edt(r)){if(Mdt[r])return!0;return!1}return!0}function FF(r,e,t,i,n){var a=[],o=[],s="",l="",u=0,c=0,f=As(e);for(var p=0;p<r.length;p++){var h=r.charAt(p);if(h===`
72
+ `){if(l)s+=l,c+=u;a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var v=AE(f,h.charCodeAt(0)),g=i?!1:!Ldt(h);if(!a.length?n+c+v>t:c+v>t){if(!c)if(g)a.push(l),o.push(u),l=h,u=v;else a.push(h),o.push(v);else if(s||l)if(g){if(!s)s=l,l="",u=0,c=u;a.push(s),o.push(c-u),l+=h,u+=v,s="",c=u}else{if(l)s+=l,l="",u=0;a.push(s),o.push(c),s=h,c=v}continue}if(c+=v,g)l+=h,u+=v;else{if(l)s+=l,l="",u=0;s+=h}}if(l)s+=l;if(s)a.push(s),o.push(c);if(a.length===1)c+=n;return{accumWidth:c,lines:a,linesWidths:o}}function jE(r,e,t,i,n,a){if(r.baseX=t,r.baseY=i,r.outerWidth=r.outerHeight=null,!e)return;var o=e.width*2,s=e.height*2;Gt.set(kF,Pc(t,o,n),Su(i,s,a),o,s),Gt.intersect(e,kF,null,NF);var l=NF.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Pc(l.x,l.width,n,!0),r.baseY=Su(l.y,l.height,a,!0)}function XE(r){return r!=null?r+="":r=""}function GF(r){var e=XE(r.text),t=r.font,i=Cs(As(t),e),n=wp(t);return mS(r,i,n,null)}function mS(r,e,t,i){var n=new Gt(Pc(r.x||0,e,r.textAlign),Su(r.y||0,t,r.textBaseline),e,t),a=i!=null?i:KE(r)?r.lineWidth:0;if(a>0)n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a;return n}function KE(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var YE,Adt,OF,Cdt,Mdt,kF,NF;var qE=k(()=>{vS();Z();Hn();fr();YE=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;Adt=function(){function r(){}return r}(),OF=function(){function r(e){if(this.tokens=[],e)this.tokens=e}return r}(),Cdt=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();Mdt=an(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});kF=new Gt(0,0,0,0),NF={outIntersectRect:{},clamp:!0}});function Pdt(r,e,t){if(JE.copy(r.getBoundingRect()),r.transform)JE.applyTransform(r.transform);return $E.width=e,$E.height=t,!JE.intersect($E)}var QE,bl,Mp,HF,Ddt,Idt,JE,$E,fi;var no=k(()=>{Wr();iS();fr();Z();QE="__zr_style_"+Math.round(Math.random()*10),bl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mp={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bl[QE]=!0;HF=["z","z2","invisible"],Ddt=["invisible"],Idt=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){var i=le(t);for(var n=0;n<i.length;n++){var a=i[n];if(a==="style")this.useStyle(t[a]);else r.prototype.attrKV.call(this,a,t[a])}if(!this.style)this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Pdt(this,t,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent){var l=this.parent;while(l){if(l.ignore)return!1;l=l.parent}}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;if(t=this._paintRect||(this._paintRect=new Gt(0,0,0,0)),i)Gt.applyTransform(t,n,i);else t.copy(n);if(o||s||l)t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o);var u=this.dirtyRectTolerance;if(!t.isZero())t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2)}return t},e.prototype.setPrevPaintRect=function(t){if(t)this._prevPaintRect=this._prevPaintRect||new Gt(0,0,0,0),this._prevPaintRect.copy(t);else this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){if(t==="style")this.dirtyStyle();else this.markRedraw()},e.prototype.attrKV=function(t,i){if(t!=="style")r.prototype.attrKV.call(this,t,i);else if(!this.style)this.useStyle(i);else this.setStyle(i)},e.prototype.setStyle=function(t,i){if(typeof t==="string")this.style[t]=i;else et(this.style,t);return this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){if(!t)this.markRedraw();if(this.__dirty|=pp,this._rect)this._rect=null},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&pp)},e.prototype.styleUpdated=function(){this.__dirty&=~pp},e.prototype.createStyle=function(t){return wc(bl,t)},e.prototype.useStyle=function(t){if(!t[QE])t=this.createStyle(t);this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[QE]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;if(t.style&&!i.style)i.style=this._mergeStyle(this.createStyle(),this.style);this._savePrimaryToNormal(t,i,HF)},e.prototype._applyStateObj=function(t,i,n,a,o,s){r.prototype._applyStateObj.call(this,t,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===Id,c;if(i&&i.style)if(o)if(a)c=i.style;else c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,i.style);else c=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(c,i.style);else if(l)c=n.style;if(c)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l){var p=le(f);for(var h=0;h<p.length;h++){var v=p[h];if(v in c)c[v]=c[v],this.style[v]=f[v]}}var g=le(c);for(var h=0;h<g.length;h++){var v=g[h];this.style[v]=this.style[v]}this._transitionState(t,{style:c},s,this.getAnimationStyleProps())}else if(u)this._useHoverStyle(c);else this.useStyle(c);if(!u){var y=this.__inHover?Ddt:HF;for(var h=0;h<y.length;h++){var v=y[h];if(i&&i[v]!=null)this[v]=i[v];else if(l){if(n[v]!=null)this[v]=n[v]}}}},e.prototype._mergeStates=function(t){var i=r.prototype._mergeStates.call(this,t),n;for(var a=0;a<t.length;a++){var o=t[a];if(o.style)n=n||{},this._mergeStyle(n,o.style)}if(n)i.style=n;return i},e.prototype._mergeStyle=function(t,i){return et(t,i),t},e.prototype.getAnimationStyleProps=function(){return Mp},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Ci|pp}(),e}(rS),JE=new Gt(0,0,0,0),$E=new Gt(0,0,0,0);fi=Idt});function Dp(r,e,t){if(r.length===0)return;var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1];for(var l=1;l<r.length;l++)i=r[l],n=Aa(n,i[0]),a=Ca(a,i[0]),o=Aa(o,i[1]),s=Ca(s,i[1]);e[0]=n,e[1]=o,t[0]=a,t[1]=s}function rM(r,e,t,i,n,a){n[0]=Aa(r,t),n[1]=Aa(e,i),a[0]=Ca(r,t),a[1]=Ca(e,i)}function ZF(r,e,t,i,n,a,o,s,l,u){var c=Mx,f=ni,p=c(r,t,n,o,WF);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<p;h++){var v=f(r,t,n,o,WF[h]);l[0]=Aa(v,l[0]),u[0]=Ca(v,u[0])}p=c(e,i,a,s,YF);for(var h=0;h<p;h++){var g=f(e,i,a,s,YF[h]);l[1]=Aa(g,l[1]),u[1]=Ca(g,u[1])}l[0]=Aa(r,l[0]),u[0]=Ca(r,u[0]),l[0]=Aa(o,l[0]),u[0]=Ca(o,u[0]),l[1]=Aa(e,l[1]),u[1]=Ca(e,u[1]),l[1]=Aa(s,l[1]),u[1]=Ca(s,u[1])}function jF(r,e,t,i,n,a,o,s){var l=Dx,u=ci,c=Ca(Aa(l(r,t,n),1),0),f=Ca(Aa(l(e,i,a),1),0),p=u(r,t,n,c),h=u(e,i,a,f);o[0]=Aa(r,n,p),o[1]=Aa(e,a,h),s[0]=Ca(r,n,p),s[1]=Ca(e,a,h)}function XF(r,e,t,i,n,a,o,s,l){var u=Qa,c=to,f=Math.abs(n-a);if(f%Lp<0.0001&&f>0.0001){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(gS[0]=eM(n)*t+r,gS[1]=tM(n)*i+e,yS[0]=eM(a)*t+r,yS[1]=tM(a)*i+e,u(s,gS,yS),c(l,gS,yS),n=n%Lp,n<0)n=n+Lp;if(a=a%Lp,a<0)a=a+Lp;if(n>a&&!o)a+=Lp;else if(n<a&&o)n+=Lp;if(o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)if(h>n)_S[0]=eM(h)*t+r,_S[1]=tM(h)*i+e,u(s,_S,s),c(l,_S,l)}var Aa,Ca,tM,eM,Lp,gS,yS,_S,WF,YF;var Fg=k(()=>{br();ga();Aa=Math.min,Ca=Math.max,tM=Math.sin,eM=Math.cos,Lp=Math.PI*2,gS=cl(),yS=cl(),_S=cl();WF=[],YF=[]});function oM(r){var e=Math.round(r/sM*1e8)/1e8;return e%2*sM}function kp(r,e){var t=oM(r[0]);if(t<0)t+=Uc;var i=t-r[0],n=r[1];if(n+=i,!e&&n-t>=Uc)n=t+Uc;else if(e&&t-n>=Uc)n=t-Uc;else if(!e&&t>n)n=t+(Uc-oM(t-n));else if(e&&t<n)n=t-(Uc-oM(n-t));r[0]=t,r[1]=n}var Er,Ip,Pp,wl,Bc,Tl,Al,iM,nM,Rp,Op,wu,sM,Uc,aM,Gg,Rdt,Fi;var ao=k(()=>{br();fr();_p();Fg();ga();Er={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ip=[],Pp=[],wl=[],Bc=[],Tl=[],Al=[],iM=Math.min,nM=Math.max,Rp=Math.cos,Op=Math.sin,wu=Math.abs,sM=Math.PI,Uc=sM*2,aM=typeof Float32Array<"u",Gg=[];Rdt=function(){function r(e){if(this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e)this._saveData=!1;if(this._saveData)this.data=[]}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){if(i=i||0,i>0)this._ux=wu(i/yp/e)||0,this._uy=wu(i/yp/t)||0},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){if(this._saveData)this._len=0;if(this._pathSegLen)this._pathSegLen=null,this._pathLen=0;this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Er.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=wu(e-this._xi),n=wu(t-this._yi),a=i>this._ux||n>this._uy;if(this.addData(Er.L,e,t),this._ctx&&a)this._ctx.lineTo(e,t);if(a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+n*n;if(o>this._pendingPtDist)this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o}return this},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){if(this._drawPendingPt(),this.addData(Er.C,e,t,i,n,a,o),this._ctx)this._ctx.bezierCurveTo(e,t,i,n,a,o);return this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,n){if(this._drawPendingPt(),this.addData(Er.Q,e,t,i,n),this._ctx)this._ctx.quadraticCurveTo(e,t,i,n);return this._xi=i,this._yi=n,this},r.prototype.arc=function(e,t,i,n,a,o){this._drawPendingPt(),Gg[0]=n,Gg[1]=a,kp(Gg,o),n=Gg[0],a=Gg[1];var s=a-n;return this.addData(Er.A,e,t,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,o),this._xi=Rp(a)*i+e,this._yi=Op(a)*i+t,this},r.prototype.arcTo=function(e,t,i,n,a){if(this._drawPendingPt(),this._ctx)this._ctx.arcTo(e,t,i,n,a);return this},r.prototype.rect=function(e,t,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,n),this.addData(Er.R,e,t,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Er.Z);var e=this._ctx,t=this._x0,i=this._y0;if(e)e.closePath();return this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(!this._saveData)return;var t=e.length;if(!(this.data&&this.data.length===t)&&aM)this.data=new Float32Array(t);for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},r.prototype.appendPath=function(e){if(!this._saveData)return;if(!(e instanceof Array))e=[e];var t=e.length,i=0,n=this._len;for(var a=0;a<t;a++)i+=e[a].len();var o=this.data;if(aM&&(o instanceof Float32Array||!o)){if(this.data=new Float32Array(n+i),n>0&&o)for(var s=0;s<n;s++)this.data[s]=o[s]}for(var a=0;a<t;a++){var l=e[a].data;for(var s=0;s<l.length;s++)this.data[n++]=l[s]}this._len=n},r.prototype.addData=function(e,t,i,n,a,o,s,l,u){if(!this._saveData)return;var c=this.data;if(this._len+arguments.length>c.length)this._expandData(),c=this.data;for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]},r.prototype._drawPendingPt=function(){if(this._pendingPtDist>0)this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0},r.prototype._expandData=function(){if(!(this.data instanceof Array)){var e=[];for(var t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(!this._saveData)return;this._drawPendingPt();var e=this.data;if(e instanceof Array){if(e.length=this._len,aM&&this._len>11)this.data=new Float32Array(e)}},r.prototype.getBoundingRect=function(){wl[0]=wl[1]=Tl[0]=Tl[1]=Number.MAX_VALUE,Bc[0]=Bc[1]=Al[0]=Al[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;if(l)t=e[o],i=e[o+1],n=t,a=i;switch(s){case Er.M:t=n=e[o++],i=a=e[o++],Tl[0]=n,Tl[1]=a,Al[0]=n,Al[1]=a;break;case Er.L:rM(t,i,e[o],e[o+1],Tl,Al),t=e[o++],i=e[o++];break;case Er.C:ZF(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Tl,Al),t=e[o++],i=e[o++];break;case Er.Q:jF(t,i,e[o++],e[o++],e[o],e[o+1],Tl,Al),t=e[o++],i=e[o++];break;case Er.A:var u=e[o++],c=e[o++],f=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var g=!e[o++];if(l)n=Rp(h)*f+u,a=Op(h)*p+c;XF(u,c,f,p,h,v,g,Tl,Al),t=Rp(v)*f+u,i=Op(v)*p+c;break;case Er.R:n=t=e[o++],a=i=e[o++];var y=e[o++],m=e[o++];rM(n,a,n+y,a+m,Tl,Al);break;case Er.Z:t=n,i=a;break}Qa(wl,wl,Tl),to(Bc,Bc,Al)}if(o===0)wl[0]=wl[1]=Bc[0]=Bc[1]=0;return new Gt(wl[0],wl[1],Bc[0]-wl[0],Bc[1]-wl[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;if(!this._pathSegLen)this._pathSegLen=[];var u=this._pathSegLen,c=0,f=0;for(var p=0;p<t;){var h=e[p++],v=p===1;if(v)a=e[p],o=e[p+1],s=a,l=o;var g=-1;switch(h){case Er.M:a=s=e[p++],o=l=e[p++];break;case Er.L:{var y=e[p++],m=e[p++],d=y-a,x=m-o;if(wu(d)>i||wu(x)>n||p===t-1)g=Math.sqrt(d*d+x*x),a=y,o=m;break}case Er.C:{var S=e[p++],w=e[p++],y=e[p++],m=e[p++],T=e[p++],A=e[p++];g=p5(a,o,S,w,y,m,T,A,10),a=T,o=A;break}case Er.Q:{var S=e[p++],w=e[p++],y=e[p++],m=e[p++];g=d5(a,o,S,w,y,m,10),a=y,o=m;break}case Er.A:var M=e[p++],D=e[p++],L=e[p++],I=e[p++],E=e[p++],R=e[p++],B=R+E;if(p+=1,v)s=Rp(E)*L+M,l=Op(E)*I+D;g=nM(L,I)*iM(Uc,Math.abs(R)),a=Rp(B)*L+M,o=Op(B)*I+D;break;case Er.R:{s=a=e[p++],l=o=e[p++];var z=e[p++],V=e[p++];g=z*2+V*2;break}case Er.Z:{var d=s-a,x=l-o;g=Math.sqrt(d*d+x*x),a=s,o=l;break}}if(g>=0)u[f++]=g,c+=g}return this._pathLen=c,c},r.prototype.rebuildPath=function(e,t){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,c,f,p,h=t<1,v,g,y=0,m=0,d,x=0,S,w;if(h){if(!this._pathSegLen)this._calculateLength();if(v=this._pathSegLen,g=this._pathLen,d=t*g,!d)return}t:for(var T=0;T<o;){var A=i[T++],M=T===1;if(M)u=i[T],c=i[T+1],s=u,l=c;if(A!==Er.L&&x>0)e.lineTo(S,w),x=0;switch(A){case Er.M:s=u=i[T++],l=c=i[T++],e.moveTo(u,c);break;case Er.L:{f=i[T++],p=i[T++];var D=wu(f-u),L=wu(p-c);if(D>n||L>a){if(h){var I=v[m++];if(y+I>d){var E=(d-y)/I;e.lineTo(u*(1-E)+f*E,c*(1-E)+p*E);break t}y+=I}e.lineTo(f,p),u=f,c=p,x=0}else{var R=D*D+L*L;if(R>x)S=f,w=p,x=R}break}case Er.C:{var B=i[T++],z=i[T++],V=i[T++],H=i[T++],K=i[T++],F=i[T++];if(h){var I=v[m++];if(y+I>d){var E=(d-y)/I;Po(u,B,V,K,E,Ip),Po(c,z,H,F,E,Pp),e.bezierCurveTo(Ip[1],Pp[1],Ip[2],Pp[2],Ip[3],Pp[3]);break t}y+=I}e.bezierCurveTo(B,z,V,H,K,F),u=K,c=F;break}case Er.Q:{var B=i[T++],z=i[T++],V=i[T++],H=i[T++];if(h){var I=v[m++];if(y+I>d){var E=(d-y)/I;Mc(u,B,V,E,Ip),Mc(c,z,H,E,Pp),e.quadraticCurveTo(Ip[1],Pp[1],Ip[2],Pp[2]);break t}y+=I}e.quadraticCurveTo(B,z,V,H),u=V,c=H;break}case Er.A:var G=i[T++],rt=i[T++],ot=i[T++],at=i[T++],mt=i[T++],Tt=i[T++],Ut=i[T++],qt=!i[T++],Zt=ot>at?ot:at,Rt=wu(ot-at)>0.001,oe=mt+Tt,Vt=!1;if(h){var I=v[m++];if(y+I>d)oe=mt+Tt*(d-y)/I,Vt=!0;y+=I}if(Rt&&e.ellipse)e.ellipse(G,rt,ot,at,Ut,mt,oe,qt);else e.arc(G,rt,Zt,mt,oe,qt);if(Vt)break t;if(M)s=Rp(mt)*ot+G,l=Op(mt)*at+rt;u=Rp(oe)*ot+G,c=Op(oe)*at+rt;break;case Er.R:s=u=i[T],l=c=i[T+1],f=i[T++],p=i[T++];var N=i[T++],vt=i[T++];if(h){var I=v[m++];if(y+I>d){var ut=d-y;if(e.moveTo(f,p),e.lineTo(f+iM(ut,N),p),ut-=N,ut>0)e.lineTo(f+N,p+iM(ut,vt));if(ut-=vt,ut>0)e.lineTo(f+nM(N-ut,0),p+vt);if(ut-=N,ut>0)e.lineTo(f,p+nM(vt-ut,0));break t}y+=I}e.rect(f,p,N,vt);break;case Er.Z:if(h){var I=v[m++];if(y+I>d){var E=(d-y)/I;e.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break t}y+=I}e.closePath(),u=s,c=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Er,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}(),Fi=Rdt});function Cl(r,e,t,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function JF(r,e,t,i,n,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>i+f&&c>a+f&&c>s+f||c<e-f&&c<i-f&&c<a-f&&c<s-f||u>r+f&&u>t+f&&u>n+f&&u>o+f||u<r-f&&u<t-f&&u<n-f&&u<o-f)return!1;var p=Lx(r,e,t,i,n,a,o,s,u,c,null);return p<=f/2}var $F=k(()=>{ga()});function xS(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var c=Ix(r,e,t,i,n,a,s,l,null);return c<=u/2}var lM=k(()=>{ga()});function un(r){if(r%=t3,r<0)r+=t3;return r}var t3;var Hg=k(()=>{t3=Math.PI*2});function e3(r,e,t,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(i-n)%Wg<0.0001)return!0;if(a){var f=i;i=un(n),n=un(f)}else i=un(i),n=un(n);if(i>n)n+=Wg;var p=Math.atan2(l,s);if(p<0)p+=Wg;return p>=i&&p<=n||p+Wg>=i&&p+Wg<=n}var Wg;var r3=k(()=>{Hg();Wg=Math.PI*2});function Ho(r,e,t,i,n,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;if(o===1||o===0)s=i<e?0.5:-0.5;var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}function zdt(r,e){return Math.abs(r-e)<Ndt}function Bdt(){var r=Wo[0];Wo[0]=Wo[1],Wo[1]=r}function Udt(r,e,t,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var c=hp(e,i,a,s,u,Yn);if(c===0)return 0;else{var f=0,p=-1,h=void 0,v=void 0;for(var g=0;g<c;g++){var y=Yn[g],m=y===0||y===1?0.5:1,d=ni(r,t,n,o,y);if(d<l)continue;if(p<0){if(p=Mx(e,i,a,s,Wo),Wo[1]<Wo[0]&&p>1)Bdt();if(h=ni(e,i,a,s,Wo[0]),p>1)v=ni(e,i,a,s,Wo[1])}if(p===2)if(y<Wo[0])f+=h<e?m:-m;else if(y<Wo[1])f+=v<h?m:-m;else f+=s<v?m:-m;else if(y<Wo[0])f+=h<e?m:-m;else f+=s<h?m:-m}return f}}function Vdt(r,e,t,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=h5(e,i,a,s,Yn);if(l===0)return 0;else{var u=Dx(e,i,a);if(u>=0&&u<=1){var c=0,f=ci(e,i,a,u);for(var p=0;p<l;p++){var h=Yn[p]===0||Yn[p]===1?0.5:1,v=ci(r,t,n,Yn[p]);if(v<o)continue;if(Yn[p]<u)c+=f<e?h:-h;else c+=a<f?h:-h}return c}else{var h=Yn[0]===0||Yn[0]===1?0.5:1,v=ci(r,t,n,Yn[0]);if(v<o)return 0;return a<e?h:-h}}}function Fdt(r,e,t,i,n,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Yn[0]=-l,Yn[1]=l;var u=Math.abs(i-n);if(u<0.0001)return 0;if(u>=Np-0.0001){i=0,n=Np;var c=a?1:-1;if(o>=Yn[0]+r&&o<=Yn[1]+r)return c;else return 0}if(i>n){var f=i;i=n,n=f}if(i<0)i+=Np,n+=Np;var p=0;for(var h=0;h<2;h++){var v=Yn[h];if(v+r>o){var g=Math.atan2(s,v),c=a?1:-1;if(g<0)g=Np+g;if(g>=i&&g<=n||g+Np>=i&&g+Np<=n){if(g>Math.PI/2&&g<Math.PI*1.5)c=-c;p+=c}}}return p}function i3(r,e,t,i,n){var a=r.data,o=r.len(),s=0,l=0,u=0,c=0,f=0,p,h;for(var v=0;v<o;){var g=a[v++],y=v===1;if(g===Vc.M&&v>1){if(!t)s+=Ho(l,u,c,f,i,n)}if(y)l=a[v],u=a[v+1],c=l,f=u;switch(g){case Vc.M:c=a[v++],f=a[v++],l=c,u=f;break;case Vc.L:if(t){if(Cl(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Ho(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Vc.C:if(t){if(JF(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=Udt(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Vc.Q:if(t){if(xS(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=Vdt(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case Vc.A:var m=a[v++],d=a[v++],x=a[v++],S=a[v++],w=a[v++],T=a[v++];v+=1;var A=!!(1-a[v++]);if(p=Math.cos(w)*x+m,h=Math.sin(w)*S+d,!y)s+=Ho(l,u,p,h,i,n);else c=p,f=h;var M=(i-m)*S/x+m;if(t){if(e3(m,d,S,w,w+T,A,e,M,n))return!0}else s+=Fdt(m,d,S,w,w+T,A,M,n);l=Math.cos(w+T)*x+m,u=Math.sin(w+T)*S+d;break;case Vc.R:c=l=a[v++],f=u=a[v++];var D=a[v++],L=a[v++];if(p=c+D,h=f+L,t){if(Cl(c,f,p,f,e,i,n)||Cl(p,f,p,h,e,i,n)||Cl(p,h,c,h,e,i,n)||Cl(c,h,c,f,e,i,n))return!0}else s+=Ho(p,f,p,h,i,n),s+=Ho(c,h,c,f,i,n);break;case Vc.Z:if(t){if(Cl(l,u,c,f,e,i,n))return!0}else s+=Ho(l,u,c,f,i,n);l=c,u=f;break}}if(!t&&!zdt(u,f))s+=Ho(l,u,c,f,i,n)||0;return s!==0}function n3(r,e,t){return i3(r,0,!1,e,t)}function a3(r,e,t,i){return i3(r,e,!0,t,i)}var Vc,Np,Ndt=0.0001,Yn,Wo;var o3=k(()=>{ao();$F();lM();r3();ga();Vc=Fi.CMD,Np=Math.PI*2;Yn=[-1,-1,-1],Wo=[-1,-1]});var Hd,Hdt,uM,Wdt,$t;var Br=k(()=>{Wr();no();iS();ao();o3();Z();sn();_p();No();Hd=Dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bl),Hdt={style:Dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mp.style)},uM=ko.concat(["invisible","culling","z","z2","zlevel","parent"]),Wdt=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;if(n.buildPath===e.prototype.buildPath)n.buildPath=function(l){t.buildPath(l,t.shape)};n.silent=!0;var a=n.style;for(var o in i)if(a[o]!==i[o])a[o]=i[o];a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<uM.length;++s)n[uM[s]]=this[uM[s]];n.__dirty|=Ci}else if(this._decalEl)this._decalEl=null},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=le(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();if(n)this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=t[o];if(o==="style")if(!this.style)this.useStyle(s);else et(this.style,s);else if(o==="shape")et(this.shape,s);else r.prototype.attrKV.call(this,o,s)}if(!this.style)this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(ht(t)){var i=Md(t,0);if(i>0.5)return Pg;else if(i>0.2)return G5;return Rg}else if(t)return Rg}return Pg},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(ht(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Md(t,0)<Ig;if(a===o)return i}},e.prototype.buildPath=function(t,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Ac},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Fi(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,n=!t;if(n){var a=!1;if(!this.path)a=!0,this.createPathProxy();var o=this.path;if(a||this.__dirty&Ac)o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated();t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c==null?4:c)}if(l>0.0000000001)s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2}return s}return t},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect(),o=this.style;if(t=n[0],i=n[1],a.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>0.0000000001){if(!this.hasFill())l=Math.max(l,this.strokeContainThreshold);if(a3(s,l/u,t,i))return!0}}if(this.hasFill())return n3(s,t,i)}return!1},e.prototype.dirtyShape=function(){if(this.__dirty|=Ac,this._rect)this._rect=null;if(this._decalEl)this._decalEl.dirtyShape();this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){if(t==="style")this.dirtyStyle();else if(t==="shape")this.dirtyShape();else this.markRedraw()},e.prototype.attrKV=function(t,i){if(t==="shape")this.setShape(i);else r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var n=this.shape;if(!n)n=this.shape={};if(typeof t==="string")n[t]=i;else et(n,t);return this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ac)},e.prototype.createStyle=function(t){return wc(Hd,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;if(t.shape&&!i.shape)i.shape=et({},this.shape)},e.prototype._applyStateObj=function(t,i,n,a,o,s){if(r.prototype._applyStateObj.call(this,t,i,n,a,o,s),this.__inHover===Id)return;var l=!(i&&a),u;if(i&&i.shape)if(o)if(a)u=i.shape;else u=et({},n.shape),et(u,i.shape);else u=et({},a?this.shape:n.shape),et(u,i.shape);else if(l)u=n.shape;if(u)if(o){this.shape=et({},this.shape);var c={},f=le(u);for(var p=0;p<f.length;p++){var h=f[p];if(typeof u[h]==="object")this.shape[h]=u[h];else c[h]=u[h]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){var i=r.prototype._mergeStates.call(this,t),n;for(var a=0;a<t.length;a++){var o=t[a];if(o.shape)n=n||{},this._mergeStyle(n,o.shape)}if(n)i.shape=n;return i},e.prototype.getAnimationStyleProps=function(){return Hdt},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(a){Ee(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return It(t.style)},o.prototype.getDefaultShape=function(){return It(t.shape)},o}(e);for(var n in t)if(typeof t[n]==="function")i.prototype[n]=t[n];return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Ci|pp|Ac}(),e}(fi),$t=Wdt});var Ydt,s3,Tu;var Yg=k(()=>{Wr();no();Br();Z();Ja();qE();Ydt=Dt({strokeFirst:!0,font:pa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Hd),s3=function(r){Ee(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return KE(this.style)},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return wc(Ydt,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){if(!this._rect)this._rect=GF(this.style);return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(fi);s3.prototype.type="tspan";Tu=s3});function Xdt(r){return!!(r&&typeof r!=="string"&&r.width&&r.height)}var Zdt,jdt,l3,_r;var Yo=k(()=>{Wr();no();fr();Z();Zdt=Dt({x:0,y:0},bl),jdt={style:Dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mp.style)};l3=function(r){Ee(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return wc(Zdt,t)},e.prototype._getSize=function(t){var i=this.style,n=i[t];if(n!=null)return n;var a=Xdt(i.image)?i.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=i[o];if(s==null)return a[t];else return a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return jdt},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect)this._rect=new Gt(t.x||0,t.y||0,this.getWidth(),this.getHeight());return this._rect},e}(fi);l3.prototype.type="image";_r=l3});function u3(r,e){var{x:t,y:i,width:n,height:a,r:o}=e,s,l,u,c;if(n<0)t=t+n,n=-n;if(a<0)i=i+a,a=-a;if(typeof o==="number")s=l=u=c=o;else if(o instanceof Array)if(o.length===1)s=l=u=c=o[0];else if(o.length===2)s=u=o[0],l=c=o[1];else if(o.length===3)s=o[0],l=c=o[1],u=o[2];else s=o[0],l=o[1],u=o[2],c=o[3];else s=l=u=c=0;var f;if(s+l>n)f=s+l,s*=n/f,l*=n/f;if(u+c>n)f=u+c,u*=n/f,c*=n/f;if(l+u>a)f=l+u,l*=a/f,u*=a/f;if(s+c>a)f=s+c,s*=a/f,c*=a/f;r.moveTo(t+s,i),r.lineTo(t+n-l,i),l!==0&&r.arc(t+n-l,i+l,l,-Math.PI/2,0),r.lineTo(t+n,i+a-u),u!==0&&r.arc(t+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(t+c,i+a),c!==0&&r.arc(t+c,i+a-c,c,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}function zp(r,e,t){if(!e)return;var{x1:i,x2:n,y1:a,y2:o}=e;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=t&&t.lineWidth;if(!s)return r;if(Wd(i*2)===Wd(n*2))r.x1=r.x2=Zn(i,s,!0);if(Wd(a*2)===Wd(o*2))r.y1=r.y2=Zn(a,s,!0);return r}function SS(r,e,t){if(!e)return;var{x:i,y:n,width:a,height:o}=e;r.x=i,r.y=n,r.width=a,r.height=o;var s=t&&t.lineWidth;if(!s)return r;return r.x=Zn(i,s,!0),r.y=Zn(n,s,!0),r.width=Math.max(Zn(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Zn(n+o,s,!1)-r.y,o===0?0:1),r}function Zn(r,e,t){if(!e)return r;var i=Wd(r*2);return(i+Wd(e))%2===0?i/2:(i+(t?1:-1))/2}var Wd;var Yd=k(()=>{Wd=Math.round});var Jdt,$dt,c3,ee;var Zd=k(()=>{Wr();Br();Yd();Jdt=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),$dt={},c3=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jdt},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=SS($dt,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;if(!i.r)t.rect(n,a,o,s);else u3(t,i)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}($t);c3.prototype.type="rect";ee=c3});function fM(r){if(typeof r==="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1))return r;else if(!isNaN(+r))return r+"px";else return ux+"px"}function d3(r,e){for(var t=0;t<h3.length;t++){var i=h3[t],n=e[i];if(n!=null)r[i]=n}}function pM(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function rvt(r){return v3(r),P(r.rich,v3),r}function v3(r){if(r){r.font=x3.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||tvt[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||evt[t]?t:"top";var i=r.padding;if(i)r.padding=bc(r.padding)}}function m3(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function g3(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function y3(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function _3(r){var e=r.text;return e!=null&&(e+=""),e}function cM(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var f3,p3=2,El,Qdt,x3,tvt,evt,h3,me;var Bp=k(()=>{Wr();qE();Yg();Z();Hn();Yo();Zd();fr();no();Ja();f3={fill:"#000"},El={},Qdt={style:Dt({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},Mp.style)},x3=function(r){Ee(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=f3,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){if(r.prototype.update.call(this),this.styleChanged())this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;if(t){if(t.updateTransform(),t.transform)this.transform=t.transform}else r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){if(this.__hostTarget)this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0);return r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,rvt(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged())this._updateSubTexts();if(!this._rect){var t=new Gt(0,0,0,0),i=this._children,n=[],a=null;for(var o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);if(u)t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t);else a=a||l.clone(),a.union(l)}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||f3},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var n=i.rich,a=t.rich||n&&{};if(et(t,i),n&&a)this._mergeRich(a,n),t.rich=a;else if(a)t.rich=a;return t},e.prototype._mergeRich=function(t,i){var n=le(i);for(var a=0;a<n.length;a++){var o=n[a];t[o]=t[o]||{},et(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return Qdt},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];if(!i||!(i instanceof t))i=new t;return this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||pa,n=t.padding,a=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||a.align||"left",u=t.verticalAlign||a.verticalAlign||"top";jE(El,a.overflowRect,o,s,l,u),o=El.baseX,s=El.baseY;var c=_3(t),f=UF(c,t,El.outerWidth,El.outerHeight),p=cM(t),h=!!t.backgroundColor,{outerHeight:v,outerWidth:g,lines:y,lineHeight:m}=f;this.isTruncated=!!f.isTruncated;var d=o,x=Su(s,f.contentHeight,u);if(p||n){var S=Pc(o,g,l),w=Su(s,v,u);p&&this._renderBackground(t,t,S,w,g,v)}if(x+=m/2,n){if(d=y3(o,l,n),u==="top")x+=n[0];else if(u==="bottom")x-=n[2]}var T=0,A=!1,M=!1,D=g3("fill"in t?t.fill:(M=!0,a.fill)),L=m3("stroke"in t?t.stroke:!h&&(!a.autoStroke||M)?(T=p3,A=!0,a.stroke):null),I=t.textShadowBlur>0;for(var E=0;E<y.length;E++){var R=this._getOrCreateChild(Tu),B=R.createStyle();if(R.useStyle(B),B.text=y[E],B.x=d,B.y=x,l)B.textAlign=l;if(B.textBaseline="middle",B.opacity=t.opacity,B.strokeFirst=!0,I)B.shadowBlur=t.textShadowBlur||0,B.shadowColor=t.textShadowColor||"transparent",B.shadowOffsetX=t.textShadowOffsetX||0,B.shadowOffsetY=t.textShadowOffsetY||0;if(B.stroke=L,B.fill=D,L)B.lineWidth=t.lineWidth||T,B.lineDash=t.lineDash,B.lineDashOffset=t.lineDashOffset||0;B.font=i,d3(B,t),x+=m,R.setBoundingRect(mS(B,f.contentWidth,f.calculatedLineHeight,A?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,i=this._defaultStyle,n=t.align||i.align,a=t.verticalAlign||i.verticalAlign,o=t.x||0,s=t.y||0;jE(El,i.overflowRect,o,s,n,a),o=El.baseX,s=El.baseY;var l=_3(t),u=VF(l,t,El.outerWidth,El.outerHeight,n),{width:c,outerWidth:f,outerHeight:p}=u,h=t.padding;this.isTruncated=!!u.isTruncated;var v=Pc(o,f,n),g=Su(s,p,a),y=v,m=g;if(h)y+=h[3],m+=h[0];var d=y+c;if(cM(t))this._renderBackground(t,t,v,g,f,p);var x=!!t.backgroundColor;for(var S=0;S<u.lines.length;S++){var w=u.lines[S],T=w.tokens,A=T.length,{lineHeight:M,width:D}=w,L=0,I=y,E=d,R=A-1,B=void 0;while(L<A&&(B=T[L],!B.align||B.align==="left"))this._placeToken(B,t,M,m,I,"left",x),D-=B.width,I+=B.width,L++;while(R>=0&&(B=T[R],B.align==="right"))this._placeToken(B,t,M,m,E,"right",x),D-=B.width,E-=B.width,R--;I+=(c-(I-y)-(d-E)-D)/2;while(L<=R)B=T[L],this._placeToken(B,t,M,m,I+B.width/2,"center",x),I+=B.width,L++;m+=M}},e.prototype._placeToken=function(t,i,n,a,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,f=a+n/2;if(c==="top")f=a+t.height/2;else if(c==="bottom")f=a+n-t.height/2;var p=!t.isLineHolder&&cM(u);p&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var h=!!u.backgroundColor,v=t.textPadding;if(v)o=y3(o,s,v),f-=t.height/2-v[0]-t.innerHeight/2;var g=this._getOrCreateChild(Tu),y=g.createStyle();g.useStyle(y);var m=this._defaultStyle,d=!1,x=0,S=!1,w=g3("fill"in u?u.fill:("fill"in i)?i.fill:(d=!0,m.fill)),T=m3("stroke"in u?u.stroke:("stroke"in i)?i.stroke:!h&&!l&&(!m.autoStroke||d)?(x=p3,S=!0,m.stroke):null),A=u.textShadowBlur>0||i.textShadowBlur>0;if(y.text=t.text,y.x=o,y.y=f,A)y.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,y.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0;if(y.textAlign=s,y.textBaseline="middle",y.font=t.font||pa,y.opacity=Hr(u.opacity,i.opacity,1),d3(y,u),T)y.lineWidth=Hr(u.lineWidth,i.lineWidth,x),y.lineDash=St(u.lineDash,i.lineDash),y.lineDashOffset=i.lineDashOffset||0,y.stroke=T;if(w)y.fill=w;g.setBoundingRect(mS(y,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,i,n,a,o,s){var{backgroundColor:l,borderWidth:u,borderColor:c}=t,f=l&&l.image,p=l&&!f,h=t.borderRadius,v=this,g,y;if(p||t.lineHeight||u&&c){g=this._getOrCreateChild(ee),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=h,g.dirtyShape()}if(p){var d=g.style;d.fill=l||null,d.fillOpacity=St(t.fillOpacity,1)}else if(f){y=this._getOrCreateChild(_r),y.onload=function(){v.dirtyStyle()};var x=y.style;x.image=l.image,x.x=n,x.y=a,x.width=o,x.height=s}if(u&&c){var d=g.style;if(d.lineWidth=u,d.stroke=c,d.strokeOpacity=St(t.strokeOpacity,1),d.lineDash=t.borderDash,d.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke())d.strokeFirst=!0,d.lineWidth*=2}var S=(g||y).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Hr(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";if(pM(t))i=[t.fontStyle,t.fontWeight,fM(t.fontSize),t.fontFamily||"sans-serif"].join(" ");return i&&Ti(i)||t.textFont||t.font},e}(fi),tvt={left:!0,right:1,center:1},evt={top:1,bottom:1,middle:1},h3=["fontStyle","fontWeight","fontSize","fontFamily"];me=x3});var Yt,Zg=function(r,e,t,i){if(i){var n=Yt(i);if(n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",i.type==="group")i.traverse(function(a){var o=Yt(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var lr=k(()=>{yt();Yt=Ft()});var Fc="undefined",cn="series",bS,Gi="original",ai="arrayRows",ji="objectRows",Ea="keyedColumns",oo="typedArray",hM="unknown",jn="column",Ml="row",dM="Roam";var gi=k(()=>{Z();bS=gt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"])});function wS(r,e){return e.mainType===cn?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var ivt,nvt,TS;var jg=k(()=>{Z();gi();ivt=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nvt=function(){function r(e){P(ivt,function(t){this[t]=xt(e[t],e)},this)}return r}();TS=nvt});function jd(r){return r!=null&&r!=="none"}function MS(r,e,t){if(r.onHoverStateChange&&(r.hoverState||0)!==t)r.onHoverStateChange(e);r.hoverState=t}function M3(r){MS(r,"emphasis",Xg)}function L3(r){if(r.hoverState===Xg)MS(r,"normal",yM)}function _M(r){MS(r,"blur",Up)}function D3(r){if(r.hoverState===Up)MS(r,"normal",yM)}function ovt(r){r.selected=!0}function svt(r){r.selected=!1}function w3(r,e,t){e(r,t)}function Cu(r,e,t){w3(r,e,t),r.isGroup&&r.traverse(function(i){w3(i,e,t)})}function Vp(r,e){switch(e){case"emphasis":r.hoverState=Xg;break;case"normal":r.hoverState=yM;break;case"blur":r.hoverState=Up;break;case"select":r.selected=!0}}function lvt(r,e,t,i){var n=r.style,a={};for(var o=0;o<e.length;o++){var s=e[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];if(u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style")u.saveTo(a,e)}return a}function uvt(r,e,t,i){var n=t&&Xt(t,"select")>=0,a=!1;if(r instanceof $t){var o=E3(r),s=n?o.selectFill||o.normalFill:o.normalFill,l=n?o.selectStroke||o.normalStroke:o.normalStroke;if(jd(s)||jd(l)){i=i||{};var u=i.style||{};if(u.fill==="inherit")a=!0,i=et({},i),u=et({},u),u.fill=s;else if(!jd(u.fill)&&jd(s))a=!0,i=et({},i),u=et({},u),u.fill=Ag(s);else if(!jd(u.stroke)&&jd(l)){if(!a)i=et({},i),u=et({},u);u.stroke=Ag(l)}i.style=u}}if(i){if(i.z2==null){if(!a)i=et({},i);var c=r.z2EmphasisLift;i.z2=r.z2+(c!=null?c:Au)}}return i}function cvt(r,e,t){if(t){if(t.z2==null){t=et({},t);var i=r.z2SelectLift;t.z2=r.z2+(i!=null?i:avt)}}return t}function fvt(r,e,t){var i=Xt(r.currentStates,e)>=0,n=r.style.opacity,a=!i?lvt(r,["opacity"],e,{opacity:1}):null;t=t||{};var o=t.style||{};if(o.opacity==null)t=et({},t),o=et({opacity:i?n:a.opacity*0.1},o),t.style=o;return t}function vM(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return uvt(this,r,e,t);else if(r==="blur")return fvt(this,r,t);else if(r==="select")return cvt(this,r,t)}return t}function Is(r){r.stateProxy=vM;var e=r.getTextContent(),t=r.getTextGuideLine();if(e)e.stateProxy=vM;if(t)t.stateProxy=vM}function T3(r,e){!I3(r,e)&&!r.__highByOuter&&Cu(r,M3)}function A3(r,e){!I3(r,e)&&!r.__highByOuter&&Cu(r,L3)}function An(r,e){r.__highByOuter|=1<<(e||0),Cu(r,M3)}function Cn(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Cu(r,L3)}function LS(r){Cu(r,_M)}function $g(r){Cu(r,D3)}function xM(r){Cu(r,ovt)}function SM(r){Cu(r,svt)}function I3(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function bM(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(n,a){var o=gM(a),s=wS(r,a),l=n==="series";if(!l&&i.push(s),o.isBlured)s.group.traverse(function(u){D3(u)}),l&&t.push(a);o.isBlured=!1}),P(i,function(n){if(n&&n.toggleBlurSeries)n.toggleBlurSeries(t,!1,e)})}function mM(r,e,t,i){var n=i.getModel();t=t||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var p=u.getItemGraphicEl(c[f]);p&&$g(p)}}if(r==null)return;if(!e||e==="none")return;var o=n.getSeriesByIndex(r),s=o.coordinateSystem;if(s&&s.master)s=s.master;var l=[];n.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;if(f&&f.master)f=f.master;var p=f&&s?f===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!p||e==="series"&&c)){var h=i.getViewOfSeriesModel(u);if(h.group.traverse(function(y){if(y.__highByOuter&&c&&e==="self")return;_M(y)}),ii(e))a(u.getData(),e);else if(Pt(e)){var v=le(e);for(var g=0;g<v.length;g++)a(u.getData(v[g]),e[v[g]])}l.push(u),gM(u).isBlured=!0}}),n.eachComponent(function(u,c){if(u==="series")return;var f=i.getViewOfComponentModel(c);if(f&&f.toggleBlurSeries)f.toggleBlurSeries(l,!0,n)})}function AS(r,e,t){if(r==null||e==null)return;var i=t.getModel().getComponent(r,e);if(!i)return;gM(i).isBlured=!0;var n=t.getViewOfComponentModel(i);if(!n||!n.focusBlurEnabled)return;n.group.traverse(function(a){_M(a)})}function P3(r,e,t){var i=r.seriesIndex,n=r.getData(e.dataType);if(!n)return;var a=Fo(n,e);a=(it(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o){var s=n.count(),l=0;while(!o&&l<s)o=n.getItemGraphicEl(l++)}if(o){var u=Yt(o);mM(i,u.focus,u.blurScope,t)}else{var c=r.get(["emphasis","focus"]),f=r.get(["emphasis","blurScope"]);if(c!=null)mM(i,c,f,t)}}function DS(r,e,t,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var a=i.getModel().getComponent(r,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;var s=o.findHighDownDispatchers(t),l;for(var u=0;u<s.length;u++)if(Yt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function R3(r,e,t){var i=Yt(r),n=DS(i.componentMainType,i.componentIndex,i.componentHighDownName,t),{dispatchers:a,focusSelf:o}=n;if(a){if(o)AS(i.componentMainType,i.componentIndex,t);P(a,function(s){return T3(s,e)})}else{if(mM(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self")AS(i.componentMainType,i.componentIndex,t);T3(r,e)}}function O3(r,e,t){bM(t);var i=Yt(r),n=DS(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;if(n)P(n,function(a){return A3(a,e)});else A3(r,e)}function k3(r,e,t){if(!PS(e))return;var i=e.dataType,n=r.getData(i),a=Fo(n,e);if(!it(a))a=[a];r[e.type===Jg?"toggleSelect":e.type===qg?"select":"unselect"](a,i)}function wM(r){var e=r.getAllData();P(e,function(t){var{data:i,type:n}=t;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?xM(a):SM(a)})})}function N3(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();P(i,function(n){var{data:a,type:o}=n,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};if(o!=null)l.dataType=o;e.push(l)}})}),e}function Ll(r,e,t){Eu(r,!0),Cu(r,Is),IS(r,e,t)}function pvt(r){Eu(r,!1)}function Ie(r,e,t,i){i?pvt(r):Ll(r,e,t)}function IS(r,e,t){var i=Yt(r);if(e!=null)i.focus=e,i.blurScope=t;else if(i.focus)i.focus=null}function pr(r,e,t,i){t=t||"itemStyle";for(var n=0;n<C3.length;n++){var a=C3[n],o=e.getModel([a,t]),s=r.ensureState(a);s.style=i?i(o):o[hvt[t]]()}}function Eu(r,e){var t=e===!1,i=r;if(r.highDownSilentOnTouch)i.__highDownSilentOnTouch=r.highDownSilentOnTouch;if(!t||i.__highDownDispatcher)i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t}function Wc(r){return!!(r&&r.__highDownDispatcher)}function z3(r,e,t){var i=Yt(r);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function B3(r){var e=b3[r];if(e==null&&S3<=32)e=b3[r]=S3++;return e}function PS(r){var e=r.type;return e===qg||e===CS||e===Jg}function TM(r){var e=r.type;return e===Hc||e===Kg}function U3(r){var e=E3(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var S3=1,b3,E3,gM,yM=0,Up=1,Xg=2,Ni,Gc,Au=10,avt=9,Hc="highlight",Kg="downplay",qg="select",CS="unselect",Jg="toggleSelect",ES="selectchanged",C3,hvt;var tr=k(()=>{Z();lr();sn();yt();Br();jg();b3={},E3=Ft(),gM=Ft(),Ni=["emphasis","blur","select"],Gc=["normal","emphasis","blur","select"];C3=["emphasis","blur","select"],hvt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"}});function RS(r,e){if(!e)return;var t=r.data,i=r.len(),n,a,o,s,l,u,{M:c,C:f,L:p,R:h,A:v,Q:g}=Xd;for(o=0,s=0;o<i;){switch(n=t[o++],s=o,a=0,n){case c:a=1;break;case p:a=1;break;case f:a=3;break;case g:a=2;break;case v:var y=e[4],m=e[5],d=V3(e[0]*e[0]+e[1]*e[1]),x=V3(e[2]*e[2]+e[3]*e[3]),S=vvt(-e[1]/x,e[0]/d);t[o]*=d,t[o++]+=y,t[o]*=x,t[o++]+=m,t[o++]*=d,t[o++]*=x,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],vr(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],vr(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var w=dvt[l];w[0]=t[o++],w[1]=t[o++],vr(w,w,e),t[s++]=w[0],t[s++]=w[1]}}r.increaseVersion()}var Xd,dvt,V3,vvt;var F3=k(()=>{ao();br();Xd=Fi.CMD,dvt=[[],[],[]],V3=Math.sqrt,vvt=Math.atan2});function G3(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function CM(r,e){return(r[0]*e[0]+r[1]*e[1])/(G3(r)*G3(e))}function H3(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(CM(r,e))}function W3(r,e,t,i,n,a,o,s,l,u,c){var f=l*(Qg/180),p=kS(f)*(r-t)/2+OS(f)*(e-i)/2,h=-1*OS(f)*(r-t)/2+kS(f)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);if(v>1)o*=AM(v),s*=AM(v);var g=(n===a?-1:1)*AM((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,y=g*o*h/s,m=g*-s*p/o,d=(r+t)/2+kS(f)*y-OS(f)*m,x=(e+i)/2+OS(f)*y+kS(f)*m,S=H3([1,0],[(p-y)/o,(h-m)/s]),w=[(p-y)/o,(h-m)/s],T=[(-1*p-y)/o,(-1*h-m)/s],A=H3(w,T);if(CM(w,T)<=-1)A=Qg;if(CM(w,T)>=1)A=0;if(A<0){var M=Math.round(A/Qg*1e6)/1e6;A=Qg*2+M%2*Qg}c.addData(u,d,x,o,s,S,A,f,a)}function yvt(r){var e=new Fi;if(!r)return e;var t=0,i=0,n=t,a=i,o,s=Fi.CMD,l=r.match(mvt);if(!l)return e;for(var u=0;u<l.length;u++){var c=l[u],f=c.charAt(0),p=void 0,h=c.match(gvt)||[],v=h.length;for(var g=0;g<v;g++)h[g]=parseFloat(h[g]);var y=0;while(y<v){var m=void 0,d=void 0,x=void 0,S=void 0,w=void 0,T=void 0,A=void 0,M=t,D=i,L=void 0,I=void 0;switch(f){case"l":t+=h[y++],i+=h[y++],p=s.L,e.addData(p,t,i);break;case"L":t=h[y++],i=h[y++],p=s.L,e.addData(p,t,i);break;case"m":t+=h[y++],i+=h[y++],p=s.M,e.addData(p,t,i),n=t,a=i,f="l";break;case"M":t=h[y++],i=h[y++],p=s.M,e.addData(p,t,i),n=t,a=i,f="L";break;case"h":t+=h[y++],p=s.L,e.addData(p,t,i);break;case"H":t=h[y++],p=s.L,e.addData(p,t,i);break;case"v":i+=h[y++],p=s.L,e.addData(p,t,i);break;case"V":i=h[y++],p=s.L,e.addData(p,t,i);break;case"C":p=s.C,e.addData(p,h[y++],h[y++],h[y++],h[y++],h[y++],h[y++]),t=h[y-2],i=h[y-1];break;case"c":p=s.C,e.addData(p,h[y++]+t,h[y++]+i,h[y++]+t,h[y++]+i,h[y++]+t,h[y++]+i),t+=h[y-2],i+=h[y-1];break;case"S":if(m=t,d=i,L=e.len(),I=e.data,o===s.C)m+=t-I[L-4],d+=i-I[L-3];p=s.C,M=h[y++],D=h[y++],t=h[y++],i=h[y++],e.addData(p,m,d,M,D,t,i);break;case"s":if(m=t,d=i,L=e.len(),I=e.data,o===s.C)m+=t-I[L-4],d+=i-I[L-3];p=s.C,M=t+h[y++],D=i+h[y++],t+=h[y++],i+=h[y++],e.addData(p,m,d,M,D,t,i);break;case"Q":M=h[y++],D=h[y++],t=h[y++],i=h[y++],p=s.Q,e.addData(p,M,D,t,i);break;case"q":M=h[y++]+t,D=h[y++]+i,t+=h[y++],i+=h[y++],p=s.Q,e.addData(p,M,D,t,i);break;case"T":if(m=t,d=i,L=e.len(),I=e.data,o===s.Q)m+=t-I[L-4],d+=i-I[L-3];t=h[y++],i=h[y++],p=s.Q,e.addData(p,m,d,t,i);break;case"t":if(m=t,d=i,L=e.len(),I=e.data,o===s.Q)m+=t-I[L-4],d+=i-I[L-3];t+=h[y++],i+=h[y++],p=s.Q,e.addData(p,m,d,t,i);break;case"A":x=h[y++],S=h[y++],w=h[y++],T=h[y++],A=h[y++],M=t,D=i,t=h[y++],i=h[y++],p=s.A,W3(M,D,t,i,T,A,x,S,w,p,e);break;case"a":x=h[y++],S=h[y++],w=h[y++],T=h[y++],A=h[y++],M=t,D=i,t+=h[y++],i+=h[y++],p=s.A,W3(M,D,t,i,T,A,x,S,w,p,e);break}}if(f==="z"||f==="Z")p=s.Z,e.addData(p),t=n,i=a;o=p}return e.toStatic(),e}function Z3(r){return r.setData!=null}function j3(r,e){var t=yvt(r),i=et({},e);return i.buildPath=function(n){var a=Z3(n);if(a&&n.canSave()){n.appendPath(t);var o=n.getContext();if(o)n.rebuildPath(o,1)}else{var o=a?n.getContext():n;if(o)t.rebuildPath(o,1)}},i.applyTransform=function(n){RS(t,n),this.dirtyShape()},i}function NS(r,e){return new Y3(j3(r,e))}function X3(r,e){var t=j3(r,e),i=function(n){Ee(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(Y3);return i}function K3(r,e){var t=[],i=r.length;for(var n=0;n<i;n++){var a=r[n];t.push(a.getUpdatedPathProxy(!0))}var o=new $t(e);return o.createPathProxy(),o.buildPath=function(s){if(Z3(s)){s.appendPath(t);var l=s.getContext();if(l)s.rebuildPath(l,1)}},o}function Kd(r,e){e=e||{};var t=new $t;if(r.shape)t.setShape(r.shape);if(t.setStyle(r.style),e.bakeTransform)RS(t.path,r.getComputedTransform());else if(e.toLocal)t.setLocalTransform(r.getComputedTransform());else t.copyTransform(r);return t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var AM,OS,kS,Qg,mvt,gvt,Y3;var qd=k(()=>{Wr();Br();ao();F3();Z();AM=Math.sqrt,OS=Math.sin,kS=Math.cos,Qg=Math.PI;mvt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gvt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;Y3=function(r){Ee(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}($t)});var xvt,q3,Xn;var EM=k(()=>{Wr();Br();xvt=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),q3=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xvt},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}($t);q3.prototype.type="circle";Xn=q3});var Svt,J3,ty;var MM=k(()=>{Wr();Br();Svt=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),J3=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Svt},e.prototype.buildPath=function(t,i){var n=0.5522848,{cx:a,cy:o,rx:s,ry:l}=i,u=s*n,c=l*n;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),t.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),t.closePath()},e}($t);J3.prototype.type="ellipse";ty=J3});function wvt(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,c=o-n,f=s-a,p=f*l-c*u;if(p*p<Ps)return;return p=(c*(e-a)-f*(r-n))/p,[r+p*l,e+p*u]}function zS(r,e,t,i,n,a,o){var s=r-t,l=e-i,u=(o?a:-a)/ry(s*s+l*l),c=u*l,f=-u*s,p=r+c,h=e+f,v=t+c,g=i+f,y=(p+v)/2,m=(h+g)/2,d=v-p,x=g-h,S=d*d+x*x,w=n-a,T=p*g-v*h,A=(x<0?-1:1)*ry(ey(0,w*w*S-T*T)),M=(T*x-d*A)/S,D=(-T*d-x*A)/S,L=(T*x+d*A)/S,I=(-T*d+x*A)/S,E=M-y,R=D-m,B=L-y,z=I-m;if(E*E+R*R>B*B+z*z)M=L,D=I;return{cx:M,cy:D,x0:-c,y0:-f,x1:M*(n/w-1),y1:D*(n/w-1)}}function Tvt(r){var e;if(it(r)){var t=r.length;if(!t)return r;if(t===1)e=[r[0],r[0],0,0];else if(t===2)e=[r[0],r[0],r[1],r[1]];else if(t===3)e=r.concat(r[2]);else e=r}else e=[r,r,r,r];return e}function tG(r,e){var t,i=ey(e.r,0),n=ey(e.r0||0,0),a=i>0,o=n>0;if(!a&&!o)return;if(!a)i=n,n=0;if(n>i){var s=i;i=n,n=s}var{startAngle:l,endAngle:u}=e;if(isNaN(l)||isNaN(u))return;var{cx:c,cy:f}=e,p=!!e.clockwise,h=$3(u-l),v=h>LM&&h%LM;if(v>Ps&&(h=v),!(i>Ps))r.moveTo(c,f);else if(h>LM-Ps){if(r.moveTo(c+i*Jd(l),f+i*Fp(l)),r.arc(c,f,i,l,u,!p),n>Ps)r.moveTo(c+n*Jd(u),f+n*Fp(u)),r.arc(c,f,n,u,l,p)}else{var g=void 0,y=void 0,m=void 0,d=void 0,x=void 0,S=void 0,w=void 0,T=void 0,A=void 0,M=void 0,D=void 0,L=void 0,I=void 0,E=void 0,R=void 0,B=void 0,z=i*Jd(l),V=i*Fp(l),H=n*Jd(u),K=n*Fp(u),F=h>Ps;if(F){var G=e.cornerRadius;if(G)t=Tvt(G),g=t[0],y=t[1],m=t[2],d=t[3];var rt=$3(i-n)/2;if(x=Dl(rt,m),S=Dl(rt,d),w=Dl(rt,g),T=Dl(rt,y),D=A=ey(x,S),L=M=ey(w,T),A>Ps||M>Ps){if(I=i*Jd(u),E=i*Fp(u),R=n*Jd(l),B=n*Fp(l),h<Q3){var ot=wvt(z,V,R,B,I,E,H,K);if(ot){var at=z-ot[0],mt=V-ot[1],Tt=I-ot[0],Ut=E-ot[1],qt=1/Fp(bvt((at*Tt+mt*Ut)/(ry(at*at+mt*mt)*ry(Tt*Tt+Ut*Ut)))/2),Zt=ry(ot[0]*ot[0]+ot[1]*ot[1]);D=Dl(A,(i-Zt)/(qt+1)),L=Dl(M,(n-Zt)/(qt-1))}}}}if(!F)r.moveTo(c+z,f+V);else if(D>Ps){var Rt=Dl(m,D),oe=Dl(d,D),Vt=zS(R,B,z,V,i,Rt,p),N=zS(I,E,H,K,i,oe,p);if(r.moveTo(c+Vt.cx+Vt.x0,f+Vt.cy+Vt.y0),D<A&&Rt===oe)r.arc(c+Vt.cx,f+Vt.cy,D,En(Vt.y0,Vt.x0),En(N.y0,N.x0),!p);else Rt>0&&r.arc(c+Vt.cx,f+Vt.cy,Rt,En(Vt.y0,Vt.x0),En(Vt.y1,Vt.x1),!p),r.arc(c,f,i,En(Vt.cy+Vt.y1,Vt.cx+Vt.x1),En(N.cy+N.y1,N.cx+N.x1),!p),oe>0&&r.arc(c+N.cx,f+N.cy,oe,En(N.y1,N.x1),En(N.y0,N.x0),!p)}else r.moveTo(c+z,f+V),r.arc(c,f,i,l,u,!p);if(!(n>Ps)||!F)r.lineTo(c+H,f+K);else if(L>Ps){var Rt=Dl(g,L),oe=Dl(y,L),Vt=zS(H,K,I,E,n,-oe,p),N=zS(z,V,R,B,n,-Rt,p);if(r.lineTo(c+Vt.cx+Vt.x0,f+Vt.cy+Vt.y0),L<M&&Rt===oe)r.arc(c+Vt.cx,f+Vt.cy,L,En(Vt.y0,Vt.x0),En(N.y0,N.x0),!p);else oe>0&&r.arc(c+Vt.cx,f+Vt.cy,oe,En(Vt.y0,Vt.x0),En(Vt.y1,Vt.x1),!p),r.arc(c,f,n,En(Vt.cy+Vt.y1,Vt.cx+Vt.x1),En(N.cy+N.y1,N.cx+N.x1),p),Rt>0&&r.arc(c+N.cx,f+N.cy,Rt,En(N.y1,N.x1),En(N.y0,N.x0),!p)}else r.lineTo(c+H,f+K),r.arc(c,f,n,u,l,p)}r.closePath()}var Q3,LM,Fp,Jd,bvt,En,$3,ry,ey,Dl,Ps=0.0001;var eG=k(()=>{Z();Q3=Math.PI,LM=Q3*2,Fp=Math.sin,Jd=Math.cos,bvt=Math.acos,En=Math.atan2,$3=Math.abs,ry=Math.sqrt,ey=Math.max,Dl=Math.min});var Cvt,rG,Qr;var DM=k(()=>{Wr();Br();eG();Cvt=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),rG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Cvt},e.prototype.buildPath=function(t,i){tG(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}($t);rG.prototype.type="sector";Qr=rG});var Evt,iG,Gp;var nG=k(()=>{Wr();Br();Evt=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),iG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Evt},e.prototype.buildPath=function(t,i){var{cx:n,cy:a}=i,o=Math.PI*2;t.moveTo(n+i.r,a),t.arc(n,a,i.r,0,o,!1),t.moveTo(n+i.r0,a),t.arc(n,a,i.r0,0,o,!0)},e}($t);iG.prototype.type="ring";Gp=iG});function IM(r,e,t,i){var n=[],a=[],o=[],s=[],l,u,c,f;if(i){c=[1/0,1/0],f=[-1/0,-1/0];for(var p=0,h=r.length;p<h;p++)Qa(c,c,r[p]),to(f,f,r[p]);Qa(c,c,i[0]),to(f,f,i[1])}for(var p=0,h=r.length;p<h;p++){var v=r[p];if(t)l=r[p?p-1:h-1],u=r[(p+1)%h];else if(p===0||p===h-1){n.push(ha(r[p]));continue}else l=r[p-1],u=r[p+1];Ss(a,u,l),_d(a,a,e);var g=mx(v,l),y=mx(v,u),m=g+y;if(m!==0)g/=m,y/=m;_d(o,a,-g),_d(s,a,y);var d=U2([],v,o),x=U2([],v,s);if(i)to(d,d,c),Qa(d,d,f),to(x,x,c),Qa(x,x,f);n.push(d),n.push(x)}if(t)n.push(n.shift());return n}var aG=k(()=>{br()});function BS(r,e,t){var{smooth:i,points:n}=e;if(n&&n.length>=2){if(i){var a=IM(n,i,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);var o=n.length;for(var s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,f=n.length;s<f;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var PM=k(()=>{aG()});var Mvt,sG,kr;var US=k(()=>{Wr();Br();PM();Mvt=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),sG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Mvt},e.prototype.buildPath=function(t,i){BS(t,i,!0)},e}($t);sG.prototype.type="polygon";kr=sG});var Lvt,lG,Mr;var RM=k(()=>{Wr();Br();PM();Lvt=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),lG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lvt},e.prototype.buildPath=function(t,i){BS(t,i,!1)},e}($t);lG.prototype.type="polyline";Mr=lG});var Dvt,Ivt,uG,xr;var OM=k(()=>{Wr();Br();Yd();Dvt={},Ivt=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),uG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ivt},e.prototype.buildPath=function(t,i){var n,a,o,s;if(this.subPixelOptimize){var l=zp(Dvt,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;if(u===0)return;if(t.moveTo(n,a),u<1)o=n*(1-u)+o*u,s=a*(1-u)+s*u;t.lineTo(o,s)},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}($t);uG.prototype.type="line";xr=uG});function cG(r,e,t){var{cpx2:i,cpy2:n}=r;if(i!=null||n!=null)return[(t?aE:ni)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?aE:ni)(r.y1,r.cpy1,r.cpy2,r.y2,e)];else return[(t?Sg:ci)(r.x1,r.cpx1,r.x2,e),(t?Sg:ci)(r.y1,r.cpy1,r.y2,e)]}var Ma,Pvt,fG,Hp;var pG=k(()=>{Wr();Br();br();ga();Ma=[],Pvt=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();fG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Pvt},e.prototype.buildPath=function(t,i){var{x1:n,y1:a,x2:o,y2:s,cpx1:l,cpy1:u,cpx2:c,cpy2:f,percent:p}=i;if(p===0)return;if(t.moveTo(n,a),c==null||f==null){if(p<1)Mc(n,l,o,p,Ma),l=Ma[1],o=Ma[2],Mc(a,u,s,p,Ma),u=Ma[1],s=Ma[2];t.quadraticCurveTo(l,u,o,s)}else{if(p<1)Po(n,l,c,o,p,Ma),l=Ma[1],c=Ma[2],o=Ma[3],Po(a,u,f,s,p,Ma),u=Ma[1],f=Ma[2],s=Ma[3];t.bezierCurveTo(l,u,c,f,o,s)}},e.prototype.pointAt=function(t){return cG(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=cG(this.shape,t,!0);return Lo(i,i)},e}($t);fG.prototype.type="bezier-curve";Hp=fG});var Rvt,hG,iy;var dG=k(()=>{Wr();Br();Rvt=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),hG=function(r){Ee(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Rvt},e.prototype.buildPath=function(t,i){var{cx:n,cy:a}=i,o=Math.max(i.r,0),{startAngle:s,endAngle:l,clockwise:u}=i,c=Math.cos(s),f=Math.sin(s);t.moveTo(c*o+n,f*o+a),t.arc(n,a,o,s,l,!u)},e}($t);hG.prototype.type="arc";iy=hG});var Ovt,Yc;var kM=k(()=>{Wr();Br();Ovt=function(r){Ee(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){var t=this.shape.paths,i=this.shapeChanged();for(var n=0;n<t.length;n++)i=i||t[n].shapeChanged();if(i)this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();var t=this.shape.paths||[],i=this.getGlobalScale();for(var n=0;n<t.length;n++){if(!t[n].path)t[n].createPathProxy();t[n].path.setScale(i[0],i[1],t[n].segmentIgnoreThreshold)}},e.prototype.buildPath=function(t,i){var n=i.paths||[];for(var a=0;a<n.length;a++)n[a].buildPath(t,n[a].shape,!0)},e.prototype.afterBrush=function(){var t=this.shape.paths||[];for(var i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),$t.prototype.getBoundingRect.call(this)},e}($t),Yc=Ovt});var kvt,VS;var NM=k(()=>{kvt=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}(),VS=kvt});var Nvt,Zo;var FS=k(()=>{Wr();NM();Nvt=function(r){Ee(e,r);function e(t,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e}(VS),Zo=Nvt});var zvt,GS;var zM=k(()=>{Wr();NM();zvt=function(r){Ee(e,r);function e(t,i,n,a,o){var s=r.call(this,a)||this;return s.x=t==null?0.5:t,s.y=i==null?0.5:i,s.r=n==null?0.5:n,s.type="radial",s.global=o||!1,s}return e}(VS),GS=zvt});var BM,Bvt,HS,Wp,Yp,Xi,WS,YS,Uvt,ZS;var vG=k(()=>{Tc();fr();BM=Math.min,Bvt=Math.max,HS=Math.abs,Wp=[0,0],Yp=[0,0],Xi=$2(),WS=Xi.minTv,YS=Xi.maxTv,Uvt=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Qt;for(var i=0;i<2;i++)this._axes[i]=new Qt;if(e)this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,n=this._axes,{x:a,y:o}=e,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),t)for(var u=0;u<4;u++)i[u].transform(t);Qt.sub(n[0],i[1],i[0]),Qt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(e,t,i){var n=!0,a=!t;if(t)Qt.set(t,0,0);if(Xi.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)){if(n=!1,a)return n}if(!this._intersectCheckOneSide(e,this,a,-1)){if(n=!1,a)return n}if(!a&&!Xi.negativeSize)Qt.copy(t,n?Xi.useDir?Xi.dirMinTv:WS:YS);return n},r.prototype._intersectCheckOneSide=function(e,t,i,n){var a=!0;for(var o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Wp),e._getProjMinMaxOnAxis(o,t._corners,Yp),Xi.negativeSize||Wp[1]<Yp[0]||Wp[0]>Yp[1]){if(a=!1,Xi.negativeSize||i)return a;var l=HS(Yp[0]-Wp[1]),u=HS(Wp[0]-Yp[1]);if(BM(l,u)>YS.len())if(l<u)Qt.scale(YS,s,-l*n);else Qt.scale(YS,s,u*n)}else if(!i){var l=HS(Yp[0]-Wp[1]),u=HS(Wp[0]-Yp[1]);if(Xi.useDir||BM(l,u)<WS.len()){if(l<u||!Xi.bidirectional){if(Qt.scale(WS,s,l*n),Xi.useDir)Xi.calcDirMTV()}if(l>=u||!Xi.bidirectional){if(Qt.scale(WS,s,-u*n),Xi.useDir)Xi.calcDirMTV()}}}}return a},r.prototype._getProjMinMaxOnAxis=function(e,t,i){var n=this._axes[e],a=this._origin,o=t[0].dot(n)+a[e],s=o,l=o;for(var u=1;u<t.length;u++){var c=t[u].dot(n)+a[e];s=BM(c,s),l=Bvt(c,l)}i[0]=s+Xi.touchThreshold,i[1]=l-Xi.touchThreshold,Xi.negativeSize=i[1]<i[0]},r}(),ZS=Uvt});var UM=0,mG=1,gG=2,yG=1,$d=0;var Vvt,Fvt,_G;var xG=k(()=>{Wr();no();fr();Vvt=[],Fvt=function(r){Ee(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=mG,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){if(i)this._temporaryDisplayables.push(t);else this._displayables.push(t);this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){var t=new Gt(1/0,1/0,-1/0,-1/0);for(var i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();if(n.needLocalTransform())a.applyTransform(n.getLocalTransform(Vvt));t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e}(fi),_G=Fvt});function Il(r,e,t,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,c=void 0,f=void 0;if(i)u=St(i.duration,200),c=St(i.easing,"cubicOut"),f=0;else u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay");if(a)a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay);if(Mt(f))f=f(t,n);if(Mt(u))u=u(t);var p={duration:u||0,delay:f,easing:c};return p}else return null}function VM(r,e,t,i,n,a,o){var s=!1,l;if(Mt(n))o=a,a=n,n=null;else if(Pt(n))a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex;var u=r==="leave";if(!u)e.stopAnimation("leave");var c=Il(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(c&&c.duration>0){var{duration:f,delay:p,easing:h}=c,v={duration:f,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,v):e.animateTo(t,v)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function ge(r,e,t,i,n,a){VM("update",r,e,t,i,n,a)}function ze(r,e,t,i,n,a){VM("enter",r,e,t,i,n,a)}function Mu(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function jo(r,e,t,i,n,a){if(Mu(r))return;VM("leave",r,e,t,i,n,a)}function SG(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),jo(r,{style:{opacity:0}},e,t,i)}function La(r,e,t){function i(){r.parent&&r.parent.remove(r)}if(!r.isGroup)SG(r,e,t,i);else r.traverse(function(n){if(!n.isGroup)SG(n,e,t,i)})}function pi(r){bG(r).oldStyle=r.style}function wG(r){return bG(r).oldStyle}var bG;var Ki=k(()=>{Z();yt();bG=Ft()});var pe={};Mpt(pe,{Arc:()=>iy,BezierCurve:()=>Hp,BoundingRect:()=>Gt,Circle:()=>Xn,CompoundPath:()=>Yc,Ellipse:()=>ty,Group:()=>Lt,HOVER_LAYER_FOR_INCREMENTAL:()=>Rs,HOVER_LAYER_FROM_THRESHOLD:()=>YM,HOVER_LAYER_NO:()=>WM,Image:()=>_r,IncrementalDisplayable:()=>_G,Line:()=>xr,LinearGradient:()=>Zo,OrientedBoundingRect:()=>ZS,Path:()=>$t,Point:()=>Qt,Polygon:()=>kr,Polyline:()=>Mr,RadialGradient:()=>GS,Rect:()=>ee,Ring:()=>Gp,Sector:()=>Qr,Text:()=>me,WH:()=>Lr,XY:()=>fe,applyTransform:()=>fn,calcZ2Range:()=>XM,clipPointsByRect:()=>jM,clipRectByRect:()=>jvt,createIcon:()=>Pu,decomposeTransform:()=>sy,ensureCopyRect:()=>ev,ensureCopyTransform:()=>KS,expandOrShrinkRect:()=>Xo,extendPath:()=>Wvt,extendShape:()=>Gvt,getCurrentCanvasPainter:()=>qS,getShapeClass:()=>Qd,getTransform:()=>Du,groupTransition:()=>Iu,initProps:()=>ze,isBoundingRectAxisAligned:()=>XS,isElementRemoved:()=>Mu,lineLineIntersect:()=>MG,linePolygonIntersect:()=>tv,makeImage:()=>ZM,makePath:()=>Zp,mergePath:()=>Mn,payloadDisableAnimation:()=>oy,registerShape:()=>Os,removeElement:()=>jo,removeElementWithFadeOut:()=>La,resizePath:()=>EG,retrieveZInfo:()=>Ko,setTooltipConfig:()=>Ln,subPixelOptimize:()=>ay,subPixelOptimizeLine:()=>Lu,subPixelOptimizeRect:()=>Yvt,transformDirection:()=>jp,traverseElements:()=>Kn,traverseUpdateZ:()=>Xp,updateProps:()=>ge});function Gvt(r){return $t.extend(r)}function Wvt(r,e){return Hvt(r,e)}function Os(r,e){GM[r]=e}function Qd(r){if(GM.hasOwnProperty(r))return GM[r]}function Zp(r,e,t,i){var n=NS(r,e);if(t){if(i==="center")t=CG(t,n.getBoundingRect());EG(n,t)}return n}function ZM(r,e,t){var i=new _r({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var a={width:n.width,height:n.height};i.setStyle(CG(e,a))}}});return i}function CG(r,e){var t=e.width/e.height,i=r.height*t,n;if(i<=r.width)n=r.height;else i=r.width,n=i/t;var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}function EG(r,e){if(!r.applyTransform)return;var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}function Lu(r,e){return zp(r,r,{lineWidth:e}),r}function Yvt(r,e){return SS(r,r,e),r}function Du(r,e){var t=bs([]);while(r&&r!==e)Ri(t,r.getLocalTransform(),t),r=r.parent;return t}function fn(r,e,t){if(e&&!ii(e))e=xa.getLocalTransform(e);if(t)e=mi([],e);return vr([],r,e)}function jp(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:yr(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:yr(2*e[4]/e[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=fn(a,e,t),yr(a[0])>yr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function TG(r){return!r.isGroup}function Zvt(r){return r.shape!=null}function Iu(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){if(TG(l)&&l.anid)s[l.anid]=l}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};if(Zvt(o))s.shape=It(o.shape);return s}var a=i(r);e.traverse(function(o){if(TG(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ge(o,l,t,Yt(o).dataIndex)}}})}function jM(r,e){return nt(r,function(t){var i=t[0];i=ce(i,e.x),i=ke(i,e.x+e.width);var n=t[1];return n=ce(n,e.y),n=ke(n,e.y+e.height),[i,n]})}function jvt(r,e){var t=ce(r.x,e.x),i=ke(r.x+r.width,e.x+e.width),n=ce(r.y,e.y),a=ke(r.y+r.height,e.y+e.height);if(i>=t&&a>=n)return{x:t,y:n,width:i-t,height:a-n}}function Pu(r,e,t){var i=et({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Dt(n,t),new _r(i)):Zp(r.replace("path://",""),i,t,"center")}function tv(r,e,t,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(MG(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function MG(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,c=o-n,f=s-a,p=FM(c,f,l,u);if(Xvt(p))return!1;var h=r-n,v=e-a,g=FM(h,v,l,u)/p;if(g<0||g>1)return!1;var y=FM(h,v,c,f)/p;if(y<0||y>1)return!1;return!0}function FM(r,e,t,i){return r*i-t*e}function Xvt(r){return r<=0.000001&&r>=-0.000001}function Xo(r,e,t,i,n){if(e==null)return r;else if(ue(e))Yr[0]=Yr[1]=Yr[2]=Yr[3]=e;else Yr[0]=e[0],Yr[1]=e[1],Yr[2]=e[2],Yr[3]=e[3];if(i)Yr[0]=ce(0,Yr[0]),Yr[1]=ce(0,Yr[1]),Yr[2]=ce(0,Yr[2]),Yr[3]=ce(0,Yr[3]);if(t)Yr[0]=-Yr[0],Yr[1]=-Yr[1],Yr[2]=-Yr[2],Yr[3]=-Yr[3];return AG(r,Yr,"x","width",3,1,n&&n[0]||0),AG(r,Yr,"y","height",0,2,n&&n[1]||0),r}function AG(r,e,t,i,n,a,o){var s=e[a]+e[n],l=r[i];if(r[i]+=s,o=ce(0,ke(o,l)),r[i]<o)r[i]=o,r[t]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:yr(s)>0.00000001?(l-o)*e[n]/s:0;else r[t]-=e[n]}function Ln(r){var{itemTooltipOption:e,componentModel:t,itemName:i}=r,n=ht(e)?{formatter:e}:e,{mainType:a,componentIndex:o}=t,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;if(l)P(le(l),function(c){if(!Bt(s,c))s[c]=l[c],s.$vars.push(c)});var u=Yt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:Dt({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function HM(r,e){var t;if(r.isGroup)t=e(r);if(!t)r.traverse(e)}function Kn(r,e){if(r)if(it(r))for(var t=0;t<r.length;t++)HM(r[t],e);else HM(r,e)}function XS(r){return!r||yr(r[1])<jS&&yr(r[2])<jS||yr(r[0])<jS&&yr(r[3])<jS}function ev(r,e){return r?Gt.copy(r,e):e.clone()}function KS(r,e){return e?hl(r||Qe(),e):void 0}function Ko(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function XM(r){var e=-1/0,t=1/0;HM(r,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!a||a.isGroup)return;var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}function n(a){if(a){var o=a.z2;if(o>e)e=o;if(o<t)t=o}}if(t>e)t=e=0;return{min:t,max:e}}function Xp(r,e,t){LG(r,e,t,-1/0)}function LG(r,e,t,i){if(r.ignoreModelZ)return i;var n=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o){var s=r.childrenRef();for(var l=0;l<s.length;l++)i=ce(LG(s[l],e,t,i),i)}else r.z=e,r.zlevel=t,i=ce(r.z2||0,i);if(n)n.z=e,n.zlevel=t,isFinite(i)&&(n.z2=i+2);if(a){var u=r.textGuideLineConfig;a.z=e,a.zlevel=t,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function oy(r){return r.animation={duration:0},r}function sy(r,e){return e?hl(ny.transform,e):bs(ny.transform),ny.decomposeTransform(),_a(r,ny),r}function qS(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}var GM,fe,Lr,WM=0,YM=1,Rs=2,Hvt,Mn,ay,Yr,jS=0.00001,ny;var jt=k(()=>{qd();br();Br();No();Yo();Rc();Bp();EM();MM();DM();nG();US();RM();Zd();OM();pG();dG();kM();FS();zM();fr();vG();Tc();xG();Yd();Z();lr();Ki();te();GM={},fe=["x","y"],Lr=["width","height"];Hvt=X3;Mn=K3;ay=Zn;Yr=[0,0,0,0];ny=new xa;ny.transform=Qe();Os("circle",Xn);Os("ellipse",ty);Os("sector",Qr);Os("ring",Gp);Os("polygon",kr);Os("polyline",Mr);Os("rect",ee);Os("line",xr);Os("bezierCurve",Hp);Os("arc",iy)});function OG(r,e){for(var t=0;t<Ni.length;t++){var i=Ni[t],n=e[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function KM(r,e,t){var{labelFetcher:i,labelDataIndex:n,labelDimIndex:a}=r,o=e.normal,s;if(i)s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null);if(s==null)s=Mt(r.defaultText)?r.defaultText(n,r,t):r.defaultText;var l={normal:s};for(var u=0;u<Ni.length;u++){var c=Ni[u],f=e[c];l[c]=St(i?i.getFormattedLabel(n,c,null,a,f&&f.get("formatter")):null,s)}return l}function or(r,e,t,i){t=t||JS;var n=r instanceof me,a=!1;for(var o=0;o<Gc.length;o++){var s=e[Gc[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){if(!n){if(!l)l=new me,r.setTextContent(l);if(r.stateProxy)l.stateProxy=r.stateProxy}var u=KM(t,e),c=e.normal,f=!!c.getShallow("show"),p=He(c,i&&i.normal,t,!1,!n);if(p.text=u.normal,!n)r.setTextConfig(ly(c,t,!1));for(var o=0;o<Ni.length;o++){var h=Ni[o],s=e[h];if(s){var v=l.ensureState(h),g=!!St(s.getShallow("show"),f);if(g!==f)v.ignore=!g;if(v.style=He(s,i&&i[h],t,!0,!n),v.style.text=u[h],!n){var y=r.ensureState(h);y.textConfig=ly(s,t,!0)}}}if(l.silent=!!c.getShallow("silent"),l.style.x!=null)p.x=l.style.x;if(l.style.y!=null)p.y=l.style.y;if(l.ignore=!f,l.useStyle(p),l.dirty(),t.enableTextSetter)Ru(l).setLabelText=function(m){var d=KM(t,e,m);OG(l,d)}}else if(l)l.ignore=!0;r.dirty()}function er(r,e){e=e||"label";var t={normal:r.getModel(e)};for(var i=0;i<Ni.length;i++){var n=Ni[i];t[n]=r.getModel([n,e])}return t}function He(r,e,t,i,n){var a={};return Kvt(a,r,t,i,n),e&&et(a,e),a}function ly(r,e,t){e=e||{};var i={},n,a=r.getShallow("rotate"),o=St(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");if(n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null)i.position=n;if(s!=null)i.offset=s;if(a!=null)a*=Math.PI/180,i.rotation=a;if(o!=null)i.distance=o;if(i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null)i.autoOverflowArea=e.autoOverflowArea;if(e.layoutRect!=null)i.layoutRect=e.layoutRect;return i}function Kvt(r,e,t,i,n){t=t||JS;var a=e.ecModel,o=a&&a.option.textStyle,s=qvt(e),l;if(s){l={};var u="richInheritPlainLabel",c=St(e.get(u),a?a.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var p=e.getModel(["rich",f]);RG(l[f]={},p,o,e,c,t,i,n,!1,!0)}}if(l)r.rich=l;var h=e.get("overflow");if(h)r.overflow=h;var v=e.get("lineOverflow");if(v)r.lineOverflow=v;var g=r,y=e.get("minMargin");if(y!=null)y=!ue(y)?0:y/2,g.margin=[y,y,y,y],g.__marginType=Kp.minMargin;else{var m=e.get("textMargin");if(m!=null)g.margin=bc(m),g.__marginType=Kp.textMargin}RG(r,e,o,null,null,t,i,n,!0,!1)}function qvt(r){var e;while(r&&r!==r.ecModel){var t=(r.option||JS).rich;if(t){e=e||{};var i=le(t);for(var n=0;n<i.length;n++){var a=i[n];e[a]=1}}r=r.parentModel}return e}function RG(r,e,t,i,n,a,o,s,l,u){t=!o&&t||JS;var c=a&&a.inheritColor,f=e.getShallow("color"),p=e.getShallow("textBorderColor"),h=St(e.getShallow("opacity"),t.opacity);if(f==="inherit"||f==="auto")if(c)f=c;else f=null;if(p==="inherit"||p==="auto")if(c)p=c;else p=null;if(!s)f=f||t.color,p=p||t.textBorderColor;if(f!=null)r.fill=f;if(p!=null)r.stroke=p;var v=St(e.getShallow("textBorderWidth"),t.textBorderWidth);if(v!=null)r.lineWidth=v;var g=St(e.getShallow("textBorderType"),t.textBorderType);if(g!=null)r.lineDash=g;var y=St(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);if(y!=null)r.lineDashOffset=y;if(!o&&h==null&&!u)h=a&&a.defaultOpacity;if(h!=null)r.opacity=h;if(!o&&!s){if(r.fill==null&&a.inheritColor)r.fill=a.inheritColor}for(var m=0;m<DG.length;m++){var d=DG[m],x=n!==!1&&i?Hr(e.getShallow(d),i.getShallow(d),t[d]):St(e.getShallow(d),t[d]);if(x!=null)r[d]=x}for(var m=0;m<IG.length;m++){var d=IG[m],x=e.getShallow(d);if(x!=null)r[d]=x}if(r.verticalAlign==null){var S=e.getShallow("baseline");if(S!=null)r.verticalAlign=S}if(!l||!a.disableBox){for(var m=0;m<PG.length;m++){var d=PG[m],x=e.getShallow(d);if(x!=null)r[d]=x}var w=e.getShallow("borderType");if(w!=null)r.borderDash=w;if((r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&c)r.backgroundColor=c;if((r.borderColor==="auto"||r.borderColor==="inherit")&&c)r.borderColor=c}}function rv(r,e){var t=e&&e.getModel("textStyle");return Ti([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}function $S(r,e,t,i){if(!r)return;var n=Ru(r);n.prevValue=n.value,n.value=t;var a=e.normal;if(n.valueAnimation=a.get("valueAnimation"),n.valueAnimation)n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=e}function QS(r,e,t,i,n){var a=Ru(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=St(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=fS(t,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var p=KM({labelDataIndex:e,labelFetcher:n,defaultText:o?o(f):f+""},a.statesModels,f);OG(r,p)}r.percent=0,(a.prevValue==null?ze:ge)(r,{percent:1},i,e,null,u)}var JS,DG,IG,PG,Ru,Kp;var rr=k(()=>{Bp();Z();tr();yt();jt();JS={};DG=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],IG=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],PG=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];Ru=Ft();Kp={minMargin:1,textMargin:2}});var $vt,qM,JM,Qvt,kG;var NG=k(()=>{rr();Bp();$vt=["textStyle","color"],qM=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],JM=new me,Qvt=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get($vt):null)},r.prototype.getFont=function(){return rv({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")};for(var i=0;i<qM.length;i++)t[qM[i]]=this.getShallow(qM[i]);return JM.useStyle(t),JM.update(),JM.getBoundingRect()},r}(),kG=Qvt});var $M,tmt,zG;var QM=k(()=>{Ep();$M=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],tmt=Ta($M),zG=function(){function r(){}return r.prototype.getLineStyle=function(e){return tmt(this,e)},r}()});var tL,emt,BG;var eL=k(()=>{Ep();tL=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],emt=Ta(tL),BG=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return emt(this,e,t)},r}()});var qp,ye;var ti=k(()=>{Vi();Sl();IF();NG();QM();eL();Z();qp=function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){var n=[];for(var a=3;a<arguments.length;a++)n[a-3]=arguments[a]},r.prototype.mergeOption=function(e,t){re(this.option,e,!0)},r.prototype.get=function(e,t){if(e==null)return this.option;return this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,n=i==null?i:i[e];if(n==null&&!t){var a=this.parentModel;if(a)n=a.getShallow(e)}return n},r.prototype.getModel=function(e,t){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(It(this.option))},r.prototype.parsePath=function(e){if(typeof e==="string")return e.split(".");return e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Te.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var n=0;n<e.length;n++){if(!e[n])continue;if(i=i&&typeof i==="object"?i[e[n]]:null,i==null)break}if(i==null&&t)i=t._doGet(this.resolveParentPath(e),t.parentModel);return i},r}();Fd(qp);LF(qp);dr(qp,zG);dr(qp,BG);dr(qp,DF);dr(qp,kG);ye=qp});function Da(r){return[r||"",rmt++].join("_")}function UG(r){var e={};r.registerSubTypeDefaulter=function(t,i){var n=wa(t);e[n.main]=i},r.determineSubType=function(t,i){var n=i.type;if(!n){var a=wa(t).main;if(r.hasSubTypes(t)&&e[a])n=e[a](i)}return n}}function VG(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),{graph:c,noEntryList:f}=u,p={};P(a,function(d){p[d]=!0});while(f.length){var h=f.pop(),v=c[h],g=!!p[h];if(g)s.call(l,h,v.originalDeps.slice()),delete p[h];P(v.successor,g?m:y)}P(p,function(){var d="";throw Error(d)});function y(d){if(c[d].entryCount--,c[d].entryCount===0)f.push(d)}function m(d){p[d]=!0,y(d)}};function t(a){var o={},s=[];return P(a,function(l){var u=i(o,l),c=u.originalDeps=e(l),f=n(c,a);if(u.entryCount=f.length,u.entryCount===0)s.push(l);P(f,function(p){if(Xt(u.predecessor,p)<0)u.predecessor.push(p);var h=i(o,p);if(Xt(h.successor,p)<0)h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){if(!a[o])a[o]={predecessor:[],successor:[]};return a[o]}function n(a,o){var s=[];return P(a,function(l){Xt(o,l)>=0&&s.push(l)}),s}}function Dn(r,e){return re(re({},r,!0),e,!0)}var rmt;var In=k(()=>{Z();Sl();rmt=Math.round(Math.random()*10)});var FG;var GG=k(()=>{FG={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}});var HG;var WG=k(()=>{HG={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}}});function YG(r,e){r=r.toUpperCase(),nL[r]=new ye(e),tb[r]=e}function ZG(r){if(ht(r)){var e=tb[r.toUpperCase()]||{};if(r===eb||r===iL)return It(e);else return re(It(e),It(tb[iv]),!1)}else return re(It(r),It(tb[iv]),!1)}function uy(r){return nL[r]}function jG(){return nL[iv]}var eb="ZH",iL="EN",iv,tb,nL,rb;var ib=k(()=>{ti();Vi();GG();WG();Z();iv=iL,tb={},nL={},rb=!Te.domSupported?iv:function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||iv).toUpperCase();return r.indexOf(eb)>-1?eb:iv}();YG(iL,FG);YG(eb,HG)});function XG(r){if(!aL)aL=r}function wr(){return aL}function nb(r,e){var t=wr(),{breakOption:i,breakParsed:n}=e;if(!n&&t)n=t.parseAxisBreakOption(i,r);return n}function Jp(r){var e=r.brk;return e?e.breaks:[]}function Zc(r){var e=r.brk;return e?e.hasBreaks():!1}var aL=null;function qG(r){return!ht(r)&&!Mt(r)?amt(r):r}function amt(r){r=r||{};var e={},t=!0;return P(Ia,function(i){t&&(t=r[i]==null)}),P(Ia,function(i,n){var a=r[i];e[i]={};var o=null;for(var s=n;s>=0;s--){var l=Ia[s],u=Pt(a)&&!it(a)?a[l]:a,c=void 0;if(it(u))c=u.slice(),o=c[0]||"";else if(ht(u))o=u,c=[o];else{if(o==null)o=ob[i];else if(!imt[l].test(o))o=e[l][l][0]+" "+o;if(c=[o],t)c[1]="{primary|"+o+"}"}e[i][l]=c}}),e}function Ou(r,e){return r+="","0000".substr(0,e-r.length)+r}function av(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function JG(r){return r===av(r)}function $G(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function $p(r,e,t,i){var n=Bo(r),a=n[lL(t)](),o=n[cb(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[fb(t)](),u=n["get"+(t?"UTC":"")+"Day"](),c=n[pb(t)](),f=(c-1)%12+1,p=n[hb(t)](),h=n[db(t)](),v=n[vb(t)](),g=c>=12?"pm":"am",y=g.toUpperCase(),m=i instanceof ye?i:uy(i||rb)||jG(),d=m.getModel("time"),x=d.get("month"),S=d.get("monthAbbr"),w=d.get("dayOfWeek"),T=d.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Ou(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ou(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(v,3)).replace(/{S}/g,v+"")}function QG(r,e,t,i,n){var a=null;if(ht(t))a=t;else if(Mt(t)){var o={time:r.time,level:r.time?r.time.level:0},s=wr();if(s)s.makeAxisLabelFormatterParamBreak(o,r.break);a=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=Qp(r.value,n);a=t[c][c][0]}}return $p(new Date(r.value),a,n,i)}function Qp(r,e){var t=Bo(r),i=t[cb(e)]()+1,n=t[fb(e)](),a=t[pb(e)](),o=t[hb(e)](),s=t[db(e)](),l=t[vb(e)](),u=l===0,c=u&&s===0,f=c&&o===0,p=f&&a===0,h=p&&n===1,v=h&&i===1;if(v)return"year";else if(h)return"month";else if(p)return"day";else if(f)return"hour";else if(c)return"minute";else if(u)return"second";else return"millisecond"}function ub(r,e,t){switch(e){case"year":r[uL(t)](0);case"month":r[cL(t)](1);case"day":r[fL(t)](0);case"hour":r[pL(t)](0);case"minute":r[hL(t)](0);case"second":r[dL(t)](0)}return r}function lL(r){return r?"getUTCFullYear":"getFullYear"}function cb(r){return r?"getUTCMonth":"getMonth"}function fb(r){return r?"getUTCDate":"getDate"}function pb(r){return r?"getUTCHours":"getHours"}function hb(r){return r?"getUTCMinutes":"getMinutes"}function db(r){return r?"getUTCSeconds":"getSeconds"}function vb(r){return r?"getUTCMilliseconds":"getMilliseconds"}function tH(r){return r?"setUTCFullYear":"setFullYear"}function uL(r){return r?"setUTCMonth":"setMonth"}function cL(r){return r?"setUTCDate":"setDate"}function fL(r){return r?"setUTCHours":"setHours"}function pL(r){return r?"setUTCMinutes":"setMinutes"}function hL(r){return r?"setUTCSeconds":"setSeconds"}function dL(r){return r?"setUTCMilliseconds":"setMilliseconds"}var sb=1000,lb,nv,so,oL,imt,ob,nmt="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ab="{yyyy}-{MM}-{dd}",sL,Ia,KG;var cy=k(()=>{Z();te();ib();ti();lb=sb*60,nv=lb*60,so=nv*24,oL=so*365,imt={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ob={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},sL={year:"{yyyy}",month:"{yyyy}-{MM}",day:ab,hour:ab+" "+ob.hour,minute:ab+" "+ob.minute,second:ab+" "+ob.second,millisecond:nmt},Ia=["year","month","day","hour","minute","second","millisecond"],KG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"]});function mL(r){if(!Og(r))return ht(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function mb(r,e){if(r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r)r=r.charAt(0).toUpperCase()+r.slice(1);return r}function gb(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(c){return c&&Ti(c)?c:"-"}function a(c){return ki(c)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Bo(r):r;if(!isNaN(+l))return $p(l,i,t);else if(s)return"-"}if(e==="ordinal")return fg(r)?n(r):ue(r)?a(r)?r+"":"-":"-";var u=Uo(r);return a(u)?mL(u):fg(r)?n(r):typeof r==="boolean"?r+"":"-"}function yb(r,e,t){if(!it(e))e=[e];var i=e.length;if(!i)return"";var n=e[0].$vars||[];for(var a=0;a<n.length;a++){var o=eH[a];r=r.replace(vL(o),vL(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(vL(eH[l],s),t?Pi(u):u)}return r}function _b(r,e,t){return P(e,function(i,n){r=r.replace("{"+n+"}",t?Pi(i):i)}),r}function rH(r,e){var t=ht(r)?{color:r,extraCssText:e}:r||{},{color:i,type:n}=t;e=t.extraCssText;var a=t.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pi(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pi(i)+";"+(e||"")+'"></span>';else{var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}}function ks(r,e){return e=e||"transparent",ht(r)?r:Pt(r)?r.colorStops&&(r.colorStops[0]||{}).color||e:e}function th(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Pl,eH,vL=function(r,e){return"{"+r+(e==null?"":e)+"}"};var pn=k(()=>{Z();hg();te();cy();Pl=bc;eH=["a","b","c","d","e","f","g"]});function smt(r){return!!Sb[r]}function iH(r){nH.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}function wb(r){var e=r.getShallow("coord",!0),t=lmt;if(e==null){var i=nH.get(r.type);if(i&&i.getCoord2)t=yL,e=i.getCoord2(r)}return{coord:e,from:t}}function xL(r,e){var t=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),n=i!=null,a=ov;if(t){var o=r.mainType==="series";if(i==null)i=o?"data":"box";if(i==="data"){if(a=bb,!o)a=ov}else if(i==="box"){if(a=_L,!o&&!smt(t))a=ov}}return{coordSysType:t,kind:a}}function Rl(r){var{targetModel:e,coordSysType:t,coordSysProvider:i,isDefaultDataCoordSys:n,allowNotFound:a}=r,o=xL(e,!0),{kind:s,coordSysType:l}=o;if(n&&s!==bb)s=bb,l=t;if(s===ov||l!==t)return ov;var u=i(t,e);if(!u)return ov;if(s===bb)e.coordinateSystem=u;else e.boxCoordinateSystem=u;return s}var Sb,gL,omt,lmt=1,yL=2,nH,ov=0,bb=1,_L=2,Tb=function(r,e){var t=e.getReferringComponents(r,Xe).models[0];return t&&t.coordinateSystem},ku;var Pa=k(()=>{Z();yt();Sb={},gL={},omt=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=i(Sb,!0),this._normalMasterList=i(gL,!1);function i(n,a){var o=[];return P(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){P(this._normalMasterList,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Sb[e]=t;return}gL[e]=t},r.get=function(e){return gL[e]||Sb[e]},r}();nH=gt();ku=omt});function bL(r,e,t,i,n){var a=0,o=0;if(i==null)i=1/0;if(n==null)n=1/0;var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect(),h,v;if(r==="horizontal"){var g=c.width+(p?-p.x+c.x:0);if(h=a+g,h>i||l.newline)a=0,h=g,o+=s+t,s=c.height;else s=Math.max(s,c.height)}else{var y=c.height+(p?-p.y+c.y:0);if(v=o+y,v>n||l.newline)a+=s+t,o=0,v=y,s=c.width;else s=Math.max(s,c.width)}if(l.newline)return;l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=h+t:o=v+t})}function Cb(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function umt(r,e){var t=Je(r,e,{enableLayoutOnlyByCenter:!0}),i=r.getBoxLayoutParams(),n,a;if(t.type===fy.point)a=t.refPoint,n=Be(i,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=it(o)?o:[o,o];n=Be(i,t.refContainer),a=t.boxCoordFrom===yL?t.refPoint:[wt(s[0],n.width)+n.x,wt(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function Eb(r,e){var t=umt(r,e),{viewRect:i,center:n}=t,a=r.get("radius");if(!it(a))a=[0,a];var o=wt(i.width,e.getWidth()),s=wt(i.height,e.getHeight()),l=Math.min(o,s),u=wt(a[0],l/2),c=wt(a[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:c,viewRect:i}}function Be(r,e,t){t=Pl(t||0);var{width:i,height:n}=e,a=wt(r.left,i),o=wt(r.top,n),s=wt(r.right,i),l=wt(r.bottom,n),u=wt(r.width,i),c=wt(r.height,n),f=t[2]+t[0],p=t[1]+t[3],h=r.aspect;if(isNaN(u))u=i-s-p-a;if(isNaN(c))c=n-l-f-o;if(h!=null){if(isNaN(u)&&isNaN(c))if(h>i/n)u=i*0.8;else c=n*0.8;if(isNaN(u))u=h*c;if(isNaN(c))c=u/h}if(isNaN(a))a=i-s-u-p;if(isNaN(o))o=n-l-c-f;switch(r.left||r.right){case"center":a=i/2-u/2-t[3];break;case"right":a=i-u-p;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-c/2-t[0];break;case"bottom":o=n-c-f;break}if(a=a||0,o=o||0,isNaN(u))u=i-p-a-(s||0);if(isNaN(c))c=n-f-o-(l||0);var v=new Gt((e.x||0)+a+t[3],(e.y||0)+o+t[0],u,c);return v.margin=t,v}function Mb(r,e,t){var i=r.getShallow("preserveAspect",!0);if(!i)return e;var n=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(n))<0.000000001)return e;var a=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=i==="cover";if(n>t&&!l||n<t&&l)s.width=e.height*t,a==="left"?s.left=0:a==="right"?s.right=0:s.left="center";else s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle";return Be(s,e)}function Je(r,e,t){var i,n,a,o=r.boxCoordinateSystem,s;if(o){var l=wb(r),{coord:u,from:c}=l;if(o.dataToLayout){a=fy.rect,s=c;var f=o.dataToLayout(u);i=f.contentRect||f.rect}else if(t&&t.enableLayoutOnlyByCenter&&o.dataToPoint)a=fy.point,s=c,n=o.dataToPoint(u)}if(a==null)a=fy.rect;if(a===fy.rect){if(!i)i={x:0,y:0,width:e.getWidth(),height:e.getHeight()};n=[i.x+i.width/2,i.y+i.height/2]}return{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function jc(r,e,t,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Gt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Be(Dt({width:u.width,height:u.height},e),t,i),p=o?f.x-u.x:0,h=s?f.y-u.y:0;if(l==="raw")a.x=p,a.y=h;else a.x+=p,a.y+=h;if(a===r)r.markRedraw();return!0}function aH(r,e){return r[eh[e][0]]!=null||r[eh[e][1]]!=null&&r[eh[e][2]]!=null}function Xc(r){var e=r.layoutMode||r.constructor.layoutMode;return Pt(e)?e:e?{type:e}:null}function hn(r,e,t){var i=t&&t.ignoreSize;!it(i)&&(i=[i,i]);var n=o(eh[0],0),a=o(eh[1],1);l(eh[0],r,n),l(eh[1],r,a);function o(u,c){var f={},p=0,h={},v=0,g=2;if(Ab(u,function(d){h[d]=r[d]}),Ab(u,function(d){Bt(e,d)&&(f[d]=h[d]=e[d]),s(f,d)&&p++,s(h,d)&&v++}),i[c]){if(s(e,u[1]))h[u[2]]=null;else if(s(e,u[2]))h[u[1]]=null;return h}if(v===g||!p)return h;else if(p>=g)return f;else{for(var y=0;y<u.length;y++){var m=u[y];if(!Bt(f,m)&&Bt(r,m)){f[m]=r[m];break}}return f}}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){Ab(u,function(p){c[p]=f[p]})}}function Ra(r){return wL({},r)}function wL(r,e){return e&&r&&Ab(SL,function(t){Bt(e,t)&&(r[t]=e[t])}),r}var Ab,SL,eh,Ns,RNt,ONt,fy;var ur=k(()=>{Z();fr();te();pn();Pa();Ab=P,SL=["left","right","top","bottom","width","height"],eh=[["width","left","right"],["height","top","bottom"]];Ns=bL,RNt=ne(bL,"vertical"),ONt=ne(bL,"horizontal");fy={rect:1,point:2}});function fmt(r){var e=[];if(P(sv.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=nt(e,function(t){return wa(t).main}),r!=="dataset"&&Xt(e,"dataset")<=0)e.unshift("dataset");return e}var cmt,sv,de;var Nr=k(()=>{dt();Z();ti();In();Sl();yt();ur();cmt=Ft(),sv=function(r){W(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.uid=Da("ec_cpt_model"),a}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=Xc(this),a=n?Ra(t):{},o=i.getTheme();if(re(t,o.get(this.mainType)),re(t,this.getDefaultOption()),n)hn(t,a,n)},e.prototype.mergeOption=function(t,i){re(this.option,t,!0);var n=Xc(this);if(n)hn(this.option,t,n)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!MF(t))return t.defaultOption;var i=cmt(this);if(!i.defaultOption){var n=[],a=t;while(a){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}var s={};for(var l=n.length-1;l>=0;l--)s=re(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var n=t+"Index",a=t+"Id";return _l(this.ecModel,t,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return Cb(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(ye);dS(sv,ye);zc(sv);UG(sv);VG(sv,fmt);de=sv});var rh,yi,Lb,Nu,Q;var we=k(()=>{Z();sn();rh={color:{},darkColor:{},size:{}},yi=rh.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};et(yi,{primary:yi.neutral80,secondary:yi.neutral70,tertiary:yi.neutral60,quaternary:yi.neutral50,disabled:yi.neutral20,border:yi.neutral30,borderTint:yi.neutral20,borderShade:yi.neutral40,background:yi.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:yi.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:yi.neutral70,axisLineTint:yi.neutral40,axisTick:yi.neutral70,axisTickMinor:yi.neutral60,axisLabel:yi.neutral70,axisSplitLine:yi.neutral15,axisMinorSplitLine:yi.neutral05});for(Nu in yi)if(yi.hasOwnProperty(Nu))if(Lb=yi[Nu],Nu==="theme")rh.darkColor.theme=yi.theme.slice();else if(Nu==="highlight")rh.darkColor.highlight="rgba(255,231,130,0.4)";else if(Nu.indexOf("accent")===0)rh.darkColor[Nu]=Oo(Lb,null,function(r){return r*0.5},function(r){return Math.min(1,1.3-r)});else rh.darkColor[Nu]=Oo(Lb,null,function(r){return r*0.9},function(r){return 1-Math.pow(r,1.5)});rh.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};Q=rh});var oH="",lv="rgba(0, 0, 0, 0.2)",sH,pmt,Db;var TL=k(()=>{sn();we();if(typeof navigator<"u")oH=navigator.platform||"";sH=Q.color.theme[0],pmt=Oo(sH,null,null,0.9),Db={darkMode:"auto",colorBy:"series",color:Q.color.theme,gradientColor:[pmt,sH],aria:{decal:{decals:[{color:lv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:lv,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:0.8},{color:lv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:lv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:lv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:lv,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:0.75}]}},textStyle:{fontFamily:oH.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1000,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2000,progressiveThreshold:3000,progressive:400,hoverLayerThreshold:3000,useUTC:!1}});function uH(r){lH(r).datasetMap=gt()}function Ib(r,e,t){var i={},n=Pb(e);if(!n||!r)return i;var a=[],o=[],s=e.ecModel,l=lH(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,c,f;r=r.slice(),P(r,function(g,y){var m=Pt(g)?g:r[y]={name:g};if(m.type==="ordinal"&&c==null)c=y,f=v(m);i[m.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});P(r,function(g,y){var m=g.name,d=v(g);if(c==null){var x=p.valueWayDim;h(i[m],x,d),h(o,x,d),p.valueWayDim+=d}else if(c===y)h(i[m],0,d),h(a,0,d);else{var x=p.categoryWayDim;h(i[m],x,d),h(o,x,d),p.categoryWayDim+=d}});function h(g,y,m){for(var d=0;d<m;d++)g.push(y+d)}function v(g){var y=g.dimsDef;return y?y.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function uv(r,e,t){var i={},n=Pb(r);if(!n)return i;var{sourceFormat:a,dimensionsDefine:o}=e,s;if(a===ji||a===Ea)P(o,function(c,f){if((Pt(c)?c.name:c)==="name")s=f});var l=function(){var c={},f={},p=[];for(var h=0,v=Math.min(5,t);h<v;h++){var g=fH(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);p.push(g);var y=g===Hi.Not;if(y&&c.v==null&&h!==s)c.v=h;if(c.n==null||c.n===c.v||!y&&p[c.n]===Hi.Not)c.n=h;if(m(c)&&p[c.n]!==Hi.Not)return c;if(!y){if(g===Hi.Might&&f.v==null&&h!==s)f.v=h;if(f.n==null||f.n===f.v)f.n=h}}function m(d){return d.v!=null&&d.n!=null}return m(c)?c:m(f)?f:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Pb(r){var e=r.get("data",!0);if(!e)return _l(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Xe).models[0]}function cH(r){if(!r.get("transform",!0)&&!r.get("fromTransformResult",!0))return[];return _l(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Xe).models}function Rb(r,e){return fH(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function fH(r,e,t,i,n,a){var o,s=5;if(ui(r))return Hi.Not;var l,u;if(i){var c=i[a];if(Pt(c))l=c.name,u=c.type;else if(ht(c))l=c}if(u!=null)return u==="ordinal"?Hi.Must:Hi.Not;if(e===ai){var f=r;if(t===Ml){var p=f[a];for(var h=0;h<(p||[]).length&&h<s;h++)if((o=S(p[n+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[n+h];if(v&&(o=S(v[a]))!=null)return o}}else if(e===ji){var g=r;if(!l)return Hi.Not;for(var h=0;h<g.length&&h<s;h++){var y=g[h];if(y&&(o=S(y[l]))!=null)return o}}else if(e===Ea){var m=r;if(!l)return Hi.Not;var p=m[l];if(!p||ui(p))return Hi.Not;for(var h=0;h<p.length&&h<s;h++)if((o=S(p[h]))!=null)return o}else if(e===Gi){var d=r;for(var h=0;h<d.length&&h<s;h++){var y=d[h],x=Ms(y);if(!it(x))return Hi.Not;if((o=S(x[a]))!=null)return o}}function S(w){var T=ht(w);if(w!=null&&isFinite(Number(w))&&w!=="")return T?Hi.Might:Hi.Not;else if(T&&w!=="-")return Hi.Must}return Hi.Not}var Hi,lH;var Ol=k(()=>{yt();Z();gi();Hi={Must:1,Might:2,Not:3},lH=Ft()});function pH(r,e){xe(AL.get(r)==null&&e),AL.set(r,e)}function hH(r,e,t){var i=AL.get(e);if(!i)return t;var n=i(r);if(!n)return t;if(!1)for(var a;a<n.length;a++);return t.concat(n)}var AL;var CL=k(()=>{Z();AL=gt()});function hy(r,e,t,i){var n=Ve(r.get(["aria","decal","decals"]));return vH(r,hmt,n,null,e,t,i)}function dmt(r,e){var t=r.length;for(var i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function vH(r,e,t,i,n,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var c=o==null||!i?t:dmt(i,o);if(c=c||t,!c||!c.length)return;var f=c[l];if(n)u[n]=f;return s.paletteIdx=(l+1)%c.length,f}function vmt(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var dH,hmt,py;var dy=k(()=>{yt();dH=Ft(),hmt=Ft(),py=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var n=Ve(this.get("color",!0)),a=this.get("colorLayer",!0);return vH(this,dH,n,a,e,t,i)},r.prototype.clearColorPalette=function(){vmt(this,dH)},r}()});function gmt(r,e){if(e){var{seriesIndex:t,seriesId:i,seriesName:n}=e;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||n!=null&&r.name!==n}}function ymt(r,e){var t=r.color&&!r.colorLayer;P(e,function(i,n){if(n==="colorLayer"&&t||n==="color"&&r.color)return;if(!de.hasClass(n)){if(typeof i==="object")r[n]=!r[n]?It(i):re(r[n],i,!1);else if(r[n]==null)r[n]=i}})}function yH(r,e,t){if(it(e)){var i=gt();return P(e,function(a){if(a!=null){var o=Rr(a,null);o!=null&&i.set(a,!0)}}),be(t,function(a){return a&&i.get(a[r])})}else{var n=Rr(e,null);return be(t,function(a){return a&&n!=null&&a[r]===n})}}function _H(r,e){return e.hasOwnProperty("subType")?be(r,function(t){return t&&t.subType===e.subType}):r}function xH(r){var e=gt();return r&&P(Ve(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}var Ob,vy,mH,gH="\x00_ec_inner",mmt=1,SH,kb;var EL=k(()=>{dt();Z();yt();ti();Nr();TL();Ol();CL();dy();SH=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,n,a,o,s){a=a||{},this.option=null,this._theme=new ye(a),this._locale=new ye(o),this._optionManager=s},e.prototype.setOption=function(t,i,n){var a=xH(i);this._optionManager.setOption(t,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,i){return this._resetOption(t,xH(i))},e.prototype._resetOption=function(t,i){var n=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");if(!this.option||t==="recreate")mH(this,o);else this.restoreData(),this._mergeOption(o,i);n=!0}if(t==="timeline"||t==="media")this.restoreData();if(!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);if(s)n=!0,this._mergeOption(s,i)}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);if(l.length)P(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=gt(),u=i&&i.replaceMergeMainTypeMap;if(uH(this),P(t,function(f,p){if(f==null)return;if(!de.hasClass(p))n[p]=n[p]==null?It(f):re(n[p],f,!0);else if(p)s.push(p),l.set(p,!0)}),u)u.each(function(f,p){if(de.hasClass(p)&&!l.get(p))s.push(p),l.set(p,!0)});de.topologicalTravel(s,de.getAllClassMainTypes(),c,this);function c(f){var p=hH(this,f,Ve(t[f])),h=a.get(f),v=!h?"replaceAll":u&&u.get(f)?"replaceMerge":"normalMerge",g=cS(h,p,v);yF(g,f,de),n[f]=null,a.set(f,null),o.set(f,0);var y=[],m=[],d=0,x,S;if(P(g,function(w,T){var{existing:A,newOption:M}=w;if(!M){if(A)A.mergeOption({},this),A.optionUpdated({},!1)}else{var D=f==="series",L=de.getClass(f,w.keyInfo.subType,!D);if(!L){if(!1)var I,E;return}if(f==="tooltip"){if(x)return;x=!0}if(A&&A.constructor===L)A.name=w.keyInfo.name,A.mergeOption(M,this),A.optionUpdated(M,!1);else{var R=et({componentIndex:T},w.keyInfo);if(A=new L(M,this,this,R),et(A,R),w.brandNew)A.__requireNewView=!0;A.init(M,this,this),A.optionUpdated(null,!0)}}if(A)y.push(A.option),m.push(A),d++;else y.push(void 0),m.push(void 0)},this),n[f]=y,a.set(f,m),o.set(f,d),f==="series")Ob(this)}if(!this._seriesIndices)Ob(this)},e.prototype.getOption=function(){var t=It(this.option);return P(t,function(i,n){if(de.hasClass(n)){var a=Ve(i),o=a.length,s=!1;for(var l=o-1;l>=0;l--)if(a[l]&&!zd(a[l]))s=!0;else a[l]=null,!s&&o--;a.length=o,t[n]=a}}),delete t[gH],t},e.prototype.setTheme=function(t){this._theme=new ye(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var n=this._componentsMap.get(t);if(n){var a=n[i||0];if(a)return a;else if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var{index:n,id:a,name:o}=t,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;if(n!=null)l=[],P(Ve(n),function(u){s[u]&&l.push(s[u])});else if(a!=null)l=yH("id",a,s);else if(o!=null)l=yH("name",o,s);else l=be(s,function(u){return!!u});return _H(l,t)},e.prototype.findComponents=function(t){var{query:i,mainType:n}=t,a=s(i),o=a?this.queryComponents(a):be(this._componentsMap.get(n),function(u){return!!u});return l(_H(o,t));function s(u){var c=n+"Index",f=n+"Id",p=n+"Name";return u&&(u[c]!=null||u[f]!=null||u[p]!=null)?{mainType:n,index:u[c],id:u[f],name:u[p]}:null}function l(u){return t.filter?be(u,t.filter):u}},e.prototype.eachComponent=function(t,i,n){var a=this._componentsMap;if(Mt(t)){var o=i,s=t;a.each(function(f,p){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,p,v,v.componentIndex)}})}else{var l=ht(t)?a.get(t):Pt(t)?this.findComponents(t):null;for(var u=0;l&&u<l.length;u++){var c=l[u];c&&i.call(n,c,c.componentIndex)}}},e.prototype.getSeriesByName=function(t){var i=Rr(t,null);return be(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return be(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return be(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){vy(this),P(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];t.call(i,a,n)},this)},e.prototype.eachRawSeries=function(t,i){P(this._componentsMap.get("series"),function(n){n&&t.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,n){vy(this),P(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];if(o.subType===t)i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,i,n){return P(this.getSeriesByType(t),i,n)},e.prototype.isSeriesFiltered=function(t){return vy(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){vy(this);var n=[];P(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=gt(n)},e.prototype.restoreData=function(t){Ob(this);var i=this._componentsMap,n=[];i.each(function(a,o){if(de.hasClass(o))n.push(o)}),de.topologicalTravel(n,de.getAllClassMainTypes(),function(a){P(i.get(a),function(o){if(o&&(a!=="series"||!gmt(o,t)))o.restoreData()})})},e.internalField=function(){Ob=function(t){var i=t._seriesIndices=[];P(t._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),t._seriesIndicesMap=gt(i)},vy=function(t){},mH=function(t,i){t.option={},t.option[gH]=mmt,t._componentsMap=gt({series:[]}),t._componentsCount=gt();var n=i.aria;if(Pt(n)&&n.enabled==null)n.enabled=!0;ymt(i,t._theme.option),re(i,Db,!1),t._mergeOption(i,null)}}(),e}(ye);dr(SH,py);kb=SH});function Smt(r,e,t){var i=[],n,a,{baseOption:o,timeline:s,options:l,media:u}=r,c=!!r.media,f=!!(l||s||o&&o.timeline);if(o){if(a=o,!a.timeline)a.timeline=s}else{if(f||c)r.options=r.media=null;a=r}if(c){if(it(u))P(u,function(h){if(h&&h.option){if(h.query)i.push(h);else if(!n)n=h}})}p(a),P(l,function(h){return p(h)}),P(i,function(h){return p(h.option)});function p(h){P(e,function(v){v(h,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function bmt(r,e,t){var i={width:e,height:t,aspectratio:e/t},n=!0;return P(r,function(a,o){var s=o.match(_mt);if(!s||!s[1]||!s[2])return;var l=s[1],u=s[2].toLowerCase();if(!wmt(i[u],a,l))n=!1}),n}function wmt(r,e,t){if(t==="min")return r>=e;else if(t==="max")return r<=e;else return r===e}function Tmt(r,e){return r.join(",")===e.join(",")}var _mt,xmt,bH;var wH=k(()=>{yt();Z();_mt=/^(min|max)?(.+)$/,xmt=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){if(e)P(Ve(e.series),function(o){o&&o.data&&ui(o.data)&&np(o.data)}),P(Ve(e.dataset),function(o){o&&o.source&&ui(o.source)&&np(o.source)});e=It(e);var n=this._optionBackup,a=Smt(e,t,!n);if(this._newBaseOption=a.baseOption,n){if(a.timelineOptions.length)n.timelineOptions=a.timelineOptions;if(a.mediaList.length)n.mediaList=a.mediaList;if(a.mediaDefault)n.mediaDefault=a.mediaDefault}else this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],It(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");if(n)t=It(i[n.getCurrentIndex()])}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)if(bmt(n[l].query,t,i))o.push(l);if(!o.length&&a)o=[-1];if(o.length&&!Tmt(o,this._currentMediaIndices))s=nt(o,function(c){return It(c===-1?a.option:n[c].option)});return this._currentMediaIndices=o,s},r}();bH=xmt});function ML(r){var e=r&&r.itemStyle;if(!e)return;for(var t=0,i=TH.length;t<i;t++){var n=TH[t],{normal:a,emphasis:o}=e;if(a&&a[n]){if(r[n]=r[n]||{},!r[n].normal)r[n].normal=a[n];else re(r[n].normal,a[n]);a[n]=null}if(o&&o[n]){if(r[n]=r[n]||{},!r[n].emphasis)r[n].emphasis=o[n];else re(r[n].emphasis,o[n]);o[n]=null}}}function Pn(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,n=r[e].emphasis;if(i)if(t)r[e].normal=r[e].emphasis=null,Dt(r[e],i);else r[e]=i;if(n){if(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus)r.emphasis.focus=n.focus;if(n.blurScope)r.emphasis.blurScope=n.blurScope}}}function my(r){Pn(r,"itemStyle"),Pn(r,"lineStyle"),Pn(r,"areaStyle"),Pn(r,"label"),Pn(r,"labelLine"),Pn(r,"upperLabel"),Pn(r,"edgeLabel")}function Ei(r,e){var t=gy(r)&&r[e],i=gy(t)&&t.textStyle;if(i)for(var n=0,a=UE.length;n<a;n++){var o=UE[n];if(i.hasOwnProperty(o))t[o]=i[o]}}function qo(r){if(r)my(r),Ei(r,"label"),r.emphasis&&Ei(r.emphasis,"label")}function Amt(r){if(!gy(r))return;if(ML(r),my(r),Ei(r,"label"),Ei(r,"upperLabel"),Ei(r,"edgeLabel"),r.emphasis)Ei(r.emphasis,"label"),Ei(r.emphasis,"upperLabel"),Ei(r.emphasis,"edgeLabel");var e=r.markPoint;if(e)ML(e),qo(e);var t=r.markLine;if(t)ML(t),qo(t);var i=r.markArea;if(i)qo(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!ui(a))for(var o=0;o<a.length;o++)qo(a[o]);P(r.categories,function(u){my(u)})}if(n&&!ui(n))for(var o=0;o<n.length;o++)qo(n[o]);if(e=r.markPoint,e&&e.data){var s=e.data;for(var o=0;o<s.length;o++)qo(s[o])}if(t=r.markLine,t&&t.data){var l=t.data;for(var o=0;o<l.length;o++)if(it(l[o]))qo(l[o][0]),qo(l[o][1]);else qo(l[o])}if(r.type==="gauge")Ei(r,"axisLabel"),Ei(r,"title"),Ei(r,"detail");else if(r.type==="treemap")Pn(r.breadcrumb,"itemStyle"),P(r.levels,function(u){my(u)});else if(r.type==="tree")my(r.leaves)}function zu(r){return it(r)?r:r?[r]:[]}function AH(r){return(it(r)?r[0]:r)||{}}function LL(r,e){zs(zu(r.series),function(i){gy(i)&&Amt(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),zs(t,function(i){zs(zu(r[i]),function(n){if(n)Ei(n,"axisLabel"),Ei(n.axisPointer,"label")})}),zs(zu(r.parallel),function(i){var n=i&&i.parallelAxisDefault;Ei(n,"axisLabel"),Ei(n&&n.axisPointer,"label")}),zs(zu(r.calendar),function(i){Pn(i,"itemStyle"),Ei(i,"dayLabel"),Ei(i,"monthLabel"),Ei(i,"yearLabel")}),zs(zu(r.radar),function(i){if(Ei(i,"name"),i.name&&i.axisName==null)i.axisName=i.name,delete i.name;if(i.nameGap!=null&&i.axisNameGap==null)i.axisNameGap=i.nameGap,delete i.nameGap}),zs(zu(r.geo),function(i){if(gy(i))qo(i),zs(zu(i.regions),function(n){qo(n)})}),zs(zu(r.timeline),function(i){qo(i),Pn(i,"label"),Pn(i,"itemStyle"),Pn(i,"controlStyle",!0);var n=i.data;it(n)&&P(n,function(a){if(Pt(a))Pn(a,"label"),Pn(a,"itemStyle")})}),zs(zu(r.toolbox),function(i){Pn(i,"iconStyle"),zs(i.feature,function(n){Pn(n,"iconStyle")})}),Ei(AH(r.axisPointer),"label"),Ei(AH(r.tooltip).axisPointer,"label")}var zs,gy,TH;var CH=k(()=>{Z();yt();zs=P,gy=Pt,TH=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"]});function Cmt(r,e){var t=e.split(","),i=r;for(var n=0;n<t.length;n++)if(i=i&&i[t[n]],i==null)break;return i}function Emt(r,e,t,i){var n=e.split(","),a=r,o,s=0;for(;s<n.length-1;s++){if(o=n[s],a[o]==null)a[o]={};a=a[o]}if(i||a[n[s]]==null)a[n[s]]=t}function EH(r){r&&P(Mmt,function(e){if(e[0]in r&&!(e[1]in r))r[e[1]]=r[e[0]]})}function yy(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<DL.length;t++){var i=DL[t][1],n=DL[t][0];if(e[i]!=null)e[n]=e[i]}}function MH(r){if(!r)return;if(r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null)r.edgeDistance=r.margin}function LH(r){if(!r)return;if(r.downplay&&!r.blur)r.blur=r.downplay}function Dmt(r){if(!r)return;if(r.focusNodeAdjacency!=null){if(r.emphasis=r.emphasis||{},r.emphasis.focus==null)r.emphasis.focus="adjacency"}}function DH(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&DH(r[t].children,e)}function Nb(r,e){if(LL(r,e),r.series=Ve(r.series),P(r.series,function(t){if(!Pt(t))return;var i=t.type;if(i==="line"){if(t.clipOverflow!=null)t.clip=t.clipOverflow}else if(i==="pie"||i==="gauge"){if(t.clockWise!=null)t.clockwise=t.clockWise;MH(t.label);var n=t.data;if(n&&!ui(n))for(var a=0;a<n.length;a++)MH(n[a]);if(t.hoverOffset!=null){if(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)t.emphasis.scaleSize=t.hoverOffset}}else if(i==="gauge"){var o=Cmt(t,"pointer.color");o!=null&&Emt(t,"itemStyle.color",o)}else if(i==="bar"){yy(t),yy(t.backgroundStyle),yy(t.emphasis);var n=t.data;if(n&&!ui(n)){for(var a=0;a<n.length;a++)if(typeof n[a]==="object")yy(n[a]),yy(n[a]&&n[a].emphasis)}}else if(i==="sunburst"){var s=t.highlightPolicy;if(s){if(t.emphasis=t.emphasis||{},!t.emphasis.focus)t.emphasis.focus=s}LH(t),DH(t.data,LH)}else if(i==="graph"||i==="sankey")Dmt(t);else if(i==="map"){if(t.mapType&&!t.map)t.map=t.mapType;if(t.mapLocation)Dt(t,t.mapLocation)}if(t.hoverAnimation!=null){if(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null)t.emphasis.scale=t.hoverAnimation}EH(t)}),r.dataRange)r.visualMap=r.dataRange;P(Lmt,function(t){var i=r[t];if(i){if(!it(i))i=[i];P(i,function(n){EH(n)})}})}var Mmt,Lmt,DL;var IH=k(()=>{Z();CH();yt();Mmt=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Lmt=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],DL=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]]});function Imt(r){var e=gt();r.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length===0)return;var i=t[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";if(n==="seriesDesc")t.reverse();P(t,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),Pmt(t)})}function Pmt(r){P(r,function(e,t){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],{data:o,isStackedByIndex:s}=e,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var p=o.get(e.stackedDimension,f);if(isNaN(p))return n;var h,v;if(s)v=o.getRawIndex(f);else h=o.get(e.stackedByDimension,f);var g=NaN;for(var y=t-1;y>=0;y--){var m=r[y];if(!s)v=m.data.rawIndexOf(m.stackedByDimension,h);if(v>=0){var d=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&d>0||l==="negative"&&d<0||l==="samesign"&&p>=0&&d>0||l==="samesign"&&p<=0&&d<0){p=bu(p,d),g=d;break}}}return i[0]=p,i[1]=g,i})})}var PH;var RH=k(()=>{Z();te();yt();PH=xl(Imt)});function cv(r){return r instanceof zb}function _y(r,e,t){t=t||IL(r);var i=e.seriesLayoutBy,n=Rmt(r,t,i,e.sourceHeader,e.dimensions),a=new zb({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:It(e)});return a}function fv(r){return new zb({data:r,sourceFormat:ui(r)?oo:Gi})}function NH(r){return new zb({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:It(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function IL(r){var e=hM;if(ui(r))e=oo;else if(it(r)){if(r.length===0)e=ai;for(var t=0,i=r.length;t<i;t++){var n=r[t];if(n==null)continue;else if(it(n)||ui(n)){e=ai;break}else if(Pt(n)){e=ji;break}}}else if(Pt(r)){for(var a in r)if(Bt(r,a)&&ii(r[a])){e=Ea;break}}return e}function Rmt(r,e,t,i,n){var a,o;if(!r)return{dimensionsDefine:OH(n),startIndex:o,dimensionsDetectedCount:a};if(e===ai){var s=r;if(i==="auto"||i==null)kH(function(u){if(u!=null&&u!=="-")if(ht(u))o==null&&(o=1);else o=0},t,s,10);else o=ue(i)?i:i?1:0;if(!n&&o===1)n=[],kH(function(u,c){n[c]=u!=null?u+"":""},t,s,1/0);a=n?n.length:t===Ml?s.length:s[0]?s[0].length:null}else if(e===ji){if(!n)n=Omt(r)}else if(e===Ea){if(!n)n=[],P(r,function(u,c){n.push(c)})}else if(e===Gi){var l=Ms(r[0]);a=it(l)&&l.length||1}return{startIndex:o,dimensionsDefine:OH(n),dimensionsDetectedCount:a}}function Omt(r){var e=0,t;while(e<r.length&&!(t=r[e++]));if(t)return le(t)}function OH(r){if(!r)return;var e=gt();return nt(r,function(t,i){t=Pt(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;if(n.name+="",n.displayName==null)n.displayName=n.name;var a=e.get(n.name);if(!a)e.set(n.name,{count:1});else n.name+="-"+a.count++;return n})}function kH(r,e,t,i){if(e===Ml)for(var n=0;n<t.length&&n<i;n++)r(t[n]?t[n][0]:null,n);else{var a=t[0]||[];for(var n=0;n<a.length&&n<i;n++)r(a[n],n)}}function Bb(r){var e=r.sourceFormat;return e===ji||e===Ea}var zb;var Bu=k(()=>{Z();gi();yt();Ol();zb=function(){function r(e){this.data=e.data||(e.sourceFormat===Ea?{}:[]),this.sourceFormat=e.sourceFormat||hM,this.seriesLayoutBy=e.seriesLayoutBy||jn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var n=t[i];if(n.type==null){if(Rb(this,i)===Hi.Must)n.type="ordinal"}}}return r}()});function RL(r,e){var t=kmt[NL(r,e)];return t}function OL(r,e){var t=Nmt[NL(r,e)];return t}function kL(r){var e=zmt[r];return e}function NL(r,e){return r===ai?r+"_"+e:r}function Uu(r,e,t){if(!r)return;var i=r.getRawDataItem(e);if(i==null)return;var n=r.getStore(),a=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return kL(a)(i,o,s)}else{var l=i;if(a===Gi)l=Ms(i);return l}}var ih,nh,ah,oh,zH,BH,Vb,Ub=function(r){if(!it(r))uS("series.data or dataset.source must be an array.")},Izt,UH=function(r,e,t,i){return r[i]},kmt,VH=function(r,e,t){return r.length},Nmt,PL=function(r,e,t){return r[e]},zmt;var sh=k(()=>{Z();yt();Bu();gi();Vo();Vb=function(){function r(e,t){var i=!cv(e)?fv(e):e;this._source=i;var n=this._data=i.data,{sourceFormat:a,seriesLayoutBy:o}=i;if(a===oo)this._offset=0,this._dimSize=t,this._data=n;if(!1)var s;BH(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){return},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;BH=function(o,s,l){var{sourceFormat:u,seriesLayoutBy:c,startIndex:f,dimensionsDefine:p}=l,h=zH[NL(u,c)];if(et(o,h),u===oo)o.getItem=t,o.count=n,o.fillStorage=i;else{var v=RL(u,c);o.getItem=xt(v,null,s,f,p);var g=OL(u,c);o.count=xt(g,null,s,f,p)}};var t=function(o,s){o=o-this._offset,s=s||[];var l=this._data,u=this._dimSize,c=u*o;for(var f=0;f<u;f++)s[f]=l[c+f];return s},i=function(o,s,l,u){var c=this._data,f=this._dimSize;for(var p=0;p<f;p++){var h=u[p],v=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],y=s-o,m=l[p];for(var d=0;d<y;d++){var x=c[d*f+p];m[o+d]=x,x<v&&(v=x),x>g&&(g=x)}h[0]=v,h[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};zH=(e={},e[ai+"_"+jn]={pure:!0,appendData:a},e[ai+"_"+Ml]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ji]={pure:!0,appendData:a},e[Ea]={pure:!0,appendData:function(o){var s=this._data;P(o,function(l,u){var c=s[u]||(s[u]=[]);for(var f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Gi]={appendData:a},e[oo]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Izt=(ih={},ih[ai+"_"+jn]=Ub,ih[ai+"_"+Ml]=Ub,ih[ji]=Ub,ih[Ea]=function(r,e){for(var t=0;t<e.length;t++){var i=e[t].name;if(i==null)uS("dimension name must not be null/undefined.")}},ih[Gi]=Ub,ih),kmt=(nh={},nh[ai+"_"+jn]=function(r,e,t,i){return r[i+e]},nh[ai+"_"+Ml]=function(r,e,t,i,n){i+=e;var a=n||[],o=r;for(var s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},nh[ji]=UH,nh[Ea]=function(r,e,t,i,n){var a=n||[];for(var o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;a[o]=l?l[i]:null}return a},nh[Gi]=UH,nh);Nmt=(ah={},ah[ai+"_"+jn]=function(r,e,t){return Math.max(0,r.length-e)},ah[ai+"_"+Ml]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},ah[ji]=VH,ah[Ea]=function(r,e,t){var i=t[0].name,n=i!=null?r[i]:null;return n?n.length:0},ah[Gi]=VH,ah);zmt=(oh={},oh[ai]=PL,oh[ji]=function(r,e,t){return r[t]},oh[Ea]=PL,oh[Gi]=function(r,e,t){var i=Ms(r);return!(i instanceof Array)?i:i[e]},oh[oo]=PL,oh)});function zL(r){var e,t;if(Pt(r)){if(r.type)t=r}else e=r;return{text:e,frag:t}}var Bmt,lh;var xy=k(()=>{Z();sh();pn();Bmt=/\{@(.+?)\}/g,lh=function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,p=f==="series",h=i.userOutput&&i.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:n,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,n,a,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o)l.value=o.interpolatedValue;if(n!=null&&it(l.value))l.value=l.value[n];if(!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Mt(a))return l.status=t,l.dimensionIndex=n,a(l);else if(ht(a)){var c=yb(a,l);return c.replace(Bmt,function(f,p){var h=p.length,v=p;if(v.charAt(0)==="["&&v.charAt(h-1)==="]")v=+v.slice(1,h-1);var g=Uu(s,e,v);if(o&&it(o.interpolatedValue)){var y=s.getDimensionIndex(v);if(y>=0)g=o.interpolatedValue[y]}return g!=null?g+"":""})}},r.prototype.getRawValue=function(e,t){return Uu(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){return},r}()});function Kc(r){return new Umt(r)}var Umt,FH;var Fb=k(()=>{Z();Umt=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}if(this.__pipeline)this.__pipeline.currentTask=this;var a;if(this._plan&&!i)a=this._plan(this.context);var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;if(o!==l||s!==u)a="reset";function c(d){return!(d>=1)&&(d=1),d}var f;if(this._dirty||a==="reset")this._dirty=!1,f=this._doReset(i);this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t)this._dueEnd=t._outputDueEnd;else this._dueEnd=this._count?this._count(this.context):1/0;if(this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(f||h<v)){var g=this._progress;if(it(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],h,v,l,u);else this._doProgress(g,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,i,n,a){FH.reset(t,i,n,a),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:FH.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;if(!e&&this._reset){if(t=this._reset(this.context),t&&t.progress)i=t.forceFirstProgress,t=t.progress;if(it(t)&&!t.length)t=null}this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){if(this._downstream!==e||this._dirty)this._downstream=e,e._upstream=this,e.dirty()},r.prototype.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),FH=function(){var r,e,t,i,n,a={reset:function(l,u,c,f){e=l,r=u,t=c,i=f,n=Math.ceil(i/t),a.next=t>1&&i>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<i?l:e;return e++,u}}()});function Jo(r,e){var t=e&&e.type;if(t==="ordinal")return r;if(t==="time"&&!ue(r)&&r!=null&&r!=="-")r=+Bo(r);return r==null||r===""?NaN:Number(r)}function Gb(r){return Vmt.get(r)}function HH(r,e){return r==="eq"||r==="ne"?new Gmt(r==="eq",e):Bt(GH,r)?new Fmt(r,e):null}function Wb(r){var e="",t=-1/0,i=-1/0,n=1/0,a=1/0;if(r){if(r.g!=null)e+="G"+r.g,t=r.g;if(r.ge!=null)e+="GE"+r.ge,i=r.ge;if(r.l!=null)e+="L"+r.l,n=r.l;if(r.le!=null)e+="LE"+r.le,a=r.le}return{key:e,g:t,ge:i,l:n,le:a}}function Yb(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var Vmt,GH,Fmt,Hb,Gmt;var Vu=k(()=>{te();Z();Vo();Vmt=gt({number:function(r){return parseFloat(r)},time:function(r){return+Bo(r)},trim:function(r){return ht(r)?Ti(r):r}});GH={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},Fmt=function(){function r(e,t){if(!ue(t)){var i="";Ue(i)}this._opFn=GH[e],this._rvalFloat=Uo(t)}return r.prototype.evaluate=function(e){return ue(e)?this._opFn(e,this._rvalFloat):this._opFn(Uo(e),this._rvalFloat)},r}(),Hb=function(){function r(e,t){var i=e==="desc";if(this._resultLT=i?1:-1,t==null)t=i?"min":"max";this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=ue(e)?e:Uo(e),n=ue(t)?t:Uo(t),a=isNaN(i),o=isNaN(n);if(a)i=this._incomparable;if(o)n=this._incomparable;if(a&&o){var s=ht(e),l=ht(t);if(s)i=l?e:0;if(l)n=s?t:0}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),Gmt=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Uo(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;if(i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number"))t=Uo(e)===this._rvalFloat}return this._isEQ?t:!t},r}()});function Wmt(r,e){var t=new Hmt,i=r.data,n=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";if(r.seriesLayoutBy!==jn)Ue(o);var s=[],l={},u=r.dimensionsDefine;if(u)P(u,function(g,y){var m=g.name,d={index:y,name:m,displayName:g.displayName};if(s.push(d),m!=null){var x="";if(Bt(l,m))Ue(x);l[m]=d}});else for(var c=0;c<r.dimensionsDetectedCount;c++)s.push({index:c});var f=RL(n,jn);if(e.__isBuiltIn)t.getRawDataItem=function(g){return f(i,a,s,g)},t.getRawData=xt(Ymt,null,r);t.cloneRawData=xt(Zmt,null,r);var p=OL(n,jn);t.count=xt(p,null,i,a,s);var h=kL(n);t.retrieveValue=function(g,y){var m=f(i,a,s,g);return v(m,y)};var v=t.retrieveValueFromItem=function(g,y){if(g==null)return;var m=s[y];if(m)return h(g,y,m.name)};return t.getDimensionInfo=xt(jmt,null,s,l),t.cloneAllDimensionInfo=xt(Xmt,null,s),t}function Ymt(r){var e=r.sourceFormat;if(!BL(e)){var t="";Ue(t)}return r.data}function Zmt(r){var{sourceFormat:e,data:t}=r;if(!BL(e)){var i="";Ue(i)}if(e===ai){var n=[];for(var a=0,o=t.length;a<o;a++)n.push(t[a].slice());return n}else if(e===ji){var n=[];for(var a=0,o=t.length;a<o;a++)n.push(et({},t[a]));return n}}function jmt(r,e,t){if(t==null)return;if(ue(t)||!isNaN(t)&&!Bt(e,t))return r[t];else if(Bt(e,t))return e[t]}function Xmt(r){return It(r)}function YH(r){r=It(r);var e=r.type,t="";if(!e)Ue(t);var i=e.split(":");if(i.length!==2)Ue(t);var n=!1;if(i[0]==="echarts")e=i[1],n=!0;r.__isBuiltIn=n,WH.set(e,r)}function ZH(r,e,t){var i=Ve(r),n=i.length,a="";if(!n)Ue(a);for(var o=0,s=n;o<s;o++){var l=i[o];if(e=Kmt(l,e,t,n===1?null:o),o!==s-1)e.length=Math.max(e.length,1)}return e}function Kmt(r,e,t,i){var n="";if(!e.length)Ue(n);if(!Pt(r))Ue(n);var a=r.type,o=WH.get(a);if(!o)Ue(n);var s=nt(e,function(c){return Wmt(c,o)}),l=Ve(o.transform({upstream:s[0],upstreamList:s,config:It(r.config)}));if(!1){if(r.print)var u}return nt(l,function(c,f){var p="";if(!Pt(c))Ue(p);if(!c.data)Ue(p);var h=IL(c.data);if(!BL(h))Ue(p);var v,g=e[0];if(g&&f===0&&!c.dimensions){var y=g.startIndex;if(y)c.data=g.data.slice(0,y).concat(c.data);v={seriesLayoutBy:jn,sourceHeader:y,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:jn,sourceHeader:0,dimensions:c.dimensions};return _y(c.data,v,null)})}function BL(r){return r===ai||r===ji}var Hmt,WH;var UL=k(()=>{gi();yt();Z();sh();Vu();Vo();Bu();Hmt=function(){function r(){}return r.prototype.getRawData=function(){throw Error("not supported")},r.prototype.getRawDataItem=function(e){throw Error("not supported")},r.prototype.cloneRawData=function(){return},r.prototype.getDimensionInfo=function(e){return},r.prototype.cloneAllDimensionInfo=function(){return},r.prototype.count=function(){return},r.prototype.retrieveValue=function(e,t){return},r.prototype.retrieveValueFromItem=function(e,t){return},r.prototype.convertValue=function(e,t){return Jo(e,t)},r}();WH=gt()});function pv(r){return r>65535?qmt:Jmt}function $mt(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function XH(r,e,t,i,n){var a=KH[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==i){var l=new a(i);for(var u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(i)}var qmt,Jmt,FL,jH,KH,VL,Qmt,Sy;var jb=k(()=>{Z();gi();Vu();Bu();yt();te();qmt=typeof Uint32Array===Fc?Array:Uint32Array,Jmt=typeof Uint16Array===Fc?Array:Uint16Array,FL=typeof Int32Array===Fc?Array:Int32Array,jH=typeof Float64Array===Fc?Array:Float64Array,KH={float:jH,int:FL,ordinal:Array,number:Array,time:jH};Qmt=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=gt()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=VL[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];var o=Bb(n);this._dimensions=nt(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===t)return a}else a=n.length;return n[a]={type:t},i.set(e,a),this._chunks[a]=new KH[t||"float"](this._rawCount),this._rawExtent[a]=$r(),a},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;if(o===0)a[e]=$r();var l=a[e];for(var u=o;u<s;u++){var c=i[u]=t.parseAndCollect(i[u]);if(!isNaN(c))l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1])}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var n=t.count();if(!t.persistent)n+=i;if(i<n)this._initDataFromProvider(i,n,!0);return[i,n]},r.prototype.appendValues=function(e,t){var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0);for(var u=0;u<a;u++){var c=n[u];XH(i,u,c.type,l,!0)}var f=[];for(var p=s;p<l;p++){var h=p-s;for(var v=0;v<a;v++){var c=n[v],g=VL.arrayRows.call(this,e[h]||f,c.property,h,v);i[v][p]=g;var y=o[v];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=nt(o,function(d){return d.property});for(var c=0;c<s;c++){var f=o[c];if(!l[c])l[c]=$r();XH(a,c,f.type,t,i)}if(n.fillStorage)n.fillStorage(e,t,a,l);else{var p=[];for(var h=e;h<t;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var g=a[v],y=this._dimValueGetter(p,u[v],h,v);g[h]=y;var m=l[v];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}}}if(!n.persistent&&n.clean)n.clean();this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],n=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);if(!isNaN(o))i+=o}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){if(!isNaN(n))t.push(n)}),Pr(t);var i=this.count();return i===0?0:i%2===1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;var n=0,a=this._count-1;while(n<=a){var o=(n+a)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=t[a]}else e=new i(t.buffer,0,n)}else{var i=pv(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;var i=this.clone(),n=i.count(),a=pv(i._rawCount),o=new a(n),s=[],l=e.length,u=0,c=e[0],f=i._chunks;for(var p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=t(p);else if(l===1){var g=f[c][v];h=t(g,p)}else{var y=0;for(;y<l;y++)s[y]=f[e[y]][v];s[y]=p,h=t.apply(null,s)}if(h)o[u++]=v}if(u<n)i._indices=o;return i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var n=le(e),a=n.length;if(!a)return this;var o=t.count(),s=pv(t._rawCount),l=new s(o),u=0,c=n[0],f=e[c][0],p=e[c][1],h=t._chunks,v=!1;if(!t._indices){var g=0;if(a===1){var y=h[n[0]];for(var m=0;m<i;m++){var d=y[m];if(d>=f&&d<=p||isNaN(d))l[u++]=g;g++}v=!0}else if(a===2){var y=h[n[0]],x=h[n[1]],S=e[n[1]][0],w=e[n[1]][1];for(var m=0;m<i;m++){var d=y[m],T=x[m];if((d>=f&&d<=p||isNaN(d))&&(T>=S&&T<=w||isNaN(T)))l[u++]=g;g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var A=t.getRawIndex(m),d=h[n[0]][A];if(d>=f&&d<=p||isNaN(d))l[u++]=A}else for(var m=0;m<o;m++){var M=!0,A=t.getRawIndex(m);for(var D=0;D<a;D++){var L=n[D],d=h[L][A];if(d<e[L][0]||d>e[L][1])M=!1}if(M)l[u++]=t.getRawIndex(m)}if(u<o)t._indices=l;return t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){var n=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent;for(var c=0;c<t.length;c++)u[t[c]]=$r();for(var f=0;f<s;f++){var p=e.getRawIndex(f);for(var h=0;h<o;h++)l[h]=n[t[h]][p];l[o]=f;var v=i&&i.apply(null,l);if(v!=null){if(typeof v!=="object")a[0]=v,v=a;for(var c=0;c<v.length;c++){var g=t[c],y=v[c],m=u[g],d=n[g];if(d)d[p]=y;if(y<m[0])m[0]=y;if(y>m[1])m[1]=y}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),n=i._chunks,a=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,f,p,h=new(pv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){var g=Math.min(v+l,o-1),y=Math.min(v+l*2,o),m=(y+g)/2,d=0;for(var x=g;x<y;x++){var S=this.getRawIndex(x),w=a[S];if(isNaN(w))continue;d+=w}d/=y-g;var T=v,A=Math.min(v+l,o),M=v-1,D=a[u];c=-1,p=T;var L=-1,I=0;for(var x=T;x<A;x++){var S=this.getRawIndex(x),w=a[S];if(isNaN(w)){if(I++,L<0)L=S;continue}if(f=Math.abs((M-m)*(w-D)-(M-x)*(d-D)),f>c)c=f,p=S}if(I>0&&I<A-T)h[s++]=Math.min(L,p),p=Math.max(L,p);h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(e,t){var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/t),o=n[e],s=this.count(),l=new(pv(this._rawCount))(Math.ceil(s/a)*2),u=0;for(var c=0;c<s;c+=a){var f=c,p=o[this.getRawIndex(f)],h=c,v=o[this.getRawIndex(h)],g=a;if(c+a>s)g=s-c;for(var y=0;y<g;y++){var m=this.getRawIndex(c+y),d=o[m];if(d<p)p=d,f=c+y;if(d>v)v=d,h=c+y}var x=this.getRawIndex(f),S=this.getRawIndex(h);if(f<h)l[u++]=x,l[u++]=S;else l[u++]=S,l[u++]=x}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(e,t,i,n){var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],c=this.count(),f=a._rawExtent[e]=$r(),p=new(pv(this._rawCount))(Math.ceil(c/l)),h=0;for(var v=0;v<c;v+=l){if(l>c-v)l=c-v,s.length=l;for(var g=0;g<l;g++){var y=this.getRawIndex(v+g);s[g]=u[y]}var m=i(s),d=this.getRawIndex(Math.min(v+n(s,m)||0,c-1));if(u[d]=m,m<f[0])f[0]=m;if(m>f[1])f[1]=m;p[h++]=d}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(!this._count)return;var i=e.length,n=this._chunks;for(var a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:t(a);break;case 1:t(n[e[0]][s],a);break;case 2:t(n[e[0]][s],n[e[1]][s],a);break;default:var l=0,u=[];for(;l<i;l++)u[l]=n[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var i=this._chunks[e],n=$r();if(!i)return n;var a=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Wb(t),c=u.key,f=l[c];if(f)return f.slice();var p=n[0],h=n[1];for(var v=0;v<a;v++){var g=this.getRawIndex(v),y=i[g];if(!t||Yb(u,y)){if(y<p)p=y;if(y>h)h=y}}return l[c]=[p,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(!this._provider.persistent){var i=[],n=this._chunks;for(var a=0;a<n.length;a++)i.push(n[a][t]);return i}else return this._provider.getItem(t)},r.prototype.clone=function(e,t){var i=new r,n=this._chunks,a=e&&an(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=!a[o]?n[o]:$mt(n[o]);else i._chunks=n;if(this._copyCommonProps(i),!t)i._indices=this._cloneIndices();return i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=It(this._extent),e._rawExtent=It(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var n=0;n<i;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){if(e<this._count&&e>=0)return this._indices[e];return-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,i,n,a){return Jo(t[a],this._dimensions[a])}VL={arrayRows:e,objectRows:function(t,i,n,a){return Jo(t[i],this._dimensions[a])},keyedColumns:e,original:function(t,i,n,a){var o=t&&(t.value==null?t:t.value);return Jo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,i,n,a){return t[a]}}}(),r}(),Sy=Qmt});function GL(r){var e=r.option.transform;e&&np(r.option.transform)}function Xb(r){return r.mainType==="series"}function qH(r){throw Error(r)}var Kb;var HL=k(()=>{Z();Bu();gi();Ol();UL();jb();sh();Kb=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){if(this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>90000000000)this._versionSignBase=0},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){if(this._isDirty())this._createSource(),this._dirty=!1},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,n,a;if(Xb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=ui(s)?oo:Gi,a=[];var f=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=St(f.seriesLayoutBy,p.seriesLayoutBy)||null,v=St(f.sourceHeader,p.sourceHeader),g=St(f.dimensions,p.dimensions),y=h!==p.seriesLayoutBy||!!v!==!!p.sourceHeader||g;n=y?[_y(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:g},l)]:[]}else{var m=e;if(i){var d=this._applyTransform(t);n=d.sourceList,a=d.upstreamSignList}else{var x=m.get("source",!0);n=[_y(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var a="";if(e.length!==1)qH(a)}var o,s=[],l=[];if(P(e,function(u){u.prepareSource();var c=u.getSource(n||0),f="";if(n!=null&&!c)qH(f);s.push(c),l.push(u._getVersionSign())}),i)o=ZH(i,s,{datasetIndex:t.componentIndex});else if(n!=null)o=[NH(s[0])];return{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;var e=this._getUpstreamSourceManagers();for(var t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var n=0,a=this._storeList,o=a[n];if(!o)o=a[n]={};var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];if(Xb(this._sourceHost)&&l)s=l._innerGetDataStore(e,t,i);else s=new Sy,s.initData(new Vb(t,e.length),e);o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Xb(e)){var t=Pb(e);return!t?[]:[t.getSourceManager()]}else return nt(cH(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,n;if(Xb(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:n}},r}()});function JH(r){var e=r.lineHeight;if(e==null)return tgt;else return"line-height:"+Pi(e+"")+"px"}function $H(r,e){var t=r.color||Q.color.tertiary,i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||Q.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";if(e==="html")return{nameStyle:"font-size:"+Pi(i+"")+"px;color:"+Pi(t)+";font-weight:"+Pi(n+""),valueStyle:"font-size:"+Pi(o+"")+"px;color:"+Pi(a)+";font-weight:"+Pi(s+"")};else return{nameStyle:{fontSize:i,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}function mr(r,e){return e.type=r,e}function WL(r){return r.type==="section"}function QH(r){return WL(r)?igt:ngt}function t4(r){if(WL(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return P(r.blocks,function(n){var a=t4(n);if(a>=e)e=a+ +(i&&(!a||WL(n)&&!n.noHeader))}),e}return 0}function igt(r,e,t,i){var n=e.noHeader,a=agt(t4(e)),o=[],s=e.blocks||[];xe(!s||it(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Bt(u,l)){var c=new Hb(u[l],null);s.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else if(l==="seriesDesc")s.reverse()}P(s,function(g,y){var m=e.valueFormatter,d=QH(g)(m?et(et({},r),{valueFormatter:m}):r,g,y>0?a.html:0,i);d!=null&&o.push(d)});var f=r.renderMode==="richText"?o.join(a.richText):YL(i,o.join(""),n?t:a.html);if(n)return f;var p=gb(e.header,"ordinal",r.useUTC),h=$H(i,r.renderMode).nameStyle,v=JH(i);if(r.renderMode==="richText")return e4(r,p,h)+a.richText+f;else return YL(i,'<div style="'+h+";"+v+';">'+Pi(p)+"</div>"+f,t)}function ngt(r,e,t,i){var n=r.renderMode,{noName:a,noValue:o}=e,s=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(S){return S=it(S)?S:[S],nt(S,function(w,T){return gb(w,it(h)?h[T]:h,u)})};if(a&&o)return;var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Q.color.secondary,n),p=a?"":gb(l,"ordinal",u),h=e.valueType,v=o?[]:c(e.value,e.rawDataIndex),g=!s||!a,y=!s&&a,m=$H(i,n),{nameStyle:d,valueStyle:x}=m;return n==="richText"?(s?"":f)+(a?"":e4(r,p,d))+(o?"":lgt(r,v,g,y,x)):YL(i,(s?"":f)+(a?"":ogt(p,!s,d))+(o?"":sgt(v,g,y,x)),t)}function ZL(r,e,t,i,n,a){if(!r)return;var o=QH(r),s={useUTC:n,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}function agt(r){return{html:egt[r],richText:rgt[r]}}function YL(r,e,t){var i='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",a=JH(r);return'<div style="'+n+";"+a+';">'+e+i+"</div>"}function ogt(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Pi(r)+"</span>"}function sgt(r,e,t,i){var n=t?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return r=it(r)?r:[r],'<span style="'+a+";"+i+'">'+nt(r,function(o){return Pi(o)}).join("&nbsp;&nbsp;")+"</span>"}function e4(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function lgt(r,e,t,i,n){var a=[n],o=i?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(it(e)?e.join(" "):e,a)}function qb(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return ks(i)}function Jb(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var tgt="line-height:1",egt,rgt,$b;var Rn=k(()=>{pn();Z();Vu();te();we();egt=[0,10,20,30],rgt=["",`
73
+ `,`
74
+
75
+ `,`
76
+
77
+
78
+ `];$b=function(){function r(){this.richTextStyles={},this._nextStyleNameId=kg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var n=i==="richText"?this._generateStyleName():null,a=rH({color:t,type:e,renderMode:i,markerId:n});if(ht(a))return a;else return this.richTextStyles[n]=a.style,a.content},r.prototype.wrapRichTextStyle=function(e,t){var i={};if(it(t))P(t,function(a){return et(i,a)});else et(i,t);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},r}()});function Qb(r){var{series:e,dataIndex:t,multipleSeries:i}=r,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=it(s),u=qb(e,t),c,f,p,h;if(o>1||l&&!o){var v=ugt(s,e,t,a,u);c=v.inlineValues,f=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);h=c=Uu(n,t,a[0]),f=g.type}else h=c=l?s[0]:s;var y=Bd(e),m=y&&e.name||"",d=n.getName(t),x=i?m:d;return mr("section",{header:m,noHeader:i||!y,sortParam:h,blocks:[mr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Ti(x),value:c,valueType:f,rawDataIndex:n.getRawIndex(t)})].concat(p||[])})}function ugt(r,e,t,i,n){var a=e.getData(),o=an(r,function(f,p,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?P(i,function(f){c(Uu(a,t,f),f)}):P(r,c);function c(f,p){var h=a.getDimensionInfo(p);if(!h||h.otherDims.tooltip===!1)return;if(o)u.push(mr("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:f,valueType:h.type}));else s.push(f),l.push(h.type)}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var jL=k(()=>{Z();Rn();sh();yt()});function t1(r,e){return r.getName(e)||r.getId(e)}function r4(r){var e=r.name;if(!Bd(r))r.name=cgt(r)||e}function cgt(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return P(t,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function fgt(r){return r.model.getRawData().count()}function pgt(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),hgt}function hgt(r,e){if(e.outputData&&r.end>e.outputData.count())e.model.getRawData().cloneShallow(e.outputData)}function i4(r,e){P(mu(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ne(dgt,e))})}function dgt(r,e){var t=XL(r);if(t)t.setOutputEnd((e||this).count());return e}function XL(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var n=i.agentStubMap;if(n)i=n.get(r.uid)}return i}}var qc,by="__universalTransitionEnabled",e1,Pe;var Zr=k(()=>{dt();Z();Vi();yt();Nr();dy();xy();ur();Fb();Sl();HL();jL();qc=Ft();e1=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Kc({count:fgt,reset:pgt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var a=qc(this).sourceManager=new Kb(this);a.prepareSource();var o=this.getInitialData(t,n);i4(o,this),this.dataTask.context.data=o,qc(this).dataBeforeProcessed=o,r4(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var n=Xc(this),a=n?Ra(t):{},o=this.subType;if(de.hasClass(o))o+="Series";if(re(t,i.getTheme().get(this.subType)),re(t,this.getDefaultOption()),io(t,"label",["show"]),this.fillDataTextStyle(t.data),n)hn(t,a,n)},e.prototype.mergeOption=function(t,i){t=re(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Xc(this);if(n)hn(this.option,t,n);var a=qc(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,i);i4(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,qc(this).dataBeforeProcessed=o,r4(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!ui(t)){var i=["show"];for(var n=0;n<t.length;n++)if(t[n]&&t[n].label)io(t[n],"label",i)}},e.prototype.getInitialData=function(t,i){return},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=XL(this);if(i){var n=i.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return qc(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=XL(this);if(i){var n=i.context;if(n.outputData=t,i!==this.dataTask)n.data=t}qc(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return gt(t)},e.prototype.getSourceManager=function(){return qc(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return qc(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);if(a==null)a=1/0;var c=[],f=1/0,p=-1,h=0,v=o.getDimensionIndex(i),g=o.getStore();for(var y=0,m=g.count();y<m;y++){var d=g.get(v,y),x=l.dataToCoord(d),S=u-x,w=Math.abs(S);if(w<=a){if(w<f||w===f&&S>=0&&p<0)f=w,p=S,h=0;if(S===p)c[h++]=y}}return c.length=h,c},e.prototype.formatTooltip=function(t,i,n){return Qb({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Te.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");if(i){if(this.getData().count()>this.getShallow("animationThreshold"))i=!1}return!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,n){var a=this.ecModel,o=py.prototype.getColorFromPalette.call(this,t,i,n);if(!o)o=a.getColorFromPalette(t,i,n);return o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var n=this.option.selectedMap;if(!n)return;var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=t1(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}},e.prototype.toggleSelect=function(t,i){var n=[];for(var a=0;a<t.length;a++)n[0]=t[a],this.isSelected(t[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());var t=this._selectedDataIndicesMap,i=le(t),n=[];for(var a=0;a<i.length;a++){var o=t[i[a]];if(o>=0)n.push(o)}return n},e.prototype.isSelected=function(t,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[t1(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[by])return!0;var t=this.option.universalTransition;if(!t)return!1;if(t===!0)return!0;return t&&t.enabled},e.prototype._innerSelect=function(t,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!s||!l)return;if(s==="series")o.selectedMap="all";else if(s==="multiple"){if(!Pt(o.selectedMap))o.selectedMap={};var u=o.selectedMap;for(var c=0;c<l;c++){var f=i[c],p=t1(t,f);u[p]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(f)}}else if(s==="single"||s===!0){var h=i[l-1],p=t1(t,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=t.getRawIndex(h),a)}},e.prototype._initSelectedMapFromData=function(t){if(this.option.selectedMap)return;var i=[];if(t.hasItemOption)t.each(function(n){var a=t.getRawDataItem(n);if(a&&a.selected)i.push(n)});if(i.length>0)this._innerSelect(t,i)},e.registerClass=function(t){return de.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(de);dr(e1,lh);dr(e1,py);dS(e1,de);Pe=e1});var KL,Re;var jr=k(()=>{Rc();In();Sl();KL=function(){function r(){this.group=new Lt,this.uid=Da("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){},r.prototype.updateLayout=function(e,t,i,n){},r.prototype.updateVisual=function(e,t,i,n){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;if(t)t.traverse(e)},r}();Fd(KL);zc(KL);Re=KL});function qn(){var r=Ft();return function(e){var t=r(e),i=e.pipelineContext,n=!!t.large,a=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Jc=k(()=>{yt()});function n4(r,e,t){if(r&&Wc(r))(e==="emphasis"?An:Cn)(r,t)}function a4(r,e,t){var i=Fo(r,e),n=e&&e.highlightKey!=null?B3(e.highlightKey):null;if(i!=null)P(Ve(i),function(a){n4(r.getItemGraphicEl(a),t,n)});else r.eachItemGraphicEl(function(a){n4(a,t,n)})}function mgt(r){return vgt(r.model)}function ggt(r){var{model:e,ecModel:t,api:i,payload:n}=r,a=e.pipelineContext.progressiveRender,o=r.view,s=n&&o4(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";if(l!=="render")o[l](e,t,i,n);return ygt[l]}var o4,vgt,qL,ygt,Ce;var Xr=k(()=>{Z();Rc();In();Sl();yt();tr();Fb();Jc();jt();o4=Ft(),vgt=qn(),qL=function(){function r(){this.group=new Lt,this.uid=Da("viewChart"),this.renderTask=Kc({plan:mgt,reset:ggt}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,n){},r.prototype.highlight=function(e,t,i,n){var a=e.getData(n&&n.dataType);if(!a)return;a4(a,n,"emphasis")},r.prototype.downplay=function(e,t,i,n){var a=e.getData(n&&n.dataType);if(!a)return;a4(a,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},r.prototype.eachRendered=function(e){Kn(this.group,e)},r.markUpdateMethod=function(e,t){o4(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();Fd(qL,["dispose"]);zc(qL);ygt={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Ce=qL});function wy(r,e,t){var i,n=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var p=function(){var h=[];for(var v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var g=c||e,y=c||t;if(c=null,s=i-(y?n:a)-g,clearTimeout(o),y)o=setTimeout(f,g);else if(s>=0)f();else o=setTimeout(f,-s);n=i};return p.clear=function(){if(o)clearTimeout(o),o=null},p.debounceNextCall=function(h){c=h},p}function $o(r,e,t,i){var n=r[e];if(!n)return;var a=n[r1]||n,o=n[l4],s=n[s4];if(s!==t||o!==i){if(t==null||!i)return r[e]=a;n=r[e]=wy(a,t,i==="debounce"),n[r1]=a,n[l4]=i,n[s4]=t}return n}function Fu(r,e){var t=r[e];if(t&&t[r1])t.clear&&t.clear(),r[e]=t[r1]}var r1="\x00__throttleOriginMethod",s4="\x00__throttleRate",l4="\x00__throttleType";function f4(r,e){var t=r.visualStyleMapper||c4[e];if(!t)return console.warn("Unknown style type '"+e+"'."),c4.itemStyle;return t}function p4(r,e){var t=r.visualDrawType||_gt[e];if(!t)return console.warn("Unknown style type '"+e+"'."),"fill";return t}var u4,c4,_gt,h4,Ty,d4,v4;var m4=k(()=>{Z();Ep();eL();QM();ti();yt();u4=Ft(),c4={itemStyle:Ta(tL,!0),lineStyle:Ta($M,!0)},_gt={lineStyle:"stroke",itemStyle:"fill"};h4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=f4(r,i),o=a(n),s=n.getShallow("decal");if(s)t.setVisual("decal",s),s.dirty=!0;var l=p4(r,i),u=o[l],c=Mt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var p=r.getColorFromPalette(r.name,null,e.getSeriesCount());if(!o[l])o[l]=p,t.setVisual("colorFromPalette",!0);o.fill=o.fill==="auto"||Mt(o.fill)?p:o.fill,o.stroke=o.stroke==="auto"||Mt(o.stroke)?p:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var g=r.getDataParams(v),y=et({},o);y[l]=c(g),h.setItemVisual(v,"style",y)}}}},Ty=new ye,d4={createOnAllSeries:!0,reset:function(r,e){if(r.ignoreStyleOnData)return;var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=f4(r,i),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Ty.option=l[i];var u=n(Ty),c=o.ensureUniqueItemVisual(s,"style");if(et(c,u),Ty.option.decal)o.setItemVisual(s,"decal",Ty.option.decal),Ty.option.decal.dirty=!0;if(a in u)o.setItemVisual(s,"colorFromPalette",!1)}}:null}}},v4={performRawSeries:!0,overallReset:function(r){var e=gt();r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();u4(t).scope=e.get(i)||e.set(i,{})}}),r.eachSeries(function(t){if(t.isColorBySeries())return;var i=t.getRawData(),n={},a=t.getData(),o=u4(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=p4(t,s);a.each(function(u){var c=a.getRawIndex(u);n[c]=u}),i.each(function(u){var c=n[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var p=a.ensureUniqueItemVisual(c,"style"),h=i.getName(u)||u+"",v=i.count();p[l]=t.getColorFromPalette(h,o,v)}})})}}});function JL(r,e){e=e||{},Dt(e,{text:"loading",textColor:Q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Lt,i=new ee({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var n=new me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new ee({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;if(e.showSpinner)o=new iy({shape:{startAngle:-n1/2,endAngle:-n1/2+0.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1000,{endAngle:n1*3/2}).start("circularInOut"),o.animateShape(!0).when(1000,{startAngle:n1*3/2}).delay(300).start("circularInOut"),t.add(o);return t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var n1;var g4=k(()=>{Z();jt();we();n1=Math.PI});function Sgt(r){r.overallReset(r.ecModel,r.api,r.payload)}function bgt(r){return r.dirtyOnOverallProgress&&wgt}function wgt(){this.agent.dirty(),this.getDownstream().dirty()}function Tgt(){this.agent&&this.agent.dirty()}function Agt(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Cgt(r){if(r.useClearVisual)r.data.clearAllVisual();var e=r.resetDefines=Ve(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?nt(e,function(t,i){return y4(i)}):Egt}function y4(r){return function(e,t){var i=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else if(n&&n.progress)n.progress(e,i)}}function Mgt(r){return r.data.count()}function Lgt(r){a1=null;try{r(Ay,_4)}catch(e){}return a1}function x4(r,e){for(var t in e.prototype)r[t]=ar}var xgt,Egt,Ay,_4,a1,$L;var S4=k(()=>{Z();Fb();In();EL();jg();yt();xgt=function(){function r(e,t,i,n){this._stageTaskMap=gt(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!e.__pipeline)return;var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.__preparePipelineContext?e.__preparePipelineContext(t,i):hS(e,t,i);e.pipelineContext=i.context=n},r.prototype.restorePipelines=function(e,t){var i=this,n=i._pipelineMap=gt();t.eachSeries(function(a){var o=e.painter.type==="canvas"&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;P(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{}),o="";xe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,t,i),n.overallReset&&this._createOverallStageTask(n,a,t,i)},this)},r.prototype.prepareView=function(e,t,i,n){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,n){n=n||{};var a=!1,o=this;P(e,function(l,u){if(n.visualType&&n.visualType!==l.visualType)return;var c=o._stageTaskMap.get(l.uid),{seriesTaskMap:f,overallTask:p}=c;if(p){var h,v=p.agentStubMap;v.each(function(y){if(s(n,y))y.dirty(),h=!0}),h&&p.dirty(),o.updatePayload(p,i);var g=o.getPerformArgs(p,n.block);if(v.each(function(y){y.perform(g)}),p.perform(g))a=!0}else if(f)f.each(function(y,m){if(s(n,y))y.dirty();var d=o.getPerformArgs(y,n.block);if(d.skip=!l.performRawSeries&&t.isSeriesFiltered(y.context.model),o.updatePayload(y,i),y.perform(d))a=!0})});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,n){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=gt(),{seriesType:l,getTargetSeries:u}=e;if(e.createOnAllSeries)i.eachRawSeries(c);else if(l)i.eachRawSeriesByType(l,c);else if(u)u(i,n).each(c);function c(f){var p=f.uid,h=s.set(p,o&&o.get(p)||Kc({plan:Agt,reset:Cgt,count:Mgt}));h.context={model:f,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,h)}},r.prototype._createOverallStageTask=function(e,t,i,n){var a=this,o=t.overallTask=t.overallTask||Kc({reset:Sgt});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=gt(),{seriesType:u,getTargetSeries:c,dirtyOnOverallProgress:f}=e,p=!1,h="";if(xe(!e.createOnAllSeries,h),u)i.eachRawSeriesByType(u,v);else if(c)c(i,n).each(v);else P(i.getSeries(),v);function v(g){var y=g.uid,m=l.set(y,s&&s.get(y)||(p=!0,Kc({reset:bgt,onDirty:Tgt})));m.context={model:g,dirtyOnOverallProgress:f},m.agent=o,m.__block=f,a._pipe(g,m)}if(p)o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){if(Mt(e))e={overallReset:e,seriesType:Lgt(e)};return e.uid=Da("stageHandler"),t&&(e.visualType=t),e},r}();Egt=y4(0);Ay={},_4={};x4(Ay,kb);x4(_4,TS);Ay.eachSeriesByType=Ay.eachRawSeriesByType=function(r){a1=r};Ay.eachComponent=function(r){if(r.mainType==="series"&&r.subType)a1=r.subType};$L=xgt});var ae,b4,Cy=function(){return{axisLine:{lineStyle:{color:ae.axisLine}},splitLine:{lineStyle:{color:ae.axisSplitLine}},splitArea:{areaStyle:{color:[ae.backgroundTint,ae.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ae.axisMinorSplitLine}},axisLabel:{color:ae.axisLabel},axisName:{}}},w4,T4,A4;var C4=k(()=>{we();ae=Q.darkColor,b4=ae.background,w4={label:{color:ae.secondary},itemStyle:{borderColor:ae.borderTint},dividerLineStyle:{color:ae.border}},T4={darkMode:!0,color:ae.theme,backgroundColor:b4,axisPointer:{lineStyle:{color:ae.border},crossStyle:{color:ae.borderShade},label:{color:ae.tertiary}},legend:{textStyle:{color:ae.secondary},pageTextStyle:{color:ae.tertiary}},textStyle:{color:ae.secondary},title:{textStyle:{color:ae.primary},subtextStyle:{color:ae.quaternary}},toolbox:{iconStyle:{borderColor:ae.accent50},feature:{dataView:{backgroundColor:b4,textColor:ae.primary,textareaColor:ae.background,textareaBorderColor:ae.border,buttonColor:ae.accent50,buttonTextColor:ae.neutral00}}},tooltip:{backgroundColor:ae.neutral20,defaultBorderColor:ae.border,textStyle:{color:ae.tertiary}},dataZoom:{borderColor:ae.accent10,textStyle:{color:ae.tertiary},brushStyle:{color:ae.backgroundTint},handleStyle:{color:ae.neutral00,borderColor:ae.accent20},moveHandleStyle:{color:ae.accent40},emphasis:{handleStyle:{borderColor:ae.accent50}},dataBackground:{lineStyle:{color:ae.accent30},areaStyle:{color:ae.accent20}},selectedDataBackground:{lineStyle:{color:ae.accent50},areaStyle:{color:ae.accent30}}},visualMap:{textStyle:{color:ae.secondary},handleStyle:{borderColor:ae.neutral30}},timeline:{lineStyle:{color:ae.accent10},label:{color:ae.tertiary},controlStyle:{color:ae.accent30,borderColor:ae.accent30}},calendar:{itemStyle:{color:ae.neutral00,borderColor:ae.neutral20},dayLabel:{color:ae.tertiary},monthLabel:{color:ae.secondary},yearLabel:{color:ae.secondary}},matrix:{x:w4,y:w4,backgroundColor:{borderColor:ae.axisLine},body:{itemStyle:{borderColor:ae.borderTint}}},timeAxis:Cy(),logAxis:Cy(),valueAxis:Cy(),categoryAxis:Cy(),line:{symbol:"circle"},graph:{color:ae.theme},gauge:{title:{color:ae.secondary},axisLine:{lineStyle:{color:[[1,ae.neutral05]]}},axisLabel:{color:ae.axisLabel},detail:{color:ae.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ae.background}},radar:function(){var r=Cy();return r.axisName={color:ae.axisLabel},r.axisLine.lineStyle.color=ae.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:ae.neutral20,textStyle:{color:ae.secondary}},emphasis:{itemStyle:{color:ae.neutral30}}}},sunburst:{itemStyle:{borderColor:ae.background}},map:{itemStyle:{borderColor:ae.border,areaColor:ae.neutral10},label:{color:ae.tertiary},emphasis:{label:{color:ae.primary},itemStyle:{areaColor:ae.highlight}},select:{label:{color:ae.primary},itemStyle:{areaColor:ae.highlight}}},geo:{itemStyle:{borderColor:ae.border,areaColor:ae.neutral10},emphasis:{label:{color:ae.primary},itemStyle:{areaColor:ae.highlight}},select:{label:{color:ae.primary},itemStyle:{color:ae.highlight}}}};T4.categoryAxis.splitLine.show=!1;A4=T4});var E4;var M4=k(()=>{Z();Sl();E4=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},n={};if(ht(e)){var a=wa(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};P(e,function(l,u){var c=!1;for(var f=0;f<o.length;f++){var p=o[f],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);if(v!=="data")t.mainType=v,t[p.toLowerCase()]=l,c=!0}}if(s.hasOwnProperty(u))i[u]=l,c=!0;if(!c)n[u]=l})}return{cptQuery:t,dataQuery:i,otherQuery:n}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var{targetEl:n,packedEvent:a,model:o,view:s}=i;if(!o||!s)return!0;var{cptQuery:l,dataQuery:u}=t;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,a));function c(f,p,h,v){return f[h]==null||p[v||h]===f[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}()});var QL,L4,D4,I4;var P4=k(()=>{Z();QL=["symbol","symbolSize","symbolRotate","symbolOffset"],L4=QL.concat(["symbolKeepAspect"]),D4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon)t.setVisual("legendIcon",r.legendIcon);if(!r.hasSymbolVisual)return;var i={},n={},a=!1;for(var o=0;o<QL.length;o++){var s=QL[o],l=r.get(s);if(Mt(l))a=!0,n[s]=l;else i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(et({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=le(n);function c(f,p){var h=r.getRawValue(p),v=r.getDataParams(p);for(var g=0;g<u.length;g++){var y=u[g];f.setItemVisual(p,y,n[y](h,v))}}return{dataEach:a?c:null}}},I4={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual)return;if(e.isSeriesFiltered(r))return;var t=r.getData();function i(n,a){var o=n.getItemModel(a);for(var s=0;s<L4.length;s++){var l=L4[s],u=o.getShallow(l,!0);if(u!=null)n.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?i:null}}}});function Ey(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function kl(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}function tD(r,e,t,i){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=i,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,i);break;default:}}function o1(r,e){function t(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}P([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(n,a,o){n=et({},n),o.dispatchAction(et(n,{type:i[1],seriesIndex:t(a,n)}))})})}function hv(r,e,t,i,n){var a=r+e;if(!t.isSilent(a))i.eachComponent({mainType:"series",subType:"pie"},function(o){var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected;for(var c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),p=Fo(f,n.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:it(p)?f.getName(p[0]):f.getName(p),selected:ht(l)?l:et({},l)})}})}function R4(r,e,t){r.on("selectchanged",function(i){var n=t.getModel();if(i.isFromClick)hv("map","selectchanged",e,n,i),hv("pie","selectchanged",e,n,i);else if(i.fromAction==="select")hv("map","selected",e,n,i),hv("pie","selected",e,n,i);else if(i.fromAction==="unselect")hv("map","unselected",e,n,i),hv("pie","unselected",e,n,i)})}var s1=k(()=>{Z();yt()});function Bs(r,e,t){var i;while(r){if(e(r)){if(i=r,t)break}r=r.__hostTarget||r.parent}return i}var Dgt,lo;var O4=k(()=>{fl();Dgt=new Ai,lo=Dgt});function N4(r,e){k4[r]=e}function z4(r){return k4[r]}var k4;var eD=k(()=>{k4={}});function U4(r,e){B4[r]=e}function V4(r){return B4[r]}var B4;var rD=k(()=>{B4={}});function F4(r){l1(r).prepare={}}function G4(r){l1(r).fullUpdate={}}function u1(r){return l1(r).prepare}function uh(r){return l1(r).fullUpdate}var l1;var c1=k(()=>{yt();l1=Ft()});var Igt,Pgt,Rgt,H4;var W4=k(()=>{Igt=Math.round(Math.random()*9),Pgt=typeof Object.defineProperty==="function",Rgt=function(){function r(){this._id="__ec_inner_"+Igt++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);if(Pgt)Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0});else i[this._id]=t;return this},r.prototype.delete=function(e){if(this.has(e))return delete this._guard(e)[this._id],!0;return!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}(),H4=Rgt});function Fgt(r,e){if(this.type!=="image"){var t=this.style;if(this.__isEmptyBrush)t.stroke=r,t.fill=e||Q.color.neutral00,t.lineWidth=2;else if(this.shape.symbolType==="line")t.stroke=r;else t.fill=r;this.markRedraw()}}function ir(r,e,t,i,n,a,o){var s=r.indexOf("empty")===0;if(s)r=r.substr(5,1).toLowerCase()+r.substr(6);var l;if(r.indexOf("image://")===0)l=ZM(r.slice(8),new Gt(e,t,i,n),o?"center":"cover");else if(r.indexOf("path://")===0)l=Zp(r.slice(7),{},new Gt(e,t,i,n),o?"center":"cover");else l=new Vgt({shape:{symbolType:r,x:e,y:t,width:i,height:n}});if(l.__isEmptyBrush=s,l.setColor=Fgt,a)l.setColor(a);return l}function Us(r){if(!it(r))r=[+r,+r];return[r[0]||0,r[1]||0]}function uo(r,e){if(r==null)return;if(!it(r))r=[r,r];return[wt(r[0],e[0])||0,wt(St(r[1],r[0]),e[1])||0]}var Ogt,kgt,Ngt,zgt,Bgt,Ugt,My,Vgt;var qi=k(()=>{Z();jt();fr();Hn();te();we();Ogt=$t.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var{cx:t,cy:i}=e,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i+a),r.lineTo(t-n,i+a),r.closePath()}}),kgt=$t.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var{cx:t,cy:i}=e,n=e.width/2,a=e.height/2;r.moveTo(t,i-a),r.lineTo(t+n,i),r.lineTo(t,i+a),r.lineTo(t-n,i),r.closePath()}}),Ngt=$t.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var{x:t,y:i}=e,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),p=Math.cos(u),h=o*0.6,v=o*0.7;r.moveTo(t-c,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+c-f*h,l+s+p*h,t,i-v,t,i),r.bezierCurveTo(t,i-v,t-c+f*h,l+s+p*h,t-c,l+s),r.closePath()}}),zgt=$t.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var{height:t,width:i,x:n,y:a}=e,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+t),r.lineTo(n,a+t/4*3),r.lineTo(n-o,a+t),r.lineTo(n,a),r.closePath()}}),Bgt={line:xr,rect:ee,roundRect:ee,square:ee,circle:Xn,diamond:kgt,pin:Ngt,arrow:zgt,triangle:Ogt},Ugt={line:function(r,e,t,i,n){n.x1=r,n.y1=e+i/2,n.x2=r+t,n.y2=e+i/2},rect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i},roundRect:function(r,e,t,i,n){n.x=r,n.y=e,n.width=t,n.height=i,n.r=Math.min(t,i)/4},square:function(r,e,t,i,n){var a=Math.min(t,i);n.x=r,n.y=e,n.width=a,n.height=a},circle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.r=Math.min(t,i)/2},diamond:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i},pin:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},arrow:function(r,e,t,i,n){n.x=r+t/2,n.y=e+i/2,n.width=t,n.height=i},triangle:function(r,e,t,i,n){n.cx=r+t/2,n.cy=e+i/2,n.width=t,n.height=i}},My={};P(Bgt,function(r,e){My[e]=new r});Vgt=$t.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=Tp(r,e,t),n=this.shape;if(n&&n.symbolType==="pin"&&e.position==="inside")i.y=t.y+t.height*0.4;return i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var n=My[i];if(!n)i="rect",n=My[i];Ugt[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}})});function ch(r){return isFinite(r)}function Ggt(r,e,t){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;if(!e.global)i=i*t.width+t.x,n=n*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y;i=ch(i)?i:0,n=ch(n)?n:1,a=ch(a)?a:0,o=ch(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function Hgt(r,e,t){var{width:i,height:n}=t,a=Math.min(i,n),o=e.x==null?0.5:e.x,s=e.y==null?0.5:e.y,l=e.r==null?0.5:e.r;if(!e.global)o=o*i+t.x,s=s*n+t.y,l=l*a;o=ch(o)?o:0.5,s=ch(s)?s:0.5,l=l>=0&&ch(l)?l:0.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Ly(r,e,t){var i=e.type==="radial"?Hgt(r,e,t):Ggt(r,e,t),n=e.colorStops;for(var a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Z4(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function f1(r){return parseInt(r,10)}function $c(r,e,t){var i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||f1(s[i])||f1(r.style[i]))-(f1(s[a])||0)-(f1(s[o])||0)||0}function Wgt(r,e){if(!r||r==="solid"||!(e>0))return null;return r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:ue(r)?[r]:it(r)?r:null}function Dy(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&Wgt(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;if(n&&n!==1)t=nt(t,function(a){return a/n}),i/=n}return[t,i]}var iD=k(()=>{Z()});function p1(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function j4(r){return typeof r==="string"&&r!=="none"}function h1(r){var e=r.fill;return e!=null&&e!=="none"}function X4(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function K4(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function d1(r,e,t){var i=Vg(e.image,e.__image,t);if(Gd(i)){var n=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix==="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*yd),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function Zgt(r,e,t,i,n){var a,o=p1(t),s=h1(t),l=t.strokePercent,u=l<1,c=!e.path;if((!e.silent||u)&&c)e.createPathProxy();var f=e.path||Ygt,p=e.__dirty;if(!i){var{fill:h,stroke:v}=t,g=s&&!!h.colorStops,y=o&&!!v.colorStops,m=s&&!!h.image,d=o&&!!v.image,x=void 0,S=void 0,w=void 0,T=void 0,A=void 0;if(g||y)A=e.getBoundingRect();if(g)x=p?Ly(r,h,A):e.__canvasFillGradient,e.__canvasFillGradient=x;if(y)S=p?Ly(r,v,A):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S;if(m)w=p||!e.__canvasFillPattern?d1(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=w;if(d)T=p||!e.__canvasStrokePattern?d1(r,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T;if(g)r.fillStyle=x;else if(m)if(w)r.fillStyle=w;else s=!1;if(y)r.strokeStyle=S;else if(d)if(T)r.strokeStyle=T;else o=!1}var M=e.getGlobalScale();f.setScale(M[0],M[1],e.segmentIgnoreThreshold);var D,L;if(r.setLineDash&&t.lineDash)a=Dy(e),D=a[0],L=a[1];var I=!0;if(c||p&Ac){if(f.setDPR(r.dpr),u)f.setContext(null);else f.setContext(r),I=!1;f.reset(),e.buildPath(f,e.shape,i),f.toStatic(),e.pathUpdated()}if(I)f.rebuildPath(r,u?l:1);if(D)r.setLineDash(D),r.lineDashOffset=L;if(!i)if(t.strokeFirst){if(o)K4(r,t);if(s)X4(r,t)}else{if(s)X4(r,t);if(o)K4(r,t)}else n.batchFill=s,n.batchStroke=o;if(D)r.setLineDash([])}function jgt(r,e,t){var i=e.__image=Vg(t.image,e.__image,e,e.onload);if(!i||!Gd(i))return;var n=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null)o=s*l;else if(s==null&&o!=null)s=o/l;else if(o==null&&s==null)o=i.width,s=i.height;if(t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;r.drawImage(i,u,c,t.sWidth,t.sHeight,n,a,o,s)}else if(t.sx&&t.sy){var{sx:u,sy:c}=t,f=o-u,p=s-c;r.drawImage(i,u,c,f,p,n,a,o,s)}else r.drawImage(i,n,a,o,s)}function Xgt(r,e,t){var i,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||pa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;if(r.setLineDash&&t.lineDash)i=Dy(e),a=i[0],o=i[1];if(a)r.setLineDash(a),r.lineDashOffset=o;if(t.strokeFirst){if(p1(t))r.strokeText(n,t.x,t.y);if(h1(t))r.fillText(n,t.x,t.y)}else{if(h1(t))r.fillText(n,t.x,t.y);if(p1(t))r.strokeText(n,t.x,t.y)}if(a)r.setLineDash([])}}function i6(r,e,t,i,n){var a=!1;if(!i){if(t=t||{},e===t)return!1}if(i||e.opacity!==t.opacity){Jn(r,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?bl.opacity:o}if(i||e.blend!==t.blend){if(!a)Jn(r,n),a=!0;r.globalCompositeOperation=e.blend||bl.blend}for(var s=0;s<q4.length;s++){var l=q4[s];if(i||e[l]!==t[l]){if(!a)Jn(r,n),a=!0;r[l]=r.dpr*(e[l]||0)}}if(i||e.shadowColor!==t.shadowColor){if(!a)Jn(r,n),a=!0;r.shadowColor=e.shadowColor||bl.shadowColor}return a}function $4(r,e,t,i,n){var a=e.style,o=i?null:t&&t.style||{};if(a===o)return!1;var s=i6(r,a,o,i,n);if(i||a.fill!==o.fill){if(!s)Jn(r,n),s=!0;j4(a.fill)&&(r.fillStyle=a.fill)}if(i||a.stroke!==o.stroke){if(!s)Jn(r,n),s=!0;j4(a.stroke)&&(r.strokeStyle=a.stroke)}if(i||a.opacity!==o.opacity){if(!s)Jn(r,n),s=!0;r.globalAlpha=a.opacity==null?1:a.opacity}if(e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);if(r.lineWidth!==u){if(!s)Jn(r,n),s=!0;r.lineWidth=u}}for(var c=0;c<J4.length;c++){var f=J4[c],p=f[0];if(i||a[p]!==o[p]){if(!s)Jn(r,n),s=!0;r[p]=a[p]||f[1]}}return s}function Kgt(r,e,t,i,n){return i6(r,e.style,t&&t.style,i,n)}function n6(r,e){var t=e.transform,i=r.dpr||1;if(t)r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]);else r.setTransform(i,0,0,i,0,0)}function qgt(r,e,t){var i=!1;for(var n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),n6(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=i}function Jgt(r,e){if(r&&e)return r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5];else if(!r&&!e)return!1;return!0}function $gt(r){var e=h1(r),t=p1(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!=="string"||t&&typeof r.stroke!=="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Jn(r,e){if(e.batchFill)e.batchFill=!1,r.fill();if(e.batchStroke)e.batchStroke=!1,r.stroke()}function v1(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Qc(r,e,t),fh(r,t)}function Qc(r,e,t){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Ci,e.__isRendered=!1;return}var n=e.__clipPaths,a=t.prevElClipPaths,o=e.style,s=!1,l=!1;if(!a||Z4(n,a)){if(a)Jn(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null;if(n&&n.length)Jn(r,t),r.save(),qgt(n,r,t),s=!0,t.prevElClipPaths=n}if(t.allClipped){e.__dirty&=~Ci,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;if(!u)l=s=!0;var c=e instanceof $t&&e.autoBatch&&$gt(o);if(s||Jgt(i,u.transform))Jn(r,t),n6(r,e);else if(!c)Jn(r,t);if(e instanceof $t){if(t.lastDrawType!==Q4)l=!0,t.lastDrawType=Q4;if($4(r,e,u,l,t),!c||!t.batchFill&&!t.batchStroke)r.beginPath();Zgt(r,e,o,c,t)}else if(e instanceof Tu){if(t.lastDrawType!==e6)l=!0,t.lastDrawType=e6;$4(r,e,u,l,t),Xgt(r,e,o)}else if(e instanceof _r){if(t.lastDrawType!==t6)l=!0,t.lastDrawType=t6;Kgt(r,e,u,l,t),jgt(r,e,o)}else if(e.getTemporalDisplayables){if(t.lastDrawType!==r6)l=!0,t.lastDrawType=r6;Qgt(r,e,t)}if(e.innerAfterBrush(),e.afterBrush){if(c)Jn(r,t);e.afterBrush()}t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function fh(r,e){if(Jn(r,e),e.prevElClipPaths)r.restore()}function Qgt(r,e,t){var i=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Qc(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}fh(r,a);for(var u=0,c=n.length;u<c;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Qc(r,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}fh(r,a),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Ygt,q4,J4,Q4=1,t6=2,e6=3,r6=4;var m1=k(()=>{no();ao();vS();Br();Yo();Yg();Z();iD();Ja();Ygt=new Fi(!0);q4=["shadowBlur","shadowOffsetX","shadowOffsetY"],J4=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]]});function Vs(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type==="svg";if(r.dirty)nD.delete(r);var a=nD.get(r);if(a)return a;var o=Dt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});if(o.backgroundColor==="none")o.backgroundColor=null;var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,nD.set(r,s),r.dirty=!1,s;function l(u){var c=[t],f=!0;for(var p=0;p<o6.length;++p){var h=o[o6[p]];if(h!=null&&!it(h)&&!ht(h)&&!ue(h)&&typeof h!=="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(n?"-svg":"");var g=a6.get(v);if(g)n?u.svgElement=g:u.image=g}var y=l6(o.dashArrayX),m=tyt(o.dashArrayY),d=s6(o.symbol),x=eyt(y),S=u6(m),w=!n&&ri.createCanvas(),T=n&&{tag:"g",attrs:{},key:"dcl",children:[]},A=D(),M;if(w)w.width=A.width*t,w.height=A.height*t,M=w.getContext("2d");if(L(),f)a6.put(v,w||T);u.image=w,u.svgElement=T,u.svgWidth=A.width,u.svgHeight=A.height;function D(){var I=1;for(var E=0,R=x.length;E<R;++E)I=zE(I,x[E]);var B=1;for(var E=0,R=d.length;E<R;++E)B=zE(B,d[E].length);I*=B;var z=S*x.length*d.length;if(!1)var V;return{width:Math.max(1,Math.min(I,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function L(){if(M){if(M.clearRect(0,0,w.width,w.height),o.backgroundColor)M.fillStyle=o.backgroundColor,M.fillRect(0,0,w.width,w.height)}var I=0;for(var E=0;E<m.length;++E)I+=m[E];if(I<=0)return;var R=-S,B=0,z=0,V=0;while(R<A.height){if(B%2===0){var H=z/2%d.length,K=0,F=0,G=0;while(K<A.width*2){var rt=0;for(var E=0;E<y[V].length;++E)rt+=y[V][E];if(rt<=0)break;if(F%2===0){var ot=(1-o.symbolSize)*0.5,at=K+y[V][F]*ot,mt=R+m[B]*ot,Tt=y[V][F]*o.symbolSize,Ut=m[B]*o.symbolSize,qt=G/2%d[H].length;Zt(at,mt,Tt,Ut,d[H][qt])}if(K+=y[V][F],++G,++F,F===y[V].length)F=0}if(++V,V===y.length)V=0}if(R+=m[B],++z,++B,B===m.length)B=0}function Zt(Rt,oe,Vt,N,vt){var ut=n?1:t,q=ir(vt,Rt*ut,oe*ut,Vt*ut,N*ut,o.color,o.symbolKeepAspect);if(n){var X=i.painter.renderOneToVNode(q);if(X)T.children.push(X)}else v1(M,q)}}}}function s6(r){if(!r||r.length===0)return[["rect"]];if(ht(r))return[[r]];var e=!0;for(var t=0;t<r.length;++t)if(!ht(r[t])){e=!1;break}if(e)return s6([r]);var i=[];for(var t=0;t<r.length;++t)if(ht(r[t]))i.push([r[t]]);else i.push(r[t]);return i}function l6(r){if(!r||r.length===0)return[[0,0]];if(ue(r)){var e=Math.ceil(r);return[[e,e]]}var t=!0;for(var i=0;i<r.length;++i)if(!ue(r[i])){t=!1;break}if(t)return l6([r]);var n=[];for(var i=0;i<r.length;++i)if(ue(r[i])){var e=Math.ceil(r[i]);n.push([e,e])}else{var e=nt(r[i],function(s){return Math.ceil(s)});if(e.length%2===1)n.push(e.concat(e));else n.push(e)}return n}function tyt(r){if(!r||typeof r==="object"&&r.length===0)return[0,0];if(ue(r)){var e=Math.ceil(r);return[e,e]}var t=nt(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function eyt(r){return nt(r,function(e){return u6(e)})}function u6(r){var e=0;for(var t=0;t<r.length;++t)e+=r[t];if(r.length%2===1)return e*2;return e}var nD,a6,o6;var dv=k(()=>{W4();wg();Z();te();qi();m1();Ja();nD=new H4,a6=new vl(100),o6=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"]});function ryt(r,e){r.eachRawSeries(function(t){if(r.isSeriesFiltered(t))return;var i=t.getData();if(i.hasItemVisual())i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Vs(s,e)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Vs(n,e)}})}var c6;var f6=k(()=>{dv();yt();c6=xl(ryt)});function C6(r){return function(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){ka(this.id);return}return M6(this,r,e)}}function E6(r){return function(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return M6(this,r,e)}}function M6(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Ai.prototype[e].apply(r,t)}function ka(r){}function O6(r,e,t){var i=!(t&&t.ssr);if(i){var n=yyt(r);if(n)return n}var a=new P6(r,e,t);return a.id="ec_"+gyt++,Iy[a.id]=a,i&&VE(r,yD,a.id),I6(a),lo.trigger("afterinit",a),a}function yyt(r){return Iy[SF(r,yD)]}function k6(r,e){R6[r]=e}function _D(r){if(Xt(dD,r)<0)dD.push(r)}function xD(r,e){SD(hD,r,e,lyt)}function N6(r){T1("afterinit",r)}function z6(r){T1("afterupdate",r)}function T1(r,e){lo.on(r,e)}function $n(r,e,t){var i,n,a,o,s;if(Mt(e))t=e,e="";if(Pt(r)){if(i=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,!t)t=r.action;a=r.refineEvent}else i=r,n=e;function l(c){return c.toLowerCase()}n=l(n||i);var u=a?l(i):n;if(S1[i])return;if(xe(h6.test(i)&&h6.test(n)),a)xe(n!==i);if(S1[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:a},pD[n]=1,a&&s)pD[u]=1;fD[u]=i}function B6(r,e){ku.register(r,e)}function U6(r,e){SD(b1,r,e,b6,"layout",!0)}function tf(r,e){SD(b1,r,e,w6,"visual",!0)}function SD(r,e,t,i,n,a){if(Mt(e)||Pt(e))t=e,e=i;if(Xt(S6,t)>=0)return;S6.push(t);var o=$L.wrapStageHandler(t,n);o.__prio=e,o.__raw=t,r.push(o)}function bD(r,e){vD[r]=e}function V6(r,e,t){var i=z4("registerMap");i&&i(r,e,t)}function wD(r,e,t,i){return{eventContent:{selected:N3(t),isFromClick:e.isFromClick||!1}}}var iyt=1,nyt=800,ayt=900,oyt=920,syt=1000,lyt=2000,p6=5000,b6=1000,uyt=1100,mD=2000,w6=3000,cyt=4000,w1=4500,fyt=4600,pyt=5000,hyt=6000,T6=7000,A6,zi="__flagInMainProcess",g1="__mainProcessVersion",Ji="__pendingUpdate",aD="__needsUpdateStatus",h6,oD="__connectUpdateStatus",d6=0,dyt=1,vyt=2,L6,D6,ph,sD,y1,Gu,_1,lD,uD,vv,mv,v6,m6,cD,g6,x1,y6,I6,Qo,_6,gv,P6,gD,myt,S1,fD,pD,hD,dD,b1,R6,vD,Iy,x6,gyt,FVt,yD="_echarts_instance_",S6,F6;var hh=k(()=>{dt();aS();Z();Vi();fl();EL();jg();Pa();wH();IH();RH();Zr();jr();Xr();jt();lr();tr();yt();m4();g4();S4();C4();Sl();M4();gi();P4();Vo();s1();UL();ib();O4();Ja();eD();c1();TL();f6();A6={PROCESSOR:{SERIES_FILTER:nyt,AXIS_STATISTICS:oyt,FILTER:syt,STATISTIC:p6,STATISTICS:p6},VISUAL:{LAYOUT:b6,PROGRESSIVE_LAYOUT:uyt,GLOBAL:mD,CHART:w6,POST_CHART_LAYOUT:fyt,COMPONENT:cyt,BRUSH:pyt,CHART_ITEM:w1,ARIA:hyt,DECAL:T6}},h6=/^[a-zA-Z0-9_]+$/;L6=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Ai),D6=L6.prototype;D6.on=E6("on");D6.off=E6("off");P6=function(r){W(e,r);function e(t,i,n){var a=r.call(this,new E4)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=t;var o="canvas",s="auto",l=!1;if(a[g1]=1,!1)var u;if(n.ssr)eF(function(h){var v=Yt(h),g=v.dataIndex;if(g==null)return;var y=gt();return y.set("series_index",v.seriesIndex),y.set("data_index",g),v.ssrType&&y.set("ssr_type",v.ssrType),y});var c=a._zr=PE(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:St(n.useDirtyRect,l),useCoarsePointer:St(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=wy(xt(c.flush,c),17),a._updateTheme(i),a._locale=ZG(n.locale||rb),a._coordSysMgr=new ku;var f=a._api=y6(a);function p(h,v){return h.__prio-v.__prio}return fp(b1,p),fp(hD,p),a._scheduler=new $L(a,f,hD,b1),a._messageCenter=new L6,a._initEvents(),a.resize=xt(a.resize,a),c.animation.on("frame",a._onframe,a),v6(c,a),m6(c,a),np(a),a}return e.prototype._onframe=function(){if(this._disposed)return;var t=this._scheduler,i=this._model,n=this._api;if(_6(this),this[Ji]){var a=this[Ji].silent;this[zi]=!0,gv(this);try{ph(this),Gu.update.call(this,null,this[Ji].updateParams)}catch(l){throw this[zi]=!1,this[Ji]=null,l}this._zr.flush(),this[zi]=!1,this[Ji]=null,vv.call(this,a),mv.call(this,a)}else if(t.unfinished){var o=iyt;do{t.unfinished=!1;var s=ri.getTime();t.performSeriesTasks(i),t.performDataProcessorTasks(i),lD(this,i),t.performVisualTasks(i),x1(this,this._model,n,"remain",{}),o-=ri.getTime()-s}while(o>0&&t.unfinished);if(!t.unfinished)this._zr.flush()}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,n){if(this[zi])return;if(this._disposed){ka(this.id);return}var a,o,s;if(Pt(i))n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge;if(this[zi]=!0,gv(this),!this._model||i){var l=new bH(this._api),u=this._theme,c=this._model=new kb;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},dD);var f={seriesTransition:s,optionChanged:!0};if(n)this[Ji]={silent:a,updateParams:f},this[zi]=!1,this.getZr().wakeUp();else{try{ph(this),Gu.update.call(this,null,f)}catch(p){throw this[Ji]=null,this[zi]=!1,p}if(!this._ssr)this._zr.flush();this[Ji]=null,this[zi]=!1,vv.call(this,a),mv.call(this,a)}},e.prototype.setTheme=function(t,i){if(this[zi])return;if(this._disposed){ka(this.id);return}var n=this._model;if(!n)return;var a=i&&i.silent,o=null;if(this[Ji]){if(a==null)a=this[Ji].silent;o=this[Ji].updateParams,this[Ji]=null}this[zi]=!0,gv(this);try{this._updateTheme(t),n.setTheme(this._theme),ph(this),Gu.update.call(this,{type:"setTheme"},o)}catch(s){throw this[zi]=!1,s}this[zi]=!1,vv.call(this,a),mv.call(this,a)},e.prototype._updateTheme=function(t){if(ht(t))t=R6[t];if(t)t=It(t),t&&Nb(t,!0),this._theme=t},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Te.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,i=t.storage.getDisplayList();return P(i,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){ka(this.id);return}t=t||{};var i=t.excludeComponents,n=this._model,a=[],o=this;P(i,function(l){n.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];if(!c.group.ignore)a.push(c),c.group.ignore=!0})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return P(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){ka(this.id);return}var i=t.type==="svg",n=this.group,{min:a,max:o}=Math,s=1/0;if(x6[n]){var l=s,u=s,c=-s,f=-s,p=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();P(Iy,function(x,S){if(x.group===n){var w=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(It(t)),T=x.getDom().getBoundingClientRect();l=a(T.left,l),u=a(T.top,u),c=o(T.right,c),f=o(T.bottom,f),p.push({dom:w,left:T.left,top:T.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,g=f-u,y=ri.createCanvas(),m=PE(y,{renderer:i?"svg":"canvas"});if(m.resize({width:v,height:g}),i){var d="";if(P(p,function(x){var S=x.left-l,w=x.top-u;d+='<g transform="translate('+S+","+w+')">'+x.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=d,t.connectedBackgroundColor)m.painter.setBackgroundColor(t.connectedBackgroundColor);return m.refreshImmediately(),m.painter.toDataURL()}else{if(t.connectedBackgroundColor)m.add(new ee({shape:{x:0,y:0,width:v,height:g},style:{fill:t.connectedBackgroundColor}}));return P(p,function(x){var S=new _r({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i,n){return _1(this,"convertToPixel",t,i,n)},e.prototype.convertToLayout=function(t,i,n){return _1(this,"convertToLayout",t,i,n)},e.prototype.convertFromPixel=function(t,i,n){return _1(this,"convertFromPixel",t,i,n)},e.prototype.containPixel=function(t,i){if(this._disposed){ka(this.id);return}var n=this._model,a,o=yl(n,t);return P(o,function(s,l){l.indexOf("Models")>=0&&P(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(i);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];if(f&&f.containPoint)a=a||f.containPoint(i,u)}},this)},this),!!a},e.prototype.getVisual=function(t,i){var n=this._model,a=yl(n,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Ey(s,l,i):kl(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;P(myt,function(n){var a=function(o){var s=t.getModel(),l=o.target,u,c=n==="globalout";if(c)u={};else l&&Bs(l,function(g){var y=Yt(g);if(y&&y.dataIndex!=null){var m=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=m&&m.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=et({},y.eventData),!0},!0);if(u){var f=u.componentType,p=u.componentIndex;if(f==="markLine"||f==="markPoint"||f==="markArea")f="series",p=u.seriesIndex;var h=f&&p!=null&&s.getComponent(f,p),v=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},t.trigger(n,u)}};a.zrEventfulCallAtLast=!0,t._zr.on(n,a,t)});var i=this._messageCenter;P(pD,function(n,a){i.on(a,function(o){t.trigger(a,o)})}),R4(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){ka(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){ka(this.id);return}this._disposed=!0;var t=this.getDom();if(t)VE(this.getDom(),yD,"");var i=this,{_api:n,_model:a}=i;P(i._componentsViews,function(o){o.dispose(a,n)}),P(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Iy[i.id]},e.prototype.resize=function(t){if(this[zi])return;if(this._disposed){ka(this.id);return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!i)return;var n=i.resetOption("media"),a=t&&t.silent;if(this[Ji]){if(a==null)a=this[Ji].silent;n=!0,this[Ji]=null}this[zi]=!0,gv(this);try{n&&ph(this),Gu.update.call(this,{type:"resize",animation:et({duration:0},t&&t.animation)})}catch(o){throw this[zi]=!1,o}this[zi]=!1,vv.call(this,a),mv.call(this,a)},e.prototype.showLoading=function(t,i){if(this._disposed){ka(this.id);return}if(Pt(t))i=t,t="";if(t=t||"default",this.hideLoading(),!vD[t])return;var n=vD[t](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)},e.prototype.hideLoading=function(){if(this._disposed){ka(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=et({},t);return i.type=fD[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){ka(this.id);return}if(!Pt(i))i={silent:!!i};if(!S1[t.type])return;if(!this._model)return;if(this[zi]){this._pendingActions.push(t);return}var n=i.silent;uD.call(this,t,n);var a=i.flush;if(a)this._zr.flush();else if(a!==!1&&Te.browser.weChat)this._throttledZrFlush();vv.call(this,n),mv.call(this,n)},e.prototype.updateLabelLayout=function(){lo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){ka(this.id);return}var i=t.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){ph=function(f){F4(f._model);var p=f._scheduler;p.restorePipelines(f._zr,f._model),p.prepareStageTasks(),sD(f,!0),sD(f,!1),p.plan()},sD=function(f,p){var{_model:h,_scheduler:v}=f,g=p?f._componentsViews:f._chartsViews,y=p?f._componentsMap:f._chartsMap,{_zr:m,_api:d}=f;for(var x=0;x<g.length;x++)g[x].__alive=!1;p?h.eachComponent(function(T,A){T!=="series"&&S(A)}):h.eachSeries(S);function S(T){var A=T.__requireNewView;T.__requireNewView=!1;var M="_ec_"+T.id+"_"+T.type,D=!A&&y[M];if(!D){var L=wa(T.type),I=p?Re.getClass(L.main,L.sub):Ce.getClass(L.sub);D=new I,D.init(h,d),y[M]=D,g.push(D),m.add(D.group)}T.__viewId=D.__id=M,D.__alive=!0,D.__model=T,D.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(D,T,h,d)}for(var x=0;x<g.length;){var w=g[x];if(!w.__alive){if(!p&&w.renderTask.dispose(),m.remove(w.group),w.dispose(h,d),g.splice(x,1),y[w.__id]===w)delete y[w.__id];w.__id=w.group.__ecComponentInfo=null}else x++}},y1=function(f,p,h,v,g){var y=f._model;if(y.setUpdatePayload(h),!v){P([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m=Ud(h,v,g),d=h.excludeSeriesId,x;if(d!=null)x=gt(),P(Ve(d),function(w){var T=Rr(w,null);if(T!=null)x.set(T,!0)});y&&y.eachComponent(m,function(w){var T=x&&x.get(w.id)!=null;if(T)return;if(TM(h))if(w instanceof Pe){if(h.type===Hc&&!h.notBlur&&!w.get(["emphasis","disabled"]))P3(w,h,f._api)}else{var A=DS(w.mainType,w.componentIndex,h.name,f._api),{focusSelf:M,dispatchers:D}=A;if(h.type===Hc&&M&&!h.notBlur)AS(w.mainType,w.componentIndex,f._api);if(D)P(D,function(L){h.type===Hc?An(L):Cn(L)})}else if(PS(h)){if(w instanceof Pe)k3(w,h,f._api),wM(w),Qo(f)}},f),y&&y.eachComponent(m,function(w){var T=x&&x.get(w.id)!=null;if(T)return;S(f[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},f);function S(w){w&&w.__alive&&w[p]&&w[p](w.__model,y,f._api,h)}},Gu={prepareAndUpdate:function(f){ph(this),Gu.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,p){var h=this._model,v=this._api,g=this._zr,y=this._coordSysMgr,m=this._scheduler;if(!h)return;G4(h),h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),y.create(h,v),lo.trigger("coordsys:aftercreate",h,v),m.performDataProcessorTasks(h,f),lD(this,h),y.update(h,v),i(h),m.performVisualTasks(h,f);var d=h.get("backgroundColor")||"transparent";g.setBackgroundColor(d);var x=h.get("darkMode");if(x!=null&&x!=="auto")g.setDarkMode(x);cD(this,h,v,f,p),lo.trigger("afterupdate",h,v)},updateTransform:function(f){var p=this,{_model:h,_api:v}=p;if(!h)return;h.setUpdatePayload(f);var g=[];h.eachComponent(function(m,d){if(m===cn)return;var x=p.getViewOfComponentModel(d);if(x&&x.__alive)if(x.updateTransform){var S=x.updateTransform(d,h,v,f);S&&S.update&&g.push(x)}else g.push(x)});var y=gt();h.eachSeries(function(m){var d=p._chartsMap[m.__viewId],x=m.pipelineContext;if(d.updateTransform&&!x.progressiveRender){var S=d.updateTransform(m,h,v,f);S&&S.update&&y.set(m.uid,1)}else y.set(m.uid,1)}),p._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:y}),x1(p,h,v,f,{},y),lo.trigger("afterupdate",h,v)},updateView:function(f){var p=this._model;if(!p)return;p.setUpdatePayload(f),Ce.markUpdateMethod(f,"updateView"),i(p),this._scheduler.performVisualTasks(p,f,{setDirty:!0}),cD(this,p,this._api,f,{}),lo.trigger("afterupdate",p,this._api)},updateVisual:function(f){var p=this,h=this._model;if(!h)return;h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Ce.markUpdateMethod(f,"updateVisual"),i(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,g){if(v!=="series"){var y=p.getViewOfComponentModel(g);y&&y.__alive&&y.updateVisual(g,h,p._api,f)}}),h.eachSeries(function(v){var g=p._chartsMap[v.__viewId];g.updateVisual(v,h,p._api,f)}),lo.trigger("afterupdate",h,this._api)},updateLayout:function(f){Gu.update.call(this,f)}};function t(f,p,h,v,g){if(f._disposed){ka(f.id);return}var y=f._model,m=f._coordSysMgr.getCoordinateSystems(),d,x=yl(y,h);for(var S=0;S<m.length;S++){var w=m[S];if(w[p]&&(d=w[p](y,x,v,g))!=null)return d}}_1=t,lD=function(f,p){var{_chartsMap:h,_scheduler:v}=f;p.eachSeries(function(g){v.updateStreamModes(g,h[g.__viewId])})},uD=function(f,p){var h=this,v=this.getModel(),{type:g,escapeConnect:y}=f,m=S1[g],d=(m.update||"update").split(":"),x=d.pop(),S=d[0]!=null&&wa(d[0]);this[zi]=!0,gv(this);var w=[f],T=!1;if(f.batch)T=!0,w=nt(f.batch,function(V){return V=Dt(et({},V),f),V.batch=null,V});var A=[],M,D=[],L=m.nonRefinedEventType,I=PS(f),E=TM(f);if(E)bM(this._api);if(P(w,function(V){var H=m.action(V,v,h._api);if(m.refineEvent)D.push(H);else M=H;if(M=M||et({},V),M.type=L,A.push(M),E){var K=zg(f),{queryOptionMap:F,mainTypeSpecified:G}=K,rt=G?F.keys()[0]:"series";y1(h,x,V,rt),Qo(h)}else if(I)y1(h,x,V,"series"),Qo(h);else if(S)y1(h,x,V,S.main,S.sub)}),x!=="none"&&!E&&!I&&!S)try{if(this[Ji])ph(this),Gu.update.call(this,f),this[Ji]=null;else Gu[x].call(this,f)}catch(V){throw this[zi]=!1,V}if(T)M={type:L,escapeConnect:y,batch:A};else M=A[0];if(this[zi]=!1,!p){var R=void 0;if(m.refineEvent){var B=m.refineEvent(D,f,v,this._api).eventContent;xe(Pt(B)),R=Dt({type:m.refinedEventType},B),R.fromAction=f.type,R.fromActionPayload=f,R.escapeConnect=!0}var z=this._messageCenter;if(z.trigger(M.type,M),R)z.trigger(R.type,R)}},vv=function(f){var p=this._pendingActions;while(p.length){var h=p.shift();uD.call(this,h,f)}},mv=function(f){!f&&this.trigger("updated")},v6=function(f,p){f.on("rendered",function(h){if(p.trigger("rendered",h),f.animation.isFinished()&&!p[Ji]&&!p._scheduler.unfinished&&!p._pendingActions.length)p.trigger("finished");else f.refresh()})},m6=function(f,p){f.on("mouseover",function(h){var v=h.target,g=Bs(v,Wc);if(g)R3(g,h,p._api),Qo(p)}).on("mouseout",function(h){var v=h.target,g=Bs(v,Wc);if(g)O3(g,h,p._api),Qo(p)}).on("click",function(h){var v=h.target,g=Bs(v,function(d){return Yt(d).dataIndex!=null},!0);if(g){var y=g.selected?"unselect":"select",m=Yt(g);p._api.dispatchAction({type:y,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(f){f.clearColorPalette(),f.eachSeries(function(p){p.clearColorPalette()})}function n(f){var p=[],h=[],v=!1;if(f.eachComponent(function(d,x){var S=x.get("zlevel")||0,w=x.get("z")||0,T=x.getZLevelKey();v=v||!!T,(d==="series"?h:p).push({zlevel:S,z:w,idx:x.componentIndex,type:d,key:T})}),v){var g=p.concat(h),y,m;fp(g,function(d,x){if(d.zlevel===x.zlevel)return d.z-x.z;return d.zlevel-x.zlevel}),P(g,function(d){var x=f.getComponent(d.type,d.idx),{zlevel:S,key:w}=d;if(y!=null)S=Math.max(y,S);if(w){if(S===y&&w!==m)S++;m=w}else if(m){if(S===y)S++;m=""}y=S,x.setZLevel(S)})}}cD=function(f,p,h,v,g){n(p),g6(f,p,h,v,g),P(f._chartsViews,function(y){y.__alive=!1}),x1(f,p,h,v,g),P(f._chartsViews,function(y){if(!y.__alive)y.remove(p,h)})},g6=function(f,p,h,v,g,y){P(y||f._componentsViews,function(m){var d=m.__model;u(d,m),m.render(d,p,h,v),l(d,m),c(d,m)})},x1=function(f,p,h,v,g,y){var m=f._scheduler;g=et(g||{},{updatedSeries:p.getSeries()}),lo.trigger("series:beforeupdate",p,h,g);var d=!1;p.eachSeries(function(x){var S=f._chartsMap[x.__viewId];S.__alive=!0;var w=S.renderTask;if(m.updatePayload(w,v),u(x,S),y&&y.get(x.uid))w.dirty();if(w.perform(m.getPerformArgs(w)))d=!0;S.group.silent=!!x.get("silent"),s(x,S),wM(x)}),m.unfinished=d||m.unfinished,lo.trigger("series:layoutlabels",p,h,g),lo.trigger("series:transition",p,h,g),p.eachSeries(function(x){var S=f._chartsMap[x.__viewId];l(x,S),c(x,S)}),o(f,p),lo.trigger("series:afterupdate",p,h,g)},Qo=function(f){f[aD]=!0,f.getZr().wakeUp()},gv=function(f){f[g1]=(f[g1]+1)%1e6},_6=function(f){if(!f[aD])return;f.getZr().storage.traverse(function(p){if(Mu(p))return;a(p)}),f[aD]=!1};function a(f){var p=[],h=f.currentStates;for(var v=0;v<h.length;v++){var g=h[v];if(!(g==="emphasis"||g==="blur"||g==="select"))p.push(g)}if(f.selected&&f.states.select)p.push("select");if(f.hoverState===Xg&&f.states.emphasis)p.push("emphasis");else if(f.hoverState===Up&&f.states.blur)p.push("blur");f.useStates(p)}function o(f,p){var h=f._zr;if(h.painter.type!=="canvas")return;var v=h.storage,g=0;v.traverse(function(m){if(!m.isGroup)g++});var y=g>St(p.get("hoverLayerThreshold"),Db.hoverLayerThreshold)&&!Te.node&&!Te.worker;if(f._usingTHL||y)p.eachSeries(function(m){if(m.preventUsingHoverLayer)return;var d=f._chartsMap[m.__viewId];if(d.__alive)d.eachRendered(function(x){var S=x.states.emphasis;if(S&&S.hoverLayer!==Rs)S.hoverLayer=y?YM:WM})}),f._usingTHL=y}function s(f,p){var h=f.get("blendMode")||null;p.eachRendered(function(v){if(!v.isGroup)v.style.blend=h})}function l(f,p){if(f.preventAutoZ)return;var h=Ko(f);p.eachRendered(function(v){return Xp(v,h.z,h.zlevel),!0})}function u(f,p){p.eachRendered(function(h){if(Mu(h))return;var v=h.getTextContent(),g=h.getTextGuideLine();if(h.stateTransition)h.stateTransition=null;if(v&&v.stateTransition)v.stateTransition=null;if(g&&g.stateTransition)g.stateTransition=null;if(h.hasState())h.prevStates=h.currentStates,h.clearStates();else if(h.prevStates)h.prevStates=null})}function c(f,p){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=h.get("duration"),y=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Mu(m))return;if(m instanceof $t)U3(m);if(m.__dirty){var d=m.prevStates;if(d)m.useStates(d)}if(v){m.stateTransition=y;var x=m.getTextContent(),S=m.getTextGuideLine();if(x)x.stateTransition=y;if(S)S.stateTransition=y}if(m.__dirty)a(m)}})}y6=function(f){return new(function(p){W(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){while(v){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},h.prototype.enterEmphasis=function(v,g){An(v,g),Qo(f)},h.prototype.leaveEmphasis=function(v,g){Cn(v,g),Qo(f)},h.prototype.enterBlur=function(v){LS(v),Qo(f)},h.prototype.leaveBlur=function(v){$g(v),Qo(f)},h.prototype.enterSelect=function(v){xM(v),Qo(f)},h.prototype.leaveSelect=function(v){SM(v),Qo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return f[g1]},h.prototype.usingTHL=function(){return f._usingTHL},h}(TS))(f)},I6=function(f){function p(h,v){for(var g=0;g<h.length;g++){var y=h[g];y[oD]=v}}P(fD,function(h,v){f._messageCenter.on(v,function(g){if(x6[f.group]&&f[oD]!==d6){if(g&&g.escapeConnect)return;var y=f.makeActionFromEvent(g),m=[];P(Iy,function(d){if(d!==f&&d.group===f.group)m.push(d)}),p(m,d6),P(m,function(d){if(d[oD]!==dyt)d.dispatchAction(y)}),p(m,vyt)}})})}}(),e}(Ai),gD=P6.prototype;gD.on=C6("on");gD.off=C6("off");gD.one=function(r,e,t){var i=this;fF("ECharts#one is deprecated.");function n(){var a=[];for(var o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(r,n)}this.on.call(this,r,n,t)};myt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];S1={},fD={},pD={},hD=[],dD=[],b1=[],R6={},vD={},Iy={},x6={},gyt=+new Date-0,FVt=+new Date-0;S6=[];F6=YH;tf(mD,h4);tf(w1,d4);tf(w1,v4);tf(mD,D4);tf(w1,I4);tf(T6,c6);_D(Nb);xD(ayt,PH);bD("default",JL);$n({type:Hc,event:Hc,update:Hc},ar);$n({type:Kg,event:Kg,update:Kg},ar);$n({type:qg,event:ES,update:qg,action:ar,refineEvent:wD,publishNonRefinedEvent:!0});$n({type:CS,event:ES,update:CS,action:ar,refineEvent:wD,publishNonRefinedEvent:!0});$n({type:Jg,event:ES,update:Jg,action:ar,refineEvent:wD,publishNonRefinedEvent:!0});k6("default",{});k6("dark",A4)});function he(r){if(it(r)){P(r,function(e){he(e)});return}if(Xt(G6,r)>=0)return;if(G6.push(r),Mt(r))r={install:r};r.install(_yt)}var G6,_yt;var On=k(()=>{hh();jr();Xr();Nr();Zr();Z();eD();aS();rD();G6=[],_yt={registerPreprocessor:_D,registerProcessor:xD,registerPostInit:N6,registerPostUpdate:z6,registerUpdateLifecycle:T1,registerAction:$n,registerCoordinateSystem:B6,registerLayout:U6,registerVisual:tf,registerTransform:F6,registerLoading:bD,registerMap:V6,registerImpl:N4,PRIORITY:A6,ComponentModel:de,ComponentView:Re,SeriesModel:Pe,ChartView:Ce,registerComponentModel:function(r){de.registerClass(r)},registerComponentView:function(r){Re.registerClass(r)},registerSeriesModel:function(r){Pe.registerClass(r)},registerChartView:function(r){Ce.registerClass(r)},registerCustomSeries:function(r,e){U4(r,e)},registerSubTypeDefaulter:function(r,e){de.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Q5(r,e)}}});function Py(r){return r==null?0:r.length||1}function H6(r){return r}var xyt,dn;var Hu=k(()=>{xyt=function(){function r(e,t,i,n,a,o){this._old=e,this._new=t,this._oldKeyGetter=i||H6,this._newKeyGetter=n||H6,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},n=Array(e.length),a=Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,i,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=Py(l);if(u>1){var c=l.shift();if(l.length===1)i[s]=l[0];this._update&&this._update(c,o)}else if(u===1)i[s]=null,this._update&&this._update(l,o);else this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],c=n[l],f=Py(u),p=Py(c);if(f>1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),n[l]=null;else if(f===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),n[l]=null;else if(f===1&&p===1)this._update&&this._update(c,u),n[l]=null;else if(f>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),n[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var n=e[i],a=t[n],o=Py(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else if(o===1)this._add&&this._add(a);t[n]=null}},r.prototype._initIndexMap=function(e,t,i,n){var a=this._diffModeMultiple;for(var o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(!a)i[o]=s;if(!t)continue;var l=t[s],u=Py(l);if(u===0){if(t[s]=o,a)i.push(s)}else if(u===1)t[s]=[l,o];else l.push(o)}},r}(),dn=xyt});function W6(r,e){var t={},i=t.encode={},n=gt(),a=[],o=[],s={};P(r.dimensions,function(p){var h=r.getDimensionInfo(p),v=h.coordDim;if(v){var g=h.coordDimIndex;if(TD(i,v)[g]=p,!h.isExtraCoord){if(n.set(v,1),byt(h.type))a[0]=p;TD(s,v)[g]=r.getDimensionIndex(h.name)}if(h.defaultTooltip)o.push(p)}bS.each(function(y,m){var d=TD(i,m),x=h.otherDims[m];if(x!=null&&x!==!1)d[x]=h.name})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=nt(l,function(p){return r.getDimensionInfo(p).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=i.label;if(c&&c.length)a=c.slice();var f=i.tooltip;if(f&&f.length)o=f.slice();else if(!o.length)o=a.slice();return i.defaultedLabel=a,i.defaultedTooltip=o,t.userOutput=new Syt(s,e),t}function TD(r,e){if(!r.hasOwnProperty(e))r[e]=[];return r[e]}function dh(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function byt(r){return!(r==="ordinal"||r==="time")}var Syt;var Ry=k(()=>{Z();gi();Syt=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){if(!this._cachedDimNames)this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[];return this._cachedDimNames},r}()});var wyt,yv;var AD=k(()=>{Z();wyt=function(){function r(e){if(this.otherDims={},e!=null)et(this,e)}return r}(),yv=wyt});function C1(r){return r instanceof CD}function Oy(r){var e=gt();for(var t=0;t<(r||[]).length;t++){var i=r[t],n=Pt(i)?i.name:i;if(n!=null&&e.get(n)==null)e.set(n,t)}return e}function ED(r){var e=Tyt(r);return e.dimNameMap||(e.dimNameMap=Oy(r.dimensionsDefine))}function MD(r){return r>30}var Tyt,Ayt,CD;var ky=k(()=>{Z();yt();Bu();Tyt=Ft(),Ayt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},CD=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){if(this._dimOmitted=e,!e)return;if(!this._dimNameMap)this._dimNameMap=ED(this.source)},r.prototype.getSourceDimensionIndex=function(e){return St(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){var e=this._fullDimCount,t=Bb(this.source),i=!MD(e),n="",a=[];for(var o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=t?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var p=this.getSourceDimension(o);if(p)l=t?p.name:null,u=p.type}if(a.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!f||!f.isCalculationCoord))n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l;if(n+="$",n+=Ayt[u]||"f",c)n+=c.uid;n+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:a,hash:v}},r.prototype.makeOutputDimensionNames=function(){var e=[];for(var t=0,i=0;t<this._fullDimCount;t++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===t){if(!a.isCalculationCoord)n=a.name;i++}else{var o=this.getSourceDimension(t);if(o)n=o.name}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}()});var Ny,ef,Cyt,Eyt="e\x00\x00",Y6=-1,Myt,Lyt,Z6,E1,zy,By,LD,Uy,DD,Dyt,Kr;var ts=k(()=>{Z();ti();Hu();sh();Ry();AD();gi();yt();lr();Bu();jb();ky();Ny=Pt,ef=nt,Cyt=typeof Int32Array>"u"?Array:Int32Array,Myt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Lyt=["_approximateExtent"],Dyt=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;if(C1(e))i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e;else n=!0,i=e;i=i||["x","y"];var a={},o=[],s={},l=!1,u={};for(var c=0;c<i.length;c++){var f=i[c],p=ht(f)?new yv({name:f}):!(f instanceof yv)?new yv(f):f,h=p.name;if(p.type=p.type||"float",!p.coordDim)p.coordDim=h,p.coordDimIndex=0;var v=p.otherDims=p.otherDims||{};if(o.push(h),a[h]=p,u[h]!=null)l=!0;if(p.createInvertedIndices)s[h]=[];if(n)p.storeDimIndex=c;if(v.itemName===0)this._nameDimIdx=p.storeDimIndex;if(v.itemId===0)this._idDimIdx=p.storeDimIndex}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=gt();P(o,function(y){g.set(a[y].storeDimIndex,y)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(ue(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var n=this,a;if(e instanceof Sy)a=e;if(!a){var o=this.dimensions,s=cv(e)||ii(e)?new Vb(e,o.length):e;a=new Sy;var l=ef(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=W6(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),{start:n,end:a}=i,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<a;s++){var l=s-n;if(this._nameList[s]=t[l],o)DD(this,s)}},r.prototype._updateOrdinalMeta=function(){var e=this._store,t=this.dimensions;for(var i=0;i<t.length;i++){var n=this._dimInfos[t[i]];if(n.ordinalMeta)e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==oo&&!e.fillStorage},r.prototype._doInit=function(e,t){if(e>=t)return;var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Gi;if(l&&!n.pure){var u=[];for(var c=e;c<t;c++){var f=n.getItem(c,u);if(!this.hasItemOption&&vF(f))this.hasItemOption=!0;if(f){var p=f.name;if(a[c]==null&&p!=null)a[c]=Rr(p,null);var h=f.id;if(o[c]==null&&h!=null)o[c]=Rr(h,null)}}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)DD(this,c);Z6(this)},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Ny(e)?et(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];if(i==null&&this._nameDimIdx!=null)i=zy(this,this._nameDimIdx,t);if(i==null)i="";return i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),n=this._store.getOrdinalMeta(e);if(n)return n.categories[i];return i},r.prototype.getId=function(e){return E1(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,n=this._store;return it(e)?n.getValues(ef(e,function(a){return i._getStoreDimIndex(a)}),t):n.getValues(e)},r.prototype.hasValue=function(e){var t=this._dimSummary.dataDimIndicesOnCoord;for(var i=0,n=t.length;i<n;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i&&i[t];if(n==null||isNaN(n))return Y6;return n},r.prototype.each=function(e,t,i){if(Mt(e))i=t,t=e,e=[];var n=i||this,a=ef(By(e),this._getStoreDimIndex,this);this._store.each(a,n?xt(t,n):t)},r.prototype.filterSelf=function(e,t,i){if(Mt(e))i=t,t=e,e=[];var n=i||this,a=ef(By(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?xt(t,n):t),this},r.prototype.selectRange=function(e){var t=this,i={},n=le(e),a=[];return P(n,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){if(Mt(e))i=t,t=e,e=[];i=i||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},i),n},r.prototype.map=function(e,t,i,n){var a=i||n||this,o=ef(By(e),this._getStoreDimIndex,this),s=Uy(this);return s._store=this._store.map(o,a?xt(t,a):t),s},r.prototype.modify=function(e,t,i,n){var a=this,o=i||n||this,s=ef(By(e),this._getStoreDimIndex,this);this._store.modify(s,o?xt(t,o):t)},r.prototype.downSample=function(e,t,i,n){var a=Uy(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,i,n),a},r.prototype.minmaxDownSample=function(e,t){var i=Uy(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},r.prototype.lttbDownSample=function(e,t){var i=Uy(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new ye(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new dn(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return E1(e,i)},function(i){return E1(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){if(this._visual=this._visual||{},Ny(e))et(this._visual,e);else this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],n=i&&i[t];if(n==null)return this.getVisual(t);return n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,n=i[e];if(!n)n=i[e]={};var a=n[t];if(a==null){if(a=this.getVisual(t),it(a))a=a.slice();else if(Ny(a))a=et({},a);n[t]=a}return a},r.prototype.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{};if(this._itemVisuals[e]=n,Ny(t))et(n,t);else n[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Ny(e)?et(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?et(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;Zg(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){P(this._graphicEls,function(i,n){if(i)e&&e.call(t,i,n)})},r.prototype.cloneShallow=function(e){if(!e)e=new r(this._schema?this._schema:ef(this.dimensions,this._getDimInfo,this),this.hostModel);return LD(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];if(!Mt(i))return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return t.apply(this,[n].concat(hx(arguments)))}},r.internalField=function(){Z6=function(e){var t=e._invertedIndicesMap;P(t,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=t[n]=new Cyt(o.categories.length);for(var l=0;l<i.length;l++)i[l]=Y6;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},zy=function(e,t,i){return Rr(e._getCategory(t,i),null)},E1=function(e,t){var i=e._idList[t];if(i==null&&e._idDimIdx!=null)i=zy(e,e._idDimIdx,t);if(i==null)i=Eyt+t;return i},By=function(e){if(!it(e))e=e!=null?[e]:[];return e},Uy=function(e){var t=new r(e._schema?e._schema:ef(e.dimensions,e._getDimInfo,e),e.hostModel);return LD(t,e),t},LD=function(e,t){P(Myt.concat(t.__wrappedMethods||[]),function(i){if(t.hasOwnProperty(i))e[i]=t[i]}),e.__wrappedMethods=t.__wrappedMethods,P(Lyt,function(i){e[i]=It(t[i])}),e._calculationInfo=et({},t._calculationInfo)},DD=function(e,t){var{_nameList:i,_idList:n,_nameDimIdx:a,_idDimIdx:o}=e,s=i[t],l=n[t];if(s==null&&a!=null)i[t]=s=zy(e,a,t);if(l==null&&o!=null)n[t]=l=zy(e,o,t);if(l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;if(l=s,c>1)l+="__ec__"+c;n[t]=l}}}(),r}(),Kr=Dyt});function Fs(r,e){if(!cv(r))r=fv(r);e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],n=gt(),a=[],o=Iyt(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&MD(o),l=i===r.dimensionsDefine,u=l?ED(r):Oy(i),c=e.encodeDefine;if(!c&&e.encodeDefaulter)c=e.encodeDefaulter(r,o);var f=gt(c),p=new FL(o);for(var h=0;h<p.length;h++)p[h]=-1;function v(D){var L=p[D];if(L<0){var I=i[D],E=Pt(I)?I:{name:I},R=new yv,B=E.name;if(B!=null&&u.get(B)!=null)R.name=R.displayName=B;E.type!=null&&(R.type=E.type),E.displayName!=null&&(R.displayName=E.displayName);var z=a.length;return p[D]=z,R.storeDimIndex=D,a.push(R),R}return a[L]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(D,L){var I=Ve(D).slice();if(I.length===1&&!ht(I[0])&&I[0]<0){f.set(L,!1);return}var E=f.set(L,[]);P(I,function(R,B){var z=ht(R)?u.get(R):R;if(z!=null&&z<o)E[B]=z,y(v(z),L,B)})});var g=0;P(t,function(D){var L,I,E,R;if(ht(D))L=D,R={};else{R=D,L=R.name;var B=R.ordinalMeta;R.ordinalMeta=null,R=et({},R),R.ordinalMeta=B,I=R.dimsDef,E=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var z=f.get(L);if(z===!1)return;if(z=Ve(z),!z.length)for(var V=0;V<(I&&I.length||1);V++){while(g<o&&v(g).coordDim!=null)g++;g<o&&z.push(g++)}P(z,function(H,K){var F=v(H);if(l&&R.type!=null)F.type=R.type;if(y(Dt(F,R),L,K),F.name==null&&I){var G=I[K];!Pt(G)&&(G={name:G}),F.name=F.displayName=G.name,F.defaultTooltip=G.defaultTooltip}E&&Dt(F.otherDims,E)})});function y(D,L,I){if(bS.get(L)!=null)D.otherDims[L]=I;else D.coordDim=L,D.coordDimIndex=I,n.set(L,!0)}var m=e.generateCoord,d=e.generateCoordCount,x=d!=null;d=m?d||1:0;var S=m||"value";function w(D){if(D.name==null)D.name=D.coordDim}if(!s)for(var T=0;T<o;T++){var A=v(T),M=A.coordDim;if(M==null){if(A.coordDim=Pyt(S,n,x),A.coordDimIndex=0,!m||d<=0)A.isExtraCoord=!0;d--}if(w(A),A.type==null&&(Rb(r,T)===Hi.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null)))A.type="ordinal"}else P(a,function(D){w(D)}),a.sort(function(D,L){return D.storeDimIndex-L.storeDimIndex});return Nc(a,function(D){return D.name},function(D,L){if(L>0)D.name=D.name+(L-1)}),new CD({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Iyt(r,e,t,i){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return P(e,function(a){var o;if(Pt(a)&&(o=a.dimsDef))n=Math.max(n,o.length)}),n}function Pyt(r,e,t){if(t||e.hasKey(r)){var i=0;while(e.hasKey(r+i))i++;r+=i}return e.set(r,!0),r}var _v=k(()=>{gi();AD();Z();Bu();jb();yt();Ol();ky()});function j6(r){var e=r.get("coordinateSystem"),t=new Ryt(e),i=Oyt[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}function xv(r){return r.get("type")==="category"}var Ryt,Oyt;var X6=k(()=>{Z();yt();Ryt=function(){function r(e){this.coordSysDims=[],this.axisMap=gt(),this.categoryAxisMap=gt(),this.coordSysName=e}return r}();Oyt={cartesian2d:function(r,e,t,i){var n=r.getReferringComponents("xAxis",Xe).models[0],a=r.getReferringComponents("yAxis",Xe).models[0];if(e.coordSysDims=["x","y"],t.set("x",n),t.set("y",a),xv(n))i.set("x",n),e.firstCategoryDimIndex=0;if(xv(a))i.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1)},singleAxis:function(r,e,t,i){var n=r.getReferringComponents("singleAxis",Xe).models[0];if(e.coordSysDims=["single"],t.set("single",n),xv(n))i.set("single",n),e.firstCategoryDimIndex=0},polar:function(r,e,t,i){var n=r.getReferringComponents("polar",Xe).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");if(e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),xv(a))i.set("radius",a),e.firstCategoryDimIndex=0;if(xv(o))i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1)},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();P(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),c=o[l];if(t.set(c,u),xv(u)){if(i.set(c,u),e.firstCategoryDimIndex==null)e.firstCategoryDimIndex=l}})},matrix:function(r,e,t,i){var n=r.getReferringComponents("matrix",Xe).models[0];e.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",a),t.set("y",o),i.set("x",a),i.set("y",o)}}});function K6(r,e,t){t=t||{};var i=t.byIndex,n=t.stackedCoordDimension,a,o,s;if(kyt(e))a=e;else o=e.schema,a=o.dimensions,s=e.store;var l=!!(r&&r.get("stack")),u,c,f,p,h=!0;function v(S){return S.type!=="ordinal"&&S.type!=="time"}if(P(a,function(S,w){if(ht(S))a[w]=S={name:S};if(!v(S))h=!1}),P(a,function(S,w){if(l&&!S.isExtraCoord){if(!i&&!u&&S.ordinalMeta)u=S;if(!c&&v(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!n||n===S.coordDim))c=S}}),c&&!i&&!u)i=!0;if(c){if(f="__\x00ecstackresult_"+r.id,p="__\x00ecstackedover_"+r.id,u)u.createInvertedIndices=!0;var g=c.coordDim,y=c.type,m=0;P(a,function(S){if(S.coordDim===g)m++});var d={name:f,coordDim:g,coordDimIndex:m,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:p,coordDim:p,coordDimIndex:m+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};if(o){if(s)d.storeDimIndex=s.ensureCalculationDimension(p,y),x.storeDimIndex=s.ensureCalculationDimension(f,y);o.appendCalculationDimension(d),o.appendCalculationDimension(x)}else a.push(d),a.push(x)}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:f}}function kyt(r){return!C1(r.schema)}function co(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function M1(r,e){return co(r,e)?r.getCalculationInfo("stackResultDimension"):e}var Wu=k(()=>{Z();ky()});function Nyt(r,e){var t=r.get("coordinateSystem"),i=ku.get(t),n;if(e&&e.coordSysDims)n=nt(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=dh(l)}return o});if(!n)n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"];return n}function zyt(r,e,t){var i,n;if(t&&P(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);if(l){if(i==null)i=o;if(a.ordinalMeta=l.getOrdinalMeta(),e)a.createInvertedIndices=!0}if(a.otherDims.itemName!=null)n=!0}),!n&&i!=null)r[i].otherDims.itemName=0;return i}function Byt(r,e,t){t=t||{};var i=e.getSourceManager(),n,a=!1;if(r)a=!0,n=fv(r);else n=i.getSource(),a=n.sourceFormat===Gi;var o=j6(e),s=Nyt(e,o),l=t.useEncodeDefaulter,u=Mt(l)?l:l?ne(Ib,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Fs(n,c),p=zyt(f.dimensions,t.createInvertedIndices,o),h=!a?i.getSharedDataStore(f):null,v=K6(e,{schema:f,store:h}),g=new Kr(f,e);g.setCalculationInfo(v);var y=p!=null&&Uyt(n)?function(m,d,x,S){return S===p?x:this.defaultDimValueGetter(m,d,x,S)}:null;return g.hasItemOption=!1,g.initData(a?n:h,null,y),g}function Uyt(r){if(r.sourceFormat===Gi){var e=Vyt(r.data||[]);return!it(Ms(e))}}function Vyt(r){var e=0;while(e<r.length&&r[e]==null)e++;return r[e]}var $i;var Nl=k(()=>{Z();ts();_v();Ry();yt();Pa();X6();Bu();Wu();Ol();gi();$i=Byt});var q6,Qn;var Sv=k(()=>{Sl();q6=function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();zc(q6);Qn=q6});function Hyt(r){if(Pt(r)&&r.value!=null)return r.value;else return r+""}var Fyt=0,Gyt,rf;var L1=k(()=>{Z();Gyt=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Fyt,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&nt(i,Hyt);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!ht(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();if(t=n.get(e),t==null)if(i)t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t);else t=NaN;return t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=gt(this.categories))},r}();rf=Gyt});function wv(r,e,t){var i;r=r||{};var n=wr();if(n){var a=n.createBreakScaleMapper(e,t);if(a.hasBreaks())P($6,function(o){if(a[o])r[o]=xt(a[o],a)}),i=a}if(i==null)D1(r,t);return{brk:i,mapper:r}}function Tv(r,e){P($6,function(t){r[t]=e[t]})}function Av(r,e){r.freeze=ar}function Yu(r){return r.getExtentUnsafe(vn,es)}function vh(r,e){return r.getExtentUnsafe(bv,e)||r.getExtentUnsafe(vn,e)}function t8(r){var e=vh(r,Q6);return e[1]-e[0]}function Cv(r){var e=r.getExtentUnsafe(vn,Q6);return e[1]-e[0]}function D1(r,e){var t=r||{},i=[];return t._extents=i,i[vn]=e?e.slice():$r(),et(t,Yyt),t}function J6(r,e,t,i){if(Ds(t,i))r[e][0]=t,r[e][1]=i}var vn=0,bv=1,Wyt,$6,es=2,Q6=3,Yyt;var rs=k(()=>{Z();yt();Wyt={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},$6=le(Wyt);Yyt={needTransform:function(){return!1},normalize:function(r){var e=this._extents[bv]||this._extents[vn];if(e[1]===e[0])return 0.5;return(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[bv]||this._extents[vn];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=vh(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[vn].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){J6(this._extents,vn,r,e)},setExtent2:function(r,e,t){var i=this._extents;if(!i[r])i[r]=i[vn].slice();J6(i,r,e,t)},freeze:function(){}}});function I1(r){return Ev(r)||Bl(r)}function Ev(r){return r.type==="interval"}function zl(r){return r.type==="time"}function Bl(r){return r.type==="log"}function Ur(r){return r.type==="ordinal"}function e8(r){var e=sS(r),t=Oc(10,e),i=Sa(r/t);if(!i)i=1;else if(i===2)i=3;else if(i===3)i=5;else i*=2;return Me(i*t,-e)}function Gs(r){return ro(r)+2}function Vy(r,e){return Pd(r)/Pd(e)}function P1(r,e,t){var i=t&&t.lookup;if(i){for(var n=0;n<i.from.length;n++)if(r===i.from[n])return i.to[n]}return Oc(e,r)}function R1(r,e,t){var i=r.slice();if(i[0]===i[1]){var n=t&&t.ctnShp;if(i[0]!==0){var a=yr(i[0]);if(!e[1])i[1]+=a/2,i[0]-=a/2;else i[0]-=a/2}else if(n)i[0]=-1,i[1]=1;else i[1]=1}if(!Es(i[0])||!Es(i[1]))i[0]=0,i[1]=1;if(i[1]<i[0])i.reverse();return i}function r8(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function mh(r,e){return r=r||e,Sa(ce(r,1))}function O1(r,e,t){var i=Yu(r),n=i[0],a=r.count(),o=Math.max((e||0)+1,1);if(n!==0&&o>1&&a/o>2)n=Math.round(Math.ceil(n/o)*o);if(n!==i[0])l(i[0],!0,!0);var s=n;for(;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);if(s-o!==i[1])l(i[1],!0,!0);function l(u,c,f){t({value:u,offInterval:c},f)}}var _i=k(()=>{te();yt();rs()});var i8,gh;var k1=k(()=>{dt();Sv();L1();Z();te();rs();_i();i8=function(r){W(e,r);function e(t){var i=r.call(this)||this;i.type="ordinal",i.parse=e.parse,Tv(i,e.decoratedMethods);var n=t.ordinalMeta;if(!n)n=new rf({});if(it(n))n=new rf({categories:nt(n,function(o){return Pt(o)?o.value:o})});i._ordinalMeta=n;var a=wv(null,null,t.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,Av(i,a.mapper),i}return e.parse=function(t){if(t==null)t=NaN;else if(ht(t)){if(t=this._ordinalMeta.getOrdinal(t),t==null)t=NaN}else t=Sa(t);return t},e.prototype.getTicks=function(){var t=[];return O1(this,0,function(i){t.push(i)}),t},e.prototype.getMinorTicks=function(t){return},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}var i=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length;for(var l=ke(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}var c=0;for(;o<s;++o){while(a[c]!=null)c++;n[o]=c,a[c]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},e.prototype.count=function(){var t=Yu(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Sa(this._mapper.scale(t)))},transformIn:function(t,i){return this._mapper.transformIn(this._getTickNumber(t),i)},transformOut:function(t,i){return this.getRawOrdinalNumber(this._mapper.transformOut(t,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,i){return this._mapper.getExtentUnsafe(t,i)},setExtent:function(t,i){return this._mapper.setExtent(t,i)},setExtent2:function(t,i,n){return this._mapper.setExtent2(t,i,n)}},e}(Qn);Qn.registerClass(i8);gh=i8});function Mv(r,e,t,i){var n=r.getTicks({expandToNicedExtent:!0}),a=[],o=r.getExtent();for(var s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(u.break||l.break)continue;var c=0,f=[],p=l.value-u.value,h=p/e,v=Gs(h);while(c<e-1){var g=Me(u.value+(c+1)*h,v);if(g>o[0]&&g<o[1])f.push(g);c++}var y=wr();y&&y.pruneTicksByBreak("auto",f,t,function(m){return m},i,o),a.push(f)}return a}var N1=k(()=>{te();_i()});var n8,Ul;var z1=k(()=>{dt();te();pn();Sv();_i();Z();N1();rs();n8=function(r){W(e,r);function e(t){var i=r.call(this)||this;i.type="interval",i.parse=e.parse,t=t||{};var n=nb(i,t),a=wv(i,n,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return It(this._cfg)},e.prototype.setConfig=function(t){var i=Yu(this);if(this._cfg=t=It(t),t.niceExtent==null)t.niceExtent=i.slice();if(t.intervalPrecision==null)t.intervalPrecision=Gs(t.interval)},e.prototype.getTicks=function(t){t=t||{};var i=this._cfg,n=i.interval,a=Yu(this),{niceExtent:o,intervalPrecision:s}=i,l=wr(),u=this.brk,c=l&&u,f=[];if(!n)return f;if(t.breakTicks==="only_break"&&c)return l.addBreaksToTicks(f,u.breaks,a),f;var p=3000;if(a[0]<o[0])f.push({value:t.expandToNicedExtent?Me(o[0]-n,s):a[0]});var h=function(x,S){return Sa((S-x)/n)},v=i.intervalCount;for(var g=o[0],y=0;;y++){if(v==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(y>v)break;if(g=ke(g,o[1]),y===v)g=o[1]}if(f.push({value:g}),g=Me(g+n,s),u){var m=u.calcNiceTickMultiple(g,h);if(m>=0)g=Me(g+m*n,s)}if(f.length>0&&g===f[f.length-1].value)break;if(f.length>p)return[]}var d=f.length?f[f.length-1].value:o[1];if(a[1]>d)f.push({value:t.expandToNicedExtent?Me(d+n,s):a[1]});if(c)l.pruneTicksByBreak(t.pruneByBreak,f,u.breaks,function(x){return x.value},i.interval,a);if(c&&t.breakTicks!=="none")l.addBreaksToTicks(f,u.breaks,a);return f},e.prototype.getMinorTicks=function(t){return Mv(this,t,Jp(this),this._cfg.interval)},e.prototype.getLabel=function(t,i){if(t==null)return"";var n=i&&i.precision;if(n==null)n=ro(t.value)||0;else if(n==="auto")n=this._cfg.intervalPrecision;var a=Me(t.value,n,!0);return mL(a)},e.type="interval",e}(Qn);Qn.registerClass(n8);Ul=n8});function s8(r,e,t,i){return ub(new Date(e),r,i).getTime()===ub(new Date(t),r,i).getTime()}function jyt(r,e){return r/=so,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Xyt(r){var e=30*so;return r/=e,r>6?6:r>3?3:r>2?2:1}function Kyt(r){return r/=nv,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function a8(r,e){return r/=e?lb:sb,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function qyt(r){return ce(Ap(r,!0),1)}function Jyt(r,e,t){var i=Math.max(0,Xt(Ia,e)-1);return ub(new Date(r),Ia[i],t).getTime()}function $yt(r,e){var t=new Date(0);t[r](1);var i=t.getTime();t[r](1+e);var n=t.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function Qyt(r,e,t,i,n,a){var o=3000,s=KG,l=0;function u(V,H,K,F,G,rt,ot){var at=$yt(G,V),mt=H,Tt=new Date(mt);while(mt<K&&mt<=i[1]){if(ot.push({value:mt}),l++>o)break;if(Tt[G](Tt[F]()+V),mt=Tt.getTime(),a){var Ut=a.calcNiceTickMultiple(mt,at);if(Ut>0)Tt[G](Tt[F]()+Ut*V),mt=Tt.getTime()}}ot.push({value:mt,notAdd:mt>i[1]})}function c(V,H,K){var F=[],G=!H.length;if(s8(av(V),i[0],i[1],t))return;if(G)H=[{value:Jyt(i[0],V,t)},{value:i[1]}];for(var rt=0;rt<H.length-1;rt++){var ot=H[rt].value,at=H[rt+1].value;if(ot===at)continue;var mt=void 0,Tt=void 0,Ut=void 0,qt=!1;switch(V){case"year":mt=Math.max(1,Math.round(e/so/365)),Tt=lL(t),Ut=tH(t);break;case"half-year":case"quarter":case"month":mt=Xyt(e),Tt=cb(t),Ut=uL(t);break;case"week":case"half-week":case"day":mt=jyt(e,31),Tt=fb(t),Ut=cL(t),qt=!0;break;case"half-day":case"quarter-day":case"hour":mt=Kyt(e),Tt=pb(t),Ut=fL(t);break;case"minute":mt=a8(e,!0),Tt=hb(t),Ut=pL(t);break;case"second":mt=a8(e,!1),Tt=db(t),Ut=hL(t);break;case"millisecond":mt=qyt(e),Tt=vb(t),Ut=dL(t);break}if(at>=i[0]&&ot<=i[1])u(mt,ot,at,Tt,Ut,qt,F);if(V==="year"&&K.length>1&&rt===0)K.unshift({value:K[0].value-mt})}for(var rt=0;rt<F.length;rt++)K.push(F[rt])}var f=[],p=[],h=0,v=0;for(var g=0;g<s.length;++g){var y=av(s[g]);if(!JG(s[g]))continue;c(s[g],f[f.length-1]||[],p);var m=s[g+1]?av(s[g+1]):null;if(y!==m){if(p.length){v=h,p.sort(function(V,H){return V.value-H.value});var d=[];for(var x=0;x<p.length;++x){var S=p[x].value;if(x===0||p[x-1].value!==S){if(d.push(p[x]),S>=i[0]&&S<=i[1])h++}}var w=n/e;if(h>w*1.5&&v>w/1.5)break;if(f.push(d),h>w||r===s[g])break}p=[]}}var T=be(nt(f,function(V){return be(V,function(H){return H.value>=i[0]&&H.value<=i[1]&&!H.notAdd})}),function(V){return V.length>0}),A=T.length-1,M=[];for(var g=0;g<T.length;++g){var D=T[g];for(var L=0;L<D.length;++L){var I=Qp(D[L].value,t);M.push({value:D[L].value,time:{level:A-g,upperTimeUnit:I,lowerTimeUnit:I}})}}Nc(M,AF,null),M.sort(function(V,H){return V.value-H.value});var E=M[0],R=M[M.length-1],B=Qp(i[0],t),z=Qp(i[1],t);if(!E||E.value>i[0])M.unshift({value:i[0],time:{level:0,upperTimeUnit:B,lowerTimeUnit:B},notNice:!0});if(!R||R.value<i[1])M.push({value:i[1],time:{level:0,upperTimeUnit:z,lowerTimeUnit:z},notNice:!0});return M}var Zyt=function(r,e,t,i){while(t<i){var n=t+i>>>1;if(r[n][1]<e)t=n+1;else i=n}return t},o8,B1,l8=function(r,e){var t=r.getExtent();if(t[0]===t[1])t[0]-=so,t[1]+=so;if(t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-so}r.setExtent(t[0],t[1]);var n=mh(e.splitNumber,10),a=Cv(r)/n,{minInterval:o,maxInterval:s}=e;if(o!=null&&a<o)a=o;if(s!=null&&a>s)a=s;var l=B1.length,u=Math.min(Zyt(B1,a,0,l),l-1),c=B1[u][1],f=B1[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:a,interval:c,minLevelUnit:f})},u8;var ID=k(()=>{dt();te();cy();_i();Sv();Z();N1();rs();yt();o8=function(r){W(e,r);function e(t){var i=r.call(this)||this;i.type="time",i.parse=e.parse,i._locale=t.locale,i._useUTC=t.useUTC,i._interval=0;var n=nb(i,t),a=wv(i,n,null);return i.brk=a.brk,i}return e.prototype.getLabel=function(t){return $p(t.value,sL[$G(av(this._minLevelUnit))]||sL.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,i,n){return QG(t,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var i=this._interval,n=Yu(this),a=wr(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return wr().addBreaksToTicks(l,o.breaks,n),l;l=Qyt(this._minLevelUnit,this._approxInterval,u,n,Cv(this),o);var c=Ia.length-1,f=0;if(P(l,function(p){if(p.time)c=Math.min(c,Xt(Ia,p.time.upperTimeUnit)),f=Math.max(f,p.time.level)}),s)wr().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n);if(s&&t.breakTicks!=="none")wr().addBreaksToTicks(l,o.breaks,n,function(p){var h=Math.max(Xt(Ia,Qp(p.vmin,u)),Xt(Ia,Qp(p.vmax,u))),v=0;for(var g=0;g<Ia.length;g++)if(!s8(Ia[g],p.vmin,p.vmax,u)){v=g;break}var y=Math.min(v,c),m=Math.max(y,h);return{level:f,lowerTimeUnit:Ia[m],upperTimeUnit:Ia[y]}});return l},e.prototype.getMinorTicks=function(t){return Mv(this,t,Jp(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return ue(t)?Math.round(t):+Bo(t)},e.type="time",e}(Qn),B1=[["second",sb],["minute",lb],["hour",nv],["quarter-day",nv*6],["half-day",nv*12],["day",so*1.2],["half-week",so*3.5],["week",so*7],["month",so*31],["quarter",so*95],["half-year",oL/2],["year",oL]];Qn.registerClass(o8);u8=o8});var U1=0,V1=1,t0t=2,h8,c8,f8,p8,d8;var v8=k(()=>{dt();Sv();z1();_i();N1();rs();Z();yt();te();h8=function(r){W(e,r);function e(t){var i=r.call(this)||this;i.type="log",i.parse=Ul.parse,i.base=t.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[U1]=n[V1]=a[U1]=a[V1]=NaN,Tv(i,e.mapperMethods);var s=wr(),l=t.breakOption,u={lookup:o};if(s)s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},t0t,u);return i.powStub=new Ul({breakParsed:u.original}),i.intervalStub=new Ul({breakParsed:u.transformed}),Av(i,i.intervalStub),i}return e.prototype.getTicks=function(t){var i=this.base,n=this.powStub,a=wr(),o=this.intervalStub,s=o.getExtent(),l=n.getExtent(),u={lookup:{from:s,to:l}};return nt(o.getTicks(t||{}),function(c){var f=c.value,p=P1(f,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,c,Jp(n),this._lookup);if(v)h=v.vBreak,p=v.tickVal}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(t){return Mv(this,t,Jp(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,i){return this.intervalStub.getLabel(t,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Vy(t,this.base))},scale:function(t){return P1(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,i){return t=Vy(t,this.base),i&&i.depth===es?t:this.intervalStub.transformIn(t,i)},transformOut:function(t,i){var n=i?i.depth:null;return c8.depth=n,f8.lookup=this._lookup,P1(n===es?t:this.intervalStub.transformOut(t,c8),this.base,f8)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,i){this.setExtent2(vn,t,i)},setExtent2:function(t,i,n){if(!Ds(i,n)||i<=0||n<=0)return;var a=p8,o=p8;if(t===vn){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(t,a[U1]=i,a[V1]=n);var l=this.base;this.intervalStub.setExtent2(t,o[U1]=Vy(i,l),o[V1]=Vy(n,l))},getFilter:function(){return{g:0}},sanitize:function(t,i){if(Ds(i[0],i[1])&&ki(t)&&t<=0)t=i[0];return t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,i){return i===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,i)}},e}(Qn);Qn.registerClass(h8);c8={},f8={},p8=[],d8=h8});var F1;var PD=k(()=>{F1={value:1,category:1,time:1,log:1}});function nf(r){var e=r.get("type");if(e==null||!Bt(F1,e)&&!Qn.getClass(e))e="value";return e}function Vl(r,e,t){var i=wr(),n;if(i)n=RD(r,e,t);switch(e){case"category":return new gh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:$r()});case"time":return new u8({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new d8({logBase:r.get("logBase"),breakOption:n});case"value":return new Ul({breakOption:n});default:return new(Qn.getClass(e)||Ul)({})}}function g8(r,e,t){var i=t?vh(r,null):r.getExtentUnsafe(vn,null),n=i[0],a=i[1];return!Ds(n,a)?G1:n===e||a===e?r0t:n<e&&a>e?e0t:G1}function y8(r){m8(r).noOnMyZero=!0}function _8(r){return m8(r).noOnMyZero}function yh(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=qG(e);return function(n,a){return r.scale.getFormattedLabel(n,a,t)}}else if(ht(e))return function(n){var a=r.scale.getLabel(n),o=e.replace("{value}",a!=null?a:"");return o};else if(Mt(e)){if(r.type==="category")return function(n,a){return e(Lv(r,n),n.value-r.scale.getExtent()[0],null)};var i=wr();return function(n,a){var o=null;if(i)o=i.makeAxisLabelFormatterParamBreak(o,n.break);return e(Lv(r,n),a,o)}}else return function(n){return r.scale.getLabel(n)}}function Lv(r,e){var t=r.scale;return Ur(t)?t.getLabel(e):e.value}function H1(r){var e=r.get("interval");return e==null?"auto":e}function x8(r){return r.type==="category"&&H1(r.getLabelModel())===0}function S8(r,e){var t={};return P(r.mapDimensionsAll(e),function(i){t[M1(r,i)]=!0}),le(t)}function af(r){return r==="middle"||r==="center"}function _h(r){return r.getShallow("show")}function RD(r,e,t){var i=r.get("breaks",!0);if(i!=null){if(!wr())return;if(!t||!i0t(e)){if(!1)var n;return}return i}}function i0t(r){return r!=="category"}function W1(r,e,t,i,n,a){var o=Bl(r),s=o?r.intervalStub:r;if(s.setExtent(i[0],i[1]),o){var l=r.powStub,u={depth:es},c=r.transformOut(i[0],u),f=r.transformOut(i[1],u),p=r8(t,i);if(e[0]&&!p[0])c=n[0];if(e[1]&&!p[1])f=n[1];l.setExtent(c,f)}s.setConfig(a)}function Hs(r,e){return Ur(r)?r.getRawOrdinalNumber(e.value):e.value}function Fl(r,e){return Ur(r)&&!!e.get("boundaryGap")}var m8,e0t=1,r0t=2,G1=3;var Qi=k(()=>{Z();k1();z1();Sv();ID();v8();PD();Wu();cy();_i();yt();rs();m8=Ft()});var Gl;var Dv=k(()=>{Gl=function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){return},r}()});function ND(r,e){var t=r.model,i=Iv(uh(t.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(t.uid)}function w8(r,e){return C8(ND(r,e))}function T8(r,e){var t=[];return A8(r.model.ecModel,function(i){for(var n=0;n<e.length;n++)if(e[n]&&i.serByIdx[e[n].seriesIndex])t.push(C8(i))}),t}function A8(r,e){var t=Iv(uh(r)).keyed;t&&t.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function C8(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function E8(r,e){var t=r.model.ecModel,i=Iv(uh(t)).axSer;i&&Gy(t,i.get(r.model.uid),e)}function Hl(r,e,t){var i=ND(r,e);i&&Gy(r.model.ecModel,i.sers,t)}function Gy(r,e,t){if(!e)return;for(var i=0;i<e.length;i++){var n=e[i];if(!r.isSeriesFiltered(n))t(n)}}function M8(r,e){var t=ND(r,e);if(!t||!t.sers.length)return 0;var i=0;return Gy(r.model.ecModel,t.sers,function(){i++}),i}function Pv(r,e,t){var i=Iv(uh(r)).keyed,n=i&&i.get(e);n&&n.each(function(a){t(a.axis)})}function zD(r,e){var t=r.model,i=Iv(uh(t.ecModel)).keys;i&&P(i.get(t.uid),function(n){if(!1)var a;e(n)})}function o0t(r){var e=a0t(u1(r)),t=e.keyed||(e.keyed=gt());A8(r,function(i,n,a){var o=t.get(n)||t.set(n,gt()),s=o.get(a)||o.set(a,{});if(i.metrics.liPosMinGap)D8.liPosMinGap(r,i,s)})}function L8(r,e){D8[r]=e}function is(r,e,t){if(!r)return;var i=e.ecModel,n=Iv(uh(i)),a=r.model.uid;if(!1)var o,s;var l=n.axSer||(n.axSer=gt()),u=l.get(a)||l.set(a,[]);if(!1)var c;u.push(e);var f=e.subType,p=e.getBaseAxis()===r,h=kD.get(OD(f,p,t))||kD.get(OD(f,p,null));if(!h)return;var v=n.keyed||(n.keyed=gt()),g=n.keys||(n.keys=gt()),y=h.key,m=v.get(y)||v.set(y,gt()),d=m.get(a);if(!d)d=m.set(a,{axis:r,sers:[],serByIdx:[]}),d.metrics=h.getMetrics(r),(g.get(a)||g.set(a,[])).push(y);d.sers.push(e),d.serByIdx[e.seriesIndex]=e}function OD(r,e,t){return r+Fy+St(e,!0)+Fy+(t||"")}function Rv(r,e){var t=OD(e.seriesType,e.baseAxis,e.coordSysType);kD.set(t,e),n0t(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:o0t})})}var n0t,Fy="|&",Iv,Z1=-2,b8=-1,a0t,D8,kD;var ta=k(()=>{Z();yt();c1();n0t=Go(),Iv=Ft(),a0t=Ft();D8={};kD=gt()});function I8(r,e){var{scale:t,dataMM:i}=r;if(t.sanitize)e[0]=t.sanitize(e[0],i),e[1]=t.sanitize(e[1],i),Vd(e)}function Hy(r,e){return e==null?null:Jr(e)?NaN:r.parse(e)}function u0t(r,e){var t;if(Ur(r))t=[0,0];else{var i=e.get("boundaryGap");if(typeof i==="boolean")i=null;t=it(i)?i:[i,i]}return[P8(t[0]),P8(t[1])]}function P8(r){return wn(typeof r==="boolean"?0:r,1)||0}function k8(r){var e=s0t(r.scale);if(!e.extent)e.extent=$r();return e}function N8(r,e){k8(r).dimIdxInCoord=e.get(r.dim)}function fo(r,e){var{scale:t,model:i,dim:n}=r;if(t.rawExtentInfo)return;c0t(t,r,n,i,e)}function c0t(r,e,t,i,n){var a=k8(e),o=a.extent,s=!1;E8(e,function(c){if(c.boxCoordinateSystem){var f=wb(c).coord,p=a.dimIdxInCoord;if(!(p>=0));else if(it(f)){var h=f[p];if(h!=null&&!it(h))Ug(o,r.parse(h))}}else if(c.coordinateSystem){var v=c.getData();if(v){var g=r.getFilter?r.getFilter():null;P(S8(v,t),function(y){wF(o,v.getApproximateExtent(y,g))})}if(c.__requireStartValue&&c.__requireStartValue(e))s=!0}});var l=p0t(r,e,i),u=new O8(r,i,o,s,l);z8(r,u,n),a.extent=null}function f0t(r,e){var t=r.scale;z8(t,new O8(t,r.model,e,!1,!1),l0t)}function z8(r,e,t){r.rawExtentInfo=e,e.from=t}function of(r,e){BD.set(r,e)}function j1(r,e,t,i,n){if(!r.rawExtentInfo)f0t({scale:r,model:e},n||$r());var a=r.rawExtentInfo.makeFinal(),o=a.effMM;if(r.setExtent(o[0],o[1]),r.setBlank(a.isBlank),i&&a.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis"))i.inverse=!i.inverse;return a}function p0t(r,e,t){var i=Fl(r,t),n=t.get("containShape",!0);if(n==null&&!i)n=!0;if(!n)return!1;var a=!1;return zD(e,function(o){a=!!BD.get(o)||a}),a}function B8(r,e,t,i){if(!t.ctnShp)return;var n;if(zD(r,function(s){var l=BD.get(s);if(l){var u=l(r,i);if(u)n=n||[0,0],FE(n,u[0]),GE(n,u[1]),y8(r)}}),!n)return;var a=e.getExtent();if(Ur(e)){if(!r.onBand)e.setExtent2(bv,ke(a[0],a[0]+n[0]),ce(a[1],a[1]+n[1]))}else{var o=a.slice();if(!t.zoomFixMM[0])o[0]=ke(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null));if(!t.zoomFixMM[1])o[1]=ce(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null));if(o[0]<a[0]||o[1]>a[1])e.setExtent2(bv,o[0],o[1])}}var s0t,Ws=1,R8=2,l0t=3,O8,BD;var po=k(()=>{Z();Hn();_i();yt();Qi();Pa();te();rs();ta();s0t=Ft(),O8=function(){function r(e,t,i,n,a){var o=Ur(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var c=i.slice();if(Ev(e)||Bl(e)||zl(e))FE(c,Hy(e,t.get("dataMin",!0))),GE(c,Hy(e,t.get("dataMax",!0)));if(!TF(c))c[0]=c[1]=NaN;var f=[],p=[!1,!1],h=t.get("min",!0);if(h==="dataMin")f[0]=c[0],p[0]=!0;else f[0]=Hy(e,Mt(h)?h({min:c[0],max:c[1]}):h),p[0]=f[0]!=null;var v=t.get("max",!0);if(v==="dataMax")f[1]=c[1],p[1]=!0;else f[1]=Hy(e,Mt(v)?v({min:c[0],max:c[1]}):v),p[1]=f[1]!=null;var g=u0t(e,t),y=!o?c[1]-c[0]||Math.abs(c[0]):null;if(f[0]==null)f[0]=o?l?c[0]:s?0:NaN:c[0]-g[0]*y;if(f[1]==null)f[1]=o?l?c[1]:s?s-1:NaN:c[1]+g[1]*y;!Es(f[0])&&(f[0]=NaN),!Es(f[1])&&(f[1]=NaN);var m=l||Jr(f[0])||Jr(f[1])||o&&!s,d=Ev(e),x=d&&t.needIncludeZero&&t.needIncludeZero();if(x){if(f[0]>0&&f[1]>0&&!p[0])f[0]=0;if(f[0]<0&&f[1]<0&&!p[1])f[1]=0}var S=!1;if(f[0]>f[1])f.reverse(),S=!0;var w=Hy(e,t.get("startValue",!0)),T=w!=null;if(!ki(w)&&n)w=e.getDefaultStartValue?e.getDefaultStartValue():0;if(ki(w)&&(T||!d||x)){if(w<f[0]&&!p[0])f[0]=w,p[0]=!0;else if(w>f[1]&&!p[1])f[1]=w,p[1]=!0}var A=this._i={scale:e,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:w,isBlank:m,incl0:x,tggAxInv:S,ctnShp:a};I8(A,f)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,{zoomMM:t,noZoomEffMM:i,zoomFixMM:n,fixMM:a}=e,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;if(t[0]!=null)s[0]=t[0],a[0]=n[0]=!0;if(t[1]!=null)s[1]=t[1],a[1]=n[1]=!0;return I8(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r}();BD=gt()});function U8(r,e){var t=Bl(r),i=t?r.intervalStub:r,n=e.fixMinMax||[],a=t?r.getExtent():null,o=i.getExtent(),s=R1(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=t?d0t(i,e):h0t(i,e),{intervalPrecision:u,interval:c}=l,f=e.userInterval;if(f!=null)l.interval=f,l.intervalPrecision=Gs(f);if(!n[0])s[0]=Me(Tn(s[0]/c)*c,u);if(!n[1])s[1]=Me(zo(s[1]/c)*c,u);if(f!=null)l.niceExtent=s.slice();W1(r,n,o,s,a,l)}function h0t(r,e){var t=mh(e.splitNumber,5),i=Cv(r),{minInterval:n,maxInterval:a}=e,o=Ap(i/t,!0);if(n!=null&&o<n)o=n;if(a!=null&&o>a)o=a;var s=Gs(o),l=r.getExtent(),u=[Me(zo(l[0]/o)*o,s),Me(Tn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function d0t(r,e){var t=mh(e.splitNumber,10),i=r.getExtent(),n=Cv(r),a=ce(oS(n),1),o=t/n*a;if(o<=0.5)a*=10;var s=Gs(a),l=[Me(zo(i[0]/a)*a,s),Me(Tn(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function Wl(r){var{scale:e,model:t}=r,{axis:i,ecModel:n}=t;v0t(e,t,i,n,null)}function v0t(r,e,t,i,n){var a=j1(r,e,i,t,n),o=Ev(r)||zl(r);if(UD(r,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),t&&i)B8(t,r,a,i)}function UD(r,e){m0t[r.type](r,e)}var m0t;var Ov=k(()=>{Z();_i();te();Qi();ID();po();rs();m0t={interval:U8,log:U8,time:l8,ordinal:ar}});function V8(r,e){return Math.abs(r-e)<g0t}function Zu(r,e,t){var i=0,n=r[0];if(!n)return!1;for(var a=1;a<r.length;a++){var o=r[a];i+=Ho(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];if(!V8(n[0],s[0])||!V8(n[1],s[1]))i+=Ho(n[0],n[1],s[0],s[1],e,t);return i!==0}var g0t=0.00000001;var VD=()=>{};function FD(r,e){for(var t=0;t<r.length;t++)vr(r[t],r[t],e)}function G8(r,e,t,i){for(var n=0;n<r.length;n++){var a=r[n];if(i)a=i.project(a);if(a&&isFinite(a[0])&&isFinite(a[1]))Qa(e,e,a),to(t,t,a)}}function _0t(r){var e=0,t=0,i=0,n=r.length,a=r[n-1][0],o=r[n-1][1];for(var s=0;s<n;s++){var l=r[s][0],u=r[s][1],c=a*u-l*o;e+=c,t+=(a+l)*c,i+=(o+u)*c,a=l,o=u}return e?[t/e/3,i/e/3,e]:[r[0][0]||0,r[0][1]||0]}var y0t,H8,GD,HD,X1,W8;var K1=k(()=>{dt();fr();br();VD();Z();y0t=[];H8=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;if(!e)e=this._center=this.calcCenter();return e},r}(),GD=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),HD=function(){function r(e){this.type="linestring",this.points=e}return r}(),X1=function(r){W(e,r);function e(t,i,n){var a=r.call(this,t)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return e.prototype.calcCenter=function(){var t=this.geometries,i,n=0;for(var a=0;a<t.length;a++){var o=t[a],s=o.exterior,l=s&&s.length;if(l>n)i=o,n=l}if(i)return _0t(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;if(P(o,function(s){if(s.type==="polygon")G8(s.exterior,n,a,t);else P(s.points,function(l){G8(l,n,a,t)})}),!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))n[0]=n[1]=a[0]=a[1]=0;if(i=new Gt(n[0],n[1],a[0]-n[0],a[1]-n[1]),!t)this._rect=i;return i},e.prototype.contain=function(t){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type!=="polygon")continue;var{exterior:l,interiors:u}=s;if(Zu(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(Zu(u[c],t[0],t[1]))continue t;return!0}}return!1},e.prototype.transformTo=function(t,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;if(!n)n=s*a;else if(!a)a=n/s;var l=new Gt(t,i,n,a),u=o.calculateTransform(l),c=this.geometries;for(var f=0;f<c.length;f++){var p=c[f];if(p.type==="polygon")FD(p.exterior,u),P(p.interiors,function(h){FD(h,u)});else P(p.points,function(h){FD(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(H8),W8=function(r){W(e,r);function e(t,i){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,i=t.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=bs(y0t),o=t;while(o&&!o.isGeoSVGGraphicRoot)Ri(a,o.getLocalTransform(),a),o=o.parent;return mi(a,a),vr(n,n,a),n},e}(H8)});function x0t(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;if(t==null)t=1024;var i=e.features;return P(i,function(n){var a=n.geometry,{encodeOffsets:o,coordinates:s}=a;if(!o)return;switch(a.type){case"LineString":a.coordinates=Y8(s,o,t);break;case"Polygon":WD(s,o,t);break;case"MultiLineString":WD(s,o,t);break;case"MultiPolygon":P(s,function(l,u){return WD(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function WD(r,e,t){for(var i=0;i<r.length;i++)r[i]=Y8(r[i],e[i],t)}function Y8(r,e,t){var i=[],n=e[0],a=e[1];for(var o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/t,l/t])}return i}function YD(r,e){return r=x0t(r),nt(be(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var{properties:i,geometry:n}=t,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new GD(o[0],o.slice(1)));break;case"MultiPolygon":P(n.coordinates,function(l){if(l[0])a.push(new GD(l[0],l.slice(1)))});break;case"LineString":a.push(new HD([n.coordinates]));break;case"MultiLineString":a.push(new HD(n.coordinates))}var s=new X1(i[e||"name"],a,i.cp);return s.properties=i,s})}var Z8=k(()=>{Z();K1()});function kv(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function j8(r,e){var t=r.getLabelModel().get("customValues");if(t){var i=r.scale;return{labels:nt(K8(t,i),function(n,a){return{formattedLabel:yh(r)(n,a),rawLabel:i.getLabel(n),tick:n}})}}return r.type==="category"?b0t(r,e):T0t(r)}function X8(r,e,t){var i=r.scale,n=r.getTickModel().get("customValues");if(n)return{ticks:K8(n,i)};return r.type==="category"?w0t(r,e):{ticks:i.getTicks(t)}}function K8(r,e){var t=e.getExtent(),i=[];return P(r,function(n){if(n=e.parse(n),n>=t[0]&&n<=t[1])i.push(n)}),Nc(i,CF,null),Pr(i),nt(i,function(n){return{value:n}})}function b0t(r,e){var t=r.getLabelModel(),i=q8(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:i}function q8(r,e,t){var i=C0t(r),n=H1(e),a=t.kind===Na.estimate;if(!a){var o=$8(i,n);if(o)return o}var s,l;if(Mt(n))s=q1(r,n,!1);else l=n==="auto"?E0t(r,t):n,s=q1(r,l,!1);var u={labels:s,labelCategoryInterval:l};if(!a)ZD(i,n,u);else t.out.noPxChangeTryDetermine.push(function(){return ZD(i,n,u),!0});return u}function w0t(r,e){var t=A0t(r),i=H1(e),n=$8(t,i);if(n)return n;var a,o;if(!e.get("show")||r.scale.isBlank())a=[];if(Mt(i))a=q1(r,i,!0);else if(i==="auto"){var s=q8(r,r.getLabelModel(),kv(Na.determine));o=s.labelCategoryInterval,a=nt(s.labels,function(l){return l.tick})}else o=i,a=q1(r,o,!0);return ZD(t,i,{ticks:a,tickCategoryInterval:o})}function T0t(r){var e=r.scale.getTicks(),t=yh(r);return{labels:nt(e,function(i,n){return{formattedLabel:t(i,n),rawLabel:r.scale.getLabel(i),tick:i}})}}function J8(r){return function(t){return Wy(t)[r]||(Wy(t)[r]={list:[]})}}function $8(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function ZD(r,e,t){return r.list.push({key:e,value:t}),t}function E0t(r,e){if(e.kind===Na.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Wy(r).autoInterval=t,!0}),t}var i=Wy(r).autoInterval;return i!=null?i:Wy(r).autoInterval=r.calculateCategoryInterval(e)}function Q8(r,e){var t=e.kind,i=L0t(r),n=yh(r),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;if(l>c)u=Math.max(1,Math.floor(l/c));var f=s[0],p=r.dataToCoord(f+1)-r.dataToCoord(f),h=Math.abs(p*Math.cos(a)),v=Math.abs(p*Math.sin(a)),g=0,y=0;for(;f<=s[1];f+=u){var m=0,d=0,x=Ic(n({value:f}),i.font,"center","top");m=x.width*1.3,d=x.height*1.3,g=Math.max(g,m,7),y=Math.max(y,d,7)}var S=g/h,w=y/v;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var T=Math.max(0,Math.floor(Math.min(S,w)));if(t===Na.estimate)return e.out.noPxChangeTryDetermine.push(xt(M0t,null,r,T,l)),T;var A=tW(r,T,l);return A!=null?A:T}function M0t(r,e,t){return tW(r,e,t)==null}function tW(r,e,t){var i=S0t(r.model),n=r.getExtent(),{lastAutoInterval:a,lastTickCount:o}=i;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-t)<=1&&a>e&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;else i.lastTickCount=t,i.lastAutoInterval=e,i.axisExtent0=n[0],i.axisExtent1=n[1]}function L0t(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function q1(r,e,t){var i=yh(r),n=r.scale,a=[],o=Mt(e);return O1(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var c=!!e(s.value,u);if(s.offInterval=!c,!c&&!l)return}a.push(t?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),a}var S0t,Wy,Na,A0t,C0t;var J1=k(()=>{Z();Hn();yt();Qi();te();_i();S0t=Ft(),Wy=Ft(),Na={estimate:1,determine:2};A0t=J8("axisTick"),C0t=J8("axisLabel")});function Dr(r,e){e=e||{};var t={w:NaN,w2:NaN},i=r.scale,n=e.fromStat,a=e.min,o=t8(i);if(!ki(o))o=NaN;var s=r.getExtent(),l=yr(s[1]-s[0]);if(Ur(i))I0t(t,r,o,l);else if(n)P0t(t,r,o,l,n);else if(a==null);if(a!=null)t.w=ki(t.w)?ce(a,t.w):a;return t}function I0t(r,e,t,i){var n=e.onBand,a=t+(n?1:0);if(a===0&&(a=1),r.w=i/a,!n&&t&&i)r.w2=r.w*t/i}function P0t(r,e,t,i,n){var a=!1,o=-1/0;if(P(n.key?[w8(e,n.key)]:T8(e,n.sers||[]),function(s){var l=s.liPosMinGap;if(l!=null){if(l>0){if(l>o)o=l;a=!1}else if(l===Z1)a=!0}}),ki(t)&&t>0&&ki(o))r.w=i/t*o,r.w2=o;else if(a)r.w=i*D0t,r.w2=r.w*t/i}var D0t=0.8;var za=k(()=>{Z();_i();te();ta();rs()});function rW(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],i=t/r.scale.count()/2;e[0]+=i,e[1]-=i}return e}function O0t(r,e,t){var i=e.length;if(!r.onBand||t||!i)return!1;var n=Dr(r).w;if(!n)return!1;P(e,function(s){s.coord-=n/2});var a=r.scale.getExtent(),o=e[i-1];if(o.tick.offInterval)e.pop();return e.push({coord:o.coord+n,tick:{value:a[1]+1}}),!0}var eW,R0t,tn;var sf=k(()=>{Z();te();J1();_i();za();Qi();eW=[0,1],R0t=function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this.scale;return e=i.normalize(i.parse(e)),Ne(e,eW,rW(this),t)},r.prototype.coordToData=function(e,t){var i=Ne(e,rW(this),eW,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){return},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=X8(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=nt(i.ticks,function(s){return{coord:this.dataToCoord(Hs(this.scale,s)),tick:s}},this),a=t.get("alignWithLabel"),o=O0t(this,n,a);return nt(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Ur(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");if(!(t>0&&t<100))t=5;var i=this.scale.getMinorTicks(t),n=nt(i,function(a){return nt(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||kv(Na.determine),j8(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Dr(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||kv(Na.determine),Q8(this,e)},r}();tn=R0t});var iW=()=>{};function N0t(r,e,t,i,n){var{width:a,height:o}=t;switch(r){case"top":i.set(t.x+a/2,t.y-e),n.set(0,-1);break;case"bottom":i.set(t.x+a/2,t.y+o+e),n.set(0,1);break;case"left":i.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":i.set(t.x+a+e,t.y+o/2),n.set(1,0);break}}function z0t(r,e,t,i,n,a,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*t+r,f=s*t+e;if(Math.abs(i-n)%Yy<0.0001)return l[0]=c,l[1]=f,u-t;if(a){var p=i;i=un(n),n=un(p)}else i=un(i),n=un(n);if(i>n)n+=Yy;var h=Math.atan2(s,o);if(h<0)h+=Yy;if(h>=i&&h<=n||h+Yy>=i&&h+Yy<=n)return l[0]=c,l[1]=f,u-t;var v=t*Math.cos(i)+r,g=t*Math.sin(i)+e,y=t*Math.cos(n)+r,m=t*Math.sin(n)+e,d=(v-o)*(v-o)+(g-s)*(g-s),x=(y-o)*(y-o)+(m-s)*(m-s);if(d<x)return l[0]=v,l[1]=g,Math.sqrt(d);else return l[0]=y,l[1]=m,Math.sqrt(x)}function $1(r,e,t,i,n,a,o,s){var l=n-r,u=a-e,c=t-r,f=i-e,p=Math.sqrt(c*c+f*f);c/=p,f/=p;var h=l*c+u*f,v=h/p;if(s)v=Math.min(Math.max(v,0),1);v*=p;var g=o[0]=r+v*c,y=o[1]=e+v*f;return Math.sqrt((g-n)*(g-n)+(y-a)*(y-a))}function nW(r,e,t,i,n,a,o){if(t<0)r=r+t,t=-t;if(i<0)e=e+i,i=-i;var s=r+t,l=e+i,u=o[0]=Math.min(Math.max(n,r),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-n)*(u-n)+(c-a)*(c-a))}function B0t(r,e,t){var i=nW(e.x,e.y,e.width,e.height,r.x,r.y,Ys);return t.set(Ys[0],Ys[1]),i}function U0t(r,e,t){var i=0,n=0,a=0,o=0,s,l,u=1/0,c=e.data,{x:f,y:p}=r;for(var h=0;h<c.length;){var v=c[h++];if(h===1)i=c[h],n=c[h+1],a=i,o=n;var g=u;switch(v){case xh.M:a=c[h++],o=c[h++],i=a,n=o;break;case xh.L:g=$1(i,n,c[h],c[h+1],f,p,Ys,!0),i=c[h++],n=c[h++];break;case xh.C:g=Lx(i,n,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,p,Ys),i=c[h++],n=c[h++];break;case xh.Q:g=Ix(i,n,c[h++],c[h++],c[h],c[h+1],f,p,Ys),i=c[h++],n=c[h++];break;case xh.A:var y=c[h++],m=c[h++],d=c[h++],x=c[h++],S=c[h++],w=c[h++];h+=1;var T=!!(1-c[h++]);if(s=Math.cos(S)*d+y,l=Math.sin(S)*x+m,h<=1)a=s,o=l;var A=(f-y)*x/d+y;g=z0t(y,m,x,S,S+w,T,A,p,Ys),i=Math.cos(S+w)*d+y,n=Math.sin(S+w)*x+m;break;case xh.R:a=i=c[h++],o=n=c[h++];var M=c[h++],D=c[h++];g=nW(a,o,M,D,f,p,Ys);break;case xh.Z:g=$1(i,n,a,o,f,p,Ys,!0),i=a,n=o;break}if(g<u)u=g,t.set(Ys[0],Ys[1])}return u}function XD(r,e){if(!r)return;var t=r.getTextGuideLine(),i=r.getTextContent();if(!(i&&t))return;var n=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=n.candidates||k0t,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=n.anchor,c=r.getComputedTransform(),f=c&&mi([],c),p=e.get("length2")||0;if(u)xi.copy(u);for(var h=0;h<o.length;h++){var v=o[h];N0t(v,0,s,Zs,Zl),Qt.scaleAndAdd(Or,Zs,Zl,p),Or.transform(f);var g=r.getBoundingRect(),y=u?u.distance(Or):r instanceof $t?U0t(Or,r.path,xi):B0t(Or,g,xi);if(y<l)l=y,Or.transform(c),xi.transform(c),xi.toArray(a[0]),Or.toArray(a[1]),Zs.toArray(a[2])}KD(a,e.get("minTurnAngle")),t.setShape({points:a})}function KD(r,e){if(!(e<=180&&e>0))return;e=e/180*Math.PI,Zs.fromArray(r[0]),Or.fromArray(r[1]),xi.fromArray(r[2]),Qt.sub(Zl,Zs,Or),Qt.sub(Yl,xi,Or);var t=Zl.len(),i=Yl.len();if(t<0.001||i<0.001)return;Zl.scale(1/t),Yl.scale(1/i);var n=Zl.dot(Yl),a=Math.cos(e);if(a<n){var o=$1(Or.x,Or.y,xi.x,xi.y,Zs.x,Zs.y,Q1,!1);ea.fromArray(Q1),ea.scaleAndAdd(Yl,o/Math.tan(Math.PI-e));var s=xi.x!==Or.x?(ea.x-Or.x)/(xi.x-Or.x):(ea.y-Or.y)/(xi.y-Or.y);if(isNaN(s))return;if(s<0)Qt.copy(ea,Or);else if(s>1)Qt.copy(ea,xi);ea.toArray(r[1])}}function aW(r,e,t){if(!(t<=180&&t>0))return;t=t/180*Math.PI,Zs.fromArray(r[0]),Or.fromArray(r[1]),xi.fromArray(r[2]),Qt.sub(Zl,Or,Zs),Qt.sub(Yl,xi,Or);var i=Zl.len(),n=Yl.len();if(i<0.001||n<0.001)return;Zl.scale(1/i),Yl.scale(1/n);var a=Zl.dot(e),o=Math.cos(t);if(a<o){var s=$1(Or.x,Or.y,xi.x,xi.y,Zs.x,Zs.y,Q1,!1);ea.fromArray(Q1);var l=Math.PI/2,u=Math.acos(Yl.dot(e)),c=l+u-t;if(c>=l)Qt.copy(ea,xi);else{ea.scaleAndAdd(Yl,s/Math.tan(Math.PI/2-c));var f=xi.x!==Or.x?(ea.x-Or.x)/(xi.x-Or.x):(ea.y-Or.y)/(xi.y-Or.y);if(isNaN(f))return;if(f<0)Qt.copy(ea,Or);else if(f>1)Qt.copy(ea,xi)}ea.toArray(r[1])}}function jD(r,e,t,i){var n=t==="normal",a=n?r:r.ensureState(t);a.ignore=e;var o=i.get("smooth");o=o===!0?0.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function V0t(r,e){var{smooth:t,points:i}=e;if(!i)return;if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var n=Do(i[0],i[1]),a=Do(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*t,s=xd([],i[1],i[0],o/n),l=xd([],i[1],i[2],o/a),u=xd([],s,l,0.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)r.lineTo(i[c][0],i[c][1])}function Nv(r,e,t){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){if(i)r.removeTextGuideLine();return}var a=e.normal,o=a.get("show"),s=n.ignore;for(var l=0;l<Gc.length;l++){var u=Gc[l],c=e[u],f=u==="normal";if(c){var p=c.get("show"),h=f?s:St(n.states[u]&&n.states[u].ignore,s);if(h||!St(p,o)){var v=f?i:i&&i.states[u];if(v)v.ignore=!0;if(i)jD(i,!0,u,c);continue}if(!i){if(i=new Mr,r.setTextGuideLine(i),!f&&(s||!o))jD(i,!0,"normal",e.normal);if(r.stateProxy)i.stateProxy=r.stateProxy}jD(i,!1,u,c)}}if(i){Dt(i.style,t),i.style.fill=null;var g=a.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=g||!1,i.buildPath=V0t}}function zv(r,e){e=e||"labelLine";var t={normal:r.getModel(e)};for(var i=0;i<Ni.length;i++){var n=Ni[i];t[n]=r.getModel([n,e])}return t}var Yy,xh,k0t,Ys,Zs,Or,xi,Zl,Yl,Q1,ea;var Zy=k(()=>{jt();ao();Hg();ga();Z();br();tr();Yy=Math.PI*2,xh=Fi.CMD,k0t=["top","right","bottom","left"];Ys=[];Zs=new Qt,Or=new Qt,xi=new Qt,Zl=new Qt,Yl=new Qt;Q1=[],ea=new Qt});function jy(r,e,t){t=t||lW,e?r.dirty|=t:r.dirty&=~t}function uW(r,e){return e=e||lW,r.dirty==null||!!(r.dirty&e)}function js(r){if(!r)return;if(uW(r))JD(r,r.label,r);return r}function JD(r,e,t){var i=e.getComputedTransform();r.transform=KS(r.transform,i);var n=r.localRect=ev(r.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,c=a.__marginType;if(c==null&&u)o=u,c=Kp.textMargin;for(var f=0;f<4;f++)qD[f]=c===Kp.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;if(c===Kp.textMargin)Xo(n,qD,!1,!1);var p=r.rect=ev(r.rect,n);if(i)p.applyTransform(i);if(c===Kp.minMargin)Xo(p,qD,!1,!1);return r.axisAligned=XS(i),(r.label=r.label||{}).ignore=e.ignore,jy(r,!1),jy(r,!0,tw),r}function cW(r,e,t){if(r.transform=KS(r.transform,t),r.localRect=ev(r.localRect,e),r.rect=ev(r.rect,e),t)r.rect.applyTransform(t);return r.axisAligned=XS(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Xy(r,e){if(!r)return;r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;if(t)t[4]+=e.x,t[5]+=e.y;var i=r.rect;if(i)i.x+=e.x,i.y+=e.y;var n=r.obb;if(n)n.fromBoundingRect(r.localRect,t)}function Ky(r,e){for(var t=0;t<oW.length;t++){var i=oW[t];if(r[i]==null)r[i]=e[i]}return js(r)}function sW(r){var e=r.obb;if(!e||uW(r,tw))r.obb=e=e||new ZS,e.fromBoundingRect(r.localRect,r.transform),jy(r,!1,tw);return e}function qy(r,e,t,i,n){var a=r.length,o=fe[e],s=Lr[e];if(a<2)return!1;r.sort(function(D,L){return D.rect[o]-L.rect[o]});var l=0,u,c=!1,f=0;for(var p=0;p<a;p++){var h=r[p],v=h.rect;if(u=v[o]-l,u<0)v[o]-=u,h.label[o]-=u,c=!0;var g=Math.max(-u,0);f+=g,l=v[o]+v[s]}if(f>0&&n)T(-f/a,0,a);var y=r[0],m=r[a-1],d,x;if(S(),d<0&&A(-d,0.8),x<0&&A(x,0.8),S(),w(d,x,1),w(x,d,-1),S(),d<0)M(-d);if(x<0)M(x);function S(){d=y.rect[o]-t,x=i-m.rect[o]-m.rect[s]}function w(D,L,I){if(D<0){var E=Math.min(L,-D);if(E>0){T(E*I,0,a);var R=E+D;if(R<0)A(-R*I,1)}else A(-D*I,1)}}function T(D,L,I){if(D!==0)c=!0;for(var E=L;E<I;E++){var R=r[E],B=R.rect;B[o]+=D,R.label[o]+=D}}function A(D,L){var I=[],E=0;for(var R=1;R<a;R++){var B=r[R-1].rect,z=Math.max(r[R].rect[o]-B[o]-B[s],0);I.push(z),E+=z}if(!E)return;var V=Math.min(Math.abs(D)/E,L);if(D>0)for(var R=0;R<a-1;R++){var H=I[R]*V;T(H,0,R+1)}else for(var R=a-1;R>0;R--){var H=I[R-1]*V;T(-H,R,a)}}function M(D){var L=D<0?-1:1;D=Math.abs(D);var I=Math.ceil(D/(a-1));for(var E=0;E<a-1;E++){if(L>0)T(I,0,E+1);else T(-I,a-E-1,a);if(D-=I,D<=0)return}}return c}function fW(r){for(var e=0;e<r.length;e++){var t=r[e],{defaultAttr:i,labelLine:n}=t;t.label.attr("ignore",i.ignore),n&&n.attr("ignore",i.labelGuideIgnore)}}function ew(r){var e=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function t(u){if(!u.ignore){var c=u.ensureState("emphasis");if(c.ignore==null)c.ignore=!1}u.ignore=!0}for(var i=0;i<r.length;i++){var n=js(r[i]);if(n.label.ignore)continue;var{label:a,labelLine:o}=n,s=!1;for(var l=0;l<e.length;l++)if(Bv(n,e[l],null,{touchThreshold:0.05})){s=!0;break}if(s)t(a),o&&t(o);else e.push(n)}}function Bv(r,e,t,i){if(!r||!e)return!1;if(r.label&&r.label.ignore||e.label&&e.label.ignore)return!1;if(!r.rect.intersect(e.rect,t,i))return!1;if(r.axisAligned&&e.axisAligned)return!0;return sW(r).intersect(sW(e),t,i)}var oW,F0t=1,tw=2,lW,qD;var Jy=k(()=>{jt();rr();oW=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],lW=F0t|tw;qD=[0,0,0,0]});function G0t(r){if(r){var e=[];for(var t=0;t<r.length;t++)e.push(r[t].slice());return e}}function H0t(r,e){var t=r.label,i=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:G0t(i&&i.shape.points)}}function rw(r,e,t){for(var i=0;i<t.length;i++){var n=t[i];if(e[n]!=null)r[n]=e[n]}}var pW,ra,$D,W0t,iw,Y0t,hW;var dW=k(()=>{jt();lr();te();No();Zy();yt();Z();Jy();rr();Hg();pW=["align","verticalAlign","width","height","fontSize"],ra=new xa,$D=Ft(),W0t=Ft();iw=["x","y","rotation"],Y0t=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,i,n,a){var{style:o,__hostTarget:s}=n,l=s.textConfig||{},u=n.getComputedTransform(),c=n.getBoundingRect().plain();if(Gt.applyTransform(c,c,u),u)ra.setLocalTransform(u);else ra.x=ra.y=ra.rotation=ra.originX=ra.originY=0,ra.scaleX=ra.scaleY=1;ra.rotation=un(ra.rotation);var f=n.__hostTarget,p;if(f){p=f.getBoundingRect().plain();var h=f.getComputedTransform();Gt.applyTransform(p,p,h)}var v=p&&f.getTextGuideLine();this._labelList.push({label:n,labelLine:v,seriesModel:i,dataIndex:e,dataType:t,layoutOptionOrCb:a,layoutOption:null,rect:c,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:v&&v.ignore,x:ra.x,y:ra.y,scaleX:ra.scaleX,scaleY:ra.scaleY,rotation:ra.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,n=i.get("labelLayout");if(!(Mt(n)||le(n).length))return;e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=Yt(a);if(o&&!o.disableLabelLayout)t._addLabel(s.dataIndex,s.dataType,i,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function n(x,S){return function(){XD(x,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;if(Mt(o.layoutOptionOrCb))c=o.layoutOptionOrCb(H0t(o,l));else c=o.layoutOptionOrCb;c=c||{},o.layoutOption=c;var f=Math.PI/180;if(l)l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(c.x!=null)s.x=wt(c.x,t),s.setStyle("x",0),p=!0;else s.x=u.x,s.setStyle("x",u.style.x);if(c.y!=null)s.y=wt(c.y,i),s.setStyle("y",0),p=!0;else s.y=u.y,s.setStyle("y",u.style.y);if(c.labelLinePoints){var h=l.getTextGuideLine();if(h)h.setShape({points:c.labelLinePoints}),p=!1}var v=$D(s);v.needsUpdateLabelLine=p,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<pW.length;g++){var y=pW[g];s.setStyle(y,c[y]!=null?c[y]:u.style[y])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var d=o.seriesModel.getData(o.dataType);m=d.getItemModel(o.dataIndex)}s.on("drag",n(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),n=[];P(this._labelList,function(l){if(!l.defaultAttr.ignore)n.push(Ky({},l))});var a=be(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=be(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});qy(a,0,0,t),qy(o,1,0,i);var s=be(n,function(l){return l.layoutOption.hideOverlap});fW(s),ew(s)},r.prototype.processLabelsOverall=function(){var e=this;P(this._chartViewList,function(t){var{__model:i,ignoreLabelLineUpdate:n}=t,a=i.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();if(!s&&l)s=$D(l).needsUpdateLabelLine;if(s)e._updateLabelLine(o,i);if(a)e._animateLabels(o,i)})})},r.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),n=Yt(e),a=n.dataIndex;if(i&&a!=null){var o=t.getData(n.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");Nv(e,zv(s),l),XD(e,f)}},r.prototype._animateLabels=function(e,t){var i=e.getTextContent(),n=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!Mu(e))){var a=$D(i),o=a.oldLayout,s=Yt(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},c=t.getData(s.dataType);if(!o){if(i.attr(u),!Ru(i).valueAnimation){var f=St(i.style.opacity,1);i.style.opacity=0,ze(i,{style:{opacity:f}},t,l)}}else{i.attr(o);var p=e.prevStates;if(p){if(Xt(p,"select")>=0)i.attr(a.oldLayoutSelect);if(Xt(p,"emphasis")>=0)i.attr(a.oldLayoutEmphasis)}ge(i,u,t,l)}if(a.oldLayout=u,i.states.select){var h=a.oldLayoutSelect={};rw(h,u,iw),rw(h,i.states.select,iw)}if(i.states.emphasis){var v=a.oldLayoutEmphasis={};rw(v,u,iw),rw(v,i.states.emphasis,iw)}QS(i,l,c,t,t)}if(n&&!n.ignore&&!n.invisible){var a=W0t(n),o=a.oldLayout,g={points:n.shape.points};if(!o)n.setShape(g),n.style.strokePercent=0,ze(n,{style:{strokePercent:1}},t);else n.attr({shape:o}),ge(n,{shape:g},t);a.oldLayout=g}},r}(),hW=Y0t});function $y(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var n=QD(t).labelManager;if(!n)n=QD(t).labelManager=new hW;n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var n=QD(t).labelManager;P(i.updatedSeries,function(a){n.addLabelsOfSeries(t.getViewOfSeriesModel(a))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var QD;var tI=k(()=>{yt();dW();Z();QD=Ft()});var vW=k(()=>{On();tI();hh();iW();he($y)});var eI,rI,mW,Sh,Z0t,j0t,nw;var iI=k(()=>{vp();eI=Math.sin,rI=Math.cos,mW=Math.PI,Sh=Math.PI*2,Z0t=180/mW,j0t=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,n,a,o){this._add("C",e,t,i,n,a,o)},r.prototype.quadraticCurveTo=function(e,t,i,n){this._add("Q",e,t,i,n)},r.prototype.arc=function(e,t,i,n,a,o){this.ellipse(e,t,i,i,0,n,a,o)},r.prototype.ellipse=function(e,t,i,n,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),p=ml(f-Sh)||(c?u>=Sh:-u>=Sh),h=u>0?u%Sh:u%Sh+Sh,v=!1;if(p)v=!0;else if(ml(f))v=!1;else v=h>=mW===!!c;var g=e+i*rI(o),y=t+n*eI(o);if(this._start)this._add("M",g,y);var m=Math.round(a*Z0t);if(p){var d=1/this._p,x=(c?1:-1)*(Sh-d);if(this._add("A",i,n,m,1,+c,e+i*rI(o+x),t+n*eI(o+x)),d>0.01)this._add("A",i,n,m,0,+c,g,y)}else{var S=e+i*rI(s),w=t+n*eI(s);this._add("A",i,n,m,+v,+c,S,w)}},r.prototype.rect=function(e,t,i,n){this._add("M",e,t),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){if(this._d.length>0)this._add("Z")},r.prototype._add=function(e,t,i,n,a,o,s,l,u){var c=[],f=this._p;for(var p=1;p<arguments.length;p++){var h=arguments[p];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),nw=j0t});function K0t(r){var e=r.fill;return e!=null&&e!==Qy}function q0t(r){var e=r.stroke;return e!=null&&e!==Qy}function aI(r,e,t,i){var n=e.opacity==null?1:e.opacity;if(t instanceof _r){r("opacity",n);return}if(K0t(e)){var a=Dc(e.fill);r("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*n:a.opacity*n;if(i||o<1)r("fill-opacity",o)}else r("fill",Qy);if(q0t(e)){var s=Dc(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,f=e.strokeFirst;if(i||u!==1)r("stroke-width",u);if(i||f)r("paint-order",f?"stroke":"fill");if(i||c<1)r("stroke-opacity",c);if(e.lineDash){var p=Dy(t),h=p[0],v=p[1];if(h){if(v=X0t(v||0),r("stroke-dasharray",h.join(",")),v||i)r("stroke-dashoffset",v)}}else if(i)r("stroke-dasharray",Qy);for(var g=0;g<nI.length;g++){var y=nI[g];if(i||e[y]!==Hd[y]){var m=e[y]||Hd[y];m&&r(J0t[g],m)}}}else if(i)r("stroke",Qy)}var Qy="none",X0t,nI,J0t;var gW=k(()=>{Br();Yo();iD();Z();vp();X0t=Math.round;nI=["lineCap","miterLimit","lineJoin"],J0t=nt(nI,function(r){return"stroke-"+r.toLowerCase()})});function aw(r){return document.createElementNS(yW,r)}function Si(r,e,t,i,n){return{tag:r,attrs:t||{},children:i,text:n,key:e}}function $0t(r,e){var t=[];if(e)for(var i in e){var n=e[i],a=i;if(n===!1)continue;else if(n!==!0&&n!=null)a+='="'+n+'"';t.push(a)}return"<"+r+" "+t.join(" ")+">"}function Q0t(r){return"</"+r+">"}function t0(r,e){e=e||{};var t=e.newline?`
79
+ `:"";function i(n){var{children:a,tag:o,attrs:s,text:l}=n;return $0t(o,s)+(o!=="style"?Pi(l):l||"")+(a?""+t+nt(a,function(u){return i(u)}).join(t)+t:"")+Q0t(o)}return i(r)}function SW(r,e,t){t=t||{};var i=t.newline?`
80
+ `:"",n=" {"+i,a=i+"}",o=nt(le(r),function(l){return l+n+nt(le(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+a}).join(i),s=nt(le(e),function(l){return"@keyframes "+l+n+nt(le(e[l]),function(u){return u+n+nt(le(e[l][u]),function(c){var f=e[l][u][c];if(c==="d")f='path("'+f+'")';return c+":"+f+";"}).join(i)+a}).join(i)+a}).join(i);if(!o&&!s)return"";return["<![CDATA[",o,s,"]]>"].join(i)}function e0(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lI(r,e,t,i){return Si("svg","root",{width:r,height:e,xmlns:yW,"xmlns:xlink":oI,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var yW="http://www.w3.org/2000/svg",oI="http://www.w3.org/1999/xlink",_W="http://www.w3.org/2000/xmlns/",xW="http://www.w3.org/XML/1998/namespace",sI="ecmeta_";var r0=k(()=>{Z();hg()});function ow(){return t_t++}var t_t=0;function e_t(r,e,t){var i=et({},r.shape);et(i,e),r.buildPath(t,i);var n=new nw;return n.reset(Hx(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function r_t(r,e){var{originX:t,originY:i}=e;if(t||i)r[bh]=t+"px "+i+"px"}function TW(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function n_t(r,e,t){var i=r.shape.paths,n={},a,o;if(P(i,function(l){var u=e0(t.zrId);u.animation=!0,i0(l,{},u,!0);var{cssAnims:c,cssNodes:f}=u,p=le(c),h=p.length;if(!h)return;o=p[h-1];var v=c[o];for(var g in v){var y=v[g];n[g]=n[g]||{d:""},n[g].d+=y.d||""}for(var m in f){var d=f[m].animation;if(d.indexOf(o)>=0)a=d}}),!a)return;e.d=!1;var s=TW(n,t);return a.replace(o,s)}function wW(r){return ht(r)?bW[r]?"cubic-bezier("+bW[r]+")":Cd(r)?r:"":""}function i0(r,e,t,i){var n=r.animators,a=n.length,o=[];if(r instanceof Yc){var s=n_t(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;var l={};for(var u=0;u<a;u++){var c=n[u],f=[c.getMaxTime()/1000+"s"],p=wW(c.getClip().easing),h=c.getDelay();if(p)f.push(p);else f.push("linear");if(h)f.push(h/1000+"s");if(c.getLoop())f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function g(d){var x=d[1],S=x.length,w={},T={},A={},M="animation-timing-function";function D(Zt,Rt,oe){var Vt=Zt.getTracks(),N=Zt.getMaxTime();for(var vt=0;vt<Vt.length;vt++){var ut=Vt[vt];if(ut.needsAnimate()){var{keyframes:q,propName:X}=ut;if(oe&&(X=oe(X)),X)for(var lt=0;lt<q.length;lt++){var At=q[lt],Ct=Math.round(At.time/N*100)+"%",pt=wW(At.easing),Ht=At.rawValue;if(ht(Ht)||ue(Ht)){if(Rt[Ct]=Rt[Ct]||{},Rt[Ct][X]=At.rawValue,pt)Rt[Ct][M]=pt}}}}}for(var L=0;L<S;L++){var I=x[L],E=I.targetName;if(!E)!i&&D(I,w);else if(E==="shape")D(I,T)}for(var R in w){var B={};_a(B,r),et(B,w[R]);var z=Wx(B),V=w[R][M];if(A[R]=z?{transform:z}:{},r_t(A[R],B),V)A[R][M]=V}var H,K=!0;for(var R in T){A[R]=A[R]||{};var F=!H,V=T[R][M];if(F)H=new Fi;var G=H.len();H.reset(),A[R].d=e_t(r,T[R],H);var rt=H.len();if(!F&&G!==rt){K=!1;break}if(V)A[R][M]=V}if(!K)for(var R in A)delete A[R].d;if(!i)for(var L=0;L<S;L++){var I=x[L],E=I.targetName;if(E==="style")D(I,A,function(Vt){return i_t[Vt]})}var ot=le(A),at=!0,mt;for(var L=1;L<ot.length;L++){var Tt=ot[L-1],Ut=ot[L];if(A[Tt][bh]!==A[Ut][bh]){at=!1;break}mt=A[Tt][bh]}if(at&&mt){for(var R in A)if(A[R][bh])delete A[R][bh];e[bh]=mt}if(be(ot,function(Zt){return le(A[Zt]).length>0}).length){var qt=TW(A,t);return qt+" "+d[0]+" both"}}for(var y in l){var s=g(l[y]);if(s)o.push(s)}if(o.length){var m=t.zrId+"-cls-"+ow();t.cssNodes["."+m]={animation:o.join(",")},e.class=m}}var bW,bh="transform-origin",i_t;var AW=k(()=>{No();r0();iI();ao();vp();Z();kM();Px();bW={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"};i_t={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"}});function EW(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};CW(i,e,t,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=n.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0?s||o:o;if(l)a=Ag(l)}var u=n.lineWidth;if(u){var c=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var i={cursor:"pointer"};if(a)i.fill=a;if(n.stroke)i.stroke=n.stroke;if(u)i["stroke-width"]=u;CW(i,e,t,!0)}}function CW(r,e,t,i){var n=JSON.stringify(r),a=t.cssStyleCache[n];if(!a)a=t.zrId+"-cls-"+ow(),t.cssStyleCache[n]=a,t.cssNodes["."+a+(i?":hover":"")]=r;e.class=e.class?e.class+" "+a:a}var MW=k(()=>{sn()});function PW(r){return r&&ht(r.src)}function RW(r){return r&&Mt(r.toDataURL)}function uI(r,e,t,i){aI(function(n,a){var o=n==="fill"||n==="stroke";if(o&&Gx(a))hI(e,r,n,i);else if(o&&Cg(a))dI(t,r,n,i);else r[n]=a;if(o&&i.ssr&&a==="none")r["pointer-events"]="visible"},e,t,!1),f_t(t,r,i)}function cI(r,e){var t=tF(e);if(t){if(t.each(function(i,n){i!=null&&(r[(sI+n).toLowerCase()]=i+"")}),e.isSilent())r[sI+"silent"]="true"}}function LW(r){return ml(r[0]-1)&&ml(r[1])&&ml(r[2])&&ml(r[3]-1)}function a_t(r){return ml(r[4])&&ml(r[5])}function fI(r,e,t){if(e&&!(a_t(e)&&LW(e))){var i=t?10:1e4;r.transform=LW(e)?"translate("+n0(e[4]*i)/i+" "+n0(e[5]*i)/i+")":w5(e)}}function DW(r,e,t){var i=r.points,n=[];for(var a=0;a<i.length;a++)n.push(n0(i[a][0]*t)/t),n.push(n0(i[a][1]*t)/t);e.points=n.join(" ")}function IW(r){return!r.smooth}function o_t(r){var e=nt(r,function(t){return typeof t==="string"?[t,t]:t});return function(t,i,n){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];if(s!=null)i[o[1]]=n0(s*n)/n}}}function l_t(r){var e=r.animators;for(var t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function OW(r,e){var{style:t,shape:i}=r,n=s_t[r.type],a={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Hx(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&l_t(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);n[0](i,a,c)}else{var f=!r.path||r.shapeChanged();if(!r.path)r.createPathProxy();var p=r.path;if(f)p.beginPath(),r.buildPath(p,r.shape),r.pathUpdated();var h=p.getVersion(),v=r,g=v.__svgPathBuilder;if(v.__svgPathVersion!==h||!g||l!==v.__svgPathStrokePercent){if(!g)g=v.__svgPathBuilder=new nw;g.reset(u),p.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l}a.d=g.getStr()}return fI(a,r.transform),uI(a,t,r,e),cI(a,r),e.animation&&i0(r,a,e),e.emphasis&&EW(r,a,e),Si(s,r.id+"",a)}function u_t(r,e){var t=r.style,i=t.image;if(i&&!ht(i)){if(PW(i))i=i.src;else if(RW(i))i=i.toDataURL()}if(!i)return;var n=t.x||0,a=t.y||0,{width:o,height:s}=t,l={href:i,width:o,height:s};if(n)l.x=n;if(a)l.y=a;return fI(l,r.transform),uI(l,t,r,e),cI(l,r),e.animation&&i0(r,l,e),Si("image",r.id+"",l)}function c_t(r,e){var t=r.style,i=t.text;if(i!=null&&(i+=""),!i||isNaN(t.x)||isNaN(t.y))return;var n=t.font||pa,a=t.x||0,o=A5(t.y||0,wp(n),t.textBaseline),s=T5[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(pM(t)){var u="",c=t.fontStyle,f=fM(t.fontSize);if(!parseFloat(f))return;var p=t.fontFamily||O2,h=t.fontWeight;if(u+="font-size:"+f+";font-family:"+p+";",c&&c!=="normal")u+="font-style:"+c+";";if(h&&h!=="normal")u+="font-weight:"+h+";";l.style=u}else l.style="font: "+n;if(i.match(/\s/))l["xml:space"]="preserve";if(a)l.x=a;if(o)l.y=o;return fI(l,r.transform),uI(l,t,r,e),cI(l,r),e.animation&&i0(r,l,e),Si("text",r.id+"",l,void 0,i)}function pI(r,e){if(r instanceof $t)return OW(r,e);else if(r instanceof _r)return u_t(r,e);else if(r instanceof Tu)return c_t(r,e)}function f_t(r,e,t){var i=r.style;if(C5(i)){var n=E5(r),a=t.shadowCache,o=a[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,f=i.shadowOffsetY||0,p=i.shadowBlur,h=Dc(i.shadowColor),{opacity:v,color:g}=h,y=p/2/l,m=p/2/u,d=y+" "+m;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Si("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Si("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:d,"flood-color":g,"flood-opacity":v})]),a[n]=o}e.filter=Eg(o)}}function hI(r,e,t,i){var n=r[t],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Vx(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(Fx(n))a="radialGradient",o.cx=St(n.x,0.5),o.cy=St(n.y,0.5),o.r=St(n.r,0.5);else return;var s=n.colorStops,l=[];for(var u=0,c=s.length;u<c;++u){var f=Ux(s[u].offset)*100+"%",p=s[u].color,h=Dc(p),{color:v,opacity:g}=h,y={offset:f};if(y["stop-color"]=v,g<1)y["stop-opacity"]=g;l.push(Si("stop",u+"",y))}var m=Si(a,"",o,l),d=t0(m),x=i.gradientCache,S=x[d];if(!S)S=i.zrId+"-g"+i.gradientIdx++,x[d]=S,o.id=S,i.defs[S]=Si(a,S,o,l);e[t]=Eg(S)}function dI(r,e,t,i){var n=r.style[t],a=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(cE(n)){var{imageWidth:p,imageHeight:h}=n,v=void 0,g=n.image;if(ht(g))v=g;else if(PW(g))v=g.src;else if(RW(g))v=g.toDataURL();if(typeof Image>"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";xe(p,y),xe(h,y)}else if(p==null||h==null){var m=function(L,I){if(L){var E=L.elm,R=p||I.width,B=h||I.height;if(L.tag==="pattern"){if(u)B=1,R/=a.width;else if(c)R=1,B/=a.height}if(L.attrs.width=R,L.attrs.height=B,E)E.setAttribute("width",R),E.setAttribute("height",B)}},d=Vg(v,null,r,function(L){l||m(T,L),m(f,L)});if(d&&d.width&&d.height)p=p||d.width,h=h||d.height}f=Si("image","img",{href:v,width:p,height:h}),o.width=p,o.height=h}else if(n.svgElement)f=It(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight;if(!f)return;var x,S;if(l)x=S=1;else if(u)S=1,x=o.width/a.width;else if(c)x=1,S=o.height/a.height;else o.patternUnits="userSpaceOnUse";if(x!=null&&!isNaN(x))o.width=x;if(S!=null&&!isNaN(S))o.height=S;var w=Wx(n);w&&(o.patternTransform=w);var T=Si("pattern","",o,[f]),A=t0(T),M=i.patternCache,D=M[A];if(!D)D=i.zrId+"-p"+i.patternIdx++,M[A]=D,o.id=D,T=i.defs[D]=Si("pattern",D,o,[f]);e[t]=Eg(D)}function kW(r,e,t){var{clipPathCache:i,defs:n}=t,a=i[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};i[r.id]=a,n[a]=Si("clipPath",a,o,[OW(r,t)])}e["clip-path"]=Eg(a)}var n0,s_t;var NW=k(()=>{vp();Br();Yo();Hn();Yg();iI();gW();r0();Z();vS();AW();Bp();Ja();MW();aS();n0=Math.round;s_t={circle:[o_t(["cx","cy","r"])],polyline:[DW,IW],polygon:[DW,IW]}});function vI(r){return document.createTextNode(r)}function lf(r,e,t){r.insertBefore(e,t)}function mI(r,e){r.removeChild(e)}function gI(r,e){r.appendChild(e)}function yI(r){return r.parentNode}function _I(r){return r.nextSibling}function sw(r,e){r.textContent=e}function xI(r){return r===void 0}function jl(r){return r!==void 0}function v_t(r,e,t){var i={};for(var n=e;n<=t;++n){var a=r[n].key;if(a!==void 0)i[a]=n}return i}function a0(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function o0(r){var e,{children:t,tag:i}=r;if(jl(i)){var n=r.elm=aw(i);if(uw(d_t,r),it(t))for(e=0;e<t.length;++e){var a=t[e];if(a!=null)gI(n,o0(a))}else if(jl(r.text)&&!Pt(r.text))gI(n,vI(r.text))}else r.elm=vI(r.text);return r.elm}function BW(r,e,t,i,n){for(;i<=n;++i){var a=t[i];if(a!=null)lf(r,o0(a),e)}}function lw(r,e,t,i){for(;t<=i;++t){var n=e[t];if(n!=null)if(jl(n.tag)){var a=yI(n.elm);mI(a,n.elm)}else mI(r,n.elm)}}function uw(r,e){var t,i=e.elm,n=r&&r.attrs||{},a=e.attrs||{};if(n===a)return;for(t in a){var o=a[t],s=n[t];if(s!==o)if(o===!0)i.setAttribute(t,"");else if(o===!1)i.removeAttribute(t);else if(t==="style")i.style.cssText=o;else if(t.charCodeAt(0)!==h_t)i.setAttribute(t,o);else if(t==="xmlns:xlink"||t==="xmlns")i.setAttributeNS(_W,t,o);else if(t.charCodeAt(3)===zW)i.setAttributeNS(xW,t,o);else if(t.charCodeAt(5)===zW)i.setAttributeNS(oI,t,o);else i.setAttribute(t,o)}for(t in n)if(!(t in a))i.removeAttribute(t)}function m_t(r,e,t){var i=0,n=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],c=t[l],f,p,h,v;while(i<=a&&n<=l)if(o==null)o=e[++i];else if(s==null)s=e[--a];else if(u==null)u=t[++n];else if(c==null)c=t[--l];else if(a0(o,u))Uv(o,u),o=e[++i],u=t[++n];else if(a0(s,c))Uv(s,c),s=e[--a],c=t[--l];else if(a0(o,c))Uv(o,c),lf(r,o.elm,_I(s.elm)),o=e[++i],c=t[--l];else if(a0(s,u))Uv(s,u),lf(r,s.elm,o.elm),s=e[--a],u=t[++n];else{if(xI(f))f=v_t(e,i,a);if(p=f[u.key],xI(p))lf(r,o0(u),o.elm);else if(h=e[p],h.tag!==u.tag)lf(r,o0(u),o.elm);else Uv(h,u),e[p]=void 0,lf(r,h.elm,o.elm);u=t[++n]}if(i<=a||n<=l)if(i>a)v=t[l+1]==null?null:t[l+1].elm,BW(r,v,t,n,l);else lw(r,e,i,a)}function Uv(r,e){var t=e.elm=r.elm,i=r.children,n=e.children;if(r===e)return;if(uw(r,e),xI(e.text)){if(jl(i)&&jl(n)){if(i!==n)m_t(t,i,n)}else if(jl(n)){if(jl(r.text))sw(t,"");BW(t,null,n,0,n.length-1)}else if(jl(i))lw(t,i,0,i.length-1);else if(jl(r.text))sw(t,"")}else if(r.text!==e.text){if(jl(i))lw(t,i,0,i.length-1);sw(t,e.text)}}function SI(r,e){if(a0(r,e))Uv(r,e);else{var t=r.elm,i=yI(t);if(o0(e),i!==null)lf(i,e.elm,_I(t)),lw(i,[r],0,0)}return e}var zW=58,h_t=120,d_t;var UW=k(()=>{Z();r0();d_t=Si("","")});function __t(r){return function(){}}function x_t(r,e,t,i){var n;if(t&&t!=="none")if(n=Si("rect","bg",{width:r,height:e,x:"0",y:"0"}),Gx(t))hI({fill:t},n.attrs,"fill",i);else if(Cg(t))dI({style:{fill:t},dirty:ar,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",i);else{var a=Dc(t),{color:o,opacity:s}=a;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}var g_t=0,y_t,VW;var FW=k(()=>{NW();r0();vp();Z();UW();y_t=function(){function r(e,t,i){if(this.type="svg",this.configLayer=__t("configLayer"),this.storage=t,this._opts=i=et({},i),this.root=e,this._id="zr"+g_t++,this._oldVNode=lI(i.width,i.height),e&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=aw("svg");uw(null,this._oldVNode),n.appendChild(a),e.appendChild(n)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",SI(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return pI(e,e0(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=e0(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=x_t(i,n,this._backgroundColor,a);s&&o.push(s);var l=!e.compress?this._mainVNode=Si("g","main",{},[]):null;this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=nt(le(a.defs),function(p){return a.defs[p]});if(u.length)o.push(Si("defs","defs",{},u));if(e.animation){var c=SW(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Si("style","stl",{},[],c);o.push(f)}}return lI(i,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},t0(this.renderToVNode({animation:St(e.cssAnimation,!0),emphasis:St(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:St(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){var n=e.length,a=[],o=0,s,l,u=0;for(var c=0;c<n;c++){var f=e[c];if(!f.invisible){var p=f.__clipPaths,h=p&&p.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(h-1,v-1);g>=0;g--)if(p&&l&&p[g]===l[g])break;for(var y=v-1;y>g;y--)o--,s=a[o-1];for(var m=g+1;m<h;m++){var d={};kW(p[m],d,t);var x=Si("g","clip-g-"+u++,d,[]);(s?s.children:i).push(x),a[o++]=x,s=x}l=p;var S=pI(f,t);if(S)(s?s.children:i).push(S)}}},r.prototype.resize=function(e,t){var i=this._opts,n=this.root,a=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),n&&a)a.style.display="none",e=$c(n,0,i),t=$c(n,1,i),a.style.display="";if(this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(!Cg(this._backgroundColor)){var s=this._svgDom;if(s)s.setAttribute("width",e),s.setAttribute("height",t);var l=this._bgVNode&&this._bgVNode.elm;if(l)l.setAttribute("width",e),l.setAttribute("height",t)}else this.refresh()}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){if(this.root)this.root.innerHTML="";this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){if(this._svgDom)this._svgDom.innerHTML=null;this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";if(e)return t=M5(t),t&&i+"base64,"+t;return i+"charset=UTF-8,"+encodeURIComponent(t)},r}();VW=y_t});function bI(r){r.registerPainter("svg",VW)}var GW=k(()=>{FW()});function HW(r,e,t){var i=ri.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;if(o)o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r);return i.width=n*t,i.height=a*t,i}function cw(r){return!r.__cursors.get(UM)}function WW(r){var e=r.__cursors.get(UM);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var S_t,wI;var YW=k(()=>{Wr();Z();_p();fl();m1();fr();Ja();S_t=function(r){Ee(e,r);function e(t,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=0.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=$d,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;if(n=n||yp,typeof t==="string")o=HW(t,i,n);else if(Pt(t))o=t,t=o.id;a.id=t,a.dom=o;var s=o.style;if(s)dx(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0";return a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=WW(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;if(this.domBack=HW("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1)this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Gt(0,0,0,0);function c(S){if(!S.isFinite()||S.isZero())return;if(o.length===0){var w=new Gt(0,0,0,0);w.copy(S),o.push(w)}else{var T=!1,A=1/0,M=0;for(var D=0;D<o.length;++D){var L=o[D];if(L.intersect(S)){var I=new Gt(0,0,0,0);I.copy(L),I.union(S),o[D]=I,T=!0;break}else if(l){u.copy(S),u.union(L);var E=S.width*S.height,R=L.width*L.height,B=u.width*u.height,z=B-E-R;if(z<A)A=z,M=D}}if(l)o[M].union(S),T=!0;if(!T){var w=new Gt(0,0,0,0);w.copy(S),o.push(w)}if(!l)l=o.length>=s}}var f=WW(this);for(var p=f.startIdx;p<f.endIdx;++p){var h=t[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),g=h.__isRendered&&(h.__dirty&Ci||!v)?h.getPrevPaintRect():null;if(g)c(g);var y=v&&(h.__dirty&Ci||!h.__isRendered)?h.getPaintRect():null;if(y)c(y)}}var m=this.__prevIdx;for(var p=m.startIdx;p<m.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var g=h.getPrevPaintRect();if(g)c(g)}}var d;do{d=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var x=p+1;x<o.length;)if(o[p].intersect(o[x]))d=!0,o[p].union(o[x]),o.splice(x,1);else x++;p++}}while(d);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;if(o)o.width=t+"px",o.height=i+"px";if(a.width=t*n,a.height=i*n,s){if(s.width=t*n,s.height=i*n,n!==1)this.ctxBack.scale(n,n)}},e.prototype.clear=function(t,i,n){var a=this.dom,o=this.ctx,{width:s,height:l}=a;i=i||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,f=this.dpr,p=this;if(u){if(!this.domBack)this.createBackBuffer();this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f)}var h=this.domBack;function v(g,y,m,d){if(o.clearRect(g,y,m,d),i&&i!=="transparent"){var x=void 0;if(Sc(i)){var S=i.global||i.__width===m&&i.__height===d;x=S&&i.__canvasGradient||Ly(o,i,{x:0,y:0,width:m,height:d}),i.__canvasGradient=x,i.__width=m,i.__height=d}else if(IV(i))i.scaleX=i.scaleX||f,i.scaleY=i.scaleY||f,x=d1(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}});o.save(),o.fillStyle=x||i,o.fillRect(g,y,m,d),o.restore()}if(u)o.save(),o.globalAlpha=c,o.drawImage(h,g,y,m,d),o.restore()}if(!n||u)v(0,0,s,l);else if(n.length)P(n,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},e}(Ai),wI=S_t});function w_t(r){if(!r)return!1;if(r.__builtin__)return!0;if(typeof r.resize!=="function"||typeof r.refresh!=="function")return!1;return!0}function T_t(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function jW(r,e,t,i){var n=new wI(r,e,e.dpr);return n.zlevel=t,n.zlevel2=i,n.__builtin__=!0,XW(n),n}function XW(r){r.__cursorStack=[],r.__cursors=gt()}function A_t(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function C_t(r,e){var t=r.__cursors,i=+e;return t.get(i)||(r.__cursorStack.push(i),t.set(i,A_t({key:i})))}function fw(r,e){var t=r.__cursorStack;for(var i=0;i<t.length;i++)e(r.__cursors.get(t[i]))}function CI(r,e){var t=r.layers;return t[e]||(t[e]=[,,,])}function kn(r,e,t){var i=r.layerStack;for(var n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=r.layers[a][o];if(!t||(!(t&s0)||s.__builtin__)&&(!(t&EI)||!s.__builtin__)&&(!(t&KW)||s!==r.hoverlayer))e(s,a,o,n)}}var ZW=1e5,wh=314159,TI=void 0,b_t=1,AI=2,s0=1,EI=2,KW=4,pw,E_t,qW;var JW=k(()=>{_p();Z();YW();iE();Vi();m1();Ja();pw=s0|KW,E_t=function(){function r(e,t,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=et({},i||{}),this.dpr=i.devicePixelRatio||yp,this._singleCanvas=a,this.root=e;var o=e.style;if(o)dx(e),e.innerHTML="";if(this.storage=t,this._prevDisplayList=[],!a){this._width=$c(e,0,i),this._height=$c(e,1,i);var s=this._domRoot=T_t(this._width,this._height);e.appendChild(s)}else{var l=e,{width:u,height:c}=l;if(i.width!=null)u=i.width;if(i.height!=null)c=i.height;this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var f=jW(l,this,wh,$d);f.initContext(),this._insertLayer(f,wh,$d,!0),this._domRoot=e}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;if(e&&!Pt(e))t={paintAll:!!e};else t=e||{};var i=St(t.refresh,!0),n=St(t.refreshHover,!1);if(n)this._hoverLayerDirty=AI;if(!i){if(n)this._paintHoverList(this.storage.getDisplayList(!1));return this}var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;if(kn(this._i,function(l,u,c,f){if(l.refresh)l.refresh(f===0?s:null)},EI),this._opts.useDirtyRect)this._prevDisplayList=a.slice();return this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=TI,i===TI)return;if(!t&&i===AI)t=this._i.hoverlayer=this._ensureLayer(ZW);if(!t)return;t.clear();var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a;for(var o=0,s=e.length;o<s;o++){var l=e[o];if(!l.__inHover)continue;if(!a)a=t.ctx,a.save();var u=l.__hoverStyle,c=void 0;if(u)c=l.style,l.style=u;if(Qc(a,l,n),u)l.style=c}if(a)fh(a,n),a.restore()},r.prototype.getHoverLayer=function(){return this._ensureLayer(ZW)},r.prototype.paintOne=function(e,t){v1(e,t)},r.prototype._paintList=function(e,t,i){if(this._redrawId!==i)return;var n=this._doPaintList(e,t);if(this._needsManuallyCompositing)this._compositeManually();if(!n){var a=this;xg(function(){a._paintList(e,t,i)})}else kn(this._i,function(o){o.afterBrush&&o.afterBrush()},pw),this._paintHoverList(e)},r.prototype._compositeManually=function(){var e=this._ensureLayer(wh).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),kn(this._i,function(n){if(n.virtual)e.drawImage(n.dom,0,0,t,i)},s0)},r.prototype._doPaintList=function(e,t){var i=this,n=!0;if(kn(this._i,function(a){var o=!1;if(fw(a,function(f){if(f.drawIdx<f.endIdx||f.notClearIdx>=0)o=!0}),!o&&!a.__dirty)return;var s=i._opts.useDirtyRect&&!cw(a)?a.createRepaintRects(e,t,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var c=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,c,s)}fw(a,function(f){var p=i._paintPerCursor(a,f,e,s,u);n=n&&p})},pw),Te.wxa)kn(this._i,function(a){if(a&&a.ctx&&a.ctx.draw)a.ctx.draw()});return n},r.prototype._paintPerCursor=function(e,t,i,n,a){var o=e.ctx;if(n)if(!n.length)t.drawIdx=t.endIdx;else{var s=this.dpr;for(var l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,i,u,a),o.restore()}}else o.save(),this._paintPerCursorInRect(e,t,i,null,a),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,i,n,a){var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=cw(e),u=l&&ri.getTime(),{drawIdx:c,notClearIdx:f}=t,p=f>=0?Math.min(f,c):c;for(;p<t.endIdx;p++){var h=i[p];if(p<c&&!h.notClear)continue;if(h.__inHover)this._hoverLayerDirty=AI;if(n!=null){var v=h.getPaintRect();if(v&&v.intersect(n))Qc(s,h,o),h.setPrevPaintRect(v)}else Qc(s,h,o);if(l){var g=ri.getTime()-u;if(g>15){p++;break}}}fh(s,o),t.drawIdx=Math.max(p,c)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,i){t=t||0;var n=this._singleCanvas;if(n&&!this._needsManuallyCompositing)e=wh,t=0;var a=CI(this._i,e)[t];if(!a){if(a=jW("zr_"+e+"."+t,this,e,t),this._layerConfig[e])re(a,this._layerConfig[e],!0);if(i||n&&e!==wh)a.virtual=!0;this._insertLayer(a,e,t,!1),a.initContext()}return a},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,i,n){var a=this._i,{layers:o,layerStack:s}=a,l=this._domRoot,u=null;if(o[t]&&o[t][i])return;if(!w_t(e))return;var c=s.length,f=0;while(f<c&&(s[f].zl<t||s[f].zl===t&&s[f].zl2<i))f++;if(f>0)u=CI(a,s[f-1].zl)[s[f-1].zl2];if(s.splice(f,0,{zl:t,zl2:i}),CI(a,t)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;if(p.nextSibling)l.insertBefore(e.dom,p.nextSibling);else l.appendChild(e.dom)}else if(l.firstChild)l.insertBefore(e.dom,l.firstChild);else l.appendChild(e.dom);e.painter||(e.painter=this)},r.prototype.eachLayer=function(e,t){return kn(this._i,function(i,n){e.call(t,i,n)})},r.prototype.eachBuiltinLayer=function(e,t){return kn(this._i,function(i,n){e.call(t,i,n)},s0)},r.prototype.eachOtherLayer=function(e,t){return kn(this._i,function(i,n){e.call(t,i,n)},EI)},r.prototype.getLayers=function(){var e={};return kn(this._i,function(t,i,n){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}kn(i._i,function(y){y.__dirty=!1,fw(y,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},pw);var o,s=null,l=null,u=!1;for(var c=0,f=e.length;c<f;c++){var a=e[c],{zlevel:p,incremental:h}=a,v=void 0;if(o!==p)o=p,u=!1;if(h)u=!0,v=yG;else v=u?gG:$d;if(!s||p!==s.zlevel||v!==s.zlevel2){if(s=i._ensureLayer(p,v),l=null,!s.__builtin__){xs("ZLevel "+p+" has been used by unknown layer "+s.id);continue}}if(!l||h!==l.key){if(l=C_t(s,h),!l.used)if(l.used=!0,!t&&l.first===a.id){var g=c-l.startIdx;l.startIdx=c,l.drawIdx+=g,l.endIdx+=g}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=c,l.endIdx=c+1}if(l.endIdxNew=c+1,a.__dirty&Ci&&!a.__inHover){if(!h||!a.notClear&&c<l.drawIdx)s.__dirty=!0;if(h&&a.notClear&&l.notClearIdx<0)l.notClearIdx=c}}kn(i._i,function(y){var{__cursorStack:m,__cursors:d}=y;for(var x=m.length-1;x>=0;x--){var S=d.get(m[x]);if(!S.used)y.__dirty=!0,d.removeKey(m[x]),m.splice(x,1);else{var w=S.endIdxNew;if(cw(y)?w<S.drawIdx:w!==S.endIdx||!w||e[w-1].id!==S.last)y.__dirty=!0;S.endIdx=S.endIdxNew,S.last=w?e[w-1].id:NaN}}if(y.__dirty){if(fw(y,function(T){T.drawIdx=T.startIdx}),i._hoverLayerDirty===TI)i._hoverLayerDirty=b_t}},pw)},r.prototype.clear=function(){return kn(this._i,function(e){e.clear(),XW(e)},s0),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,kn(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;if(!i[e])i[e]=t;else re(i[e],t,!0);kn(this._i,function(n,a){re(n,i[a],!0)})}},r.prototype.delLayer=function(e){var t=this._i.layerStack,i=this._i.layers;for(var n=t.length-1;n>=0;n--){var a=t[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(t.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(!this._domRoot.style){if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(wh).resize(e,t)}else{var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(e!=null&&(n.width=e),t!=null&&(n.height=t),e=$c(a,0,n),t=$c(a,1,n),i.style.display="",this._width!==e||t!==this._height)i.style.width=e+"px",i.style.height=t+"px",kn(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0});this._width=e,this._height=t}return this},r.prototype.clearLayer=function(e){P(this._i.layers[e],function(t){if(t&&!t.__builtin__)t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[wh][0].dom;var t=new wI("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,a=t.dom.height;kn(this._i,function(f){if(f.__builtin__)i.drawImage(f.dom,0,0,n,a);else if(f.renderToCanvas)i.save(),f.renderToCanvas(i),i.restore()})}else{var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0);for(var l=0,u=s.length;l<u;l++){var c=s[l];Qc(i,c,o)}fh(i,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}(),qW=E_t});function MI(r){r.registerPainter("canvas",qW)}var $W=k(()=>{JW()});var QW=k(()=>{GW();$W()});var M_t,tY;var eY=k(()=>{dt();Nl();Zr();qi();jt();we();M_t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(!1)var i;return $i(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new Lt,n=ir("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(n),n.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*0.8,u=ir(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?o:t.iconRotate||0;if(u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1)u.style.stroke=u.style.fill,u.style.fill=Q.color.neutral00,u.style.lineWidth=2;return i},e.type="series.line",e.dependencies=["grid","polar"],e.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(Pe),tY=M_t});function Xs(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var n=Uu(r,e,t[0]);return n!=null?n+"":null}else if(i){var a=[];for(var o=0;o<t.length;o++)a.push(Uu(r,e,t[o]));return a.join(" ")}}function hw(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!it(e))return e+"";var i=[];for(var n=0;n<t.length;n++){var a=r.getDimensionIndex(t[n]);if(a>=0)i.push(e[a])}return i.join(" ")}var Vv=k(()=>{sh();Z()});function D_t(r,e){this.parent.drift(r,e)}var L_t,ju;var l0=k(()=>{dt();qi();jt();lr();tr();Vv();Z();rr();Yo();Ki();L_t=function(r){W(e,r);function e(t,i,n,a){var o=r.call(this)||this;return o.updateData(t,i,n,a),o}return e.prototype._createSymbol=function(t,i,n,a,o,s){this.removeAll();var l=ir(t,-1,-1,2,2,null,s);l.attr({z2:St(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=D_t,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){An(this.childAt(0))},e.prototype.downplay=function(){Cn(this.childAt(0))},e.prototype.setZ=function(t,i){var n=this.childAt(0);n.zlevel=t,n.z=i},e.prototype.setDraggable=function(t,i){var n=this.childAt(0);n.draggable=t,n.cursor=!i&&t?"move":n.cursor},e.prototype.updateData=function(t,i,n,a){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=e.getSymbolZ2(t,i),c=o!==this._symbolType,f=a&&a.disableAnimation;if(c){var p=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,u,p)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):ge(h,v,s,i),pi(h)}if(this._updateCommon(t,i,l,n,a),c){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ze(h,v,s,i)}}if(f)this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,n,a,o){var s=this.childAt(0),l=t.hostModel,u,c,f,p,h,v,g,y,m;if(a)u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,p=a.focus,h=a.blurScope,g=a.labelStatesModels,y=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled;if(!a||t.hasItemOption){var d=a&&a.itemModel?a.itemModel:t.getItemModel(i),x=d.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=d.getModel(["select","itemStyle"]).getItemStyle(),c=d.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),h=x.get("blurScope"),v=x.get("disabled"),g=er(d),y=x.getShallow("scale"),m=d.getShallow("cursor")}var S=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=uo(t.getItemVisual(i,"symbolOffset"),n);if(w)s.x=w[0],s.y=w[1];m&&s.attr("cursor",m);var T=t.getItemVisual(i,"style"),A=T.fill;if(s instanceof _r){var M=s.style;s.useStyle(et({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},T))}else{if(s.__isEmptyBrush)s.useStyle(et({},T));else s.useStyle(T);s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0}var D=t.getItemVisual(i,"liftZ"),L=this._z2;if(D!=null){if(L==null)this._z2=s.z2,s.z2+=D}else if(L!=null)s.z2=L,this._z2=null;var I=o&&o.useNameLabel;or(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:E,inheritColor:A,defaultOpacity:T.opacity});function E(z){return I?t.getName(z):Xs(t,z)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var B=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;R.scaleX=this._sizeX*B,R.scaleY=this._sizeY*B,this.setSymbolScale(1),Ie(this,p,h,v)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,n){var a=this.childAt(0),o=Yt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();if(l)jo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();jo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return Us(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e}(Lt);ju=L_t});function dw(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(t))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function rY(r){if(r!=null&&!Pt(r))r={isIgnore:r};return r||{}}function iY(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:er(e),cursorStyle:e.get("cursor")}}function nY(r,e,t,i,n,a,o){var s=new r(e,t,i,n);return s.setPosition(a),e.setItemGraphicEl(t,s),o.add(s),s}var I_t,Xl;var Fv=k(()=>{jt();l0();Z();rr();I_t=function(){function r(e){this.group=new Lt,this._SymbolCtor=e||ju}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=rY(t);var i=this.group,n=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=iY(e),u={disableAnimation:s},c=t.getSymbolPoint||function(f){return e.getItemLayout(f)};if(!a)i.removeAll();e.diff(a).add(function(f){var p=c(f);if(dw(e,p,f,t))nY(o,e,f,l,u,p,i)}).update(function(f,p){var h=a.getItemGraphicEl(p),v=c(f);if(!dw(e,v,f,t)){i.remove(h);return}var g=e.getItemVisual(f,"symbol")||"circle",y=h&&h.getSymbolType&&h.getSymbolType();if(!h||y&&y!==g)i.remove(h),h=new o(e,f,l,u),h.setPosition(v);else{h.updateData(e,f,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):ge(h,m,n)}i.add(h),e.setItemGraphicEl(f,h)}).remove(function(f){var p=a.getItemGraphicEl(f);p&&p.fadeOut(function(){i.remove(p)},n)}).execute(),this._getSymbolPoint=c,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(!t)return;var i=this,n=t.getStore();for(var a=0,o=n.count();a<o;a++){var s=t.getItemGraphicEl(a),l=i._getSymbolPoint(a);if(dw(t,l,a,e))s=s||nY(i._SymbolCtor,t,a,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw();else if(s)i.group.remove(s),t.setItemGraphicEl(a,null)}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=iY(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,n){this._progressiveEls=[],n=rY(n);function a(u){if(!u.isGroup)u.incremental=i,u.ensureState("emphasis").hoverLayer=Rs}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(dw(t,s,o,n)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;if(i&&e)i.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},i.hostModel)});else t.removeAll()},r}(),Xl=I_t});function vw(r,e,t){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=P_t(n,t),o=i.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=nt(r.dimensions,function(v){return e.mapDimension(v)}),p=!1,h=e.getCalculationInfo("stackResultDimension");if(co(e,f[0]))p=!0,f[0]=h;if(co(e,f[1]))p=!0,f[1]=h;return{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function P_t(r,e){var t=0,i=r.scale.getExtent();if(e==="start")t=i[0];else if(e==="end")t=i[1];else if(ue(e)&&!isNaN(e))t=e;else if(i[0]>0)t=i[0];else if(i[1]<0)t=i[1];return t}function mw(r,e,t,i){var n=NaN;if(r.stacked)n=t.get(t.getCalculationInfo("stackedOverDimension"),i);if(isNaN(n))n=r.valueStart;var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,i),o[1-a]=n,e.dataToPoint(o)}function Ba(r,e){return!isFinite(r)||!isFinite(e)}var gw=k(()=>{Wu();Z()});function ia(r){return yw({ctor:R_t},r).arr}function yw(r,e){var{arr:t,ctor:i}=r;if(e>Nd)e=Nd;if(!t||r.typed&&t.length<e){var n=void 0;if(i)try{n=new i(e),r.typed=!0,t&&n.set(t)}catch(s){}if(!n){if(n=[],r.typed=!1,t)for(var a=0,o=t.length;a<o;a++)n[a]=t[a]}r.arr=n}return r}var R_t,aY;var Th=k(()=>{gi();te();R_t=typeof Float32Array!==Fc?Float32Array:void 0,aY=typeof Float64Array!==Fc?Float64Array:void 0});function O_t(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,n){t.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function LI(r,e,t,i,n,a,o,s){var l=O_t(r,e),u=[],c=[],f=[],p=[],h=[],v=[],g=[],y=vw(n,e,o),m=r.getLayout("points")||[],d=e.getLayout("points")||[];for(var x=0;x<l.length;x++){var S=l[x],w=!0,T=void 0,A=void 0;switch(S.cmd){case"=":T=S.idx*2,A=S.idx1*2;var M=m[T],D=m[T+1],L=d[A],I=d[A+1];if(isNaN(M)||isNaN(D))M=L,D=I;u.push(M,D),c.push(L,I),f.push(t[T],t[T+1]),p.push(i[A],i[A+1]),g.push(e.getRawIndex(S.idx1));break;case"+":var E=S.idx,R=y.dataDimsForPoint,B=n.dataToPoint([e.get(R[0],E),e.get(R[1],E)]);A=E*2,u.push(B[0],B[1]),c.push(d[A],d[A+1]);var z=mw(y,n,e,E);f.push(z[0],z[1]),p.push(i[A],i[A+1]),g.push(e.getRawIndex(E));break;case"-":w=!1}if(w)h.push(S),v.push(v.length)}v.sort(function(Tt,Ut){return g[Tt]-g[Ut]});var V=u.length,H=ia(V),K=ia(V),F=ia(V),G=ia(V),rt=[];for(var x=0;x<v.length;x++){var ot=v[x],at=x*2,mt=ot*2;H[at]=u[mt],H[at+1]=u[mt+1],K[at]=c[mt],K[at+1]=c[mt+1],F[at]=f[mt],F[at+1]=f[mt+1],G[at]=p[mt],G[at+1]=p[mt+1],rt[x]=h[ot]}return{current:H,next:K,stackedOnCurrent:F,stackedOnNext:G,status:rt}}var oY=k(()=>{gw();Th()});function DI(r,e,t,i,n,a,o,s,l){var u,c,f,p,h,v,g=t,y=0;for(;y<i;y++){var m=e[g*2],d=e[g*2+1];if(g>=n||g<0)break;if(Ba(m,d)){if(l){g+=a;continue}break}if(g===t)r[a>0?"moveTo":"lineTo"](m,d),f=m,p=d;else{var x=m-u,S=d-c;if(x*x+S*S<0.5){g+=a;continue}if(o>0){var w=g+a,T=e[w*2],A=e[w*2+1];while(T===m&&A===d&&y<i)y++,w+=a,g+=a,T=e[w*2],A=e[w*2+1],m=e[g*2],d=e[g*2+1],x=m-u,S=d-c;var M=y+1;if(l)while(Ba(T,A)&&M<i)M++,w+=a,T=e[w*2],A=e[w*2+1];var D=0.5,L=0,I=0,E=void 0,R=void 0;if(M>=i||Ba(T,A))h=m,v=d;else{L=T-u,I=A-c;var B=m-u,z=T-m,V=d-c,H=A-d,K=void 0,F=void 0;if(s==="x"){K=Math.abs(B),F=Math.abs(z);var G=L>0?1:-1;h=m-G*K*o,v=d,E=m+G*F*o,R=d}else if(s==="y"){K=Math.abs(V),F=Math.abs(H);var rt=I>0?1:-1;h=m,v=d-rt*K*o,E=m,R=d+rt*F*o}else K=Math.sqrt(B*B+V*V),F=Math.sqrt(z*z+H*H),D=F/(F+K),h=m-L*o*(1-D),v=d-I*o*(1-D),E=m+L*o*D,R=d+I*o*D,E=uf(E,cf(T,m)),R=uf(R,cf(A,d)),E=cf(E,uf(T,m)),R=cf(R,uf(A,d)),L=E-m,I=R-d,h=m-L*K/F,v=d-I*K/F,h=uf(h,cf(u,m)),v=uf(v,cf(c,d)),h=cf(h,uf(u,m)),v=cf(v,uf(c,d)),L=m-h,I=d-v,E=m+L*F/K,R=d+I*F/K}r.bezierCurveTo(f,p,h,v,m,d),f=E,p=R}else r.lineTo(m,d)}u=m,c=d,g+=a}return y}var uf,cf,sY,lY,k_t,_w;var II=k(()=>{dt();Br();ao();ga();we();gw();uf=Math.min,cf=Math.max;sY=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),lY=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new sY},e.prototype.buildPath=function(t,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0;o--)if(!Ba(n[o*2-2],n[o*2-1]))break;for(;a<o;a++)if(!Ba(n[a*2],n[a*2+1]))break}while(a<o)a+=DI(t,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){if(!this.path)this.createPathProxy(),this.buildPath(this.path,this.shape);var n=this.path,a=n.data,o=Fi.CMD,s,l,u=i==="x",c=[];for(var f=0;f<a.length;){var p=a[f++],h=void 0,v=void 0,g=void 0,y=void 0,m=void 0,d=void 0,x=void 0;switch(p){case o.M:s=a[f++],l=a[f++];break;case o.L:if(h=a[f++],v=a[f++],x=u?(t-s)/(h-s):(t-l)/(v-l),x<=1&&x>=0){var S=u?(v-l)*x+l:(h-s)*x+s;return u?[t,S]:[S,t]}s=h,l=v;break;case o.C:h=a[f++],v=a[f++],g=a[f++],y=a[f++],m=a[f++],d=a[f++];var w=u?hp(s,h,g,m,t,c):hp(l,v,y,d,t,c);if(w>0)for(var T=0;T<w;T++){var A=c[T];if(A<=1&&A>=0){var S=u?ni(l,v,y,d,A):ni(s,h,g,m,A);return u?[t,S]:[S,t]}}s=m,l=d;break}}},e}($t),k_t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(sY),_w=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new k_t},e.prototype.buildPath=function(t,i){var{points:n,stackedOnPoints:a}=i,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0;s--)if(!Ba(n[s*2-2],n[s*2-1]))break;for(;o<s;o++)if(!Ba(n[o*2],n[o*2+1]))break}while(o<s){var u=DI(t,n,o,s,s,1,i.smooth,l,i.connectNulls);DI(t,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e}($t)});function PI(r,e,t,i,n){var a=r.getArea(),{x:o,y:s,width:l,height:u}=a,c=t.get(["lineStyle","width"])||0;if(o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o))o=Math.floor(o),l++;var f=new ee({shape:{x:o,y:s,width:l,height:u}});if(e){var p=r.getBaseAxis(),h=p.isHorizontal(),v=p.inverse;if(h){if(v)f.shape.x+=l;f.shape.width=0}else{if(!v)f.shape.y+=u;f.shape.height=0}var g=Mt(n)?function(y){n(y,f)}:null;ze(f,{shape:{width:l,height:u,x:o,y:s}},t,null,i,g)}return f}function RI(r,e,t){var i=r.getArea(),n=Me(i.r0,1),a=Me(i.r,1),o=new Qr({shape:{cx:Me(r.cx,1),cy:Me(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";if(s)o.shape.endAngle=i.startAngle;else o.shape.r=n;ze(o,{shape:{endAngle:i.endAngle,r:a}},t)}return o}function ho(r,e,t,i,n){if(!r)return null;else if(r.type==="polar")return RI(r,e,t);else if(r.type==="cartesian2d")return PI(r,e,t,i,n);return null}function df(r,e,t){if(r)e.setClipPath(t);else e.removeClipPath()}function xw(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(0.1)}var ff=0,pf=1,hf=2;var Ks=k(()=>{jt();te();Z()});function ns(r,e){return r.type===e}function OI(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function Sw(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||Bt(r,"text")))}function bw(r,e,t){var i=r,n,a,o;if(e==="text")o=i;else{o={},Bt(i,"text")&&(o.text=i.text),Bt(i,"rich")&&(o.rich=i.rich),Bt(i,"textFill")&&(o.fill=i.textFill),Bt(i,"textStroke")&&(o.stroke=i.textStroke),Bt(i,"fontFamily")&&(o.fontFamily=i.fontFamily),Bt(i,"fontSize")&&(o.fontSize=i.fontSize),Bt(i,"fontStyle")&&(o.fontStyle=i.fontStyle),Bt(i,"fontWeight")&&(o.fontWeight=i.fontWeight),a={type:"text",style:o,silent:!0},n={};var s=Bt(i,"textPosition");if(t)n.position=s?i.textPosition:"inside";else s&&(n.position=i.textPosition);Bt(i,"textPosition")&&(n.position=i.textPosition),Bt(i,"textOffset")&&(n.offset=i.textOffset),Bt(i,"textRotation")&&(n.rotation=i.textRotation),Bt(i,"textDistance")&&(n.distance=i.textDistance)}return uY(o,r),P(o.rich,function(l){uY(l,l)}),{textConfig:n,textContent:a}}function uY(r,e){if(!e)return;e.font=e.textFont||e.font,Bt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Bt(e,"textAlign")&&(r.align=e.textAlign),Bt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Bt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Bt(e,"textWidth")&&(r.width=e.textWidth),Bt(e,"textHeight")&&(r.height=e.textHeight),Bt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Bt(e,"textPadding")&&(r.padding=e.textPadding),Bt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Bt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Bt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Bt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Bt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Bt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Bt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY)}function kI(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var n=i.textPosition.indexOf("inside")>=0,a=r.fill||Q.color.neutral99;cY(i,e);var o=i.textFill==null;if(n){if(o)i.textFill=t.insideFill||Q.color.neutral00,!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=a),i.textStrokeWidth==null&&(i.textStrokeWidth=2)}else{if(o)i.textFill=r.fill||t.outsideFill||Q.color.neutral00;!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)}return i.text=e.text,i.rich=e.rich,P(e.rich,function(s){cY(s,s)}),i}function cY(r,e){if(!e)return;Bt(e,"fill")&&(r.textFill=e.fill),Bt(e,"stroke")&&(r.textStroke=e.fill),Bt(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Bt(e,"font")&&(r.font=e.font),Bt(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Bt(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Bt(e,"fontSize")&&(r.fontSize=e.fontSize),Bt(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Bt(e,"align")&&(r.textAlign=e.align),Bt(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Bt(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Bt(e,"width")&&(r.textWidth=e.width),Bt(e,"height")&&(r.textHeight=e.height),Bt(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Bt(e,"padding")&&(r.textPadding=e.padding),Bt(e,"borderColor")&&(r.textBorderColor=e.borderColor),Bt(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Bt(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Bt(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Bt(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Bt(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Bt(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Bt(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Bt(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Bt(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Bt(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY)}var NI=k(()=>{Z();we()});function fY(r,e){if(r.length!==e.length)return;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}function pY(r){var e=$r(),t=$r();for(var i=0;i<r.length;){var n=r[i++],a=r[i++];if(!Ba(n,a))Ug(e,n),Ug(t,a)}return[e,t]}function hY(r,e){var t=pY(r),i=t[0],n=t[1],a=pY(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(n[1]-s[1]))}function dY(r){return ue(r)?r:r?0.5:0}function N_t(r,e,t){if(t.valueDim==null)return[];var i=e.count(),n=ia(i*2);for(var a=0;a<i;a++){var o=mw(t,r,e,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function vf(r,e,t,i,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],p=[];if(n){for(l=0;l<r.length;l+=2){var h=e||r;if(!Ba(h[l],h[l+1]))p.push(r[l],r[l+1])}r=p}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),i){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var v=(c[o]+f[o])/2,g=[];u[o]=g[o]=v,u[1-o]=c[1-o],g[1-o]=f[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function z_t(r,e){var t=[],i=r.length,n,a;function o(c,f,p){var h=c.coord,v=(p-h)/(f.coord-h),g=S5(v,[c.color,f.color]);return{coord:p,color:g}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){if(a)t.push(o(a,l,e));else if(n)t.push(o(n,l,0),o(n,l,e));break}else{if(n)t.push(o(n,l,0)),n=null;t.push(l),a=l}}return t}function B_t(r,e,t){var i=r.getVisual("visualMeta");if(!i||!i.length||!r.count())return;if(e.type!=="cartesian2d")return;var n,a;for(var o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(!a)return;var l=e.getAxis(n),u=nt(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();if(c&&u[0].coord>u[c-1].coord)u.reverse(),f.reverse();var p=z_t(u,n==="x"?t.getWidth():t.getHeight()),h=p.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=p[0].coord-v,y=p[h-1].coord+v,m=y-g;if(m<0.001)return"transparent";P(p,function(x){x.offset=(x.coord-g)/m}),p.push({offset:h?p[h-1].offset:0.5,color:f[1]||"transparent"}),p.unshift({offset:h?p[0].offset:0.5,color:f[0]||"transparent"});var d=new Zo(0,0,0,0,p,!0);return d[n]=g,d[n+"2"]=y,d}function U_t(r,e,t){var i=r.get("showAllSymbol"),n=i==="auto";if(i&&!n)return;var a=t.getAxesByScale("ordinal")[0];if(!a)return;if(n&&V_t(a,e))return;var o=e.mapDimension(a.dim),s={};return P(a.getViewLabels(),function(l){if(!l.tick.offInterval)s[Hs(a.scale,l.tick)]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}function V_t(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);var n=e.count(),a=Math.max(1,Math.round(n/5));for(var o=0;o<n;o+=a)if(ju.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function F_t(r){var e=r.length/2;for(;e>0;e--)if(!Ba(r[e*2-2],r[e*2-1]))break;return e-1}function vY(r,e){return[r[e*2],r[e*2+1]]}function G_t(r,e,t){var i=r.length/2,n=t==="x"?0:1,a,o,s=0,l=-1;for(var u=0;u<i;u++){if(o=r[u*2+n],Ba(o,r[u*2+1-n]))continue;if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function mY(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ni.length;e++)if(r.get([Ni[e],"endLabel","show"]))return!0;return!1}function zI(r,e,t,i){if(ns(e,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=mY(i)?function(h,v){r._endLabelOnDuring(h,v,o,s,a,n,e)}:null,u=e.getBaseAxis().isHorizontal(),c=PI(e,t,i,function(){var h=r._endLabel;if(h&&t){if(s.originalX!=null)h.attr({x:s.originalX,y:s.originalY})}},l);if(!i.get("clip",!0)){var f=c.shape,p=Math.max(f.width,f.height);if(u)f.y-=p,f.height+=p*2;else f.x-=p,f.width+=p*2}if(l)l(1,c);return c}else return RI(e,t,i)}function H_t(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),n=t.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var W_t,gY;var yY=k(()=>{dt();Z();Fv();l0();oY();jt();yt();II();Xr();gw();Ks();tr();rr();Vv();lr();Th();pn();sn();Qi();W_t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Lt,i=new Xl;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=xt(this._changePolyState,this)},e.prototype.render=function(t,i,n){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),c=s.getLayout("points")||[],f=a.type==="polar",p=this._coordSys,h=this._symbolDraw,v=this._polyline,g=this._polygon,y=this._lineGroup,m=!i.ssr&&t.get("animation"),d=!u.isEmpty(),x=u.get("origin"),S=vw(a,s,x),w=d&&N_t(a,s,S),T=t.get("showSymbol"),A=t.get("connectNulls"),M=T&&!f&&U_t(t,s,a),D=this._data;if(D&&D.eachItemGraphicEl(function(Rt,oe){if(Rt.__temp)o.remove(Rt),D.setItemGraphicEl(oe,null)}),!T)h.remove();o.add(y);var L=!f?t.get("step"):!1,I;if(a&&a.getArea&&t.get("clip",!0)){if(I=a.getArea(),I.width!=null)I.x-=0.1,I.y-=0.1,I.width+=0.2,I.height+=0.2;else if(I.r0)I.r0-=0.5,I.r+=0.5}this._clipShapeForSymbol=I;var E=B_t(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&p.type===a.type&&L===this._step)){if(T&&h.updateData(s,{isIgnore:M,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Rt){return[c[Rt*2],c[Rt*2+1]]}}),m&&this._initSymbolLabelAnimation(s,a,I),L){if(w)w=vf(w,c,a,L,A);c=vf(c,null,a,L,A)}if(v=this._newPolyline(c),d)g=this._newPolygon(c,w);else if(g)y.remove(g),g=this._polygon=null;if(!f)this._initOrUpdateEndLabel(t,a,ks(E));y.setClipPath(zI(this,a,!0,t))}else{if(d&&!g)g=this._newPolygon(c,w);else if(g&&!d)y.remove(g),g=this._polygon=null;if(!f)this._initOrUpdateEndLabel(t,a,ks(E));var R=y.getClipPath();if(R){var B=zI(this,a,!1,t);ze(R,{shape:B.shape},t)}else y.setClipPath(zI(this,a,!0,t));if(T&&h.updateData(s,{isIgnore:M,clipShape:I,disableAnimation:!0,getSymbolPoint:function(Rt){return[c[Rt*2],c[Rt*2+1]]}}),!fY(this._stackedOnPoints,w)||!fY(this._points,c))if(m)this._doUpdateAnimation(s,w,a,n,L,x,A);else{if(L){if(w)w=vf(w,c,a,L,A);c=vf(c,null,a,L,A)}v.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:w})}}var z=t.getModel("emphasis"),V=z.get("focus"),H=z.get("blurScope"),K=z.get("disabled");if(v.useStyle(Dt(l.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),pr(v,t,"lineStyle"),v.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=v.getState("emphasis").style;F.lineWidth=+v.style.lineWidth+1}Yt(v).seriesIndex=t.seriesIndex,Ie(v,V,H,K);var G=dY(t.get("smooth")),rt=t.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:rt,connectNulls:A}),g){var ot=s.getCalculationInfo("stackedOnSeries"),at=0;if(g.useStyle(Dt(u.getAreaStyle(),{fill:E,opacity:0.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),ot)at=dY(ot.get("smooth"));g.setShape({smooth:G,stackedOnSmooth:at,smoothMonotone:rt,connectNulls:A}),pr(g,t,"areaStyle"),Yt(g).seriesIndex=t.seriesIndex,Ie(g,V,H,K)}var mt=this._changePolyState;s.eachItemGraphicEl(function(Rt){Rt&&(Rt.onHoverStateChange=mt)}),this._polyline.onHoverStateChange=mt,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=c,this._step=L,this._valueOrigin=x;var Tt=t.get("triggerEvent"),Ut=t.get("triggerLineEvent"),qt=Ut===!0||Tt===!0||Tt==="line",Zt=Ut===!0||Tt===!0||Tt==="area";this.packEventData(t,v,qt),g&&this.packEventData(t,g,Zt)},e.prototype.packEventData=function(t,i,n){Yt(i).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,i,n,a){var o=t.getData(),s=Fo(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(Ba(c,f))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var p=t.get("zlevel")||0,h=t.get("z")||0;u=new ju(o,s),u.x=c,u.y=f,u.setZ(p,h);var v=u.getSymbolPath().getTextContent();if(v)v.zlevel=p,v.z=h,v.z2=this._polyline.z2+1;u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ce.prototype.highlight.call(this,t,i,n,a)},e.prototype.downplay=function(t,i,n,a){var o=t.getData(),s=Fo(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);if(l)if(l.__temp)o.setItemGraphicEl(s,null),this.group.remove(l);else l.downplay()}else Ce.prototype.downplay.call(this,t,i,n,a)},e.prototype._changePolyState=function(t){var i=this._polygon;Vp(this._polyline,t),i&&Vp(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;if(i)this._lineGroup.remove(i);return i=new lY({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var n=this._polygon;if(n)this._lineGroup.remove(n);return n=new _w({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;if(i.type==="cartesian2d")a=s.isHorizontal(),o=!1;else if(i.type==="polar")a=s.dim==="angle",o=!0;var u=t.hostModel,c=u.get("animationDuration");if(Mt(c))c=c(null);var f=u.get("animationDelay")||0,p=Mt(f)?f(null):f;t.eachItemGraphicEl(function(h,v){var g=h;if(g){var y=[h.x,h.y],m=void 0,d=void 0,x=void 0;if(n)if(o){var S=n,w=i.pointToCoord(y);if(a)m=S.startAngle,d=S.endAngle,x=-w[1]/180*Math.PI;else m=S.r0,d=S.r,x=w[0]}else{var T=n;if(a)m=T.x,d=T.x+T.width,x=h.x;else m=T.y+T.height,d=T.y,x=h.y}var A=d===m?0:(x-m)/(d-m);if(l)A=1-A;var M=Mt(f)?f(v):c*A+p,D=g.getSymbolPath(),L=D.getTextContent();if(g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L)L.animateFrom({style:{opacity:0}},{duration:300,delay:M});D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,n){var a=t.getModel("endLabel");if(mY(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;if(!u)u=this._endLabel=new me({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0;var c=F_t(l);if(c>=0)or(s,er(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(f,p,h){return h!=null?hw(o,h):Xs(o,f)},enableTextSetter:!0},H_t(a,i)),s.textConfig.position=null}else if(this._endLabel)this._polyline.removeTextContent(),this._endLabel=null},e.prototype._endLabelOnDuring=function(t,i,n,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){if(t<1&&a.originalX==null)a.originalX=u.x,a.originalY=u.y;var f=n.getLayout("points"),p=n.hostModel,h=p.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),m=y.isHorizontal(),d=y.inverse,x=i.shape,S=d?m?x.x:x.y+x.height:m?x.x+x.width:x.y,w=(m?g:0)*(d?-1:1),T=(m?0:-g)*(d?-1:1),A=m?"x":"y",M=G_t(f,S,A),D=M.range,L=D[1]-D[0],I=void 0;if(L>=1){if(L>1&&!h){var E=vY(f,D[0]);u.attr({x:E[0]+w,y:E[1]+T}),o&&(I=p.getRawValue(D[0]))}else{var E=c.getPointOn(S,A);E&&u.attr({x:E[0]+w,y:E[1]+T});var R=p.getRawValue(D[0]),B=p.getRawValue(D[1]);o&&(I=fS(n,v,R,B,M.t))}a.lastFrameIndex=D[0]}else{var z=t===1||a.lastFrameIndex>0?D[0]:0,E=vY(f,z);o&&(I=p.getRawValue(z)),u.attr({x:E[0]+w,y:E[1]+T})}if(o){var V=Ru(u);if(typeof V.setLabelText==="function")V.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,i,n,a,o,s,l){var u=this._polyline,c=this._polygon,f=t.hostModel,p=LI(this._data,t,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin,s),{current:h,stackedOnCurrent:v,next:g,stackedOnNext:y}=p;if(o)v=vf(p.stackedOnCurrent,p.current,n,o,l),h=vf(p.current,null,n,o,l),y=vf(p.stackedOnNext,p.next,n,o,l),g=vf(p.next,null,n,o,l);if(hY(h,g)>3000||c&&hY(v,y)>3000){if(u.stopAnimation(),u.setShape({points:g}),c)c.stopAnimation(),c.setShape({points:g,stackedOnPoints:y});return}u.shape.__points=p.current,u.shape.points=h;var m={shape:{points:g}};if(p.current!==h)m.shape.__points=p.next;if(u.stopAnimation(),ge(u,m,f),c){if(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),ge(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points)c.shape.points=u.shape.points}var d=[],x=p.status;for(var S=0;S<x.length;S++){var w=x[S].cmd;if(w==="="){var T=t.getItemGraphicEl(x[S].idx1);if(T)d.push({el:T,ptIdx:S})}}if(u.animators&&u.animators.length)u.animators[0].during(function(){c&&c.dirtyShape();var A=u.shape.__points;for(var M=0;M<d.length;M++){var D=d[M].el,L=d[M].ptIdx*2;D.x=A[L],D.y=A[L+1],D.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){if(a.__temp)i.remove(a),n.setItemGraphicEl(o,null)}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Ce),gY=W_t});function qs(r,e){return{seriesType:r,plan:qn(),reset:function(t){var i=t.getData(),{coordinateSystem:n,pipelineContext:a}=t,o=e||a.large;if(!n)return;var s=nt(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");if(co(i,s[0]))s[0]=u;if(co(i,s[1]))s[1]=u;var c=i.getStore(),f=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(h,v){var g=h.end-h.start,y=o&&ia(g*l),m=[],d=[];for(var x=h.start,S=0;x<h.end;x++){var w=void 0;if(l===1){var T=c.get(f,x);w=n.dataToPoint(T,null,d)}else m[0]=c.get(f,x),m[1]=c.get(p,x),w=n.dataToPoint(m,null,d);if(o)y[S++]=w[0],y[S++]=w[1];else v.setItemLayout(x,w.slice())}if(o)v.setLayout("points",y),v.setLayout("pointsRange",{start:h.start,end:h.end})}}}}}var Gv=k(()=>{Z();Jc();Wu();Th()});function u0(r){return{seriesType:r,reset:function(e,t,i){var n=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=i.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/p);if(isFinite(h)&&h>1){if(a==="lttb")e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h));else if(a==="minmax")e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var v=void 0;if(ht(a))v=Y_t[a];else if(Mt(a))v=a;if(v)e.setData(n.downSample(n.mapDimension(u.dim),1/h,v,Z_t))}}}}}var Y_t,Z_t=function(r){return Math.round(r.length/2)};var BI=k(()=>{Z();Y_t={average:function(r){var e=0,t=0;for(var i=0;i<r.length;i++)if(!isNaN(r[i]))e+=r[i],t++;return t===0?NaN:e/t},sum:function(r){var e=0;for(var t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){var e=-1/0;for(var t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){var e=1/0;for(var t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}}});function UI(r){r.registerChartView(gY),r.registerSeriesModel(tY),r.registerLayout(qs("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();if(i&&!i.stroke)i.stroke=t.getVisual("style").fill;t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,u0("line"))}var _Y=k(()=>{eY();yY();Gv();BI()});var j_t,ww;var VI=k(()=>{dt();sf();j_t=function(r){W(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(tn),ww=j_t});function xY(r){if(!FI)FI=r}function Xu(){return FI}var FI=null;function YI(r,e,t,i){var n=[];return P(r,function(a){n=n.concat(a.eventBreaks)}),{eventContent:{breaks:n}}}function SY(r){r.registerAction(X_t,e),r.registerAction(K_t,e),r.registerAction(q_t,e);function e(t,i){var n=[],a=yl(i,t);function o(s,l){P(a[s],function(u){var c=u.updateAxisBreaks(t);P(c.breaks,function(f){var p;n.push(Dt((p={},p[l]=u.componentIndex,p),f))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Hv="expandAxisBreak",GI="collapseAxisBreak",HI="toggleAxisBreak",WI="axisbreakchanged",X_t,K_t,q_t;var Tw=k(()=>{yt();Z();X_t={type:Hv,event:WI,update:"update",refineEvent:YI},K_t={type:GI,event:WI,update:"update",refineEvent:YI},q_t={type:HI,event:WI,update:"update",refineEvent:YI}});function Q_t(r,e,t,i){var n=t.axis,a=e.ensureRecord(t),o=[],s,l=qI(r.axisName)&&af(r.nameLocation);P(i,function(v){var g=js(v);if(!g||g.label.ignore)return;o.push(g);var y=a.transGroup;if(l){if(y.transform?mi(c0,y.transform):bs(c0),g.transform)Ri(c0,c0,g.transform);Gt.copy(Aw,g.localRect),Aw.applyTransform(c0),s?s.union(Aw):Gt.copy(s=new Gt(0,0,0,0),Aw)}});var u=Math.abs(a.dirVec.x)>0.1?"x":"y",c=a.transGroup[u];if(o.sort(function(v,g){return Math.abs(v.label[u]-c)-Math.abs(g.label[u]-c)}),l&&s){var f=n.getExtent(),p=Math.min(f[0],f[1]),h=Math.max(f[0],f[1])-p;s.union(new Gt(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}function AY(r,e,t){var i=new Qt;if(Bv(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:0.05}))Xy(e,i)}function KI(r,e,t,i){var n=Qt.dot(i,e)>=0;for(var a=0,o=r.length;a<o;a++){var s=r[n?a:o-1-a];if(!s.label.ignore)AY(s,t,i)}}function bY(r,e,t,i,n,a,o,s){if(!EY(e))sxt(r,e,n,s,i,o);var l=e.labelLayoutList;lxt(r,i,l,a),fxt(i,r.rotation,l);var u=r.optionHideOverlap;if(ixt(i,l,u),u)ew(be(l,function(c){return c&&!c.label.ignore}));Q_t(r,t,i,l)}function rxt(r,e,t,i){var n=OE(t-r),a,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;if(kc(n-mf/2))o=l?"bottom":"top",a="center";else if(kc(n-mf*1.5))o=l?"top":"bottom",a="center";else if(o="middle",n<mf*1.5&&n>mf/2)a=l?"left":"right";else a=l?"right":"left";return{rotation:n,textAlign:a,textVerticalAlign:o}}function ixt(r,e,t){var i=r.axis,n=r.get(["axisLabel","customValues"]);if(x8(i))return;function a(u,c,f){var p=js(e[c]),h=js(e[f]),v=i.scale;if(!p||!h)return;if(u==null){if(!t&&n)return;var g=gf(p.label).labelInfo.tick;if(zl(v)&&g.notNice||Ur(v)&&g.offInterval){Wv(p.label);return}}if(u===!1||p.suggestIgnore){Wv(p.label);return}if(h.suggestIgnore){Wv(h.label);return}var y=0.1;if(!t){var m=[0,0,0,0];p=Ky({marginForce:m},p),h=Ky({marginForce:m},h)}if(Bv(p,h,null,{touchThreshold:y}))if(u)Wv(h.label);else Wv(p.label)}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function nxt(r,e,t){if(r.showMinorTicks)return;P(e,function(i){if(i&&i.label.ignore)for(var n=0;n<t.length;n++){var a=t[n],o=TY(a),s=gf(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Wv(a);return}}})}function Wv(r){r&&(r.ignore=!0)}function CY(r,e,t,i,n){var a=[],o=[],s=[];for(var l=0;l<r.length;l++){var u=r[l].coord;if(o[0]=u,o[1]=0,s[0]=u,s[1]=t,e)vr(o,o,e),vr(s,s,e);var c=new xr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Lu(c.shape,c.style.lineWidth),c.anid=n+"_"+r[l].tickValue,a.push(c);var f=TY(c);f.onBand=!!r[l].onBand,f.tickValue=r[l].tickValue}return a}function axt(r,e,t,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"){if(o=!0,r.raw.axisTickAutoShow!=null)o=!!r.raw.axisTickAutoShow}if(!o||n.scale.isBlank())return[];var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=n.getTicksCoords(),c=CY(u,t.transform,l,Dt(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks");for(var f=0;f<c.length;f++)e.add(c[f]);return c}function oxt(r,e,t,i,n){var a=i.axis,o=i.getModel("minorTick");if(!r.showMinorTicks||a.scale.isBlank())return;var s=a.getMinorTicksCoords();if(!s.length)return;var l=o.getModel("lineStyle"),u=n*o.get("length"),c=Dt(l.getLineStyle(),Dt(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}));for(var f=0;f<s.length;f++){var p=CY(s[f],t.transform,u,c,"minorticks_"+f);for(var h=0;h<p.length;h++)e.add(p[h])}}function wY(r,e,t){if(EY(r)){var i=r.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(t.noPxChange){var a=!0;for(var o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}if(n.length)e.remove(r.labelGroup),ZI(r,null,null,null)}return!0}function sxt(r,e,t,i,n,a){var o=n.axis,s=Gr(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Lt;t.add(l);var u=kv(i);if(!s||o.scale.isBlank()){ZI(e,[],l,u);return}var c=n.getModel("axisLabel"),f=o.getViewLabels(u),p=(Gr(r.raw.labelRotate,c.get("rotate"))||0)*mf/180,h=Ah.innerTextLayout(r.rotation,p,r.labelDirection),v=n.getCategories&&n.getCategories(!0),g=[],y=n.get("triggerEvent"),m=1/0,d=-1/0;P(f,function(S,w){var T,{tick:A,formattedLabel:M,rawLabel:D}=S,L=c,I=Hs(o.scale,A);if(v&&v[I]){var E=v[I];if(Pt(E)&&E.textStyle)L=new ye(E.textStyle,c,n.ecModel)}var R=L.getTextColor()||n.get(["axisLine","lineStyle","color"]),B=L.getShallow("align",!0)||h.textAlign,z=St(L.getShallow("alignMinLabel",!0),B),V=St(L.getShallow("alignMaxLabel",!0),B),H=L.getShallow("verticalAlign",!0)||L.getShallow("baseline",!0)||h.textVerticalAlign,K=St(L.getShallow("verticalAlignMinLabel",!0),H),F=St(L.getShallow("verticalAlignMaxLabel",!0),H),G=10+(((T=A.time)===null||T===void 0?void 0:T.level)||0);m=Math.min(m,G),d=Math.max(d,G);var rt=new me({x:0,y:0,rotation:0,silent:Ah.isLabelSilent(n),z2:G,style:He(L,{text:M,align:w===0?z:w===f.length-1?V:B,verticalAlign:w===0?K:w===f.length-1?F:H,fill:Mt(R)?R(o.type==="category"?D:o.type==="value"?I+"":I,w):R})});rt.anid="label_"+I;var ot=gf(rt);if(ot.labelInfo=S,ot.layoutRotation=h.rotation,Ln({el:rt,componentModel:n,itemName:M,formatterParamsExtra:{isTruncated:function(){return rt.isTruncated},value:D,tickIndex:w}}),y){var at=Ah.makeAxisEventDataBase(n);at.targetType="axisLabel",at.value=D,at.tickIndex=w;var mt=S.tick.break;if(mt){var Tt=mt.parsedBreak;at.break={start:Tt.vmin,end:Tt.vmax}}if(o.type==="category")at.dataIndex=I;if(Yt(rt).eventData=at,mt)cxt(n,a,rt,mt)}g.push(rt),l.add(rt)});var x=nt(g,function(S){return{label:S,priority:gf(S).labelInfo.tick.break?S.z2+(d-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});ZI(e,x,l,u)}function EY(r){return!!r.labelLayoutList}function ZI(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function lxt(r,e,t,i){var n=e.get(["axisLabel","margin"]);P(t,function(a,o){var s=js(a);if(!s)return;var l=s.label,u=gf(l);s.suggestIgnore=l.ignore,l.ignore=!1,_a(Ku,uxt);var c=e.axis;Ku.x=c.dataToCoord(Hs(c.scale,u.labelInfo.tick)),Ku.y=r.labelOffset+r.labelDirection*n,Ku.rotation=u.layoutRotation,i.add(Ku),Ku.updateTransform(),i.remove(Ku),Ku.decomposeTransform(),_a(l,Ku),l.markRedraw(),jy(s,!0),js(s)})}function qI(r){return!!r}function cxt(r,e,t,i){t.on("click",function(n){var a={type:Hv,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(a)})}function fxt(r,e,t){var i=wr();if(!i)return;var n=i.retrieveAxisBreakPairs(t,function(o){return o&&gf(o.label).labelInfo.tick.break},!0),a=r.get(["breakLabelLayout","moveOverlap"],!0);if(a===!0||a==="auto")P(n,function(o){Xu().adjustBreakLabelPair(r.axis.inverse,e,[js(t[o[0]]),js(t[o[1]])])})}var mf,J_t,$_t,gf,TY,jI,c0,Aw,XI=function(r,e,t,i,n,a){if(af(r.nameLocation)){var o=a.stOccupiedRect;if(o)AY(cW({},o,a.transGroup.transform),i,n)}else KI(a.labelInfoList,a.dirVec,i,n)},Ah,txt,ext,Ku,uxt,mn;var Kl=k(()=>{Z();jt();lr();rr();ti();te();qi();br();Qi();Jy();yt();Tw();fr();Tc();No();J1();_i();mf=Math.PI,J_t=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],$_t=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],gf=Ft(),TY=Ft(),jI=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[t]||(n[t]=[]);return a[i]||(a[i]={ready:{}})},r}();c0=Qe(),Aw=new Gt(0,0,0,0);Ah=function(){function r(e,t,i,n){this.group=new Lt,this._axisModel=e,this._api=t,this._local={},this._shared=n||new jI(XI),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(e){if(!1)var t;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,i=t.getDefaultOption?t.getDefaultOption():{},n=St(e.axisName,t.get("name")),a=t.get("nameMoveOverlap");if(a==null||a==="auto")a=St(e.defaultNameMoveOverlap,!0);var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:St(e.nameDirection,1),tickDirection:St(e.tickDirection,1),labelDirection:St(e.labelDirection,1),labelOffset:St(e.labelOffset,0),silent:St(e.silent,!0),axisName:n,nameLocation:Hr(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:qI(n)&&a,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new Lt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new Qt(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var i=this;if(!e)e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0};return P(txt,function(n){if(e[n])ext[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var n=OE(t-e),a,o;if(kc(n))o=i>0?"top":"bottom",a="center";else if(kc(n-mf))o=i>0?"bottom":"top",a="center";else if(o="middle",n>0&&n<mf)a=i>0?"right":"left";else a=i>0?"left":"right";return{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),txt=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],ext={axisLine:function(r,e,t,i,n,a,o){if(!1)var s;var l=i.get(["axisLine","show"]);if(l==="auto"){if(l=!0,r.raw.axisLineAutoShow!=null)l=!!r.raw.axisLineAutoShow}if(!l)return;var u=i.axis.getExtent(),c=a.transform,f=[u[0],0],p=[u[1],0],h=f[0]>p[0];if(c)vr(f,f,c),vr(p,p,c);var v=et({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&Zc(i.axis.scale))Xu().buildAxisBreakLine(i,n,a,g);else{var y=new xr(et({shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]}},g));Lu(y.shape,y.style.lineWidth),y.anid="line",n.add(y)}var m=i.get(["axisLine","symbol"]);if(m!=null){var d=i.get(["axisLine","symbolSize"]);if(ht(m))m=[m,m];if(ht(d)||ue(d))d=[d,d];var x=uo(i.get(["axisLine","symbolOffset"])||0,d),S=d[0],w=d[1];P([{rotate:r.rotation+Math.PI/2,offset:x[0],r:0},{rotate:r.rotation-Math.PI/2,offset:x[1],r:Math.sqrt((f[0]-p[0])*(f[0]-p[0])+(f[1]-p[1])*(f[1]-p[1]))}],function(T,A){if(m[A]!=="none"&&m[A]!=null){var M=ir(m[A],-S/2,-w/2,S,w,v.stroke,!0),D=T.r+T.offset,L=h?p:f;M.attr({rotation:T.rotate,x:L[0]+D*Math.cos(r.rotation),y:L[1]-D*Math.sin(r.rotation),silent:!0,z2:11}),n.add(M)}})}},axisTickLabelEstimate:function(r,e,t,i,n,a,o,s){if(!1)var l;var u=wY(e,n,s);if(u)bY(r,e,t,i,n,a,o,Na.estimate)},axisTickLabelDetermine:function(r,e,t,i,n,a,o,s){if(!1)var l;var u=wY(e,n,s);if(u)bY(r,e,t,i,n,a,o,Na.determine);var c=axt(r,n,a,i);nxt(r,e.labelLayoutList,c),oxt(r,n,a,i,r.tickDirection)},axisName:function(r,e,t,i,n,a,o,s){var l=t.ensureRecord(i);if(!1)var u;if(e.nameEl)n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null;var c=r.axisName;if(!qI(c))return;var{nameLocation:f,nameDirection:p}=r,h=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,g=i.axis.getExtent(),y=i.axis.inverse?-1:1,m=new Qt(0,0),d=new Qt(0,0);if(f==="start")m.x=g[0]-y*v,d.x=-y;else if(f==="end")m.x=g[1]+y*v,d.x=y;else m.x=(g[0]+g[1])/2,m.y=r.labelOffset+p*v,d.y=p;var x=Qe();d.transform(bn(x,x,r.rotation));var S=i.get("nameRotate");if(S!=null)S=S*mf/180;var w,T;if(af(f))w=Ah.innerTextLayout(r.rotation,S!=null?S:r.rotation,p);else if(w=rxt(r.rotation,f,S||0,g),T=r.raw.axisNameAvailableWidth,T!=null)T=Math.abs(T/Math.sin(w.rotation)),!isFinite(T)&&(T=null);var A=h.getFont(),M=i.get("nameTruncate",!0)||{},D=M.ellipsis,L=Gr(r.raw.nameTruncateMaxWidth,M.maxWidth,T),I=s.nameMarginLevel||0,E=new me({x:m.x,y:m.y,rotation:w.rotation,silent:Ah.isLabelSilent(i),style:He(h,{text:c,font:A,overflow:"truncate",width:L,ellipsis:D,fill:h.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:h.get("align")||w.textAlign,verticalAlign:h.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(Ln({el:E,componentModel:i,itemName:c}),E.__fullText=c,E.anid="name",i.get("triggerEvent")){var R=Ah.makeAxisEventDataBase(i);R.targetType="axisName",R.name=c,Yt(E).eventData=R}a.add(E),E.updateTransform(),e.nameEl=E;var B=l.nameLayout=js({label:E,priority:E.z2,defaultAttr:{ignore:E.ignore},marginDefault:af(f)?J_t[I]:$_t[I]});if(l.nameLocation=f,n.add(E),E.decomposeTransform(),r.shouldNameMoveOverlap&&B){var z=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,B,d,z)}}};Ku=new ee,uxt=new ee;mn=Ah});function f0(r,e,t){t=t||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[c.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l==="y"?p[c[s]]:u[0],l==="x"?p[c[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};if(n.labelDirection=n.tickDirection=n.nameDirection=v[o],n.labelOffset=a?p[c[o]]-p[c.onZero]:0,e.get(["axisTick","inside"]))n.tickDirection=-n.tickDirection;if(Gr(t.labelInside,e.get(["axisLabel","inside"])))n.labelDirection=-n.labelDirection;var g=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-g:g,n.z2=1,n}function MY(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function LY(r){var e={xAxisModel:null,yAxisModel:null};return P(e,function(t,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Xe).models[0];e[i]=a}),e}function DY(r,e,t,i,n,a){var o=f0(r,t),s=!1,l=!1;for(var u=0;u<e.length;u++)if(I1(e[u].getOtherAxis(t.axis).scale)){if(s=l=!0,t.axis.type==="category"&&t.axis.onBand)l=!1}return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new mn(t,i,o,n)}function IY(r,e,t){var i=f0(e,t);if(!1)var n;r.updateCfg(i)}function PY(r){return r.dim+"_"+r.index}var p0=k(()=>{Z();yt();Kl();_i()});function RY(){L8("liPosMinGap",hxt)}function hxt(r,e,t){var i=gt(),{serUids:n,liPosMinGap:a}=t,o,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,f=Wb(c);function p(x){Gy(r,e.sers,function(S){var w=S.getRawData(),T=w.getDimensionIndex(w.mapDimension(s.dim));if(T>=0)x(T,S,w.getStore())})}var h=0;if(p(function(x,S,w){if(i.set(S.uid,1),!n||!n.hasKey(S.uid))o=!0;h+=w.count()}),!n||n.keys().length!==i.keys().length)o=!0;if(!o&&a!=null){e.liPosMinGap=a;return}yw(Ch,h);var v=0;p(function(x,S,w){for(var T=0,A=w.count();T<A;++T){var M=w.get(x,T);if(isFinite(M)&&(!c||Yb(f,M))){if(u)M=l.transformIn(M,null);Ch.arr[v++]=M}}});var g=Ch.typed?Ch.arr.subarray(0,v):(Ch.arr.length=v,Ch.arr);if(Ch.typed)g.sort();else Pr(g);var y=1/0;for(var m=1;m<v;++m){var d=g[m]-g[m-1];if(d>0&&d<y)y=d}t.liPosMinGap=e.liPosMinGap=ki(y)?y:v>0?Z1:b8,t.serUids=i}var Ch;var OY=k(()=>{Z();te();Vu();Th();ta();Ch=yw({ctor:aY},50)});function yf(r){return function(e,t){var i=Dr(e,{fromStat:{key:r}});if(ki(i.w2))return[-i.w2/2,i.w2/2]}}function qu(r){return r+Fy}function Ju(r,e){return r+Fy+e}function Yv(r){return RY(),{liPosMinGap:!Ur(r.scale)}}var Zv=k(()=>{za();ta();OY();_i();te()});function Cw(r,e,t,i){Rv(r,{key:e,seriesType:t,coordSysType:i,getMetrics:Yv})}function Ew(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var na="bar",_f="pictorialBar";var ql=k(()=>{Zv();ta()});var JI,h0,Nn="cartesian2d",dxt,kY;var Eh=k(()=>{dt();Nr();ur();we();JI={left:0,right:0,top:0,bottom:0},h0=["25%","25%"],dxt=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var n=Ra(t.outerBounds);if(r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds)hn(t.outerBounds,n)},e.prototype.mergeOption=function(t,i){if(r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds)hn(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:JI,outerBoundsContain:"all",outerBoundsClampWidth:h0[0],outerBoundsClampHeight:h0[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},e}(de),kY=dxt});function NY(r){return r.get("stack")||$I+r.seriesIndex}function zY(r){if(!Ur(r.axis.scale))return;var e=Dr(r.axis),t=[];for(var i=0;i<r.count;i++)t.push(Dt({stackId:$I+i},r));var n=BY({bandWidthResult:e,seriesInfo:t}),a=[];for(var i=0;i<r.count;i++){var o=n[$I+i];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}function mxt(r,e){var t=gxt(r,e);return t.columnMap=BY(t),t}function gxt(r,e){var t=Ju(e,Nn),i=[],n=Dr(r,{fromStat:{key:t},min:1});return Hl(r,t,function(a){i.push({barWidth:wt(a.get("barWidth"),n.w),barMaxWidth:wt(a.get("barMaxWidth"),n.w),barMinWidth:wt(a.get("barMinWidth")||(UY(a)?0.5:1),n.w),barGap:a.get("barGap"),barCategoryGap:a.get("barCategoryGap"),defaultBarGap:a.get("defaultBarGap"),stackId:NY(a)})}),{bandWidthResult:n,seriesInfo:i}}function BY(r){var e=r.bandWidthResult.w,t=e,i=0,n,a,o=[],s={};if(P(r.seriesInfo,function(g,y){if(!y)a=g.defaultBarGap||0;var m=g.stackId;if(!Bt(s,m))i++;var d=s[m];if(!d)d=s[m]={width:0,maxWidth:0},o.push(m);var x=g.barWidth;if(x&&!d.width)d.width=x,x=ke(t,x),t-=x;var S=g.barMaxWidth;S&&(d.maxWidth=S);var w=g.barMinWidth;w&&(d.minWidth=w);var T=g.barGap;T!=null&&(a=T);var A=g.barCategoryGap;A!=null&&(n=A)}),n==null)n=ce(35-o.length*4,15)+"%";var l=wt(n,e),u=wt(a,1),c=(t-l)/(i+(i-1)*u);c=ce(c,0),P(o,function(g){var y=s[g],{maxWidth:m,minWidth:d}=y;if(!y.width){var x=c;if(m&&m<x)x=ke(m,t);if(d&&d>x)x=d;if(x!==c)y.width=x,t-=x+u*x,i--}else{var x=y.width;if(m)x=ke(x,m);if(d)x=ce(x,d);y.width=x,t-=x+u*x,i--}}),c=(t-l)/(i+(i-1)*u),c=ce(c,0);var f=0,p;if(P(o,function(g){var y=s[g];if(!y.width)y.width=c;p=y,f+=y.width*(1+u)}),p)f-=p.width*u;var h={},v=-f/2;return P(o,function(g){var y=s[g];h[g]=h[g]||{bandWidth:e,offset:v,width:y.width},v+=y.width*(1+u)}),h}function Mw(r){return{seriesType:r,overallReset:function(e){var t=Ju(r,Nn);Pv(e,t,function(i){var n=mxt(i,r);Hl(i,t,function(a){var o=n.columnMap[NY(a)];a.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Lw(r){return{seriesType:r,plan:qn(),reset:function(e){if(!MY(e))return;var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),c=t.getCalculationInfo("stackResultDimension"),f=co(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=a.isHorizontal(),h=a.toGlobalCoord(a.dataToCoord(Ew(a))),v=UY(e),g=e.get("barMinHeight")||0,y=c&&t.getDimensionIndex(c),m=t.getLayout("size"),d=t.getLayout("offset");return{progress:function(x,S){var w=x.count,T=v&&ia(w*3),A=v&&l&&ia(w*3),M=v&&ia(w),D=i.master.getRect(),L=p?D.width:D.height,I,E=S.getStore(),R=0;while((I=x.next())!=null){var B=E.get(f?y:o,I),z=E.get(s,I),V=h,H=void 0;if(f)H=+B-E.get(o,I);var K=void 0,F=void 0,G=void 0,rt=void 0;if(p){var ot=i.dataToPoint([B,z]);if(f)V=i.dataToPoint([H,z])[0];if(K=V,F=ot[1]+d,G=ot[0]-V,rt=m,yr(G)<g)G=(G<0?-1:1)*g}else{var ot=i.dataToPoint([z,B]);if(f)V=i.dataToPoint([z,H])[1];if(K=ot[0]+d,F=V,G=m,rt=ot[1]-V,yr(rt)<g)rt=(rt<=0?-1:1)*g}if(!v)S.setItemLayout(I,{x:K,y:F,width:G,height:rt});else{if(T[R]=K,T[R+1]=F,T[R+2]=p?G:rt,A)A[R]=p?D.x:K,A[R+1]=p?F:D.y,A[R+2]=L;M[I]=I}R+=3}if(v)S.setLayout({largePoints:T,largeDataIndices:M,largeBackgroundPoints:A,valueAxisHorizontal:p})}}}}}function UY(r){return r.pipelineContext&&r.pipelineContext.large}function yxt(r){return yf(Ju(r,Nn))}function Dw(r){vxt(r,function(){function e(t){var i=Ju(t,Nn);Cw(r,i,t,Nn),of(i,yxt(t))}e("bar"),e("pictorialBar")})}var vxt,$I="__ec_stack_";var Iw=k(()=>{Z();te();Wu();Jc();Th();yt();_i();p0();po();ta();za();ql();Eh();Zv();vxt=Go()});var VY,jv;var QI=k(()=>{dt();Zr();Nl();Z();VY=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return $i(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(n)P(a.getAxes(),function(p,h){if(p.type==="category"&&i!=null){var v=p.getTicksCoords(),g=p.getTickModel().get("alignWithLabel"),y=o[h],m=i[h]==="x1"||i[h]==="y1";if(m&&!g)y+=1;if(v.length<2)return;else if(v.length===2){s[h]=p.toGlobalCoord(p.getExtent()[m?1:0]);return}var d=void 0,x=void 0,S=1;for(var w=0;w<v.length;w++){var T=v[w].coord,A=w===v.length-1?v[w-1].tickValue+S:v[w].tickValue;if(A===y){x=T;break}else if(A<y)d=T;else if(d!=null&&A>y){x=(T+d)/2;break}if(w===1)S=A-v[0].tickValue}if(x==null){if(!d)x=v[0].coord;else if(d)x=v[v.length-1].coord}s[h]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3000,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Pe);Pe.registerClass(VY);jv=VY});var _xt,FY;var GY=k(()=>{dt();QI();Nl();In();we();yt();ql();_xt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return $i(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,i){var n=hS(this,t,i);if(n.progressiveRender)n.large=!0;return n},e.prototype.brushSelector=function(t,i,n){return n.rect(i.getItemLayout(t))},e.type="series."+na,e.dependencies=["grid","polar"],e.defaultOption=Dn(jv.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:Q.color.primary,borderWidth:2}},realtimeSort:!1}),e}(jv),FY=_xt});var xxt,Sxt,Xv;var tP=k(()=>{dt();jt();xxt=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Sxt=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new xxt},e.prototype.buildPath=function(t,i){var{cx:n,cy:a}=i,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*0.5,u=o+l,{startAngle:c,endAngle:f,clockwise:p}=i,h=Math.PI*2,v=p?f-c<h:c-f<h;if(!v)c=f-(p?h:-h);var g=Math.cos(c),y=Math.sin(c),m=Math.cos(f),d=Math.sin(f);if(v)t.moveTo(g*o+n,y*o+a),t.arc(g*u+n,y*u+a,l,-Math.PI+c,c,!p);else t.moveTo(g*s+n,y*s+a);if(t.arc(n,a,s,c,f,!p),t.arc(m*u+n,d*u+a,l,f-Math.PI*2,f-Math.PI,!p),o!==0)t.arc(n,a,o,f,c,p)},e}($t),Xv=Sxt});function HY(r,e){e=e||{};var t=e.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Tp(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,{cx:c,cy:f,r:p,r0:h}=u,v=(p+h)/2,{startAngle:g,endAngle:y}=u,m=(g+y)/2,d=t?Math.abs(p-h)/2:0,{cos:x,sin:S}=Math,w=c+p*x(g),T=f+p*S(g),A="left",M="top";switch(s){case"startArc":w=c+(h-l)*x(m),T=f+(h-l)*S(m),A="center",M="top";break;case"insideStartArc":w=c+(h+l)*x(m),T=f+(h+l)*S(m),A="center",M="bottom";break;case"startAngle":w=c+v*x(g)+Pw(g,l+d,!1),T=f+v*S(g)+Rw(g,l+d,!1),A="right",M="middle";break;case"insideStartAngle":w=c+v*x(g)+Pw(g,-l+d,!1),T=f+v*S(g)+Rw(g,-l+d,!1),A="left",M="middle";break;case"middle":w=c+v*x(m),T=f+v*S(m),A="center",M="middle";break;case"endArc":w=c+(p+l)*x(m),T=f+(p+l)*S(m),A="center",M="bottom";break;case"insideEndArc":w=c+(p-l)*x(m),T=f+(p-l)*S(m),A="center",M="top";break;case"endAngle":w=c+v*x(y)+Pw(y,l+d,!0),T=f+v*S(y)+Rw(y,l+d,!0),A="left",M="middle";break;case"insideEndAngle":w=c+v*x(y)+Pw(y,-l+d,!0),T=f+v*S(y)+Rw(y,-l+d,!0),A="right",M="middle";break;default:return Tp(i,n,a)}return i=i||{},i.x=w,i.y=T,i.align=A,i.verticalAlign=M,i}}function WY(r,e,t,i){if(ue(i)){r.setTextConfig({rotation:i});return}else if(it(e)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;if(u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5)c-=Math.PI;r.setTextConfig({rotation:c})}function Pw(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Rw(r,e,t){return e*Math.cos(r)*(t?1:-1)}var YY=k(()=>{Hn();Z()});function aa(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;if(!it(i))i=[i,i,i,i];var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:nt(i,function(a){return wn(a,n)})}}var Kv=k(()=>{Z();Hn()});function wxt(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function XY(r,e,t,i,n,a,o,s){var l,u;if(a)u={x:i.x,width:i.width},l={y:i.y,height:i.height};else u={y:i.y,height:i.height},l={x:i.x,width:i.width};if(!s)(o?ge:ze)(t,{shape:l},e,n,null);var c=e?r.baseAxis.model:null;(o?ge:ze)(t,{shape:u},c,n)}function KY(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}function Cxt(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function e7(r){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(r)}function JY(r,e,t,i,n,a,o,s){var l=e.getItemVisual(t,"style");if(!s){var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}else if(!a.get("roundCap")){var c=r.shape,f=aa(i.getModel("itemStyle"),c,!0);et(c,f),r.setShape(c)}r.useStyle(l);var p=i.getShallow("cursor");p&&r.attr("cursor",p);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?Ixt(n,a.coordinateSystem):Pxt(n,a.coordinateSystem),v=er(i);or(r,v,{labelFetcher:a,labelDataIndex:t,defaultText:Xs(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=r.getTextContent();if(s&&g){var y=i.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,WY(r,y==="outside"?h:y,e7(o),i.get(["label","rotate"]))}$S(g,v,a.getRawValue(t),function(d){return hw(e,d)});var m=i.getModel(["emphasis"]);if(Ie(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),pr(r,i),Cxt(n))r.style.fill="none",r.style.stroke="none",P(r.states,function(d){if(d.style)d.style.fill=d.style.stroke="none"})}function Ext(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,n,a)}function QY(r,e,t,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),c=i?ln(r):0;if(u){var f=new $Y({shape:{points:u},incremental:c,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var p=new $Y({shape:{points:n.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});if(p.baseDimIdx=a,p.largeDataIndices=o,p.barWidth=s,e.add(p),p.useStyle(n.getVisual("style")),p.style.stroke=null,Yt(p).seriesIndex=r.seriesIndex,!r.get("silent"))p.on("mousedown",t7),p.on("mousemove",t7);t&&t.push(p)}function Lxt(r,e,t){var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth;for(var c=0,f=a.length/3;c<f;c++){var p=c*3;if(l[i]=u,l[n]=a[p+2],s[i]=a[p+i],s[n]=a[p+n],l[n]<0)s[n]+=l[n],l[n]=-l[n];if(e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function r7(r,e,t){if(ns(t,"cartesian2d")){var i=e,n=t.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=t.getArea(),a=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function Dxt(r,e,t){var i=r.type==="polar"?Qr:ee;return new i({shape:r7(e,t,r),silent:!0,z2:0})}function Ixt(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function Pxt(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var eP,rP,bxt,ZY,jY,Txt,Axt,qY,Ow,Mxt,$Y,t7,i7;var n7=k(()=>{dt();Br();Rc();Z();jt();lr();tr();rr();Ks();tP();Xr();Vv();YY();Ki();Kv();yt();ql();eP=Math.max,rP=Math.min,bxt=function(r){W(e,r);function e(){var t=r.call(this)||this;return t.type=na,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,n,a){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");if(o==="cartesian2d"||o==="polar")this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,n):this._renderNormal(t,i,n,a)},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Kn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;if(this._isLargeDraw==null||i!==this._isLargeDraw)this._isLargeDraw=i,this._clear()},e.prototype._renderNormal=function(t,i,n,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),f;if(u.type==="cartesian2d")f=c.isHorizontal();else if(u.type==="polar")f=c.dim==="angle";var p=t.isAnimationEnabled()?t:null,h=wxt(t,u);if(h)this._enableRealtimeSort(h,s,n);var v=t.get("clip",!0)||h,g=u.getArea();o.removeClipPath();var y=t.get("roundCap",!0),m=t.get("showBackground",!0),d=t.getModel("backgroundStyle"),x=d.get("borderRadius")||0,S=[],w=this._backgroundEls,T=a&&a.isInitSort,A=a&&a.type==="changeAxisOrder";function M(I){var E=Ow[u.type](s,I);if(!E)return null;var R=Dxt(u,f,E);if(R.useStyle(d.getItemStyle()),u.type==="cartesian2d")R.setShape("r",x);else R.setShape("cornerRadius",x);return S[I]=R,R}s.diff(l).add(function(I){var E=s.getItemModel(I),R=Ow[u.type](s,I,E);if(!R)return;if(m)M(I);if(!s.hasValue(I)||!qY[u.type](R))return;var B=!1;if(v)B=ZY[u.type](g,R);var z=jY[u.type](t,s,I,R,f,p,c.model,!1,y);if(h)z.forceLabelAnimation=!0;if(JY(z,s,I,E,R,t,f,u.type==="polar"),T)z.attr({shape:R});else if(h)XY(h,p,z,R,I,f,!1,!1);else ze(z,{shape:R},t,I);s.setItemGraphicEl(I,z),o.add(z),z.ignore=B}).update(function(I,E){var R=s.getItemModel(I),B=Ow[u.type](s,I,R);if(!B)return;if(m){var z=void 0;if(w.length===0)z=M(E);else{if(z=w[E],z.useStyle(d.getItemStyle()),u.type==="cartesian2d")z.setShape("r",x);else z.setShape("cornerRadius",x);S[I]=z}var V=Ow[u.type](s,I),H=r7(f,V,u);ge(z,{shape:H},p,I)}var K=l.getItemGraphicEl(E);if(!s.hasValue(I)||!qY[u.type](B)){o.remove(K);return}var F=!1;if(v){if(F=ZY[u.type](g,B),F)o.remove(K)}var G=K&&(K.type==="sector"&&y||K.type==="sausage"&&!y);if(G)K&&La(K,t,E),K=null;if(!K)K=jY[u.type](t,s,I,B,f,p,c.model,!0,y);else pi(K);if(h)K.forceLabelAnimation=!0;if(A){var rt=K.getTextContent();if(rt){var ot=Ru(rt);if(ot.prevValue!=null)ot.prevValue=ot.value}}else JY(K,s,I,R,B,t,f,u.type==="polar");if(T)K.attr({shape:B});else if(h)XY(h,p,K,B,I,f,!0,A);else ge(K,{shape:B},t,I,null);s.setItemGraphicEl(I,K),K.ignore=F,o.add(K)}).remove(function(I){var E=l.getItemGraphicEl(I);E&&La(E,t,I)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Lt);D.removeAll();for(var L=0;L<S.length;++L)D.add(S[L]);o.add(D),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,i,n){this._clear(),QY(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),QY(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&ho(t.coordinateSystem,!1,t),n=this.group;if(i)n.setClipPath(i);else n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,n){var a=this;if(!i.count())return;var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}},e.prototype._dataSort=function(t,i,n){var a=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=n(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:nt(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,n){var a=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE;for(var l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:i(t.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,i){var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);for(;o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,n,a){if(!this._isOrderChangedWithinSameData(t,i,n))return;var o=this._dataSort(t,n,i);if(this._isOrderDifferentInView(o,n))this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o})},e.prototype._dispatchInitSort=function(t,i,n){var a=i.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){if(this._onRendered)t.getZr().off("rendered",this._onRendered),this._onRendered=null},e.prototype._clear=function(t){var i=this.group,n=this._data;if(t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw)this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){La(a,t,Yt(a).dataIndex)});else i.removeAll();this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=na,e}(Ce),ZY={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;if(t<0)e.x+=e.width,e.width=-e.width;if(i<0)e.y+=e.height,e.height=-e.height;var n=r.x+r.width,a=r.y+r.height,o=eP(e.x,r.x),s=rP(e.x+e.width,n),l=eP(e.y,r.y),u=rP(e.y+e.height,a),c=s<o,f=u<l;if(e.x=c&&o>n?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,e.height=f?0:u-l,t<0)e.x+=e.width,e.width=-e.width;if(i<0)e.y+=e.height,e.height=-e.height;return c||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var n=rP(e.r,r.r),a=eP(e.r0,r.r0);e.r=n,e.r0=a;var o=n-a<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},jY={cartesian2d:function(r,e,t,i,n,a,o,s,l){var u=new ee({shape:et({},i),z2:1});if(u.__dataIndex=t,u.name="item",a){var c=u.shape,f=n?"height":"width";c[f]=0}return u},polar:function(r,e,t,i,n,a,o,s,l){var u=!n&&l?Xv:Qr,c=new u({shape:i,z2:1});c.name="item";var f=e7(n);if(c.calculateTextPosition=HY(f,{isRoundCap:u===Xv}),a){var p=c.shape,h=n?"r":"endAngle",v={};p[h]=n?i.r0:i.startAngle,v[h]=i[h],(s?ge:ze)(c,{shape:v},a)}return c}};Txt=["x","y","width","height"],Axt=["cx","cy","r","startAngle","endAngle"],qY={cartesian2d:function(r){return!KY(r,Txt)},polar:function(r){return!KY(r,Axt)}},Ow={cartesian2d:function(r,e,t){var i=r.getItemLayout(e);if(!i)return null;var n=t?Ext(t,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};Mxt=function(){function r(){}return r}(),$Y=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new Mxt},e.prototype.buildPath=function(t,i){var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth;for(var c=0;c<n.length;c+=3)l[a]=u,l[o]=n[c+2],s[a]=n[c+a],s[o]=n[c+o],t.rect(s[0],s[1],l[0],l[1])},e}($t);t7=wy(function(r){var e=this,t=Lxt(e,r.offsetX,r.offsetY);Yt(e).dataIndex=t>=0?t:null},30,!1);i7=bxt});function iP(r){r.registerChartView(i7),r.registerSeriesModel(FY),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Mw(na)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lw(na)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,u0(na)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(n){if(e.sortInfo)n.axis.setCategorySortInfo(e.sortInfo)})}),Dw(r)}var a7=k(()=>{Iw();BI();GY();n7();ql()});function Js(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!i||!i.length)return;var n=e.getData();n.filterSelf(function(a){var o=n.getName(a);for(var s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}function vo(r,e,t){e=it(e)&&{coordDimensions:e}||et({encodeDefine:r.getEncode()},e);var i=r.getSource(),n=Fs(i,e).dimensions,a=new Kr(n,r);return a.initData(i,t),a}var Mh=k(()=>{_v();ts();Z()});var Rxt,as;var Lh=k(()=>{Rxt=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r}(),as=Rxt});var $s="pie",Oxt,o7,s7;var kw=k(()=>{dt();Mh();Z();yt();te();Ol();Lh();Zr();Pa();Oxt=Ft(),o7=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new as(xt(this.getData,this),xt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return vo(this,{coordDimensions:["value"],encodeDefaulter:ne(uv,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),n=Oxt(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=sF(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){io(t,"labelLine",["show"]);var i=t.labelLine,n=t.emphasis.labelLine;i.show=i.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+$s,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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:1000,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Pe);iH({fullType:o7.type,getCoord2:function(r){return r.getShallow("center")}});s7=o7});function l7(r,e,t,i,n,a,o,s,l,u){if(r.length<2)return;function c(g){var y=g.rB,m=y*y;for(var d=0;d<g.list.length;d++){var x=g.list[d],S=Math.abs(x.label.y-t),w=i+x.len,T=w*w,A=Math.sqrt(Math.abs((1-S*S/m)*T)),M=e+(A+x.len2)*n,D=M-x.label.x,L=x.targetTextWidth-D*n;c7(x,L,!0),x.label.x=M}}function f(g){var y={list:[],maxY:0},m={list:[],maxY:0};for(var d=0;d<g.length;d++){if(g[d].labelAlignTo!=="none")continue;var x=g[d],S=x.label.y>t?m:y,w=Math.abs(x.label.y-t);if(w>=S.maxY){var T=x.label.x-e-x.len2*n,A=i+x.len,M=Math.abs(T)<A?Math.sqrt(w*w/(1-T*T/A/A)):A;S.rB=M,S.maxY=w}S.list.push(x)}c(y),c(m)}var p=r.length;for(var h=0;h<p;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var v=r[h].label.x-u;r[h].linePoints[1][0]+=v,r[h].label.x=u}if(qy(r,1,l,l+o))f(r)}function Nxt(r,e,t,i,n,a,o,s){var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE;for(var p=0;p<r.length;p++){var h=r[p].label;if(nP(r[p]))continue;if(h.x<e)c=Math.min(c,h.x),l.push(r[p]);else f=Math.max(f,h.x),u.push(r[p])}for(var p=0;p<r.length;p++){var v=r[p];if(!nP(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var{label:h,linePoints:g}=v,y=void 0;if(v.labelAlignTo==="edge")if(h.x<e)y=g[2][0]-v.labelDistance-o-v.edgeDistance;else y=o+n-v.edgeDistance-g[2][0]-v.labelDistance;else if(v.labelAlignTo==="labelLine")if(h.x<e)y=c-o-v.bleedMargin;else y=o+n-f-v.bleedMargin;else if(h.x<e)y=h.x-o-v.bleedMargin;else y=o+n-h.x-v.bleedMargin;v.targetTextWidth=y,c7(v,y,!1)}}l7(u,e,t,i,1,n,a,o,s,f),l7(l,e,t,i,-1,n,a,o,s,c);for(var p=0;p<r.length;p++){var v=r[p];if(!nP(v)&&v.linePoints){var{label:h,linePoints:g}=v,m=v.labelAlignTo==="edge",d=h.style.padding,x=d?d[1]+d[3]:0,S=h.style.backgroundColor?0:x,w=v.rect.width+S,T=g[1][0]-g[2][0];if(m)if(h.x<e)g[2][0]=o+v.edgeDistance+w+v.labelDistance;else g[2][0]=o+n-v.edgeDistance-w-v.labelDistance;else{if(h.x<e)g[2][0]=h.x+v.labelDistance;else g[2][0]=h.x-v.labelDistance;g[1][0]=g[2][0]+T}g[1][1]=g[2][1]=h.y}}}function c7(r,e,t){if(r.labelStyleWidth!=null)return;var i=r.label,n=i.style,a=r.rect,{backgroundColor:o,padding:s}=n,l=s?s[1]+s[3]:0,u=n.overflow,c=a.width+(o?0:l);if(e<c||t){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var f=i.getBoundingRect();i.setStyle("width",Math.ceil(f.width)),i.setStyle("backgroundColor",o)}else{var p=e-l,h=e<c?p:t?p>r.unconstrainedWidth?null:p:null;i.setStyle("width",h)}f7(a,i)}}function f7(r,e){u7.rect=r,JD(u7,e,zxt)}function nP(r){return r.position==="center"}function aP(r){var e=r.getData(),t=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*kxt,s=e.getLayout("viewRect"),l=e.getLayout("r"),{width:u,x:c,y:f,height:p}=s;function h(T){T.ignore=!0}function v(T){if(!T.ignore)return!0;for(var A in T.states)if(T.states[A].ignore===!1)return!0;return!1}if(e.each(function(T){var A=e.getItemGraphicEl(T),M=A.shape,D=A.getTextContent(),L=A.getTextGuideLine(),I=e.getItemModel(T),E=I.getModel("label"),R=E.get("position")||I.get(["emphasis","label","position"]),B=E.get("distanceToLabelLine"),z=E.get("alignTo"),V=wt(E.get("edgeDistance"),u),H=E.get("bleedMargin");if(H==null)H=Math.min(u,p)>200?10:2;var K=I.getModel("labelLine"),F=K.get("length");F=wt(F,u);var G=K.get("length2");if(G=wt(G,u),Math.abs(M.endAngle-M.startAngle)<o){if(P(D.states,h),D.ignore=!0,L)P(L.states,h),L.ignore=!0;return}if(!v(D))return;var rt=(M.startAngle+M.endAngle)/2,ot=Math.cos(rt),at=Math.sin(rt),mt,Tt,Ut,qt;i=M.cx,n=M.cy;var Zt=R==="inside"||R==="inner";if(R==="center")mt=M.cx,Tt=M.cy,qt="center";else{var Rt=(Zt?(M.r+M.r0)/2*ot:M.r*ot)+i,oe=(Zt?(M.r+M.r0)/2*at:M.r*at)+n;if(mt=Rt+ot*3,Tt=oe+at*3,!Zt){var Vt=Rt+ot*(F+l-M.r),N=oe+at*(F+l-M.r),vt=Vt+(ot<0?-1:1)*G,ut=N;if(z==="edge")mt=ot<0?c+V:c+u-V;else mt=vt+(ot<0?-B:B);Tt=ut,Ut=[[Rt,oe],[Vt,N],[vt,ut]]}qt=Zt?"center":z==="edge"?ot>0?"right":"left":ot>0?"left":"right"}var q=Math.PI,X=0,lt=E.get("rotate");if(ue(lt))X=lt*(q/180);else if(R==="center")X=0;else if(lt==="radial"||lt===!0){var At=ot<0?-rt+q:-rt;X=At}else if(lt==="tangential"||lt==="tangential-noflip"&&R!=="outside"&&R!=="outer"){var Ct=Math.atan2(ot,at);if(Ct<0)Ct=q*2+Ct;var pt=at>0;if(pt&&lt!=="tangential-noflip")Ct=q+Ct;X=Ct-q}if(a=!!X,D.x=mt,D.y=Tt,D.rotation=X,D.setStyle({verticalAlign:"middle"}),!Zt){var Ht=new Gt(0,0,0,0);f7(Ht,D),t.push({label:D,labelLine:L,position:R,len:F,len2:G,minTurnAngle:K.get("minTurnAngle"),maxSurfaceAngle:K.get("maxSurfaceAngle"),surfaceNormal:new Qt(ot,at),linePoints:Ut,textAlign:qt,labelDistance:B,labelAlignTo:z,edgeDistance:V,bleedMargin:H,rect:Ht,unconstrainedWidth:Ht.width,labelStyleWidth:D.style.width})}else{D.setStyle({align:qt});var ie=D.states.select;if(ie)ie.x+=D.x,ie.y+=D.y}A.setTextConfig({inside:Zt})}),!a&&r.get("avoidLabelOverlap"))Nxt(t,i,n,l,u,p,c,f);for(var g=0;g<t.length;g++){var y=t[g],{label:m,labelLine:d}=y,x=isNaN(m.x)||isNaN(m.y);if(m){if(m.setStyle({align:y.textAlign}),x)P(m.states,h),m.ignore=!0;var S=m.states.select;if(S)S.x+=m.x,S.y+=m.y}if(d){var w=y.linePoints;if(x||!w)P(d.states,h),d.ignore=!0;else KD(w,y.minTurnAngle),aW(w,y.surfaceNormal,y.maxSurfaceAngle),d.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new Qt(w[0][0],w[0][1])}}}}var kxt,zxt,u7;var p7=k(()=>{te();jt();fr();Z();Zy();Jy();kxt=Math.PI/180;zxt={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},u7={}});function Bxt(r,e){r.eachSeriesByType($s,function(t){var i=t.getData(),n=i.mapDimension("value"),a=Eb(t,e),{cx:o,cy:s,r:l,r0:u,viewRect:c}=a,f=-t.get("startAngle")*Nw,p=t.get("endAngle"),h=t.get("padAngle")*Nw;p=p==="auto"?f-h7:-p*Nw;var v=t.get("minAngle")*Nw,g=v+h,y=0;i.each(n,function(V){!isNaN(V)&&y++});var m=i.getSum(n),d=Math.PI/(m||y)*2,x=t.get("clockwise"),S=t.get("roseType"),w=t.get("stillShowZeroSum"),T=i.getDataExtent(n);T[0]=0;var A=x?1:-1,M=[f,p],D=A*h/2;kp(M,!x),f=M[0],p=M[1];var L=oP(t);L.startAngle=f,L.endAngle=p,L.clockwise=x,L.cx=o,L.cy=s,L.r=l,L.r0=u;var I=Math.abs(p-f),E=I,R=0,B=f;if(i.setLayout({viewRect:c,r:l}),i.each(n,function(V,H){var K;if(isNaN(V)){i.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:o,cy:s,r0:u,r:S?NaN:l});return}if(S!=="area")K=m===0&&w?d:V*d;else K=I/y;if(K<g)K=g,E-=g;else R+=V;var F=B+A*K,G=0,rt=0;if(h>K)G=B+A*K/2,rt=G;else G=B+D,rt=F-D;i.setItemLayout(H,{angle:K,startAngle:G,endAngle:rt,clockwise:x,cx:o,cy:s,r0:u,r:S?Ne(V,T,[u,l]):l}),B=F}),E<h7&&y)if(E<=0.001){var z=I/y;i.each(n,function(V,H){if(!isNaN(V)){var K=i.getItemLayout(H);K.angle=z;var F=0,G=0;if(z<h)F=f+A*(H+0.5)*z,G=F;else F=f+A*H*z+D,G=f+A*(H+1)*z-D;K.startAngle=F,K.endAngle=G}})}else d=E/R,B=f,i.each(n,function(V,H){if(!isNaN(V)){var K=i.getItemLayout(H),F=K.angle===g?g:V*d,G=0,rt=0;if(F<h)G=B+A*F/2,rt=G;else G=B+D,rt=B+A*F-D;K.startAngle=G,K.endAngle=rt,B+=A*F}})})}var h7,Nw,d7,oP;var sP=k(()=>{te();kw();ao();yt();ur();h7=Math.PI*2,Nw=Math.PI/180,d7=Ke($s,Bxt);oP=Ft()});var Uxt,Vxt,v7;var m7=k(()=>{dt();Z();jt();tr();Xr();kw();p7();Zy();rr();Kv();Ki();sP();Uxt=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;a.z2=2;var o=new me;return a.setTextContent(o),a.updateData(t,i,n,!0),a}return e.prototype.updateData=function(t,i,n,a){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),c=t.getItemLayout(i),f=et(aa(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var p=s.getShallow("animationType");if(s.ecModel.ssr)ze(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=f.cx,o.originY=f.cy;else if(p==="scale")o.shape.r=c.r0,ze(o,{shape:{r:c.r}},s,i);else if(n!=null)o.setShape({startAngle:n,endAngle:n}),ze(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i);else o.shape.endAngle=c.startAngle,ge(o,{shape:{endAngle:c.endAngle}},s,i)}else pi(o),ge(o,{shape:f},s,i);o.useStyle(t.getItemVisual(i,"style")),pr(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(h)*v,y=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=et({r:c.r+(u.get("scale")?u.get("scaleSize")||0:0)},aa(u.getModel("itemStyle"),c)),et(o.ensureState("select"),{x:g,y,shape:aa(l.getModel(["select","itemStyle"]),c)}),et(o.ensureState("blur"),{shape:aa(l.getModel(["blur","itemStyle"]),c)});var d=o.getTextGuideLine(),x=o.getTextContent();d&&et(d.ensureState("select"),{x:g,y}),et(x.ensureState("select"),{x:g,y}),Ie(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,c=l&&l.opacity;or(a,er(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(n,"normal")||i.getName(n)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var p=o.get(["label","position"]);if(p!=="outside"&&p!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();if(!h)h=new Mr,this.setTextGuideLine(h);Nv(this,zv(o),{stroke:u,opacity:Hr(s.get(["lineStyle","opacity"]),c,1)})}},e}(Qr),Vxt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=$s,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,n,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){var c=o.getItemLayout(0);for(var f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);if(c)u=c.startAngle}if(this._emptyCircleSector)l.remove(this._emptyCircleSector);if(o.count()===0&&t.get("showEmptyCircle")){var p=oP(t),h=new Qr({shape:It(p)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}if(o.diff(s).add(function(v){var g=new Uxt(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var y=s.getItemGraphicEl(g);y.updateData(o,v,u),y.off("click"),l.add(y),o.setItemGraphicEl(v,y)}).remove(function(v){var g=s.getItemGraphicEl(v);La(g,t,v)}).execute(),aP(t),t.get("animationTypeUpdate")!=="expansion")this._data=o},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=$s,e}(Ce),v7=Vxt});function lP(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);if(ue(o)&&!isNaN(o)&&o<0)return!1;return!0})}}}var g7=k(()=>{Z()});function uP(r){r.registerChartView(v7),r.registerSeriesModel(s7),o1($s,r.registerAction),r.registerLayout(d7),r.registerProcessor(Js($s)),r.registerProcessor(lP($s))}var y7=k(()=>{s1();m7();kw();g7();sP()});var Fxt,_7;var x7=k(()=>{dt();Nl();Zr();we();Fxt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return $i(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;if(t==null)return this.option.large?5000:this.get("progressive");return t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;if(t==null)return this.option.large?1e4:this.get("progressiveThreshold");return t},e.prototype.brushSelector=function(t,i,n){return n.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2000,itemStyle:{opacity:0.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Q.color.primary}},universalTransition:{divideShape:"clone"}},e}(Pe),_7=Fxt});var S7=4,Gxt,Hxt,Wxt,b7;var w7=k(()=>{dt();jt();qi();lr();Gxt=function(){function r(){}return r}(),Hxt=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new Gxt},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){if(t&&!t.contentRetained)this.reset()},e.prototype.buildPath=function(t,i){var{points:n,size:a}=i,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&a[0]<S7,c=this.softClipShape,f;if(u){this._ctx=l;return}this._ctx=null;for(f=this._off;f<n.length;){var p=n[f++],h=n[f++];if(isNaN(p)||isNaN(h))continue;if(c&&!c.contain(p,h))continue;s.x=p-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(t,s,!0)}if(this.incremental)this._off=f,this.notClear=!0},e.prototype.afterBrush=function(){var t=this.shape,{points:i,size:n}=t,a=this._ctx,o=this.softClipShape,s;if(!a)return;for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];if(isNaN(l)||isNaN(u))continue;if(o&&!o.contain(l,u))continue;a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}if(this.incremental)this._off=s,this.notClear=!0},e.prototype.findDataIndex=function(t,i){var n=this.shape,{points:a,size:o}=n,s=Math.max(o[0],4),l=Math.max(o[1],4);for(var u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,p=a[c+1]-l/2;if(t>=f&&i>=p&&t<=f+s&&i<=p+l)return u}return-1},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=n[0],i=n[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){var i=this.shape,{points:n,size:a}=i,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0;for(var p=0;p<n.length;){var h=n[p++],v=n[p++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}t=this._rect=new Gt(l-o/2,u-s/2,c-l+o,f-u+s)}return t},e}($t),Wxt=function(){function r(){this.group=new Lt}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(!t)return;var i=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,o=n.startIndex*4*2;i=new Float32Array(i.buffer,o,a)}n.setShape("points",i),n.reset(),n.stopAnimation()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i,n){var a=this._newAdded[0],o=t.getLayout("points"),s=a&&a.shape.points;if(s&&s.length<20000){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),a.endIndex=e.end,a.setShape({points:u})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=i,c.setShape({points:o}),this._setCommon(c,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Hxt({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var n=t.hostModel;i=i||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=i.clipShape||null,e.symbolProxy=ir(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<S7;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;if(l)e.setColor(l);var u=Yt(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;if(f>=0)u.dataIndex=f+(e.startIndex||0)})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),b7=Wxt});function cP(r){return{clipShape:xw(r)}}var Yxt,T7;var A7=k(()=>{dt();Fv();w7();Gv();Xr();yt();Ks();Yxt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.updateData(a,cP(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,n){var a=t.getData(),o=this._updateSymbolDraw(a,t);o.incrementalPrepareUpdate(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,n){this._symbolDraw.incrementalUpdate(t,i.getData(),ln(i),cP(i)),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,n){var a=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};else{var o=qs("").reset(t,i,n);if(o.progress)o.progress({start:0,end:a.count(),count:a.count()},a);this._symbolDraw.updateLayout(cP(t))}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;if(!n||o!==this._isLargeDraw)n&&n.remove(),n=this._symbolDraw=o?new b7:new Xl,this._isLargeDraw=o,this.group.removeAll();return this.group.add(n.group),n},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Ce);T7=Yxt});var zw;var C7=k(()=>{dt();Z();Nr();Dv();yt();zw=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xe).models[0]},e.type="cartesian2dAxis",e}(de);dr(zw,Gl)});var E7,Zxt,fP,jxt,Xxt,Bw;var pP=k(()=>{Z();we();E7={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:"auto",onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:0.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Zxt=re({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},E7),fP=re({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},E7),jxt=re({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fP),Xxt=Dt({logBase:10},fP),Bw={category:Zxt,value:fP,time:jxt,log:Xxt}});function Qs(r,e,t,i){P(F1,function(n,a){var o=re(re({},Bw[a],!0),i,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var p=Xc(this),h=p?Ra(c):{},v=f.getTheme();if(re(c,v.get(a+"Axis")),re(c,this.getDefaultOption()),c.type=M7(c),p)hn(c,h,p)},u.prototype.optionUpdated=function(){var c=this.option;if(c.type==="category")this.__ordinalMeta=rf.createByAxisModel(this)},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category"){if(c)return f.data;return this.__ordinalMeta.categories}},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var f=Xu();return f?f.updateModelAxisBreak(this,c):{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",M7)}function M7(r){return r.type||(r.data?"category":"value")}var d0=k(()=>{dt();pP();ur();L1();PD();Z()});var Kxt,L7;var D7=k(()=>{Z();Kxt=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return nt(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),be(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),L7=Kxt});function I7(r){return(r.type==="interval"||r.type==="time")&&!Zc(r)}var v0,qxt,P7;var R7=k(()=>{dt();fr();D7();Eh();br();rs();v0=["x","y"];qxt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Nn,t.dimensions=v0,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!I7(t)||!I7(i))return;var n=vh(t,null),a=vh(i,null),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!l||!u)return;var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,p=o[0]-n[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,p,h];this._invTransform=mi([],v)},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var n=this.dataToPoint(t),a=this.dataToPoint(i),o=this.getArea(),s=new Gt(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,n){n=n||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return vr(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},e.prototype.clampData=function(t,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(t[0]),u=a.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i,n){if(n=n||[],this._invTransform)return vr(n,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(t[0]),i),n[1]=o.coordToData(o.toLocalCoord(t[1]),i),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(i[0],i[1])-a+t,l=Math.max(n[0],n[1])-o+t;return new Gt(a,o,s,l)},e}(L7),P7=qxt});function Uw(r,e){var{scale:t,model:i}=r,n=j1(t,i,i.ecModel,r,null),a=Bl(t),o=Bl(e)?e.intervalStub:e,s=a?t.intervalStub:t,l=t.base,u=o.getTicks(),c=o.getTicks({expandToNicedExtent:!0}),f=u.length-1,p,h,v;if(f===1)p=h=0,v=1;else if(f===2){var g=yr(u[0].value-u[1].value),y=yr(u[1].value-u[2].value);if(p=h=0,g===y)v=2;else if(v=1,g<y)p=g/y;else h=y/g}else{var m=o.getConfig().interval;p=(1-(u[0].value-c[0].value)/m)%1,h=(1-(c[f].value-u[f].value)/m)%1,v=f-(p?1:0)-(h?1:0)}var d=n.zoomFixMM,x=d[0]||d[1],S=[n.fixMM[0]||x,n.fixMM[1]||x],w=t.getExtent(),T=s.getExtent(),A=R1(T,S),M,D,L,I,E,R;function B(ot){var at=50,mt=0;for(;mt<at;mt++){if(ot())break;L=a?L*ce(l,2):e8(L),I=Gs(L)}}function z(){M=Me(R-L*p,I)}function V(){D=Me(E+L*h,I)}function H(){R=p?Me(M+L*p,I):M}function K(){E=h?Me(D-L*h,I):D}if(S[0]&&S[1]){M=A[0],D=A[1],L=(D-M)/(v+p+h);var F=r.getExtent(),G=yr(F[1]-F[0]);if(I=kd([D,M],G,0.5/v),H(),K(),ki(I))L=Me(L,I)}else{var rt=A[1]-A[0];if(L=a?ce(oS(rt),1):Ap(rt/v,kE),I=Gs(L),S[0])M=A[0],B(function(){if(H(),E=Me(R+L*v,I),V(),D>=A[1])return!0});else if(S[1])D=A[1],B(function(){if(K(),R=Me(E-L*v,I),z(),M<=A[0])return!0});else B(function(){R=Me(zo(A[0]/L)*L,I),E=Me(Tn(A[1]/L)*L,I);var ot=Sa((E-R)/L);if(ot<=v){var at=v-ot,mt=void 0,Tt=n.incl0||a;if(Tt&&A[0]===0)mt=[0,at];else if(Tt&&A[1]===0)mt=[at,0];else{var Ut=Tn(at/2);mt=at%2===0?[Ut,Ut]:M+D<A[0]+A[1]?[Ut,Ut+1]:[Ut+1,Ut]}if(R=Me(R-L*mt[0],I),E=Me(E+L*mt[1],I),z(),V(),M<=A[0]&&D>=A[1])return!0}})}W1(t,S,T,[M,D],w,{interval:L,intervalCount:v,intervalPrecision:I,niceExtent:[R,E]})}var hP=k(()=>{te();Qi();_i();po()});function $xt(r,e){return r.getCoordSysModel()===e}function k7(r,e,t,i){t.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null){if(N7(s,n[l]))a=n[l]}else for(var u in n)if(Bt(n,u)&&N7(s,n[u])&&!i[c(n[u])]){a=n[u];break}if(a)i[c(a)]=!0;function c(f){return f.dim+"_"+f.index}}function N7(r,e){if(!e)return!1;var t=e.scale,i=g8(t,0,!1),n=e&&e.type!=="category"&&e.type!=="time"&&i!==G1;if(n&&r==="auto"&&_8(e))n=!1;return n}function z7(r){var e=le(r),t,i=[];for(var n=e.length-1;n>=0;n--){var a=r[+e[n]];if(I1(a.scale)&&RD(a.model,a.type,!0)==null)if(a.model.get("alignTicks")&&a.model.get("interval")==null)i.push(a);else t=a}if(!t)t=i.pop();if(t)P(i,function(o){o.__alignTo=t})}function Qxt(r,e){return Zc(r.scale)||Zc(e.scale)||e.scale.getTicks().length<2}function tSt(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return i-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return i-n+e}}function dP(r,e){P(r.x,function(t){return B7(t,e.x,e.width)}),P(r.y,function(t){return B7(t,e.y,e.height)})}function B7(r,e,t){var i=[0,t],n=r.inverse?1:0;r.setExtent(i[n],i[1-n]),tSt(r,e)}function V7(r){vP=r}function U7(r,e,t,i,n,a,o){F7(i,n,Na.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=$a(s,function(p){return p>0})==null;return Xo(i,s,!0,!0,t),dP(n,i),l;function u(p){P(n[fe[p]],function(h){if(!_h(h.model))return;var v=a.ensureRecord(h.model),g=v.labelInfoList;if(g)for(var y=0;y<g.length;y++){var m=g[y],d=h.scale.normalize(Hs(h.scale,gf(m.label).labelInfo.tick));d=p===1?1-d:d,c(m.rect,p,d),c(m.rect,1-p,NaN)}var x=v.nameLayout;if(x){var d=af(v.nameLocation)?0.5:NaN;c(x.rect,p,d),c(x.rect,1-p,NaN)}})}function c(p,h,v){var g=r[fe[h]]-p[fe[h]],y=p[Lr[h]]+p[fe[h]]-(r[Lr[h]]+r[fe[h]]);g=f(g,1-v),y=f(y,v);var m=O7[h][0],d=O7[h][1];s[m]=ce(s[m],g),s[d]=ce(s[d],y)}function f(p,h){if(p>0&&!Jr(h)&&h>0.0001)p/=h;return p}}function eSt(r,e,t,i,n){var a=new jI(iSt);return P(t,function(o){return P(o,function(s){if(_h(s.model)){var l=!i;s.axisBuilder=DY(r,e,s.model,n,a,l)}})}),a}function F7(r,e,t,i,n,a){var o=t===Na.determine;P(e,function(u){return P(u,function(c){if(_h(c.model))IY(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n})})});var s={x:0,y:0};l(0),l(1);function l(u){s[fe[1-u]]=r[Lr[u]]<=a.refContainer[Lr[u]]*0.5?0:1-u===1?2:1}P(e,function(u,c){return P(u,function(f){if(_h(f.model)){if(i==="all"||o)f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]});if(o)f.axisBuilder.build({axisLine:!0})}})})}function rSt(r,e,t){var i,n=r.get("outerBoundsMode",!0);if(n==="same")i=e.clone();else if(n==null||n==="auto")i=Be(r.get("outerBounds",!0)||JI,t.refContainer);var a=r.get("outerBoundsContain",!0),o;if(a==null||a==="auto")o="all";else if(Xt(["all","axisLabel"],a)<0)o="all";else o=a;var s=[Od(St(r.get("outerBoundsClampWidth",!0),h0[0]),e.width),Od(St(r.get("outerBoundsClampHeight",!0),h0[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var O7,Jxt,vP,iSt=function(r,e,t,i,n,a){var o=t.axis.dim==="x"?"y":"x";if(XI(r,e,t,i,n,a),!af(r.nameLocation))P(e.recordMap[o],function(s){if(s&&s.labelInfoList&&s.dirVec)KI(s.labelInfoList,s.dirVec,i,n)})},G7;var mP=k(()=>{Z();ur();Qi();R7();VI();yt();Eh();p0();_i();hP();jt();Kl();J1();Pa();te();Ov();ky();po();ta();O7=[[3,1],[0,2]],Jxt=function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=v0,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;P(this._axesList,function(o){fo(o,Ws);var s=o.scale;if(Ur(s))s.setSortInfo(o.model.get("categorySortInfo"))});function n(o){var s=le(o),l=[];for(var u=s.length-1;u>=0;u--){var c=o[+s[u]];if(c.__alignTo)l.push(c);else Wl(c)}P(l,function(f){if(Qxt(f,f.__alignTo))Wl(f);else Uw(f,f.__alignTo.scale)})}n(i.x),n(i.y);var a={};P(i.x,function(o){k7(i,"y",o,a)}),P(i.y,function(o){k7(i,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var n=Je(e,t),a=this._rect=Be(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(dP(o,a),!i){var u=eSt(a,s,o,l,t),c=void 0;if(l)if(vP)vP(this._axesList,a),dP(o,a);else c=U7(a.clone(),"axisLabel",null,a,o,u,n);else{var f=rSt(e,a,n),{outerBoundsRect:p,parsedOuterBoundsContain:h,outerBoundsClamp:v}=f;if(p)c=U7(p,h,v,a,o,u,n)}F7(a,o,Na.determine,null,c,n),P(this._coordsList,function(g){g.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}if(Pt(e))t=e.yAxisIndex,e=e.xAxisIndex;for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===t)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",Xe).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",Xe).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,Xt(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;if(u===this)s=this._coordsList[0]}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,P(s.x,function(c,f){P(s.y,function(p,h){var v="x"+f+"y"+h,g=new P7(v);g.master=n,g.model=e,n._coordsMap[v]=g,n._coordsList.push(g),g.addAxis(c),g.addAxis(p)})}),z7(s.x),z7(s.y);function u(c){return function(f,p){if(!$xt(f,e))return;var h=f.get("position");if(c==="x"){if(h!=="top"&&h!=="bottom")h=o.bottom?"top":"bottom"}else if(h!=="left"&&h!=="right")h=o.left?"right":"left";o[h]=!0;var v=nf(f),g=new ww(c,Vl(f,v,!0),[0,0],v,h);g.onBand=Fl(g.scale,f),g.inverse=f.get("inverse"),f.axis=g,g.model=f,g.grid=a,g.index=p,a._axesList.push(g),s[c][p]=g,l[c]++}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return P(this.getCartesians(),function(n){var a=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(a);Xt(t,a)<0&&t.push(a),Xt(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(n,a){var o=new r(n,e,t);o.name="grid_"+a,o.resize(n,t,!0),n.coordinateSystem=o,i.push(o),P(o._axesList,function(s){N8(s,r.dimIdxMap)})}),e.eachSeries(function(n){var a,o;Rl({targetModel:n,coordSysType:Nn,coordSysProvider:s});function s(){var l=LY(n),{xAxisModel:u,yAxisModel:c}=l;a=u.axis,o=c.axis;var f=u.getCoordSysModel(),p=f.coordinateSystem;return p.getCartesian(u.componentIndex,c.componentIndex)}if(a&&o)is(a,n,Nn),is(o,n,Nn)},this),i},r.dimensions=v0,r.dimIdxMap=Oy(v0),r}();G7=Jxt});function H7(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return nSt(t,r,e),t.seriesInvolved&&oSt(t,r),t}function nSt(r,e,t){var i=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];P(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=qv(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",i);if(P(s.getAxes(),ne(g,!1,null)),s.getTooltipAxes&&i&&f.get("show")){var p=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));if(p||h)P(v.baseAxes,ne(g,h?"cross":!0,p));if(h)P(v.otherAxes,ne(g,"cross",!1))}function g(y,m,d){var x=d.model.getModel("axisPointer",n),S=x.get("show");if(!S||S==="auto"&&!y&&!yP(x))return;if(m==null)m=x.get("triggerTooltip");x=y?aSt(d,f,n,e,y,m):x;var w=x.get("snap"),T=x.get("triggerEmphasis"),A=qv(d.model),M=m||w||d.type==="category",D=r.axesInfo[A]={key:A,axis:d,coordSys:s,axisPointerModel:x,triggerTooltip:m,triggerEmphasis:T,involveSeries:M,snap:w,useHandle:yP(x),seriesModels:[],linkGroup:null};u[A]=D,r.seriesInvolved=r.seriesInvolved||M;var L=sSt(a,d);if(L!=null){var I=o[L]||(o[L]={axesInfo:{}});I.axesInfo[A]=D,I.mapper=a[L].mapper,D.linkGroup=I}}})}function aSt(r,e,t,i,n,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};if(P(s,function(p){l[p]=It(o.get(p))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross")l.type="line";var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var c=o.get(["label","show"]);if(u.show=c!=null?c:!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&Dt(u,f.textStyle)}}return r.model.getModel("axisPointer",new ye(l,t,i))}function oSt(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);if(!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1)return;P(r.coordSysAxesInfo[qv(i.model)],function(o){var s=o.axis;if(i.getAxis(s.dim)===s)o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count()})})}function sSt(r,e){var{model:t,dim:i}=e;for(var n=0;n<r.length;n++){var a=r[n]||{};if(gP(a[i+"AxisId"],t.id)||gP(a[i+"AxisIndex"],t.componentIndex)||gP(a[i+"AxisName"],t.name))return n}}function gP(r,e){return r==="all"||it(r)&&Xt(r,e)>=0||r===e}function W7(r){var e=Vw(r);if(!e)return;var t=e.axisPointerModel,i=e.axis.scale,n=t.option,a=t.get("status"),o=t.get("value");if(o!=null)o=i.parse(o);var s=yP(t);if(a==null)n.status=s?"show":"hide";var l=i.getExtent();if(o==null||o>l[1])o=l[1];if(o<l[0])o=l[0];if(n.value=o,s)n.status=e.axis.scale.isBlank()?"hide":"show"}function Vw(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[qv(r)]}function Y7(r){var e=Vw(r);return e&&e.axisPointerModel}function yP(r){return!!r.get(["handle","show"])}function qv(r){return r.type+"||"+r.id}var m0=k(()=>{ti();Z()});var Z7,lSt,Ua;var xf=k(()=>{dt();m0();jr();Z7={},lSt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.axisPointerClass&&W7(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,i,n,a){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(!a)return;var o=Y7(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,i,n):this._disposeAxisPointer(i)},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){Z7[t]=i},e.getAxisPointerClass=function(t){return t&&Z7[t]},e.type="axis",e}(Re),Ua=lSt});function Fw(r,e,t,i){var n=t.axis;if(n.scale.isBlank())return;var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(!u.length)return;var c=s.length,f=xP(r).splitAreaColors,p=gt(),h=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){h=(g+(c-1)*v)%c;break}}var y=n.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=it(s)?s:[s];for(var v=1;v<u.length;v++){var d=n.toGlobalCoord(u[v].coord),x=void 0,S=void 0,w=void 0,T=void 0;if(n.isHorizontal())x=y,S=l.y,w=d-x,T=l.height,y=x+w;else x=l.x,S=y,w=l.width,T=d-S,y=S+T;var A=u[v-1].tickValue;A!=null&&p.set(A,h),e.add(new ee({anid:A!=null?"area_"+A:null,shape:{x,y:S,width:w,height:T},style:Dt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}xP(r).splitAreaColors=p}function Gw(r){xP(r).splitAreaColors=null}var xP;var SP=k(()=>{Z();jt();yt();xP=Ft()});var uSt,j7,cSt,bP,X7;var K7=k(()=>{dt();Z();jt();xf();SP();Qi();uSt=["splitArea","splitLine","minorSplitLine","breakArea"],j7=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!_h(t))return;this._axisGroup.add(t.axis.axisBuilder.group),P(uSt,function(l){if(t.get([l,"show"]))cSt[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;if(!s)Iu(o,this._axisGroup,t);r.prototype.render.call(this,t,i,n,a)},e.prototype.remove=function(){Gw(this)},e.type="cartesianAxis",e}(Ua),cSt={splitLine:function(r,e,t,i,n){var a=t.axis;if(a.scale.isBlank())return;var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=it(l)?l:[l];var f=i.coordinateSystem.getRect(),p=a.isHorizontal(),h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],m=s.getLineStyle();for(var d=0;d<v.length;d++){var x=a.toGlobalCoord(v[d].coord);if(d===0&&!u||d===v.length-1&&!c)continue;var S=v[d].tickValue;if(p)g[0]=x,g[1]=f.y,y[0]=x,y[1]=f.y+f.height;else g[0]=f.x,g[1]=x,y[0]=f.x+f.width,y[1]=x;var w=h++%l.length,T=new xr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Dt({stroke:l[w]},m),silent:!0});Lu(T.shape,m.lineWidth),e.add(T)}},minorSplitLine:function(r,e,t,i,n){var a=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(!c.length)return;var f=[],p=[],h=s.getLineStyle();for(var v=0;v<c.length;v++)for(var g=0;g<c[v].length;g++){var y=a.toGlobalCoord(c[v][g].coord);if(u)f[0]=y,f[1]=l.y,p[0]=y,p[1]=l.y+l.height;else f[0]=l.x,f[1]=y,p[0]=l.x+l.width,p[1]=y;var m=new xr({anid:"minor_line_"+c[v][g].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:h,silent:!0});Lu(m.shape,h.lineWidth),e.add(m)}},splitArea:function(r,e,t,i,n){Fw(r,e,t,i)},breakArea:function(r,e,t,i,n){var a=Xu(),o=t.axis.scale;if(a&&o.type!=="ordinal")a.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),n)}},bP=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(j7),X7=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=bP.type,t}return e.type="yAxis",e}(j7)});function Hw(r){r.registerComponentView(fSt),r.registerComponentModel(kY),r.registerCoordinateSystem("cartesian2d",G7),Qs(r,"x",zw,q7),Qs(r,"y",zw,q7),r.registerComponentView(bP),r.registerComponentView(X7),r.registerPreprocessor(function(e){if(e.xAxis&&e.yAxis&&!e.grid)e.grid={}})}var fSt,q7;var wP=k(()=>{dt();jr();Eh();jt();Z();C7();d0();mP();K7();fSt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),t.get("show"))this.group.add(new ee({shape:t.coordinateSystem.getRect(),style:Dt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Re),q7={offset:0}});var Sf="single",J7="singleAxis",Ww="singleAxis",$7,Yw;var Jv=k(()=>{dt();Nr();Dv();Z();$7=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type=Ww,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:0.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(de);dr($7,Gl.prototype);Yw=$7});function tZ(r,e){var t=r.coordinateSystem,i=t&&t.type,n=t&&t.getBaseAxis&&t.getBaseAxis(),a=n&&n.scale&&n.scale.type,o=i===Nn&&a==="ordinal"||i===Sf,s=e.model.get("jitter")>0;return o&&s}function TP(r,e,t,i){if(r instanceof ww){var n=r.scale.type;if(n!=="ordinal")return t}var a=r.model,o=a.get("jitter");if(!(o>0))return t;var s=a.get("jitterOverlap"),l=a.get("jitterMargin")||0,u=Ur(r.scale)?Dr(r).w:null;if(s)return eZ(t,o,u,i);return hSt(r,e,t,i,o,l)}function eZ(r,e,t,i){if(t===null)return r+(Math.random()-0.5)*e;var n=t-i*2,a=Math.min(Math.max(0,e),n);return r+(Math.random()-0.5)*a}function hSt(r,e,t,i,n,a){var o=pSt(r);if(!o.items)o.items=[];var s=o.items,l=Q7(s,e,t,i,n,a,1),u=Q7(s,e,t,i,n,a,-1),c=Math.abs(l-t)<Math.abs(u-t)?l:u,f=Ur(r.scale)?Dr(r).w:null,p=Math.abs(c-t);if(p>n/2||f&&p>f/2-i)return eZ(t,n,f,i);return s.push({fixedCoord:e,floatCoord:c,r:i}),c}function Q7(r,e,t,i,n,a,o){var s=t;for(var l=0;l<r.length;l++){var u=r[l],c=e-u.fixedCoord,f=s-u.floatCoord,p=c*c+f*f,h=i+u.r+a;if(p<h*h){var v=u.floatCoord+Math.sqrt(h*h-c*c)*o;if(Math.abs(v-t)>n/2)return Number.MAX_VALUE;if(o===1&&v>s||o===-1&&v<s){s=v,l=-1;continue}}}return s}var pSt;var rZ=k(()=>{za();VI();Eh();Jv();_i();yt();pSt=Ft()});function AP(){return{seriesType:"scatter",plan:qn(),reset:function(r){var e=r.coordinateSystem;if(!e||e.type!==Nn&&e.type!==Sf)return;var t=e.getBaseAxis&&e.getBaseAxis(),i=t&&tZ(r,t);if(!i)return;var{dim:n,orient:a}=t,o=a==="horizontal"&&t.type!=="category"||a==="vertical"&&t.type==="category",s=n==="y"||n==="single"&&o,l=n==="x"||n==="single"&&!o;if(!s&&!l)return;return{progress:function(u,c){var f=c.getLayout("points"),p=!!f;for(var h=u.start;h<u.end;h++){var v=p?(h-u.start)*2:-1,g=p?[f[v],f[v+1]]:c.getItemLayout(h);if(!g)continue;var y=c.getItemVisual(h,"symbolSize"),m=y instanceof Array?(y[1]+y[0])/2:y;if(s){var d=TP(t,g[0],g[1],m/2);if(p)f[v+1]=d;else g[1]=d}else if(l){var d=TP(t,g[1],g[0],m/2);if(p)f[v]=d;else g[0]=d}}}}}}}var iZ=k(()=>{rZ();Jc();Eh();Jv()});function CP(r){he(Hw),r.registerSeriesModel(_7),r.registerChartView(T7),r.registerLayout(qs("scatter"))}function EP(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,AP())}var MP=k(()=>{On();x7();A7();wP();Gv();iZ()});function LP(r){var e=r.polar;if(e){if(!it(e))e=[e];var t=[];P(e,function(i,n){if(i.indicator){if(i.type&&!i.shape)i.shape=i.type;if(r.radar=r.radar||[],!it(r.radar))r.radar=[r.radar];r.radar.push(i)}else t.push(i)}),r.polar=t}P(r.series,function(i){if(i&&i.type==="radar"&&i.polarIndex)i.radarIndex=i.polarIndex})}var nZ=k(()=>{Z()});var Dh="radar",dSt,aZ;var Zw=k(()=>{dt();Zr();Mh();Z();Lh();Rn();dSt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new as(xt(this.getData,this),xt(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return vo(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=qb(this,t);return mr("section",{header:u,sortBlocks:!0,blocks:nt(s,function(f){var p=a.get(a.mapDimension(f.dim),t);return mr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){var i=this.getData(),n=this.coordinateSystem,a=i.getValues(nt(n.dimensions,function(u){return i.mapDimension(u)}),t);for(var o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series."+Dh,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Pe),aZ=dSt});var vSt,oZ;var sZ=k(()=>{dt();jt();tr();Z();qi();Xr();Zw();rr();Yo();Ki();vSt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Dh,t}return e.prototype.render=function(t,i,n){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(p,h){var v=p.getItemVisual(h,"symbol")||"circle";if(v==="none")return;var g=Us(p.getItemVisual(h,"symbolSize")),y=ir(v,-1,-1,2,2),m=p.getItemVisual(h,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:m*Math.PI/180||0}),y}function c(p,h,v,g,y,m){v.removeAll();for(var d=0;d<h.length-1;d++){var x=u(g,y);if(x){if(x.__dimIdx=d,p[d])x.setPosition(p[d]),pe[m?"initProps":"updateProps"](x,{x:h[d][0],y:h[d][1]},t,y);else x.setPosition(h[d]);v.add(x)}}}function f(p){return nt(p,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(p){var h=s.getItemLayout(p);if(!h)return;var v=new kr,g=new Mr,y={shape:{points:h}};v.shape.points=f(h),g.shape.points=f(h),ze(v,y,t,p),ze(g,y,t,p);var m=new Lt,d=new Lt;m.add(g),m.add(v),m.add(d),c(g.shape.points,h,d,s,p,!0),s.setItemGraphicEl(p,m)}).update(function(p,h){var v=l.getItemGraphicEl(h),g=v.childAt(0),y=v.childAt(1),m=v.childAt(2),d={shape:{points:s.getItemLayout(p)}};if(!d.shape.points)return;c(g.shape.points,d.shape.points,m,s,p,!1),pi(y),pi(g),ge(g,d,t),ge(y,d,t),s.setItemGraphicEl(p,v)}).remove(function(p){o.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,h){var v=s.getItemModel(h),g=p.childAt(0),y=p.childAt(1),m=p.childAt(2),d=s.getItemVisual(h,"style"),x=d.fill;o.add(p),g.useStyle(Dt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),pr(g,v,"lineStyle"),pr(y,v,"areaStyle");var S=v.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=w,P(["emphasis","select","blur"],function(A){var M=v.getModel([A,"areaStyle"]),D=M.isEmpty()&&M.parentModel.isEmpty();y.ensureState(A).ignore=D&&w;var L=v.getModel([A,"lineStyle"]).getLineStyle();g.ensureState(A).style=L;var I=M.getAreaStyle();y.ensureState(A).style=I;var E=v.getModel([A,"itemStyle"]).getItemStyle();m.eachChild(function(R){R.ensureState(A).style=It(E)})}),y.useStyle(Dt(v.getModel("areaStyle").getAreaStyle(),{fill:x,opacity:0.7,decal:d.decal}));var T=v.getModel("emphasis");m.eachChild(function(A){if(A instanceof _r){var M=A.style;A.useStyle(et({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},d))}else A.useStyle(d),A.setColor(x),A.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(A.__dimIdx),h);(D==null||isNaN(D))&&(D=""),or(A,er(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:A.__dimIdx,defaultText:D,inheritColor:x,defaultOpacity:d.opacity})}),Ie(p,T.get("focus"),T.get("blurScope"),T.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Dh,e}(Ce),oZ=vSt});function jw(r,e){return Dt({show:e},r)}var g0,$v="radar",DP,lZ,IP=5,mSt,uZ;var PP=k(()=>{dt();Z();pP();ti();Dv();Nr();we();In();g0=Bw.value,DP=$v,lZ=$v;mSt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("clockwise"),a=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),p=this.get("axisNameGap"),h=this.get("triggerEvent"),v=nt(this.get("indicator")||[],function(g){if(g.max!=null&&g.max>0&&!g.min)g.min=0;else if(g.min!=null&&g.min<0&&!g.max)g.max=0;var y=u;if(g.color!=null)y=Dt({color:g.color},u);var m=re(It(g),{boundaryGap:t,splitNumber:i,clockwise:n,scale:a,axisLine:o,axisTick:s,axisLabel:l,name:g.text,showName:c,nameLocation:"end",nameGap:p,nameTextStyle:y,triggerEvent:h},!1);if(ht(f)){var d=m.name;m.name=f.replace("{value}",d!=null?d:"")}else if(Mt(f))m.name=f(m.name,m);var x=new ye(m,null,this.ecModel);return dr(x,Gl.prototype),x.mainType="radar",x.componentIndex=this.componentIndex,x.uid=Da("ec_radar"),x},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=DP,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Q.color.axisLabel},boundaryGap:[0,0],splitNumber:IP,axisNameGap:15,scale:!1,shape:"polygon",axisLine:re({lineStyle:{color:Q.color.neutral20}},g0.axisLine),axisLabel:jw(g0.axisLabel,!1),axisTick:jw(g0.axisTick,!1),splitLine:jw(g0.splitLine,!0),splitArea:jw(g0.splitArea,!0),indicator:[]},e}(de),uZ=mSt});var gSt,cZ;var fZ=k(()=>{dt();Z();Kl();jt();jr();gSt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=this.group;a.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,i){var n=t.coordinateSystem,a=n.getIndicatorAxes(),o=nt(a,function(s){var l=s.model.get("showName")?s.name:"",u=new mn(s.model,i,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});P(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,n=i.getIndicatorAxes();if(!n.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),p=l.get("color"),h=u.get("color"),v=it(p)?p:[p],g=it(h)?h:[h],y=[],m=[];function d(z,V,H){var K=H%V.length;return z[K]=z[K]||[],K}if(a==="circle"){var x=n[0].getTicksCoords(),{cx:S,cy:w}=i;for(var T=0;T<x.length;T++){if(c){var A=d(y,v,T);y[A].push(new Xn({shape:{cx:S,cy:w,r:x[T].coord}}))}if(f&&T<x.length-1){var A=d(m,g,T);m[A].push(new Gp({shape:{cx:S,cy:w,r0:x[T].coord,r:x[T+1].coord}}))}}}else{var M,D=nt(n,function(z,V){var H=z.getTicksCoords();return M=M==null?H.length-1:Math.min(H.length-1,M),nt(H,function(K){return i.coordToPoint(K.coord,V)})}),L=[];for(var T=0;T<=M;T++){var I=[];for(var E=0;E<n.length;E++)I.push(D[E][T]);if(I[0])I.push(I[0].slice());if(c){var A=d(y,v,T);y[A].push(new Mr({shape:{points:I}}))}if(f&&L){var A=d(m,g,T-1);m[A].push(new kr({shape:{points:I.concat(L)}}))}L=I.slice().reverse()}}var R=l.getLineStyle(),B=u.getAreaStyle();P(m,function(z,V){this.group.add(Mn(z,{style:Dt({stroke:"none",fill:g[V%g.length]},B),silent:!0}))},this),P(y,function(z,V){this.group.add(Mn(z,{style:Dt({fill:"none",stroke:v[V%v.length]},R),silent:!0}))},this)},e.type="radar",e}(Re),cZ=gSt});var ySt,pZ;var hZ=k(()=>{dt();sf();ySt=function(r){W(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.type="value",a.angle=0,a.name="",a}return e}(tn),pZ=ySt});var _St,dZ;var vZ=k(()=>{hZ();z1();te();PP();Z();hP();ur();po();_i();ta();_St=function(){function r(e,t,i){this.type=$v,this.dimensions=[],this._model=e,this._indicatorAxes=nt(e.getIndicatorModels(),function(n,a){var o="indicator_"+a,s=new pZ(o,new Ul);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],n=i.angle,a=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[a,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=Math.sqrt(t*t+i*i);t/=n,i/=n;var a=Math.atan2(-i,t),o=1/0,s,l=-1;for(var u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);if(f<o)s=c,l=u,o=f}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var i=Je(e,t).refContainer,n=e.get("center"),a=e.get("clockwise")||!1,o=Math.min(i.width,i.height)/2;this.cx=wt(n[0],i.width)+i.x,this.cy=wt(n[1],i.height)+i.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");if(ht(s)||ue(s))s=[0,s];this.r0=wt(s[0],o),this.r=wt(s[1],o);var l=a?-1:1;P(this._indicatorAxes,function(u,c){u.setExtent(this.r0,this.r);var f=this.startAngle+l*c*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),u.angle=f},this)},r.prototype.update=function(e,t){var i=this._indicatorAxes,n=this._model,a=mh(n.get("splitNumber"),IP),o=new Ul;o.setExtent(0,a),o.setConfig({interval:1}),P(i,function(s){fo(s,Ws),Uw(s,o)})},r.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var i=[];return e.eachComponent(DP,function(n){var a=new r(n,e,t);i.push(a),n.coordinateSystem=a}),e.eachSeriesByType(lZ,function(n){if(n.get("coordinateSystem")===$v){var a=n.coordinateSystem=i[n.get("radarIndex")||0];if(a)P(a.getIndicatorAxes(),function(o){is(o,n,$v)})}}),i},r.dimensions=[],r}(),dZ=_St});function mZ(r){r.registerCoordinateSystem("radar",dZ),r.registerComponentModel(uZ),r.registerComponentView(cZ),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var gZ=k(()=>{PP();fZ();vZ()});function xSt(r){r.eachSeriesByType(Dh,function(e){var t=e.getData(),i=[],n=e.coordinateSystem;if(!n)return;var a=n.getIndicatorAxes();P(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){i[u]=i[u]||[];var c=n.dataToPoint(l,s);i[u][s]=yZ(c)?c:_Z(n)})}),t.each(function(o){var s=$a(i[o],function(l){return yZ(l)})||_Z(n);i[o].push(s.slice()),t.setItemLayout(o,i[o])})})}function yZ(r){return!isNaN(r[0])&&!isNaN(r[1])}function _Z(r){return[r.cx,r.cy]}var xZ;var SZ=k(()=>{Z();Zw();yt();xZ=Ke(Dh,xSt)});function RP(r){he(mZ),r.registerChartView(oZ),r.registerSeriesModel(aZ),r.registerLayout(xZ),r.registerProcessor(Js("radar")),r.registerPreprocessor(LP)}var bZ=k(()=>{On();nZ();sZ();Zw();gZ();SZ()});function wZ(r,e,t){OP(r)[e]=t}function TZ(r,e,t){var i=OP(r),n=i[e];if(n===t)i[e]=null}function kP(r,e){return!!OP(r)[e]}var OP;var NP=k(()=>{hh();Z();yt();OP=Ft();$n({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ar)});function Xw(r,e,t){var i=e.getComponentByElement(r.topTarget);if(!i||i===t||SSt.hasOwnProperty(i.mainType))return!1;var n=i.coordinateSystem;if(!n||n.model===t)return!1;var a=Ko(i),o=Ko(t);if((a.zlevel-o.zlevel||a.z-o.z)<=0)return!1;return!0}var SSt;var zP=k(()=>{jt();SSt={axisPointer:1,tooltip:1,brush:1}});function y0(r){return r.__ecRoamConsumed}function qw(r){var e=wSt(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function _0(r,e,t,i){var n=qw(r),a=n.roam,o=a[e]=a[e]||[],s=0;for(;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:i}),TSt(r,e)}function x0(r,e,t){var i=qw(r),n=i.roam[e]||[];for(var a=0;a<n.length;a++)if(n[a].listener===t){if(n.splice(a,1),!n.length)ASt(r,e);return}}function TSt(r,e){var t=qw(r);if(!t.uniform[e])r.on(e,t.uniform[e]=function(i){var n=t.roam[e];if(n)for(var a=0;a<n.length;a++)n[a].listener(i)})}function ASt(r,e){var t=qw(r),i=t.uniform;if(i[e])r.off(e,i[e]),i[e]=null}function CZ(r,e,t,i,n){n.isAvailableBehavior=xt(Kw,null,t,i),r.trigger(e,n)}function Kw(r,e,t){var i=t[r];return!r||i&&(!ht(i)||e.event[i+"Key"])}var bSt,wSt,Va;var bf=k(()=>{dt();fl();pl();NP();Z();yt();jt();zP();bSt=function(r){W(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var n=xt(i._mousedownHandler,i),a=xt(i._mousemoveHandler,i),o=xt(i._mouseupHandler,i),s=xt(i._mousewheelHandler,i),l=xt(i._pinchHandler,i);return i.enable=function(u,c){var f=c.zInfo,p=Ko(f.component),{z:h,zlevel:v}=p,g={component:f.component,z:h,zlevel:v,z2:St(f.z2,-1/0)},y=et({},c.triggerInfo);if(this._opt=Dt(et({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:y,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null)u=!0;if(!this._enabled||this._controlType!==u){if(this.disable(),this._enabled=!0,u===!0||u==="move"||u==="pan")_0(t,"mousedown",n,g),_0(t,"mousemove",a,g),_0(t,"mouseup",o,g);if(u===!0||u==="scale"||u==="zoom")_0(t,"mousewheel",s,g),_0(t,"pinch",l,g)}},i.disable=function(){if(this._enabled)this._enabled=!1,x0(t,"mousedown",n),x0(t,"mousemove",a),x0(t,"mouseup",o),x0(t,"mousewheel",s),x0(t,"pinch",l)},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,i,n){var a=this._opt,o=a.zInfoParsed;if(Xw(t,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;if(l==="global")u=!0;if(!u)u=s.isInSelf(t,i,n);if(u&&s.isInClip&&!s.isInClip(t,i,n))u=!1;return u},e.prototype._decideCursorStyle=function(t,i,n,a){var o=t.target;if(!o&&this._checkPointer(t,i,n))return this._opt.cursorGrab;if(a)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(Y2(t)||y0(t))return;var i=t.target;while(i){if(i.draggable)return;i=i.__hostTarget||i.parent}var{offsetX:n,offsetY:a}=t;if(this._checkPointer(t,n,a))this._x=n,this._y=a,this._dragging=!0},e.prototype._mousemoveHandler=function(t){var i=this._zr;if(t.gestureEvent==="pinch"||kP(i,"globalPan")||y0(t))return;var{offsetX:n,offsetY:a}=t;if(!this._dragging||!Kw("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,a,!1);if(o)i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,c=a-l;if(this._x=n,this._y=a,this._opt.preventDefaultMouseMove)va(t.event);t.__ecRoamConsumed=!0,CZ(this,"pan","moveOnMouseMove",t,{dx:u,dy:c,oldX:s,oldY:l,newX:n,newY:a,isAvailableBehavior:null})},e.prototype._mouseupHandler=function(t){if(y0(t))return;var i=this._zr;if(!Y2(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);if(n)i.setCursorStyle(n)}},e.prototype._mousewheelHandler=function(t){if(y0(t))return;var i=Kw("zoomOnMouseWheel",t,this._opt),n=Kw("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),{offsetX:s,offsetY:l}=t;if(a===0||!i&&!n)return;if(i){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(n){var f=Math.abs(a),p=(a>0?1:-1)*(f>3?0.4:f>1?0.15:0.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}},e.prototype._pinchHandler=function(t){if(kP(this._zr,"globalPan")||y0(t))return;var i=t.pinchScale>1?1.1:0.9090909090909091;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e.prototype._checkTriggerMoveZoom=function(t,i,n,a,o){if(t._checkPointer(a,o.originX,o.originY))va(a.event),a.__ecRoamConsumed=!0,CZ(t,i,n,a,o)},e}(Ai);wSt=Ft();Va=bSt});function Jw(r){if(ht(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;if(t.nodeType===9)t=t.firstChild;while(t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1)t=t.nextSibling;return t}var BP=k(()=>{Z()});function DZ(r,e){var t=r.getAttribute("gradientUnits");if(t==="userSpaceOnUse")e.global=!0}function IZ(r,e){var t=r.firstChild;while(t){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),n=void 0;if(i&&i.indexOf("%")>0)n=parseInt(i,10)/100;else if(i)n=parseFloat(i);else n=0;var a={};kZ(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000",s=a.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Oi(o),u=l&&l[3];if(u)l[3]*=_u(s),o=ya(l,"rgba")}e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function os(r,e){if(r&&r.__inheritedStyle){if(!e.__inheritedStyle)e.__inheritedStyle={};Dt(e.__inheritedStyle,r.__inheritedStyle)}}function PZ(r){var e=tT(r),t=[];for(var i=0;i<e.length;i+=2){var n=parseFloat(e[i]),a=parseFloat(e[i+1]);t.push([n,a])}return t}function mo(r,e,t,i,n){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};if(r.nodeType===1){if(PSt(r,e),kZ(r,o,s),!i)RSt(r,o,s)}if(a.style=a.style||{},o.fill!=null)a.style.fill=RZ(a,"fill",o.fill,t);if(o.stroke!=null)a.style.stroke=RZ(a,"stroke",o.stroke,t);if(P(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){if(o[l]!=null)a.style[l]=parseFloat(o[l])}),P(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){if(o[l]!=null)a.style[l]=o[l]}),n)a.__selfStyle=s;if(o.lineDash)a.style.lineDash=nt(tT(o.lineDash),function(l){return parseFloat(l)});if(o.visibility==="hidden"||o.visibility==="collapse")a.invisible=!0;if(o.display==="none")a.ignore=!0}function ESt(r,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,n=i;if(!i||i==="auto")n="alphabetic";else if(i==="baseline")n="alphabetic";else if(i==="before-edge"||i==="text-before-edge")n="top";else if(i==="after-edge"||i==="text-after-edge")n="bottom";else if(i==="central"||i==="mathematical")n="middle";r.style.textBaseline=n}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;if(o){if(o==="middle")s="center";r.style.textAlign=s}}}function RZ(r,e,t,i){var n=t&&t.match(MSt);if(n){var a=Ti(n[1]);i.push([r,e,a]);return}if(t==="none")t=null;return t}function LSt(r,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=r[i[2]]}}function tT(r){return r.match(DSt)||[]}function PSt(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],n=null;t.replace(ISt,function(f,p,h){return i.push(p,h),""});for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=tT(o);switch(n=n||Qe(),s){case"translate":on(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":wd(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":bn(n,n,-parseFloat(l[0])*VP,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*VP);Ri(n,[1,0,u,1,0,0],n);break;case"skewY":var c=Math.tan(parseFloat(l[0])*VP);Ri(n,[1,c,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}function kZ(r,e,t){var i=r.getAttribute("style");if(!i)return;OZ.lastIndex=0;var n;while((n=OZ.exec(i))!=null){var a=n[1],o=Bt($w,a)?$w[a]:null;if(o)e[o]=n[2];var s=Bt(Qw,a)?Qw[a]:null;if(s)t[s]=n[2]}}function RSt(r,e,t){for(var i=0;i<EZ.length;i++){var n=EZ[i],a=r.getAttribute(n);if(a!=null)e[$w[n]]=a}for(var i=0;i<MZ.length;i++){var n=MZ[i],a=r.getAttribute(n);if(a!=null)t[Qw[n]]=a}}function FP(r,e){var t=e.width/r.width,i=e.height/r.height,n=Math.min(t,i);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function NZ(r,e){var t=new CSt;return t.parse(r,e)}var UP,$w,EZ,Qw,MZ,CSt,LZ,MSt,DSt,ISt,VP,OZ;var zZ=k(()=>{Rc();Yo();EM();Zd();MM();OM();US();RM();qd();Z();FS();zM();Yg();BP();sn();$w={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"},EZ=le($w),Qw={"alignment-baseline":"textBaseline","stop-color":"stopColor"},MZ=le(Qw),CSt=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=Jw(e);this._defsUsePending=[];var n=new Lt;this._root=n;var a=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),mo(i,n,null,!0,!1);var u=i.firstChild;while(u)this._parseNode(u,n,a,null,!1,!1),u=u.nextSibling;LSt(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var p=tT(o);if(p.length>=4)c={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])}}if(c&&s!=null&&l!=null){if(f=FP(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox){var h=n;n=new Lt,n.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}}if(!t.ignoreRootClip&&s!=null&&l!=null)n.setClipPath(new ee({shape:{x:0,y:0,width:s,height:l}}));return{root:n,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},r.prototype._parseNode=function(e,t,i,n,a,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs")a=!0;if(s==="text")o=!0;if(s==="defs"||s==="switch")l=t;else{if(!a){var c=UP[s];if(c&&Bt(UP,s)){l=c.call(this,e,t);var f=e.getAttribute("name");if(f){var p={name:f,namedFrom:null,svgNodeTagLower:s,el:l};if(i.push(p),s==="g")u=p}else if(n)i.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var h=LZ[s];if(h&&Bt(LZ,s)){var v=h.call(this,e),g=e.getAttribute("id");if(g)this._defs[g]=v}}if(l&&l.isGroup){var y=e.firstChild;while(y){if(y.nodeType===1)this._parseNode(y,l,i,u,a,o);else if(y.nodeType===3&&o)this._parseText(y,l);y=y.nextSibling}}},r.prototype._parseText=function(e,t){var i=new Tu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});os(t,i),mo(e,i,this._defsUsePending,!1,!1),ESt(i,t);var n=i.style,a=n.fontSize;if(a&&a<9)n.fontSize=9,i.scaleX*=a/9,i.scaleY*=a/9;var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=function(){UP={g:function(e,t){var i=new Lt;return os(t,i),mo(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new ee;return os(t,i),mo(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new Xn;return os(t,i),mo(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new xr;return os(t,i),mo(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new ty;return os(t,i),mo(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),n;if(i)n=PZ(i);var a=new kr({shape:{points:n||[]},silent:!0});return os(t,a),mo(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var i=e.getAttribute("points"),n;if(i)n=PZ(i);var a=new Mr({shape:{points:n||[]},silent:!0});return os(t,a),mo(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var i=new _r;return os(t,i),mo(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(n)+parseFloat(o);var s=new Lt;return os(t,s),mo(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),n=e.getAttribute("y");if(i!=null)this._textX=parseFloat(i);if(n!=null)this._textY=parseFloat(n);var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Lt;return os(t,s),mo(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",n=NS(i);return os(t,n),mo(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),LZ={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),a=new Zo(e,t,i,n);return DZ(r,a),IZ(r,a),a},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),n=new GS(e,t,i);return DZ(r,n),IZ(r,n),n}};MSt=/^url\(\s*#(.*?)\)/;DSt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;ISt=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,VP=Math.PI/180;OZ=/([^\s:;]+)\s*:\s*([^:;]+)/g});function kSt(r){if(r.silent=!1,r.isGroup)r.traverse(function(e){e.silent=!1})}function NSt(r){var e=[],t=gt();return P(r,function(i){if(i.namedFrom!=null)return;var n=new W8(i.name,i.el);e.push(n),t.set(i.name,n)}),{regions:e,regionsMap:t}}var OSt,BZ;var UZ=k(()=>{zZ();Rc();Zd();Z();fr();BP();K1();OSt=gt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),BZ=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=gt(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Jw(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=NSt(e.named),{regions:i,regionsMap:n}=t;this._regions=i,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,i;try{t=e&&NZ(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,xe(i!=null)}catch(y){throw Error(`Invalid svg format
81
+ `+y.message)}var n=new Lt;n.add(i),n.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,p=void 0;if(a!=null)u=0,f=a;else if(s)u=s.x,f=s.width;if(o!=null)c=0,p=o;else if(s)c=s.y,p=s.height;if(u==null||c==null){var h=i.getBoundingRect();if(u==null)u=h.x,f=h.width;if(c==null)c=h.y,p=h.height}l=this._boundingRect=new Gt(u,c,f,p)}if(s){var v=FP(s,l);i.scaleX=i.scaleY=v.scale,i.x=v.x,i.y=v.y}n.setClipPath(new ee({shape:l.plain()}));var g=[];return P(t.named,function(y){if(OSt.get(y.svgNodeTagLower)!=null)g.push(y),kSt(y.el)}),{root:n,boundingRect:l,named:g}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);if(i)return i;return i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);if(i)t.removeKey(e),this._freedGraphics.push(i)},r}()});function HP(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===VZ)return;e.push(new X1(VZ,nt(Ih,function(i){return{type:"polygon",exterior:i}}),GP))}}var GP,VZ="南海诸岛",Ih,wf,$u;var FZ=k(()=>{Z();K1();GP=[126,25],Ih=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,0.7],[52,0.7],[56,7.7],[59,0.7],[64,0.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]]];for($u=0;$u<Ih.length;$u++)for(wf=0;wf<Ih[$u].length;wf++)Ih[$u][wf][0]/=10.5,Ih[$u][wf][1]/=-14,Ih[$u][wf][0]+=GP[0],Ih[$u][wf][1]+=GP[1]});function WP(r,e){if(r==="china"){var t=zSt[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/14,e.setCenter(i)}}}var zSt;var GZ=k(()=>{zSt={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]}});function YP(r,e){if(r==="china"&&e.name==="台湾")e.geometries.push({type:"polygon",exterior:BSt[0]})}var BSt;var HZ=k(()=>{BSt=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]]});function VSt(r){var e;for(var t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function FSt(r){return!ht(r)?r:typeof JSON<"u"&&JSON.parse?JSON.parse(r):Function("return ("+r+");")()}var USt="name",WZ;var YZ=k(()=>{Z();Z8();FZ();GZ();HZ();fr();WZ=function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=gt(),this._mapName=e,this._specialAreas=i,this._geoJSON=FSt(t)}return r.prototype.load=function(e,t){t=t||USt;var i=this._parsedMap.get(t);if(!i){var n=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:n,boundingRect:VSt(n)})}var a=gt(),o=[];return P(i.regions,function(s){var l=s.name;if(e&&Bt(e,l))s=s.cloneShallow(l=e[l]);o.push(s),a.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new Gt(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,n;try{n=i?YD(i,e):[]}catch(a){throw Error(`Invalid geoJson format
82
+ `+a.message)}return HP(t,n),P(n,function(a){var o=a.name;WP(t,a),YP(t,a);var s=this._specialAreas&&this._specialAreas[o];if(s)a.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}()});var S0,oa;var Ph=k(()=>{Z();UZ();YZ();S0=gt(),oa={registerMap:function(r,e,t){if(e.svg){var i=new BZ(r,e.svg);S0.set(r,i)}else{var n=e.geoJson||e.geoJSON;if(n&&!e.features)t=e.specialAreas;else n=e;var i=new WZ(r,n,t);S0.set(r,i)}},getGeoResource:function(r){return S0.get(r)},getMapForUser:function(r){var e=S0.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=S0.get(r);if(!i)return;return i.load(e,t)}}});function gn(r){return r}function Oh(r,e){return hl(r||[],gn(e).mtOverall)}function QZ(r){return gn(r).zoom}function KP(r,e){return cp(r||gg(),gn(e).dataRect)}function w0(r,e){return cp(r||gg(),gn(e).viewRect)}function Rh(r,e,t){return _a(r||bp(),gn(e).trans[t])}function qP(r){return!!(r.dataRect&&r.viewRect)}function WSt(r,e,t,i){if(i===Af)t9(r,e.trans[Qu],t);else _a(r,t)}function ZZ(r,e,t){gl(t,rT),Ri(rT,rT,e.mtRawInv),sy(r,rT)}function T0(r,e){var t=gn(r);t.centerOption=e.getShallow("center");var i=t.zoomLimit=e.getShallow("scaleLimit"),n=e.getShallow("zoom");if(t.zoom=lT(n||1,i)||1,qP(t))JP(t)}function Cf(r,e,t,i,n){var a=gn(r);if(a.dataRect=new Gt(e,t,i,n),qP(a))JP(a)}function kh(r,e,t,i,n){var a=gn(r);if(a.viewRect=new Gt(e,t,i,n),qP(a))JP(a)}function JP(r){YSt(r),jSt(r),XSt(r)}function YSt(r){var{dataRect:e,viewRect:t}=r,i=r.trans[Qu],n=r.invertY;if(n)e=cp(ZSt,e),e.y=-e.y-e.height;if(J2(jZ,e,t),sy(i,jZ),n)i.scaleY=-i.scaleY;var a=gl(i,r.mtRaw);mi(r.mtRawInv,a)}function jSt(r){var e=e9(r),t=JSt(ZP,r,r.centerOption)?vr(ZP,ZP,r.mtRaw):e,i=r.zoom,n=r.trans[Af];n.x=e[0]-i*t[0],n.y=e[1]-i*t[1],n.scaleX=n.scaleY=i}function XSt(r){var e=r.trans,t=e[Af],i=e[Qu],n=e[go];t9(n,i,t);var a=gl(n,r.mtOverall),o=mi(r.mtOverallInv,a);XZ(r,n,a,o),XZ(r.lgGeo,n,a,o)}function XZ(r,e,t,i){if(r)_a(r,e),hl(r.transform||(r.transform=[]),t),hl(r.invTransform||(r.invTransform=[]),i)}function t9(r,e,t){gl(e,KZ),gl(t,iT),Ri(iT,iT,KZ),sy(r,iT)}function qZ(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function e9(r){var e=r.viewRect;return jP[0]=e.x+e.width/2,jP[1]=e.y+e.height/2,jP}function nT(r){return r&&r.type==="view"}function ss(r,e,t,i){var n=gn(t);if(n.syncBackEl=r,n.syncBackType=e,!i)Rh(r,t,e),r.dirty();else ge(r,Rh(null,t,e),i)}function KSt(r,e,t,i){var n=gn(r),a=n.syncBackEl;if(a)a.stopAnimation(),WSt(Tf,n,a,n.syncBackType);else _a(Tf,n.trans[go]);ZZ(XP,n,Tf),i?qSt(Tf,XP,n,i):_a(Tf,XP),ZZ(Tf,n,Tf),QSt(n,e,t,Tf)}function aT(r,e,t){var i=Qv(e);if(i)KSt(i,e,t,r),T0(i,e)}function Qv(r){return r.__ownRoamView?r.__ownRoamView():null}function oT(r,e,t,i){t.setUpdatePayload(oy(r));var n=wS(i,e);if(n&&n.__updateOnOwnRoam)n.__updateOnOwnRoam(r,e,i)}function qSt(r,e,t,i){if(i.dx!=null&&i.dy!=null)r.x+=i.dx,r.y+=i.dy;var n=i.zoom;if(n!=null){var a=r9(e),o=lT(a*n,t.zoomLimit),s=o/a;r.x-=(i.originX-r.x)*(s-1),r.y-=(i.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function r9(r){return r.scaleX}function JSt(r,e,t){var i=e.dataRect;if(!t)return!1;var n=e.lgCt;if(n)Mo(r,wt(t[0],n.w),wt(t[1],n.h));else if(i)Mo(r,wt(t[0],i.width,i.x),wt(t[1],i.height,i.y));return!0}function $St(r,e){var{centerOption:t,dataRect:i}=r;return!t||r.lgCt?e.slice():[JZ(0,e,t,i),JZ(1,e,t,i)]}function JZ(r,e,t,i){return t&&i&&i[Lr[r]]&&aF(t[r])?(e[r]-i[fe[r]])/i[Lr[r]]*100+"%":e[r]}function sT(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function QSt(r,e,t,i){var n=e9(r),a=r9(i),o=yr(a)>0.000001;b0[0]=o?(n[0]-i.x)/a:n[0],b0[1]=o?(n[1]-i.y)/a:n[1],vr(b0,b0,r.mtRawInv);var s=$St(r,b0);$Z(e,s,a),P(t,function(l){if(l!==e)$Z(l,s.slice(),a)})}function $Z(r,e,t){var i=r.option;i.center=e,i.zoom=t}function lT(r,e){if(e){var t=e.min||0,i=e.max||1/0;r=Math.max(Math.min(i,r),t)}return r}function uT(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,i=gn(r);return((i.zoom-1)*t+1)/(i.trans[go].scaleX||1)}var Qu=0,Af=1,go=2,GSt="view",HSt,eT,rT,jZ,ZSt,ZP,KZ,iT,jP,Tf,XP,b0,Ef;var zn=k(()=>{dt();fr();No();te();Z();jg();jt();br();HSt=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;a.type=GSt,a.dimensions=["x","y"];var o=gn(a);o.invertY=t,o.lgCt=i,o.lgGeo=n;var s=o.trans=[];return s[Qu]=bp(),s[Af]=bp(),s[go]=bp(),o.mtRaw=Qe(),o.mtRawInv=Qe(),o.mtOverall=Qe(),o.mtOverallInv=Qe(),o.zoom=1,a}return e.prototype.getBoundingRect=function(){return KP(null,this)},e.prototype.getViewRect=function(){return w0(null,this)},e.prototype.getRoamTransform=function(){return gl(gn(this).trans[Af])},e.prototype.dataToPoint=function(t,i,n){var a=i?gn(this).mtRaw:gn(this).mtOverall;return n=n||[],a?vr(n,t,a):Di(n,t)},e.prototype.pointToData=function(t,i,n){n=n||[];var a=gn(this).mtOverallInv;return a?vr(n,t,a):Di(n,t)},e.prototype.convertToPixel=function(t,i,n){var a=qZ(i);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,i,n){var a=qZ(i);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){var i=gn(this);return cp(eT,i.dataRect),Sx(eT,eT,i.mtOverall),XV(eT,t[0],t[1])},e.dimensions=["x","y"],e}(xa),eT=gg();rT=Qe();jZ=Qe(),ZSt=gg();ZP=[];KZ=Qe(),iT=Qe();jP=[];Tf=bp(),XP=bp();b0=[];Ef=HSt});function Mf(r,e,t,i,n,a,o,s){var l=Qv(r);if(!l){t.disable();return}t.enable(St(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:i,isInClip:function(c,f,p){return!n||n.contain(f,p)}}});function u(c){var f=r.mainType,p=oy(Dt({type:i9(f,r.subType,dM)},c));if(s)p.componentType=f;p[f+"Id"]=r.id,e.dispatchAction(p)}t.off("pan").off("zoom").on("pan",function(c){a&&a("pan"),u({dx:c.dx,dy:c.dy})}).on("zoom",function(c){a&&a("zoom"),u({zoom:c.scale,originX:c.originX,originY:c.originY})})}function cT(r){return function(e,t,i){return $P.copy(r.getBoundingRect()),$P.applyTransform(r.getComputedTransform()),$P.contain(t,i)}}function tm(r,e,t){var i=i9(e,t,dM);r.registerAction({type:i,event:i,update:"none"},function(n,a,o){a.eachComponent(Ud(n,e,t),function(s){aT(n,s),oT(n,s,a,o)})})}function i9(r,e,t){return(r!==cn?r:e==="map"?"geo":e)+t}function fT(r){return r.zoom!=null}function em(r,e,t,i,n,a,o){var s=new Ef(null,sT(r.ecModel,e));return Cf(s,t,i,n,a),o?kh(s,o.x,o.y,o.width,o.height):kh(s,t,i,n,a),T0(s,r),s}var $P;var tc=k(()=>{zn();gi();jt();yt();Z();$P=new Gt(0,0,0,0)});function pT(r){var e=r.getItemStyle(),t=r.get("areaColor");if(t!=null)e.fill=t;return e}function n9(r){var e=r.style;if(e)e.stroke=e.stroke||e.fill,e.fill=null}function a9(r,e,t,i,n,a){var o=a.getModel("itemStyle"),s=a.getModel(["emphasis","itemStyle"]),l=a.getModel(["blur","itemStyle"]),u=a.getModel(["select","itemStyle"]),c=pT(o),f=pT(s),p=pT(u),h=pT(l);if(e){var v=e.getItemVisual(n,"style"),g=e.getItemVisual(n,"decal");if(t&&v.fill)c.fill=v.fill;if(g)c.decal=Vs(g,r)}i.setStyle(c),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=f,i.ensureState("select").style=p,i.ensureState("blur").style=h,Is(i)}function o9(r,e,t,i,n,a,o){var s=e&&isNaN(e.get(e.mapDimension("value"),a)),l=e&&e.getItemLayout(a);if(rm(r)||s||l&&l.showLabel){var u=!rm(r)?a:i,c=void 0;if(!e||a>=0)c=r;var f=o?{normal:{align:"center",verticalAlign:"middle"}}:null;or(t,er(n),{labelFetcher:c,labelDataIndex:u,defaultText:i},f);var p=t.getTextContent();if(p){if(f9(p).ignore=p.ignore,t.textConfig&&o){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function s9(r,e,t,i,n,a){if(e)e.setItemGraphicEl(a,t);else Yt(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:i,region:n&&n.option||{}}}function l9(r,e,t,i,n){if(!e)Ln({el:t,componentModel:r,itemName:i,itemTooltipOption:n.get("tooltip")})}function u9(r,e,t,i){e.highDownSilentOnTouch=!!r.get("selectedMode");var n=i.getModel("emphasis"),a=n.get("focus");if(Ie(e,a,n.get("blurScope"),n.get("disabled")),rm(r))z3(e,r,t);return a}function c9(r,e,t){var i=[],n;function a(){n=[]}function o(){if(n.length)i.push(n),n=[]}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){if(isFinite(l)&&isFinite(u))n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),P(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}function rm(r){return r.mainType==="geo"}var QP,tbt,ebt,rbt,f9,ibt,hT;var tR=k(()=>{Z();bf();jt();tr();Ph();In();rr();lr();dv();zn();no();yt();tc();No();br();QP=["rect","circle","line","ellipse","polygon","polyline","path"],tbt=gt(QP),ebt=gt(QP.concat(["g"])),rbt=gt(QP.concat(["g"])),f9=Ft();ibt=function(){function r(e){var t=this.group=new Lt,i=this._transformGroup=new Lt;t.add(i),this.uid=Da("ec_map_draw"),this._controller=new Va(e.getZr()),i.add(this._regionsGroup=new Lt),i.add(this._svgGroup=new Lt)}return r.prototype.draw=function(e,t,i,n,a){var o=this,s=e.getData&&e.getData();if(rm(e))t.eachComponent({mainType:"series",subType:"map"},function(g){if(!s&&g.getHostGeoModel()===e)s=g.getData()});var l=e.coordinateSystem,u=l.view,c=this._regionsGroup,f=this._transformGroup,p=!c.childAt(0)||a,h;if(l.shouldClip())h=w0(null,u),this.group.setClipPath(new ee({shape:h.clone()}));else this.group.removeClipPath();ss(f,Af,u,p?null:e);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;if(l.resourceType==="geoJSON")this._buildGeoJSON(u,i,l,e,s,v);else if(l.resourceType==="geoSVG")this._buildSVG(u,i,l,e,s,v);Mf(e,i,this._controller,function(g,y,m){return e.coordinateSystem.containPoint([y,m])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,c,i,n)},r.prototype.__updateOnOwnRoam=function(e){ss(this._transformGroup,Af,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,i,n,a,o){var s=this._regionsGroupByName=gt(),l=gt(),u=this._regionsGroup,c=i.projection,f=c&&c.stream,p=gl(Rh(null,e,Qu));function h(y,m){if(m)y=m(y);return y&&vr([],y,p)}function v(y){var m=[],d=!f&&c&&c.project;for(var x=0;x<y.length;++x){var S=h(y[x],d);S&&m.push(S)}return m}function g(y){return{shape:{points:v(y)}}}u.removeAll(),P(i.regions,function(y){var m=y.name,d=s.get(m),x=l.get(m)||{},{dataIdx:S,regionModel:w}=x;if(!d){d=s.set(m,new Lt),u.add(d),S=a?a.indexOfName(m):null,w=rm(n)?n.getRegionModel(m):a?a.getItemModel(S):null;var T=w.get("silent",!0);T!=null&&(d.silent=T),l.set(m,{dataIdx:S,regionModel:w})}var A=[],M=[];P(y.geometries,function(I){if(I.type==="polygon"){var E=[I.exterior].concat(I.interiors||[]);if(f)E=c9(E,f);P(E,function(B){A.push(new kr(g(B)))})}else{var R=I.points;if(f)R=c9(R,f,!0);P(R,function(B){M.push(new Mr(g(B)))})}});var D=h(y.getCenter(),c&&c.project);function L(I,E){if(!I.length)return;var R=new Yc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:I}});if(d.add(R),a9(t,a,o,R,S,w),o9(n,a,R,m,w,S,D),E)n9(R),P(R.states,n9)}L(A),L(M,!0)}),s.each(function(y,m){var d=l.get(m),{dataIdx:x,regionModel:S}=d;s9(n,a,y,m,S,x),l9(n,a,y,m,S),u9(n,y,m,S)},this)},r.prototype._buildSVG=function(e,t,i,n,a,o){var s=i.map;if(Rh(this._svgGroup,e,Qu),this._svgResourceChanged(s))this._freeSVG(),this._useSVG(s);var l=this._svgDispatcherMap=gt(),u=!1;P(this._svgGraphicRecord.named,function(c){var{name:f,svgNodeTagLower:p,el:h}=c,v=a?a.indexOfName(f):null,g=n.getRegionModel(f);if(tbt.get(p)!=null&&h instanceof fi)a9(t,a,o,h,v,g);if(h instanceof fi)h.culling=!0;var y=g.get("silent",!0);if(y!=null&&(h.silent=y),h.z2EmphasisLift=0,!c.namedFrom){if(rbt.get(p)!=null)o9(n,a,h,f,g,v,null);if(s9(n,a,h,f,g,v),l9(n,a,h,f,g),ebt.get(p)!=null){var m=u9(n,h,f,g);if(m==="self")u=!0;var d=l.get(f)||l.set(f,[]);d.push(h)}}},this),this._enableBlurEntireSVG(u,n)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&rm(t)){var i=t.getModel(["blur","itemStyle"]).getItemStyle(),n=i.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Is(a);var o=a.ensureState("blur").style||{};if(o.opacity==null&&n!=null)o.opacity=n;a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var a=n.get(e);return a?[a]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=oa.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e==null)return;var t=oa.getGeoResource(e);if(t&&t.type==="geoSVG")t.freeGraphic(this.uid);this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();if(t)t.ignore=f9(t).ignore})},r.prototype._updateMapSelectHandler=function(e,t,i,n){var a=this;if(t.off("mousedown"),t.off("click"),e.get("selectedMode"))t.on("mousedown",function(){a._mouseDownFlag=!0}),t.on("click",function(o){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1})},r}();hT=ibt});function dT(r){return r.indexOf("i")===0}function im(r){return Lf(r.seriesGroup)===r&&!r.getHostGeoModel()}function Lf(r){return r.f[0]}function nm(r,e){var t={};return r.eachRawSeriesByType(tl,function(i){var n=i.getHostGeoModel(),a=n?"o"+n.id:"i"+i.getMapType(),o=t[a]=t[a]||{f:[],r:[]};if(!r.isSeriesFiltered(i)&&!e)o.f.push(i);o.r.push(i)}),t}var tl="map",nbt,p9;var Nh=k(()=>{dt();Z();Mh();Zr();Ph();Ol();Rn();qi();Pa();we();nbt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(i){if(i!=null){var n=this.getData().getName(i),a=this.coordinateSystem,o=a.getRegion(n);return o&&a.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){var i=vo(this,{coordDimensions:["value"],encodeDefaulter:ne(uv,this)}),n=gt(),a=[];for(var o=0,s=i.count();o<s;o++){var l=i.getName(o);n.set(l,o)}var u=oa.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return P(u.regions,function(c){var f=c.name,p=n.get(f),h=c.properties&&c.properties.echartsStyle,v;if(p==null)v={name:f},a.push(v);else v=i.getRawDataItem(p);h&&re(v,h)}),i.appendData(a),i},e.prototype.getHostGeoModel=function(){if(xL(this).kind===_L)return;return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t),l=[];return P(this.seriesGroup.f,function(u){var c=u.originalData.indexOfName(s),f=a.mapDimension("value");if(!isNaN(u.originalData.get(f,c)))l.push(u.name)}),mr("section",{header:l.join(", "),noHeader:!l.length,blocks:[mr("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",n=ir(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);if(n.setStyle(t.itemStyle),n.style.stroke="none",i.indexOf("empty")>-1)n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2;return n},e.prototype.__ownRoamView=function(){return im(this)?this.coordinateSystem.view:null},e.type="series."+tl,e.dependencies=["geo"],e.layoutMode="box",e.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:Q.color.tertiary},itemStyle:{borderWidth:0.5,borderColor:Q.color.border,areaColor:Q.color.background},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{areaColor:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},nameProperty:"name"},e}(Pe);p9=nbt});var abt,h9;var d9=k(()=>{dt();jt();tR();Xr();Nh();rr();tr();abt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=tl,t}return e.prototype.render=function(t,i,n,a){if(a&&a.type==="mapToggleSelect"&&a.from===this.uid)return;var o=this.group;if(o.removeAll(),t.getHostGeoModel())return;var s=this._mapDraw;if(s&&a&&a.type==="geoRoam")s.resetForLabelLayout();if(!(a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id))if(im(t))s=s||(this._mapDraw=new hT(n)),o.add(s.group),s.draw(t,i,n,this,a);else this._clearMapDraw();else s&&o.add(s.group);t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t)},e.prototype.__updateOnOwnRoam=function(t,i,n){var a=this._mapDraw;if(im(i)&&a)a.__updateOnOwnRoam(i)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var i=t.originalData,n=this.group;i.each(i.mapDimension("value"),function(a,o){if(isNaN(a))return;var s=i.getItemLayout(o);if(!s||!s.point)return;var{point:l,offset:u}=s,c=new Xn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(!u?Au+1:0)});if(!u){var f=Lf(t.seriesGroup).getData(),p=i.getName(o),h=f.indexOfName(p),v=i.getItemModel(o),g=v.getModel("label"),y=f.getItemGraphicEl(h);if(or(c,er(v),{labelFetcher:{getFormattedLabel:function(m,d){return t.getFormattedLabel(h,d)}},defaultText:p}),c.disableLabelAnimation=!0,!g.get("position"))c.setTextConfig({position:"bottom"});y.onHoverStateChange=function(m){Vp(c,m)}}n.add(c)})},e.type=tl,e}(Ce),h9=abt});function v9(r){var{geoModel:e,seriesModel:t}=r;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Xe).models[0]||{}).coordinateSystem:null}var obt,eR,sbt,rR;var m9=k(()=>{dt();Z();zn();Ph();yt();No();obt={geoJSON:{aspectScale:0.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},eR=["lng","lat"],sbt=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;a.dimensions=eR,a.type="geo",a._nameCoordMap=gt(),a.name=t;var o=n.projection,s=oa.load(i,n.nameMap,n.nameProperty),l=oa.getGeoResource(i),u=a.resourceType=l?l.type:null,c=a.regions=s.regions,f=obt[l.type];a._clip=n.clip;var p=o?!1:f.invertLongitute;a.view=new Ef(p,sT(n.ecModel,n.api),a),a.map=i,a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var v=0;v<c.length;v++){var g=c[v].getBoundingRect(o);h=h||g.clone(),h.union(g)}else h=s.boundingRect;return Cf(a.view,h.x,h.y,h.width,h.height),a.aspectScale=o?1:St(n.aspectScale,f.aspectScale),a}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){var i=this.regions;for(var n=0;n<i.length;n++){var a=i[n];if(a.type==="geoJSON"&&a.contain(t))return i[n]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,n){if(ht(t))t=this.getGeoCoord(t);if(t){var a=this.projection;if(a)t=a.project(t);return t&&this.view.dataToPoint(t,i,n)}},e.prototype.pointToData=function(t,i,n){var a=this.projection;if(a)t=a.unproject(t);return t&&this.view.pointToData(t,n)},e.prototype.convertToPixel=function(t,i,n){var a=v9(i);return a===this?a.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,i,n){var a=v9(i);return a===this?a.pointToData(n):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var i=w0(null,this.view);return i.x-=t,i.y-=t,i.width+=2*t,i.height+=2*t,i},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e}(xa);rR=sbt});function g9(r,e){var t=this.view,i=r.get("boundingCoords");if(i!=null){var n=i[0],a=i[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])));else{var o=this.projection;if(o){var s=n[0],l=n[1],u=a[0],c=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(T,A,M,D){var L=M-T,I=D-A;for(var E=0;E<=100;E++){var R=E/100,B=o.project([T+L*R,A+I*R]);Qa(n,n,B),to(a,a,B)}};f(s,l,u,l),f(u,l,u,c),f(u,c,s,c),f(s,c,u,l)}Cf(t,n[0],n[1],a[0]-n[0],a[1]-n[1])}}var p=t.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),g=Je(r,e).refContainer,y=p.width/p.height*this.aspectScale,m=!1,d,x;if(h&&v){if(d=[wt(h[0],g.width)+g.x,wt(h[1],g.height)+g.y],x=wt(v,Math.min(g.width,g.height)),!isNaN(d[0])&&!isNaN(d[1])&&!isNaN(x))m=!0}var S;if(m){if(S={},y>1)S.width=x,S.height=x/y;else S.height=x,S.width=x*y;S.y=d[1]-S.height/2,S.x=d[0]-S.width/2}else{var w=r.getBoxLayoutParams();w.aspect=y,S=Be(w,g),S=Mb(r,S,y)}kh(t,S.x,S.y,S.width,S.height),T0(t,r)}function lbt(r,e){P(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var ubt,cbt,vT;var iR=k(()=>{Z();m9();ur();te();Ph();Nh();br();Pa();yt();zn();ubt=function(){function r(){this.dimensions=eR}return r.prototype.create=function(e,t){var i=[];function n(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection"),clip:a.getShallow("clip",!0)}}return e.eachComponent("geo",function(a,o){var s=a.get("map"),l=new rR(s+o,s,et({nameMap:a.get("nameMap"),api:t,ecModel:e},n(a)));i.push(l),a.coordinateSystem=l,l.model=a,l.resize=g9,l.resize(a,t)}),e.eachSeries(function(a){Rl({targetModel:a,coordSysType:"geo",coordSysProvider:function(){var o=a.subType===tl?a.getHostGeoModel():a.getReferringComponents("geo",Xe).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),P(nm(e,!0),function(a,o){if(!dT(o))return;var s=a.r[0],l=[];P(a.r,function(p){l.push(p.get("nameMap")),p.seriesGroup=null});var u=o.slice(1),c=new rR(u,u,et({nameMap:gd(l),api:t,ecModel:e},n(s))),f;P(a.r,function(p){f=St(f,p.get("scaleLimit"))}),i.push(c),c.resize=g9,c.resize(s,t),P(a.r,function(p){p.coordinateSystem=c,lbt(c,p)})}),i},r.prototype.getFilledRegions=function(e,t,i,n){var a=(e||[]).slice(),o=gt();for(var s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=oa.load(t,i,n);return P(l.regions,function(u){var c=u.name,f=o.get(c),p=u.properties&&u.properties.echartsStyle;if(!f)f={name:c},a.push(f);p&&re(f,p)}),a},r}(),cbt=new ubt,vT=cbt});var fbt,y9;var _9=k(()=>{dt();Z();yt();Nr();ti();iR();Ph();we();fbt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n);var a=oa.getGeoResource(t.map);if(a&&a.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};if(!("color"in o))o.color=t.defaultItemStyleColor||Q.color.backgroundTint}io(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=vT.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var n={};if(this._optionModelMap=an(i.regions||[],function(a,o){var s=o.name;if(s){if(a.set(s,new ye(o,t,t.ecModel)),o.selected)n[s]=!0}return a},gt()),!i.selectedMap)i.selectedMap=n},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new ye(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var n=this.getRegionModel(t),a=i==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(Mt(a))return o.status=i,a(o);else if(ht(a))return a.replace("{a}",t!=null?t:"")},e.prototype.select=function(t){var i=this.option,n=i.selectedMode;if(!n)return;if(n!=="multiple")i.selectedMap=null;var a=i.selectedMap||(i.selectedMap={});a[t]=!0},e.prototype.unSelect=function(t){var i=this.option.selectedMap;if(i)i[t]=!1},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:Q.color.tertiary},itemStyle:{borderWidth:0.5,borderColor:Q.color.border},emphasis:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},select:{label:{show:!0,color:Q.color.primary},itemStyle:{color:Q.color.highlight}},regions:[]},e}(de),y9=fbt});var pbt,x9;var S9=k(()=>{dt();tR();jr();lr();pbt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,n,a){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}if(!this._mapDraw)this._mapDraw=new hT(n);var o=this._mapDraw;o.draw(t,i,n,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,i,n)},e.prototype.__updateOnOwnRoam=function(t,i,n){var a=this._mapDraw;if(a)a.__updateOnOwnRoam(i)},e.prototype._handleRegionClick=function(t){var i;if(Bs(t.target,function(n){return(i=Yt(n).eventData)!=null},!0),i)this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,n){var a=this;this._mapDraw.group.traverse(function(o){var s=Yt(o).eventData;if(s)return a._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Re),x9=pbt});function hbt(r,e,t){oa.registerMap(r,e,t)}function A0(r){r.registerCoordinateSystem("geo",vT),r.registerComponentModel(y9),r.registerComponentView(x9),r.registerImpl("registerMap",hbt),r.registerImpl("getMap",function(t){return oa.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(n,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;P(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];P(o,function(f,p){o[p]&&c.push(p)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,n){var a=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":cn),o=a===cn;if(a!=="geo"&&!o)return;var s=o?"map":null;i.eachComponent(Ud(t,a,s),function(l){if(o&&!im(l))return;aT(t,l,o?l.seriesGroup.r:null),oT(t,l,i,n)})})}var nR=k(()=>{_9();iR();gi();Z();Nh();S9();Ph();yt();zn()});function dbt(r){P(nm(r),function(e,t){if(!Lf(e)||!dT(t))return;var i={};P(e.f,function(a){var{coordinateSystem:o,originalData:s}=a;if(a.get("showLegendSymbol")&&r.getComponent("legend"))s.each(s.mapDimension("value"),function(l,u){var c=s.getName(u),f=o.getRegion(c);if(!f||isNaN(l))return;var p=i[c]||0,h=o.dataToPoint(f.getCenter());i[c]=p+1,s.setItemLayout(u,{point:h,offset:p})})});var n=Lf(e).getData();n.each(function(a){var o=n.getName(a),s=n.getItemLayout(a)||{};s.showLabel=!i[o],n.setItemLayout(a,s)})})}var b9;var w9=k(()=>{Nh();yt();Z();b9=Ke(tl,dbt)});function vbt(r,e){var t={};return P(r,function(i){i.each(i.mapDimension("value"),function(n,a){var o="ec-"+i.getName(a);if(t[o]=t[o]||[],!isNaN(n))t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(i,n){var a="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[a].length;for(var c=0;c<u;c++)s=Math.min(s,t[a][c]),l=Math.max(l,t[a][c]),o+=t[a][c];var f;if(e==="min")f=s;else if(e==="max")f=l;else if(e==="average")f=o/u;else f=o;return u===0?NaN:f})}function mbt(r){P(nm(r),function(e){var t=Lf(e);if(!t)return;var i=vbt(nt(e.f,function(n){return n.getData()}),t.get("mapValueCalculation"));P(e.f,function(n){n.seriesGroup=e,n.originalData=n.getData(),n.setData(i.cloneShallow())})})}var T9;var A9=k(()=>{Z();Nh();yt();T9=Ke(tl,mbt)});function aR(r){he(A0),r.registerChartView(h9),r.registerSeriesModel(p9),r.registerLayout(b9),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,T9),o1("map",r.registerAction)}var C9=k(()=>{On();d9();Nh();s1();nR();w9();A9()});function E9(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t=[e],i,n;while(i=t.pop())if(n=i.children,i.isExpand&&n.length){var a=n.length;for(var o=a-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}}function M9(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,n=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){gbt(r);var a=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;if(n)r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-a;else r.hierNode.prelim=a}else if(n)r.hierNode.prelim=n.hierNode.prelim+e(r,n);r.parentNode.hierNode.defaultAncestor=ybt(r,n,r.parentNode.hierNode.defaultAncestor||i[0],e)}function L9(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function lR(r){return arguments.length?r:Sbt}function zh(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function gbt(r){var e=r.children,t=e.length,i=0,n=0;while(--t>=0){var a=e[t];a.hierNode.prelim+=i,a.hierNode.modifier+=i,n+=a.hierNode.change,i+=a.hierNode.shift+n}}function ybt(r,e,t,i){if(e){var n=r,a=r,o=a.parentNode.children[0],s=e,l=n.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;while(s=oR(s),a=sR(a),s&&a){n=oR(n),o=sR(o),n.hierNode.ancestor=r;var p=s.hierNode.prelim+f-a.hierNode.prelim-u+i(s,a);if(p>0)xbt(_bt(s,r,t),r,p),u+=p,l+=p;f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=n.hierNode.modifier,c+=o.hierNode.modifier}if(s&&!oR(n))n.hierNode.thread=s,n.hierNode.modifier+=f-l;if(a&&!sR(o))o.hierNode.thread=a,o.hierNode.modifier+=u-c,t=r}return t}function oR(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function sR(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function _bt(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function xbt(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function Sbt(r,e){return r.parentNode===e.parentNode?1:2}function bbt(r){var{mainData:e,datas:t}=r;if(!t)t={main:e},r.datasAttr={main:"data"};r.datas=r.mainData=null,D9(e,t,r),P(t,function(i){P(e.TRANSFERABLE_METHODS,function(n){i.wrapMethod(n,ne(wbt,r))})}),e.wrapMethod("cloneShallow",ne(Abt,r)),P(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,ne(Tbt,r))}),xe(t[e.dataType]===e)}function wbt(r,e){if(Mbt(this)){var t=et({},ls(this).datas);t[this.dataType]=e,D9(e,t,r)}else uR(e,this.dataType,ls(this).mainData,r);return e}function Tbt(r,e){return r.struct&&r.struct.update(),e}function Abt(r,e){return P(ls(e).datas,function(t,i){t!==e&&uR(t.cloneShallow(),i,e,r)}),e}function Cbt(r){var e=ls(this).mainData;return r==null||e==null?e:ls(e).datas[r]}function Ebt(){var r=ls(this).mainData;return r==null?[{data:r}]:nt(le(ls(r).datas),function(e){return{type:e,data:ls(r).datas[e]}})}function Mbt(r){return ls(r).mainData===r}function D9(r,e,t){ls(r).datas={},P(e,function(i,n){uR(i,n,r,t)})}function uR(r,e,t,i){if(ls(t).datas[e]=r,ls(r).mainData=t,r.dataType=e,i.struct)r[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=r;r.getLinkedData=Cbt,r.getLinkedDataAll=Ebt}var ls,mT;var cR=k(()=>{Z();yt();ls=Ft();mT=bbt});function Ibt(r,e){var t=e.children;if(r.parentNode===e)return;t.push(r),r.parentNode=e}var Lbt,Dbt,am;var gT=k(()=>{Z();cR();ts();_v();yt();Lbt=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,i){if(Mt(e))i=t,t=e,e=null;if(e=e||{},ht(e))e={order:e};var n=e.order||"preorder",a=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(i,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,t,i);n==="postorder"&&t.call(i,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];if(n.updateDepthAndHeight(e+1),n.height>t)t=n.height}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,n=i.length;t<n;t++){var a=i[t].getNodeById(e);if(a)return a}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,n=i.length;t<n;t++){var a=i[t].contains(e);if(a)return a}},r.prototype.getAncestors=function(e){var t=[],i=e?this:this.parentNode;while(i)t.push(i),i=i.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(this.dataIndex<0)return;var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){var e=this.parentNode.children;for(var t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),Dbt=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){var e=this.data,t=this._nodes;for(var i=0,n=t.length;i<n;i++)t[i].dataIndex=-1;for(var i=0,n=e.count();i<n;i++)t[e.getRawIndex(i)].dataIndex=i},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,i){var n=new r(t),a=[],o=1;s(e);function s(c,f){var p=c.value;o=Math.max(o,it(p)?p.length:1),a.push(c);var h=new Lbt(Rr(c.name,""),n);f?Ibt(h,f):n.root=h,n._nodes.push(h);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],h)}n.root.updateDepthAndHeight(0);var l=Fs(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Kr(l,t);return u.initData(a),i&&i(u),mT({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();am=Dbt});function ec(r,e,t){if(r&&Xt(e,r.type)>=0){var i=t.getData().tree.root,n=r.targetNode;if(ht(n))n=i.getNodeById(n);if(n&&i.contains(n))return{node:n};var a=r.targetNodeId;if(a!=null&&(n=i.getNodeById(a)))return{node:n}}}function fR(r){var e=[];while(r)r=r.parentNode,r&&e.push(r);return e.reverse()}function om(r,e){var t=fR(r);return Xt(t,e)>=0}function Df(r,e){var t=[];while(r){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var rc=k(()=>{Z()});var Jl="tree",Pbt,I9;var C0=k(()=>{dt();Zr();gT();ti();Rn();rc();we();Pbt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},n=t.leaves||{},a=new ye(n,this,this.ecModel),o=am.createTree(i,this,s);function s(f){f.wrapMethod("getItemModel",function(p,h){var v=o.getNodeByDataIndex(h);if(!(v&&v.children.length&&v.isExpand))p.parentModel=a;return p})}var l=0;o.eachNode("preorder",function(f){if(f.depth>l)l=f.depth});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var p=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=p&&p.collapsed!=null?!p.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");if(t==="horizontal")t="LR";else if(t==="vertical")t="TB";return t},e.prototype.formatTooltip=function(t,i,n){var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(t),l=s.getValue(),u=s.name;while(s&&s!==o)u=s.parentNode.name+"."+u,s=s.parentNode;return mr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=Df(n,this),i.collapsed=!n.isExpand,i},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Jl,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:0.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Q.color.borderTint,width:1.5,curveness:0.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Pe),I9=Pbt});function P9(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function R9(r,e,t,i,n){var a=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:Q.color.neutral00,c=r.tree.root,f=o.parentNode===c?o:o.parentNode||o,p=r.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:h,g=o.getLayout();if(a)t=new ju(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=v.x,t.y=v.y;else t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0});t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=g.rawX,t.__radialRawY=g.rawY,i.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,ge(t,{x:g.x,y:g.y},n);var y=t.getSymbolPath();if(n.get("layout")==="radial"){var m=c.children[0],d=m.getLayout(),x=m.children.length,S=void 0,w=void 0;if(g.x===d.x&&o.isExpand===!0&&m.children.length){var T={x:(m.children[0].getLayout().x+m.children[x-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[x-1].getLayout().y)/2};if(S=Math.atan2(T.y-d.y,T.x-d.x),S<0)S=Math.PI*2+S;if(w=T.x<d.x,w)S=S-Math.PI}else{if(S=Math.atan2(g.y-d.y,g.x-d.x),S<0)S=Math.PI*2+S;if(o.children.length===0||o.children.length!==0&&o.isExpand===!1){if(w=g.x<d.x,w)S=S-Math.PI}else if(w=g.x>d.x,!w)S=S-Math.PI}var A=w?"left":"right",M=s.getModel("label"),D=M.get("rotate"),L=D*(Math.PI/180),I=y.getTextContent();if(I)y.setTextConfig({position:M.get("position")||A,rotation:D==null?-S:L,origin:"center"}),I.setStyle("verticalAlign","middle")}var E=s.get(["emphasis","focus"]),R=E==="relative"?mu(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;if(R)Yt(t).focus=R;if(Nbt(n,o,c,t,v,h,g,i),t.__edge)t.onHoverStateChange=function(B){if(B!=="blur"){var z=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);if(!(z&&z.hoverState===Up))Vp(t.__edge,B)}}}function Nbt(r,e,t,i,n,a,o,s){var l=e.getModel(),u=r.get("edgeShape"),c=r.get("layout"),f=r.getOrient(),p=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if(u==="curve"){if(e.parentNode&&e.parentNode!==t){if(!g)g=i.__edge=new Hp({shape:hR(c,f,p,n,n)});ge(g,{shape:hR(c,f,p,a,o)},r)}}else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){var y=e.children,m=[];for(var d=0;d<y.length;d++){var x=y[d].getLayout();m.push([x.x,x.y])}if(!g)g=i.__edge=new Obt({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}});ge(g,{shape:{parentPoint:[o.x,o.y],childPoints:m}},r)}}}if(g&&!(u==="polyline"&&!e.isExpand))g.useStyle(Dt({strokeNoScale:!0,fill:null},v)),pr(g,l,"lineStyle"),Is(g),s.add(g)}function O9(r,e,t,i,n){var a=e.tree.root,o=N9(a,r),{source:s,sourceLayout:l}=o,u=e.getItemGraphicEl(r.dataIndex);if(!u)return;var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,p=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=i.get("edgeShape"),v=i.get("layout"),g=i.get("orient"),y=i.get(["lineStyle","curveness"]);if(p){if(h==="curve")jo(p,{shape:hR(v,g,y,l,l),style:{opacity:0}},i,{cb:function(){t.remove(p)},removeOpt:n});else if(h==="polyline"&&i.get("layout")==="orthogonal")jo(p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(p)},removeOpt:n})}}function N9(r,e){var t=e.parentNode===r?e:e.parentNode||e,i;while(i=t.getLayout(),i==null)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:i}}function k9(r,e,t,i,n){var a=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=N9(o,a).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};jo(t,{x:s.x+1,y:s.y+1},n,{cb:function(){i.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),P(a.children,function(u){O9(u,r,i,n,l)}),O9(a,r,i,n,l)}function hR(r,e,t,i,n){var a,o,s,l,u,c,f,p;if(r==="radial"){u=i.rawX,f=i.rawY,c=n.rawX,p=n.rawY;var h=zh(u,f),v=zh(u,f+(p-f)*t),g=zh(c,p+(f-p)*t),y=zh(c,p);return{x1:h.x||0,y1:h.y||0,x2:y.x||0,y2:y.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:g.x||0,cpy2:g.y||0}}else{if(u=i.x,f=i.y,c=n.x,p=n.y,e==="LR"||e==="RL")a=u+(c-u)*t,o=f,s=c+(u-c)*t,l=p;if(e==="TB"||e==="BT")a=u,o=f+(p-f)*t,s=c,l=p+(f-p)*t}return{x1:u,y1:f,x2:c,y2:p,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var Rbt,Obt,kbt,z9;var B9=k(()=>{dt();Z();jt();lr();l0();Fg();zn();bf();te();Xr();C0();Br();tr();we();tc();Rbt=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),Obt=function(r){W(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Rbt},e.prototype.buildPath=function(t,i){var n=i.childPoints,a=n.length,o=i.parentPoint,s=n[0],l=n[a-1];if(a===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,p=wt(i.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*p,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var v=1;v<a-1;v++){var g=n[v];t.moveTo(g[0],g[1]),h[c]=g[c],t.lineTo(h[0],h[1])}},e}($t),kbt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Jl,t._mainGroup=new Lt,t}return e.prototype.init=function(t,i){this._controller=new Va(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,i,n){var a=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");if(l==="radial")s.x=o.x+o.width/2,s.y=o.y+o.height/2;else s.x=o.x,s.y=o.y;this._updateViewCoordSys(t,n),Mf(t,n,this._controller,cT(this.group),null);var u=this._data;if(a.diff(u).add(function(c){if(P9(a,c))R9(a,c,null,s,t)}).update(function(c,f){var p=u.getItemGraphicEl(f);if(!P9(a,c)){p&&k9(u,f,p,s,t);return}R9(a,c,p,s,t)}).remove(function(c){var f=u.getItemGraphicEl(c);if(f)k9(u,c,f,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0)a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:f})})});this._data=a,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,i,n){if(ss(this.group,go,i.coordinateSystem,null),fT(t))this._updateNodeAndLinkScale(i)},e.prototype._updateViewCoordSys=function(t,i){var n=t.getData(),a=[];n.each(function(f){var p=n.getItemLayout(f);if(p&&!isNaN(p.x)&&!isNaN(p.y))a.push([+p.x,+p.y])});var o=[],s=[];Dp(a,o,s);var l=this._min,u=this._max;if(s[0]-o[0]===0)o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1;if(s[1]-o[1]===0)o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1;var c=t.coordinateSystem=em(t,i,o[0],o[1],s[0]-o[0],s[1]-o[1]);ss(this.group,go,c,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),n=uT(t.coordinateSystem,t);i.eachItemGraphicEl(function(a,o){a.setSymbolScale(n)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=Jl,e}(Ce);z9=kbt});function U9(r,e,t){var i=[r],n=[],a;while(a=i.pop())if(n.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}while(a=n.pop())e(a,t)}function sm(r,e){var t=[r],i;while(i=t.pop())if(e(i),i.isExpand){var n=i.children;if(n.length)for(var a=n.length-1;a>=0;a--)t.push(n[a])}}var V9=()=>{};function dR(r,e){r.eachSeriesByType("tree",function(t){zbt(t,e)})}function zbt(r,e){var t=Je(r,e).refContainer,i=Be(r.getBoxLayoutParams(),t);r.layoutInfo=i;var n=r.get("layout"),a=0,o=0,s=null;if(n==="radial")a=2*Math.PI,o=Math.min(i.height,i.width)/2,s=lR(function(S,w){return(S.parentNode===w.parentNode?1:2)/S.depth});else a=i.width,o=i.height,s=lR();var l=r.getData().tree.root,u=l.children[0];if(u){E9(l),U9(u,M9,s),l.hierNode.modifier=-u.hierNode.prelim,sm(u,L9);var c=u,f=u,p=u;sm(u,function(S){var w=S.getLayout().x;if(w<c.getLayout().x)c=S;if(w>f.getLayout().x)f=S;if(S.depth>p.depth)p=S});var h=c===f?1:s(c,f)/2,v=h-c.getLayout().x,g=0,y=0,m=0,d=0;if(n==="radial")g=a/(f.getLayout().x+h+v),y=o/(p.depth-1||1),sm(u,function(S){m=(S.getLayout().x+v)*g,d=(S.depth-1)*y;var w=zh(m,d);S.setLayout({x:w.x,y:w.y,rawX:m,rawY:d},!0)});else{var x=r.getOrient();if(x==="RL"||x==="LR")y=o/(f.getLayout().x+h+v),g=a/(p.depth-1||1),sm(u,function(S){d=(S.getLayout().x+v)*y,m=x==="LR"?(S.depth-1)*g:a-(S.depth-1)*g,S.setLayout({x:m,y:d},!0)});else if(x==="TB"||x==="BT")g=a/(f.getLayout().x+h+v),y=o/(p.depth-1||1),sm(u,function(S){m=(S.getLayout().x+v)*g,d=x==="TB"?(S.depth-1)*y:o-(S.depth-1)*y,S.setLayout({x:m,y:d},!0)})}}}var F9=k(()=>{V9();ur()});function G9(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:cn,subType:Jl,query:e},function(i){var n=e.dataIndex,a=i.getData().tree,o=a.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),tm(r,cn,Jl)}var H9=k(()=>{tc();gi();C0()});function Bbt(r){r.eachSeriesByType(Jl,function(e){var t=e.getData(),i=t.tree;i.eachNode(function(n){var a=n.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");et(s,o)})})}var W9;var Y9=k(()=>{yt();C0();Z();W9=Ke(Jl,Bbt)});function vR(r){r.registerChartView(z9),r.registerSeriesModel(I9),r.registerLayout(dR),r.registerVisual(W9),G9(r)}var Z9=k(()=>{B9();C0();F9();H9();Y9()});function X9(r){for(var e=0;e<j9.length;e++)r.registerAction({type:j9[e],update:"updateView"},ar);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=ec(t,s,a);if(l){var u=a.getViewRoot();if(u)t.direction=om(u,l.node)?"rollUp":"drillDown";a.resetViewRoot(l.node)}}})}var j9;var K9=k(()=>{rc();Z();j9=["treemapZoomToNode","treemapRender","treemapMove"]});function E0(r){var e=r.getData(),t=e.tree,i={};t.eachNode(function(n){var a=n;while(a&&a.depth>1)a=a.parentNode;var o=hy(r.ecModel,a.name||a.dataIndex+"",i);n.setVisual("decal",o)})}var mR=k(()=>{dy()});function q9(r){var e=0;P(r.children,function(i){q9(i);var n=i.value;it(n)&&(n=n[0]),e+=n});var t=r.value;if(it(t))t=t[0];if(t==null||isNaN(t))t=e;if(t<0)t=0;it(r.value)?r.value[0]=t:r.value=t}function Vbt(r,e){var t=Ve(e.get("color")),i=Ve(e.get(["aria","decal","decals"]));if(!t)return;r=r||[];var n,a;P(r,function(s){var l=new ye(s),u=l.get("color"),c=l.get("decal");if(l.get(["itemStyle","color"])||u&&u!=="none")n=!0;if(l.get(["itemStyle","decal"])||c&&c!=="none")a=!0});var o=r[0]||(r[0]={});if(!n)o.color=t.slice();if(!a&&i)o.decal=i.slice();return r}var Ubt,J9;var $9=k(()=>{dt();Z();Zr();gT();ti();rc();yt();Rn();mR();we();Ubt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var n={name:t.name,children:t.data};q9(n);var a=t.levels||[],o=this.designatedVisualItemStyle={},s=new ye({itemStyle:o},this,i);a=t.levels=Vbt(a,i);var l=nt(a||[],function(f){return new ye(f,s,i)},this),u=am.createTree(n,this,c);function c(f){f.wrapMethod("getItemModel",function(p,h){var v=u.getNodeByDataIndex(h),g=v?l[v.depth]:null;return p.parentModel=g||s,p})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return mr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=Df(n,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},et(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;if(!i)i=this._idIndexMap=gt(),this._idIndexMapCount=0;var n=i.get(t);if(n==null)i.set(t,n=this._idIndexMapCount++);return n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;if(!t||t!==i&&!i.contains(t))this._viewRoot=i},e.prototype.enableAriaDecal=function(){E0(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:0.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:0.1024,scaleLimit:{max:5,min:0.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:Q.color.neutral00,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:Q.color.neutral00,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:[]},e}(Pe);J9=Ubt});function Hbt(r,e,t,i,n,a){var o=[[n?r:r-gR,e],[r+t,e],[r+t,e+i],[n?r:r-gR,e+i]];return!a&&o.splice(2,0,[r+t+gR,e+i/2]),!n&&o.push([r,e+i/2]),o}function Wbt(r,e,t){Yt(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Df(t,e)}}var Fbt=8,Q9=8,gR=5,Gbt,tj;var ej=k(()=>{jt();lr();ur();rc();Z();yt();tr();rr();Gbt=function(){function r(e){this.group=new Lt,e.add(this.group)}return r.prototype.render=function(e,t,i,n){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!a.get("show")||!i)return;var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f=Je(e,t).refContainer,p={left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},h={emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},v=Be(p,f);this._prepare(i,h,u),this._renderContent(e,h,v,s,l,u,c,n),jc(o,p,f)},r.prototype._prepare=function(e,t,i){for(var n=e;n;n=n.parentNode){var a=Rr(n.getModel().get("name"),""),o=i.getTextRect(a),s=Math.max(o.width+Fbt*2,t.emptyItemWidth);t.totalWidth+=s+Q9,t.renderList.push({node:n,text:a,width:s})}},r.prototype._renderContent=function(e,t,i,n,a,o,s,l){var u=0,c=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),{totalWidth:p,renderList:h}=t,v=a.getModel("itemStyle").getItemStyle();for(var g=h.length-1;g>=0;g--){var y=h[g],{node:m,width:d,text:x}=y;if(p>i.width)p-=d-c,d=c,x=null;var S=new kr({shape:{points:Hbt(u,0,d,f,g===h.length-1,g===0)},style:Dt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new me({style:He(o,{text:x})}),textConfig:{position:"inside"},z2:Au*1e4,onclick:ne(l,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=He(s,{text:x}),S.ensureState("emphasis").style=v,Ie(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Wbt(S,e,m),u+=d+Q9}},r.prototype.remove=function(){this.group.removeAll()},r}();tj=Gbt});function rj(){return new Ybt}var Ybt;var ij=k(()=>{Ybt=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,n,a){if(this._elExistsMap[e.id])return!1;return this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:n,easing:a}),!0},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){var e=this,t=this._storage.length,i=function(){if(t--,t<=0)e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback()};for(var n=0,a=this._storage.length;n<a;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:i,aborted:i})}return this},r}()});function sj(r,e,t,i){var n,a;if(r.isRemoved())return;var o=r.getLayout();n=o.width,a=o.height;var s=r.getModel(),l=s.get(aj),u=s.get(jbt)/2,c=uj(s),f=Math.max(l,c),p=l-u,h=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),n=M0(n-2*p,0),a=M0(a-p-h,0);var v=n*a,g=qbt(r,s,v,e,t,i);if(!g.length)return;var y={x:p,y:h,width:n,height:a},m=yT(n,a),d=1/0,x=[];x.area=0;for(var S=0,w=g.length;S<w;){var T=g[S];x.push(T),x.area+=T.getLayout().area;var A=t1t(x,m,e.squareRatio);if(A<=d)S++,d=A;else x.area-=x.pop().getLayout().area,nj(x,m,y,u,!1),m=yT(y.width,y.height),x.length=x.area=0,d=1/0}if(x.length)nj(x,m,y,u,!0);if(!t){var M=s.get("childrenVisibleMin");if(M!=null&&v<M)t=!0}for(var S=0,w=g.length;S<w;S++)sj(g[S],e,t,i+1)}function qbt(r,e,t,i,n,a){var o=r.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=a;if(n&&!l)return r.viewChildren=[];o=be(o,function(h){return!h.isRemoved()}),$bt(o,s);var u=Qbt(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Jbt(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var p=o[c].getValue()/u.sum*t;o[c].setLayout({area:p})}if(l)o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0;return r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Jbt(r,e,t,i,n){if(!i)return t;var a=r.get("visibleMin"),o=n.length,s=o;for(var l=o-1;l>=0;l--){var u=n[i==="asc"?o-l-1:l].getValue();if(u/t*e<a)s=l,t-=u}return i==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function $bt(r,e){if(e)r.sort(function(t,i){var n=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n});return r}function Qbt(r,e,t){var i=0;for(var n=0,a=e.length;n<a;n++)i+=e[n].getValue();var o=r.get("visualDimension"),s;if(!e||!e.length)s=[NaN,NaN];else if(o==="value"&&t)s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse();else s=$r(),yR(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)});return{sum:i,dataExtent:s}}function t1t(r,e,t){var i=0,n=1/0;for(var a=0,o=void 0,s=r.length;a<s;a++)if(o=r[a].getLayout().area,o)o<n&&(n=o),o>i&&(i=o);var l=r.area*r.area,u=e*e*t;return l?M0(u*i/l,l/(u*n)):1/0}function nj(r,e,t,i,n){var a=e===t.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=t[s[a]],c=e?r.area/e:0;if(n||c>t[l[o]])c=t[l[o]];for(var f=0,p=r.length;f<p;f++){var h=r[f],v={},g=c?h.getLayout().area/c:0,y=v[l[o]]=M0(c-2*i,0),m=t[s[a]]+t[l[a]]-u,d=f===p-1||m<g?m:g,x=v[l[a]]=M0(d-2*i,0);v[s[o]]=t[s[o]]+yT(i,y/2),v[s[a]]=u+yT(i,x/2),u+=d,h.setLayout(v,!0)}t[s[o]]+=c,t[l[o]]-=c}function e1t(r,e,t,i){var n=(e||{}).node,{width:a,height:o}=i,s=et({},i);if(!n||n===t)return s;var l,u=a*o,c=u*r.option.zoomToNodeRatio;while(l=n.parentNode){var f=0,p=l.children;for(var h=0,v=p.length;h<v;h++)f+=p[h].getValue();var g=n.getValue();if(g===0)return s;c*=f/g;var y=l.getModel(),m=y.get(aj),d=Math.max(m,uj(y));c+=4*m*m+(3*m+d)*Math.pow(c,0.5),c>Nd&&(c=Nd),n=l}c<u&&(c=u);var x=Math.pow(c/u,0.5);return{width:a*x,height:o*x}}function r1t(r,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var n=t.node,a=n.getLayout();if(!a)return i;var o=[a.width/2,a.height/2],s=n;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function lj(r,e,t,i,n){var a=r.getLayout(),o=t[n],s=o&&o===r;if(o&&!s||n===t.length&&r!==i)return;r.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new Gt(e.x-a.x,e.y-a.y,e.width,e.height);yR(r.viewChildren||[],function(u){lj(u,l,t,i,n+1)})}function uj(r){return r.get(Xbt)?r.get(Kbt):0}function _R(r,e){return e.width/r.width||e.height/r.height||1}function xR(r,e){return lT(r,e.get("scaleLimit",!0))}var M0,yT,yR,aj,jbt,Xbt,Kbt,oj;var SR=k(()=>{Z();fr();te();ur();rc();yt();zn();M0=Math.max,yT=Math.min,yR=P,aj=["itemStyle","borderWidth"],jbt=["itemStyle","gapWidth"],Xbt=["upperLabel","show"],Kbt=["upperLabel","height"],oj={seriesType:"treemap",reset:function(r,e,t,i){var n=r.option,a=Je(r,t).refContainer,o=Be(r.getBoxLayoutParams(),a),s=i&&i.type,l=["treemapZoomToNode","treemapRootToNode"],u=ec(i,l,r),c=s==="treemapRender"||s==="treemapMove"?i.rootRect:null,f=r.getViewRoot(),p=fR(f);if(s!=="treemapMove"){var h=!1,v=s==="treemapZoomToNode"?(h=!0,e1t(r,u,f,o)):c?(h=!0,et({},c)):et({},o);if(h){var g=_R(o,v);g=xR(g,r),v.width=o.width*g,v.height=o.height*g}var y=n.sort;if(y&&y!=="asc"&&y!=="desc")y="desc";var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};f.hostTree.clearLayouts();var d={x:0,y:0,width:v.width,height:v.height,area:v.width*v.height};f.setLayout(d),sj(f,m,!1,0),d=f.getLayout(),yR(p,function(S,w){var T=(p[w+1]||f).getValue();S.setLayout(et({dataExtent:[T,T],borderWidth:0,upperHeight:0},d))})}var x=r.getData().tree.root;x.setLayout(r1t(o,c,u),!0),r.setLayoutInfo(o),lj(x,new Gt(-o.x,-o.y,t.getWidth(),t.getHeight()),p,f,0)}}});function L0(){return{nodeGroup:[],background:[],content:[]}}function s1t(r,e,t,i,n,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=r.getData(),p=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var{width:h,height:v,borderWidth:g,invisible:y}=c,m=o.getRawIndex(),d=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,w=x&&x.length,T=p.getModel("itemStyle"),A=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),D=p.getModel(["select","itemStyle"]),L=T.get("borderRadius")||0,I=Tt("nodeGroup",bR);if(!I)return;if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),_T(I).nodeWidth=h,_T(I).nodeHeight=v,c.isAboveViewRoot)return I;var E=Tt("background",cj,u,n1t);E&&G(I,E,w&&c.upperLabelHeight);var R=p.getModel("emphasis"),B=R.get("focus"),z=R.get("blurScope"),V=R.get("disabled"),H=B==="ancestor"?o.getAncestorsIndices():B==="descendant"?o.getDescendantIndices():B;if(w){if(Wc(I))Eu(I,!1);if(E)Eu(E,!V),f.setItemGraphicEl(o.dataIndex,E),IS(E,H,z)}else{var K=Tt("content",cj,u,a1t);if(K&&rt(I,K),E.disableMorphing=!0,E&&Wc(E))Eu(E,!1);Eu(I,!V),f.setItemGraphicEl(o.dataIndex,I);var F=p.getShallow("cursor");F&&K.attr("cursor",F),IS(I,H,z)}return I;function G(Zt,Rt,oe){var Vt=Yt(Rt);if(Vt.dataIndex=o.dataIndex,Vt.seriesIndex=r.seriesIndex,Rt.setShape({x:0,y:0,width:h,height:v,r:L}),y)ot(Rt);else{Rt.invisible=!1;var N=o.getVisual("style"),vt=N.stroke,ut=dj(T);ut.fill=vt;var q=Bh(A);q.fill=A.get("borderColor");var X=Bh(M);X.fill=M.get("borderColor");var lt=Bh(D);if(lt.fill=D.get("borderColor"),oe){var At=h-2*g;at(Rt,vt,N.opacity,{x:g,y:0,width:At,height:S})}else Rt.removeTextContent();Rt.setStyle(ut),Rt.ensureState("emphasis").style=q,Rt.ensureState("blur").style=X,Rt.ensureState("select").style=lt,Is(Rt)}Zt.add(Rt)}function rt(Zt,Rt){var oe=Yt(Rt);oe.dataIndex=o.dataIndex,oe.seriesIndex=r.seriesIndex;var Vt=Math.max(h-2*g,0),N=Math.max(v-2*g,0);if(Rt.culling=!0,Rt.setShape({x:g,y:g,width:Vt,height:N,r:L}),y)ot(Rt);else{Rt.invisible=!1;var vt=o.getVisual("style"),ut=vt.fill,q=dj(T);q.fill=ut,q.decal=vt.decal;var X=Bh(A),lt=Bh(M),At=Bh(D);at(Rt,ut,vt.opacity,null),Rt.setStyle(q),Rt.ensureState("emphasis").style=X,Rt.ensureState("blur").style=lt,Rt.ensureState("select").style=At,Is(Rt)}Zt.add(Rt)}function ot(Zt){!Zt.invisible&&a.push(Zt)}function at(Zt,Rt,oe,Vt){var N=p.getModel(Vt?hj:pj),vt=Rr(p.get("name"),null),ut=N.getShallow("show");or(Zt,er(p,Vt?hj:pj),{defaultText:ut?vt:null,inheritColor:Rt,defaultOpacity:oe,labelFetcher:r,labelDataIndex:o.dataIndex});var q=Zt.getTextContent();if(!q)return;var X=q.style,lt=bc(X.padding||0);if(Vt)Zt.setTextConfig({layoutRect:Vt}),q.disableLabelLayout=!0;q.beforeUpdate=function(){var Ct=Math.max((Vt?Vt.width:Zt.shape.width)-lt[1]-lt[3],0),pt=Math.max((Vt?Vt.height:Zt.shape.height)-lt[0]-lt[2],0);if(X.width!==Ct||X.height!==pt)q.setStyle({width:Ct,height:pt})},X.truncateMinChar=2,X.lineOverflow="truncate",mt(X,Vt,c);var At=q.getState("emphasis");mt(At?At.style:null,Vt,c)}function mt(Zt,Rt,oe){var Vt=Zt?Zt.text:null;if(!Rt&&oe.isLeafRoot&&Vt!=null){var N=r.get("drillDownIcon",!0);Zt.text=N?N+" "+Vt:Vt}}function Tt(Zt,Rt,oe,Vt){var N=d!=null&&t[Zt][d],vt=n[Zt];if(N)t[Zt][d]=null,Ut(vt,N);else if(!y){if(N=new Rt,N instanceof fi)N.z2=l1t(oe,Vt);qt(vt,N)}return e[Zt][m]=N}function Ut(Zt,Rt){var oe=Zt[m]={};if(Rt instanceof bR)oe.oldX=Rt.x,oe.oldY=Rt.y;else oe.oldShape=et({},Rt.shape)}function qt(Zt,Rt){var oe=Zt[m]={},Vt=o.parentNode,N=Rt instanceof Lt;if(Vt&&(!i||i.direction==="drillDown")){var vt=0,ut=0,q=n.background[Vt.getRawIndex()];if(!i&&q&&q.oldShape)vt=q.oldShape.width,ut=q.oldShape.height;if(N)oe.oldX=0,oe.oldY=ut;else oe.oldShape={x:vt,y:ut,width:0,height:0}}oe.fadein=!N}}function l1t(r,e){return r*i1t+e}var bR,cj,fj=3,pj="label",hj="upperLabel",i1t,n1t,a1t,Bh,dj=function(r){var e=Bh(r);return e.stroke=e.fill=e.lineWidth=null,e},_T,o1t,vj;var mj=k(()=>{dt();Z();jt();lr();tr();Hu();rc();ej();bf();fr();ij();Ep();Xr();SR();no();yt();pn();rr();bR=Lt,cj=ee,i1t=Au*10,n1t=Au*2,a1t=Au*3,Bh=Ta([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),_T=Ft(),o1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=L0(),t}return e.prototype.render=function(t,i,n,a){var o=i.findComponents({mainType:"series",subType:"treemap",query:a});if(Xt(o,t)<0)return;this.seriesModel=t,this.api=n,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=ec(a,s,t),u=a&&a.type,c=t.layoutInfo,f=!this._oldTree,p=this._storage,h=u==="treemapRootToNode"&&l&&p?{rootNodeGroup:p.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(c),g=t.get("animation"),y=this._doRender(v,t,h);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,y,t,h):y.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;if(!i)i=this._containerGroup=new bR,this._initEvents(i),this.group.add(i);return i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,n){var a=i.getData().tree,o=this._oldTree,s=L0(),l=L0(),u=this._storage,c=[];function f(y,m,d,x){return s1t(i,l,u,n,s,c,y,m,d,x)}h(a.root?[a.root]:[],o&&o.root?[o.root]:[],t,a===o||!o,0);var p=v(u);return this._oldTree=a,this._storage=l,{lastsForAnimation:s,willDeleteEls:p,renderFinally:g};function h(y,m,d,x,S){if(x)m=y,P(y,function(A,M){!A.isRemoved()&&T(M,M)});else new dn(m,y,w,w).add(T).update(T).remove(ne(T,null)).execute();function w(A){return A.getId()}function T(A,M){var D=A!=null?y[A]:null,L=M!=null?m[M]:null,I=f(D,L,d,S);I&&h(D&&D.viewChildren||[],L&&L.viewChildren||[],I,x,S+1)}}function v(y){var m=L0();return y&&P(y,function(d,x){var S=m[x];P(d,function(w){w&&(S.push(w),_T(w).willDelete=!0)})}),m}function g(){P(p,function(y){P(y,function(m){m.parent&&m.parent.remove(m)})}),P(c,function(y){y.invisible=!0,y.dirty()})}},e.prototype._doAnimation=function(t,i,n,a){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(Mt(o)?0:o)||0,u=(Mt(s)?null:s)||"cubicOut",c=rj();P(i.willDeleteEls,function(f,p){P(f,function(h,v){if(h.invisible)return;var g=h.parent,y,m=_T(g);if(a&&a.direction==="drillDown")y=g===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var d=0,x=0;if(!m.willDelete)d=m.nodeWidth/2,x=m.nodeHeight/2;y=p==="nodeGroup"?{x:d,y:x,style:{opacity:0}}:{shape:{x:d,y:x,width:0,height:0},style:{opacity:0}}}y&&c.add(h,y,l,0,u)})}),P(this._storage,function(f,p){P(f,function(h,v){var g=i.lastsForAnimation[p][v],y={};if(!g)return;if(h instanceof Lt){if(g.oldX!=null)y.x=h.x,y.y=h.y,h.x=g.oldX,h.y=g.oldY}else{if(g.oldShape)y.shape=et({},h.shape),h.setShape(g.oldShape);if(g.fadein)h.setStyle("opacity",0),y.style={opacity:1};else if(h.style.opacity!==1)y.style={opacity:1}}c.add(h,y,l,0,u)})},this),this._state="animating",c.finished(xt(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this,n=this.seriesModel,a=this._controller;if(!a)a=this._controller=new Va(t.getZr()),a.on("pan",xt(this._onPan,this)),a.on("zoom",xt(this._onZoom,this));a.enable(n.get("roam"),{api:t,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(o,s,l){var u=i._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var t=this._controller;if(t)t.dispose(),t=null},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>fj||Math.abs(t.dy)>fj)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.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}})}},e.prototype._onZoom=function(t){var{originX:i,originY:n,scale:a}=t,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new Gt(l.x,l.y,l.width,l.height),c=o.layoutInfo,f=_R(c,l),p=f*a;p=xR(p,o);var h=p/f;i-=c.x,n-=c.y;var v=Qe();on(v,v,[-i,-n]),wd(v,v,[h,h]),on(v,v,[i,n]),u.applyTransform(v),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(n){if(i._state!=="ready")return;var a=i.seriesModel.get("nodeClick",!0);if(!a)return;var o=i.findTarget(n.offsetX,n.offsetY);if(!o)return;var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(a==="zoomToNode")i._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&th(u,c)}},this)},e.prototype._renderBreadcrumb=function(t,i,n){var a=this;if(!n){if(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),!n)n={node:t.getData().tree.root}}(this._breadcrumb||(this._breadcrumb=new tj(this.group))).render(t,i,n.node,function(o){if(a._state!=="animating")om(t.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o})})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=L0(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var n,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Ce);vj=o1t});function c1t(r){var e=r.pieceList;r.hasSpecialVisual=!1,P(e,function(t,i){if(t.originIndex=i,t.visual!=null)r.hasSpecialVisual=!0})}function f1t(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(P0(e,function(o,s){t[o]=s}),!it(i)){var n=[];if(Pt(i))P0(i,function(o,s){var l=t[s];n[l!=null?l:bT]=o});else n[bT]=i;i=yj(r,n)}for(var a=e.length-1;a>=0;a--)if(i[a]==null)delete t[e[a]],e.pop()}function wR(r,e){var t=r.visual,i=[];if(Pt(t))P0(t,function(a){i.push(a)});else if(t!=null)i.push(t);var n={color:1,symbol:1};if(!e&&i.length===1&&!n.hasOwnProperty(r.type))i[1]=i[0];yj(r,i)}function xT(r){return{applyVisual:function(e,t,i){var n=this.mapValueToVisual(e);i("color",r(t("color"),n))},_normalizedToVisual:TR([0,1])}}function gj(r){var e=this.option.visual;return e[Math.round(Ne(r,[0,1],[0,e.length-1],!0))]||{}}function D0(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function I0(r){var e=this.option.visual;return e[this.option.loop&&r!==bT?r%e.length:r]}function Uh(){return this.option.visual[0]}function TR(r){return{linear:function(e){return Ne(e,r,this.option.visual,!0)},category:I0,piecewise:function(e,t){var i=AR.call(this,t);if(i==null)i=Ne(e,r,this.option.visual,!0);return i},fixed:Uh}}function AR(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=CR.findPieceIndex(r,t),n=t[i];if(n&&n.visual)return n.visual[this.type]}}function yj(r,e){if(r.visual=e,r.type==="color")r.parsedVisual=nt(e,function(t){var i=Oi(t);return i||[0,0,0,1]});return e}function ST(r,e,t){return r?e<=t:e<t}var P0,u1t,bT=-1,CR,p1t,oi;var If=k(()=>{Z();sn();te();P0=P,u1t=Pt,CR=function(){function r(e){var{mappingMethod:t,type:i}=e,n=this.option=It(e);this.type=i,this.mappingMethod=t,this._normalizeData=p1t[t];var a=r.visualHandlers[i];if(this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise")wR(n),c1t(n);else if(t==="category")n.categories?f1t(n):wR(n,!0);else xe(t!=="linear"||n.dataExtent),wR(n)}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return xt(this._normalizeData,this)},r.listVisualTypes=function(){return le(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){if(Pt(e))P(e,t,i);else t.call(i,e)},r.mapVisual=function(e,t,i){var n,a=it(e)?[]:Pt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);n?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},i;return e&&P0(r.visualHandlers,function(n,a){if(e.hasOwnProperty(a))t[a]=e[a],i=!0}),i?t:null},r.prepareVisualTypes=function(e){if(it(e))e=e.slice();else if(u1t(e)){var t=[];P0(e,function(i,n){t.push(n)}),e=t}else return[];return e.sort(function(i,n){return n==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){var n,a=1/0;for(var o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||ht(l)&&l===e+"")return o;i&&p(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],{interval:c,close:f}=u;if(c){if(c[0]===-1/0){if(ST(f[1],e,c[1]))return o}else if(c[1]===1/0){if(ST(f[0],c[0],e))return o}else if(ST(f[0],c[0],e)&&ST(f[1],e,c[1]))return o;i&&p(c[0],o),i&&p(c[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:n;function p(h,v){var g=Math.abs(h-e);if(g<a)a=g,n=v}},r.visualHandlers={color:{applyVisual:D0("color"),getColorMapper:function(){var e=this.option;return xt(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),I0.call(this,t)}:function(t,i,n){var a=!!n;return!i&&(t=this._normalizeData(t)),n=kx(t,e.parsedVisual,n),a?n:ya(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ya(kx(e,this.option.parsedVisual),"rgba")},category:I0,piecewise:function(e,t){var i=AR.call(this,t);if(i==null)i=ya(kx(e,this.option.parsedVisual),"rgba");return i},fixed:Uh}},colorHue:xT(function(e,t){return Oo(e,t)}),colorSaturation:xT(function(e,t){return Oo(e,null,t)}),colorLightness:xT(function(e,t){return Oo(e,null,null,t)}),colorAlpha:xT(function(e,t){return dp(e,t)}),decal:{applyVisual:D0("decal"),_normalizedToVisual:{linear:null,category:I0,piecewise:null,fixed:null}},opacity:{applyVisual:D0("opacity"),_normalizedToVisual:TR([0,1])},liftZ:{applyVisual:D0("liftZ"),_normalizedToVisual:{linear:Uh,category:Uh,piecewise:Uh,fixed:Uh}},symbol:{applyVisual:function(e,t,i){var n=this.mapValueToVisual(e);i("symbol",n)},_normalizedToVisual:{linear:gj,category:I0,piecewise:function(e,t){var i=AR.call(this,t);if(i==null)i=gj.call(this,e);return i},fixed:Uh}},symbolSize:{applyVisual:D0("symbolSize"),_normalizedToVisual:TR([0,1])}},r}();p1t={linear:function(r){return Ne(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=CR.findPieceIndex(r,e,!0);if(t!=null)return Ne(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?bT:e},fixed:ar};oi=CR});function bj(r,e,t,i){var n=r.getModel(),a=r.getLayout(),o=r.hostTree.data;if(!a||a.invisible||!a.isInView)return;var s=n.getModel(h1t),l=d1t(s,e,i),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),p;if(f!=null)p=_j(l),c=v1t(f,p);u.stroke=c;var h=r.viewChildren;if(!h||!h.length)p=_j(l),u.fill=p;else{var v=m1t(r,n,a,s,l,h);P(h,function(g,y){if(g.depth>=t.length||g===t[g.depth]){var m=g1t(n,l,g,y,v,i);bj(g,m,t,i)}})}}function d1t(r,e,t){var i=et({},e),n=t.designatedVisualItemStyle;return P(["color","colorAlpha","colorSaturation"],function(a){n[a]=e[a];var o=r.get(a);n[a]=null,o!=null&&(i[a]=o)}),i}function _j(r){var e=ER(r,"color");if(e){var t=ER(r,"colorAlpha"),i=ER(r,"colorSaturation");if(i)e=Oo(e,null,null,i);if(t)e=dp(e,t);return e}}function v1t(r,e){return e!=null?Oo(e,null,null,r):null}function ER(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function m1t(r,e,t,i,n,a){if(!a||!a.length)return;var o=MR(e,"color")||n.color!=null&&n.color!=="none"&&(MR(e,"colorAlpha")||MR(e,"colorSaturation"));if(!o)return;var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};if(f.type==="color"&&(c==="index"||c==="id"))f.mappingMethod="category",f.loop=!0;else f.mappingMethod="linear";var p=new oi(f);return xj(p).drColorMappingBy=c,p}function MR(r,e){var t=r.get(e);return it(t)&&t.length?{name:e,range:t}:null}function g1t(r,e,t,i,n,a){var o=et({},e);if(n){var s=n.type,l=s==="color"&&xj(n).drColorMappingBy,u=l==="index"?i:l==="id"?a.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var h1t="itemStyle",xj,Sj;var wj=k(()=>{If();Z();sn();yt();xj=Ft(),Sj={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;if(t.isRemoved())return;bj(t,{},r.getViewRoot().getAncestors(),r)}}});function LR(r){r.registerSeriesModel(J9),r.registerChartView(vj),r.registerVisual(Sj),r.registerLayout(oj),X9(r)}var Tj=k(()=>{K9();$9();mj();wj();SR()});function lm(r){return"_EC_"+r}function Cj(r,e){return{getValue:function(t){var i=this[r][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}var y1t,Vh,Aj,Ej;var Mj=k(()=>{Z();y1t=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(i[lm(e)])return;var n=new Vh(e,t);return n.hostGraph=this,this.nodes.push(n),i[lm(e)]=n,n},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[lm(e)]},r.prototype.addEdge=function(e,t,i){var n=this._nodesMap,a=this._edgesMap;if(ue(e))e=this.nodes[e];if(ue(t))t=this.nodes[t];if(!(e instanceof Vh))e=n[lm(e)];if(!(t instanceof Vh))t=n[lm(t)];if(!e||!t)return;var o=e.id+"-"+t.id,s=new Aj(e,t,i);if(s.hostGraph=this,this._directed)e.outEdges.push(s),t.inEdges.push(s);if(e.edges.push(s),e!==t)t.edges.push(s);return this.edges.push(s),a[o]=s,s},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){if(e instanceof Vh)e=e.id;if(t instanceof Vh)t=t.id;var i=this._edgesMap;if(this._directed)return i[e+"-"+t];else return i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){var i=this.nodes,n=i.length;for(var a=0;a<n;a++)if(i[a].dataIndex>=0)e.call(t,i[a],a)},r.prototype.eachEdge=function(e,t){var i=this.edges,n=i.length;for(var a=0;a<n;a++)if(i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0)e.call(t,i[a],a)},r.prototype.breadthFirstTraverse=function(e,t,i,n){if(!(t instanceof Vh))t=this._nodesMap[lm(t)];if(!t)return;var a=i==="out"?"outEdges":i==="in"?"inEdges":"edges";for(var o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(e.call(n,t,null))return;var s=[t];while(s.length){var l=s.shift(),u=l[a];for(var o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(n,f,l))return;s.push(f),f.__visited=!0}}}},r.prototype.update=function(){var e=this.data,t=this.edgeData,i=this.nodes,n=this.edges;for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)i[e.getRawIndex(a)].dataIndex=a;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a},r.prototype.clone=function(){var e=new r(this._directed),t=this.nodes,i=this.edges;for(var n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<i.length;n++){var a=i[n];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},r}(),Vh=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(this.dataIndex<0)return;var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)},r.prototype.getAdjacentDataIndices=function(){var e={edge:[],node:[]};for(var t=0;t<this.edges.length;t++){var i=this.edges[t];if(i.dataIndex<0)continue;e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex)}return e},r.prototype.getTrajectoryDataIndices=function(){var e=gt(),t=gt();for(var i=0,n=this.edges.length;i<n;i++){var a=this.edges[i];if(a.dataIndex<0)continue;e.set(a.dataIndex,!0);var o=[a.node1],s=[a.node2],l=0;while(l<o.length){var u=o[l];l++,t.set(u.dataIndex,!0);var c=u.inEdges;for(var f=0,p=c.length,h=void 0,v=void 0;f<p;f++)if(h=c[f],v=h.dataIndex,v>=0&&!e.hasKey(v))e.set(v,!0),o.push(h.node1)}l=0;while(l<s.length){var g=s[l];l++,t.set(g.dataIndex,!0);var y=g.outEdges;for(var f=0,m=y.length,d=void 0,x=void 0;f<m;f++)if(d=y[f],x=d.dataIndex,x>=0&&!e.hasKey(x))e.set(x,!0),s.push(d.node2)}}return{edge:e.keys(),node:t.keys()}},r}(),Aj=function(){function r(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i==null?-1:i}return r.prototype.getModel=function(e){if(this.dataIndex<0)return;var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=gt(),t=gt();e.set(this.dataIndex,!0);var i=[this.node1],n=[this.node2],a=0;while(a<i.length){var o=i[a];a++,t.set(o.dataIndex,!0);var s=o.inEdges;for(var l=0,u=s.length,c=void 0,f=void 0;l<u;l++)if(c=o.inEdges[l],f=c.dataIndex,f>=0&&!e.hasKey(f))e.set(f,!0),i.push(c.node1)}a=0;while(a<n.length){var p=n[a];a++,t.set(p.dataIndex,!0);var h=p.outEdges;for(var l=0,u=h.length,v=void 0,g=void 0;l<u;l++)if(v=p.outEdges[l],g=v.dataIndex,g>=0&&!e.hasKey(g))e.set(g,!0),n.push(v.node2)}return{edge:e.keys(),node:t.keys()}},r}();dr(Vh,Cj("hostGraph","data"));dr(Aj,Cj("hostGraph","edgeData"));Ej=y1t});function Fh(r,e,t,i,n){var a=new Ej(i);for(var o=0;o<r.length;o++)a.addNode(Gr(r[o].id,r[o].name,o),o);var s=[],l=[],u=0;for(var o=0;o<e.length;o++){var c=e[o],{source:f,target:p}=c;if(a.addEdge(f,p,u))l.push(c),s.push(Gr(Rr(c.id,null),f+" > "+p)),u++}var h=t.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar"||h==="matrix")v=$i(r,t);else{var g=ku.get(h),y=g?g.dimensions||[]:[];if(Xt(y,"value")<0)y.concat(["value"]);var m=Fs(r,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;v=new Kr(m,t),v.initData(r)}var d=new Kr(["value"],t);return d.initData(l,s),n&&n(v,d),mT({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:d},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var wT=k(()=>{Z();ts();Mj();cR();_v();Pa();Nl();yt()});function Ij(r){if(!TT(r))return;r.__curvenessList=[],r.__edgeMap={},Lj(r)}function Pj(r,e,t,i){if(!TT(t))return;var n=R0(r,e,t),a=t.__edgeMap,o=a[Dj(n)];if(a[n]&&!o)a[n].isForward=!0;else if(o&&a[n])o.isForward=!0,a[n].isForward=!1;a[n]=a[n]||[],a[n].push(i)}function um(r,e,t,i){var n=TT(e),a=it(n);if(!n)return null;var o=_1t(r,e);if(!o)return null;var s=-1;for(var l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=x1t(r,e);Lj(e,u),r.lineStyle=r.lineStyle||{};var c=R0(r.node1,r.node2,e),f=e.__curvenessList,p=a?0:u%2?0:1;if(!o.isForward){var h=Dj(c),v=IR(h,e),g=f[s+v+p];if(i)if(a)if(n&&n[0]===0)return(v+p)%2?g:-g;else return((v%2?0:1)+p)%2?g:-g;else return(v+p)%2?g:-g;else return f[s+v+p]}else return f[p+s]}var DR="-->",TT=function(r){return r.get("autoCurveness")||null},Lj=function(r,e){var t=TT(r),i=20,n=[];if(ue(t))i=t;else if(it(t)){r.__curvenessList=t;return}if(e>i)i=e;var a=i%2?i+2:i+3;n=[];for(var o=0;o<a;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},R0=function(r,e,t){var i=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,i,n].join(DR)},Dj=function(r){var e=r.split(DR);return[e[0],e[2],e[1]].join(DR)},_1t=function(r,e){var t=R0(r.node1,r.node2,e);return e.__edgeMap[t]},x1t=function(r,e){var t=IR(R0(r.node1,r.node2,e),e),i=IR(R0(r.node2,r.node1,e),e);return t+i},IR=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};var O0=k(()=>{Z()});var hi="graph",S1t,Rj;var ic=k(()=>{dt();ts();Z();yt();ti();wT();Lh();Zr();Rn();jL();O0();we();zn();S1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function n(){return i._categoriesData}this.legendVisualProvider=new as(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),io(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var n=t.edges||t.links||[],a=t.data||t.nodes||[],o=this;if(a&&n){Ij(this);var s=Fh(a,n,this,!0,l);return P(s.edges,function(u){Pj(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,y=v.getShallow("category"),m=g[y];if(m)m.parentModel=v.parentModel,v.parentModel=m;return v});var f=ye.prototype.getModel;function p(v,g){var y=f.call(this,v,g);return y.resolveParentPath=h,y}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=p,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();if(v[0]==="label")g[0]="edgeLabel";else if(v[1]==="label")g[1]="edgeLabel";return g}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,n){if(n==="edge"){var a=this.getData(),o=this.getDataParams(t,n),s=a.graph.getEdgeByIndex(t),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),mr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=Qb({series:this,dataIndex:t,multipleSeries:i});return f},e.prototype._updateCategoriesData=function(){var t=nt(this.option.categories||[],function(n){return n.value!=null?n:et({value:0},n)}),i=new Kr(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(n){return i.getItemModel(n)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return nT(t)&&t},e.type="series."+hi,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:0.1,friction:0.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:0.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:Q.color.neutral50,width:1,opacity:0.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},e}(Pe),Rj=S1t});function AT(r){if(!(r instanceof Array))r=[r,r];return r}function b1t(r){r.eachSeriesByType(hi,function(e){var t=e.getGraph(),i=e.getEdgeData(),n=AT(e.get("edgeSymbol")),a=AT(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",n&&n[0]),i.setVisual("toSymbol",n&&n[1]),i.setVisual("fromSymbolSize",a&&a[0]),i.setVisual("toSymbolSize",a&&a[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),l=t.getEdgeByIndex(o),u=AT(s.getShallow("symbol",!0)),c=AT(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),p=i.ensureUniqueItemVisual(o,"style");switch(et(p,f),p.stroke){case"source":{var h=l.node1.getVisual("style");p.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");p.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var Oj;var kj=k(()=>{yt();ic();Z();Oj=Ke(hi,b1t)});function CT(r){var e=r.coordinateSystem;if(e&&e.type!=="view")return;var t=r.getGraph();t.eachNode(function(i){var n=i.getModel();i.setLayout([+n.get("x"),+n.get("y")])}),k0(t,r)}function k0(r,e){r.eachEdge(function(t,i){var n=Hr(t.getModel().get(["lineStyle","curveness"]),-um(t,e,i,!0),0),a=ha(t.node1.getLayout()),o=ha(t.node2.getLayout()),s=[a,o];if(+n)s.push([(a[0]+o[0])/2-(a[1]-o[1])*n,(a[1]+o[1])/2-(o[0]-a[0])*n]);t.setLayout(s)})}var ET=k(()=>{br();Z();O0()});function w1t(r,e){r.eachSeriesByType(hi,function(t){var i=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var a=t.getData(),o=[];P(n.dimensions,function(p){o=o.concat(a.mapDimensionsAll(p))});for(var s=0;s<a.count();s++){var l=[],u=!1;for(var c=0;c<o.length;c++){var f=a.get(o[c],s);if(!isNaN(f))u=!0;l.push(f)}if(u)a.setItemLayout(s,n.dataToPoint(l));else a.setItemLayout(s,[NaN,NaN])}k0(a.graph,t)}else if(!i||i==="none")CT(t)})}var Nj;var zj=k(()=>{Z();ET();ic();yt();Nj=Ke(hi,w1t)});function Gh(r){var e=r.coordinateSystem;return nT(e)?uT(e,r):1}function Hh(r){var e=r.getVisual("symbolSize");if(e instanceof Array)e=(e[0]+e[1])/2;return+e}var MT=k(()=>{zn()});function cm(r,e,t,i){var n=r.coordinateSystem;if(n&&n.type!=="view")return;var a=n.getBoundingRect(),o=r.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!f)return;if(t){var p=n.pointToData(i),h=p[0],v=p[1],g=[h-l,v-u];Lo(g,g),_d(g,g,c),t.setLayout([l+g[0],u+g[1]],!0);var y=r.get(["circular","rotateLabel"]);RR(t,y,l,u)}T1t[e](r,s,o,c,l,u,f),s.eachEdge(function(m,d){var x=Hr(m.getModel().get(["lineStyle","curveness"]),um(m,r,d),0),S=ha(m.node1.getLayout()),w=ha(m.node2.getLayout()),T,A=(S[0]+w[0])/2,M=(S[1]+w[1])/2;if(+x)x*=3,T=[l*x+A*(1-x),u*x+M*(1-x)];m.setLayout([S,w,T])})}function RR(r,e,t,i){var n=r.getGraphicEl();if(!n)return;var a=r.getModel(),o=a.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);if(u<0)u=Math.PI*2+u;var c=l[0]<t;if(c)u=u-Math.PI;var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var p=s.ensureState("emphasis");et(p.textConfig||(p.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}var Bj,PR,T1t;var LT=k(()=>{br();MT();Z();O0();Bj=Math.PI,PR=[];T1t={value:function(r,e,t,i,n,a,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),p=u*(l?f:1)/2;s+=p,c.setLayout([i*Math.cos(s)+n,i*Math.sin(s)+a]),s+=p})},symbolSize:function(r,e,t,i,n,a,o){var s=0;PR.length=o;var l=Gh(r);e.eachNode(function(f){var p=Hh(f);isNaN(p)&&(p=2),p<0&&(p=0),p*=l;var h=Math.asin(p/2/i);isNaN(h)&&(h=Bj/2),PR[f.dataIndex]=h,s+=h*2});var u=(2*Bj-s)/o/2,c=0;e.eachNode(function(f){var p=u+PR[f.dataIndex];c+=p,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([i*Math.cos(c)+n,i*Math.sin(c)+a]),c+=p})}}});function A1t(r){r.eachSeriesByType("graph",function(e){if(e.get("layout")==="circular")cm(e,"symbolSize")})}var Uj;var Vj=k(()=>{LT();ic();yt();Uj=Ke(hi,A1t)});function Fj(r,e,t){var i=r,n=e,a=t.rect,{width:o,height:s}=a,l=[a.x+o/2,a.y+s/2],u=t.gravity==null?0.1:t.gravity;for(var c=0;c<i.length;c++){var f=i[c];if(!f.p)f.p=cl(o*(Math.random()-0.5)+l[0],s*(Math.random()-0.5)+l[1]);f.pp=ha(f.p),f.edges=null}var p=t.friction==null?0.6:t.friction,h=p,v,g;return{warmUp:function(){h=p*0.8},setFixed:function(y){i[y].fixed=!0},setUnfixed:function(y){i[y].fixed=!1},beforeStep:function(y){v=y},afterStep:function(y){g=y},step:function(y){v&&v(i,n);var m=[],d=i.length;for(var x=0;x<n.length;x++){var S=n[x];if(S.ignoreForceLayout)continue;var{n1:w,n2:T}=S;Ss(m,T.p,w.p);var A=vx(m)-S.d,M=T.w/(w.w+T.w);if(isNaN(M))M=0;Lo(m,m),!w.fixed&&fm(w.p,w.p,m,M*A*h),!T.fixed&&fm(T.p,T.p,m,-(1-M)*A*h)}for(var x=0;x<d;x++){var D=i[x];if(!D.fixed)Ss(m,l,D.p),fm(D.p,D.p,m,u*h)}for(var x=0;x<d;x++){var w=i[x];for(var L=x+1;L<d;L++){var T=i[L];Ss(m,T.p,w.p);var A=vx(m);if(A===0)Mo(m,Math.random()-0.5,Math.random()-0.5),A=1;var I=(w.rep+T.rep)/A/A;!w.fixed&&fm(w.pp,w.pp,m,I),!T.fixed&&fm(T.pp,T.pp,m,-I)}}var E=[];for(var x=0;x<d;x++){var D=i[x];if(!D.fixed)Ss(E,D.p,D.pp),fm(D.p,D.p,E,h),Di(D.pp,D.p)}h=h*0.992;var R=h<0.01;g&&g(i,n,R),y&&y(R)}}}var fm;var Gj=k(()=>{br();fm=pg});function C1t(r){r.eachSeriesByType(hi,function(e){var t=e.coordinateSystem;if(t&&t.type!=="view")return;if(e.get("layout")==="force"){var i=e.preservedPoints||{},n=e.getGraph(),{data:a,edgeData:o}=n,s=e.getModel("force"),l=s.get("initLayout");if(e.preservedPoints)a.each(function(x){var S=a.getId(x);a.setItemLayout(x,i[S]||[NaN,NaN])});else if(!l||l==="none")CT(e);else if(l==="circular")cm(e,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),p=s.get("edgeLength"),h=it(f)?f:[f,f],v=it(p)?p:[p,p];v=[v[1],v[0]];var g=a.mapArray("value",function(x,S){var w=a.getItemLayout(S),T=Ne(x,u,h);if(isNaN(T))T=(h[0]+h[1])/2;return{w:T,rep:T,fixed:a.getItemModel(S).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),y=o.mapArray("value",function(x,S){var w=n.getEdgeByIndex(S),T=Ne(x,c,v);if(isNaN(T))T=(v[0]+v[1])/2;var A=w.getModel(),M=Hr(w.getModel().get(["lineStyle","curveness"]),-um(w,e,S,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:T,curveness:M,ignoreForceLayout:A.get("ignoreForceLayout")}}),m=t.getBoundingRect(),d=Fj(g,y,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});d.beforeStep(function(x,S){for(var w=0,T=x.length;w<T;w++)if(x[w].fixed)Di(x[w].p,n.getNodeByIndex(w).getLayout())}),d.afterStep(function(x,S,w){for(var T=0,A=x.length;T<A;T++){if(!x[T].fixed)n.getNodeByIndex(T).setLayout(x[T].p);i[a.getId(T)]=x[T].p}for(var T=0,A=S.length;T<A;T++){var M=S[T],D=n.getEdgeByIndex(T),L=M.n1.p,I=M.n2.p,E=D.getLayout();if(E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Di(E[0],L),Di(E[1],I),+M.curveness)E[2]=[(L[0]+I[0])/2-(L[1]-I[1])*M.curveness,(L[1]+I[1])/2-(I[0]-L[0])*M.curveness];D.setLayout(E)}}),e.forceLayout=d,e.preservedPoints=i,d.step()}else e.forceLayout=null})}var Hj;var Wj=k(()=>{Gj();ET();LT();te();br();Z();ic();O0();yt();Hj=Ke(hi,C1t)});function E1t(r,e,t){var i=Je(r,e),n=et(r.getBoxLayoutParams(),{aspect:t}),a=Be(n,i.refContainer);return Mb(r,a,t)}function OR(r,e){var t=[];return r.eachSeriesByType("graph",function(i){Rl({targetModel:i,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var a=i.getData(),o=a.mapArray(function(v){var g=a.getItemModel(v);return[+g.get("x"),+g.get("y")]}),s=[],l=[];if(Dp(o,s,l),l[0]-s[0]===0)l[0]+=1,s[0]-=1;if(l[1]-s[1]===0)l[1]+=1,s[1]-=1;var u=(l[0]-s[0])/(l[1]-s[1]),c=E1t(i,e,u);if(isNaN(u))s=[c.x,c.y],l=[c.x+c.width,c.y+c.height];var f=l[0]-s[0],p=l[1]-s[1],h=em(i,e,s[0],s[1],f,p,c);return t.push(h),h}}),t}var Yj=k(()=>{ur();Fg();Z();Pa();tc()});function NR(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Zj,kR,jj,y$t,M1t,DT;var zR=k(()=>{dt();jt();br();we();Zj=xr.prototype,kR=Hp.prototype,jj=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),y$t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(jj);M1t=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new jj},e.prototype.buildPath=function(t,i){if(NR(i))Zj.buildPath.call(this,t,i);else kR.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){if(NR(this.shape))return Zj.pointAt.call(this,t);else return kR.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,n=NR(i)?[i.x2-i.x1,i.y2-i.y1]:kR.tangentAt.call(this,t);return Lo(n,n)},e}($t),DT=M1t});function Xj(r){return"_"+r+"Type"}function Kj(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return i;var n=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Us(n),u=uo(o||0,l);return i+l+u+(a||"")+(s||"")}function qj(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return;var n=e.getItemVisual(t,r+"Size"),a=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Us(n),u=uo(o||0,l),c=ir(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=r,c}function L1t(r){var e=new DT({name:"line",subPixelOptimize:!0});return UR(e.shape,r),e}function UR(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];if(t)r.cpx1=t[0],r.cpy1=t[1];else r.cpx1=NaN,r.cpy1=NaN}var BR,D1t,pm;var IT=k(()=>{dt();Z();br();qi();zR();jt();tr();rr();te();we();BR=["fromSymbol","toSymbol"];D1t=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;return a._createLine(t,i,n),a}return e.prototype._createLine=function(t,i,n){var a=t.hostModel,o=t.getItemLayout(i),s=t.getItemVisual(i,"z2"),l=L1t(o);l.shape.percent=0,ze(l,{z2:St(s,0),shape:{percent:1}},a,i),this.add(l),P(BR,function(u){var c=qj(u,t,i);this.add(c),this[Xj(u)]=Kj(u,t,i)},this),this._updateCommonStl(t,i,n)},e.prototype.updateData=function(t,i,n){var a=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};UR(l.shape,s),ge(o,l,a,i),P(BR,function(u){var c=Kj(u,t,i),f=Xj(u);if(this[f]!==c){this.remove(this.childOfName(u));var p=qj(u,t,i);this.add(p)}this[f]=c},this),this._updateCommonStl(t,i,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,n){var a=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,c=n&&n.labelStatesModels,f=n&&n.emphasisDisabled,p=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var v=t.getItemModel(i),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),p=g.get("focus"),h=g.get("blurScope"),c=er(v)}var y=t.getItemVisual(i,"style"),m=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,P(BR,function(T){var A=this.childOfName(T);if(A){A.setColor(m),A.style.opacity=y.opacity;for(var M=0;M<Ni.length;M++){var D=Ni[M],L=o.getState(D);if(L){var I=L.style||{},E=A.ensureState(D),R=E.style||(E.style={});if(I.stroke!=null)R[A.__isEmptyBrush?"stroke":"fill"]=I.stroke;if(I.opacity!=null)R.opacity=I.opacity}}A.markRedraw()}},this);var d=a.getRawValue(i);or(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(T,A){return a.getFormattedLabel(T,A,t.dataType)}},inheritColor:m||Q.color.neutral99,defaultOpacity:y.opacity,defaultText:(d==null?t.getName(i):isFinite(d)?Me(d,10):d)+""});var x=this.getTextContent();if(x){var S=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=S.get("position")||"middle";var w=S.get("distance");if(!it(w))w=[w,w];x.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Ie(this,p,h,f)},e.prototype.highlight=function(){An(this)},e.prototype.downplay=function(){Cn(this)},e.prototype.updateLayout=function(t,i){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");UR(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),a=t.getTextContent();if(!i&&!n&&(!a||a.ignore))return;var o=1,s=this.parent;while(s){if(s.scaleX)o/=s.scaleX;s=s.parent}var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),p=Ss([],f,c);Lo(p,p);function h(L,I){var E=L.__specifiedRotation;if(E==null){var R=l.tangentAt(I);L.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else L.attr("rotation",E)}if(i)i.setPosition(c),h(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw();if(n)n.setPosition(f),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw();if(a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,g=void 0,y=a.__labelDistance,m=y[0]*o,d=y[1]*o,x=u/2,S=l.tangentAt(x),w=[S[1],-S[0]],T=l.pointAt(x);if(w[1]>0)w[0]=-w[0],w[1]=-w[1];var A=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var M=-Math.atan2(S[1],S[0]);if(f[0]<c[0])M=Math.PI+M;a.rotation=M}var D=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-d,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=d,g="top";break;default:D=0,g="middle"}switch(a.__position){case"end":a.x=p[0]*m+f[0],a.y=p[1]*d+f[1],v=p[0]>0.8?"left":p[0]<-0.8?"right":"center",g=p[1]>0.8?"top":p[1]<-0.8?"bottom":"middle";break;case"start":a.x=-p[0]*m+c[0],a.y=-p[1]*d+c[1],v=p[0]>0.8?"right":p[0]<-0.8?"left":"center",g=p[1]>0.8?"bottom":p[1]<-0.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*A+c[0],a.y=c[1]+D,v=S[0]<0?"right":"left",a.originX=-m*A,a.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=T[0],a.y=T[1]+D,v="center",a.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*A+f[0],a.y=f[1]+D,v=S[0]>=0?"right":"left",a.originX=m*A,a.originY=-D;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},e}(Lt),pm=D1t});function P1t(r){return r.animators&&r.animators.length>0}function Jj(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:er(e)}}function $j(r){return isNaN(r[0])||isNaN(r[1])}function VR(r){return r&&!$j(r[0])&&!$j(r[1])}var I1t,hm;var PT=k(()=>{jt();IT();rr();I1t=function(){function r(e){this.group=new Lt,this._LineCtor=e||pm}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,{group:n,_lineData:a}=i;if(i._lineData=e,!a)n.removeAll();var o=Jj(e);e.diff(a).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(a,e,l,s,o)}).remove(function(s){n.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;if(!e)return;e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Jj(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[];function n(l){if(!l.isGroup&&!P1t(l))l.incremental=i,l.ensureState("emphasis").hoverLayer=Rs}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(VR(o)){var s=new this._LineCtor(t,a,this._seriesScope);s.traverse(n),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,i){var n=e.getItemLayout(t);if(!VR(n))return;var a=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,a),this.group.add(a)},r.prototype._doUpdate=function(e,t,i,n,a){var o=e.getItemGraphicEl(i);if(!VR(t.getItemLayout(n))){this.group.remove(o);return}if(!o)o=new this._LineCtor(t,n,a);else o.updateData(t,n,a);t.setItemGraphicEl(n,o),this.group.add(o)},r}();hm=I1t});function tX(r,e,t){var i=r[0],n=r[1],a=r[2],o=1/0,s,l=t*t,u=0.1;for(var c=0.1;c<=0.9;c+=0.1){FR[0]=dm(i[0],n[0],a[0],c),FR[1]=dm(i[1],n[1],a[1],c);var f=Qj(WR(FR,e)-l);if(f<o)o=f,s=c}for(var p=0;p<32;p++){var h=s+u;GR[0]=dm(i[0],n[0],a[0],s),GR[1]=dm(i[1],n[1],a[1],s),HR[0]=dm(i[0],n[0],a[0],h),HR[1]=dm(i[1],n[1],a[1],h);var f=WR(GR,e)-l;if(Qj(f)<0.01)break;var v=WR(HR,e)-l;if(u/=2,f<0)if(v>=0)s=s+u;else s=s-u;else if(v>=0)s=s-u;else s=s+u}return s}function N0(r,e){var t=[],i=Mc,n=[[],[],[]],a=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");if(!u.__original){if(u.__original=[ha(u[0]),ha(u[1])],u[2])u.__original.push(ha(u[2]))}var p=u.__original;if(u[2]!=null){if(Di(n[0],p[0]),Di(n[1],p[2]),Di(n[2],p[1]),c&&c!=="none"){var h=Hh(s.node1),v=tX(n,p[0],h*e);i(n[0][0],n[1][0],n[2][0],v,t),n[0][0]=t[3],n[1][0]=t[4],i(n[0][1],n[1][1],n[2][1],v,t),n[0][1]=t[3],n[1][1]=t[4]}if(f&&f!=="none"){var h=Hh(s.node2),v=tX(n,p[1],h*e);i(n[0][0],n[1][0],n[2][0],v,t),n[1][0]=t[1],n[2][0]=t[2],i(n[0][1],n[1][1],n[2][1],v,t),n[1][1]=t[1],n[2][1]=t[2]}Di(u[0],n[0]),Di(u[1],n[2]),Di(u[2],n[1])}else{if(Di(a[0],p[0]),Di(a[1],p[1]),Ss(o,a[1],a[0]),Lo(o,o),c&&c!=="none"){var h=Hh(s.node1);pg(a[0],a[0],o,h*e)}if(f&&f!=="none"){var h=Hh(s.node2);pg(a[1],a[1],o,-h*e)}Di(u[0],a[0]),Di(u[1],a[1])}})}var FR,GR,HR,dm,WR,Qj;var eX=k(()=>{ga();br();MT();FR=[],GR=[],HR=[],dm=ci,WR=gu,Qj=Math.abs});function iX(r){if(r)return rX(r).bridge}function YR(r,e){if(r)rX(r).bridge=e}var rX;var ZR=k(()=>{yt();rX=Ft()});var R1t,nX;var aX=k(()=>{dt();Fv();PT();bf();tc();jt();eX();MT();Xr();ic();zn();lr();ET();LT();Z();zR();ZR();R1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=hi,t}return e.prototype.init=function(t,i){var n=new Xl,a=new hm,o=this.group,s=new Lt;this._controller=new Va(i.getZr()),s.add(n.group),s.add(a.group),o.add(s),this._symbolDraw=n,this._lineDraw=a,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,i,n){var a=this,o=Qv(t),s=!1;this._model=t,this._api=n,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();if(u)u.bridge.reset(n);var c=this._symbolDraw,f=this._lineDraw;if(o)ss(l,go,o,this._firstRender?null:t);N0(t.getGraph(),Gh(t));var p=t.getData();c.updateData(p);var h=t.getEdgeData();if(f.updateData(h),this._updateNodeAndLinkScale(),o)Mf(t,n,this._controller,function(S,w,T){return t.coordinateSystem.containPoint([w,T])},null);clearTimeout(this._layoutTimeout);var v=t.forceLayout,g=t.get(["force","layoutAnimation"]);if(v)s=!0,this._startForceLayoutIteration(v,n,g);var y=t.get("layout");p.graph.eachNode(function(S){var w=S.dataIndex,T=S.getGraphicEl(),A=S.getModel();if(!T)return;T.off("drag").off("dragend");var M=A.get("draggable");if(M)T.on("drag",function(L){switch(y){case"force":v.warmUp(),!a._layouting&&a._startForceLayoutIteration(v,n,g),v.setFixed(w),p.setItemLayout(w,[T.x,T.y]);break;case"circular":p.setItemLayout(w,[T.x,T.y]),S.setLayout({fixed:!0},!0),cm(t,"symbolSize",S,[L.offsetX,L.offsetY]),a.updateLayout(t);break;case"none":default:p.setItemLayout(w,[T.x,T.y]),k0(t.getGraph(),t),a.updateLayout(t);break}}).on("dragend",function(){if(v)v.setUnfixed(w)});T.setDraggable(M,!!A.get("cursor"));var D=A.get(["emphasis","focus"]);if(D==="adjacency")Yt(T).focus=S.getAdjacentDataIndices()}),p.graph.eachEdge(function(S){var w=S.getGraphicEl(),T=S.getModel().get(["emphasis","focus"]);if(!w)return;if(T==="adjacency")Yt(w).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]}});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),d=p.getLayout("cx"),x=p.getLayout("cy");if(p.graph.eachNode(function(S){RR(S,m,d,x)}),this._firstRender=!1,!s)this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,i,n){var a=this,o=!1;(function s(){t.step(function(l){if(a.updateLayout(a._model),l||!o)o=!0,a._renderThumbnail(a._model,i,a._symbolDraw,a._lineDraw);(a._layouting=!l)&&(n?a._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(t,i,n){var a=Qv(i);if(!this._active||!a)return;if(ss(this._mainGroup,go,a,null),fT(t))this._updateNodeAndLinkScale(),N0(i.getGraph(),Gh(i)),this._lineDraw.updateLayout(),n.updateLabelLayout();this._updateThumbnailWindow()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),n=Gh(t);i.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(n)})},e.prototype.updateLayout=function(t){if(!this._active)return;N0(t.getGraph(),Gh(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,i=t.coordinateSystem;if(i.type!=="view")return;var n=iX(t);if(!n)return;return{bridge:n,coordSys:i}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();if(t)t.bridge.updateWindow(Oh(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,i,n,a){var o=this._getThumbnailInfo();if(!o)return;var s=new Lt,l=n.group.children(),u=a.group.children(),c=new Lt,f=new Lt;s.add(f),s.add(c);for(var p=0;p<l.length;p++){var h=l[p],v=h.children()[0],{x:g,y}=h,m=It(v.shape),d=et(m,{width:v.scaleX,height:v.scaleY,x:g-v.scaleX/2,y:y-v.scaleY/2}),x=It(v.style),S=new v.constructor({shape:d,style:x,z2:151});f.add(S)}for(var p=0;p<u.length;p++){var h=u[p],w=h.children()[0],x=It(w.style),d=It(w.shape),T=new DT({style:x,shape:d,z2:151});c.add(T)}o.bridge.renderContent({api:i,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:Oh(null,o.coordSys)})},e.type=hi,e}(Ce),nX=R1t});function O1t(r){var e=r.findComponents({mainType:"legend"});if(!e||!e.length)return;r.eachSeriesByType(hi,function(t){var i=t.getCategoriesData(),n=t.getGraph(),a=n.data,o=i.mapArray(i.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){if(ue(u))u=o[u];for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}var oX;var sX=k(()=>{ic();Z();yt();oX=Ke(hi,O1t)});function k1t(r){var e={};r.eachSeriesByType(hi,function(t){var i=t.getCategoriesData(),n=t.getData(),a={};if(i.each(function(o){var s=i.getName(o);a["ec-"+s]=o;var l=i.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();if(!u.fill)u.fill=t.getColorFromPalette(s,e);i.setItemVisual(o,"style",u);var c=["symbol","symbolSize","symbolKeepAspect"];for(var f=0;f<c.length;f++){var p=l.getShallow(c[f],!0);if(p!=null)i.setItemVisual(o,c[f],p)}}),i.count())n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){if(ht(l))l=a["ec-"+l];var u=i.getItemVisual(l,"style"),c=n.ensureUniqueItemVisual(o,"style");et(c,u);var f=["symbol","symbolSize","symbolKeepAspect"];for(var p=0;p<f.length;p++)n.setItemVisual(o,f[p],i.getItemVisual(l,f[p]))}})})}var lX;var uX=k(()=>{ic();Z();yt();lX=Ke(hi,k1t)});function jR(r){r.registerChartView(nX),r.registerSeriesModel(Rj),r.registerProcessor(oX),r.registerVisual(lX),r.registerVisual(Oj),r.registerLayout(Nj),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Uj),r.registerLayout(Hj),r.registerCoordinateSystem("graphView",{dimensions:Ef.dimensions,create:OR}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ar),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ar),tm(r,cn,hi)}var cX=k(()=>{kj();zj();Vj();Wj();Yj();zn();aX();ic();tc();Z();sX();uX();gi()});var Wh="chord",N1t,fX;var RT=k(()=>{dt();ti();Zr();wT();Rn();Lh();Z();N1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new as(xt(this.getData,this),xt(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,i){var n=t.edges||t.links||[],a=t.data||t.nodes||[];if(a&&n){var o=Fh(a,n,this,!0,s);return o.data}function s(l,u){var c=ye.prototype.getModel;function f(h,v){var g=c.call(this,h,v);return g.resolveParentPath=p,g}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=p,h.getModel=f,h});function p(h){if(h&&(h[0]==="label"||h[1]==="label")){var v=h.slice();if(h[0]==="label")v[0]="edgeLabel";else if(h[1]==="label")v[1]="edgeLabel";return v}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,n){var a=this.getDataParams(t,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),mr("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}return mr("nameValue",{name:a.name,value:a.value,noValue:a.value==null})},e.prototype.getDataParams=function(t,i){var n=r.prototype.getDataParams.call(this,t,i);if(i==="node"){var a=this.getData(),o=this.getGraph().getNodeByIndex(t);if(n.name==null)n.name=a.getName(t);if(n.value==null){var s=o.getLayout().value;n.value=s}}return n},e.type="series."+Wh,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:0.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:0.5}}},e}(Pe),fX=N1t});var z1t,XR;var pX=k(()=>{dt();Z();jt();Kv();rr();tr();lr();z1t=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;Yt(a).dataType="node",a.z2=2;var o=new me;return a.setTextContent(o),a.updateData(t,i,n,!0),a}return e.prototype.updateData=function(t,i,n,a){var o=this,s=t.graph.getNodeByIndex(i),l=t.hostModel,u=s.getModel(),c=u.getModel("emphasis"),f=t.getItemLayout(i),p=et(aa(u.getModel("itemStyle"),f,!0),f),h=this;if(isNaN(p.startAngle)){h.setShape(p);return}if(a)h.setShape(p);else ge(h,{shape:p},l,i);var v=et(aa(u.getModel("itemStyle"),f,!0),f);o.setShape(v),o.useStyle(t.getItemVisual(i,"style")),pr(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(i,h),pr(h,u,"itemStyle");var g=c.get("focus");Ie(this,g==="adjacency"?s.getAdjacentDataIndices():g,c.get("blurScope"),c.get("disabled"))},e.prototype._updateLabel=function(t,i,n){var a=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),c=i.getModel("label");a.ignore=!c.get("show");var f=er(i),p=n.getVisual("style");or(a,f,{labelFetcher:{getFormattedLabel:function(d,x,S,w,T,A){return t.getFormattedLabel(d,x,"node",w,Hr(T,f.normal&&f.normal.get("formatter"),i.get("name")),A)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:p.fill,defaultOpacity:p.opacity,defaultOutsidePosition:"startArc"});var h=c.get("position")||"outside",v=c.get("distance")||0,g;if(h==="outside")g=o.r+v;else g=(o.r+o.r0)/2;this.textConfig={inside:h!=="outside"};var y=h!=="outside"?c.get("align")||"center":l>0?"left":"right",m=h!=="outside"?c.get("verticalAlign")||"middle":u>0?"top":"bottom";a.attr({x:l*g+o.cx,y:u*g+o.cy,rotation:0,style:{align:y,verticalAlign:m}})},e}(Qr),XR=z1t});function hX(r,e,t,i){var{node1:n,node2:a}=e,o=r.style;r.setStyle(i.getLineStyle());var s=i.get("color");switch(s){case"source":o.fill=t.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(n.dataIndex,"style").fill,u=t.getItemVisual(a.dataIndex,"style").fill;if(ht(l)&&ht(u)){var c=r.shape,f=(c.s1[0]+c.s2[0])/2,p=(c.s1[1]+c.s2[1])/2,h=(c.t1[0]+c.t2[0])/2,v=(c.t1[1]+c.t2[1])/2;o.fill=new Zo(f,p,h,v,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var VQt,dX;var vX=k(()=>{dt();Z();jt();Kv();Ki();tr();lr();VQt=function(){function r(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return r}(),dX=function(r){W(e,r);function e(t,i,n,a){var o=r.call(this)||this;return Yt(o).dataType="edge",o.updateData(t,i,n,a,!0),o}return e.prototype.buildPath=function(t,i){t.moveTo(i.s1[0],i.s1[1]);var n=0.7,a=i.clockwise;t.arc(i.cx,i.cy,i.r,i.sStartAngle,i.sEndAngle,!a),t.bezierCurveTo((i.cx-i.s2[0])*n+i.s2[0],(i.cy-i.s2[1])*n+i.s2[1],(i.cx-i.t1[0])*n+i.t1[0],(i.cy-i.t1[1])*n+i.t1[1],i.t1[0],i.t1[1]),t.arc(i.cx,i.cy,i.r,i.tStartAngle,i.tEndAngle,!a),t.bezierCurveTo((i.cx-i.t2[0])*n+i.t2[0],(i.cy-i.t2[1])*n+i.t2[1],(i.cx-i.s1[0])*n+i.s1[0],(i.cy-i.s1[1])*n+i.s1[1],i.s1[0],i.s1[1]),t.closePath()},e.prototype.updateData=function(t,i,n,a,o){var s=t.hostModel,l=i.graph.getEdgeByIndex(n),u=l.getLayout(),c=l.node1.getModel(),f=i.getItemModel(l.dataIndex),p=f.getModel("lineStyle"),h=f.getModel("emphasis"),v=h.get("focus"),g=et(aa(c.getModel("itemStyle"),u,!0),u),y=this;if(isNaN(g.sStartAngle)||isNaN(g.tStartAngle)){y.setShape(g);return}if(o)y.setShape(g),hX(y,l,t,p);else pi(y),hX(y,l,t,p),ge(y,{shape:g},s,n);Ie(this,v==="adjacency"?l.getAdjacentDataIndices():v,h.get("blurScope"),h.get("disabled")),pr(y,f,"lineStyle"),i.setItemGraphicEl(l.dataIndex,y)},e}($t)});var B1t,U1t,mX;var gX=k(()=>{dt();jt();Xr();RT();pX();vX();te();lr();B1t=Math.PI/180,U1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Wh,t}return e.prototype.init=function(t,i){},e.prototype.render=function(t,i,n){var a=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*B1t;if(a.diff(o).add(function(c){var f=a.getItemLayout(c);if(f){var p=new XR(a,c,l);Yt(p).dataIndex=c,s.add(p)}}).update(function(c,f){var p=o.getItemGraphicEl(f),h=a.getItemLayout(c);if(!h){p&&La(p,t,f);return}if(!p)p=new XR(a,c,l);else p.updateData(a,c,l);s.add(p)}).remove(function(c){var f=o.getItemGraphicEl(c);f&&La(f,t,c)}).execute(),!o){var u=t.get("center");this.group.scaleX=0.01,this.group.scaleY=0.01,this.group.originX=wt(u[0],n.getWidth()),this.group.originY=wt(u[1],n.getHeight()),ze(this.group,{scaleX:1,scaleY:1},t)}this._data=a,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,i){var n=t.getData(),a=t.getEdgeData(),o=this._edgeData,s=this.group;a.diff(o).add(function(l){var u=new dX(n,a,l,i);Yt(u).dataIndex=l,s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(n,a,l,i),s.add(c)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&La(u,t,l)}).execute(),this._edgeData=a},e.prototype.dispose=function(){},e.type=Wh,e}(Ce),mX=U1t});function V1t(r,e){r.eachSeriesByType(Wh,function(t){F1t(t,e)})}function F1t(r,e){var t=r.getData(),i=t.graph,n=r.getEdgeData(),a=n.count();if(!a)return;var o=Eb(r,e),{cx:s,cy:l,r:u,r0:c}=o,f=Math.max((r.get("padAngle")||0)*KR,0),p=Math.max((r.get("minAngle")||0)*KR,0),h=-r.get("startAngle")*KR,v=h+Math.PI*2,g=r.get("clockwise"),y=g?1:-1,m=[h,v];kp(m,!g);var d=m[0],x=m[1],S=x-d,w=t.getSum("value")===0&&n.getSum("value")===0,T=[],A=0;i.eachEdge(function(F){var G=w?1:F.getValue("value");if(w&&(G>0||p))A+=2;var rt=F.node1.dataIndex,ot=F.node2.dataIndex;T[rt]=(T[rt]||0)+G,T[ot]=(T[ot]||0)+G});var M=0;if(i.eachNode(function(F){var G=F.getValue("value");if(!isNaN(G))T[F.dataIndex]=Math.max(G,T[F.dataIndex]||0);if(!w&&(T[F.dataIndex]>0||p))A++;M+=T[F.dataIndex]||0}),A===0||M===0)return;if(f*A>=Math.abs(S))f=Math.max(0,(Math.abs(S)-p*A)/A);if((f+p)*A>=Math.abs(S))p=(Math.abs(S)-f*A)/A;var D=(S-f*A*y)/M,L=0,I=0,E=0,R=1/0;i.eachNode(function(F){var G=T[F.dataIndex]||0,rt=D*(M?G:1)*y;if(Math.abs(rt)<p)L+=p-Math.abs(rt);else R=Math.min(R,Math.abs(rt)-p),I+=Math.abs(rt)-p,E+=Math.abs(rt);F.setLayout({angle:rt,value:G})});var B=!1;if(L>I){var z=L/I;i.eachNode(function(F){var G=F.getLayout().angle;if(Math.abs(G)>=p)F.setLayout({angle:G*z,ratio:z},!0);else F.setLayout({angle:p,ratio:p===0?1:G/p},!0)})}else i.eachNode(function(F){if(B)return;var G=F.getLayout().angle,rt=Math.min(G/E,1),ot=rt*L;if(G-ot<p)B=!0});var V=L;i.eachNode(function(F){if(V<=0)return;var G=F.getLayout().angle;if(G>p&&p>0){var rt=B?1:Math.min(G/E,1),ot=G-p,at=Math.min(ot,Math.min(V,L*rt));V-=at,F.setLayout({angle:G-at,ratio:(G-at)/G},!0)}else if(p>0)F.setLayout({angle:p,ratio:G===0?1:p/G},!0)});var H=d,K=[];i.eachNode(function(F){var G=Math.max(F.getLayout().angle,p);F.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:H,endAngle:H+G*y,clockwise:g},!0),K[F.dataIndex]=H,H+=(G+f)*y}),i.eachEdge(function(F){var G=w?1:F.getValue("value"),rt=D*(M?G:1)*y,ot=F.node1.dataIndex,at=K[ot]||0,mt=Math.abs((F.node1.getLayout().ratio||1)*rt),Tt=at+mt*y,Ut=[s+c*Math.cos(at),l+c*Math.sin(at)],qt=[s+c*Math.cos(Tt),l+c*Math.sin(Tt)],Zt=F.node2.dataIndex,Rt=K[Zt]||0,oe=Math.abs((F.node2.getLayout().ratio||1)*rt),Vt=Rt+oe*y,N=[s+c*Math.cos(Rt),l+c*Math.sin(Rt)],vt=[s+c*Math.cos(Vt),l+c*Math.sin(Vt)];F.setLayout({s1:Ut,s2:qt,sStartAngle:at,sEndAngle:Tt,t1:N,t2:vt,tStartAngle:Rt,tEndAngle:Vt,cx:s,cy:l,r:c,value:G,clockwise:g}),K[ot]=Tt,K[Zt]=Vt})}var KR,yX;var _X=k(()=>{ao();RT();ur();yt();KR=Math.PI/180,yX=Ke(Wh,V1t)});function qR(r){r.registerChartView(mX),r.registerSeriesModel(fX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,yX),r.registerProcessor(Js("chord"))}var xX=k(()=>{gX();RT();_X()});var G1t,H1t,SX;var bX=k(()=>{dt();Br();G1t=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),H1t=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new G1t},e.prototype.buildPath=function(t,i){var{cos:n,sin:a}=Math,{r:o,width:s,angle:l}=i,u=i.x-n(l)*s*(s>=o/3?1:2),c=i.y-a(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(i.x+n(l)*s,i.y+a(l)*s),t.lineTo(i.x+n(i.angle)*o,i.y+a(i.angle)*o),t.lineTo(i.x-n(l)*s,i.y-a(l)*s),t.lineTo(u,c)},e}($t),SX=H1t});function W1t(r,e){var t=r.get("center"),i=e.getWidth(),n=e.getHeight(),a=Math.min(i,n),o=wt(t[0],e.getWidth()),s=wt(t[1],e.getHeight()),l=wt(r.get("radius"),a/2);return{cx:o,cy:s,r:l}}function OT(r,e){var t=r==null?"":r+"";if(e){if(ht(e))t=e.replace("{value}",t);else if(Mt(e))t=e(r)}return t}var Y1t,wX;var TX=k(()=>{dt();bX();jt();tr();rr();Xr();te();tP();qi();Yo();Z();lr();ao();Y1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){this.group.removeAll();var a=t.get(["axisLine","lineStyle","color"]),o=W1t(t,n);this._renderMain(t,i,n,a,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,n,a,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),p=f.get("roundCap"),h=p?Xv:Qr,v=f.get("show"),g=f.getModel("lineStyle"),y=g.get("width"),m=[u,c];kp(m,!l),u=m[0],c=m[1];var d=c-u,x=u,S=[];for(var w=0;v&&w<a.length;w++){var T=Math.min(Math.max(a[w][0],0),1);c=u+d*T;var A=new h({shape:{startAngle:x,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-y,r:o.r},silent:!0});A.setStyle({fill:a[w][1]}),A.setStyle(g.getLineStyle(["color","width"])),S.push(A),x=c}S.reverse(),P(S,function(D){return s.add(D)});var M=function(D){if(D<=0)return a[0][1];var L;for(L=0;L<a.length;L++)if(a[L][0]>=D&&(L===0?0:a[L-1][0])<D)return a[L][1];return a[L-1][1]};this._renderTicks(t,i,n,M,o,u,c,l,y),this._renderTitleAndDetail(t,i,n,M,o),this._renderAnchor(t,o),this._renderPointer(t,i,n,M,o,u,c,l,y)},e.prototype._renderTicks=function(t,i,n,a,o,s,l,u,c){var f=this.group,{cx:p,cy:h,r:v}=o,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),d=t.getModel("axisTick"),x=t.getModel("axisLabel"),S=t.get("splitNumber"),w=d.get("splitNumber"),T=wt(m.get("length"),v),A=wt(d.get("length"),v),M=s,D=(l-s)/S,L=D/w,I=m.getModel("lineStyle").getLineStyle(),E=d.getModel("lineStyle").getLineStyle(),R=m.get("distance"),B,z;for(var V=0;V<=S;V++){if(B=Math.cos(M),z=Math.sin(M),m.get("show")){var H=R?R+c:c,K=new xr({shape:{x1:B*(v-H)+p,y1:z*(v-H)+h,x2:B*(v-T-H)+p,y2:z*(v-T-H)+h},style:I,silent:!0});if(I.stroke==="auto")K.setStyle({stroke:a(V/S)});f.add(K)}if(x.get("show")){var H=x.get("distance")+R,F=OT(Me(V*(y-g)/S+g,nF),x.get("formatter")),G=a(V/S),rt=B*(v-T-H)+p,ot=z*(v-T-H)+h,at=x.get("rotate"),mt=0;if(at==="radial"){if(mt=-M+2*Math.PI,mt>Math.PI/2)mt+=Math.PI}else if(at==="tangential")mt=-M-Math.PI/2;else if(ue(at))mt=at*Math.PI/180;if(mt===0)f.add(new me({style:He(x,{text:F,x:rt,y:ot,verticalAlign:z<-0.8?"top":z>0.8?"bottom":"middle",align:B<-0.4?"left":B>0.4?"right":"center"},{inheritColor:G}),silent:!0}));else f.add(new me({style:He(x,{text:F,x:rt,y:ot,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:rt,originY:ot,rotation:mt}))}if(d.get("show")&&V!==S){var H=d.get("distance");H=H?H+c:c;for(var Tt=0;Tt<=w;Tt++){B=Math.cos(M),z=Math.sin(M);var Ut=new xr({shape:{x1:B*(v-H)+p,y1:z*(v-H)+h,x2:B*(v-A-H)+p,y2:z*(v-A-H)+h},silent:!0,style:E});if(E.stroke==="auto")Ut.setStyle({stroke:a((V+Tt/w)/S)});f.add(Ut),M+=L}M-=L}else M+=D}},e.prototype._renderPointer=function(t,i,n,a,o,s,l,u,c){var f=this.group,p=this._data,h=this._progressEls,v=[],g=t.get(["pointer","show"]),y=t.getModel("progress"),m=y.get("show"),d=t.getData(),x=d.mapDimension("value"),S=+t.get("min"),w=+t.get("max"),T=[S,w],A=[s,l];function M(L,I){var E=d.getItemModel(L),R=E.getModel("pointer"),B=wt(R.get("width"),o.r),z=wt(R.get("length"),o.r),V=t.get(["pointer","icon"]),H=R.get("offsetCenter"),K=wt(H[0],o.r),F=wt(H[1],o.r),G=R.get("keepAspect"),rt;if(V)rt=ir(V,K-B/2,F-z,B,z,null,G);else rt=new SX({shape:{angle:-Math.PI/2,width:B,r:z,x:K,y:F}});return rt.rotation=-(I+Math.PI/2),rt.x=o.cx,rt.y=o.cy,rt}function D(L,I){var E=y.get("roundCap"),R=E?Xv:Qr,B=y.get("overlap"),z=B?y.get("width"):c/d.count(),V=B?o.r-z:o.r-(L+1)*z,H=B?o.r:o.r-L*z,K=new R({shape:{startAngle:s,endAngle:I,cx:o.cx,cy:o.cy,clockwise:u,r0:V,r:H}});return B&&(K.z2=Ne(d.get(x,L),[S,w],[100,0],!0)),K}if(m||g)d.diff(p).add(function(L){var I=d.get(x,L);if(g){var E=M(L,s);ze(E,{rotation:-((isNaN(+I)?A[0]:Ne(I,T,A,!0))+Math.PI/2)},t),f.add(E),d.setItemGraphicEl(L,E)}if(m){var R=D(L,s),B=y.get("clip");ze(R,{shape:{endAngle:Ne(I,T,A,B)}},t),f.add(R),Zg(t.seriesIndex,d.dataType,L,R),v[L]=R}}).update(function(L,I){var E=d.get(x,L);if(g){var R=p.getItemGraphicEl(I),B=R?R.rotation:s,z=M(L,B);z.rotation=B,ge(z,{rotation:-((isNaN(+E)?A[0]:Ne(E,T,A,!0))+Math.PI/2)},t),f.add(z),d.setItemGraphicEl(L,z)}if(m){var V=h[I],H=V?V.shape.endAngle:s,K=D(L,H),F=y.get("clip");ge(K,{shape:{endAngle:Ne(E,T,A,F)}},t),f.add(K),Zg(t.seriesIndex,d.dataType,L,K),v[L]=K}}).execute(),d.each(function(L){var I=d.getItemModel(L),E=I.getModel("emphasis"),R=E.get("focus"),B=E.get("blurScope"),z=E.get("disabled"),V=a(Ne(d.get(x,L),T,[0,1],!0));if(g){var H=d.getItemGraphicEl(L),K=d.getItemVisual(L,"style"),F=K.fill;if(H instanceof _r){var G=H.style;H.useStyle(et({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},K))}else H.useStyle(K),H.type!=="pointer"&&H.setColor(F);if(H.setStyle(I.getModel(["pointer","itemStyle"]).getItemStyle()),H.style.fill==="auto")H.setStyle("fill",V);H.z2EmphasisLift=0,pr(H,I),Ie(H,R,B,z)}if(m){var rt=v[L];if(rt.useStyle(d.getItemVisual(L,"style")),rt.setStyle(I.getModel(["progress","itemStyle"]).getItemStyle()),rt.style.fill==="auto")rt.setStyle("fill",V);rt.z2EmphasisLift=0,pr(rt,I),Ie(rt,R,B,z)}}),this._progressEls=v},e.prototype._renderAnchor=function(t,i){var n=t.getModel("anchor"),a=n.get("show");if(a){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),c=ir(s,i.cx-o/2+wt(l[0],i.r),i.cy-o/2+wt(l[1],i.r),o,o,null,u);c.z2=n.get("showAbove")?1:0,c.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,i,n,a,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),f=+t.get("max"),p=new Lt,h=[],v=[],g=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new me({silent:!0}),v[m]=new me({silent:!0})}).update(function(m,d){h[m]=s._titleEls[d],v[m]=s._detailEls[d]}).execute(),l.each(function(m){var d=l.getItemModel(m),x=l.get(u,m),S=new Lt,w=a(Ne(x,[c,f],[0,1],!0)),T=d.getModel("title");if(T.get("show")){var A=T.get("offsetCenter"),M=o.cx+wt(A[0],o.r),D=o.cy+wt(A[1],o.r),L=h[m];L.attr({z2:y?0:2,style:He(T,{x:M,y:D,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(L)}var I=d.getModel("detail");if(I.get("show")){var E=I.get("offsetCenter"),R=o.cx+wt(E[0],o.r),B=o.cy+wt(E[1],o.r),z=wt(I.get("width"),o.r),V=wt(I.get("height"),o.r),H=t.get(["progress","show"])?l.getItemVisual(m,"style").fill:w,L=v[m],K=I.get("formatter");L.attr({z2:y?0:2,style:He(I,{x:R,y:B,text:OT(x,K),width:isNaN(z)?null:z,height:isNaN(V)?null:V,align:"center",verticalAlign:"middle"},{inheritColor:H})}),$S(L,{normal:I},x,function(G){return OT(G,K)}),g&&QS(L,m,l,t,{getFormattedLabel:function(G,rt,ot,at,mt,Tt){return OT(Tt?Tt.interpolatedValue:x,K)}}),S.add(L)}p.add(S)}),this.group.add(p),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(Ce),wX=Y1t});var Z1t,AX;var CX=k(()=>{dt();Mh();Zr();we();Z1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return vo(this,["value"])},e.type="series.gauge",e.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,Q.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Q.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Q.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Q.color.axisLabel,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:Q.color.neutral00,borderWidth:0,borderColor:Q.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Q.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Q.color.transparent,borderWidth:0,borderColor:Q.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Q.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Pe),AX=Z1t});function JR(r){r.registerChartView(wX),r.registerSeriesModel(AX)}var EX=k(()=>{TX();CX()});var nc="funnel",j1t,MX;var kT=k(()=>{dt();Z();Mh();yt();Ol();Lh();Zr();we();j1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new as(xt(this.getData,this),xt(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return vo(this,{coordDimensions:["value"],encodeDefaulter:ne(uv,this)})},e.prototype._defaultLabelLine=function(t){io(t,"labelLine",["show"]);var i=t.labelLine,n=t.emphasis.labelLine;i.show=i.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),n=r.prototype.getDataParams.call(this,t),a=i.mapDimension("value"),o=i.getSum(a);return n.percent=!o?0:+(i.get(a,t)/o*100).toFixed(2),n.$vars.push("percent"),n},e.type="series."+nc,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:Q.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Q.color.primary}}},e}(Pe),MX=j1t});var X1t,K1t,q1t,LX;var DX=k(()=>{dt();jt();tr();Xr();kT();Zy();rr();Ki();X1t=["itemStyle","opacity"],K1t=function(r){W(e,r);function e(t,i){var n=r.call(this)||this,a=n,o=new Mr,s=new me;return a.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,i,!0),n}return e.prototype.updateData=function(t,i,n){var a=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),c=s.get(X1t);if(c=c==null?1:c,!n)pi(a);if(a.useStyle(t.getItemVisual(i,"style")),a.style.lineJoin="round",n)a.setShape({points:l.points}),a.style.opacity=0,ze(a,{style:{opacity:c}},o,i);else ge(a,{style:{opacity:c},shape:{points:l.points}},o,i);pr(a,s),this._updateLabel(t,i),Ie(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var n=this,a=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),c=u.label,f=t.getItemVisual(i,"style"),p=f.fill;or(o,er(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:f.opacity,defaultText:t.getName(i)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}});var h=l.getModel("label"),v=h.get("color"),g=v==="inherit"?p:null;n.setTextConfig({local:!0,inside:!!c.inside,insideStroke:g,outsideFill:g});var y=c.linePoints;a.setShape({points:y}),n.textGuideLineConfig={anchor:y?new Qt(y[0][0],y[0][1]):null},ge(o,{style:{x:c.x,y:c.y}},s,i),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Nv(n,zv(l),{stroke:p})},e}(kr),q1t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=nc,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new K1t(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);La(u,t,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=nc,e}(Ce),LX=q1t});function J1t(r,e){var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),n=[],a=e==="ascending";for(var o=0,s=r.count();o<s;o++)n[o]=o;if(Mt(e))n.sort(e);else if(e!=="none")n.sort(function(l,u){return a?i[l]-i[u]:i[u]-i[l]});return n}function $1t(r){var e=r.hostModel,t=PX(e);r.each(function(i){var n=r.getItemModel(i),a=n.getModel("label"),o=a.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(i),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,p,h,v;if(c){if(o==="insideLeft")p=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left";else if(o==="insideRight")p=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right";else p=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center";v=[[p,h],[p,h]]}else{var g=void 0,y=void 0,m=void 0,d=void 0,x=s.get("length");if(ht(o)){if(!t&&Xt(["top","bottom"],o)>-1)o="left";if(t&&Xt(["left","right"],o)>-1)o="bottom"}if(o==="left")g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,m=g-x,p=m-5,f="right";else if(o==="right")g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,m=g+x,p=m+5,f="left";else if(o==="top")g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,d=y-x,h=d-5,f="center";else if(o==="bottom")g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,d=y+x,h=d+5,f="center";else if(o==="rightTop")if(g=t?u[3][0]:u[1][0],y=t?u[3][1]:u[1][1],t)d=y-x,h=d-5,f="center";else m=g+x,p=m+5,f="top";else if(o==="rightBottom")if(g=u[2][0],y=u[2][1],t)d=y+x,h=d+5,f="center";else m=g+x,p=m+5,f="bottom";else if(o==="leftTop")if(g=u[0][0],y=t?u[0][1]:u[1][1],t)d=y-x,h=d-5,f="center";else m=g-x,p=m-5,f="right";else if(o==="leftBottom")if(g=t?u[1][0]:u[3][0],y=t?u[1][1]:u[2][1],t)d=y+x,h=d+5,f="center";else m=g-x,p=m-5,f="right";else if(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,t)d=y+x,h=d+5,f="center";else m=g+x,p=m+5,f="left";if(t)m=g,p=m;else d=y,h=d;v=[[g,y],[m,d]]}l.label={linePoints:v,x:p,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function Q1t(r,e){r.eachSeriesByType(nc,function(t){var i=t.getData(),n=i.mapDimension("value"),a=t.get("sort"),o=Je(t,e),s=Be(t.getBoxLayoutParams(),o.refContainer),l=PX(t),{width:u,height:c}=s,f=J1t(i,a),{x:p,y:h}=s,v=l?[wt(t.get("minSize"),c),wt(t.get("maxSize"),c)]:[wt(t.get("minSize"),u),wt(t.get("maxSize"),u)],g=i.getDataExtent(n),y=t.get("min"),m=t.get("max");if(y==null)y=Math.min(g[0],0);if(m==null)m=g[1];var d=t.get("funnelAlign"),x=t.get("gap"),S=l?u:c,w=(S-x*(i.count()-1))/i.count(),T=function(z,V){if(l){var H=i.get(n,z)||0,K=Ne(H,[y,m],v,!0),F=void 0;switch(d){case"top":F=h;break;case"center":F=h+(c-K)/2;break;case"bottom":F=h+(c-K);break}return[[V,F],[V,F+K]]}var G=i.get(n,z)||0,rt=Ne(G,[y,m],v,!0),ot;switch(d){case"left":ot=p;break;case"center":ot=p+(u-rt)/2;break;case"right":ot=p+u-rt;break}return[[ot,V],[ot+rt,V]]};if(a==="ascending"){if(w=-w,x=-x,l)p+=u;else h+=c;f=f.reverse()}for(var A=0;A<f.length;A++){var M=f[A],D=f[A+1],L=i.getItemModel(M);if(l){var I=L.get(["itemStyle","width"]);if(I==null)I=w;else if(I=wt(I,u),a==="ascending")I=-I;var E=T(M,p),R=T(D,p+I);p+=I+x,i.setItemLayout(M,{points:E.concat(R.slice().reverse())})}else{var B=L.get(["itemStyle","height"]);if(B==null)B=w;else if(B=wt(B,c),a==="ascending")B=-B;var E=T(M,h),R=T(D,h+B);h+=B+x,i.setItemLayout(M,{points:E.concat(R.slice().reverse())})}}$1t(i)})}function PX(r){return r.get("orient")==="horizontal"}var IX;var RX=k(()=>{ur();te();kT();Z();yt();IX=Ke(nc,Q1t)});function $R(r){r.registerChartView(LX),r.registerSeriesModel(MX),r.registerLayout(IX),r.registerProcessor(Js(nc))}var OX=k(()=>{DX();kT();RX()});function rwt(r,e,t){var i=r.model,n=r.getRect(),a=new ee({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=i.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),ze(a,{shape:{width:n.width,height:n.height}},e,t),a}function zX(r,e,t,i){var n=[];for(var a=0;a<t.length;a++){var o=t[a],s=r.get(r.mapDimension(o),e);if(!iwt(s,i.getAxis(o).type))n.push(i.dataToPoint(s,o))}return n}function kX(r,e,t,i,n){var a=zX(r,t,i,n),o=new Mr({shape:{points:a},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function NX(r){var e=r.get("smooth",!0);return e===!0&&(e=twt),e=Uo(e),Jr(e)&&(e=0),{smooth:e}}function QR(r,e,t,i){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",i.smooth);var n=e.getItemModel(t),a=n.getModel("emphasis");pr(r,n,"lineStyle"),Ie(r,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function iwt(r,e){return e==="category"?r==null:r==null||isNaN(r)}var twt=0.3,ewt,BX;var UX=k(()=>{dt();jt();tr();Xr();te();Z();Ki();yt();ewt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Lt,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,n,a){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,f=NX(t);s.diff(l).add(p).update(h).remove(v).execute();function p(y){var m=kX(s,o,y,c,u);QR(m,s,y,f)}function h(y,m){var d=l.getItemGraphicEl(m);o.add(d);var x=zX(s,y,c,u);s.setItemGraphicEl(y,d),ge(d,{shape:{points:x}},t,y),pi(d),QR(d,s,y,f)}function v(y){var m=l.getItemGraphicEl(y);o.remove(m)}if(!this._initialized){this._initialized=!0;var g=rwt(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,n){var a=i.getData(),o=i.coordinateSystem,s=this._progressiveEls=[];for(var l=t.start;l<t.end;l++){var u=kX(a,this._dataGroup,l,o.dimensions,o);u.incremental=ln(i),QR(u,a,l,NX(i)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Ce);BX=ewt});function awt(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!e)return;var t={};return P(e.dimensions,function(i){var n=owt(i);t[i]=n}),t}function owt(r){return+r.replace("dim","")}var nwt,VX;var FX=k(()=>{dt();Z();Zr();Nl();nwt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return $i(null,this,{useEncodeDefaulter:xt(awt,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,n=this.getData(),a=[];return i.eachActiveState(n,function(o,s){if(t===o)a.push(n.getRawIndex(s))}),a},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:0.05,activeOpacity:1,lineStyle:{width:1,opacity:0.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e}(Pe);VX=nwt});var swt,lwt,GX;var HX=k(()=>{swt=["lineStyle","opacity"],lwt={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,i={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,a){t.eachActiveState(a,function(o,s){var l=i[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(swt,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},n.start,n.end)}}}},GX=lwt});function tO(r){uwt(r),cwt(r)}function uwt(r){if(r.parallel)return;var e=!1;if(P(r.series,function(t){if(t&&t.type==="parallel")e=!0}),e)r.parallel=[{}]}function cwt(r){var e=Ve(r.parallelAxis);P(e,function(t){if(!Pt(t))return;var i=t.parallelIndex||0,n=Ve(r.parallel)[i];if(n&&n.parallelAxisDefault)re(t,n.parallelAxisDefault,!1)})}var WX=k(()=>{Z();yt()});function eO(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var fwt=5,pwt,hwt,YX;var ZX=k(()=>{dt();jr();Z();pwt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){if(this._model=t,this._api=n,!this._handlers)this._handlers={},P(hwt,function(a,o){n.getZr().on(o,this._handlers[o]=xt(a,this))},this);$o(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Fu(this,"_throttledDispatchExpand"),P(this._handlers,function(n,a){i.getZr().off(a,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(et({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Re),hwt={mousedown:function(r){if(eO(this,"click"))this._mouseDownPoint=[r.offsetX,r.offsetY]},mouseup:function(r){var e=this._mouseDownPoint;if(eO(this,"click")&&e){var t=[r.offsetX,r.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>fwt)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(this._mouseDownPoint||!eO(this,"mousemove"))return;var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}};YX=pwt});var vm="parallel",NT,dwt,jX;var zT=k(()=>{dt();Z();Nr();NT=vm,dwt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&re(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var n=t.get("parallelIndex");return n!=null&&i.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){P(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){if(t.hasOwnProperty(i))this.option[i]=t[i]},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],n=be(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);P(n,function(a){t.push("dim"+a.get("dim")),i.push(a.componentIndex)})},e.type=NT,e.dependencies=["parallelAxis"],e.layoutMode="box",e.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:[-0.15,0.05,0.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(de),jX=dwt});var vwt,XX;var KX=k(()=>{dt();sf();vwt=function(r){W(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(tn),XX=vwt});function sa(r,e,t,i,n,a){r=r||0;var o=bu(t[1],-t[0]);if(n!=null)n=mm(n,[0,o]);if(a!=null)a=Math.max(a,n!=null?n:0);if(i==="all"){var s=Math.abs(bu(e[1],-e[0]));s=mm(s,[0,o]),n=a=mm(s,[n,a]),i=0}e[0]=mm(e[0],t),e[1]=mm(e[1],t);var l=rO(e,i);e[i]+=r;var u=n||0,c=t.slice();l.sign<0?c[0]=bu(c[0],u):c[1]=bu(c[1],-u),e[i]=mm(e[i],c);var f=rO(e,i);if(n!=null&&(f.sign!==l.sign||f.span<n))e[1-i]=bu(e[i],l.sign*n);if(f=rO(e,i),a!=null&&f.span>a)e[1-i]=bu(e[i],f.sign*a);return e}function rO(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function mm(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var Yh=k(()=>{te()});function BT(r,e){return ke(ce(r,e[0]),e[1])}function gwt(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function ywt(r,e){var{layoutLength:t,axisExpandWidth:i,axisCount:n,axisCollapseWidth:a,winInnerIndices:o}=e,s,l=a,u=!1,c;if(r<o[0])s=r*a,c=a;else if(r<=o[1])s=e.axisExpandWindow0Pos+r*i-e.axisExpandWindow[0],l=i,u=!0;else s=t-(n-1-r)*a,c=a;return{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}var mwt,qX;var JX=k(()=>{Z();ur();Qi();KX();jt();te();Yh();zT();Ov();po();mwt=function(){function r(e,t,i){this.type=vm,this._axesMap=gt(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var{dimensions:n,parallelAxisIndex:a}=e;P(n,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),c=nf(u),f=this._axesMap.set(o,new XX(o,Vl(u,c,!1),[0,0],c,l));f.onBand=Fl(f.scale,u),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){P(this.dimensions,function(i){var n=this._axesMap.get(i);fo(n,Ws),Wl(n)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),{axisBase:i,layoutBase:n,pixelDimIndex:a}=t,o=e[1-a],s=e[a];return o>=i&&o<=i+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var i=Je(e,t).refContainer;this._rect=Be(e.getBoxLayoutParams(),i),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],n=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,c=BT(e.get("axisExpandWidth"),l),f=BT(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=e.get("axisExpandWindow"),v;if(!h){v=BT(c*(f-1),l);var g=e.get("axisExpandCenter")||Tn(u/2);h=[c*g-v/2],h[1]=h[0]+v}else v=BT(h[1]-h[0],l),h[1]=h[0]+v;var y=(s-v)/(u-f);y<3&&(y=0);var m=[Tn(Me(h[0]/c,1))+1,zo(Me(h[1]/c,1))-1],d=y/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[n[1-o]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:d}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),P(i,function(o,s){var l=(n.axisExpandable?ywt:gwt)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Rd/2,vertical:0},f=[u[a].x+e.x,u[a].y+e.y],p=c[a],h=Qe();bn(h,h,p),on(h,h,f),this._axesLayout[o]={position:f,rotation:p,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,n){i==null&&(i=0),n==null&&(n=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];P(o,function(y){s.push(e.mapDimension(y)),l.push(a.get(y).model)});var u=this.hasAxisBrushed();for(var c=i;c<n;c++){var f=void 0;if(!u)f="normal";else{f="active";var p=e.getValues(s,c);for(var h=0,v=o.length;h<v;h++){var g=l[h].getActiveState(p[h]);if(g==="inactive"){f="inactive";break}}}t(f,c)}},r.prototype.hasAxisBrushed=function(){var e=this.dimensions,t=this._axesMap,i=!1;for(var n=0,a=e.length;n<a;n++)if(t.get(e[n]).model.getActiveState()!=="normal")i=!0;return i},r.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return fn([e,0],i.transform)},r.prototype.getAxisLayout=function(e){return It(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,n=t.axisExpandWindow.slice(),a=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),p=f[0]!=null;if(c){if(p&&c&&s<a*f[0])u="jump",l=s-a*f[2];else if(p&&c&&s>a*(1-f[0]))u="jump",l=s-a*(1-f[2]);else(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0);l*=t.axisExpandWidth/c,l?sa(l,n,o,"all"):u="none"}else{var h=n[1]-n[0],v=o[1]*s/h;n=[ce(0,v-h/2)],n[1]=ke(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();qX=mwt});function _wt(r,e){var t=[];return r.eachComponent(NT,function(i,n){var a=new qX(i,r,e);a.name="parallel_"+n,a.resize(i,e),i.coordinateSystem=a,a.model=i,t.push(a)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===vm){var n=i.getReferringComponents(NT,Xe).models[0],a=i.coordinateSystem=n.coordinateSystem;if(a)P(a.dimensions,function(o){is(a.getAxis(o),i,vm)})}}),t}var xwt,$X;var QX=k(()=>{JX();zT();yt();Z();ta();xwt={create:_wt},$X=xwt});var tK,iO;var eK=k(()=>{dt();Z();Nr();Ep();te();Dv();tK=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Ta([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=It(t);if(i)for(var n=i.length-1;n>=0;n--)Pr(i[n])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var n=i[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var a=0,o=i.length;a<o;a++)if(i[a][0]<=t&&t<=i[a][1])return"active";return"inactive"},e}(de);dr(tK,Gl);iO=tK});function lK(r,e){var t=UT[e.brushType].createCover(r,e);return t.__brushOption=e,fK(t,e),r.group.add(t),t}function uK(r,e){var t=cO(e);if(t.endCreating)t.endCreating(r,e),fK(e,e.__brushOption);return e}function cK(r,e){var t=e.__brushOption;cO(e).updateCoverShape(r,e,t.range,t)}function fK(r,e){var t=e.z;t==null&&(t=bwt),r.traverse(function(i){i.z=t,i.z2=t})}function uO(r,e){cO(e).updateCommon(r,e),cK(r,e)}function cO(r){return UT[r.__brushOption.brushType]}function fO(r,e,t){var i=r._panels;if(!i)return Zh;var n,a=r._transform;return P(i,function(o){o.isTargetByCursor(e,t,a)&&(n=o)}),n}function pK(r,e){var t=r._panels;if(!t)return Zh;var i=e.__brushOption.panelId;return i!=null?t[i]:Zh}function nO(r){var e=r._covers,t=e.length;return P(e,function(i){r.group.remove(i)},r),e.length=0,!!t}function jh(r,e){var t=nt(r._covers,function(i){var n=i.__brushOption,a=It(n.range);return{brushType:n.brushType,panelId:n.panelId,range:a}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Lwt(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],n=t[0]-i[0],a=t[1]-i[1],o=Swt(n*n+a*a,0.5);return o>wwt}function hK(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function dK(r,e,t,i){var n=new Lt;return n.add(new ee({name:"main",style:pO(t),silent:!0,draggable:!0,cursor:"move",drift:ne(nK,r,e,n,["n","s","w","e"]),ondragend:ne(jh,e,{isEnd:!0})})),P(i,function(a){n.add(new ee({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ne(nK,r,e,n,a),ondragend:ne(jh,e,{isEnd:!0})}))}),n}function vK(r,e,t,i){var n=i.brushStyle.lineWidth||0,a=gm(n,Twt),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,c=t[0][1],f=t[1][1],p=c-a+n/2,h=f-a+n/2,v=c-o,g=f-s,y=v+n,m=g+n;if(ac(r,e,"main",o,s,v,g),i.transformable)ac(r,e,"w",l,u,a,m),ac(r,e,"e",p,u,a,m),ac(r,e,"n",l,u,y,a),ac(r,e,"s",l,h,y,a),ac(r,e,"nw",l,u,a,a),ac(r,e,"ne",p,u,a,a),ac(r,e,"sw",l,h,a,a),ac(r,e,"se",p,h,a,a)}function aO(r,e){var t=e.__brushOption,i=t.transformable,n=e.childAt(0);n.useStyle(pO(t)),n.attr({silent:!i,cursor:i?"move":"default"}),P([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?oO(r,a[0]):Iwt(r,a);o&&o.attr({silent:!i,invisible:!i,cursor:i?Cwt[s]+"-resize":null})})}function ac(r,e,t,i,n,a,o){var s=e.childOfName(t);s&&s.setShape(Rwt(hO(r,e,[[i,n],[i+a,n+o]])))}function pO(r){return Dt({strokeNoScale:!0},r.brushStyle)}function mK(r,e,t,i){var n=[z0(r,t),z0(e,i)],a=[gm(r,t),gm(e,i)];return[[n[0],a[0]],[n[1],a[1]]]}function Dwt(r){return Du(r.group)}function oO(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},n=jp(t[e],Dwt(r));return i[n]}function Iwt(r,e){var t=[oO(r,e[0]),oO(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function nK(r,e,t,i,n,a){var o=t.__brushOption,s=r.toRectRange(o.range),l=gK(e,n,a);P(i,function(u){var c=Awt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=r.fromRectRange(mK(s[0][0],s[1][0],s[0][1],s[1][1])),uO(e,t),jh(e,{isEnd:!1})}function Pwt(r,e,t,i){var n=e.__brushOption.range,a=gK(r,t,i);P(n,function(o){o[0]+=a[0],o[1]+=a[1]}),uO(r,e),jh(r,{isEnd:!1})}function gK(r,e,t){var i=r.group,n=i.transformCoordToLocal(e,t),a=i.transformCoordToLocal(0,0);return[n[0]-a[0],n[1]-a[1]]}function hO(r,e,t){var i=pK(r,e);return i&&i!==Zh?i.clipPath(t,r._transform):It(t)}function Rwt(r){var e=z0(r[0][0],r[1][0]),t=z0(r[0][1],r[1][1]),i=gm(r[0][0],r[1][0]),n=gm(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:n-t}}function Owt(r,e,t){if(!r._brushType||Nwt(r,e.offsetX,e.offsetY))return;var{_zr:i,_covers:n}=r,a=fO(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(a&&(a===Zh||s.panelId===a.panelId)&&UT[s.brushType].contain(n[o],t[0],t[1]))return}a&&i.setCursorStyle("crosshair")}function sO(r){var e=r.event;e.preventDefault&&e.preventDefault()}function lO(r,e,t){return r.childOfName("main").contain(e,t)}function yK(r,e,t,i){var{_creatingCover:n,_creatingPanel:a,_brushOption:o}=r,s;if(r._track.push(t.slice()),Lwt(r)||n){if(a&&!n){o.brushMode==="single"&&nO(r);var l=It(o);l.brushType=aK(l.brushType,a),l.panelId=a===Zh?null:a.panelId,n=r._creatingCover=lK(r,l),r._covers.push(n)}if(n){var u=UT[aK(r._brushType,a)],c=n.__brushOption;if(c.range=u.getCreatingRange(hO(r,n,r._track)),i)uK(r,n),u.updateCommon(r,n);cK(r,n),s={isEnd:i}}}else if(i&&o.brushMode==="single"&&o.removeOnClick){if(fO(r,e,t)&&nO(r))s={isEnd:i,removeOnClick:!0}}return s}function aK(r,e){if(r==="auto")return e.defaultBrushType;return r}function oK(r,e){if(r._dragging){sO(e);var{offsetX:t,offsetY:i}=e,n=r.group.transformCoordToLocal(t,i),a=yK(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&jh(r,a)}}function Nwt(r,e,t){var i=r._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}function sK(r){return{createCover:function(e,t){return dK({toRectRange:function(i){var n=[i,[0,100]];return r&&n.reverse(),n},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=hK(e),i=z0(t[0][r],t[1][r]),n=gm(t[0][r],t[1][r]);return[i,n]},updateCoverShape:function(e,t,i,n){var a,o=pK(e,t);if(o!==Zh&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,a];r&&l.reverse(),vK(e,t,l,n)},updateCommon:aO,contain:lO}}var Zh=!0,z0,gm,Swt,bwt=1e4,wwt=6,Twt=6,rK="globalPan",Awt,Cwt,iK,Ewt=0,Mwt,kwt,UT,ym;var VT=k(()=>{dt();Z();fl();jt();NP();Hu();we();z0=Math.min,gm=Math.max,Swt=Math.pow,Awt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Cwt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},iK={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Mwt=function(r){W(e,r);function e(t){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new Lt,i._uid="brushController_"+Ewt++,P(kwt,function(n,a){this._handlers[a]=xt(n,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;if(!this._enableGlobalPan)wZ(i,rK,this._uid);P(this._handlers,function(n,a){i.on(a,n)}),this._brushType=t.brushType,this._brushOption=re(It(iK),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;TZ(t,rK,this._uid),P(this._handlers,function(i,n){t.off(n,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};P(t,function(n){i[n.panelId]=It(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=nt(t,function(p){return re(It(iK),p,!0)});var i="\x00-brush-index-",n=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new dn(n,t,u,l).add(c).update(c).remove(f).execute(),this;function l(p,h){return(p.id!=null?p.id:i+h)+"-"+p.brushType}function u(p,h){return l(p.__brushOption,h)}function c(p,h){var v=t[p];if(h!=null&&n[h]===s)a[p]=n[h];else{var g=a[p]=h!=null?(n[h].__brushOption=v,n[h]):uK(o,lK(o,v));uO(o,g)}}function f(p){if(n[p]!==s)o.group.remove(n[p])}},e.prototype.unmount=function(){return this.enableBrush(!1),nO(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Ai);kwt={mousedown:function(r){if(this._dragging)oK(this,r);else if(!r.target||!r.target.draggable){sO(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=fO(this,r,e);if(t)this._dragging=!0,this._track=[e.slice()]}},mousemove:function(r){var{offsetX:e,offsetY:t}=r,i=this.group.transformCoordToLocal(e,t);if(Owt(this,r,i),this._dragging){sO(r);var n=yK(this,r,i,!1);n&&jh(this,n)}},mouseup:function(r){oK(this,r)}};UT={lineX:sK(0),lineY:sK(1),rect:{createCover:function(r,e){function t(i){return i}return dK({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=hK(r);return mK(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){vK(r,e,t,i)},updateCommon:aO,contain:lO},polygon:{createCover:function(r,e){var t=new Lt;return t.add(new Mr({name:"main",style:pO(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new kr({name:"main",draggable:!0,drift:ne(Pwt,r,e),ondragend:ne(jh,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:hO(r,e,t)})},updateCommon:aO,contain:lO}};ym=Mwt});function FT(r){return r=dO(r),function(e){return jM(e,r)}}function GT(r,e){return r=dO(r),function(t){var i=e!=null?e:t,n=i?r.width:r.height,a=i?r.x:r.y;return[a,a+(n||0)]}}function HT(r,e,t){var i=dO(r);return function(n,a){return i.contain(a[0],a[1])&&!Xw(n,e,t)}}function dO(r){return Gt.create(r)}var vO=k(()=>{fr();zP();jt()});function Bwt(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function Uwt(r){var e=r.axis;return nt(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Vwt(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var zwt,xK;var SK=k(()=>{dt();Z();Kl();VT();vO();jt();jr();zwt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new ym(i.getZr())).on("brush",xt(this._onBrush,this))},e.prototype.render=function(t,i,n,a){if(Bwt(t,i,a))return;this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!t.get("show"))return;var s=Vwt(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,f=t.axis.dim,p=l.getAxisLayout(f),h=et({strokeContainThreshold:c},p),v=new mn(t,n,h);v.build(),this._axisGroup.add(v.group),this._refreshBrushController(h,u,t,s,c,n),Iu(o,this._axisGroup,t)},e.prototype._refreshBrushController=function(t,i,n,a,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*0.1),f=Gt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:FT(f),isTargetByCursor:HT(f,s,a),getLinearBrushOtherExtent:GT(f,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(Uwt(n))},e.prototype._onBrush=function(t){var i=t.areas,n=this.axisModel,a=n.axis,o=nt(i,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});if(!n.option.realtime===t.isEnd||t.removeOnClick)this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Re);xK=zwt});function bK(r){r.registerAction(Fwt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var Fwt;var wK=k(()=>{Fwt={type:"axisAreaSelect",event:"axisAreaSelected"}});function B0(r){r.registerComponentView(YX),r.registerComponentModel(jX),r.registerCoordinateSystem("parallel",$X),r.registerPreprocessor(tO),r.registerComponentModel(iO),r.registerComponentView(xK),Qs(r,"parallel",iO,Gwt),bK(r)}var Gwt;var mO=k(()=>{WX();ZX();zT();QX();d0();eK();SK();wK();Gwt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:0.3},realtime:!0,z:10}});function gO(r){he(B0),r.registerChartView(BX),r.registerSeriesModel(VX),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,GX)}var TK=k(()=>{On();UX();FX();HX();mO()});var yo="sankey",Hwt,AK;var U0=k(()=>{dt();Zr();wT();ti();Rn();we();Hwt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var n=t.edges||t.links||[],a=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];var s=this.levelModels;for(var l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new ye(o[l],this,i);var u=Fh(a,n,this,!0,c);return u.data;function c(f,p){f.wrapMethod("getItemModel",function(h,v){var g=h.parentModel,y=g.getData().getItemLayout(v);if(y){var m=y.depth,d=g.levelModels[m];if(d)h.parentModel=d}return h}),p.wrapMethod("getItemModel",function(h,v){var g=h.parentModel,y=g.getGraph().getEdgeByIndex(v),m=y.node1.getLayout();if(m){var d=m.depth,x=g.levelModels[d];if(x)h.parentModel=x}return h})}},e.prototype.setNodePosition=function(t,i){var n=this.option.data||this.option.nodes,a=n[t];a.localX=i[0],a.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,n){function a(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(t,n),{data:s,value:l}=o,u=s.source+" -- "+s.target;return mr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(t),f=c.getLayout().value,p=this.getDataParams(t,n).data.name;return mr("nameValue",{name:p!=null?p+"":null,value:f,noValue:a(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var n=r.prototype.getDataParams.call(this,t,i);if(n.value==null&&i==="node"){var a=this.getGraph().getNodeByIndex(t),o=a.getLayout().value;n.value=o}return n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+yo,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Q.color.neutral50,opacity:0.2,curveness:0.5},emphasis:{label:{show:!0},lineStyle:{opacity:0.5}},select:{itemStyle:{borderColor:Q.color.primary}},animationEasing:"linear",animationDuration:1000},e}(Pe),AK=Hwt});function CK(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),n=t.node2.getVisual("color");if(ht(i)&&ht(n))r.fill=new Zo(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:n,offset:1}])}}function jwt(r,e,t){var i=new ee({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ze(i,{shape:{width:r.width+20}},e,t),i}var Wwt,Ywt,Zwt,EK;var MK=k(()=>{dt();jt();tr();U0();Xr();rr();lr();Z();bf();zn();tc();Wwt=function(){function r(){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 r}(),Ywt=function(r){W(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Wwt},e.prototype.buildPath=function(t,i){var n=i.extent;if(t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical")t.lineTo(i.x2+n,i.y2),t.bezierCurveTo(i.cpx2+n,i.cpy2,i.cpx1+n,i.cpy1,i.x1+n,i.y1);else t.lineTo(i.x2,i.y2+n),t.bezierCurveTo(i.cpx2,i.cpy2+n,i.cpx1,i.cpy1+n,i.x1,i.y1+n);t.closePath()},e.prototype.highlight=function(){An(this)},e.prototype.downplay=function(){Cn(this)},e}($t),Zwt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=yo,t._mainGroup=new Lt,t}return e.prototype.init=function(t,i){this._controller=new Va(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,i,n){var a=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,{width:l,height:u}=s,c=t.getData(),f=t.getData("edge"),p=t.get("orient");if(o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,n),Mf(t,n,this._controller,cT(o),null),a.eachEdge(function(h){var v=new Ywt,g=Yt(v);g.dataIndex=h.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=h.getModel(),m=y.getModel("lineStyle"),d=m.get("curveness"),x=h.node1.getLayout(),S=h.node1.getModel(),w=S.get("localX"),T=S.get("localY"),A=h.node2.getLayout(),M=h.node2.getModel(),D=M.get("localX"),L=M.get("localY"),I=h.getLayout(),E,R,B,z,V,H,K,F;if(v.shape.extent=Math.max(1,I.dy),v.shape.orient=p,p==="vertical")E=(w!=null?w*l:x.x)+I.sy,R=(T!=null?T*u:x.y)+x.dy,B=(D!=null?D*l:A.x)+I.ty,z=L!=null?L*u:A.y,V=E,H=R*(1-d)+z*d,K=B,F=R*d+z*(1-d);else E=(w!=null?w*l:x.x)+x.dx,R=(T!=null?T*u:x.y)+I.sy,B=D!=null?D*l:A.x,z=(L!=null?L*u:A.y)+I.ty,V=E*(1-d)+B*d,H=R,K=E*d+B*(1-d),F=z;v.setShape({x1:E,y1:R,x2:B,y2:z,cpx1:V,cpy1:H,cpx2:K,cpy2:F}),v.useStyle(m.getItemStyle()),CK(v.style,p,h);var G=""+y.get("value"),rt=er(y,"edgeLabel");or(v,rt,{labelFetcher:{getFormattedLabel:function(mt,Tt,Ut,qt,Zt,Rt){return t.getFormattedLabel(mt,Tt,"edge",qt,Hr(Zt,rt.normal&&rt.normal.get("formatter"),G),Rt)}},labelDataIndex:h.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var ot=y.getModel("emphasis");pr(v,y,"lineStyle",function(mt){var Tt=mt.getItemStyle();return CK(Tt,p,h),Tt}),o.add(v),f.setItemGraphicEl(h.dataIndex,v);var at=ot.get("focus");Ie(v,at==="adjacency"?h.getAdjacentDataIndices():at==="trajectory"?h.getTrajectoryDataIndices():at,ot.get("blurScope"),ot.get("disabled"))}),a.eachNode(function(h){var v=h.getLayout(),g=h.getModel(),y=g.get("localX"),m=g.get("localY"),d=g.getModel("emphasis"),x=g.get(["itemStyle","borderRadius"])||0,S=new ee({shape:{x:y!=null?y*l:v.x,y:m!=null?m*u:v.y,width:v.dx,height:v.dy,r:x},style:g.getModel("itemStyle").getItemStyle(),z2:10});or(S,er(g),{labelFetcher:{getFormattedLabel:function(T,A){return t.getFormattedLabel(T,A,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),pr(S,g),o.add(S),c.setItemGraphicEl(h.dataIndex,S),Yt(S).dataType="node";var w=d.get("focus");Ie(S,w==="adjacency"?h.getAdjacentDataIndices():w==="trajectory"?h.getTrajectoryDataIndices():w,d.get("blurScope"),d.get("disabled"))}),c.eachItemGraphicEl(function(h,v){var g=c.getItemModel(v);if(g.get("draggable"))h.drift=function(y,m){this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(v),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move"}),!this._data&&t.isAnimationEnabled())o.setClipPath(jwt(o.getBoundingRect(),t,function(){o.removeClipPath()}));this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,i,n){ss(this.group,go,i.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,i){var n=t.layoutInfo,a=t.coordinateSystem=em(t,i,n.x,n.y,n.width,n.height);ss(this.group,go,a,this._firstRender?null:t)},e.type=yo,e}(Ce);EK=Zwt});function Xwt(r,e){r.eachSeriesByType(yo,function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=Je(t,e).refContainer,o=Be(t.getBoxLayoutParams(),a);t.layoutInfo=o;var{width:s,height:l}=o,u=t.getGraph(),{nodes:c,edges:f}=u;qwt(c);var p=be(c,function(y){return y.getLayout().value===0}),h=p.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),g=t.get("nodeAlign");Kwt(c,f,i,n,s,l,h,v,g)})}function Kwt(r,e,t,i,n,a,o,s,l){Jwt(r,e,t,n,a,s,l),eTt(r,e,a,n,i,o,s),cTt(r,s)}function qwt(r){P(r,function(e){var t=Pf(e.outEdges,WT),i=Pf(e.inEdges,WT),n=e.getValue()||0,a=Math.max(t,i,n);e.setLayout({value:a},!0)})}function Jwt(r,e,t,i,n,a,o){var s=[],l=[],u=[],c=[],f=0;for(var p=0;p<e.length;p++)s[p]=1;for(var p=0;p<r.length;p++)if(l[p]=r[p].inEdges.length,l[p]===0)u.push(r[p]);var h=-1;while(u.length){for(var v=0;v<u.length;v++){var g=u[v],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=y.depth!=null&&y.depth>=0;if(m&&y.depth>h)h=y.depth;g.setLayout({depth:m?y.depth:f},!0),a==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var d=0;d<g.outEdges.length;d++){var x=g.outEdges[d],S=Xt(e,x);s[S]=0;var w=x.node2,T=Xt(r,w);if(--l[T]===0&&Xt(c,w)<0)c.push(w)}}++f,u=c,c=[]}for(var p=0;p<s.length;p++)if(s[p]===1)throw Error("Sankey is a DAG, the original data has cycle!");var A=h>f-1?h:f-1;if(o&&o!=="left")$wt(r,o,a,A);var M=a==="vertical"?(n-t)/A:(i-t)/A;tTt(r,M,a)}function DK(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function $wt(r,e,t,i){if(e==="right"){var n=[],a=r,o=0;while(a.length){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];if(Xt(n,c.node1)<0)n.push(c.node1)}}a=n,n=[],++o}P(r,function(f){if(!DK(f))f.setLayout({depth:Math.max(0,i-f.getLayout().skNodeHeight)},!0)})}else if(e==="justify")Qwt(r,i)}function Qwt(r,e){P(r,function(t){if(!DK(t)&&!t.outEdges.length)t.setLayout({depth:e},!0)})}function tTt(r,e,t){P(r,function(i){var n=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:n},!0):i.setLayout({x:n},!0)})}function eTt(r,e,t,i,n,a,o){var s=rTt(r,o);iTt(s,e,t,i,n,o),yO(s,n,t,i,o);for(var l=1;a>0;a--)l*=0.99,nTt(s,l,o),yO(s,n,t,i,o),uTt(s,l,o),yO(s,n,t,i,o)}function rTt(r,e){var t=[],i=e==="vertical"?"y":"x",n=Bg(r,function(a){return a.getLayout()[i]});return Pr(n.keys),P(n.keys,function(a){t.push(n.buckets.get(a))}),t}function iTt(r,e,t,i,n,a){var o=1/0;P(r,function(s){var l=s.length,u=0;P(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(i-(l-1)*n)/u:(t-(l-1)*n)/u;if(c<o)o=c}),P(r,function(s){P(s,function(l,u){var c=l.getLayout().value*o;if(a==="vertical")l.setLayout({x:u},!0),l.setLayout({dx:c},!0);else l.setLayout({y:u},!0),l.setLayout({dy:c},!0)})}),P(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function yO(r,e,t,i,n){var a=n==="vertical"?"x":"y";P(r,function(o){o.sort(function(g,y){return g.getLayout()[a]-y.getLayout()[a]});var s,l,u,c=0,f=o.length,p=n==="vertical"?"dx":"dy";for(var h=0;h<f;h++){if(l=o[h],u=c-l.getLayout()[a],u>0)s=l.getLayout()[a]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0);c=l.getLayout()[a]+l.getLayout()[p]+e}var v=n==="vertical"?i:t;if(u=c-e-v,u>0){s=l.getLayout()[a]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h){if(l=o[h],u=l.getLayout()[a]+l.getLayout()[p]+e-c,u>0)s=l.getLayout()[a]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0);c=l.getLayout()[a]}}})}function nTt(r,e,t){P(r.slice().reverse(),function(i){P(i,function(n){if(n.outEdges.length){var a=Pf(n.outEdges,aTt,t)/Pf(n.outEdges,WT);if(isNaN(a)){var o=n.outEdges.length;a=o?Pf(n.outEdges,oTt,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(a-Rf(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(a-Rf(n,t))*e;n.setLayout({y:l},!0)}}})})}function aTt(r,e){return Rf(r.node2,e)*r.getValue()}function oTt(r,e){return Rf(r.node2,e)}function sTt(r,e){return Rf(r.node1,e)*r.getValue()}function lTt(r,e){return Rf(r.node1,e)}function Rf(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function WT(r){return r.getValue()}function Pf(r,e,t){var i=0,n=r.length,a=-1;while(++a<n){var o=+e(r[a],t);if(!isNaN(o))i+=o}return i}function uTt(r,e,t){P(r,function(i){P(i,function(n){if(n.inEdges.length){var a=Pf(n.inEdges,sTt,t)/Pf(n.inEdges,WT);if(isNaN(a)){var o=n.inEdges.length;a=o?Pf(n.inEdges,lTt,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(a-Rf(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(a-Rf(n,t))*e;n.setLayout({y:l},!0)}}})})}function cTt(r,e){var t=e==="vertical"?"x":"y";P(r,function(i){i.outEdges.sort(function(n,a){return n.node2.getLayout()[t]-a.node2.getLayout()[t]}),i.inEdges.sort(function(n,a){return n.node1.getLayout()[t]-a.node1.getLayout()[t]})}),P(r,function(i){var n=0,a=0;P(i.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),P(i.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}var LK;var IK=k(()=>{Z();yt();U0();ur();te();LK=Ke(yo,Xwt)});function fTt(r){r.eachSeriesByType(yo,function(e){var t=e.getGraph(),{nodes:i,edges:n}=t;if(i.length){var a=1/0,o=-1/0;P(i,function(s){var l=s.getLayout().value;if(l<a)a=l;if(l>o)o=l}),P(i,function(s){var l=new oi({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);if(c!=null)s.setVisual("color",c),s.setVisual("style",{fill:c});else s.setVisual("color",u),s.setVisual("style",{fill:u})})}if(n.length)P(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}var PK;var RK=k(()=>{Z();If();U0();yt();PK=Ke(yo,fTt)});function _O(r){r.registerChartView(EK),r.registerSeriesModel(AK),r.registerLayout(LK),r.registerVisual(PK),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:cn,subType:yo,query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),tm(r,cn,yo)}var OK=k(()=>{MK();U0();gi();tc();IK();RK()});function _m(r,e){var t=e.ends.length,i=0;for(var n=0;n<t;n++)if(r.contain(e.ends[n][0],e.ends[n][1]))i++;return!i?hf:i<t?pf:ff}var YT;var V0=k(()=>{Mh();Z();Ry();Ol();Ks();YT=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var i,n=t.getComponent("xAxis",this.get("xAxisIndex")),a=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=a.get("type"),l,u=e.layout;if(o==="category")u="horizontal",i=n.getOrdinalMeta(),l=!this._hasEncodeRule("x");else if(s==="category")u="vertical",i=a.getOrdinalMeta(),l=!this._hasEncodeRule("y");if(!u)u=s==="time"?"vertical":"horizontal";this._layout=u;var c=["x","y"],f=u==="horizontal"?0:1,p=this._baseAxisDim=c[f],h=c[1-f],v=[n,a],g=v[f].get("type"),y=v[1-f].get("type"),m=e.data;if(m&&l){var d=[];P(m,function(w,T){var A;if(it(w))A=w.slice(),w.unshift(T);else if(it(w.value))A=et({},w),A.value=A.value.slice(),w.value.unshift(T);else A=w;d.push(A)}),e.data=d}var x=this.defaultValueDimensions,S=[{name:p,type:dh(g),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:dh(y),dimsDef:x.slice()}];return vo(this,{coordDimensions:S,dimensionsCount:x.length+1,encodeDefaulter:ne(Ib,S,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r}()});var us="boxplot",kK,NK;var ZT=k(()=>{dt();Zr();V0();Z();we();kK=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series."+us,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:Q.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}},animationDuration:800},e}(Pe);dr(kK,YT,!0);NK=kK});function zK(r,e,t,i,n){var a=r.ends,o=new dTt({shape:{points:n?vTt(a,i,r):a}});return BK(r,o,e,t,n),o}function BK(r,e,t,i,n){var a=t.hostModel,o=pe[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},a,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");pr(e,s),Ie(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function vTt(r,e,t){return nt(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}var pTt,hTt,dTt,UK;var VK=k(()=>{dt();Xr();jt();tr();Br();ZT();Ki();V0();Ks();Z();pTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=us,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this.group,s=this._data;if(!this._data)o.removeAll();var l=t.getWhiskerBoxesLayout()==="horizontal"?1:0,u=t.get("clip",!0),c=t.coordinateSystem,f=c.getArea&&c.getArea(),p=u&&ho(c,!1,t);a.diff(s).add(function(h){if(a.hasValue(h)){var v=a.getItemLayout(h),g=u?_m(f,v):ff;if(g===hf)return;var y=zK(v,a,h,l,!0);df(g===pf,y,p),a.setItemGraphicEl(h,y),o.add(y)}}).update(function(h,v){var g=s.getItemGraphicEl(v);if(!a.hasValue(h)){o.remove(g);return}var y=a.getItemLayout(h),m=u?_m(f,y):ff;if(m===hf){o.remove(g);return}if(!g)g=zK(y,a,h,l);else pi(g),BK(y,g,a,h);df(m===pf,g,p),o.add(g),a.setItemGraphicEl(h,g)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&o.remove(v)}).execute(),this._data=a},e.prototype.remove=function(t){var i=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(a){a&&i.remove(a)})},e.type=us,e}(Ce),hTt=function(){function r(){}return r}(),dTt=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new hTt},e.prototype.buildPath=function(t,i){var n=i.points,a=0;t.moveTo(n[a][0],n[a][1]),a++;for(;a<4;a++)t.lineTo(n[a][0],n[a][1]);t.closePath();for(;a<n.length;a++)t.moveTo(n[a][0],n[a][1]),a++,t.lineTo(n[a][0],n[a][1])},e}($t);UK=pTt});function gTt(r){var e=qu(us);Pv(r,e,function(t){var i=M8(t,e);if(!i)return;var n=yTt(t,i);Hl(t,e,function(a){var o=a.seriesIndex;_Tt(a,n.boxOffsetList[o],n.boxWidthList[o])})})}function yTt(r,e){var t=[],i=[],n=[],a=Dr(r,{fromStat:{key:qu(us)},min:1}).w;Hl(r,qu(us),function(c){var f=c.get("boxWidth");if(!it(f))f=[f,f];n[c.seriesIndex]=[wt(f[0],a)||0,wt(f[1],a)||0]});var o=a*0.8-2,s=o/e*0.3,l=(o-s*(e-1))/e,u=l/2-o/2;return Hl(r,qu(us),function(c){var f=c.seriesIndex;i[f]=u,u+=s+l,t[f]=ke(ce(l,n[f][0]),n[f][1])}),{boxOffsetList:i,boxWidthList:t}}function _Tt(r,e,t){var i=r.coordinateSystem,n=r.getData(),a=t/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),c=n.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<n.count();f++){var p=n.get(u,f),h=x(p,c[2],f),v=x(p,c[0],f),g=x(p,c[1],f),y=x(p,c[3],f),m=x(p,c[4],f),d=[];S(d,g,!1),S(d,y,!0),d.push(v,g,m,y),w(d,v),w(d,m),w(d,h),n.setItemLayout(f,{initBaseline:h[s],ends:d})}function x(T,A,M){var D=n.get(A,M),L=[];L[o]=T,L[s]=D;var I;if(isNaN(T)||isNaN(D))I=[NaN,NaN];else I=i.dataToPoint(L),I[o]+=e;return I}function S(T,A,M){var D=A.slice(),L=A.slice();D[o]+=a,L[o]-=a,M?T.push(D,L):T.push(L,D)}function w(T,A){var M=A.slice(),D=A.slice();M[o]-=a,D[o]+=a,T.push(M,D)}}function GK(r){mTt(r,function(){var e=qu(us);Rv(r,{key:e,seriesType:us,getMetrics:Yv}),of(e,yf(e))})}var mTt,FK;var HK=k(()=>{Z();te();ZT();ta();yt();po();za();Zv();mTt=Go(),FK=Ke(us,gTt)});function xO(r,e){e=e||{};var t=[],i=[],n=e.boundIQR,a=n==="none"||n===0;for(var o=0;o<r.length;o++){var s=Pr(r[o].slice()),l=lS(s,0.25),u=lS(s,0.5),c=lS(s,0.75),f=s[0],p=s[s.length-1],h=(n==null?1.5:n)*(c-l),v=a?f:Math.max(f,l-h),g=a?p:Math.min(p,c+h),y=e.itemNameFormatter,m=Mt(y)?y({value:o}):ht(y)?y.replace("{value}",o+""):o+"";t.push([m,v,l,u,c,g]);for(var d=0;d<s.length;d++){var x=s[d];if(x<v||x>g){var S=[m,x];i.push(S)}}}return{boxData:t,outliers:i}}var WK=k(()=>{te();Z()});var YK;var ZK=k(()=>{WK();Vo();gi();YK={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ai){var i="";Ue(i)}var n=xO(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}}});function SO(r){r.registerSeriesModel(NK),r.registerChartView(UK),r.registerLayout(FK),r.registerTransform(YK),GK(r)}var jK=k(()=>{ZT();VK();HK();ZK()});var cs="candlestick",XK,KK;var xm=k(()=>{dt();Zr();V0();Z();XK=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,n){var a=i.getItemLayout(t);return a&&n.rect(a.brushRect)},e.type="series."+cs,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3000,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Pe);dr(XK,YT,!0);KK=XK});function jT(r,e){return e.get(r>0?wTt:TTt)}function XT(r,e){return e.get(r===0?bTt:r>0?xTt:STt)}var xTt,STt,bTt,wTt,TTt,ATt,qK;var bO=k(()=>{Jc();xm();Z();xTt=["itemStyle","borderColor"],STt=["itemStyle","borderColor0"],bTt=["itemStyle","borderColorDoji"],wTt=["itemStyle","color"],TTt=["itemStyle","color0"];ATt={seriesType:cs,plan:qn(),performRawSeries:!0,reset:function(r,e){if(e.isSeriesFiltered(r))return;var t=r.pipelineContext.large;return!t&&{progress:function(i,n){var a;while((a=i.next())!=null){var o=n.getItemModel(a),s=n.getItemLayout(a).sign,l=o.getItemStyle();l.fill=jT(s,o),l.stroke=XT(s,o)||l.fill;var u=n.ensureUniqueItemVisual(a,"style");et(u,l)}}}}},qK=ATt});function wO(r,e,t,i){var n=r.ends;return new LTt({shape:{points:i?DTt(n,t,r):n},z2:100})}function TO(r,e,t,i){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var a=n.getShallow("cursor");a&&r.attr("cursor",a),r.__simpleBox=i,pr(r,n);var o=e.getItemLayout(t).sign;P(r.states,function(l,u){var c=n.getModel(u),f=jT(o,c),p=XT(o,c)||f,h=l.style||(l.style={});f&&(h.fill=f),p&&(h.stroke=p)});var s=n.getModel("emphasis");Ie(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function DTt(r,e,t){return nt(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}function JK(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}function $K(r,e,t,i){var n=r.getData(),a=n.getLayout("largePoints"),o=new AO({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new AO({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new AO({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});if(e.add(l),CO(1,o,r,n),CO(-1,s,r,n),CO(0,l,r,n),i)o.incremental=ln(r),s.incremental=ln(r),l.incremental=ln(r);if(t)t.push(o,s,l)}function CO(r,e,t,i){var n=XT(r,t)||jT(r,t),a=t.getModel("itemStyle").getItemStyle(CTt);e.useStyle(a),e.style.fill=null,e.style.stroke=n;var o=t.get("cursor");o&&e.attr("cursor",o)}var CTt,ETt,MTt,LTt,ITt,AO,QK;var tq=k(()=>{dt();Z();Xr();jt();tr();Br();Ks();xm();Ki();bO();V0();yt();CTt=["color","borderColor"],ETt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,n,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Kn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;if(this._isLargeDraw==null||i!==this._isLargeDraw)this._isLargeDraw=i,this._clear()},e.prototype._renderNormal=function(t){var i=t.getData(),n=this._data,a=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),c=s&&ho(l,!1,t);if(!this._data)a.removeAll();var f=JK(t);i.diff(n).add(function(p){if(i.hasValue(p)){var h=i.getItemLayout(p),v=s?_m(u,h):ff;if(v===hf)return;var g=wO(h,p,f,!0);ze(g,{shape:{points:h.ends}},t,p),df(v===pf,g,c),TO(g,i,p,o),a.add(g),i.setItemGraphicEl(p,g)}}).update(function(p,h){var v=n.getItemGraphicEl(h);if(!i.hasValue(p)){a.remove(v);return}var g=i.getItemLayout(p),y=s?_m(u,g):ff;if(y===hf){a.remove(v);return}if(!v)v=wO(g,p,f);else ge(v,{shape:{points:g.ends}},t,p),pi(v);TO(v,i,p,o),df(y===pf,v,c),a.add(v),i.setItemGraphicEl(p,v)}).remove(function(p){var h=n.getItemGraphicEl(p);h&&a.remove(h)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),$K(t,this.group);var i=t.get("clip",!0)?ho(t.coordinateSystem,!1,t):null;df(!!i,this.group,i)},e.prototype._incrementalRenderNormal=function(t,i){var n=i.getData(),a=n.getLayout("isSimpleBox"),o=JK(i),s;while((s=t.next())!=null){var l=n.getItemLayout(s),u=wO(l,s,o);TO(u,n,s,a),u.incremental=ln(i),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,i){$K(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),df(!1,this.group,null),this._data=null},e.type=cs,e}(Ce),MTt=function(){function r(){}return r}(),LTt=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new MTt},e.prototype.buildPath=function(t,i){var n=i.points;if(this.__simpleBox)t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1]);else t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1])},e}($t);ITt=function(){function r(){}return r}(),AO=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new ITt},e.prototype.buildPath=function(t,i){var n=i.points;for(var a=0;a<n.length;)if(this.__sign===n[a++]){var o=n[a++];t.moveTo(o,n[a++]),t.lineTo(o,n[a++])}else a+=3},e}($t);QK=ETt});function EO(r){if(!r||!it(r.series))return;P(r.series,function(e){if(Pt(e)&&e.type==="k")e.type=cs})}var eq=k(()=>{Z();xm()});function rq(r,e,t,i,n,a){var o;if(t>i)o=-1;else if(t<i)o=1;else o=a?0:e>0?r.get(n,e-1)<=i?1:-1:1;return o}function RTt(r,e){var t=r.getBaseAxis(),i=Dr(t,{fromStat:{key:qu(cs)},min:1}).w,n=wt(St(r.get("barMaxWidth"),i),i),a=wt(St(r.get("barMinWidth"),1),i),o=r.get("barWidth");return o!=null?wt(o,i):ce(ke(i/2,n),a)}function nq(r){PTt(r,function(){var e=qu(cs);Rv(r,{key:e,seriesType:cs,getMetrics:Yv}),of(e,yf(e))})}var PTt,iq;var aq=k(()=>{jt();Jc();te();Z();xm();Th();yt();ta();po();Zv();za();PTt=Go(),iq={seriesType:cs,plan:qn(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=RTt(r,t),n=r.getWhiskerBoxesLayout()==="horizontal"?0:1,a=1-n,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=nt(t.mapDimensionsAll(o[a]),t.getDimensionIndex,t),u=l[0],c=l[1],f=l[2],p=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?v:h};function h(g,y){var m,d=y.getStore();while((m=g.next())!=null){var x=d.get(s,m),S=d.get(u,m),w=d.get(c,m),T=d.get(f,m),A=d.get(p,m),M=ke(S,w),D=ce(S,w),L=H(M,x),I=H(D,x),E=H(T,x),R=H(A,x),B=[];K(B,I,0),K(B,L,1),B.push(G(R),G(I),G(E),G(L));var z=y.getItemModel(m),V=!!z.get(["itemStyle","borderColorDoji"]);y.setItemLayout(m,{sign:rq(d,m,S,w,c,V),initBaseline:S>w?I[a]:L[a],ends:B,brushRect:F(T,A,x)})}function H(rt,ot){var at=[];return at[n]=ot,at[a]=rt,isNaN(ot)||isNaN(rt)?[NaN,NaN]:e.dataToPoint(at)}function K(rt,ot,at){var mt=ot.slice(),Tt=ot.slice();mt[n]=ay(mt[n]+i/2,1,!1),Tt[n]=ay(Tt[n]-i/2,1,!0),at?rt.push(mt,Tt):rt.push(Tt,mt)}function F(rt,ot,at){var mt=H(rt,at),Tt=H(ot,at);return mt[n]-=i/2,Tt[n]-=i/2,{x:mt[0],y:mt[1],width:a?i:Tt[0]-mt[0],height:a?Tt[1]-mt[1]:i}}function G(rt){return rt[n]=ay(rt[n],1),rt}}function v(g,y){var m=ia(g.count*4),d=0,x,S=[],w=[],T,A=y.getStore(),M=!!r.get(["itemStyle","borderColorDoji"]);while((T=g.next())!=null){var D=A.get(s,T),L=A.get(u,T),I=A.get(c,T),E=A.get(f,T),R=A.get(p,T);if(isNaN(D)||isNaN(E)||isNaN(R)){m[d++]=NaN,d+=3;continue}m[d++]=rq(A,T,L,I,c,M),S[n]=D,S[a]=E,x=e.dataToPoint(S,null,w),m[d++]=x?x[0]:NaN,m[d++]=x?x[1]:NaN,S[a]=R,x=e.dataToPoint(S,null,w),m[d++]=x?x[1]:NaN}y.setLayout("largePoints",m)}}}});function MO(r){r.registerChartView(QK),r.registerSeriesModel(KK),r.registerPreprocessor(EO),r.registerVisual(qK),r.registerLayout(iq),nq(r)}var oq=k(()=>{tq();xm();eq();bO();aq()});function sq(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var OTt,lq;var uq=k(()=>{dt();qi();jt();tr();l0();OTt=function(r){W(e,r);function e(t,i){var n=r.call(this)||this,a=new ju(t,i),o=new Lt;return n.add(a),n.add(o),n.updateData(t,i),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){var{symbolType:i,color:n,rippleNumber:a}=t,o=this.childAt(1);for(var s=0;s<a;s++){var l=ir(i,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:0.5,scaleY:0.5});var u=-s/a*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}sq(o,t)},e.prototype.updateEffectAnimation=function(t){var i=this._effectCfg,n=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"];for(var o=0;o<a.length;o++){var s=a[o];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}sq(n,t)},e.prototype.highlight=function(){An(this)},e.prototype.downplay=function(){Cn(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var n=this,a=t.hostModel;this.childAt(0).updateData(t,i);var o=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=Us(t.getItemVisual(i,"symbolSize")),c=t.getItemVisual(i,"style"),f=c&&c.fill,p=s.getModel("emphasis");o.setScale(u),o.traverse(function(y){y.setStyle("fill",f)});var h=uo(t.getItemVisual(i,"symbolOffset"),u);if(h)o.x=h[0],o.y=h[1];var v=t.getItemVisual(i,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var g={};if(g.showEffectOn=a.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1000,g.effectOffset=i/t.count(),g.z=a.getShallow("z")||0,g.zlevel=a.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g;else this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(y){if(y==="emphasis"){if(g.showEffectOn!=="render")n.startEffectAnimation(g)}else if(y==="normal"){if(g.showEffectOn!=="render")n.stopEffectAnimation()}};this._effectCfg=g,Ie(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Lt),lq=OTt});function cq(r){return{clipShape:xw(r)}}var kTt,fq;var pq=k(()=>{dt();Fv();uq();Gv();Xr();Ks();kTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Xl(lq)},e.prototype.render=function(t,i,n){var a=t.getData(),o=this._symbolDraw;o.updateData(a,cq(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,i,n){var a=t.getData();this.group.dirty();var o=qs("").reset(t,i,n);if(o.progress)o.progress({start:0,end:a.count(),count:a.count()},a);this._symbolDraw.updateLayout(cq(t))},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;if(i&&i.getRoamTransform)this.group.transform=YV(i.getRoamTransform()),this.group.decomposeTransform()},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Ce);fq=kTt});var NTt,hq;var dq=k(()=>{dt();Nl();Zr();NTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return $i(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,n){return n.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Pe),hq=NTt});function LO(r){r.registerChartView(fq),r.registerSeriesModel(hq),r.registerLayout(qs("effectScatter"))}var vq=k(()=>{pq();dq();Gv()});var zTt,KT;var DO=k(()=>{dt();jt();IT();Z();qi();br();ga();zTt=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;return a.add(a.createLine(t,i,n)),a._updateEffectSymbol(t,i),a}return e.prototype.createLine=function(t,i,n){return new pm(t,i,n)},e.prototype._updateEffectSymbol=function(t,i){var n=t.getItemModel(i),a=n.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");if(!it(o))o=[o,o];var l=t.getItemVisual(i,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);if(this._symbolType!==s)this.remove(c),c=ir(s,-0.5,-0.5,1,1,u),c.z2=100,c.culling=!0,this.add(c);if(!c)return;c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,a,i)},e.prototype._updateEffectAnimation=function(t,i,n){var a=this.childAt(1);if(!a)return;var o=t.getItemLayout(n),s=i.get("period")*1000,l=i.get("loop"),u=i.get("roundTrip"),c=i.get("constantSpeed"),f=Gr(i.get("delay"),function(h){return h/t.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0)s=this._getLineLength(a)/c*1000;if(s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var p=void 0;if(Mt(f))p=f(n);else p=f;if(a.__t>0)p=-s*a.__t;this._animateSymbol(a,s,p,l,u)}this._period=s,this._loop=l,this._roundTrip=u},e.prototype._animateSymbol=function(t,i,n,a,o){if(i>0){t.__t=0;var s=this,l=t.animate("",a).when(o?i*2:i,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});if(!a)l.done(function(){s.remove(t)});l.start()}},e.prototype._getLineLength=function(t){return Do(t.__p1,t.__cp1)+Do(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,n){this.childAt(0).updateData(t,i,n),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var{__p1:i,__p2:n,__cp1:a}=t,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ci,c=Sg;s[0]=u(i[0],a[0],n[0],o),s[1]=u(i[1],a[1],n[1],o);var f=t.__t<=1?c(i[0],a[0],n[0],o):c(n[0],a[0],i[0],1-o),p=t.__t<=1?c(i[1],a[1],n[1],o):c(n[1],a[1],i[1],1-o);if(t.rotation=-Math.atan2(p,f)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){if(t.scaleY=Do(l,s)*1.05,o===1)s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2}else if(t.__lastT===1)t.scaleY=2*Do(i,s);else t.scaleY=this._symbolScale[1];t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var n=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,n,i)},e}(Lt),KT=zTt});var BTt,qT;var IO=k(()=>{dt();jt();tr();BTt=function(r){W(e,r);function e(t,i,n){var a=r.call(this)||this;return a._createPolyline(t,i,n),a}return e.prototype._createPolyline=function(t,i,n){var a=t.getItemLayout(i),o=new Mr({shape:{points:a}});this.add(o),this._updateCommonStl(t,i,n)},e.prototype.updateData=function(t,i,n){var a=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};ge(o,s,a,i),this._updateCommonStl(t,i,n)},e.prototype._updateCommonStl=function(t,i,n){var a=this.childAt(0),o=t.getItemModel(i),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(t.getItemVisual(i,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var p=a.ensureState("emphasis");p.style=s,Ie(this,l,u,c)},e.prototype.updateLayout=function(t,i){var n=this.childAt(0);n.stopAnimation(),n.setShape("points",t.getItemLayout(i))},e}(Lt),qT=BTt});var UTt,mq;var gq=k(()=>{dt();IO();DO();br();UTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,n){return new qT(t,i,n)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;var n=[0],a=0;for(var o=1;o<i.length;o++){var s=i[o-1],l=i[o];a+=Do(s,l),n.push(a)}if(a===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=a;this._offsets=n,this._length=a},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<=1?t.__t:2-t.__t,n=this._points,a=this._offsets,o=n.length;if(!a)return;var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0;l--)if(a[l]<=i)break;l=Math.min(l,o-2)}else{for(l=s;l<o;l++)if(a[l]>i)break;l=Math.min(l-1,o-2)}var c=(i-a[l])/(a[l+1]-a[l]),f=n[l],p=n[l+1];t.x=f[0]*(1-c)+c*p[0],t.y=f[1]*(1-c)+c*p[1];var h=t.__t<=1?p[0]-f[0]:f[0]-p[0],v=t.__t<=1?p[1]-f[1]:f[1]-p[1];t.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1},e}(KT),mq=UTt});var VTt,FTt,GTt,yq;var _q=k(()=>{dt();jt();lM();lr();we();VTt=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),FTt=function(r){W(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){if(t&&!t.contentRetained)this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new VTt},e.prototype.buildPath=function(t,i){var{segs:n,curveness:a}=i,o;if(i.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],c=n[o++],f=n[o++],p=n[o++];if(t.moveTo(u,c),a>0){var h=(u+f)/2-(c-p)*a,v=(c+p)/2-(f-u)*a;t.quadraticCurveTo(h,v,f,p)}else t.lineTo(f,p)}if(this.incremental)this._off=o,this.notClear=!0},e.prototype.findDataIndex=function(t,i){var n=this.shape,{segs:a,curveness:o}=n,s=this.style.lineWidth;if(n.polyline){var l=0;for(var u=0;u<a.length;){var c=a[u++];if(c>0){var f=a[u++],p=a[u++];for(var h=1;h<c;h++){var v=a[u++],g=a[u++];if(Cl(f,p,v,g,s,t,i))return l}}l++}}else{var l=0;for(var u=0;u<a.length;){var f=a[u++],p=a[u++],v=a[u++],g=a[u++];if(o>0){var y=(f+v)/2-(p-g)*o,m=(p+g)/2-(v-f)*o;if(xS(f,p,y,m,v,g,s,t,i))return l}else if(Cl(f,p,v,g,s,t,i))return l;l++}}return-1},e.prototype.contain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();if(t=n[0],i=n[1],a.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){var i=this.shape,n=i.segs,a=1/0,o=1/0,s=-1/0,l=-1/0;for(var u=0;u<n.length;){var c=n[u++],f=n[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}t=this._rect=new Gt(a,o,s,l)}return t},e}($t),GTt=function(){function r(){this.group=new Lt}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t,i){var n=this._newAdded[0],a=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<20000){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),n.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=i,u.setShape({segs:a}),this._setCommon(u,t),u.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new FTt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("style");if(a&&a.stroke)e.setStyle("stroke",a.stroke);e.setStyle("fill",null);var o=Yt(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;if(l>0)o.dataIndex=l+e.__startIndex})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),yq=GTt});var HTt,JT;var PO=k(()=>{Jc();HTt={seriesType:"lines",plan:qn(),reset:function(r){var e=r.coordinateSystem;if(!e)return;var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(n,a){var o=[];if(i){var s=void 0,l=n.end-n.start;if(t){var u=0;for(var c=n.start;c<n.end;c++)u+=r.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);var f=0,p=[];for(var c=n.start;c<n.end;c++){var h=r.getLineCoords(c,o);if(t)s[f++]=h;for(var v=0;v<h;v++)p=e.dataToPoint(o[v],!1,p),s[f++]=p[0],s[f++]=p[1]}a.setLayout("linesPoints",s)}else for(var c=n.start;c<n.end;c++){var g=a.getItemModel(c),h=r.getLineCoords(c,o),y=[];if(t)for(var m=0;m<h;m++)y.push(e.dataToPoint(o[m]));else{y[0]=e.dataToPoint(o[0]),y[1]=e.dataToPoint(o[1]);var d=g.get(["lineStyle","curveness"]);if(+d)y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*d,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*d]}a.setItemLayout(c,y)}}}}},JT=HTt});var WTt,xq;var Sq=k(()=>{dt();PT();DO();IT();IO();gq();_q();PO();Ks();Xr();yt();jt();WTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this._updateLineDraw(a,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),c=!!qS(n);if(c)u.painter.getLayer(s).clear(!0);if(this._lastZlevel!=null&&c)u.configLayer(this._lastZlevel,{motionBlur:!1});if(this._showEffect(t)&&l>0){if(c)u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+0.9,1),0)})}o.updateData(a);var f=t.get("clip",!0)&&ho(t.coordinateSystem,!1,t);if(f)this.group.setClipPath(f);else this.group.removeClipPath();this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,n){var a=t.getData(),o=this._updateLineDraw(a,t);o.incrementalPrepareUpdate(a),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,n){this._lineDraw.incrementalUpdate(t,i.getData(),ln(i)),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,n){var a=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};else{var s=JT.reset(t,i,n);if(s.progress)s.progress({start:0,end:a.count(),count:a.count()},a);o.updateLayout(),this._clearLayer(n)}},e.prototype._updateLineDraw=function(t,i){var n=this._lineDraw,a=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;if(!n||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw){if(n)n.remove();n=this._lineDraw=l?new yq:new hm(o?a?mq:qT:a?KT:pm),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l}return this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=qS(t);if(i&&this._lastZlevel!=null)i.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(Ce),xq=WTt});function bq(r){var e=r.data;if(e&&e[0]&&e[0][0]&&e[0][0].coord)r.data=nt(e,function(t){var i=[t[0].coord,t[1].coord],n={coords:i};if(t[0].name)n.fromName=t[0].name;if(t[1].name)n.toName=t[1].name;return gd([n,t[0],t[1]])})}var YTt,ZTt,jTt,wq;var Tq=k(()=>{dt();Zr();ts();Z();Rn();YTt=typeof Uint32Array>"u"?Array:Uint32Array,ZTt=typeof Float64Array>"u"?Array:Float64Array;jTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],bq(t);var i=this._processFlatCoordsArray(t.data);if(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords)t.data=new Float32Array(i.count);r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(bq(t),t.data){var i=this._processFlatCoordsArray(t.data);if(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords)t.data=new Float32Array(i.count)}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);if(i.flatCoords){if(!this._flatCoords)this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset;else this._flatCoords=mu(this._flatCoords,i.flatCoords),this._flatCoordsOffset=mu(this._flatCoordsOffset,i.flatCoordsOffset);t.data=new Float32Array(i.count)}this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),n=i.option instanceof Array?i.option:i.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){if(this._flatCoordsOffset)return this._flatCoordsOffset[t*2+1];else return this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){var n=this._flatCoordsOffset[t*2],a=this._flatCoordsOffset[t*2+1];for(var o=0;o<a;o++)i[o]=i[o]||[],i[o][0]=this._flatCoords[n+o*2],i[o][1]=this._flatCoords[n+o*2+1];return a}else{var s=this._getCoordsFromItemModel(t);for(var o=0;o<s.length;o++)i[o]=i[o]||[],i[o][0]=s[o][0],i[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords)i=this._flatCoords.length;if(ue(t[0])){var n=t.length,a=new YTt(n),o=new ZTt(n),s=0,l=0,u=0;for(var c=0;c<n;){u++;var f=t[c++];a[l++]=s+i,a[l++]=f;for(var p=0;p<f;p++){var h=t[c++],v=t[c++];if(o[s++]=h,o[s++]=v,c>n);}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(!1)var n;var a=new Kr(["value"],this);return a.hasItemOption=!1,a.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;else{a.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}}),a},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.getRawValue(t),s=a.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),c=s.get("toName"),f=[];u!=null&&f.push(u),c!=null&&f.push(c),l=f.join(" > ")}return mr("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;if(t==null)return this.option.large?1e4:this.get("progressive");return t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;if(t==null)return this.option.large?20000:this.get("progressiveThreshold");return t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.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:0.2},large:!1,largeThreshold:2000,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:0.5}},e}(Pe),wq=jTt});function $T(r){if(!(r instanceof Array))r=[r,r];return r}var XTt,Aq;var Cq=k(()=>{XTt={seriesType:"lines",reset:function(r){var e=$T(r.get("symbol")),t=$T(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function n(a,o){var s=a.getItemModel(o),l=$T(s.getShallow("symbol",!0)),u=$T(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?n:null}}},Aq=XTt});function RO(r){r.registerChartView(xq),r.registerSeriesModel(wq),r.registerLayout(JT),r.registerVisual(Aq)}var Eq=k(()=>{Sq();Tq();PO();Cq()});var KTt=256,qTt,Mq;var Lq=k(()=>{Ja();we();qTt=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ri.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,n,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,p=f.getContext("2d"),h=e.length;f.width=t,f.height=i;for(var v=0;v<h;++v){var g=e[v],y=g[0],m=g[1],d=g[2],x=n(d);p.globalAlpha=x,p.drawImage(s,y-c,m-c)}if(!f.width||!f.height)return f;var S=p.getImageData(0,0,f.width,f.height),w=S.data,T=0,A=w.length,M=this.minOpacity,D=this.maxOpacity,L=D-M;while(T<A){var x=w[T+3]/256,I=Math.floor(x*(KTt-1))*4;if(x>0){var E=o(x)?l:u;x>0&&(x=x*L+M),w[T++]=E[I],w[T++]=E[I+1],w[T++]=E[I+2],w[T++]=E[I+3]*x*256}else T+=4}return p.putImageData(S,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ri.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var n=e.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor=Q.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){var i=this._gradientPixels,n=i[t]||(i[t]=new Uint8ClampedArray(1024)),a=[0,0,0,0],o=0;for(var s=0;s<256;s++)e[t](s/255,!0,a),n[o++]=a[0],n[o++]=a[1],n[o++]=a[2],n[o++]=a[3];return n},r}(),Mq=qTt});function JTt(r,e,t){var i=r[1]-r[0];e=nt(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var n=e.length,a=0;return function(o){var s;for(s=a;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===n)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<n&&t[s]}}function $Tt(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(i){return i>=e[0]&&i<=e[1]}}var QTt,Dq;var Iq=k(()=>{dt();jt();tr();Lq();Z();Xr();rr();za();yt();QTt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){if(l===t)a=s})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;if(o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix")this._renderOnGridLike(t,n,0,t.getData().count());else if(OI(o))this._renderOnGeo(o,t,a,n)},e.prototype.incrementalPrepareRender=function(t,i,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,n,a){var o=i.coordinateSystem;if(o)if(OI(o))this.render(i,n,a);else this._progressiveEls=[],this._renderOnGridLike(i,a,t.start,t.end,!0)},e.prototype.eachRendered=function(t){Kn(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,i,n,a,o){var s=t.coordinateSystem,l=ns(s,"cartesian2d"),u=ns(s,"matrix"),c,f,p,h;if(l){var v=s.getAxis("x"),g=s.getAxis("y");c=Dr(v).w+0.5,f=Dr(g).w+0.5,p=v.scale.getExtent(),h=g.scale.getExtent()}var y=this.group,m=t.getData(),d=t.getModel(["emphasis","itemStyle"]).getItemStyle(),x=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),w=t.get(["itemStyle","borderRadius"]),T=er(t),A=t.getModel("emphasis"),M=A.get("focus"),D=A.get("blurScope"),L=A.get("disabled"),I=l||u?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")];for(var E=n;E<a;E++){var R=void 0,B=m.getItemVisual(E,"style");if(l){var z=m.get(I[0],E),V=m.get(I[1],E);if(isNaN(m.get(I[2],E))||isNaN(z)||isNaN(V)||z<p[0]||z>p[1]||V<h[0]||V>h[1])continue;var H=s.dataToPoint([z,V]);R=new ee({shape:{x:H[0]-c/2,y:H[1]-f/2,width:c,height:f},style:B})}else if(u){var K=s.dataToLayout([m.get(I[0],E),m.get(I[1],E)]).rect;if(Jr(K.x))continue;R=new ee({z2:1,shape:K,style:B})}else{if(isNaN(m.get(I[1],E)))continue;var F=s.dataToLayout([m.get(I[0],E)]),K=F.contentRect||F.rect;if(Jr(K.x)||Jr(K.y))continue;R=new ee({z2:1,shape:K,style:B})}if(m.hasItemOption){var G=m.getItemModel(E),rt=G.getModel("emphasis");d=rt.getModel("itemStyle").getItemStyle(),x=G.getModel(["blur","itemStyle"]).getItemStyle(),S=G.getModel(["select","itemStyle"]).getItemStyle(),w=G.get(["itemStyle","borderRadius"]),M=rt.get("focus"),D=rt.get("blurScope"),L=rt.get("disabled"),T=er(G)}R.shape.r=w;var ot=t.getRawValue(E),at="-";if(ot&&ot[2]!=null)at=ot[2]+"";if(or(R,T,{labelFetcher:t,labelDataIndex:E,defaultOpacity:B.opacity,defaultText:at}),R.ensureState("emphasis").style=d,R.ensureState("blur").style=x,R.ensureState("select").style=S,Ie(R,M,D,L),R.incremental=ln(t,o),o)R.states.emphasis.hoverLayer=Rs;if(y.add(R),m.setItemGraphicEl(E,R),this._progressiveEls)this._progressiveEls.push(R)}},e.prototype._renderOnGeo=function(t,i,n,a){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new Mq;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var c=t.getViewRect().clone(),f=t.getRoamTransform();c.applyTransform(f);var p=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),y=v-p,m=g-h,d=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(d,function(A,M,D){var L=t.dataToPoint([A,M]);return L[0]-=p,L[1]-=h,L.push(D),L}),S=n.getExtent(),w=n.type==="visualMap.continuous"?$Tt(S,n.option.range):JTt(S,n.getPieceList(),n.option.selected);u.update(x,y,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var T=new _r({style:{width:y,height:m,x:p,y:h,image:u.canvas},silent:!0});this.group.add(T)},e.type="heatmap",e}(Ce),Dq=QTt});var tAt,Pq;var Rq=k(()=>{dt();Zr();Nl();Pa();we();tAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return $i(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=ku.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Q.color.primary}}},e}(Pe),Pq=tAt});function OO(r){r.registerChartView(Dq),r.registerSeriesModel(Pq)}var Oq=k(()=>{Iq();Rq()});function Nq(r,e,t,i){var n=r.getItemLayout(e),a=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),p={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};iAt(t,a,n,i,p),nAt(r,e,n,a,o,p.boundingLength,p.pxSign,c,i,p),aAt(t,p.symbolScale,u,i,p);var h=p.symbolSize,v=uo(t.get("symbolOffset"),h);return oAt(t,h,n,a,o,v,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function iAt(r,e,t,i,n){var a=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),c;if(it(o)){var f=[NO(s,o[0])-l,NO(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else if(o!=null)c=NO(s,o)-l;else if(e)c=i.coordSysExtent[a.index][u]-l;else c=t[a.wh];if(n.boundingLength=c,e)n.repeatCutLength=t[a.wh];var p=a.xy==="x",h=s.inverse;n.pxSign=p&&!h||!p&&h?c>=0?1:-1:c>0?1:-1}function NO(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function nAt(r,e,t,i,n,a,o,s,l,u){var{valueDim:c,categoryDim:f}=l,p=Math.abs(t[f.wh]),h=r.getItemVisual(e,"symbolSize"),v;if(it(h))v=h.slice();else if(h==null)v=["100%","100%"];else v=[h,h];v[f.index]=wt(v[f.index],p),v[c.index]=wt(v[c.index],i?p:Math.abs(a)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function aAt(r,e,t,i,n){var a=r.get(eAt)||0;if(a)kO.attr({scaleX:e[0],scaleY:e[1],rotation:t}),kO.updateTransform(),a/=kO.getLineScale(),a*=e[i.valueDim.index];n.valueLineWidth=a||0}function oAt(r,e,t,i,n,a,o,s,l,u,c,f){var{categoryDim:p,valueDim:h}=c,v=f.pxSign,g=Math.max(e[h.index]+s,0),y=g;if(i){var m=Math.abs(l),d=Gr(r.get("symbolMargin"),"15%")+"",x=!1;if(d.lastIndexOf("!")===d.length-1)x=!0,d=d.slice(0,d.length-1);var S=wt(d,e[h.index]),w=Math.max(g+S*2,0),T=x?0:S*2,A=Og(i),M=A?i:Fq((m+T)/w),D=m-M*g;if(S=D/2/(x?M:Math.max(M-1,1)),w=g+S*2,T=x?0:S*2,!A&&i!=="fixed")M=u?Fq((Math.abs(u)+T)/w):0;y=M*w-T,f.repeatTimes=M,f.symbolMargin=S}var L=v*(y/2),I=f.pathPosition=[];if(I[p.index]=t[p.wh]/2,I[h.index]=o==="start"?L:o==="end"?l-L:l/2,a)I[0]+=a[0],I[1]+=a[1];var E=f.bundlePosition=[];E[p.index]=t[p.xy],E[h.index]=t[h.xy];var R=f.barRectShape=et({},t);R[h.wh]=v*Math.max(Math.abs(t[h.wh]),Math.abs(I[h.index]+L)),R[p.wh]=t[p.wh];var B=f.clipShape={};B[p.xy]=-t[p.xy],B[p.wh]=c.ecSize[p.wh],B[h.xy]=0,B[h.wh]=t[h.wh]}function Gq(r){var e=r.symbolPatternSize,t=ir(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Hq(r,e,t,i){var n=r.__pictorialBundle,{symbolSize:a,valueLineWidth:o,pathPosition:s}=t,l=e.valueDim,u=t.repeatTimes||0,c=0,f=a[e.valueDim.index]+o+t.symbolMargin*2;zO(r,function(g){if(g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u)Sm(g,null,v(c),t,i);else Sm(g,null,{scaleX:0,scaleY:0},t,i,function(){n.remove(g)});c++});for(;c<u;c++){var p=Gq(t);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,n.add(p);var h=v(c);Sm(p,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,i)}function v(g){var y=s.slice(),m=t.pxSign,d=g;if(t.symbolRepeatDirection==="start"?m>0:m<0)d=u-1-g;return y[l.index]=f*(d-u/2+0.5)+s[l.index],{x:y[0],y:y[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function Wq(r,e,t,i){var{__pictorialBundle:n,__pictorialMainPath:a}=r;if(!a)a=r.__pictorialMainPath=Gq(t),n.add(a),Sm(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i);else Sm(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i)}function Yq(r,e,t){var i=et({},e.barRectShape),n=r.__pictorialBarRect;if(!n)n=r.__pictorialBarRect=new ee({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n);else Sm(n,null,{shape:i},e,t)}function Zq(r,e,t,i){if(t.symbolClip){var n=r.__pictorialClipPath,a=et({},t.clipShape),o=e.valueDim,{animationModel:s,dataIndex:l}=t;if(n)ge(n,{shape:a},s,l);else{a[o.wh]=0,n=new ee({shape:a}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],pe[i?"updateProps":"initProps"](n,{shape:u},s,l)}}}function zq(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=sAt,t.isAnimationEnabled=lAt,t}function sAt(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function lAt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Bq(r,e,t,i){var n=new Lt,a=new Lt;if(n.add(a),n.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat)Hq(n,e,t);else Wq(n,e,t);return Yq(n,t,i),Zq(n,e,t,i),n.__pictorialShapeStr=jq(r,t),n.__pictorialSymbolMeta=t,n}function uAt(r,e,t){var{animationModel:i,dataIndex:n}=t,a=r.__pictorialBundle;if(ge(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,n),t.symbolRepeat)Hq(r,e,t,!0);else Wq(r,e,t,!0);Yq(r,t,!0),Zq(r,e,t,!0)}function Uq(r,e,t,i){var n=i.__pictorialBarRect;n&&n.removeTextContent();var a=[];zO(i,function(o){a.push(o)}),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),P(a,function(o){jo(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function jq(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function zO(r,e,t){P(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function Sm(r,e,t,i,n,a){if(e&&r.attr(e),i.symbolClip&&!n)t&&r.attr(t);else t&&pe[n?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,a)}function Vq(r,e,t){var{dataIndex:i,itemModel:n}=t,a=n.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),p=a.get("scale");zO(r,function(g){if(g instanceof _r){var y=g.style;g.useStyle(et({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},t.style))}else g.useStyle(t.style);var m=g.ensureState("emphasis");if(m.style=o,p)m.scaleX=g.scaleX*1.1,m.scaleY=g.scaleY*1.1;g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],v=r.__pictorialBarRect;v.ignoreClip=!0,or(v,er(n),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Xs(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Ie(r,c,f,a.get("disabled"))}function Fq(r){var e=Math.round(r);return Math.abs(r-e)<0.0001?e:Math.ceil(r)}var eAt,kq,kO,rAt,Xq;var Kq=k(()=>{dt();Z();jt();tr();qi();te();Xr();Vv();rr();Yo();lr();Ks();ql();eAt=["itemStyle","borderWidth"],kq=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],kO=new Xn,rAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=_f,t}return e.prototype.render=function(t,i,n){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),p={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:kq[+c],categoryDim:kq[1-+c]};o.diff(s).add(function(v){if(!o.hasValue(v))return;var g=zq(o,v),y=Nq(o,v,g,p),m=Bq(o,p,y);o.setItemGraphicEl(v,m),a.add(m),Vq(m,p,y)}).update(function(v,g){var y=s.getItemGraphicEl(g);if(!o.hasValue(v)){a.remove(y);return}var m=zq(o,v),d=Nq(o,v,m,p),x=jq(o,d);if(y&&x!==y.__pictorialShapeStr)a.remove(y),o.setItemGraphicEl(v,null),y=null;if(y)uAt(y,p,d);else y=Bq(o,p,d,!0);o.setItemGraphicEl(v,y),y.__pictorialSymbolMeta=d,a.add(y),Vq(y,p,d)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&Uq(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var h=t.get("clip",!0)?ho(t.coordinateSystem,!1,t):null;if(h)a.setClipPath(h);else a.removeClipPath();return this._data=o,this.group},e.prototype.remove=function(t,i){var n=this.group,a=this._data;if(t.get("animation")){if(a)a.eachItemGraphicEl(function(o){Uq(a,Yt(o).dataIndex,t,o)})}else n.removeAll()},e.type=_f,e}(Ce);Xq=rAt});var cAt,qq;var Jq=k(()=>{dt();QI();In();we();ql();cAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series."+_f,e.dependencies=["grid"],e.defaultOption=Dn(jv.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Q.color.primary}}}),e}(jv),qq=cAt});function BO(r){r.registerChartView(Xq),r.registerSeriesModel(qq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Mw(_f)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Lw(_f)),Dw(r)}var $q=k(()=>{Kq();Jq();Iw();ql()});var UO=2,oc="themeRiver",fAt,Qq;var QT=k(()=>{dt();Zr();_v();Ry();ts();Z();yt();Lh();Rn();fAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new as(xt(this.getData,this),xt(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,n={},a=Bg(t,function(p){if(!n.hasOwnProperty(p[0]+""))n[p[0]+""]=-1;return p[2]}),o=[];a.buckets.each(function(p,h){o.push({name:h,dataList:p})});var s=o.length;for(var l=0;l<s;++l){var u=o[l].name;for(var c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";n[f]=l}for(var f in n)if(n.hasOwnProperty(f)&&n[f]!==l)n[f]=l,t[i]=[f,0,u],i++}return t},e.prototype.getInitialData=function(t,i){var n=this.getReferringComponents("singleAxis",Xe).models[0],a=n.get("type"),o=be(t.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=gt(),c=0;for(var f=0;f<s.length;++f)if(l.push(s[f][UO]),!u.get(s[f][UO]))u.set(s[f][UO],c),c++;var p=Fs(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:dh(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Kr(p,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){var t=this.getData(),i=t.count(),n=[];for(var a=0;a<i;++a)n[a]=a;var o=t.mapDimension("single"),s=Bg(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,p){return t.get(o,f)-t.get(o,p)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,n){if(!it(t))t=t?[t]:[];var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u;for(var c=0;c<l;++c){var f=Number.MAX_VALUE,p=-1,h=o[c].indices.length;for(var v=0;v<h;++v){var g=a.get(t[0],o[c].indices[v]),y=Math.abs(g-i);if(y<=f)u=g,f=y,p=o[c].indices[v]}s.push(p)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=a.getName(t),s=a.get(a.mapDimension("value"),t);return mr("nameValue",{name:o,value:s})},e.type="series."+oc,e.dependencies=["singleAxis"],e.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}}},e}(Pe),Qq=fAt});function hAt(r,e,t){var i=new ee({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return ze(i,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),i}var pAt,tJ;var eJ=k(()=>{dt();II();jt();tr();rr();Z();Hu();Xr();QT();Ki();pAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=oc,t._layers=[],t}return e.prototype.render=function(t,i,n){var a=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=a.getLayout("layoutInfo"),{rect:c,boundaryGap:f}=u;s.x=0,s.y=c.y+f[0];function p(y){return y.name}var h=new dn(this._layersSeries||[],l,p,p),v=[];h.add(xt(g,this,"add")).update(xt(g,this,"update")).remove(xt(g,this,"remove")).execute();function g(y,m,d){var x=o._layers;if(y==="remove"){s.remove(x[m]);return}var S=[],w=[],T,A=l[m].indices,M=0;for(;M<A.length;M++){var D=a.getItemLayout(A[M]),{x:L,y0:I,y:E}=D;S.push(L,I),w.push(L,I+E),T=a.getItemVisual(A[M],"style")}var R,B=a.getItemLayout(A[0]),z=t.getModel("label"),V=z.get("margin"),H=t.getModel("emphasis");if(y==="add"){var K=v[m]=new Lt;if(R=new _w({shape:{points:S,stackedOnPoints:w,smooth:0.4,stackedOnSmooth:0.4,smoothConstraint:!1},z2:0}),K.add(R),s.add(K),t.isAnimationEnabled())R.setClipPath(hAt(R.getBoundingRect(),t,function(){R.removeClipPath()}))}else{var K=x[d];R=K.childAt(0),s.add(K),v[m]=K,ge(R,{shape:{points:S,stackedOnPoints:w}},t),pi(R)}or(R,er(t),{labelDataIndex:A[M-1],defaultText:a.getName(A[M-1]),inheritColor:T.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var F=R.getTextContent();if(F)F.x=B.x-V,F.y=B.y0+B.y/2;R.useStyle(T),a.setItemGraphicEl(m,R),pr(R,t),Ie(R,H.get("focus"),H.get("blurScope"),H.get("disabled"))}this._layersSeries=l,this._layers=v},e.type=oc,e}(Ce);tJ=pAt});function dAt(r,e){r.eachSeriesByType(oc,function(t){var i=t.getData(),n=t.coordinateSystem,a={},o=n.getRect();a.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=wt(s[0],o.height),s[1]=wt(s[1],o.height);var u=o.height-s[0]-s[1];rJ(i,t,u)}else{s[0]=wt(s[0],o.width),s[1]=wt(s[1],o.width);var c=o.width-s[0]-s[1];rJ(i,t,c)}i.setLayout("layoutInfo",a)})}function rJ(r,e,t){if(!r.count())return;var i=e.coordinateSystem,n=e.getLayerSeries(),a=r.mapDimension("single"),o=r.mapDimension("value"),s=nt(n,function(y){return nt(y.indices,function(m){var d=i.dataToPoint(r.get(a,m));return d[1]=r.get(o,m),d})}),l=vAt(s),u=l.y0,c=t/l.max,f=n.length,p=n[0].indices.length,h;for(var v=0;v<p;++v){h=u[v]*c,r.setItemLayout(n[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var g=1;g<f;++g)h+=s[g-1][v][1]*c,r.setItemLayout(n[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:h,y:s[g][v][1]*c})}}function vAt(r){var e=r.length,t=r[0].length,i=[],n=[],a=0;for(var o=0;o<t;++o){var s=0;for(var l=0;l<e;++l)s+=r[l][o][1];if(s>a)a=s;i.push(s)}for(var u=0;u<t;++u)n[u]=(a-i[u])/2;a=0;for(var c=0;c<t;++c){var f=i[c]+n[c];if(f>a)a=f}return{y0:n,max:a}}var iJ;var nJ=k(()=>{Z();te();QT();yt();iJ=Ke(oc,dAt)});function VO(r){r.registerChartView(tJ),r.registerSeriesModel(Qq),r.registerLayout(iJ),r.registerProcessor(Js(oc))}var aJ=k(()=>{eJ();QT();nJ()});var mAt=2,gAt=4,yAt,FO;var oJ=k(()=>{dt();Z();jt();tr();rr();lr();Kv();dv();Ki();Hg();te();yAt=function(r){W(e,r);function e(t,i,n,a){var o=r.call(this)||this;o.z2=mAt,o.textConfig={inside:!0},Yt(o).seriesIndex=i.seriesIndex;var s=new me({z2:gAt,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,n,a),o}return e.prototype.updateData=function(t,i,n,a,o){this.node=i,i.piece=this,n=n||this._seriesModel,a=a||this._ecModel;var s=this;Yt(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),c=i.getLayout(),f=et({},c);f.label=null;var p=i.getVisual("style");p.lineJoin="bevel";var h=i.getVisual("decal");if(h)p.decal=Vs(h,o);var v=aa(l.getModel("itemStyle"),f,!0);if(et(f,v),P(Ni,function(d){var x=s.ensureState(d),S=l.getModel([d,"itemStyle"]);x.style=S.getItemStyle();var w=aa(S,f);if(w)x.shape=w}),t)s.setShape(f),s.shape.r=c.r0,ze(s,{shape:{r:c.r}},n,i.dataIndex);else ge(s,{shape:f},n),pi(s);s.useStyle(p),this._updateLabel(n);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=n||this._seriesModel,this._ecModel=a||this._ecModel;var y=u.get("focus"),m=y==="relative"?mu(i.getAncestorsIndices(),i.getDescendantIndices()):y==="ancestor"?i.getAncestorsIndices():y==="descendant"?i.getDescendantIndices():y;Ie(this,m,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,n=this.node.getModel(),a=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,p=f.getTextContent(),h=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(v!=null&&Math.abs(s)<v);p.ignore=!g,P(Gc,function(m){var d=m==="normal"?n.getModel("label"):n.getModel([m,"label"]),x=m==="normal",S=x?p:p.ensureState(m),w=t.getFormattedLabel(h,m);if(x)w=w||i.node.name;if(S.style=He(d,{},null,m!=="normal",!0),w)S.style.text=w;var T=d.get("show");if(T!=null&&!x)S.ignore=!T;var A=y(d,"position"),M=x?f:f.states[m],D=M.style.fill;M.textConfig={outsideFill:d.get("color")==="inherit"?D:null,inside:A!=="outside"};var L,I=y(d,"distance")||0,E=y(d,"align"),R=y(d,"rotate"),B=Math.PI*0.5,z=Math.PI*1.5,V=un(R==="tangential"?Math.PI/2-l:l),H=V>B&&!kc(V-B)&&V<z;if(A==="outside")L=o.r+I,E=H?"right":"left";else if(!E||E==="center"){if(o.r0===0&&kc(s-2*Math.PI))L=0;else L=(o.r+o.r0)/2;E="center"}else if(E==="left")L=o.r0+I,E=H?"right":"left";else if(E==="right")L=o.r-I,E=H?"left":"right";S.style.align=E,S.style.verticalAlign=y(d,"verticalAlign")||"middle",S.x=L*u+o.cx,S.y=L*c+o.cy;var K=0;if(R==="radial")K=un(-l)+(H?Math.PI:0);else if(R==="tangential")K=un(Math.PI/2-l)+(H?Math.PI:0);else if(ue(R))K=R*Math.PI/180;S.rotation=un(K)});function y(m,d){var x=m.get(d);if(x==null)return a.get(d);return x}p.dirtyStyle()},e}(Qr),FO=yAt});function sJ(r){var e=0;P(r.children,function(i){sJ(i);var n=i.value;it(n)&&(n=n[0]),e+=n});var t=r.value;if(it(t))t=t[0];if(t==null||isNaN(t))t=e;if(t<0)t=0;it(r.value)?r.value[0]=t:r.value=t}var $l="sunburst",_At,lJ;var F0=k(()=>{dt();Z();Zr();gT();rc();ti();mR();_At=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var n={name:t.name,children:t.data};sJ(n);var a=this._levelModels=nt(t.levels||[],function(l){return new ye(l,this,i)},this),o=am.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),p=a[f.depth];return p&&(u.parentModel=p),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=Df(n,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;if(!t||t!==i&&!i.contains(t))this._viewRoot=i},e.prototype.enableAriaDecal=function(){E0(this)},e.type="series."+$l,e.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:0.2},label:{opacity:0.1}},animationType:"expansion",animationDuration:1000,animationDurationUpdate:500,data:[],sort:"desc"},e}(Pe);lJ=_At});function cJ(r){r.registerAction({type:tA,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n,a){var o=ec(e,[tA],n);if(o){var s=n.getViewRoot();if(s)e.direction=om(s,o.node)?"rollUp":"drillDown";n.resetViewRoot(o.node)}}}),r.registerAction({type:uJ,update:"none"},function(e,t,i){e=et({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a){var o=ec(e,[uJ],a);if(o)e.dataIndex=o.node.dataIndex}i.dispatchAction(et(e,{type:"highlight"}))}),r.registerAction({type:xAt,update:"updateView"},function(e,t,i){e=et({},e),i.dispatchAction(et(e,{type:"downplay"}))})}var tA="sunburstRootToNode",uJ="sunburstHighlight",xAt="sunburstUnhighlight";var GO=k(()=>{Z();rc()});var SAt,fJ;var pJ=k(()=>{dt();Z();Xr();oJ();Hu();F0();GO();pn();SAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=$l,t}return e.prototype.render=function(t,i,n,a){var o=this;this.seriesModel=t,this.api=n,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,f=t.get("renderLabelForZeroData"),p=[];u.eachNode(function(d){p.push(d)});var h=this._oldChildren||[];v(p,h),m(l,u),this._initEvents(),this._oldChildren=p;function v(d,x){if(d.length===0&&x.length===0)return;new dn(x,d,S,S).add(w).update(w).remove(ne(w,null)).execute();function S(T){return T.getId()}function w(T,A){var M=T==null?null:d[T],D=A==null?null:x[A];g(M,D)}}function g(d,x){if(!f&&d&&!d.getValue())d=null;if(d!==l&&x!==l){if(x&&x.piece)if(d)x.piece.updateData(!1,d,t,i,n),s.setItemGraphicEl(d.dataIndex,x.piece);else y(x);else if(d){var S=new FO(d,t,i,n);c.add(S),s.setItemGraphicEl(d.dataIndex,S)}}}function y(d){if(!d)return;if(d.piece)c.remove(d.piece),d.piece=null}function m(d,x){if(x.depth>0){if(o.virtualPiece)o.virtualPiece.updateData(!1,d,t,i,n);else o.virtualPiece=new FO(d,t,i,n),c.add(o.virtualPiece);x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})}else if(o.virtualPiece)c.remove(o.virtualPiece),o.virtualPiece=null}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var n=!1,a=t.seriesModel.getViewRoot();a.eachNode(function(o){if(!n&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";th(u,c)}}n=!0}})})},e.prototype._rootToNode=function(t){if(t!==this.seriesModel.getViewRoot())this.api.dispatchAction({type:tA,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type=$l,e}(Ce),fJ=SAt});function bAt(r){var e={};function t(i,n,a){if(i.depth===0)return Q.color.neutral50;var o=i;while(o&&o.depth>1)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);if(i.depth>1&&ht(s))s=Ox(s,(i.depth-1)/(a-1)*0.5);return s}r.eachSeriesByType($l,function(i){var n=i.getData(),a=n.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();if(!l.fill)l.fill=t(o,i,a.root.height);var u=n.ensureUniqueItemVisual(o.dataIndex,"style");et(u,l)})})}var hJ;var dJ=k(()=>{sn();Z();F0();we();yt();hJ=Ke($l,bAt)});function wAt(r,e){r.eachSeriesByType($l,function(t){var i=t.get("center"),n=t.get("radius");if(!it(n))n=[0,n];if(!it(i))i=[i,i];var a=e.getWidth(),o=e.getHeight(),s=Math.min(a,o),l=wt(i[0],a),u=wt(i[1],o),c=wt(n[0],s/2),f=wt(n[1],s/2),p=-t.get("startAngle")*vJ,h=t.get("minAngle")*vJ,v=t.getData().tree.root,g=t.getViewRoot(),y=g.depth,m=t.get("sort");if(m!=null)gJ(g,m);var d=0;P(g.children,function(z){!isNaN(z.getValue())&&d++});var x=g.getValue(),S=Math.PI/(x||d)*2,w=g.depth>0,T=g.height-(w?-1:1),A=(f-c)/(T||1),M=t.get("clockwise"),D=t.get("stillShowZeroSum"),L=M?1:-1,I=function(z,V){if(!z)return;var H=V;if(z!==v){var K=z.getValue(),F=x===0&&D?S:K*S;if(F<h)F=h;H=V+L*F;var G=z.depth-y-(w?-1:1),rt=c+A*G,ot=c+A*(G+1),at=t.getLevelModel(z);if(at){var mt=at.get("r0",!0),Tt=at.get("r",!0),Ut=at.get("radius",!0);if(Ut!=null)mt=Ut[0],Tt=Ut[1];mt!=null&&(rt=wt(mt,s/2)),Tt!=null&&(ot=wt(Tt,s/2))}z.setLayout({angle:F,startAngle:V,endAngle:H,clockwise:M,cx:l,cy:u,r0:rt,r:ot})}if(z.children&&z.children.length){var qt=0;P(z.children,function(Zt){qt+=I(Zt,V+qt)})}return H-V};if(w){var E=c,R=c+A,B=Math.PI*2;v.setLayout({angle:B,startAngle:p,endAngle:p+B,clockwise:M,cx:l,cy:u,r0:E,r:R})}I(g,p)})}function gJ(r,e){var t=r.children||[];if(r.children=TAt(t,e),t.length)P(r.children,function(i){gJ(i,e)})}function TAt(r,e){if(Mt(e)){var t=nt(r,function(n,a){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:a}});return t.sort(function(n,a){return e(n.params,a.params)}),nt(t,function(n){return r[n.index]})}else{var i=e==="asc";return r.sort(function(n,a){var o=(n.getValue()-a.getValue())*(i?1:-1);return o===0?(n.dataIndex-a.dataIndex)*(i?-1:1):o})}}var vJ,mJ;var yJ=k(()=>{te();Z();F0();yt();vJ=Math.PI/180,mJ=Ke($l,wAt)});function HO(r){r.registerChartView(fJ),r.registerSeriesModel(lJ),r.registerLayout(mJ),r.registerVisual(hJ),cJ(r)}var _J=k(()=>{pJ();F0();dJ();GO();yJ()});var WO,xJ,Ql,AAt,SJ;var YO=k(()=>{dt();Nl();yt();Zr();WO={color:"fill",borderColor:"stroke"},xJ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ql=Ft(),AAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return $i(null,this)},e.prototype.getDataParams=function(t,i,n){var a=r.prototype.getDataParams.call(this,t,i);return n&&(a.info=Ql(n).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Pe),SJ=AAt});function CAt(r,e){return e=e||[0,0],nt(["x","y"],function(t,i){var n=this.getAxis(t),a=e[i],o=r[i]/2;return n.type==="category"?Dr(n).w:Math.abs(n.dataToCoord(a-o)-n.dataToCoord(a+o))},this)}function ZO(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:xt(CAt,r)}}}var bJ=k(()=>{Z();za()});function EAt(r,e){return e=e||[0,0],nt([0,1],function(t){var i=e[t],n=r[t]/2,a=[],o=[];return a[t]=i-n,o[t]=i+n,a[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(a)[t]-this.dataToPoint(o)[t])},this)}function jO(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:QZ(e)},api:{coord:function(i){return r.dataToPoint(i)},size:xt(EAt,r)}}}var wJ=k(()=>{Z();zn()});function MAt(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?Dr(t).w:Math.abs(t.dataToCoord(i-n)-t.dataToCoord(i+n))}function XO(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:xt(MAt,r)}}}var TJ=k(()=>{za();Z()});function LAt(r,e){return e=e||[0,0],nt(["Radius","Angle"],function(t,i){var n="get"+t+"Axis",a=this[n](),o=e[i],s=r[i]/2,l=a.type==="category"?Dr(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));if(t==="Angle")l=l*Math.PI/180;return l},this)}function KO(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(n){var a=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:xt(LAt,r)}}}var AJ=k(()=>{Z();za()});function qO(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,n){return r.dataToPoint(i,n)},layout:function(i,n){return r.dataToLayout(i,n)}}}}function JO(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,i){return r.dataToPoint(t,i)},layout:function(t,i){return r.dataToLayout(t,i)}}}}function QO(r,e,t,i,n){var a=r+"Animation",o=Il(r,i,n)||{},s=bm(e).userDuring;if(o.duration>0)o.during=s?xt(OAt,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r;return et(o,t[a]),o}function wm(r,e,t,i){i=i||{};var n=i.dataIndex,a=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=bm(r),u=e.style;l.userDuring=e.during;var c={},f={};if(NAt(r,e,f),r.type==="compound"){var p=r.shape.paths,h=e.shape.paths;for(var v=0;v<h.length;v++){var g=h[v];$O("shape",g,p[v])}}else $O("shape",e,f),$O("extra",e,f);if(!a&&s)kAt(r,e,c),EJ("shape",r,e,c),EJ("extra",r,e,c),zAt(r,e,u,c);if(f.style=u,DAt(r,f,o),PAt(r,e),s)if(a){var y={};P(G0,function(d){var x=d?e[d]:e;if(x&&x.enterFrom){if(d)y[d]=y[d]||{};et(d?y[d]:y,x.enterFrom)}});var m=QO("enter",r,e,t,n);if(m.duration>0)r.animateFrom(y,m)}else IAt(r,e,n||0,t,c);tk(r,e),u?r.dirty():r.markRedraw()}function tk(r,e){var t=bm(r).leaveToProps;for(var i=0;i<G0.length;i++){var n=G0[i],a=n?e[n]:e;if(a&&a.leaveTo){if(!t)t=bm(r).leaveToProps={};if(n)t[n]=t[n]||{};et(n?t[n]:t,a.leaveTo)}}}function Tm(r,e,t,i){if(r){var n=r.parent,a=bm(r).leaveToProps;if(a){var o=QO("update",r,e,t,0);o.done=function(){n&&n.remove(r),i&&i()},r.animateTo(a,o)}else n&&n.remove(r),i&&i()}}function Of(r){return r==="all"}function DAt(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});var n=r.animators;for(var a=0;a<n.length;a++){var o=n[a];if(o.targetName==="style")o.changeTarget(r.style)}}r.setStyle(i)}if(e)e.style=null,e&&r.attr(e),e.style=i}function IAt(r,e,t,i,n){if(n){var a=QO("update",r,e,i,t);if(a.duration>0)r.animateFrom(n,a)}}function PAt(r,e){if(Bt(e,"silent")&&(r.silent=e.silent),Bt(e,"ignore")&&(r.ignore=e.ignore),r instanceof fi)Bt(e,"invisible")&&(r.invisible=e.invisible);if(r instanceof $t)Bt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}function OAt(){var r=this,e=r.el;if(!e)return;var t=bm(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}tu.el=e,i(RAt)}function EJ(r,e,t,i){var n=t[r];if(!n)return;var a=e[r],o;if(a){var s=t.transition,l=n.transition;if(l)if(!o&&(o=i[r]={}),Of(l))et(o,a);else{var u=Ve(l);for(var c=0;c<u.length;c++){var f=u[c],p=a[f];o[f]=p}}else if(Of(s)||Xt(s,r)>=0){!o&&(o=i[r]={});var h=le(a);for(var c=0;c<h.length;c++){var f=h[c],p=a[f];if(BAt(n[f],p))o[f]=p}}}}function $O(r,e,t){var i=e[r];if(!i)return;var n=t[r]={},a=le(i);for(var o=0;o<a.length;o++){var s=a[o];n[s]=mp(i[s])}}function kAt(r,e,t){var i=e.transition,n=Of(i)?ko:Ve(i||[]);for(var a=0;a<n.length;a++){var o=n[a];if(o==="style"||o==="shape"||o==="extra")continue;var s=r[o];t[o]=s}}function NAt(r,e,t){for(var i=0;i<CJ.length;i++){var n=CJ[i],a=MJ[n],o=e[n];if(o)t[a[0]]=o[0],t[a[1]]=o[1]}for(var i=0;i<ko.length;i++){var s=ko[i];if(e[s]!=null)t[s]=e[s]}}function zAt(r,e,t,i){if(!t)return;var n=r.style,a;if(n){var o=t.transition,s=e.transition;if(o&&!Of(o)){var l=Ve(o);!a&&(a=i.style={});for(var u=0;u<l.length;u++){var c=l[u],f=n[c];a[c]=f}}else if(r.getAnimationStyleProps&&(Of(s)||Of(o)||Xt(s,"style")>=0)){var p=r.getAnimationStyleProps(),h=p?p.style:null;if(h){!a&&(a=i.style={});var v=le(t);for(var u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=n[c];a[c]=f}}}}}}function BAt(r,e){return!ii(r)?r!=null&&isFinite(r):r!==e}var MJ,CJ,gle,yle,G0,bm,tu,RAt;var eA=k(()=>{yt();Z();qx();no();Ki();jt();No();MJ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},CJ=le(MJ),gle=an(ko,function(r,e){return r[e]=1,r},{}),yle=ko.join(", "),G0=["","style","shape","extra"],bm=Ft();tu={},RAt={setTransform:function(r,e){return tu.el[r]=e,this},getTransform:function(r){return tu.el[r]},setShape:function(r,e){var t=tu.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=tu.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=tu.el,i=t.style;if(i)i[r]=e,t.dirtyStyle&&t.dirtyStyle();return this},getStyle:function(r){var e=tu.el.style;if(e)return e[r]},setExtra:function(r,e){var t=tu.el.extra||(tu.el.extra={});return t[r]=e,this},getExtra:function(r){var e=tu.el.extra;if(e)return e[r]}}});function rA(r){r.stopAnimation("keyframe"),r.attr(LJ(r))}function Am(r,e,t){if(!t.isAnimationEnabled()||!e)return;if(it(e)){P(e,function(s){Am(r,s,t)});return}var{keyframes:i,duration:n}=e;if(t&&n==null){var a=Il("enter",t,0);n=a&&a.duration}if(!i||!n)return;var o=LJ(r);P(G0,function(s){if(s&&!r[s])return;var l,u=!1;if(i.sort(function(c,f){return c.percent-f.percent}),P(i,function(c){var f=r.animators,p=s?c[s]:c;if(!p)return;var h=le(p);if(!s)h=be(h,function(y){return Xt(UAt,y)<0});if(!h.length)return;if(!l)l=r.animate(s,e.loop,!0),l.scope="keyframe";for(var v=0;v<f.length;v++)if(f[v]!==l&&f[v].targetName===l.targetName)f[v].stopTracks(h);s&&(o[s]=o[s]||{});var g=s?o[s]:o;P(h,function(y){g[y]=((s?r[s]:r)||{})[y]}),l.whenWithKeys(n*c.percent,p,h,c.easing)}),!l)return;l.delay(e.delay||0).duration(n).start(e.easing)})}var LJ,UAt;var ek=k(()=>{Z();eA();Ki();yt();LJ=Ft(),UAt=["percent","easing","shape","style","extra"]});function ak(r){return r instanceof $t}function ok(r){return r instanceof fi}function HAt(r,e){if(e.copyTransform(r),ok(e)&&ok(r)){if(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,ak(e)&&ak(r))e.setShape(r.shape)}}function uk(r){var e=r.type,t;if(e==="path"){var i=r.shape,n=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=NJ(i);t=Zp(a,null,n,i.layout||"center"),Ql(t).customPathData=a}else if(e==="image")t=new _r({}),Ql(t).customImagePath=r.style.image;else if(e==="text")t=new me({});else if(e==="group")t=new Lt;else if(e==="compoundPath"){var i=r.shape;if(!i||!i.paths){var o="";Ue(o)}var s=nt(i.paths,function(c){if(c.type==="path")return Zp(c.shape.pathData,c,null);var f=Qd(c.type);if(!f){var p="";Ue(p)}return new f});t=new Yc({shape:{paths:s}})}else{var l=Qd(e);if(!l){var o="";Ue(o)}t=new l}return Ql(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function ck(r,e,t,i,n,a,o){rA(e);var s=n&&n.normal.cfg;if(s)e.setTextConfig(s);if(i&&i.transition==null)i.transition=VAt;var l=i&&i.style;if(l){if(e.type==="text"){var u=l;Bt(u,"textFill")&&(u.fill=u.textFill),Bt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=ak(e)?l.decal:null;if(r&&f)f.dirty=!0,c=Vs(f,r);l.__decalPattern=c}if(ok(e)){if(l){var c=l.__decalPattern;if(c)l.decal=c}}wm(e,i,a,{dataIndex:t,isInit:o,clearStyle:!0}),Am(e,i.keyframeAnimation,a)}function OJ(r,e,t,i,n){var a=e.isGroup?null:e,o=n&&n[r].cfg;if(a){var s=a.ensureState(r);if(i===!1){var l=a.getState(r);if(l)l.style=null}else s.style=i||null;if(o)s.textConfig=o;Is(a)}}function YAt(r,e,t){if(r.isGroup)return;var i=r,{currentZ:n,currentZLevel:a}=t;i.z=n,i.zlevel=a;var o=e.z2;o!=null&&(i.z2=o||0);for(var s=0;s<Nf.length;s++)ZAt(i,e,Nf[s])}function ZAt(r,e,t){var i=t===kf,n=i?e:iA(e,t),a=n?n.z2:null,o;if(a!=null)o=i?r:r.ensureState(t),o.z2=a||0}function DJ(r,e,t,i){var n=r.get("renderItem");if(typeof n==="string"){var a=V4(n);if(a)n=a}var o=r.coordinateSystem,s={};if(o)s=o.prepareCustoms?o.prepareCustoms(o):GAt[o.type](o);var l=Dt({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:w,style:A,ordinalRawValue:T,styleEmphasis:M,visual:I,barLayout:E,currentSeriesIndices:R,font:B},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:jAt(r.getData()),itemPayload:r.get("itemPayload")||{}},c,f,p={},h={},v={},g={};for(var y=0;y<Nf.length;y++){var m=Nf[y];v[m]=r.getModel(rk[m]),g[m]=r.getModel(ik[m])}function d(z){return z===c?f||(f=e.getItemModel(z)):e.getItemModel(z)}function x(z,V){return!e.hasItemOption?v[V]:z===c?p[V]||(p[V]=d(z).getModel(rk[V])):d(z).getModel(rk[V])}function S(z,V){return!e.hasItemOption?g[V]:z===c?h[V]||(h[V]=d(z).getModel(ik[V])):d(z).getModel(ik[V])}return function(z,V){return c=z,f=null,p={},h={},n&&n(Dt({dataIndexInside:z,dataIndex:e.getRawIndex(z),actionType:V?V.type:null},u),l)};function w(z,V){return V==null&&(V=c),e.getStore().get(e.getDimensionIndex(z||0),V)}function T(z,V){V==null&&(V=c),z=z||0;var H=e.getDimensionInfo(z);if(!H){var K=e.getDimensionIndex(z);return K>=0?e.getStore().get(K,V):void 0}var F=e.get(H.name,V),G=H&&H.ordinalMeta;return G?G.categories[F]:F}function A(z,V){V==null&&(V=c);var H=e.getItemVisual(V,"style"),K=H&&H.fill,F=H&&H.opacity,G=x(V,kf).getItemStyle();K!=null&&(G.fill=K),F!=null&&(G.opacity=F);var rt={inheritColor:ht(K)?K:Q.color.neutral99},ot=S(V,kf),at=He(ot,null,rt,!1,!0);at.text=ot.getShallow("show")?St(r.getFormattedLabel(V,kf),Xs(e,V)):null;var mt=ly(ot,rt,!1);return L(z,G),G=kI(G,at,mt),z&&D(G,z),G.legacy=!0,G}function M(z,V){V==null&&(V=c);var H=x(V,sc).getItemStyle(),K=S(V,sc),F=He(K,null,null,!0,!0);F.text=K.getShallow("show")?Hr(r.getFormattedLabel(V,sc),r.getFormattedLabel(V,kf),Xs(e,V)):null;var G=ly(K,null,!0);return L(z,H),H=kI(H,F,G),z&&D(H,z),H.legacy=!0,H}function D(z,V){for(var H in V)if(Bt(V,H))z[H]=V[H]}function L(z,V){if(z)z.textFill&&(V.textFill=z.textFill),z.textPosition&&(V.textPosition=z.textPosition)}function I(z,V){if(V==null&&(V=c),Bt(WO,z)){var H=e.getItemVisual(V,"style");return H?H[WO[z]]:null}if(Bt(xJ,z))return e.getItemVisual(V,z)}function E(z){if(o.type==="cartesian2d"){var V=o.getBaseAxis();return zY(Dt({axis:V},z))}}function R(){return t.getCurrentSeriesIndices()}function B(z){return rv(z,t)}}function jAt(r){var e={};return P(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var n=i.coordDim,a=e[n]=e[n]||[];a[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function nk(r,e,t,i,n,a,o){if(!i){a.remove(e);return}var s=fk(r,e,t,i,n,a);return s&&o.setItemGraphicEl(t,s),s&&Ie(s,i.focus,i.blurScope,i.emphasisDisabled),s}function fk(r,e,t,i,n,a){var o=-1,s=e;if(e&&kJ(e,i,n))o=Xt(a.childrenRef(),e),e=null;var l=!e,u=e;if(!u){if(u=uk(i),s)HAt(s,u)}else u.clearStates();if(i.morph===!1)u.disableMorphing=!0;else if(u.disableMorphing)u.disableMorphing=!1;if(i.tooltipDisabled)u.tooltipDisabled=!0;fs.normal.cfg=fs.normal.conOpt=fs.emphasis.cfg=fs.emphasis.conOpt=fs.blur.cfg=fs.blur.conOpt=fs.select.cfg=fs.select.conOpt=null,fs.isLegacy=!1,KAt(u,t,i,n,l,fs),XAt(u,t,i,n,l),ck(r,u,t,i,fs,n,l),Bt(i,"info")&&(Ql(u).info=i.info);for(var c=0;c<Nf.length;c++){var f=Nf[c];if(f!==kf){var p=iA(i,f),h=pk(i,p,f);OJ(f,u,p,h,fs)}}if(YAt(u,i,n),i.type==="group")qAt(r,u,t,i,n);if(o>=0)a.replaceAt(u,o);else a.add(u);return u}function kJ(r,e,t){var i=Ql(r),{type:n,shape:a,style:o}=e;return t.isUniversalTransitionEnabled()||n!=null&&n!==i.customGraphicType||n==="path"&&tCt(a)&&NJ(a)!==i.customPathData||n==="image"&&Bt(o,"image")&&o.image!==i.customImagePath}function XAt(r,e,t,i,n){var a=t.clipPath;if(a===!1){if(r&&r.getClipPath())r.removeClipPath()}else if(a){var o=r.getClipPath();if(o&&kJ(o,a,i))o=null;if(!o)o=uk(a),r.setClipPath(o);ck(null,o,e,a,null,i,n)}}function KAt(r,e,t,i,n,a){if(r.isGroup||r.type==="compoundPath")return;IJ(t,null,a),IJ(t,sc,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=r.getTextContent();if(o===!1)c&&r.removeTextContent();else{if(o=a.normal.conOpt=o||{type:"text"},!c)c=uk(o),r.setTextContent(c);else c.clearStates();ck(null,c,e,o,null,i,n);var f=o&&o.style;for(var p=0;p<Nf.length;p++){var h=Nf[p];if(h!==kf){var v=a[h].conOpt;OJ(h,c,v,pk(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}function IJ(r,e,t){var i=!e?r:iA(r,e),n=!e?r.style:pk(r,i,sc),a=r.type,o=i?i.textConfig:null,s=r.textContent,l=!s?null:!e?s:iA(s,e);if(n&&(t.isLegacy||Sw(n,a,!!o,!!l))){t.isLegacy=!0;var u=bw(n,a,!e);if(!o&&u.textConfig)o=u.textConfig;if(!l&&u.textContent)l=u.textContent}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=!e?t.normal:t[e];f.cfg=o,f.conOpt=l}function iA(r,e){return!e?r:r?r[e]:null}function pk(r,e,t){var i=e&&e.style;if(i==null&&t===sc&&r)i=r.styleEmphasis;return i}function qAt(r,e,t,i,n){var a=i.children,o=a?a.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!o&&!l&&!u)return;if(l){$At({api:r,oldChildren:e.children()||[],newChildren:a||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();var c=0;for(;c<o;c++){var f=a[c],p=e.childAt(c);if(f){if(f.ignore==null)f.ignore=!1;fk(r,p,t,f,n,e)}else p.ignore=!0}for(var h=e.childCount()-1;h>=c;h--){var v=e.childAt(h);JAt(e,v,n)}}function JAt(r,e,t){e&&Tm(e,Ql(r).option,t)}function $At(r){new dn(r.oldChildren,r.newChildren,PJ,PJ,r).add(RJ).update(RJ).remove(QAt).execute()}function PJ(r,e){var t=r&&r.name;return t!=null?t:FAt+e}function RJ(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;fk(t.api,n,t.dataIndex,i,t.seriesModel,t.group)}function QAt(r){var e=this.context,t=e.oldChildren[r];t&&Tm(t,Ql(t).option,e.seriesModel)}function NJ(r){return r&&(r.pathData||r.d)}function tCt(r){return r&&(Bt(r,"pathData")||Bt(r,"d"))}var sc="emphasis",kf="normal",sk="blur",lk="select",Nf,rk,ik,VAt,FAt="e\x00\x00",fs,GAt,WAt,zJ;var BJ=k(()=>{dt();Z();jt();tr();rr();Vv();Iw();Hu();Xr();Ks();bJ();wJ();TJ();AJ();no();NI();Vo();dv();YO();eA();ek();rD();we();yt();Nf=[kf,sc,sk,lk],rk={normal:["itemStyle"],emphasis:[sc,"itemStyle"],blur:[sk,"itemStyle"],select:[lk,"itemStyle"]},ik={normal:["label"],emphasis:[sc,"label"],blur:[sk,"label"],select:[lk,"label"]},VAt=["x","y"],fs={normal:{},emphasis:{},blur:{},select:{}},GAt={cartesian2d:ZO,geo:jO,single:XO,polar:KO,calendar:qO,matrix:JO};WAt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=DJ(t,s,i,n);if(!o)l.removeAll();s.diff(o).add(function(f){nk(n,null,f,u(f,a),t,l,s)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&Tm(p,Ql(p).option,t)}).update(function(f,p){var h=o.getItemGraphicEl(p);nk(n,h,f,u(f,a),t,l,s)}).execute();var c=t.get("clip",!0)?ho(t.coordinateSystem,!1,t):null;if(c)l.setClipPath(c);else l.removeClipPath();this._data=s},e.prototype.incrementalPrepareRender=function(t,i,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,n,a,o){var s=i.getData(),l=DJ(i,s,n,a),u=this._progressiveEls=[];function c(h){if(!h.isGroup)h.incremental=ln(i),h.ensureState("emphasis").hoverLayer=Rs}for(var f=t.start;f<t.end;f++){var p=nk(null,null,f,l(f,o),i,this.group,s);if(p)p.traverse(c),u.push(p)}},e.prototype.eachRendered=function(t){Kn(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,n,a){var o=i.element;if(o==null||n.name===o)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===o)return!0;return!1},e.type="custom",e}(Ce),zJ=WAt});function hk(r){r.registerChartView(zJ),r.registerSeriesModel(SJ)}var UJ=k(()=>{YO();BJ()});var VJ=k(()=>{_Y();a7();y7();MP();bZ();C9();Z9();Tj();cX();xX();EX();OX();TK();OK();jK();oq();vq();Eq();Oq();$q();aJ();_J();UJ()});function GJ(r,e,t,i){if(!YJ(Xh(t).lastProp,i))Xh(t).lastProp=i,e?ge(t,i,r):(t.stopAnimation(),t.attr(i))}function YJ(r,e){if(Pt(r)&&Pt(e)){var t=!0;return P(e,function(i,n){t=t&&YJ(r[n],i)}),!!t}else return r===e}function HJ(r,e){r[e.get(["label","show"])?"show":"hide"]()}function vk(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function WJ(r,e,t){var i=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(a){if(a.type!=="group")i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=t})}var Xh,FJ,dk,eCt,Cm;var nA=k(()=>{Z();jt();m0();pl();yt();za();Xh=Ft(),FJ=It,dk=xt,eCt=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,n){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!n&&this._lastValue===a&&this._lastStatus===o)return;this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,i);var c=u.graphicKey;if(c!==this._lastGraphicKey)this.clear(i);this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Lt,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var p=ne(GJ,t,f);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}WJ(s,t,!0),this._renderHandle(a)},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),n=e.axis,a=n.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&Dr(n).w>s)return!0;if(o){var l=Vw(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,n,a){},r.prototype.createPointerEl=function(e,t,i,n){var a=t.pointer;if(a){var o=Xh(e).pointerEl=new pe[a.type](FJ(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,n){if(t.label){var a=Xh(e).labelEl=new me(FJ(t.label));e.add(a),HJ(a,n)}},r.prototype.updatePointerEl=function(e,t,i){var n=Xh(e).pointerEl;if(n&&t.pointer)n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape})},r.prototype.updateLabelEl=function(e,t,i,n){var a=Xh(e).labelEl;if(a)a.setStyle(t.label.style),i(a,{x:t.label.x,y:t.label.y}),HJ(a,n)},r.prototype._renderHandle=function(e){if(this._dragging||!this.updateHandleTransform)return;var t=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;if(!this._handle)s=!0,n=this._handle=Pu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){va(u.event)},onmousedown:dk(this._onHandleDragMove,this,0,0),drift:dk(this._onHandleDragMove,this),ondragend:dk(this._onHandleDragEnd,this)}),i.add(n);WJ(n,t,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");if(!it(l))l=[l,l];n.scaleX=l[0]/2,n.scaleY=l[1]/2,$o(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)},r.prototype._moveHandleToValue=function(e,t){GJ(this._axisPointerModel,!t&&this._moveAnimation,this._handle,vk(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(!i)return;this._dragging=!0;var n=this.updateHandleTransform(vk(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(vk(n)),Xh(i).lastProp=null,this._doDispatchAxisPointer()},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!e)return;var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!e)return;var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;if(t&&i)this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null;Fu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r}();Cm=eCt});function Em(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;if(e==="line")i=t.getLineStyle(),i.fill=null;else if(e==="shadow")i=t.getAreaStyle(),i.stroke=null;return i}function mk(r,e,t,i,n){var a=t.get("value"),o=gk(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Pl(s.get("padding")||0),u=s.getFont(),c=Ic(o,u),f=n.position,p=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=n.align;v==="right"&&(f[0]-=p),v==="center"&&(f[0]-=p/2);var g=n.verticalAlign;g==="bottom"&&(f[1]-=h),g==="middle"&&(f[1]-=h/2),rCt(f,p,h,i);var y=s.get("backgroundColor");if(!y||y==="auto")y=e.get(["axisLine","lineStyle","color"]);r.label={x:f[0],y:f[1],style:He(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function rCt(r,e,t,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function gk(r,e,t,i,n){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Lv(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};if(P(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),ht(o))a=o.replace("{value}",a);else if(Mt(o))a=o(s)}return a}function H0(r,e,t){var i=Qe();return bn(i,i,t.rotation),on(i,i,t.position),fn([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function aA(r,e,t,i,n,a){var o=mn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),mk(e,i,n,a,{position:H0(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Mm(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function oA(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function yk(r,e,t,i,n,a){return{cx:r,cy:e,r0:t,r:i,startAngle:n,endAngle:a,clockwise:!0}}function Lm(r,e,t){return Dr(r,{fromStat:{sers:nt(e,function(i){return t.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function Dm(r,e,t){return[ce(ke(e[0],e[1]),r-t/2),ke(r+t/2,ce(e[0],e[1]))]}var W0=k(()=>{Z();jt();Hn();pn();Qi();Kl();rr();za();te()});function ZJ(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}function jJ(r){return r.dim==="x"?0:1}var iCt,nCt,XJ;var KJ=k(()=>{dt();nA();W0();p0();te();iCt=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),c=s.getGlobalExtent(),f=ZJ(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var h=Em(a),v=nCt[u](s,p,c,f,a.get("seriesDataIndices"),a.ecModel);v.style=h,t.graphicKey=v.type,t.pointer=v}var g=f0(l.getRect(),n);aA(i,t,g,n,a,o)},e.prototype.getHandleTransform=function(t,i,n){var a=f0(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=H0(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ZJ(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[t.x,t.y];f[c]+=i[c],f[c]=ke(l[1],f[c]),f[c]=ce(l[0],f[c]);var p=(u[1]+u[0])/2,h=[p,p];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:v[c]}},e}(Cm);nCt={line:function(r,e,t,i){var n=Mm([e,i[0]],[e,i[1]],jJ(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,i,n,a){var o=Lm(r,n,a),s=i[1]-i[0],l=Dm(e,t,o),u=l[0],c=l[1];return{type:"Rect",shape:oA([u,i[0]],[c-u,s],jJ(r))}}};XJ=iCt});var aCt,qJ;var JJ=k(()=>{dt();Nr();we();aCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:"dashed"},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,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:Q.color.accent40,throttle:40}},e}(de),qJ=aCt});function lA(r,e,t){if(Te.node)return;var i=e.getZr();lc(i).records||(lc(i).records={}),sCt(i,e);var n=lc(i).records[r]||(lc(i).records[r]={});n.handler=t}function sCt(r,e){if(lc(r).initialized)return;lc(r).initialized=!0,t("click",ne(_k,"click")),t("mousemove",ne(_k,"mousemove")),t("mousewheel",ne(_k,"mousewheel")),t("globalout",uCt);function t(i,n){r.on(i,function(a){var o=cCt(e);oCt(lc(r).records,function(s){s&&n(s,a,o.dispatchAction)}),lCt(o.pendings,e)})}}function lCt(r,e){var t=r.showTip.length,i=r.hideTip.length,n;if(t)n=r.showTip[t-1];else if(i)n=r.hideTip[i-1];if(n)n.dispatchAction=null,e.dispatchAction(n)}function uCt(r,e,t){r.handler("leave",null,t)}function _k(r,e,t,i){e.handler(r,t,i)}function cCt(r){var e={showTip:[],hideTip:[]},t=function(i){var n=e[i.type];if(n)n.push(i);else i.dispatchAction=t,r.dispatchAction(i)};return{dispatchAction:t,pendings:e}}function Y0(r,e){if(Te.node)return;var t=e.getZr(),i=(lc(t).records||{})[r];if(i)lc(t).records[r]=null}var lc,oCt;var xk=k(()=>{Z();Vi();yt();lc=Ft(),oCt=P});var fCt,QJ;var t$=k(()=>{dt();xk();jr();fCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=i.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";lA("axisPointer",n,function(s,l,u){if(o!=="none"&&(s==="leave"||o.indexOf(s)>=0))u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){Y0("axisPointer",i)},e.prototype.dispose=function(t,i){Y0("axisPointer",i)},e.type="axisPointer",e}(Re),QJ=fCt});function Z0(r,e){var t=[],i=r.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Fo(a,r);if(o==null||o<0||it(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,p=u.dim,h=f==="x"||f==="radius"?1:0,v=a.mapDimension(p),g=[];g[h]=a.get(v,o),g[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(a.getValues(nt(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var Sk=k(()=>{Z();yt()});function bk(r,e,t){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||xt(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!s)return;if(uA(n))n=Z0({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point;var l=uA(n),u=a.axesInfo,c=s.axesInfo,f=i==="leave"||uA(n),p={},h={},v={list:[],map:{}},g={showPointer:ne(hCt,h),showTooltip:ne(dCt,v)};P(s.coordSysMap,function(m,d){var x=l||m.containPoint(n);P(s.coordSysAxesInfo[d],function(S,w){var T=S.axis,A=yCt(u,S);if(!f&&x&&(!u||A)){var M=A&&A.value;if(M==null&&!l)M=T.pointToData(n);M!=null&&r$(S,M,g,!1,p)}})});var y={};return P(c,function(m,d){var x=m.linkGroup;if(x&&!h[d])P(x.axesInfo,function(S,w){var T=h[w];if(S!==m&&T){var A=T.value;x.mapper&&(A=m.axis.scale.parse(x.mapper(A,i$(S),i$(m)))),y[m.key]=A}})}),P(y,function(m,d){r$(c[d],m,g,!0,p)}),vCt(h,c,p),mCt(v,n,r,o),gCt(c,o,t),p}function r$(r,e,t,i,n){var a=r.axis;if(a.scale.isBlank()||!a.containData(e))return;if(!r.involveSeries){t.showPointer(r,e);return}var o=pCt(e,r),{payloadBatch:s,snapToValue:l}=o;if(s[0]&&n.seriesIndex==null)et(n,s[0]);if(!i&&r.snap){if(a.containData(l)&&l!=null)e=l}t.showPointer(r,e,s),t.showTooltip(r,o,l)}function pCt(r,e){var t=e.axis,i=t.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return P(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(i),f,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,r,t);p=h.dataIndices,f=h.nestestValue}else{if(p=l.indicesOfNearest(i,c[0],r,t.type==="category"?0.5:null),!p.length)return;f=l.getData().get(c[0],p[0])}if(!ki(f))return;var v=r-f,g=Math.abs(v);if(g<=o){if(g<o||v>=0&&s<0)o=g,s=v,n=f,a.length=0;P(p,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})})}}),{payloadBatch:a,snapToValue:n}}function hCt(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function dCt(r,e,t,i){var n=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!e.triggerTooltip||!n.length)return;var l=e.coordSys.model,u=qv(l),c=r.map[u];if(!c)c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c);c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}function vCt(r,e,t){var i=t.axesInfo=[];P(e,function(n,a){var o=n.axisPointerModel.option,s=r[a];if(s)!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice();else!n.useHandle&&(o.status="hide");o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function mCt(r,e,t,i){if(uA(e)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function gCt(r,e,t){var i=t.getZr(),n="axisPointerLastHighlights",a=e$(i)[n]||{},o=e$(i)[n]={};P(r,function(c,f){var p=c.axisPointerModel.option;p.status==="show"&&c.triggerEmphasis&&P(p.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}P(a,function(c,f){!o[f]&&l.push(u(c))}),P(o,function(c,f){!a[f]&&s.push(u(c))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function yCt(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function i$(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function uA(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}var e$;var n$=k(()=>{yt();m0();Sk();Z();te();e$=Ft()});function el(r){Ua.registerAxisPointerClass("CartesianAxisPointer",XJ),r.registerComponentModel(qJ),r.registerComponentView(QJ),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;if(t&&!it(t))e.axisPointer.link=[t]}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=H7(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bk)}var Im=k(()=>{xf();KJ();JJ();t$();Z();m0();n$()});function wk(r){he(Hw),he(el)}var a$=k(()=>{wP();Im();On()});function xCt(r,e,t,i,n){var a=e.axis,o=a.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var p=Qe();bn(p,p,s),on(p,p,[i.cx,i.cy]),u=fn([o,-n],p);var h=e.getModel("axisLabel").get("rotate")||0,v=mn.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var g=l[1];u=i.coordToPoint([g+n,o]);var{cx:y,cy:m}=i;c=Math.abs(u[0]-y)/g<0.3?"center":u[0]>y?"left":"right",f=Math.abs(u[1]-m)/g<0.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var _Ct,SCt,o$;var s$=k(()=>{dt();nA();jt();W0();Kl();_Ct=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis;if(s.dim==="angle")this.animationThreshold=Math.PI/18;var l=s.polar,u=s.getExtent(),c=l.getOtherAxis(s).getExtent(),f=s.dataToCoord(i),p=a.get("type");if(p&&p!=="none"){var h=Em(a),v=SCt[p](s,l,f,u,c,a.get("seriesDataIndices"),a.ecModel);v.style=h,t.graphicKey=v.type,t.pointer=v}var g=a.get(["label","margin"]),y=xCt(i,n,a,l,g);mk(t,n,a,o,y)},e}(Cm);SCt={line:function(r,e,t,i,n){return r.dim==="angle"?{type:"Line",shape:Mm(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i,n,a,o){var s=Math.PI/180,l=Lm(r,a,o),u;if(r.dim==="angle")u=yk(e.cx,e.cy,n[0],n[1],(-t-l/2)*s,(-t+l/2)*s);else{var c=Dm(t,i,l),f=c[0],p=c[1];u=yk(e.cx,e.cy,f,p,0,Math.PI*2)}return{type:"Sector",shape:u}}},o$=_Ct});var _o="polar",Tk,bCt,l$;var j0=k(()=>{dt();Nr();Tk=_o,bCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,n=this.ecModel;return n.eachComponent(t,function(a){if(a.getCoordSysModel()===this)i=a},this),i},e.type=_o,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(de),l$=bCt});var Ak,u$,c$;var f$=k(()=>{dt();Z();Nr();Dv();yt();Ak=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Xe).models[0]},e.type="polarAxis",e}(de);dr(Ak,Gl);u$=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Ak),c$=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Ak)});var Ck,p$;var h$=k(()=>{dt();sf();Ck=function(r){W(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(tn);Ck.prototype.dataToRadius=tn.prototype.dataToCoord;Ck.prototype.radiusToData=tn.prototype.coordToData;p$=Ck});var wCt,Ek,d$;var v$=k(()=>{dt();Hn();sf();yt();wCt=Ft(),Ek=function(r){W(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),n=t.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=Ic(s==null?"":s+"",i.getFont(),"center","top"),f=Math.max(c.height,7),p=f/u;isNaN(p)&&(p=1/0);var h=Math.max(0,Math.floor(p)),v=wCt(t.model),{lastAutoInterval:g,lastTickCount:y}=v;if(g!=null&&y!=null&&Math.abs(g-h)<=1&&Math.abs(y-o)<=1&&g>h)h=g;else v.lastTickCount=o,v.lastAutoInterval=h;return h},e}(tn);Ek.prototype.dataToAngle=tn.prototype.dataToCoord;Ek.prototype.angleToData=tn.prototype.coordToData;d$=Ek});function m$(r){var{seriesModel:e,polarModel:t}=r;return t&&t.coordinateSystem||e&&e.coordinateSystem}var Mk,TCt,g$;var y$=k(()=>{h$();v$();j0();Mk=["radius","angle"],TCt=function(){function r(e){this.dimensions=Mk,this.type=_o,this.cx=0,this.cy=0,this._radiusAxis=new p$,this._angleAxis=new d$,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===e&&t.push(i),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,i){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],i)},r.prototype.pointToData=function(e,t,i){i=i||[];var n=this.pointToCoord(e);return i[0]=this._radiusAxis.radiusToData(n[0],t),i[1]=this._angleAxis.angleToData(n[1],t),i},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;var u=Math.atan2(-i,t)/Math.PI*180,c=u<o?1:-1;while(u<o||u>s)u+=c*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var i=e[0],n=e[1]/180*Math.PI;return t[0]=Math.cos(n)*i+this.cx,t[1]=-Math.sin(n)*i+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var n=e.getExtent(),a=Math.PI/180,o=0.0001;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*a,endAngle:-n[1]*a,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,f=u*u+c*c,p=this.r,h=this.r0;return p!==h&&f-o<=p*p&&f+o>=h*h},x:this.cx-i[1],y:this.cy-i[1],width:i[1]*2,height:i[1]*2}},r.prototype.convertToPixel=function(e,t,i){var n=m$(t);return n===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var n=m$(t);return n===this?this.pointToData(i):null},r}();g$=TCt});function ACt(r,e,t){var i=e.get("center"),n=Je(e,t).refContainer;r.cx=wt(i[0],n.width)+n.x,r.cy=wt(i[1],n.height)+n.y;var a=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=e.get("radius");if(s==null)s=[0,"100%"];else if(!it(s))s=[0,s];var l=[wt(s[0],o),wt(s[1],o)];a.inverse?a.setExtent(l[1],l[0]):a.setExtent(l[0],l[1])}function CCt(r,e){var t=this,i=t.getAngleAxis(),n=t.getRadiusAxis();if(fo(i,Ws),fo(n,Ws),Wl(i),Wl(n),i.type==="category"&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function ECt(r){return r.mainType==="angleAxis"}function _$(r,e){var t;if(r.type=nf(e),r.scale=Vl(e,r.type,!1),r.onBand=Fl(r.scale,e),r.inverse=e.get("inverse"),ECt(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,n)}e.axis=r,r.model=e}var MCt,x$;var S$=k(()=>{Z();y$();te();Qi();j0();yt();ur();Ov();po();ta();MCt={dimensions:Mk,create:function(r,e){var t=[];return r.eachComponent(Tk,function(i,n){var a=new g$(n+"");a.update=CCt;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");_$(o,l),_$(s,u),ACt(a,i,e),t.push(a),i.coordinateSystem=a,a.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")===_o){var n=i.getReferringComponents(Tk,Xe).models[0],a=i.coordinateSystem=n.coordinateSystem;if(a)is(a.getRadiusAxis(),i,_o),is(a.getAngleAxis(),i,_o)}}),t}},x$=MCt});function cA(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function fA(r){var e=r.getRadiusAxis();return e.inverse?0:1}function b$(r){var e=r[0],t=r[r.length-1];if(e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<0.0001)r.pop()}var LCt,DCt,ICt,w$;var T$=k(()=>{dt();Z();jt();rr();ti();xf();Kl();lr();Qi();LCt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];DCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!t.get("show"))return;var n=t.axis,a=n.polar,o=a.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=[];P(n.getViewLabels(),function(c){if(c.tick.offInterval)return;c=It(c);var f=n.scale;c.coord=n.dataToCoord(Hs(f,c.tick)),u.push(c)}),b$(u),b$(s),P(LCt,function(c){if(t.get([c,"show"])&&(!n.scale.isBlank()||c==="axisLine"))ICt[c](this.group,t,a,s,l,o,u)},this)},e.type="angleAxis",e}(Ua),ICt={axisLine:function(r,e,t,i,n,a){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=fA(t),f=c?0:1,p,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";if(a[f]===0)p=new pe[h]({shape:{cx:t.cx,cy:t.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0});else p=new Gp({shape:{cx:t.cx,cy:t.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0});p.style.fill=null,r.add(p)},axisTick:function(r,e,t,i,n,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[fA(t)],u=nt(i,function(c){return new xr({shape:cA(t,[l,l+s],c.coord)})});r.add(Mn(u,{style:Dt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,n,a){if(!n.length)return;var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[fA(t)],c=[];for(var f=0;f<n.length;f++)for(var p=0;p<n[f].length;p++)c.push(new xr({shape:cA(t,[u,u+l],n[f][p].coord)}));r.add(Mn(c,{style:Dt(s.getModel("lineStyle").getLineStyle(),Dt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))},axisLabel:function(r,e,t,i,n,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");P(o,function(f,p){var h=l,v=f.tick.value,g=a[fA(t)],y=t.coordToPoint([g+u,f.coord]),{cx:m,cy:d}=t,x=Math.abs(y[0]-m)/g<0.3?"center":y[0]>m?"left":"right",S=Math.abs(y[1]-d)/g<0.3?"middle":y[1]>d?"top":"bottom";if(s&&s[v]){var w=s[v];if(Pt(w)&&w.textStyle)h=new ye(w.textStyle,l,l.ecModel)}var T=new me({silent:mn.isLabelSilent(e),style:He(h,{x:y[0],y:y[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(r.add(T),Ln({el:T,componentModel:e,itemName:f.formattedLabel,formatterParamsExtra:{isTruncated:function(){return T.isTruncated},value:f.rawLabel,tickIndex:p}}),c){var A=mn.makeAxisEventDataBase(e);A.targetType="axisLabel",A.value=f.rawLabel,Yt(T).eventData=A}},this)},splitLine:function(r,e,t,i,n,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];var c=[];for(var f=0;f<i.length;f++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new xr({shape:cA(t,a,i[f].coord)}))}for(var f=0;f<c.length;f++)r.add(Mn(c[f],{style:Dt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,i,n,a){if(!n.length)return;var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[];for(var u=0;u<n.length;u++)for(var c=0;c<n[u].length;c++)l.push(new xr({shape:cA(t,a,n[u][c].coord)}));r.add(Mn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))},splitArea:function(r,e,t,i,n,a){if(!i.length)return;var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];var c=[],f=Math.PI/180,p=-i[0].coord*f,h=Math.min(a[0],a[1]),v=Math.max(a[0],a[1]),g=e.get("clockwise");for(var y=1,m=i.length;y<=m;y++){var d=y===m?i[0].coord:i[y].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Qr({shape:{cx:t.cx,cy:t.cy,r0:h,r:v,startAngle:p,endAngle:-d*f,clockwise:g},silent:!0})),p=-d*f}for(var y=0;y<c.length;y++)r.add(Mn(c[y],{style:Dt({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}},w$=DCt});function kCt(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var PCt,RCt,OCt,A$;var C$=k(()=>{dt();Z();jt();Kl();xf();PCt=["splitLine","splitArea","minorSplitLine"],RCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i,n){if(this.group.removeAll(),!t.get("show"))return;var a=this._axisGroup,o=this._axisGroup=new Lt;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),c=s.getTicksCoords(),f=s.getMinorTicksCoords(),p=u.getExtent()[0],h=s.getExtent(),v=kCt(l,t,p),g=new mn(t,n,v);g.build(),o.add(g.group),Iu(a,o,t),P(PCt,function(y){if(t.get([y,"show"])&&!s.scale.isBlank())OCt[y](this.group,t,l,p,h,c,f)},this)},e.type="radiusAxis",e}(Ua),OCt={splitLine:function(r,e,t,i,n,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=t.getAngleAxis(),f=Math.PI/180,p=c.getExtent(),h=Math.abs(p[1]-p[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];var v=[];for(var g=0;g<a.length;g++){var y=u++%l.length;v[y]=v[y]||[],v[y].push(new pe[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(a[g].coord,0),startAngle:-p[0]*f,endAngle:-p[1]*f,clockwise:c.inverse}}))}for(var g=0;g<v.length;g++)r.add(Mn(v[g],{style:Dt({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,i,n,a,o){if(!o.length)return;var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[];for(var c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Xn({shape:{cx:t.cx,cy:t.cy,r:o[c][f].coord}}));r.add(Mn(u,{style:Dt({fill:null},l.getLineStyle()),silent:!0}))},splitArea:function(r,e,t,i,n,a){if(!a.length)return;var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];var c=[],f=a[0].coord;for(var p=1;p<a.length;p++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Qr({shape:{cx:t.cx,cy:t.cy,r0:f,r:a[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[p].coord}for(var p=0;p<c.length;p++)r.add(Mn(c[p],{style:Dt({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}};A$=RCt});function E$(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function zCt(r){var e=Ju(na,_o);Pv(r,e,function(t){var i=UCt(t,na),n={};Hl(t,e,function(a){BCt(t,a,i,n)})})}function BCt(r,e,t,i){var n=e.getData(),a=E$(e),o=t[a],{offset:s,width:l}=o,u=e.coordinateSystem,c=u.getOtherAxis(r),{cx:f,cy:p}=u,h=e.get("barMinHeight")||0,v=e.get("barMinAngle")||0;i[a]=i[a]||[];var g=n.mapDimension(c.dim),y=n.mapDimension(r.dim),m=co(n,g),d=r.dim!=="radius"||!e.get("roundCap",!0),x=c.dataToCoord(Ew(c));for(var S=0,w=n.count();S<w;S++){var T=n.get(g,S),A=n.get(y,S),M=T>=0?"p":"n",D=x;if(m){if(!i[a][A])i[a][A]={p:x,n:x};D=i[a][A][M]}var L=void 0,I=void 0,E=void 0,R=void 0;if(c.dim==="radius"){var B=c.dataToCoord(T)-x,z=r.dataToCoord(A);if(yr(B)<h)B=(B<0?-1:1)*h;L=D,I=D+B,E=z-s,R=E-l,m&&(i[a][A][M]=I)}else{var V=c.dataToCoord(T,d)-x,H=r.dataToCoord(A);if(yr(V)<v)V=(V<0?-1:1)*v;L=H+s,I=L+l,E=D,R=D+V,m&&(i[a][A][M]=R)}n.setItemLayout(S,{cx:f,cy:p,r0:L,r:I,startAngle:-E*Rd/180,endAngle:-R*Rd/180,clockwise:E>=R})}}function UCt(r,e){var t=Ju(e,_o),i=Dr(r,{fromStat:{key:t},min:1}).w,n=i,a=0,o="20%",s="30%",l={};Hl(r,t,function(y){var m=E$(y);if(!l[m])a++;l[m]=l[m]||{width:0,maxWidth:0};var d=wt(y.get("barWidth"),i),x=wt(y.get("barMaxWidth"),i),S=y.get("barGap"),w=y.get("barCategoryGap");if(d&&!l[m].width)d=ke(n,d),l[m].width=d,n-=d;x&&(l[m].maxWidth=x),S!=null&&(s=S),w!=null&&(o=w)});var u={},c=wt(o,i),f=wt(s,1),p=(n-c)/(a+(a-1)*f);p=ce(p,0),P(l,function(y,m){var d=y.maxWidth;if(d&&d<p){if(d=ke(d,n),y.width)d=ke(d,y.width);n-=d,y.width=d,a--}}),p=(n-c)/(a+(a-1)*f),p=ce(p,0);var h=0,v;if(P(l,function(y,m){if(!y.width)y.width=p;v=y,h+=y.width*(1+f)}),v)h-=v.width*f;var g=-h/2;return P(l,function(y,m){u[m]=u[m]||{offset:g,width:y.width},g+=y.width*(1+f)}),u}function L$(r,e){NCt(r,function(){var t=Ju(e,_o);Cw(r,t,e,_o),of(t,yf(t))})}var NCt,M$;var D$=k(()=>{te();Wu();za();Zv();yt();po();ql();ta();j0();Z();NCt=Go();M$=Ke(na,zCt)});function Lk(r){he(el),Ua.registerAxisPointerClass("PolarAxisPointer",o$),r.registerCoordinateSystem("polar",x$),r.registerComponentModel(l$),r.registerComponentView(GCt),Qs(r,"angle",u$,VCt),Qs(r,"radius",c$,FCt),r.registerComponentView(w$),r.registerComponentView(A$),r.registerLayout(M$),L$(r,na)}var VCt,FCt,GCt;var I$=k(()=>{dt();On();xf();s$();Im();j0();d0();f$();S$();T$();C$();jr();D$();ql();VCt={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},FCt={splitNumber:5},GCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Re)});function X0(r,e){e=e||{};var{coordinateSystem:t,axis:i}=r,n={},{position:a,orient:o}=i,s=t.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]}};n.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};n.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};if(n.labelDirection=n.tickDirection=n.nameDirection=f[a],r.get(["axisTick","inside"]))n.tickDirection=-n.tickDirection;if(Gr(e.labelInside,r.get(["axisLabel","inside"])))n.labelDirection=-n.labelDirection;var p=r.get(["axisLabel","rotate"]);return n.labelRotate=a==="top"?-p:p,n.z2=1,n}var Dk=k(()=>{Z()});var HCt,WCt,YCt,R$;var O$=k(()=>{dt();Z();Kl();jt();Dk();xf();SP();HCt=["splitArea","splitLine","breakArea"],WCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,n,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Lt;var l=X0(t),u=new mn(t,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),P(HCt,function(c){if(t.get([c,"show"]))YCt[c](this,this.group,this._axisGroup,t,n)},this),Iu(s,this._axisGroup,t),r.prototype.render.call(this,t,i,n,a)},e.prototype.remove=function(){Gw(this)},e.type="singleAxis",e}(Ua),YCt={splitLine:function(r,e,t,i,n){var a=i.axis;if(a.scale.isBlank())return;var o=i.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];var u=s.get("width"),c=i.coordinateSystem.getRect(),f=a.isHorizontal(),p=[],h=0,v=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[];for(var m=0;m<v.length;++m){var d=a.toGlobalCoord(v[m].coord);if(f)g[0]=d,g[1]=c.y,y[0]=d,y[1]=c.y+c.height;else g[0]=c.x,g[1]=d,y[0]=c.x+c.width,y[1]=d;var x=new xr({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});Lu(x.shape,u);var S=h++%l.length;p[S]=p[S]||[],p[S].push(x)}var w=s.getLineStyle(["color"]);for(var m=0;m<p.length;++m)e.add(Mn(p[m],{style:Dt({stroke:l[m%l.length]},w),silent:!0}))},splitArea:function(r,e,t,i,n){Fw(r,t,i,i)},breakArea:function(r,e,t,i,n){var a=Xu(),o=i.axis.scale;if(a&&o.type!=="ordinal")a.rectCoordBuildBreakAxis(e,r,i,i.coordinateSystem.getRect(),n)}},R$=WCt});var ZCt,k$;var N$=k(()=>{dt();sf();ZCt=function(r){W(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n)||this;return s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e}(tn),k$=ZCt});function z$(r){var{seriesModel:e,singleAxisModel:t}=r;return t&&t.coordinateSystem||e&&e.coordinateSystem}var Ik,jCt,B$;var U$=k(()=>{N$();Qi();ur();Jv();Ov();po();Ik=["single"],jCt=function(){function r(e,t,i){this.type=Sf,this.dimension="single",this.dimensions=Ik,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var n=this.dimension,a=nf(e),o=new k$(n,Vl(e,a,!0),[0,0],a,e.get("position"));o.onBand=Fl(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var i=this._axis;fo(i,Ws),Wl(i)},r.prototype.resize=function(e,t){var i=Je(e,t).refContainer;this._rect=Be(e.getBoxLayoutParams(),i),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),n=i?[0,e.width]:[0,e.height],a=t.inverse?1:0;t.setExtent(n[a],n[1-a]),this._updateAxisTransform(t,i?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),n=i[0]+i[1],a=e.isHorizontal();e.toGlobalCoord=a?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=a?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),n=i.orient;if(n==="horizontal")return i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height;else return i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,i){i=i||[];var n=this.getAxis();return i[0]=n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1])),i},r.prototype.dataToPoint=function(e,t,i){var n=this.getAxis(),a=this.getRect();i=i||[];var o=n.orient==="horizontal"?0:1;if(e instanceof Array)e=e[0];return i[o]=n.toGlobalCoord(n.dataToCoord(+e)),i[1-o]=o===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(e,t,i){var n=z$(t);return n===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var n=z$(t);return n===this?this.pointToData(i):null},r}();B$=jCt});function XCt(r,e){var t=[];return r.eachComponent(Ww,function(i,n){var a=new B$(i,r,e);a.name="single_"+n,a.resize(i,e),i.coordinateSystem=a,t.push(a)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===J7){var n=i.getReferringComponents(Ww,Xe).models[0],a=i.coordinateSystem=n&&n.coordinateSystem;if(a)is(a.getAxis(),i,Sf)}}),t}var KCt,V$;var F$=k(()=>{U$();Jv();yt();ta();KCt={create:XCt,dimensions:Ik},V$=KCt});function hA(r){return r.isHorizontal()?0:1}function pA(r,e){var t=r.getRect();return[t[G$[e]],t[G$[e]]+t[qCt[e]]]}var G$,qCt,JCt,$Ct,H$;var W$=k(()=>{dt();nA();W0();Dk();G$=["x","y"],qCt=["width","height"],JCt=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,n,a,o){var s=n.axis,l=s.coordinateSystem,u=hA(s),c=pA(l,u),f=pA(l,1-u),p=l.dataToPoint(i)[0],h=a.get("type");if(h&&h!=="none"){var v=Em(a),g=$Ct[h](s,p,c,f,a.get("seriesDataIndices"),a.ecModel);g.style=v,t.graphicKey=g.type,t.pointer=g}var y=X0(n);aA(i,t,y,n,a,o)},e.prototype.getHandleTransform=function(t,i,n){var a=X0(i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=H0(i.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,n,a){var o=n.axis,s=o.coordinateSystem,l=hA(o),u=pA(s,l),c=[t.x,t.y];c[l]+=i[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=pA(s,1-l),p=(f[1]+f[0])/2,h=[p,p];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(Cm),$Ct={line:function(r,e,t,i){var n=Mm([e,i[0]],[e,i[1]],hA(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t,i,n,a){var o=Lm(r,n,a),s=i[1]-i[0],l=Dm(e,t,o),u=l[0],c=l[1];return{type:"Rect",shape:oA([u,i[0]],[c-u,s],hA(r))}}};H$=JCt});function Pk(r){he(el),Ua.registerAxisPointerClass("SingleAxisPointer",H$),r.registerComponentView(QCt),r.registerComponentView(R$),r.registerComponentModel(Yw),Qs(r,"single",Yw,Yw.defaultOption),r.registerCoordinateSystem("single",V$)}var QCt;var Y$=k(()=>{dt();On();jr();O$();d0();Jv();F$();Im();xf();W$();QCt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Re)});function Z$(r,e){var t=r.cellSize,i;if(!it(t))i=r.cellSize=[t,t];else i=t;if(i.length===1)i[1]=i[0];var n=nt([0,1],function(a){if(aH(e,a))i[a]="auto";return i[a]!=null&&i[a]!=="auto"});hn(r,e,{type:"box",ignoreSize:n})}var t2t,j$;var X$=k(()=>{dt();Z();Nr();ur();we();t2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,n){var a=Ra(t);r.prototype.init.apply(this,arguments),Z$(t,a)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),Z$(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:Q.color.axisLine,width:1,type:"solid"}},itemStyle:{color:Q.color.neutral00,borderWidth:1,borderColor:Q.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:Q.size.s,color:Q.color.secondary},monthLabel:{show:!0,position:"start",margin:Q.size.s,align:"center",formatter:null,color:Q.color.secondary},yearLabel:{show:!0,position:null,margin:Q.size.xl,formatter:null,color:Q.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(de);j$=t2t});var e2t,K$;var q$=k(()=>{dt();Z();jt();rr();pn();te();jr();ib();e2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){var a=this.group;a.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,a),this._renderLines(t,s,l,a),this._renderYearText(t,s,l,a),this._renderMonthText(t,u,l,a),this._renderWeekText(t,u,s,l,a)},e.prototype._renderDayRect=function(t,i,n){var a=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight();for(var u=i.start.time;u<=i.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToCalendarLayout([u],!1).tl,f=new ee({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});n.add(f)}},e.prototype._renderLines=function(t,i,n,a){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];var f=i.start;for(var p=0;f.time<=i.end.time;p++){if(v(f.formatedDate),p===0)f=s.getDateInfo(i.start.y+"-"+i.start.m);var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(i.end.time,1).formatedDate);function v(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToCalendarLayout([g],!1).tl);var y=o._getLinePointsOfOneWeek(t,g,n);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,n),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,n),l,a)},e.prototype._getEdgesPoints=function(t,i,n){var a=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return a[0][o]=a[0][o]-i/2,a[1][o]=a[1][o]+i/2,a},e.prototype._drawSplitline=function(t,i,n){var a=new Mr({z2:20,shape:{points:t},style:i});n.add(a)},e.prototype._getLinePointsOfOneWeek=function(t,i,n){var a=t.coordinateSystem,o=a.getDateInfo(i),s=[];for(var l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToCalendarLayout([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){if(ht(t)&&t)return _b(t,i);if(Mt(t))return t(i);return i.nameMap},e.prototype._yearTextPositionControl=function(t,i,n,a,o){var s=i[0],l=i[1],u=["center","bottom"];if(a==="bottom")l+=o,u=["center","top"];else if(a==="left")s-=o;else if(a==="right")s+=o,u=["center","top"];else l-=o;var c=0;if(a==="left"||a==="right")c=Math.PI/2;return{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,n,a){var o=t.getModel("yearLabel");if(!o.get("show"))return;var s=o.get("margin"),l=o.get("position");if(!l)l=n!=="horizontal"?"top":"left";var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,p=n==="horizontal"?0:1,h={top:[c,u[p][1]],bottom:[c,u[1-p][1]],left:[u[1-p][0],f],right:[u[p][0],f]},v=i.start.y;if(+i.end.y>+i.start.y)v=v+"-"+i.end.y;var g=o.get("formatter"),y={start:i.start.y,end:i.end.y,nameMap:v},m=this._formatterLabel(g,y),d=new me({z2:30,style:He(o,{text:m}),silent:o.get("silent")});d.attr(this._yearTextPositionControl(d,h[l],n,l,s)),a.add(d)},e.prototype._monthTextPositionControl=function(t,i,n,a,o){var s="left",l="top",u=t[0],c=t[1];if(n==="horizontal"){if(c=c+o,i)s="center";if(a==="start")l="bottom"}else{if(u=u+o,i)l="middle";if(a==="start")s="right"}return{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,n,a){var o=t.getModel("monthLabel");if(!o.get("show"))return;var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];if(!s||ht(s)){if(s)i=uy(s)||i;s=i.get(["time","monthAbbr"])||[]}var p=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;var v=c==="center",g=o.get("silent");for(var y=0;y<f[p].length-1;y++){var m=f[p][y].slice(),d=this._firstDayOfMonth[y];if(v){var x=this._firstDayPoints[y];m[h]=(x[h]+f[0][y+1][h])/2}var S=o.get("formatter"),w=s[+d.m-1],T={yyyy:d.y,yy:(d.y+"").slice(2),MM:d.m,M:+d.m,nameMap:w},A=this._formatterLabel(S,T),M=new me({z2:30,style:et(He(o,{text:A}),this._monthTextPositionControl(m,v,n,u,l)),silent:g});a.add(M)}},e.prototype._weekTextPositionControl=function(t,i,n,a,o){var s="center",l="middle",u=t[0],c=t[1],f=n==="start";if(i==="horizontal")u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left";else c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top";return{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,n,a,o){var s=t.getModel("dayLabel");if(!s.get("show"))return;var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),p=l.getFirstDayOfWeek();if(!c||ht(c)){if(c)i=uy(c)||i;var h=i.get(["time","dayOfWeekShort"]);c=h||nt(i.get(["time","dayOfWeekAbbr"]),function(T){return T[0]})}var v=l.getNextNDay(n.end.time,7-n.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];if(f=wt(f,Math.min(g[1],g[0])),u==="start")v=l.getNextNDay(n.start.time,-(7+n.fweek)).time,f=-f;var y=s.get("silent");for(var m=0;m<7;m++){var d=l.getNextNDay(v,m),x=l.dataToCalendarLayout([d.time],!1).center,S=m;S=Math.abs((m+p)%7);var w=new me({z2:30,style:et(He(s,{text:c[S]}),this._weekTextPositionControl(x,a,u,f,g)),silent:y});o.add(w)}},e.type="calendar",e}(Re),K$=e2t});function Ok(r){var{calendarModel:e,seriesModel:t}=r,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var Rk=86400000,r2t,J$;var $$=k(()=>{Z();ur();te();fr();jt();Pa();r2t=function(){function r(e,t,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,i)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Bo(e);var t=e.getFullYear(),i=e.getMonth()+1,n=i<10?"0"+i:""+i,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){if(t=t||0,t===0)return this.getDateInfo(e);return e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e)},r.prototype._update=function(e,t){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,n=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];P([0,1],function(f){if(c(a,f))o[n[f]]=a[f]*s[f]});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=Be(o,l);P([0,1],function(f){if(!c(a,f))a[f]=u[n[f]]/s[f]});function c(f,p){return f[p]!=null&&f[p]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(e,t,i){i=i||[],it(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),a=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=a.start.time&&n.time<a.end.time+Rk))return i[0]=i[1]=NaN,i;var s=n.day,l=this._getRangeInfo([a.start.time,o]).nthWeek;if(this._orient==="vertical")i[0]=this._rect.x+s*this._sw+this._sw/2,i[1]=this._rect.y+l*this._sh+this._sh/2;else i[0]=this._rect.x+l*this._sw+this._sw/2,i[1]=this._rect.y+s*this._sh+this._sh/2;return i},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,i){i=i||{};var n=i.rect=i.rect||{},a=i.contentRect=i.contentRect||{},o=this.dataToPoint(e,t);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Gt.copy(a,n),Xo(a,this._lineWidth/2,!0,!0),i},r.prototype.dataToCalendarLayout=function(e,t){var i=this.dataToPoint(e,t);return{center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;if(this._orient==="vertical")return this._getDateByWeeksAndDay(i,t-1,n);return this._getDateByWeeksAndDay(t,i-1,n)},r.prototype.convertToPixel=function(e,t,i){var n=Ok(t);return n===this?n.dataToPoint(i):null},r.prototype.convertToLayout=function(e,t,i){var n=Ok(t);return n===this?n.dataToLayout(i):null},r.prototype.convertFromPixel=function(e,t,i){var n=Ok(t);return n===this?n.pointToData(i):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(it(e)&&e.length===1)e=e[0];if(!it(e)){var i=e.toString();if(/^\d{4}$/.test(i))t=[i+"-01-01",i+"-12-31"];if(/^\d{4}[\/|-]\d{1,2}$/.test(i)){var n=this.getDateInfo(i),a=n.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);t=[n.formatedDate,o.formatedDate]}if(/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i))t=[i,i]}else t=e;if(!t)return e;var s=this._getRangeInfo(t);if(s.start.time>s.end.time)t.reverse();return t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;if(t[0].time>t[1].time)i=!0,t.reverse();var n=Math.floor(t[1].time/Rk)-Math.floor(t[0].time/Rk)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+n-1);var l=a.getDate();if(l!==s){var u=a.getTime()-t[1].time>0?1:-1;while((l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0)n-=u,a.setDate(l-u)}var c=Math.floor((n+t[0].day+6)/7),f=i?-c+1:c-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:c,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var n=this._getRangeInfo(i);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var a=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+a),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(n){var a=new r(n,e,t);i.push(a),n.coordinateSystem=a}),e.eachComponent(function(n,a){Rl({targetModel:a,coordSysType:"calendar",coordSysProvider:Tb})}),i},r.dimensions=["time","value"],r}();J$=r2t});function kk(r){r.registerComponentModel(j$),r.registerComponentView(K$),r.registerCoordinateSystem("calendar",J$)}var Q$=k(()=>{X$();q$();$$()});function Nk(r,e,t){var i=e[fe[t]].getCell(r);if(!i&&ue(r)&&r<0)i=e[fe[1-t]].getUnitLayoutInfo(t,Math.round(r));return i}function dA(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function vA(r,e,t,i,n){tQ(r[0],e,n,t,i,0),tQ(r[1],e,n,t,i,1)}function tQ(r,e,t,i,n,a){r[0]=1/0,r[1]=-1/0;var o=i[a],s=it(o)?o:[o],l=s.length,u=!!t;if(l>=1){if(eQ(r,e,s,u,n,a,0),l>1)eQ(r,e,s,u,n,a,l-1)}else r[0]=r[1]=NaN;if(u){var c=-n[fe[1-a]].getLocatorCount(a),f=n[fe[a]].getLocatorCount(a)-1;if(t===il.body)c=ce(0,c);else if(t===il.corner)f=ke(-1,f);if(f<c)c=f=NaN;if(Jr(r[0]))r[0]=c;if(Jr(r[1]))r[1]=f;r[0]=ce(ke(r[0],f),c),r[1]=ce(ke(r[1],f),c)}}function eQ(r,e,t,i,n,a,o){var s=Nk(t[o],n,a);if(!s){r[0]=r[1]=NaN;return}var l=s.id[fe[a]],u=l,c=a2t(s);if(c)u+=c.span[fe[a]]-1;r[0]=ke(r[0],l,u),r[1]=ce(r[1],l,u)}function K0(r,e){return Jr(r[e][0])||Jr(r[e][1])}function zk(r,e,t,i){e=e||i2t;for(var n=0;n<i;n++)e[n]=!1;while(!0){var a=!1;for(var n=0;n<i;n++){var o=t[n];if(!e[n]&&o.cellMergeOwner&&n2t(r,o.locatorRange))e[n]=!0,a=!0}if(!a)break}}function n2t(r,e){if(!rQ(r[0],e[0])||!rQ(r[1],e[1]))return!1;return r[0][0]=ke(r[0][0],e[0][0]),r[0][1]=ce(r[0][1],e[0][1]),r[1][0]=ke(r[1][0],e[1][0]),r[1][1]=ce(r[1][1],e[1][1]),!0}function rQ(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function Bk(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function iQ(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function Uk(r,e,t,i){var n=Nk(e[i][0],t,i),a=Nk(e[i][1],t,i);if(r[fe[i]]=r[Lr[i]]=NaN,n&&a)r[fe[i]]=n.xy,r[Lr[i]]=a.xy+a.wh-n.xy}function Pm(r,e,t,i){return r[fe[e]]=t,r[fe[1-e]]=i,r}function a2t(r){return r&&(r.type===rl.leaf||r.type===rl.nonLeaf)?r:null}function Kh(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var rl,il,i2t;var mA=k(()=>{Z();jt();te();rl={level:1,leaf:2,nonLeaf:3},il={none:0,all:1,body:2,corner:3};i2t=[]});function o2t(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),i=0;function n(s){var l;if(s!=null&&(l=s.match(t)))i=ce(i,+l[1]+1)}function a(){return""+e+i++}function o(s,l){var u=gt();for(var c=0;c<s.length;c++){var f=s[c];if(f==null||u.get(f)!=null)s[c]=f=a(),l[c].option=Dt({value:f},l[c].option);u.set(f,!0)}}return{calcDupBase:n,ensureValueUnique:o}}var Vk;var nQ=k(()=>{Z();Tc();L1();k1();jt();yt();mA();te();Vk=function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=o2t(e);var i=t.get("data",!0),n=t.get("length",!0);if(i!=null&&!it(i))i=[];if(i)this._initByDimModelData(i);else if(n!=null){i=Array(n);for(var a=0;a<n;a++)i[a]=null;this._initByDimModelData(i)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,{_cells:i,_levels:n}=t,a=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,c,f){var p=0;if(!u)return p;return P(u,function(h,v){var g=!1,y;if(ht(h))y={value:h};else if(Pt(h)){if(y=h,h.value!=null&&!ht(h.value))g=!0,y={value:null}}else if(y={value:null},h!=null)g=!0;var m={type:rl.nonLeaf,ordinal:NaN,level:f,firstLeafLocator:c,id:new Qt,span:Pm(new Qt,t.dimIdx,1,1),option:y,xy:NaN,wh:NaN,dim:t,rect:Kh()};if(o++,(a[c]||(a[c]=[])).push(m),!n[f])n[f]={type:rl.level,xy:NaN,wh:NaN,option:null,id:new Qt,dim:t};var d=s(y.children,c,f+1),x=Math.max(1,d);m.span[fe[t.dimIdx]]=x,p+=x,c+=x}),p}function l(){var u=[];while(i.length<o)for(var c=0;c<a.length;c++){var f=a[c].pop();if(f){f.ordinal=u.length;var p=f.option.value;u.push(p),i.push(f),t._uniqueValueGen.calcDupBase(p)}}t._uniqueValueGen.ensureValueUnique(u,i);var h=t._ordinalMeta=new rf({categories:u,needCollect:!1,deduplication:!1});t._scale=new gh({ordinalMeta:h});for(var v=0;v<t._leavesCount;v++){var g=t._cells[v];g.type=rl.leaf,g.span[fe[1-t.dimIdx]]=t._levels.length-g.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:rl.level,xy:NaN,wh:NaN,option:null,id:new Qt,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new rf({needCollect:!0,deduplication:!0,onCollect:function(i,n){var a=e._cells[n]={type:rl.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new Qt,span:Pm(new Qt,e.dimIdx,1,1),option:{value:i+""},xy:NaN,wh:NaN,dim:e,rect:Kh()};e._leavesCount++,e._setCellId(a)}});e._scale=new gh({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,i=this.dimIdx;Pm(e.id,i,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;P(this._cells,function(i){Pm(i.id,t,i.firstLeafLocator,i.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,i=this._model.get("levels",!0);i=it(i)?i:[],P(this._levels,function(n,a){Pm(n.id,t,0,a-e),n.option=i[a]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,i,n){if(e=e||new Ls,t===this.dimIdx){var a=this._leavesCount,o=i!=null?Math.max(0,i):0;n=n!=null?Math.min(n,a):a,e.reset(this._cells,o,o+n)}else{var a=this._levels.length,o=i!=null?Math.max(0,i+a):0;n=n!=null?Math.min(n,a):a,e.reset(this._levels,o,o+n)}return e},r.prototype.resetCellIterator=function(e){return(e||new Ls).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new Ls).reset(this._levels,0)},r.prototype.getLayout=function(e,t,i){var n=this.getUnitLayoutInfo(t,i);e[fe[t]]=n?n.xy:NaN,e[Lr[t]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return Jr(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}()});function aQ(r,e){return r+"|"+e}var Gk,Fk;var oQ=k(()=>{Z();Tc();mA();Gk=function(){function r(e,t,i){this._model=t,this._dims=i,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;if(!t)t=e._cellMap=gt(),i();return t;function i(){var a=[],o=e._model.getShallow("data");if(o&&!it(o))o=null;P(o,function(v,g){if(!Pt(v)||!it(v.coord))return;var y=dA([]),m=null;if(vA(y,m,v.coord,e._dims,v.coordClamp?il[e._kind]:il.none),K0(y,0)||K0(y,1))return;var d=v&&v.mergeCells,x={id:new Qt,span:new Qt,locatorRange:y,option:v,cellMergeOwner:d};Bk(x,y),a.push(x)});var s=[];for(var l=0;l<a.length;l++){var u=a[l];if(!u.cellMergeOwner)continue;var c=u.locatorRange;zk(c,s,a,l);for(var f=0;f<l;f++)if(s[f])a[f].cellMergeOwner=!1;if(c[0][0]!==u.id.x||c[1][0]!==u.id.y){u.cellMergeOwner=!1;var p=et({},u.option);p.coord=null;var h={id:new Qt,span:new Qt,locatorRange:c,option:p,cellMergeOwner:!0};Bk(h,c),a.push(h)}}P(a,function(v){var g=n(v.id.x,v.id.y);if(v.cellMergeOwner)g.cellMergeOwner=!0,g.span=v.span,g.locatorRange=v.locatorRange,g.spanRect=Kh(),e._cellMergeOwnerList.push(g);if(!v.cellMergeOwner&&!v.option)return;for(var y=0;y<v.span.y;y++)for(var m=0;m<v.span.x;m++){var d=n(v.id.x+m,v.id.y+y);if(d.option=v.option,v.cellMergeOwner)d.inSpanOf=g}})}function n(a,o){var s=aQ(a,o),l=t.get(s);if(!l)l=t.set(s,{id:new Qt(a,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1});return l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(aQ(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!K0(e,0)&&!K0(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){Fk[0]=e[0][0],Fk[1]=e[1][0];var t=this.getCell(Fk),i=t&&t.inSpanOf;if(i){iQ(e,i.locatorRange);return}}var n=this._cellMergeOwnerList;zk(e,null,n,n.length)},r}(),Fk=[]});function Wk(r){return{color:"none",borderWidth:1,borderColor:r?"none":Q.color.borderTint}}var Hk,sQ,s2t,l2t,u2t,c2t,lQ,uQ;var cQ=k(()=>{dt();Nr();ti();nQ();oQ();we();Hk={show:!0,color:Q.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};sQ={show:!0,label:Hk,itemStyle:Wk(!1),silent:void 0,dividerLineStyle:{width:1,color:Q.color.border}},s2t={label:Hk,itemStyle:Wk(!1),silent:void 0},l2t={label:Hk,itemStyle:Wk(!0),silent:void 0},u2t={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:sQ,y:sQ,body:s2t,corner:l2t,backgroundStyle:{color:"none",borderColor:Q.color.axisLine,borderWidth:1},triggerEvent:!1},c2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new lQ(this.get("x",!0)||{}),y:new lQ(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var i=t.x.dim=new Vk("x",t.x),n=t.y.dim=new Vk("y",t.y),a={x:i,y:n};this._body=new Gk("body",new ye(this.getShallow("body")),a),this._corner=new Gk("corner",new ye(this.getShallow("corner")),a)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=u2t,e}(de),lQ=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(ye),uQ=c2t});function m2t(r,e,t){i(0),i(1);function i(n){var a=e.getDimensionModel(fe[n]),o=a.dim;if(!o.shouldShow())return;var s=a.getModel("itemStyle"),l=a.getModel("label"),u=e.getShallow("tooltip",!0),c=[];for(var f=o.resetCellIterator();f.next();){var p=f.item,h={};Gt.copy(h,p.rect),Mo(c,p.id.x,p.id.y),pQ(c,e,r,t,p.option,s,l,a,h,p.option.value,d2t,u,n===0?"x":"y")}}}function g2t(r,e,t,i,n){if(a("body",e.getBody(),t,i),t.shouldShow()&&i.shouldShow())a("corner",e.getCorner(),i,t);function a(o,s,l,u){var c=new ye(e.getShallow(o,!0)),f=c.getModel("itemStyle"),p=c.getModel("label"),h=new Ls,v=new Ls,g=[],y=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(v,1);v.next();)for(l.resetLayoutIterator(h,0);h.next();){var m=h.item,d=v.item;Mo(g,m.id.x,d.id.y);var x=s.getCell(g);if(x&&x.inSpanOf&&x.inSpanOf!==x)continue;var S={};if(x&&x.span)Gt.copy(S,x.spanRect);else m.dim.getLayout(S,0,g[0]),d.dim.getLayout(S,1,g[1]);var w=x?x.option:null;pQ(g,e,r,n,w,f,p,c,S,w?w.value:null,h2t,y,o)}}}function pQ(r,e,t,i,n,a,o,s,l,u,c,f,p){var h;yA.option=n?n.itemStyle:null,yA.parentModel=a,Rm.option=n,Rm.parentModel=s;var v=St(Rm.getShallow("z2"),n&&n.itemStyle?c.special:c.normal),g=f&&f.show,y=Yk(l,yA.getItemStyle(),v);t.add(y);var m=Rm.get("cursor");if(m!=null)y.attr("cursor",m);var d;if(u!=null){var x=u+"";qh.option=n?n.label:null,qh.parentModel=o,qh.ecModel=i;var S=qh.getShallow("formatter");if(S){var w={componentType:"matrix",componentIndex:e.componentIndex,name:x,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(ht(S))x=_b(S,w);else if(Mt(S)){var T=S(w);if(T!=null)x=T+""}}if(or(y,{normal:qh},{defaultText:x,autoOverflowArea:!0,layoutRect:It(y.shape)}),d=y.getTextContent(),d){d.z2=v+1;var A=d.style;if(A&&A.overflow&&A.overflow!=="none"&&A.lineOverflow){var M={};Gt.copy(M,l),Xo(M,(((h=y.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),y.updateInnerText(),d.getLocalTransform(_A),mi(_A,_A),Gt.applyTransform(M,M,_A),d.setClipPath(new ee({shape:M}))}}Ln({el:y,componentModel:e,itemName:x,itemTooltipOption:f,formatterParamsExtra:{xyLocator:r.slice()}})}var D=e.get("triggerEvent",!0);if(d){var L=qh.get("silent");if(L==null)L=!(D||g);d.silent=L,d.ignoreHostSilent=!0}var I=Rm.get("silent");if(I==null)I=!y.style||y.style.fill==="none"||!y.style.fill;if(y.silent=I,D&&y){var E={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:p,name:d&&d.style?d.style.text:void 0,value:u,coord:r.slice()};Yt(y).eventData=E}pS(Rm),pS(yA),pS(qh)}function Yk(r,e,t){var i=e.lineWidth;if(i){var n=r.x+r.width,a=r.y+r.height;r.x=Zn(r.x,i,!0),r.y=Zn(r.y,i,!0),r.width=Zn(n,i,!0)-r.x,r.height=Zn(a,i,!0)-r.y}return new ee({shape:r,style:e,z2:t})}function fQ(r,e,t){var i=e.lineWidth;if(i){if(gA(r.x1*2)===gA(r.x2*2))r.x1=r.x2=Zn(r.x1,i,!0);if(gA(r.y1*2)===gA(r.y2*2))r.y1=r.y2=Zn(r.y1,i,!0)}return new xr({shape:r,style:e,silent:!0,z2:t})}var gA,f2t=0,p2t=99,h2t,d2t,v2t,Rm,yA,qh,_A,hQ;var dQ=k(()=>{dt();jr();ti();fr();br();Yd();jt();yt();lr();Z();pn();rr();gA=Math.round,h2t={normal:25,special:100},d2t={normal:50,special:125},v2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i){this.group.removeAll();var n=this.group,a=t.coordinateSystem,o=a.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,c=l.dim;m2t(n,t,i),g2t(n,t,u,c,i);var f=t.getShallow("borderZ2",!0),p=St(f,p2t),h=p-1,v=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);v.lineWidth=0;var g=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);g.fill="none";var y=Yk(o.clone(),v,f2t),m=Yk(o.clone(),g,p);y.silent=!0,m.silent=!0,n.add(y),n.add(m);var d=u.getUnitLayoutInfo(0,0),x=c.getUnitLayoutInfo(1,0);if(d&&x){if(u.shouldShow())n.add(fQ({x1:o.x,y1:x.xy,x2:o.x+o.width,y2:x.xy},s.getModel("dividerLineStyle").getLineStyle(),h));if(c.shouldShow())n.add(fQ({x1:d.xy,y1:o.y,x2:d.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h))}},e.type="matrix",e}(Re);Rm=new ye,yA=new ye,qh=new ye,_A=[];hQ=v2t});function vQ(r,e,t,i){var n=1-i,a=e[fe[i]],o=e[fe[n]],s=o.shouldShow();for(var l=a.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,i);u.next();)u.item.wh=u.item.xy=NaN;var c=t[Lr[i]],f=a.getLocatorCount(i)+o.getLocatorCount(i),p=new ye;for(var h=o.resetLevelIterator();h.next();)p.option=h.item.option,p.parentModel=r[fe[n]],y(h.item,s?p.get("levelSize"):0);var v=new ye;for(var g=a.resetCellIterator();g.next();)if(g.item.type===rl.leaf)v.option=g.item.option,v.parentModel=void 0,y(g.item,v.get("size"));function y(A,M){var D=_2t(M,i,t);if(!Jr(D))A.wh=Xk(D,c),c=Xk(c-A.wh),f--}var m=f?c/f:0,d=!f&&c>=1,x=t[fe[i]],S=a.getLocatorCount(i)-1,w=new Ls;for(o.resetLayoutIterator(w,i);w.next();)T(w.item);for(a.resetLayoutIterator(w,i);w.next();)T(w.item);function T(A){if(Jr(A.wh))A.wh=m;if(A.xy=x,A.id[fe[i]]===S&&!d)A.wh=t[fe[i]]+t[Lr[i]]-A.xy;x+=A.wh}}function mQ(r,e){for(var t=e[fe[r]].resetCellIterator();t.next();){var i=t.item;if(SA(i.rect,r,i.id,i.span,e),SA(i.rect,1-r,i.id,i.span,e),i.type===rl.nonLeaf)i.xy=i.rect[fe[r]],i.wh=i.rect[Lr[r]]}}function gQ(r,e){r.travelExistingCells(function(t){var i=t.span;if(i){var{spanRect:n,id:a}=t;SA(n,0,a,i,e),SA(n,1,a,i,e)}})}function SA(r,e,t,i,n){r[Lr[e]]=0;var a=t[fe[e]],o=a<0?n[fe[1-e]]:n[fe[e]],s=o.getUnitLayoutInfo(e,t[fe[e]]);if(r[fe[e]]=s.xy,r[Lr[e]]=s.wh,i[fe[e]]>1){var l=o.getUnitLayoutInfo(e,t[fe[e]]+i[fe[e]]-1);r[Lr[e]]=l.xy+l.wh-s.xy}}function _2t(r,e,t){var i=Od(r,t[Lr[e]]);return Xk(i,t[Lr[e]])}function Xk(r,e){return Math.max(Math.min(r,St(e,1/0)),0)}function jk(r){var{matrixModel:e,seriesModel:t}=r,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}function yQ(r,e,t,i,n){var a=t[fe[e]],o=t[fe[1-e]],s=a.getUnitLayoutInfo(e,a.getLocatorCount(e)-1),l=a.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),c=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,f=r.point[e]=i[e];if(!l&&!c){r[fe[e]]=yn.outside;return}if(n===il.body){if(l)r[fe[e]]=yn.inBody,f=ke(s.xy+s.wh,ce(l.xy,f)),r.point[e]=f;else r[fe[e]]=yn.outside;return}else if(n===il.corner){if(c)r[fe[e]]=yn.inCorner,f=ke(c.xy+c.wh,ce(u.xy,f)),r.point[e]=f;else r[fe[e]]=yn.outside;return}var p=l?l.xy:c?c.xy+c.wh:NaN,h=u?u.xy:p,v=s?s.xy+s.wh:p;if(f<h){if(!n){r[fe[e]]=yn.outside;return}f=h}else if(f>v){if(!n){r[fe[e]]=yn.outside;return}f=v}r.point[e]=f,r[fe[e]]=p<=f&&f<=v?yn.inBody:h<=f&&f<=p?yn.inCorner:yn.outside}function _Q(r,e,t,i){var n=1-t;if(r[fe[t]]===yn.outside)return;for(i[fe[t]].resetCellIterator(Zk);Zk.next();){var a=Zk.item;if(SQ(r.point[t],a.rect,t)&&SQ(r.point[n],a.rect,n)){e[t]=a.ordinal,e[n]=a.id[fe[n]];return}}}function xQ(r,e,t,i){if(r[fe[t]]===yn.outside)return;var n=r[fe[t]]===yn.inCorner?i[fe[1-t]]:i[fe[t]];for(n.resetLayoutIterator(xA,t);xA.next();)if(x2t(r.point[t],xA.item)){e[t]=xA.item.id[fe[t]];return}}function x2t(r,e){return e.xy<=r&&r<=e.xy+e.wh}function SQ(r,e,t){return e[fe[t]]<=r&&r<=e[fe[t]]+e[Lr[t]]}var y2t,q0,xA,Zk,yn,eu,bQ;var wQ=k(()=>{ur();yt();Z();jt();ti();te();mA();Pa();y2t=function(){function r(e,t,i){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var n=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(e,i)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var i=[];return e.eachComponent("matrix",function(n){var a=new r(n,e,t);i.push(a),n.coordinateSystem=a}),e.eachComponent(function(n,a){Rl({targetModel:a,coordSysType:"matrix",coordSysProvider:Tb})}),i},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var i=this._dims,n=this._dimModels,a=this._rect=Be(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});vQ(n,i,a,0),vQ(n,i,a,1),mQ(0,i),mQ(1,i),gQ(this._model.getBody(),i),gQ(this._model.getCorner(),i)},r.prototype.dataToPoint=function(e,t,i){return i=i||[],this.dataToLayout(e,t,q0),i[0]=q0.rect.x+q0.rect.width/2,i[1]=q0.rect.y+q0.rect.height/2,i},r.prototype.dataToLayout=function(e,t,i){var n=this._dims;i=i||{};var a=i.rect=i.rect||{};a.x=a.y=a.width=a.height=NaN;var o=i.matrixXYLocatorRange=dA(i.matrixXYLocatorRange);if(!it(e))return i;if(vA(o,null,e,n,St(t&&t.clamp,il.none)),!t||!t.ignoreMergeCells){if(!t||t.clamp!==il.corner)this._model.getBody().expandRangeByCellMerge(o);if(!t||t.clamp!==il.body)this._model.getCorner().expandRangeByCellMerge(o)}return Uk(a,o,n,0),Uk(a,o,n,1),i},r.prototype.pointToData=function(e,t,i){var n=this._dims;if(yQ(eu,0,n,e,t&&t.clamp),yQ(eu,1,n,e,t&&t.clamp),i=i||[],i[0]=i[1]=NaN,eu.y===yn.inCorner&&eu.x===yn.inBody)_Q(eu,i,0,n);else if(eu.x===yn.inCorner&&eu.y===yn.inBody)_Q(eu,i,1,n);else xQ(eu,i,0,n),xQ(eu,i,1,n);return i},r.prototype.convertToPixel=function(e,t,i,n){var a=jk(t);return a===this?a.dataToPoint(i,n):void 0},r.prototype.convertToLayout=function(e,t,i,n){var a=jk(t);return a===this?a.dataToLayout(i,n):void 0},r.prototype.convertFromPixel=function(e,t,i,n){var a=jk(t);return a===this?a.pointToData(i,n):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r}(),q0={rect:Kh()},xA=new Ls,Zk=new Ls;yn={inBody:1,inCorner:2,outside:3},eu={x:null,y:null,point:[]};bQ=y2t});function Kk(r){r.registerComponentModel(uQ),r.registerComponentView(hQ),r.registerCoordinateSystem("matrix",bQ)}var TQ=k(()=>{cQ();dQ();wQ()});function S2t(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;if(i)e.parentId=i.id;else if(t)e.parentId=t.parentId}e.parentOption=null}function AQ(r,e){var t;return P(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function b2t(r,e,t){var i=et({},t),n=r[e],a=t.$action||"merge";if(a==="merge")if(n){if(!1)var o;re(n,i,!0),hn(n,i,{ignoreSize:!0}),wL(t,n),bA(t,n),bA(t,n,"shape"),bA(t,n,"style"),bA(t,n,"extra"),t.clipPath=n.clipPath}else r[e]=i;else if(a==="replace")r[e]=i;else if(a==="remove")n&&(r[e]=null)}function bA(r,e,t){if(t){if(!r[t]&&e[t])r[t]={};r=r[t],e=e[t]}if(!r||!e)return;var i=t?CQ:w2t;for(var n=0;n<i.length;n++){var a=i[n];if(r[a]==null&&e[a]!=null)r[a]=e[a]}}function T2t(r,e){if(!r)return;if(r.hv=e.hv=[AQ(e,["left","right"]),AQ(e,["top","bottom"])],r.type==="group"){var t=r,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var CQ,w2t,EQ;var MQ=k(()=>{dt();Z();yt();Nr();ur();CQ=["transition","enterFrom","leaveTo"],w2t=CQ.concat(["enterAnimation","updateAnimation","leaveAnimation"]);EQ=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,i),this.option.elements=n},e.prototype.optionUpdated=function(t,i){var n=this.option,a=(i?n:t).elements,o=n.elements=i?[]:n.elements,s=[];this._flatten(a,s,null);var l=cS(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];P(l,function(c,f){var p=c.newOption;if(!p)return;u.push(p),S2t(c,p),b2t(o,f,p),T2t(o[f],p)},this),n.elements=be(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,i,n){P(t,function(a){if(!a)return;if(n)a.parentOption=n;i.push(a);var o=a.children;if(o&&o.length)this._flatten(o,i,a);delete a.children},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(de)});function qk(r){var e=Bt(LQ,r)?LQ[r]:Qd(r),t=new e({});return ps(t).type=r,t}function DQ(r,e,t,i){var n=qk(t);return e.add(n),i.set(r,n),ps(n).id=r,ps(n).isNew=!0,n}function wA(r,e,t,i){var n=r&&r.parent;if(n)r.type==="group"&&r.traverse(function(a){wA(a,e,t,i)}),Tm(r,e,i),t.removeKey(ps(r).id)}function IQ(r,e,t,i){if(!r.isGroup)P([["cursor",fi.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(n){var a=n[0];if(Bt(e,a))r[a]=St(e[a],n[1]);else if(r[a]==null)r[a]=n[1]});if(P(le(e),function(n){if(n.indexOf("on")===0){var a=e[n];r[n]=Mt(a)?a:null}}),Bt(e,"draggable"))r.draggable=e.draggable;e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function A2t(r){return r=et({},r),P(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(SL),function(e){delete r[e]}),r}function C2t(r,e,t){var i=Yt(r).eventData;if(!r.silent&&!r.ignore&&!i)i=Yt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name};if(i)i.info=t.info}var LQ,ps,PQ;var RQ=k(()=>{dt();Z();no();yt();jt();ur();te();jr();lr();NI();eA();Ki();ek();LQ={path:null,compoundPath:null,group:Lt,image:_r,text:me},ps=Ft(),PQ=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=gt()},e.prototype.render=function(t,i,n){if(t!==this._lastGraphicModel)this._clear();this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(!i)return;var n=this._elMap,a=this.group,o=t.get("z"),s=t.get("zlevel");P(i,function(l){var u=Rr(l.id,null),c=u!=null?n.get(u):null,f=Rr(l.parentId,null),p=f!=null?n.get(f):a,{type:h,style:v}=l;if(h==="text"&&v){if(l.hv&&l.hv[1])v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null}var{textContent:g,textConfig:y}=l;if(v&&Sw(v,h,!!y,!!g)){var m=bw(v,h,!0);if(!y&&m.textConfig)y=l.textConfig=m.textConfig;if(!g&&m.textContent)g=m.textContent}var d=A2t(l),x=l.$action||"merge",S=x==="merge",w=x==="replace";if(S){var T=!c,A=c;if(T)A=DQ(u,p,l.type,n);else A&&(ps(A).isNew=!1),rA(A);if(A)wm(A,d,t,{isInit:T}),IQ(A,l,o,s)}else if(w){wA(c,l,n,t);var M=DQ(u,p,l.type,n);if(M)wm(M,d,t,{isInit:!0}),IQ(M,l,o,s)}else if(x==="remove")tk(c,l),wA(c,l,n,t);var D=n.get(u);if(D&&g){if(S){var L=D.getTextContent();L?L.attr(g):D.setTextContent(new me(g))}else if(w)D.setTextContent(new me(g))}if(D){var I=l.clipPath;if(I){var E=I.type,R=void 0,T=!1;if(S){var B=D.getClipPath();T=!B||ps(B).type!==E,R=T?qk(E):B}else if(w)T=!0,R=qk(E);D.setClipPath(R),wm(R,I,t,{isInit:T}),Am(R,I.keyframeAnimation,t)}var z=ps(D);D.setTextConfig(y),z.option=l,C2t(D,t,l),Ln({el:D,componentModel:t,itemName:D.name,itemTooltipOption:l.tooltip}),Am(D,l.keyframeAnimation,t)}})},e.prototype._relocate=function(t,i){var n=t.option.elements,a=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"];for(var c=0;c<n.length;c++){var f=n[c],p=Rr(f.id,null),h=p!=null?o.get(p):null;if(!h||!h.isGroup)continue;var v=h.parent,g=v===a,y=ps(h),m=ps(v);y.width=wt(y.option.width,g?s:m.width)||0,y.height=wt(y.option.height,g?l:m.height)||0}for(var c=n.length-1;c>=0;c--){var f=n[c],p=Rr(f.id,null),h=p!=null?o.get(p):null;if(!h)continue;var v=h.parent,m=ps(v),d=v===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=jc(h,f,d,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ps(h).isNew&&S){var w=f.transition,T={};for(var A=0;A<u.length;A++){var M=u[A],D=x[M];if(w&&(Of(w)||Xt(w,M)>=0))T[M]=D;else h[M]=D}ge(h,T,t,0)}else h.attr(x)}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(n){wA(n,ps(n).option,i,t._lastGraphicModel)}),this._elMap=gt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Re)});function Jk(r){r.registerComponentModel(EQ),r.registerComponentView(PQ),r.registerPreprocessor(function(e){var t=e.graphic;if(it(t))if(!t[0]||!t[0].elements)e.graphic=[{elements:t}];else e.graphic=[e.graphic[0]];else if(t&&!t.elements)e.graphic=[{elements:[t]}]})}var OQ=k(()=>{Z();MQ();RQ()});function kQ(r){var e=r.get("coordinateSystem");return Xt(M2t,e)>=0}function hs(r){return r+"Axis"}function NQ(r,e){var t=gt(),i=[],n=gt();r.eachComponent({mainType:"dataZoom",query:e},function(c){if(!n.get(c.uid))s(c)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(c){if(!n.get(c.uid)&&l(c))s(c),a=!0}function s(c){n.set(c.uid,!0),i.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(p,h){var v=t.get(p);if(v&&v[h])f=!0}),f}function u(c){c.eachTargetAxis(function(f,p){(t.get(f)||t.set(f,[]))[p]=!0})}return i}function TA(r){var e=r.ecModel,t={infoList:[],infoMap:gt()};return r.eachTargetAxis(function(i,n){var a=e.getComponent(hs(i),n);if(!a)return;var o=a.getCoordSysModel();if(!o)return;var s=o.uid,l=t.infoMap.get(s);if(!l)l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l);l.axisModels.push(a)}),t}function zQ(r){var e=E2t(u1(r));return e.axisProxyMap||(e.axisProxyMap=gt())}function Om(r){if(!r)return;return zQ(r.ecModel).get(r.uid)}function BQ(r,e){zQ(r.ecModel).set(r.uid,e)}function AA(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?Om(t.model):null}var $k,E2t,M2t;var Jh=k(()=>{Z();yt();c1();$k=["x","y","radius","angle","single"],E2t=Ft(),M2t=["cartesian2d","polar","singleAxis"]});function UQ(r){var e={};return P(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var Qk,L2t,zf;var CA=k(()=>{dt();Z();Nr();Jh();yt();Qk=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){if(!this.indexMap[e])this.indexList.push(e),this.indexMap[e]=!0},r}(),L2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,n){var a=UQ(t);this.settledOption=a,this.mergeDefaultAndTheme(t,n),this._doInit(a)},e.prototype.mergeOption=function(t){var i=UQ(t);re(this.option,t,!0),re(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;P([["start","startValue"],["end","endValue"]],function(a,o){if(this._rangePropMode[o]==="value")i[a[0]]=n[a[0]]=null},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=gt(),n=this._fillSpecifiedTargetAxis(i);if(n)this._orient=t||this._makeAutoOrientByTargetAxis();else this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient);this._noTarget=!0,i.each(function(a){if(a.indexList.length)this._noTarget=!1},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return P($k,function(n){var a=this.getReferringComponents(hs(n),xF);if(!a.specified)return;i=!0;var o=new Qk;P(a.models,function(s){o.add(s.componentIndex)}),t.set(n,o)},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===i}});l(s,"single")}function l(u,c){var f=u[0];if(!f)return;var p=new Qk;if(p.add(f.componentIndex),t.set(c,p),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Xe).models[0];h&&P(u,function(v){if(f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Xe).models[0])p.add(v.componentIndex)})}}if(a)P($k,function(u){if(!a)return;var c=n.findComponents({mainType:hs(u),filter:function(p){return p.get("type",!0)==="category"}});if(c[0]){var f=new Qk;f.add(c[0].componentIndex),t.set(u,f),a=!1}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle"))this._autoThrottle=!1;if(this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,n=this.get("rangeMode");P([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;if(s&&!l)i[o]="percent";else if(!s&&l)i[o]="value";else if(n)i[o]=n[o];else if(s)i[o]="percent"})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,n){if(t==null)t=this.ecModel.getComponent(hs(i),n)},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(n,a){P(n.indexList,function(o){t.call(i,a,o)})})},e.prototype.getAxisProxy=function(t,i){return Om(this.getAxisModel(t,i))},e.prototype.getAxisModel=function(t,i){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[i])return this.ecModel.getComponent(hs(t),i)},e.prototype.setRawRange=function(t){var i=this.option,n=this.settledOption;P([["start","startValue"],["end","endValue"]],function(a){if(t[a[0]]!=null||t[a[1]]!=null)i[a[0]]=n[a[0]]=t[a[0]],i[a[1]]=n[a[1]]=t[a[1]]},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;P(["start","startValue","end","endValue"],function(n){i[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(t,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return Om(t);var i,n=this._targetAxisInfoMap.keys();for(var a=0;a<n.length;a++){var o=n[a],s=this._targetAxisInfoMap.get(o);for(var l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;if(!i)i=u}}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(de);zf=L2t});var D2t,VQ;var FQ=k(()=>{dt();CA();D2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(zf),VQ=D2t});var I2t,km;var EA=k(()=>{dt();jr();I2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n,a){this.dataZoomModel=t,this.ecModel=i,this.api=n},e.type="dataZoom",e}(Re),km=I2t});var P2t,GQ;var HQ=k(()=>{dt();EA();P2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(km),GQ=P2t});var R2t,WQ;var YQ=k(()=>{Z();te();Yh();Jh();yt();_i();po();R2t=function(){function r(e,t,i,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return It(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(kQ(t)){var i=hs(this._dimName),n=t.getReferringComponents(i,Xe).models[0];if(n&&this._axisIndex===n.componentIndex)e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return It(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,i=this.getAxisModel().axis,n=i.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],c,f=[!1,!1];P(["start","end"],function(x,S){var w=e[x],T=e[x+"Value"];if(o[S]==="percent")w==null&&(w=s[S]),T=Ne(w,s,t),f[S]=!0;else{if(c=!0,T==null)T=t[S];else if(T=n.parse(T),n.sanitize)T=n.sanitize(T,t);w=Ne(T,t,s)}u[S]=T==null||isNaN(T)?t[S]:T,l[S]=w==null||isNaN(w)?s[S]:w}),Pr(u),Pr(l);var p=this._minMaxSpan;c?h(u,l,t,s,!1):h(l,u,s,t,!0);function h(x,S,w,T,A){var M=A?"Span":"ValueSpan";sa(0,x,w,"all",p["min"+M],p["max"+M]);for(var D=0;D<2;D++)if(S[D]=Ne(x[D],w,T,!0),A)S[D]=S[D],f[D]=!0;Vd(S)}var v=Ur(n)||zl(n),g=i.getExtent(),y=yr(g[1]-g[0]),m=v?0:kd(u,y,0.5);P([[0,zo],[1,Tn]],function(x){var S=x[0],w=x[1];if(!f[S]||!isFinite(m))return;if(u[S]=Me(u[S],m),u[S]=ke(t[1],ce(t[0],u[S])),l[S]===s[S]){if(u[S]=t[S],v)u[S]=w(u[S])}}),Vd(u);var d=[Ne(u[0],t,s,!0),Ne(u[1],t,s,!0)];return Vd(d),{value:u,percent:l,percentInverted:d,valuePrecision:m}},r.prototype.reset=function(e,t){if(!this.hostedBy(e))return;var i=this.getAxisModel().axis;fo(i,R8);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var a=e.settledOption;if(t)a=Dt({start:t[0],end:t[1]},a);var o=this._window=this.calculateDataWindow(a),{percent:s,value:l}=o;if(s[0]!==0)n.setZoomMM(0,l[0]);if(s[1]!==100)n.setZoomMM(1,l[1])},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._window.value;if(a==="none")return;P(n,function(l){var u=l.getData(),c=u.mapDimensionsAll(i);if(!c.length)return;if(a==="weakFilter"){var f=u.getStore(),p=nt(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){var v,g,y;for(var m=0;m<c.length;m++){var d=f.get(p[m],h),x=!isNaN(d),S=d<o[0],w=d>o[1];if(x&&!S&&!w)return!0;x&&(y=!0),S&&(v=!0),w&&(g=!0)}return y&&v&&g})}else P(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(g){return!s(g)?NaN:g}));else{var v={};v[h]=o,u.selectRange(v)}});P(c,function(h){u.setApproximateExtent(o,h)})});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._extent;P(["min","max"],function(n){var a=t.get(n+"Span"),o=t.get(n+"ValueSpan");if(o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null)a=Ne(i[0]+o,i,[0,100],!0);else if(a!=null)o=Ne(a,[0,100],i,!0)-i[0];e[n+"Span"]=a,e[n+"ValueSpan"]=o},this)},r}(),WQ=R2t});var O2t,ZQ;var jQ=k(()=>{Z();Jh();YQ();O2t={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(hs(o),s);n(o,s,l,a)})})}var t=[];e(function(n,a,o,s){if(!Om(o)){var l=new WQ(n,a,s,r);t.push(l),BQ(o,l)}});var i=gt();return P(t,function(n){P(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(n,a){var o=t.getAxisProxy(n,a),s=AA(t,o);if(s)i.push([o,s]);else o.reset(t,null)}),P(i,function(n){n[0].reset(t,n[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var n=i.getWindow(),{percent:a,value:o}=n;t.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}},ZQ=O2t});function tN(r){r.registerAction("dataZoom",function(e,t){var i=NQ(t,e);P(i,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var XQ=k(()=>{Jh();Z()});function $h(r){k2t(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ZQ),tN(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}var k2t;var MA=k(()=>{jQ();XQ();yt();k2t=Go()});function KQ(r){r.registerComponentModel(VQ),r.registerComponentView(GQ),$h(r)}var qQ=k(()=>{FQ();HQ();MA()});function Bf(r,e){JQ[r]=e}function LA(r){return JQ[r]}var _n,JQ;var nl=k(()=>{_n=function(){function r(){}return r}(),JQ={}});var z2t,$Q;var QQ=k(()=>{dt();nl();Nr();we();Z();z2t=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,n){var a=n.getTheme().get("toolbox"),o=a?a.feature:null;if(o)this._themeFeatureOption=et({},o),a.feature={};if(r.prototype.init.call(this,t,i,n),o)a.feature=o},e.prototype.optionUpdated=function(){P(this.option.feature,function(t,i){var n=this._themeFeatureOption,a=LA(i);if(a){if(a.getDefaultOption)a.defaultOption=a.getDefaultOption(this.ecModel);if(n&&n[i])re(t,n[i]),n[i]=null;re(t,a.defaultOption)}},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:"bottom"}},e}(de),$Q=z2t});function DA(r,e){var t=Pl(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var n=new ee({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return n}var eN=k(()=>{pn();jt()});function V2t(r){return r.indexOf("my")===0}function ttt(r){return r instanceof _n}var U2t,ett;var rtt=k(()=>{dt();Hn();jt();tr();ti();Hu();eN();jr();nl();In();Bp();rr();ur();we();Z();U2t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,n,a){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features=gt()),f=[];P(u,function(d,x){f.push(x)}),new dn(this._featureNames||[],f).add(p).update(p).remove(ne(p,null)).execute(),this._featureNames=be(f,function(d){return c.hasKey(d)});function p(d,x){var S=d!=null&&x==null,w=d!=null&&x!=null,T=d==null,A=S||w?f[d]:f[x],M=u[A],D=S||w?new ye(M,t,i):null,L=D&&D.get("show"),I;if(S){if(!L)return;if(V2t(A))I={onclick:D.option.onclick,featureName:A};else{var E=LA(A);if(!E)return;I=new E}c.set(A,I)}else I=c.get(A);if(T||!L){if(ttt(I)&&I.dispose)I.dispose(i,n);c.removeKey(A);return}if(a&&a.newTitle!=null&&a.featureName===A)M.title=a.newTitle;if(S)I.uid=Da("toolbox-feature");if(I.model=D,I.ecModel=i,I.api=n,h(D,I,A),D.setIconStatus=function(R,B){var z=this.option,V=this.iconPaths;if(z.iconStatus=z.iconStatus||{},z.iconStatus[R]=B,V[R])(B==="emphasis"?An:Cn)(V[R])},ttt(I)&&I.render)I.render(D,i,n,a)}function h(d,x,S){var w=d.getModel("iconStyle"),T=d.getModel(["emphasis","iconStyle"]),A=x instanceof _n&&x.getIcons?x.getIcons():d.get("icon"),M=d.get("title")||{},D,L;if(ht(A))D={},D[S]=A;else D=A;if(ht(M))L={},L[S]=M;else L=M;var I=d.iconPaths={};P(D,function(E,R){var B=Pu(E,{},{x:-s/2,y:-s/2,width:s,height:s});B.setStyle(w.getItemStyle());var z=B.ensureState("emphasis");z.style=T.getItemStyle();var V=new me({style:{text:L[R],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null,font:rv({fontStyle:T.get("textFontStyle"),fontFamily:T.get("textFontFamily"),fontSize:T.get("textFontSize"),fontWeight:T.get("textFontWeight")},i)},ignore:!0});B.setTextContent(V),Ln({el:B,componentModel:t,itemName:R,formatterParamsExtra:{title:L[R]}}),B.__title=L[R],B.on("mouseover",function(){var H=T.getItemStyle(),K=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";V.setStyle({fill:T.get("textFill")||H.fill||H.stroke||Q.color.neutral99,backgroundColor:T.get("textBackgroundColor")}),B.setTextConfig({position:T.get("textPosition")||K}),V.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){if(d.get(["iconStatus",R])!=="emphasis")n.leaveEmphasis(this);V.hide()}),(d.get(["iconStatus",R])==="emphasis"?An:Cn)(B),o.add(B),B.on("click",xt(x.onclick,x,i,n,R)),I[R]=B})}var v=Je(t,n).refContainer,g=t.getBoxLayoutParams(),y=t.get("padding"),m=Be(g,v,y);Ns(t.get("orient"),o,t.get("itemGap"),m.width,m.height),jc(o,g,v,y),o.add(DA(o.getBoundingRect(),t)),l||o.eachChild(function(d){var x=d.__title,S=d.ensureState("emphasis"),w=S.textConfig||(S.textConfig={}),T=d.getTextContent(),A=T&&T.ensureState("emphasis");if(A&&!Mt(A)&&x){var M=A.style||(A.style={}),D=Ic(x,me.makeFont(M)),L=d.x+o.x,I=d.y+o.y+s,E=!1;if(I+D.height>n.getHeight())w.position="top",E=!0;var R=E?-5-D.height:s+10;if(L+D.width/2>n.getWidth())w.position=["100%",R],M.align="right";else if(L-D.width/2<0)w.position=[0,R],M.align="left"}})},e.prototype.updateView=function(t,i,n,a){P(this._features,function(o){o&&o instanceof _n&&o.updateView&&o.updateView(o.model,i,n,a)})},e.prototype.dispose=function(t,i){P(this._features,function(n){n&&n instanceof _n&&n.dispose&&n.dispose(t,i)})},e.type="toolbox",e}(Re);ett=U2t});var F2t,itt;var ntt=k(()=>{dt();Vi();nl();we();F2t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var n=this.model,a=n.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||Q.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Te.browser;if(typeof MouseEvent==="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var p=l.split(","),h=p[0].indexOf("base64")>-1,v=o?decodeURIComponent(p[1]):p[1];h&&(v=window.atob(v));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){var y=v.length,m=new Uint8Array(y);while(y--)m[y]=v.charCodeAt(y);var d=new Blob([m]);window.navigator.msSaveOrOpenBlob(d,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(v),w.close(),S.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var T=n.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(T&&T[0]||"")+'" /></body>',M=window.open();M.document.write(A),M.document.title=a}},e.getDefaultOption=function(t){var i={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:Q.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(_n),itt=F2t});var att="__ec_magicType_stack__",G2t,H2t,ott,stt;var ltt=k(()=>{dt();hh();Z();nl();yt();G2t=[["line","bar"],["stack"]],H2t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),n={};return P(t.get("type"),function(a){if(i[a])n[a]=i[a]}),n},e.getDefaultOption=function(t){var i={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 i},e.prototype.onclick=function(t,i,n){var a=this.model,o=a.get(["seriesIndex",n]);if(!ott[n])return;var s={series:[]},l=function(f){var{subType:p,id:h}=f,v=ott[n](p,h,f,a);if(v)Dt(v,f.option),s.series.push(v);var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(n==="line"||n==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var m=y.dim,d=m+"Axis",x=f.getReferringComponents(d,Xe).models[0],S=x.componentIndex;s[d]=s[d]||[];for(var w=0;w<=S;w++)s[d][S]=s[d][S]||{};s[d][S].boundaryGap=n==="bar"}}};P(G2t,function(f){if(Xt(f,n)>=0)P(f,function(p){a.setIconStatus(p,"normal")})}),a.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=n;if(n==="stack"){if(u=re({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",n])!=="emphasis")c="tiled"}i.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})},e}(_n),ott={line:function(r,e,t,i){if(r==="bar")return re({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return re({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var n=t.get("stack")===att;if(r==="line"||r==="bar")return i.setIconStatus("stack",n?"normal":"emphasis"),re({id:e,stack:n?"":att},i.get(["option","stack"])||{},!0)}};$n({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});stt=H2t});function W2t(r){var e={},t=[],i=[];return r.eachRawSeries(function(n){var a=n.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=PY(o);if(!e[s])e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index});e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function Y2t(r){var e=[];return P(r,function(t,i){var{categoryAxis:n,valueAxis:a}=t,o=a.dim,s=[" "].concat(nt(t.series,function(h){return h.name})),l=[n.model.getCategories()];P(t.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});var u=[s.join(Nm)];for(var c=0;c<l[0].length;c++){var f=[];for(var p=0;p<l.length;p++)f.push(l[p][c]);u.push(f.join(Nm))}e.push(u.join(`
83
+ `))}),e.join(`
84
+
85
+ `+PA+`
86
+
87
+ `)}function Z2t(r){return nt(r,function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,function(){var a=arguments.length,o=arguments[a-1],s=t.getName(o);for(var l=0;l<a-1;l++)n[l]=arguments[l];i.push((s?s+Nm:"")+n.join(Nm))}),i.join(`
88
+ `)}).join(`
89
+
90
+ `+PA+`
91
+
92
+ `)}function j2t(r){var e=W2t(r);return{value:be([Y2t(e.seriesGroupByCategoryAxis),Z2t(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
93
+
94
+ `+PA+`
95
+
96
+ `),meta:e.meta}}function IA(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function X2t(r){var e=r.slice(0,r.indexOf(`
97
+ `));if(e.indexOf(Nm)>=0)return!0}function K2t(r){var e=r.split(/\n+/g),t=IA(e.shift()).split(rN),i=[],n=nt(t,function(l){return{name:l,data:[]}});for(var a=0;a<e.length;a++){var o=IA(e[a]).split(rN);i.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[a]=o[s])}return{series:n,categories:i}}function q2t(r){var e=r.split(/\n+/g),t=IA(e.shift()),i=[];for(var n=0;n<e.length;n++){var a=IA(e[n]);if(!a)continue;var o=a.split(rN),s="",l=void 0,u=!1;if(isNaN(o[0]))u=!0,s=o[0],o=o.slice(1),i[n]={name:s,value:[]},l=i[n].value;else l=i[n]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);if(l.length===1)u?i[n].value=l[0]:i[n]=l[0]}return{name:t,data:i}}function J2t(r,e){var t=r.split(new RegExp(`
98
+ *`+PA+`
99
+ *`,"g")),i={series:[]};return P(t,function(n,a){if(X2t(n)){var o=K2t(n),s=e[a],l=s.axisDim+"Axis";if(s)i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series)}else{var o=q2t(n);i.series.push(o)}}),i}function Q2t(r,e){return nt(r,function(t,i){var n=e&&e[i];if(Pt(n)&&!it(n)){var a=Pt(t)&&!it(t);if(!a)t={value:t};var o=n.name!=null&&t.name==null;return t=Dt(t,n),o&&delete t.name,t}else return t})}var PA,Nm="\t",rN,$2t,utt;var ctt=k(()=>{dt();hh();Z();nl();pl();we();p0();PA=Array(60).join("-");rN=new RegExp("["+Nm+"]+","g");$2t=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var n=i.getDom(),a=this.model;if(this._dom)n.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=a.get("backgroundColor")||Q.color.neutral00;var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),p=a.get("contentToOption"),h=j2t(t);if(Mt(f)){var v=f(i.getOption());if(ht(v))u.innerHTML=v;else if(vu(v))u.appendChild(v)}else{c.readOnly=a.get("readOnly");var g=c.style;g.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",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var y=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var d="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),S=document.createElement("div");d+=";background-color:"+a.get("buttonColor"),d+=";color:"+a.get("buttonTextColor");var w=this;function T(){n.removeChild(o),w._dom=null}dg(x,"click",T),dg(S,"click",function(){if(p==null&&f!=null||p!=null&&f==null){T();return}var A;try{if(Mt(p))A=p(u,i.getOption());else A=J2t(c.value,y)}catch(M){throw T(),Error("Data view format error "+M)}if(A)i.dispatchAction({type:"changeDataView",newOption:A});T()}),x.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=x.style.cssText=d,!a.get("readOnly")&&m.appendChild(S),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.dispose=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var i={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:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00};return i},e}(_n);$n({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];P(r.newOption.series,function(i){var n=e.getSeriesByName(i.name)[0];if(!n)t.push(et({type:"scatter"},i));else{var a=n.get("data");t.push({name:i.name,data:Q2t(i.data,a)})}}),e.mergeOption(Dt({series:t},r.newOption))});utt=$2t});function htt(r,e){var t=iN(r);ftt(e,function(i,n){var a=t.length-1;for(;a>=0;a--){var o=t[a];if(o[n])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function dtt(r){var e=iN(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return ftt(t,function(n,a){for(var o=e.length-1;o>=0;o--)if(n=e[o][a],n){i[a]=n;break}}),i}function vtt(r){ptt(r).snapshots=null}function mtt(r){return iN(r).length}function iN(r){var e=ptt(r);if(!e.snapshots)e.snapshots=[{}];return e.snapshots}var ftt,ptt;var nN=k(()=>{Z();yt();ftt=P,ptt=Ft()});var tEt,ytt;var _tt=k(()=>{dt();hh();nN();nl();tEt=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){vtt(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={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 i},e}(_n);$n({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});ytt=tEt});function oN(r){return r[0]>r[1]&&r.reverse(),r}function xtt(r,e){return yl(r,e,{includeMainTypes:eEt})}function wtt(r,e,t,i){var n=t.getAxis(["x","y"][r]),a=oN(nt([0,1],function(s){return e?n.coordToData(n.toLocalCoord(i[s]),!0):n.toGlobalCoord(n.dataToCoord(i[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}function Att(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function nEt(r,e){var t=Ctt(r),i=Ctt(e),n=[t[0]/i[0],t[1]/i[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Ctt(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var eEt,rEt,iEt,Stt,btt,aN,Ttt,J0;var sN=k(()=>{Z();vO();yt();zn();fr();eEt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],rEt=function(){function r(e,t,i){var n=this;this._targetInfoList=[];var a=xtt(t,e);P(iEt,function(o,s){if(!i||!i.include||Xt(i.include,s)>=0)o(a,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,n,a){if((i.coordRanges||(i.coordRanges=[])).push(n),!i.coordRange){i.coordRange=n;var o=aN[i.brushType](0,a,n);i.__rangeOffset={offset:Ttt[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){P(e,function(n){var a=this.findTargetInfo(n,t);if(a&&a!==!0)P(a.coordSyses,function(o){var s=aN[n.brushType](1,o,n.range,!0);i(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){P(e,function(i){var n=this.findTargetInfo(i,t);if(i.range=i.range||[],n&&n!==!0){i.panelId=n.panelId;var a=aN[i.brushType](0,n.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?Ttt[i.brushType](a.values,o.offset,nEt(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(e,t){return nt(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:FT(n),isTargetByCursor:HT(n,e,i.coordSysModel),getLinearBrushOtherExtent:GT(n)}})},r.prototype.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return n===!0||n&&Xt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){var i=this._targetInfoList,n=xtt(t,e);for(var a=0;a<i.length;a++){var o=i[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Stt.length;l++)if(Stt[l](n,o))return o}return!0},r}();iEt={grid:function(r,e){var{xAxisModels:t,yAxisModels:i,gridModels:n}=r,a=gt(),o={},s={};if(!t&&!i&&!n)return;P(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),P(i,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),P(n,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];P(u.getCartesians(),function(f,p){if(Xt(t,f.getAxis("x").model)>=0||Xt(i,f.getAxis("y").model)>=0)c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:btt.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})})},geo:function(r,e){P(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:btt.geo})})}},Stt=[function(r,e){var{xAxisModel:t,yAxisModel:i,gridModel:n}=r;return!n&&t&&(n=t.axis.grid.model),!n&&i&&(n=i.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],btt={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=KP(null,r);return Sx(e,e,Oh(null,r)),e}},aN={lineX:ne(wtt,0),lineY:ne(wtt,1),rect:function(r,e,t,i){var n=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),a=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[oN([n[0],a[0]]),oN([n[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var n=[$r(),$r()],a=nt(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:a,xyMinMax:n}}};Ttt={lineX:ne(Att,0),lineY:ne(Att,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return nt(r,function(i,n){return[i[0]-t[0]*e[n][0],i[1]-t[1]*e[n][1]]})}};J0=rEt});function uN(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};if(e.xAxisIndex==null&&e.xAxisId==null)e.xAxisIndex="all";if(e.yAxisIndex==null&&e.yAxisId==null)e.yAxisIndex="all";return e}function uEt(r,e){r.setIconStatus("back",mtt(e)>1?"emphasis":"normal")}function cEt(r,e,t,i,n){var a=t._isZoomActive;if(i&&i.type==="takeGlobalCursor")a=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1;t._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new J0(uN(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}var lN,aEt,oEt,sEt,lEt,Ett;var Mtt=k(()=>{dt();Z();VT();sN();nN();Yh();nl();yt();CL();we();te();lN=P,aEt=gF("toolbox-dataZoom_"),oEt={x:"width",y:"height"},sEt=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,n,a){if(!this._brushController)this._brushController=new ym(n.getZr()),this._brushController.on("brush",xt(this._onBrush,this)).mount();cEt(t,i,this,a,n),uEt(t,i)},e.prototype.onclick=function(t,i,n){lEt[n].call(this)},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var n={},a=this.ecModel;this._brushController.updateCovers([]);var o=new J0(uN(this.model),a,{include:["grid"]});o.matchOutputRanges(i,a,function(u,c,f){if(f.type!=="cartesian2d")return;var p=f.master.getRect().clone(),h=u.brushType;if(h==="rect")s("x",f,p,c[0]),s("y",f,p,c[1]);else s({lineX:"x",lineY:"y"}[h],f,p,c)}),htt(a,n),this._dispatchZoomAction(n);function s(u,c,f,p){var h=c.getAxis(u),v=h.model,g=l(u,v,a),y=g.findRepresentativeAxisProxy(v).getMinMaxSpan(),m=h.scale.getExtent();if(y.minValueSpan!=null||y.maxValueSpan!=null)p=sa(0,p.slice(),m,0,y.minValueSpan,y.maxValueSpan);var d=kd(m,f[oEt[u]],0.5);g&&(n[g.id]={dataZoomId:g.id,startValue:isFinite(d)?Me(p[0],d):p[0],endValue:isFinite(d)?Me(p[1],d):p[1]})}function l(u,c,f){var p;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(p=h)}),p}},e.prototype._dispatchZoomAction=function(t){var i=[];lN(t,function(n,a){i.push(It(n))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={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:Q.color.backgroundTint}};return i},e}(_n),lEt={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(dtt(this.ecModel))}};pH("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),n=[],a=uN(i),o=yl(r,a);lN(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),lN(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:aEt+u+f};p[c]=f,n.push(p)}return n});Ett=sEt});function cN(r){r.registerComponentModel($Q),r.registerComponentView(ett),Bf("saveAsImage",itt),Bf("magicType",stt),Bf("dataView",utt),Bf("dataZoom",Ett),Bf("restore",ytt),he(KQ)}var Ltt=k(()=>{On();qQ();QQ();rtt();nl();ntt();ltt();ctt();_tt();Mtt()});var fEt,Dtt;var Itt=k(()=>{dt();Nr();we();fEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:0.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},e}(de),Dtt=fEt});function RA(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function Ptt(r){if(!Te.domSupported)return;var e=document.documentElement.style;for(var t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}function pN(r,e){if(!r)return e;e=mb(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function Ott(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var fN,Rtt;var hN=k(()=>{pn();Vi();fN=Ptt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Rtt=Ptt(["webkitTransition","transition","OTransition","MozTransition","msTransition"])});function dEt(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function vEt(r,e,t){if(!ht(t)||t==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");e=ks(e);var a=dEt(t),o=Math.max(Math.round(n)*1.5,6),s="",l=dN+":",u;if(Xt(["left","right"],a)>-1)s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)";else s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)";var c=u*Math.PI/180,f=o+n,p=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=e+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function mEt(r,e,t){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";if(t)n=" "+r/2+"s "+i,a="opacity"+n+",visibility"+n;if(!e)n=" "+r+"s "+i,a+=(a.length?",":"")+(Te.transformSupported?""+dN+n:",left"+n+",top"+n);return pEt+":"+a}function ktt(r,e,t){var i=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Te.transformSupported)return t?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=Te.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return t?"top:0;left:0;"+dN+":"+o+";":[["top",0],["left",0],[fN,o]]}function gEt(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont());var n=St(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),P(["decoration","align"],function(u){var c=r.get(u);c&&e.push("text-"+u+":"+c)}),e.join(";")}function yEt(r,e,t,i){var n=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),f=r.getModel("textStyle"),p=Jb(r,"html"),h=u+"px "+c+"px "+s+"px "+l;if(n.push("box-shadow:"+h),e&&a>0&&n.push(mEt(a,t,i)),o)n.push("background-color:"+o);if(P(["width","color","radius"],function(v){var g="border-"+v,y=mb(g),m=r.get(y);m!=null&&n.push(g+":"+m+(v==="color"?"":"px"))}),n.push(gEt(f)),p!=null)n.push("padding:"+Pl(p).join("px ")+"px");return n.join(";")+";"}function Ntt(r,e,t,i,n){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();if(o)BV(r,o,t,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();if(s)r[0]+=s.offsetLeft,r[1]+=s.offsetTop}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var pEt,dN,hEt,_Et,ztt;var Btt=k(()=>{Z();pl();hg();Vi();pn();hN();Rn();pEt=pN(Rtt,"transition"),dN=pN(fN,"transform"),hEt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Te.transform3dSupported?"will-change:transform;":"");_Et=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Te.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=t.appendTo,o=a&&(ht(a)?document.querySelector(a):vu(a)?a:Mt(a)&&a(e.getDom()));Ntt(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){if(s._enterable)clearTimeout(s._hideTimeout),s._show=!0;s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,c=n.painter.getViewportRoot();da(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){if(s._inContent=!1,s._enterable){if(s._show)s.hideLater(s._hideDelay)}}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=Ott(t,"position"),n=t.style;if(n.position!=="absolute"&&i!=="absolute")n.position="relative"}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;if(!i.innerHTML)n.display="none";else n.cssText=hEt+yEt(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+ktt(a[0],a[1],!0)+("border-color:"+ks(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none"));this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,n,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ht(a)&&i.get("trigger")==="item"&&!RA(i))s=vEt(i,n,a);if(ht(e))o.innerHTML=e+s;else if(e){if(o.innerHTML="",!it(e))e=[e];for(var l=0;l<e.length;l++)if(vu(e[l])&&e[l].parentNode!==o)o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(!this.el)return;var i=this._styleCoord;if(Ntt(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var n=this.el.style,a=ktt(i[0],i[1]);P(a,function(o){n[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;if(this._enableDisplayTransition)t.visibility="hidden",t.opacity="0";else t.display="none";Te.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(xt(this.hide,this),e);else this.hide()},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;UV(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var i=t.parentNode;i&&i.removeChild(t)}this.el=this._container=null},r}(),ztt=_Et});function Uf(r){return Math.max(0,r)}function Utt(r){var e=Uf(r.shadowBlur||0),t=Uf(r.shadowOffsetX||0),i=Uf(r.shadowOffsetY||0);return{left:Uf(e-t),right:Uf(e+t),top:Uf(e-i),bottom:Uf(e+i)}}function Vtt(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var xEt,Ftt;var Gtt=k(()=>{Z();Bp();Rn();Vo();xEt=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Vtt(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){if(this._hideTimeout)clearTimeout(this._hideTimeout);this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,n,a){var o=this;if(Pt(e))Ue("");if(this.el)this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new me({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Jb(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){if(l._enterable)clearTimeout(l._hideTimeout),l._show=!0;l._inContent=!0}),this.el.on("mouseout",function(){if(l._enterable){if(l._show)l.hideLater(l._hideDelay)}l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=Utt(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var n=this._styleCoord;Vtt(n,this._zr,e,t),e=n[0],t=n[1];var a=i.style,o=Uf(a.borderWidth||0),s=Utt(a);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){if(this.el)this.el.hide();this._show=!1},r.prototype.hideLater=function(e){if(this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent)if(e)this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(xt(this.hide,this),e);else this.hide()},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();Ftt=xEt});function $0(r,e,t){var i=e.ecModel,n;if(t)n=new ye(t,i,i),n=new ye(e.option,n,i);else n=e;for(var a=r.length-1;a>=0;a--){var o=r[a];if(o){if(o instanceof ye)o=o.get("tooltip",!0);if(ht(o))o={formatter:o};if(o)n=new ye(o,n,i)}}return n}function Htt(r,e){return r.dispatchAction||xt(e.dispatchAction,e)}function wEt(r,e,t,i,n,a,o){var s=t.getSize(),l=s[0],u=s[1];if(a!=null)if(r+l+a+2>i)r-=l+a;else r+=a;if(o!=null)if(e+u+o>n)e-=u+o;else e+=o;return[r,e]}function TEt(r,e,t,i,n){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function AEt(r,e,t,i){var n=t[0],a=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,{width:u,height:c}=e;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-n/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+c+o;break;case"left":s=e.x-n-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function Wtt(r){return r==="center"||r==="middle"}function CEt(r,e,t){var i=zg(r).queryOptionMap,n=i.keys()[0];if(!n||n==="series")return;var a=_l(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!o)return;var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Yt(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}var SEt,bEt,Ytt;var Ztt=k(()=>{dt();Z();Vi();Btt();Gtt();pn();te();jt();Sk();ur();ti();xk();Qi();W0();yt();jr();cy();lr();hN();xy();Rn();SEt=new ee({shape:{x:-1,y:-1,width:2,height:2}}),bEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(Te.node||!i.getDom())return;var n=t.getComponent("tooltip"),a=this._renderMode=bF(n.get("renderMode"));this._tooltipContent=a==="richText"?new Ftt(i):new ztt(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})},e.prototype.render=function(t,i,n){if(Te.node||!n.getDom())return;this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=n;var a=this._tooltipContent;if(a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration"))$o(this,"_updatePosition",50,"fixRate");else Fu(this,"_updatePosition")},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");lA("itemTooltip",this._api,xt(function(n,a,o){if(i!=="none"){if(i.indexOf(n)>=0)this._tryShow(a,o);else if(n==="leave")this._hide(o)}},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,n=this._api,a=t.get("triggerOn");if(t.get("trigger")!=="axis")this._lastDataByCoordSys=null,this._cbParamsList=null;if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,n,a){if(a.from===this.uid||Te.node||!n.getDom())return;var o=Htt(a,n);this._ticket="";var s=a.dataByCoordSys,l=CEt(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=SEt;c.x=a.x,c.y=a.y,c.update(),Yt(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,n,a))return;var f=Z0(a,i),p=f.point[0],h=f.point[1];if(p!=null&&h!=null)this._tryShow({offsetX:p,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else if(a.x!=null&&a.y!=null)n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o)},e.prototype.manuallyHideTip=function(t,i,n,a){var o=this._tooltipContent;if(this._tooltipModel)o.hideLater(this._tooltipModel.get("hideDelay"));if(this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid)this._hide(Htt(a,n))},e.prototype._manuallyAxisShowTip=function(t,i,n,a){var{seriesIndex:o,dataIndex:s}=a,l=i.getComponent("axisPointer").coordSysAxesInfo;if(o==null||s==null||l==null)return;var u=i.getSeriesByIndex(o);if(!u)return;var c=u.getData(),f=$0([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")!=="axis")return;return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0},e.prototype._tryShow=function(t,i){var n=t.target,a=this._tooltipModel;if(!a)return;this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=Yt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;if(Bs(n,function(c){if(c.tooltipDisabled)return l=u=null,!0;if(l||u)return;if(Yt(c).dataIndex!=null)l=c;else if(Yt(c).tooltipConfig!=null)u=c},!0),l)this._showSeriesItemTooltip(t,l,i);else if(u)this._showComponentItemTooltip(t,u,i);else this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)},e.prototype._showOrMove=function(t,i){var n=t.get("showDelay");i=xt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(t,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=$0([i.tooltipOption],a),l=this._renderMode,u=[],c=mr("section",{blocks:[],noHeader:!0}),f=[],p=new $b;P(t,function(d){P(d.dataByAxis,function(x){var S=n.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value,T=S.axis,A=T.scale.parse(w);if(!S||w==null)return;var M=gk(w,T,n,x.seriesDataIndices,x.valueLabelOpt),D=mr("section",{header:M,noHeader:!Ti(M),sortBlocks:!0,blocks:[]});c.blocks.push(D),P(x.seriesDataIndices,function(L){var I=n.getSeriesByIndex(L.seriesIndex),E=L.dataIndexInside,R=I.getDataParams(E);if(R.dataIndex<0)return;R.axisDim=x.axisDim,R.axisIndex=x.axisIndex,R.axisType=x.axisType,R.axisId=x.axisId,R.axisValue=Lv(S.axis,{value:A}),R.axisValueLabel=M,R.marker=p.makeTooltipMarker("item",ks(R.color),l);var B=zL(I.formatTooltip(E,!0,null)),z=B.frag;if(z){var V=$0([I],a).get("valueFormatter");D.blocks.push(V?et({valueFormatter:V},z):z)}if(B.text)f.push(B.text);u.push(R)})})}),c.blocks.reverse(),f.reverse();var h=i.position,v=s.get("order"),g=ZL(c,p,l,v,n.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var y=l==="richText"?`
100
+
101
+ `:"<br/>",m=f.join(y);this._showOrMove(s,function(){if(this._updateContentNotChangedOnAxis(t,u))this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u);else this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(t,i,n){var a=this._ecModel,o=Yt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,{dataIndex:c,dataType:f}=o,p=u.getData(f),h=this._renderMode,v=t.positionDefault,g=$0([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=g.get("trigger");if(y!=null&&y!=="item")return;var m=u.getDataParams(c,f),d=new $b;m.marker=d.makeTooltipMarker("item",ks(m.color),h);var x=zL(u.formatTooltip(c,!1,f)),S=g.get("order"),w=g.get("valueFormatter"),T=x.frag,A=T?ZL(w?et({valueFormatter:w},T):T,d,h,S,a.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,m,M,t.offsetX,t.offsetY,t.position,t.target,d)}),n({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})},e.prototype._showComponentItemTooltip=function(t,i,n){var a=this._renderMode==="html",o=Yt(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ht(l)){var c=l;l={content:c,formatter:c},u=!0}if(u&&a&&l.content)l=It(l),l.content=Pi(l.content);var f=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);if(p)f.push(p);f.push({formatter:l.content});var h=t.positionDefault,v=$0(f,this._tooltipModel,h?{position:h}:null),g=v.get("content"),y=Math.random()+"",m=new $b;this._showOrMove(v,function(){var d=It(v.get("formatterParams")||{});this._showTooltipContent(v,g,d,y,t.offsetX,t.offsetY,t.position,i,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,n,a,o,s,l,u,c){if(this._ticket="",!t.get("showContent")||!t.get("show"))return;var f=this._tooltipContent;f.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var h=i,v=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),g=v.color;if(p)if(ht(p)){var y=t.ecModel.get("useUTC"),m=it(n)?n[0]:n,d=m&&m.axisType&&m.axisType.indexOf("time")>=0;if(h=p,d)h=$p(m.axisValue,h,y);h=yb(h,n,!0)}else if(Mt(p)){var x=xt(function(S,w){if(S===this._ticket)f.setContent(w,c,t,g,l),this._updatePosition(t,l,o,s,f,n,u)},this);this._ticket=a,h=p(n,a,x)}else h=p;f.setContent(h,c,t,g,l),f.show(t,g),this._updatePosition(t,l,o,s,f,n,u)},e.prototype._getNearestPoint=function(t,i,n,a,o){if(n==="axis"||it(i))return{color:a||o};if(!it(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,n,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||t.get("position");var f=o.getSize(),p=t.get("align"),h=t.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Mt(i))i=i([n,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()});if(it(i))n=wt(i[0],u),a=wt(i[1],c);else if(Pt(i)){var g=i;g.width=f[0],g.height=f[1];var y=Be(g,{width:u,height:c});n=y.x,a=y.y,p=null,h=null}else if(ht(i)&&l){var m=AEt(i,v,f,t.get("borderWidth"));n=m[0],a=m[1]}else{var m=wEt(n,a,o,u,c,p?null:20,h?null:20);n=m[0],a=m[1]}if(p&&(n-=Wtt(p)?f[0]/2:p==="right"?f[0]:0),h&&(a-=Wtt(h)?f[1]/2:h==="bottom"?f[1]:0),RA(t)){var m=TEt(n,a,o,u,c);n=m[0],a=m[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===t.length;return o&&P(n,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&P(u,function(p,h){var v=f[h]||{},g=p.seriesDataIndices||[],y=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&g.length===y.length,o&&P(g,function(m,d){var x=y[d];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&P(p.seriesDataIndices,function(m){var d=m.seriesIndex,x=i[d],S=a[d];if(x&&S&&S.data!==x.data)o=!1})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){if(Te.node||!i.getDom())return;Fu(this,"_updatePosition"),this._tooltipContent.dispose(),Y0("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null},e.type="tooltip",e}(Re);Ytt=bEt});function vN(r){he(el),r.registerComponentModel(Dtt),r.registerComponentView(Ytt),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ar),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ar)}var jtt=k(()=>{Im();On();Itt();Ztt();Z()});function mN(r,e){var t=Ve(r?r.brush:[]);if(!t.length)return;var i=[];P(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];if(u instanceof Array)i=i.concat(u)});var n=r&&r.toolbox;if(it(n))n=n[0];if(!n)n={feature:{}},r.toolbox=[n];var a=n.feature||(n.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);if(s.push.apply(s,i),Nc(s,function(l){return l+""},null),e&&!s.length)s.push.apply(s,EEt)}var EEt;var Xtt=k(()=>{Z();yt();EEt=["rect","polygon","keep","clear"]});function qtt(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Q0(r,e,t){var i={};return Ktt(e,function(a){var o=i[a]=n();Ktt(r[a],function(s,l){if(!oi.isValidType(l))return;var u={type:l,visual:s};if(t&&t(u,a),o[l]=new oi(u),l==="opacity")u=It(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new oi(u)})}),i;function n(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function OA(r,e,t){var i;P(t,function(n){if(e.hasOwnProperty(n)&&qtt(e[n]))i=!0}),i&&P(t,function(n){if(e.hasOwnProperty(n)&&qtt(e[n]))r[n]=It(e[n]);else delete r[n]})}function Jtt(r,e,t,i,n,a){var o={};P(r,function(f){var p=oi.prepareVisualTypes(e[f]);o[f]=p});var s;function l(f){return Ey(t,s,f)}function u(f,p){tD(t,s,f,p)}if(a==null)t.each(c);else t.each([a],c);function c(f,p){s=a==null?f:p;var h=t.getRawDataItem(s);if(h&&h.visualMap===!1)return;var v=i.call(n,f),g=e[v],y=o[v];for(var m=0,d=y.length;m<d;m++){var x=y[m];g[x]&&g[x].applyVisual(f,l,u)}}}function $tt(r,e,t,i){var n={};return P(r,function(a){var o=oi.prepareVisualTypes(e[a]);n[a]=o}),{progress:function(o,s){var l;if(i!=null)l=s.getDimensionIndex(i);function u(w){return Ey(s,f,w)}function c(w,T){tD(s,f,w,T)}var f,p=s.getStore();while((f=o.next())!=null){var h=s.getRawDataItem(f);if(h&&h.visualMap===!1)continue;var v=i!=null?p.get(l,f):f,g=t(v),y=e[g],m=n[g];for(var d=0,x=m.length;d<x;d++){var S=m[d];y[S]&&y[S].applyVisual(v,u,c)}}}}}var Ktt;var t_=k(()=>{Z();If();Ktt=P});function eet(r){var e=r.brushType,t={point:function(i){return Qtt[e].point(i,t,r)},rect:function(i){return Qtt[e].rect(i,t,r)}};return t}function tet(r){var e=["x","y"],t=["width","height"];return{point:function(i,n,a){if(i){var o=a.range,s=i[r];return e_(s,o)}},rect:function(i,n,a){if(i){var o=a.range,s=[i[e[r]],i[e[r]]+i[t[r]]];return s[1]<s[0]&&s.reverse(),e_(s[0],o)||e_(s[1],o)||e_(o[0],s)||e_(o[1],s)}}}}function e_(r,e){return e[0]<=r&&r<=e[1]}var Qtt;var ret=k(()=>{VD();fr();jt();Qtt={lineX:tet(0),lineY:tet(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Zu(t.range,r[0],r[1])},rect:function(r,e,t){var i=t.range;if(!r||i.length<=1)return!1;var{x:n,y:a,width:o,height:s}=r,l=i[0];if(Zu(i,n,a)||Zu(i,n+o,a)||Zu(i,n,a+s)||Zu(i,n+o,a+s)||Gt.create(r).contain(l[0],l[1])||tv(n,a,n+o,a,i)||tv(n,a,n,a+s,i)||tv(n+o,a,n+o,a+s,i)||tv(n,a+s,n+o,a+s,i))return!0}}}});function _N(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new J0(e.option,r);t.setInputRanges(e.areas,r)})}function MEt(r,e,t){var i=[],n,a;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),_N(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:It(o.areas),selected:[]};i.push(l);var u=o.option,c=u.brushLink,f=[],p=[],h=[],v=!1;if(!s)n=u.throttleType,a=u.throttleDelay;var g=nt(o.areas,function(w){var T=PEt[w.brushType],A=Dt({boundingRect:T?T(w):void 0},w);return A.selectors=eet(A),A}),y=Q0(o.option,iet,function(w){w.mappingMethod="fixed"});it(c)&&P(c,function(w){f[w]=1});function m(w){return c==="all"||!!f[w]}function d(w){return!!w.length}r.eachSeries(function(w,T){var A=h[T]=[];w.subType==="parallel"?x(w,T):S(w,T,A)});function x(w,T){var A=w.coordinateSystem;v=v||A.hasAxisBrushed(),m(T)&&A.eachActiveState(w.getData(),function(M,D){M==="active"&&(p[D]=1)})}function S(w,T,A){if(!w.brushSelector||IEt(o,T))return;if(P(g,function(D){if(o.brushTargetManager.controlSeries(D,w,r))A.push(D);v=v||d(A)}),m(T)&&d(A)){var M=w.getData();M.each(function(D){if(net(w,A,M,D))p[D]=1})}}r.eachSeries(function(w,T){var A={seriesId:w.id,seriesIndex:T,seriesName:w.name,dataIndex:[]};l.selected.push(A);var M=h[T],D=w.getData(),L=m(T)?function(I){return p[I]?(A.dataIndex.push(D.getRawIndex(I)),"inBrush"):"outOfBrush"}:function(I){return net(w,M,D,I)?(A.dataIndex.push(D.getRawIndex(I)),"inBrush"):"outOfBrush"};(m(T)?v:d(M))&&Jtt(iet,y,D,L)})}),LEt(e,n,a,i,t)}function LEt(r,e,t,i,n){if(!n)return;var a=r.getZr();if(a[yN])return;if(!a[gN])a[gN]=DEt;var o=$o(a,gN,t,e);o(r,i)}function DEt(r,e){if(!r.isDisposed()){var t=r.getZr();t[yN]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[yN]=!1}}function net(r,e,t,i){for(var n=0,a=e.length;n<a;n++){var o=e[n];if(r.brushSelector(i,t,o.selectors,o))return!0}}function IEt(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(it(t)?Xt(t,e)<0:e!==t)}function aet(r){return new Gt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var iet,gN="__ecBrushSelect",yN="__ecInBrushSelectEvent",oet,PEt;var xN=k(()=>{Z();fr();t_();ret();sN();yt();iet=["inBrush","outOfBrush"];oet=xl(MEt);PEt={rect:function(r){return aet(r.range)},polygon:function(r){var e,t=r.range;for(var i=0,n=t.length;i<n;i++){e=e||[$r(),$r()];var a=t[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&aet(e)}}});var REt,set;var uet=k(()=>{dt();Z();VT();xN();jr();REt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new ym(i.getZr())).on("brush",xt(this._onBrush,this)).mount()},e.prototype.render=function(t,i,n,a){this.model=t,this._updateController(t,i,n,a)},e.prototype.updateTransform=function(t,i,n,a){_N(i),this._updateController(t,i,n,a)},e.prototype.updateVisual=function(t,i,n,a){this.updateTransform(t,i,n,a)},e.prototype.updateView=function(t,i,n,a){this._updateController(t,i,n,a)},e.prototype._updateController=function(t,i,n,a){(!a||a.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:It(n),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:It(n),$from:i})},e.type="brush",e}(Re),set=REt});function cet(r,e){return re({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new ye(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var OEt,fet;var pet=k(()=>{dt();Z();t_();ti();Nr();we();OEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var n=this.option;!i&&OA(n,t,["inBrush","outOfBrush"]);var a=n.inBrush=n.inBrush||{};if(n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},!a.hasOwnProperty("liftZ"))a.liftZ=5},e.prototype.setAreas=function(t){if(!t)return;this.areas=nt(t,function(i){return cet(this.option,i)},this)},e.prototype.setBrushOption=function(t){this.brushOption=cet(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:Q.color.backgroundTint,borderColor:Q.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Q.color.disabled},e}(de);fet=OEt});var kEt,NEt,het;var det=k(()=>{dt();Z();nl();kEt=["rect","polygon","lineX","lineY","keep","clear"],NEt=function(r){W(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,n){var a,o,s;i.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,P(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,n){this.render(t,i,n)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),n={};return P(t.get("type",!0),function(a){if(i[a])n[a]=i[a]}),n},e.prototype.onclick=function(t,i,n){var a=this._brushType,o=this._brushMode;if(n==="clear")i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]});else i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?a:a===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:kEt.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 i},e}(_n),het=NEt});function SN(r){r.registerComponentView(set),r.registerComponentModel(fet),r.registerPreprocessor(mN),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,oet),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},ar),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ar),Bf("brush",het)}var vet=k(()=>{Xtt();uet();pet();xN();det();nl();Z()});function bN(r){r.registerComponentModel(zEt),r.registerComponentView(BEt)}var zEt,BEt;var met=k(()=>{dt();Z();jt();lr();rr();ur();Nr();jr();pn();we();zEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},e}(de),BEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){if(this.group.removeAll(),!t.get("show"))return;var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=St(t.get("textBaseline"),t.get("textVerticalAlign")),c=new me({style:He(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),p=t.get("subtext"),h=new me({style:He(s,{text:p,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=t.get("link"),g=t.get("sublink"),y=t.get("triggerEvent",!0);if(c.silent=!v&&!y,h.silent=!g&&!y,v)c.on("click",function(){th(v,"_"+t.get("target"))});if(g)h.on("click",function(){th(g,"_"+t.get("subtarget"))});Yt(c).eventData=Yt(h).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(c),p&&a.add(h);var m=a.getBoundingRect(),d=t.getBoxLayoutParams();d.width=m.width,d.height=m.height;var x=Je(t,n),S=Be(d,x.refContainer,t.get("padding"));if(!l){if(l=t.get("left")||t.get("right"),l==="middle")l="center";if(l==="right")S.x+=S.width;else if(l==="center")S.x+=S.width/2}if(!u){if(u=t.get("top")||t.get("bottom"),u==="center")u="middle";if(u==="bottom")S.y+=S.height;else if(u==="middle")S.y+=S.height/2;u=u||"top"}a.x=S.x,a.y=S.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=a.getBoundingRect();var T=S.margin,A=t.getItemStyle(["color","opacity"]);A.fill=t.get("backgroundColor");var M=new ee({shape:{x:m.x-T[3],y:m.y-T[0],width:m.width+T[1]+T[3],height:m.height+T[0]+T[2],r:t.get("borderRadius")},style:A,subPixelOptimize:!0,silent:!0});a.add(M)},e.type="title",e}(Re)});var UEt,wN;var get=k(()=>{dt();Nr();ts();Z();yt();we();UEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){if(t==null)t=this.option.currentIndex;var i=this._data.count();if(this.option.loop)t=(t%i+i)%i;else t>=i&&(t=i-1),t<0&&(t=0);this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],n=t.axisType,a=this._names=[],o;if(n==="category")o=[],P(i,function(u,c){var f=Rr(Ms(u),""),p;if(Pt(u))p=It(u),p.value=c;else p=c;o.push(p),a.push(f)});else o=i;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Kr([{name:"value",type:s}],this);l.initData(o,a)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:Q.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2000,currentIndex:0,itemStyle:{},label:{color:Q.color.secondary},data:[]},e}(de),wN=UEt});var yet,_et;var xet=k(()=>{dt();get();xy();Z();In();we();yet=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Dn(wN.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:Q.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:Q.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:Q.color.tertiary},itemStyle:{color:Q.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:Q.color.accent50,borderColor:Q.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Q.color.accent60},itemStyle:{color:Q.color.accent60,borderColor:Q.color.accent60},controlStyle:{color:Q.color.accent70,borderColor:Q.color.accent70}},progress:{lineStyle:{color:Q.color.accent30},itemStyle:{color:Q.color.accent40}},data:[]}),e}(wN);dr(yet,lh.prototype);_et=yet});var VEt,bet;var wet=k(()=>{dt();jr();VEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Re),bet=VEt});var FEt,Tet;var Aet=k(()=>{dt();sf();FEt=function(r){W(e,r);function e(t,i,n,a){var o=r.call(this,t,i,n)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(tn),Tet=FEt});function HEt(r,e){return Be(r.getBoxLayoutParams(),Je(r,e).refContainer,r.get("padding"))}function WEt(r,e,t,i){var n=i.style,a=Pu(r.get(["controlStyle",e]),i||{},new Gt(t[0],t[1],t[2],t[3]));if(n)a.setStyle(n);return a}function Eet(r,e,t,i,n,a){var o=e.get("color");if(!n){var s=r.get("symbol");n=ir(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),a&&a.onCreate(n)}else n.setColor(o),t.add(n),a&&a.onUpdate(n);var l=e.getItemStyle(["color"]);n.setStyle(l),i=re({rectHover:!0,z2:100},i,!0);var u=Us(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=uo(r.get("symbolOffset"),u);if(c)i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1];var f=r.get("symbolRotate");return i.rotation=(f||0)*Math.PI/180||0,n.attr(i),n.updateTransform(),n}function Met(r,e,t,i,n,a){if(r.dragging)return;var o=n.getModel("checkpointStyle"),s=i.dataToCoord(n.getData().get("value",t));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}var TN,Cet,GEt,Let;var Det=k(()=>{dt();fr();jt();rr();ur();wet();Aet();qi();te();Z();Hn();yt();lr();tr();Rn();Qi();Ov();TN=Math.PI,Cet=Ft(),GEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,n){if(this.model=t,this.api=n,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return mr("nameValue",{noName:!0,value:c})},P(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var n=t.get(["label","position"]),a=t.get("orient"),o=HEt(t,i),s;if(n==null||n==="auto")s=a==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-";else if(ht(n))s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][n];else s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:TN/2},f=a==="vertical"?o.height:o.width,p=t.getModel("controlStyle"),h=p.get("show",!0),v=h?p.get("itemSize"):0,g=h?p.get("itemGap"):0,y=v+g,m=t.get(["label","rotate"])||0;m=m*TN/180;var d,x,S,w=p.get("position",!0),T=h&&p.get("showPlayBtn",!0),A=h&&p.get("showPrevBtn",!0),M=h&&p.get("showNextBtn",!0),D=0,L=f;if(w==="left"||w==="bottom")T&&(d=[0,0],D+=y),A&&(x=[D,0],D+=y),M&&(S=[L-v,0],L-=y);else T&&(d=[L-v,0],L-=y),A&&(x=[0,0],D+=y),M&&(S=[L-v,0],L-=y);var I=[D,L];if(t.get("inverse"))I.reverse();return{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:d,prevBtnPosition:x,nextBtnPosition:S,axisExtent:I,controlSize:v,controlGap:g}},e.prototype._position=function(t,i){var n=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Qe(),l=o.x,u=o.y+o.height;on(s,s,[-l,-u]),bn(s,s,-TN/2),on(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=d(o),f=d(n.getBoundingRect()),p=d(a.getBoundingRect()),h=[n.x,n.y],v=[a.x,a.y];v[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ht(g)){var y=g==="+"?0:1;x(h,f,c,1,y),x(v,p,c,1,1-y)}else{var y=g>=0?0:1;x(h,f,c,1,y),v[1]=h[1]+g}n.setPosition(h),a.setPosition(v),n.rotation=a.rotation=t.rotation,m(n),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function d(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,w,T,A,M){S[A]+=T[A][M]-w[A][M]}},e.prototype._createAxis=function(t,i){var n=i.getData(),a=i.get("axisType")||i.get("type");if(a!=="category"&&a!=="time")a="value";var o=Vl(i,a,!1);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),UD(o,{fixMinMax:[!0,!0]});var l=new Tet("value",o,t.axisExtent,a);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new Lt;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,n,a){var o=n.getExtent();if(!a.get(["lineStyle","show"]))return;var s=new xr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:et({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new xr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Dt({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)},e.prototype._renderAxisTick=function(t,i,n,a){var o=this,s=a.getData(),l=n.scale.getTicks();this._tickSymbols=[],P(l,function(u){var c=n.dataToCoord(u.value),f=s.getItemModel(u.value),p=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:xt(o._changeTimeline,o,u.value)},y=Eet(f,p,i,g);y.ensureState("emphasis").style=h.getItemStyle(),y.ensureState("progress").style=v.getItemStyle(),Ll(y);var m=Yt(y);if(f.get("tooltip"))m.dataIndex=u.value,m.dataModel=a;else m.dataIndex=m.dataModel=null;o._tickSymbols.push(y)})},e.prototype._renderAxisLabel=function(t,i,n,a){var o=this,s=n.getLabelModel();if(!s.get("show"))return;var l=a.getData(),u=n.getViewLabels();this._tickLabels=[],P(u,function(c){if(c.tick.offInterval)return;var f=c.tick.value,p=l.getItemModel(f),h=p.getModel("label"),v=p.getModel(["emphasis","label"]),g=p.getModel(["progress","label"]),y=n.dataToCoord(f),m=new me({x:y,y:0,rotation:t.labelRotation-t.rotation,onclick:xt(o._changeTimeline,o,f),silent:!1,style:He(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});m.ensureState("emphasis").style=He(v),m.ensureState("progress").style=He(g),i.add(m),Ll(m),Cet(m).dataIndex=f,o._tickLabels.push(m)})},e.prototype._renderControl=function(t,i,n,a){var{controlSize:o,rotation:s}=t,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);p(t.nextBtnPosition,"next",xt(this._changeTimeline,this,f?"-":"+")),p(t.prevBtnPosition,"prev",xt(this._changeTimeline,this,f?"+":"-")),p(t.playPosition,c?"stop":"play",xt(this._handlePlayClick,this,!c),!0);function p(h,v,g,y){if(!h)return;var m=wn(St(a.get(["controlStyle",v+"BtnSize"]),o),o),d=[0,-m/2,m,m],x=WEt(a,v+"Icon",d,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,i.add(x),Ll(x)}},e.prototype._renderCurrentPointer=function(t,i,n,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=xt(u._handlePointerDrag,u),f.ondragend=xt(u._handlePointerDragend,u),Met(f,u._progressLine,s,n,a,!0)},onUpdate:function(f){Met(f,u._progressLine,s,n,a)}};this._currentPointer=Eet(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var n=this._toAxisCoord(t)[0],a=this._axis,o=Pr(a.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;if(s)s.shape.x2=n,s.dirty();var l=this._findNearestTick(n),u=this.model;if(i||l!==u.getCurrentIndex()&&u.get("realtime"))this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;if(this._clearTimer(),this.model.getPlayState())this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval"))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return fn(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),n=1/0,a,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-t);if(c<n)n=c,a=l}),a},e.prototype._clearTimer=function(){if(this._timer)clearTimeout(this._timer),this._timer=null},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();if(t==="+")t=i+1;else if(t==="-")t=i-1;this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,n=this._tickLabels;if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",a<t);if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",Cet(n[a]).dataIndex<=t)},e.type="timeline.slider",e}(bet);Let=GEt});function Iet(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var n=t.getComponent("timeline");if(n&&e.currentIndex!=null){if(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState())n.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from})}return t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),Dt({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");if(i&&e.playState!=null)i.setPlayState(e.playState)})}var Pet=k(()=>{Z()});function AN(r){var e=r&&r.timeline;if(!it(e))e=e?[e]:[];P(e,function(t){if(!t)return;YEt(t)})}function YEt(r){var e=r.type,t={number:"value",time:"time"};if(t[e])r.axisType=t[e],delete r.type;if(Ret(r),Qh(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});if(!Qh(i,"position"))i.position=r.controlPosition;if(i.position==="none"&&!Qh(i,"show"))i.show=!1,delete i.position;delete r.controlPosition}P(r.data||[],function(n){if(Pt(n)&&!it(n)){if(!Qh(n,"value")&&Qh(n,"name"))n.value=n.name;Ret(n)}})}function Ret(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=r.label||r.label||{},n=i.normal||(i.normal={}),a={normal:1,emphasis:1};if(P(i,function(o,s){if(!a[s]&&!Qh(n,s))n[s]=o}),t.label&&!Qh(i,"emphasis"))i.emphasis=t.label,delete t.label}function Qh(r,e){return r.hasOwnProperty(e)}var Oet=k(()=>{Z()});function CN(r){r.registerComponentModel(_et),r.registerComponentView(Let),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Iet(r),r.registerPreprocessor(AN)}var ket=k(()=>{xet();Det();Pet();Oet()});function td(r,e){if(!r)return!1;var t=it(r)?r:[r];for(var i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}var NA=k(()=>{Z()});function zA(r){io(r,"label",["show"])}var BA,Net,Bn;var Vf=k(()=>{dt();Z();Vi();xy();Nr();yt();Rn();BA=Ft(),Net=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Te.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,n,a){var o=this.mainType;if(!n)i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=BA(s)[o];if(!l||!l.data){BA(s)[o]=null;return}if(!u){if(a)zA(l);P(l.data,function(c){if(c instanceof Array)zA(c[0]),zA(c[1]);else zA(c)}),u=this.createMarkerModelFromSeries(l,this,i),et(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s}else u._mergeOption(l,i,!0);BA(s)[o]=u},this)},e.prototype.formatTooltip=function(t,i,n){var a=this.getData(),o=this.getRawValue(t),s=a.getName(t);return mr("section",{header:this.name,blocks:[mr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,i){var n=lh.prototype.getDataParams.call(this,t,i),a=this.__hostSeries;if(a)n.seriesId=a.id,n.seriesName=a.name,n.seriesType=a.subType;return n},e.getMarkerModelFromSeries=function(t,i){return BA(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(de);dr(Net,lh.prototype);Bn=Net});var ZEt,zet;var Bet=k(()=>{dt();Vf();ZEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Bn),zet=ZEt});function EN(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function jEt(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function UA(r,e,t,i,n,a,o){var s=[],l=co(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,c=r_(e,u,r),f=e.hostModel,p=f.indicesOfNearest(t,u,c)[0];s[a]=e.get(i,p),s[o]=e.get(u,p);var h=e.get(n,p),v=ro(e.get(n,p));if(v=Math.min(v,20),v>=0)s[o]=+s[o].toFixed(v);return[s,h]}function Ff(r,e){if(!e)return;var t=r.getData(),i=r.coordinateSystem,n=i&&i.dimensions;if(!jEt(e)&&!it(e.coord)&&it(n)){var a=MN(e,t,i,r);if(e=It(e),e.type&&VA[e.type]&&a.baseAxis&&a.valueAxis){var o=Xt(n,a.baseAxis.dim),s=Xt(n,a.valueAxis.dim),l=VA[e.type](t,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!it(n)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&VA[e.type]){var c=i.getOtherAxis(u);if(c)e.value=r_(t,t.mapDimension(c.dim),e.type)}}else{var f=e.coord;for(var p=0;p<2;p++)if(VA[f[p]])f[p]=r_(t,t.mapDimension(n[p]),f[p])}return e}function MN(r,e,t,i){var n={};if(r.valueIndex!=null||r.valueDim!=null)n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(XEt(i,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim);else n.baseAxis=i.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim);return n}function XEt(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function Gf(r,e){return r&&r.containData&&e.coord&&!EN(e)?r.containData(e.coord):!0}function Uet(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!EN(e)&&!EN(t)?r.containZone(e.coord,t.coord):!0}function FA(r,e){return r?function(t,i,n,a){var o=a<2?t.coord&&t.coord[a]:t.value;return Jo(o,e[a])}:function(t,i,n,a){return Jo(t.value,e[a])}}function r_(r,e,t){if(t==="average"){var i=0,n=0;return r.each(e,function(a,o){if(!isNaN(a))i+=a,n++}),i/n}else if(t==="median")return r.getMedian(e);else return r.getDataExtent(e)[t==="max"?1:0]}var VA;var GA=k(()=>{te();Wu();Z();Vu();VA={min:ne(UA,"min"),max:ne(UA,"max"),average:ne(UA,"average"),median:ne(UA,"median")}});function qEt(r,e,t){r.eachSeries(function(i){var n=Bn.getMarkerModelFromSeries(i,t),a=e.get(i.id);if(n&&a&&a.group){var o=Ko(n),{z:s,zlevel:l}=o;Xp(a.group,s,l)}})}var DN,KEt,zm;var HA=k(()=>{dt();jr();Z();Vf();yt();tr();jt();DN=Ft(),KEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=gt()},e.prototype.render=function(t,i,n){var a=this,o=this.markerGroupMap;o.each(function(s){DN(s).keep=!1}),i.eachSeries(function(s){var l=Bn.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,i,n)}),o.each(function(s){!DN(s).keep&&a.group.remove(s.group)}),qEt(i,o,this.type)},e.prototype.markKeep=function(t){DN(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var n=this;P(t,function(a){var o=Bn.getMarkerModelFromSeries(a,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){if(l)i?LS(l):$g(l)})}})},e.type="marker",e}(Re);zm=KEt});function Vet(r,e,t){var i=e.coordinateSystem,n=t.getWidth(),a=t.getHeight(),o=i&&i.getArea&&i.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",c=u?o?o.width:0:n,f=u?o?o.height:0:a,p=u&&o?o.x:0,h=u&&o?o.y:0,v,g=wt(l.get("x"),c)+p,y=wt(l.get("y"),f)+h;if(!isNaN(g)&&!isNaN(y))v=[g,y];else if(e.getMarkerPosition)v=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(i){var m=r.get(i.dimensions[0],s),d=r.get(i.dimensions[1],s);v=i.dataToPoint([m,d])}if(!isNaN(g))v[0]=g;if(!isNaN(y))v[1]=y;r.setItemLayout(s,v)})}function $Et(r,e,t){var i;if(r)i=nt(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return et(et({},u),{name:s,ordinalMeta:null})});else i=[{name:"value",type:"float"}];var n=new Kr(i,t),a=nt(t.get("data"),ne(Ff,e));if(r)a=be(a,ne(Gf,r));var o=FA(!!r,i);return n.initData(a,null,o),n}var JEt,Fet;var Get=k(()=>{dt();Fv();te();ts();GA();HA();Vf();Z();lr();JEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,n){i.eachSeries(function(a){var o=Bn.getMarkerModelFromSeries(a,"markPoint");if(o)Vet(o.getData(),a,n),this.markerGroupMap.get(a.id).updateLayout()},this)},e.prototype.renderSeries=function(t,i,n,a){var{coordinateSystem:o,id:s}=t,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Xl),f=$Et(o,t,i);i.setData(f),Vet(i.getData(),t,a),f.each(function(p){var h=f.getItemModel(p),v=h.getShallow("symbol"),g=h.getShallow("symbolSize"),y=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),d=h.getShallow("symbolKeepAspect");if(Mt(v)||Mt(g)||Mt(y)||Mt(m)){var x=i.getRawValue(p),S=i.getDataParams(p);if(Mt(v))v=v(x,S);if(Mt(g))g=g(x,S);if(Mt(y))y=y(x,S);if(Mt(m))m=m(x,S)}var w=h.getModel("itemStyle").getItemStyle(),T=h.get("z2"),A=kl(l,"color");if(!w.fill)w.fill=A;f.setItemVisual(p,{z2:St(T,0),symbol:v,symbolSize:g,symbolRotate:y,symbolOffset:m,symbolKeepAspect:d,style:w})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(p){p.traverse(function(h){Yt(h).dataModel=i})}),this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(zm);Fet=JEt});function IN(r){r.registerComponentModel(zet),r.registerComponentView(Fet),r.registerPreprocessor(function(e){if(td(e.series,"markPoint"))e.markPoint=e.markPoint||{}})}var Het=k(()=>{NA();Bet();Get()});var QEt,Wet;var Yet=k(()=>{dt();Vf();QEt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markLine",e.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"},e}(Bn),Wet=QEt});function YA(r){return!isNaN(r)&&!isFinite(r)}function Zet(r,e,t,i){var n=1-r,a=i.dimensions[r];return YA(e[n])&&YA(t[n])&&e[r]===t[r]&&i.getAxis(a).containData(e[r])}function eMt(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(Zet(1,t,i,r)||Zet(0,t,i,r)))return!0}return Gf(r,e[0])&&Gf(r,e[1])}function PN(r,e,t,i,n){var a=i.coordinateSystem,o=r.getItemModel(e),s,l=wt(o.get("x"),n.getWidth()),u=wt(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var c=a.dimensions,f=r.get(c[0],e),p=r.get(c[1],e);s=a.dataToPoint([f,p])}if(ns(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;if(YA(r.get(c[0],e)))s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]);else if(YA(r.get(c[1],e)))s[1]=v.toGlobalCoord(v.getExtent()[t?0:1])}if(!isNaN(l))s[0]=l;if(!isNaN(u))s[1]=u}r.setItemLayout(e,s)}function iMt(r,e,t){var i;if(r)i=nt(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return et(et({},f),{name:u,ordinalMeta:null})});else i=[{name:"value",type:"float"}];var n=new Kr(i,t),a=new Kr(i,t),o=new Kr([],t),s=nt(t.get("data"),ne(tMt,e,r,t));if(r)s=be(s,ne(eMt,r));var l=FA(!!r,i);return n.initData(nt(s,function(u){return u[0]}),null,l),a.initData(nt(s,function(u){return u[1]}),null,l),o.initData(nt(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:a,line:o}}var WA,tMt=function(r,e,t,i){var n=r.getData(),a;if(!it(i)){var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Gr(i.yAxis,i.xAxis);else{var u=MN(i,n,e,r);s=u.valueAxis;var c=M1(n,u.valueDataDim);l=r_(n,c,o)}var f=s.dim==="x"?0:1,p=1-f,h=It(i),v={coord:[]};h.type=null,h.coord=[],h.coord[p]=-1/0,v.coord[p]=1/0;var g=t.get("precision");if(g>=0&&ue(l))l=+l.toFixed(Math.min(g,20));h.coord[f]=v.coord[f]=l,a=[h,v,{type:o,valueIndex:i.valueIndex,value:l}]}else a=[]}else a=i;var y=[Ff(r,a[0]),Ff(r,a[1]),et({},a[2])];return y[2].type=y[2].type||null,re(y[2],y[0]),re(y[2],y[1]),y},rMt,jet;var Xet=k(()=>{dt();ts();te();GA();PT();HA();Wu();lr();Vf();Z();yt();WA=Ft();rMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,n){i.eachSeries(function(a){var o=Bn.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=WA(o).from,u=WA(o).to;l.each(function(c){PN(l,c,!0,a,n),PN(u,c,!1,a,n)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,n,a){var{coordinateSystem:o,id:s}=t,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new hm);this.group.add(c.group);var f=iMt(o,t,i),{from:p,to:h,line:v}=f;WA(i).from=p,WA(i).to=h,i.setData(v);var g=i.get("symbol"),y=i.get("symbolSize"),m=i.get("symbolRotate"),d=i.get("symbolOffset");if(!it(g))g=[g,g];if(!it(y))y=[y,y];if(!it(m))m=[m,m];if(!it(d))d=[d,d];f.from.each(function(S){x(p,S,!0),x(h,S,!1)}),v.each(function(S){var w=v.getItemModel(S),T=w.getModel("lineStyle").getLineStyle();v.setItemLayout(S,[p.getItemLayout(S),h.getItemLayout(S)]);var A=w.get("z2");if(T.stroke==null)T.stroke=p.getItemVisual(S,"style").fill;v.setItemVisual(S,{z2:St(A,0),fromSymbolKeepAspect:p.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(S,"symbolOffset"),fromSymbolRotate:p.getItemVisual(S,"symbolRotate"),fromSymbolSize:p.getItemVisual(S,"symbolSize"),fromSymbol:p.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:T})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){Yt(S).dataModel=i,S.traverse(function(w){Yt(w).dataModel=i})});function x(S,w,T){var A=S.getItemModel(w);PN(S,w,T,t,a);var M=A.getModel("itemStyle").getItemStyle();if(M.fill==null)M.fill=kl(l,"color");S.setItemVisual(w,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:St(A.get("symbolOffset",!0),d[T?0:1]),symbolRotate:St(A.get("symbolRotate",!0),m[T?0:1]),symbolSize:St(A.get("symbolSize"),y[T?0:1]),symbol:St(A.get("symbol",!0),g[T?0:1]),style:M})}this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(zm);jet=rMt});function RN(r){r.registerComponentModel(Wet),r.registerComponentView(jet),r.registerPreprocessor(function(e){if(td(e.series,"markLine"))e.markLine=e.markLine||{}})}var Ket=k(()=>{NA();Yet();Xet()});var nMt,qet;var Jet=k(()=>{dt();Vf();nMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,n){return new e(t,i,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Bn),qet=nMt});function jA(r){return!isNaN(r)&&!isFinite(r)}function $et(r,e,t,i){var n=1-r;return jA(e[n])&&jA(t[n])}function oMt(r,e){var t=e.coord[0],i=e.coord[1],n={coord:t,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};if(ns(r,"cartesian2d")){if(t&&i&&($et(1,t,i,r)||$et(0,t,i,r)))return!0;return Uet(r,n,a)}return Gf(r,n)||Gf(r,a)}function Qet(r,e,t,i,n){var a=i.coordinateSystem,o=r.getItemModel(e),s,l=wt(o.get(t[0]),n.getWidth()),u=wt(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var c=r.getValues(["x0","y0"],e),f=r.getValues(["x1","y1"],e),p=a.clampData(c),h=a.clampData(f),v=[];if(t[0]==="x0")v[0]=p[0]>h[0]?f[0]:c[0];else v[0]=p[0]>h[0]?c[0]:f[0];if(t[1]==="y0")v[1]=p[1]>h[1]?f[1]:c[1];else v[1]=p[1]>h[1]?c[1]:f[1];s=i.getMarkerPosition(v,t,!0)}else{var g=r.get(t[0],e),y=r.get(t[1],e),m=[g,y];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(ns(a,"cartesian2d")){var d=a.getAxis("x"),x=a.getAxis("y"),g=r.get(t[0],e),y=r.get(t[1],e);if(jA(g))s[0]=d.toGlobalCoord(d.getExtent()[t[0]==="x0"?0:1]);else if(jA(y))s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1])}if(!isNaN(l))s[0]=l;if(!isNaN(u))s[1]=u}return s}function lMt(r,e,t){var i,n,a=["x0","y0","x1","y1"];if(r){var o=nt(r&&r.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return et(et({},f),{name:u,ordinalMeta:null})});n=nt(a,function(u,c){return{name:u,type:o[c%2].type}}),i=new Kr(n,t)}else n=[{name:"value",type:"float"}],i=new Kr(n,t);var s=nt(t.get("data"),ne(aMt,e,r,t));if(r)s=be(s,ne(oMt,r));var l=r?function(u,c,f,p){var h=u.coord[Math.floor(p/2)][p%2];return Jo(h,n[p])}:function(u,c,f,p){return Jo(u.value,n[p])};return i.initData(s,null,l),i.hasItemOption=!0,i}var ZA,aMt=function(r,e,t,i){var n=i[0],a=i[1];if(!n||!a)return;var o=Ff(r,n),s=Ff(r,a),l=o.coord,u=s.coord;l[0]=Gr(l[0],-1/0),l[1]=Gr(l[1],-1/0),u[0]=Gr(u[0],1/0),u[1]=Gr(u[1],1/0);var c=gd([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c},trt,sMt,ert;var rrt=k(()=>{dt();sn();ts();te();jt();tr();GA();HA();Z();Vf();yt();rr();lr();Vu();we();ZA=Ft();trt=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],sMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,n){i.eachSeries(function(a){var o=Bn.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=nt(trt,function(f){return Qet(s,l,f,a,n)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,n,a){var{coordinateSystem:o,id:s}=t,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Lt});this.group.add(c.group),this.markKeep(c);var f=lMt(o,t,i);i.setData(f),f.each(function(p){var h=nt(trt,function(L){return Qet(f,p,L,t,a)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,y=v.getExtent(),m=g.getExtent(),d=[v.parse(f.get("x0",p)),v.parse(f.get("x1",p))],x=[g.parse(f.get("y0",p)),g.parse(f.get("y1",p))];Pr(d),Pr(x);var S=!(y[0]>d[1]||y[1]<d[0]||m[0]>x[1]||m[1]<x[0]),w=!S;f.setItemLayout(p,{points:h,allClipped:w});var T=f.getItemModel(p),A=T.getModel("itemStyle").getItemStyle(),M=T.get("z2"),D=kl(l,"color");if(!A.fill){if(A.fill=D,ht(A.fill))A.fill=dp(A.fill,0.4)}if(!A.stroke)A.stroke=D;f.setItemVisual(p,"style",A),f.setItemVisual(p,"z2",St(M,0))}),f.diff(ZA(c).data).add(function(p){var h=f.getItemLayout(p),v=f.getItemVisual(p,"z2");if(!h.allClipped){var g=new kr({z2:St(v,0),shape:{points:h.points}});f.setItemGraphicEl(p,g),c.group.add(g)}}).update(function(p,h){var v=ZA(c).data.getItemGraphicEl(h),g=f.getItemLayout(p),y=f.getItemVisual(p,"z2");if(!g.allClipped){if(v)ge(v,{z2:St(y,0),shape:{points:g.points}},i,p);else v=new kr({shape:{points:g.points}});f.setItemGraphicEl(p,v),c.group.add(v)}else if(v)c.group.remove(v)}).remove(function(p){var h=ZA(c).data.getItemGraphicEl(p);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(p,h){var v=f.getItemModel(h),g=f.getItemVisual(h,"style");p.useStyle(f.getItemVisual(h,"style")),or(p,er(v),{labelFetcher:i,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:ht(g.fill)?dp(g.fill,1):Q.color.neutral99}),pr(p,v),Ie(p,null,null,v.get(["emphasis","disabled"])),Yt(p).dataModel=i}),ZA(c).data=f,c.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e}(zm);ert=sMt});function ON(r){r.registerComponentModel(qet),r.registerComponentView(ert),r.registerPreprocessor(function(e){if(td(e.series,"markArea"))e.markArea=e.markArea||{}})}var irt=k(()=>{NA();Jet();rrt()});var uMt=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};else if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},cMt,i_;var kN=k(()=>{dt();Z();ti();yt();Nr();we();cMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,n=this.ecModel;if(i===!0)i=t.selector=["all","inverse"];if(it(i))P(i,function(a,o){ht(a)&&(a={type:a}),i[o]=re(a,uMt(n,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){var i=!1;for(var n=0;n<t.length;n++){var a=t[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,p=f.getAllNames();if(!t.isSeriesFiltered(l))n=n.concat(p);if(p.length)i=i.concat(p);else c=!0}else c=!0;if(c&&Bd(l))i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=gt(),s=nt(a,function(l){if(ht(l)||ue(l))l={name:l};if(o.get(l.name))return null;return o.set(l.name,!0),new ye(l,this,this.ecModel)},this);this._data=be(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;P(a,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){if(this.get("selectedMode")!=="single")this.option.selected[t]=!1},e.prototype.toggleSelected=function(t){var i=this.option.selected;if(!i.hasOwnProperty(t))i[t]=!0;this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;P(t,function(n){i[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;P(t,function(n){var a=n.get("name",!0);if(!i.hasOwnProperty(a))i[a]=!0;i[a]=!i[a]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&Xt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Q.size.m,align:"auto",backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,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:Q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(de),i_=cMt});function pMt(r,e,t,i,n,a,o){function s(y,m){if(y.lineWidth==="auto")y.lineWidth=m.lineWidth>0?2:0;NN(y,function(d,x){y[x]==="inherit"&&(y[x]=m[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");if(u.decal=!f||f==="inherit"?i.decal:Vs(f,o),u.fill==="inherit")u.fill=i[n];if(u.stroke==="inherit")u.stroke=i[c];if(u.opacity==="inherit")u.opacity=(n==="fill"?i:t).opacity;s(u,i);var p=e.getModel("lineStyle"),h=p.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),h.stroke==="auto"&&(h.stroke=i.fill),!a){var v=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=p.get("inactiveColor"),h.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function hMt(r){var e=r.icon||"roundRect",t=ir(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);if(t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1)t.style.stroke=t.style.fill,t.style.fill=Q.color.neutral00,t.style.lineWidth=2;return t}function nrt(r,e,t,i){BN(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),zN(r,e,t,i)}function zN(r,e,t,i){if(!t.usingTHL())t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function BN(r,e,t,i){if(!t.usingTHL())t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var Bm,NN,XA,fMt,KA;var UN=k(()=>{dt();Z();sn();jt();tr();rr();eN();ur();jr();qi();dv();lr();we();Bm=ne,NN=P,XA=Lt,fMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new XA),this.group.add(this._selectorGroup=new XA),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!t.get("show",!0))return;var o=t.get("align"),s=t.get("orient");if(!o||o==="auto")o=t.get("left")==="right"&&s==="vertical"?"right":"left";var l=t.get("selector",!0),u=t.get("selectorPosition",!0);if(l&&(!u||u==="auto"))u=s==="horizontal"?"end":"start";this.renderInner(o,t,i,n,l,s,u);var c=Je(t,n).refContainer,f=t.getBoxLayoutParams(),p=t.get("padding"),h=Be(f,c,p),v=this.layoutInner(t,o,h,a,l,u),g=Be(Dt({width:v.width,height:v.height},f),c,p);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=DA(v,t))},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this.getContentGroup(),c=gt(),f=i.get("selectedMode"),p=i.get("triggerEvent"),h=[];if(n.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),NN(i.getData(),function(v,g){var y=this,m=v.get("name");if(!this.newlineDisabled&&(m===""||m===`
102
+ `)){var d=new XA;d.newline=!0,u.add(d);return}var x=n.getSeriesByName(m)[0];if(c.get(m))return;if(x){var S=x.getData(),w=S.getVisual("legendLineStyle")||{},T=S.getVisual("legendIcon"),A=S.getVisual("style"),M=this._createItem(x,m,g,v,i,t,w,A,T,f,a);if(M.on("click",Bm(nrt,m,null,a,h)).on("mouseover",Bm(zN,x.name,null,a,h)).on("mouseout",Bm(BN,x.name,null,a,h)),n.ssr)M.eachChild(function(D){var L=Yt(D);L.seriesIndex=x.seriesIndex,L.dataIndex=g,L.ssrType="legend"});if(p)M.eachChild(function(D){y.packEventData(D,i,x,g,m)});c.set(m,!0)}else n.eachRawSeries(function(D){var L=this;if(c.get(m))return;if(D.legendVisualProvider){var I=D.legendVisualProvider;if(!I.containName(m))return;var E=I.indexOfName(m),R=I.getItemVisual(E,"style"),B=I.getItemVisual(E,"legendIcon"),z=Oi(R.fill);if(z&&z[3]===0)z[3]=0.2,R=et(et({},R),{fill:ya(z,"rgba")});var V=this._createItem(D,m,g,v,i,t,{},R,B,f,a);if(V.on("click",Bm(nrt,null,m,a,h)).on("mouseover",Bm(zN,null,m,a,h)).on("mouseout",Bm(BN,null,m,a,h)),n.ssr)V.eachChild(function(H){var K=Yt(H);K.seriesIndex=D.seriesIndex,K.dataIndex=g,K.ssrType="legend"});if(p)V.eachChild(function(H){L.packEventData(H,i,D,g,m)});c.set(m,!0)}},this)},this),o)this._createSelector(o,i,a,s,l)},e.prototype.packEventData=function(t,i,n,a,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:a,value:o,seriesIndex:n.seriesIndex};Yt(t).eventData=s},e.prototype._createSelector=function(t,i,n,a,o){var s=this.getSelectorGroup();NN(t,function(u){var c=u.type,f=new me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(f);var p=i.getModel("selectorLabel"),h=i.getModel(["emphasis","selectorLabel"]);or(f,{normal:p,emphasis:h},{defaultText:u.title}),Ll(f)})},e.prototype._createItem=function(t,i,n,a,o,s,l,u,c,f,p){var h=t.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),y=o.isSelected(i),m=a.get("symbolRotate"),d=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=pMt(c,a,l,u,h,y,p),w=new XA,T=a.getModel("textStyle");if(Mt(t.getLegendIcon)&&(!x||x==="inherit"))w.add(t.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:d}));else{var A=x==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;w.add(hMt({itemWidth:v,itemHeight:g,icon:c,iconRotate:A,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:d}))}var M=s==="left"?v+5:-5,D=s,L=o.get("formatter"),I=i;if(ht(L)&&L)I=L.replace("{name}",i!=null?i:"");else if(Mt(L))I=L(i);var E=y?T.getTextColor():a.get("inactiveColor");w.add(new me({style:He(T,{text:I,x:M,y:g/2,fill:E,align:D,verticalAlign:"middle"},{inheritColor:E})}));var R=new ee({shape:w.getBoundingRect(),style:{fill:"transparent"}}),B=a.getModel("tooltip");if(B.get("show"))Ln({el:R,componentModel:o,itemName:i,itemTooltipOption:B.option});return w.add(R),w.eachChild(function(z){z.silent=!0}),R.silent=!f,this.getContentGroup().add(w),Ll(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ns(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Ns("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),h=[-p.x,-p.y],v=t.get("selectorButtonGap",!0),g=t.getOrient().index,y=g===0?"width":"height",m=g===0?"height":"width",d=g===0?"y":"x";if(s==="end")h[g]+=c[y]+v;else f[g]+=p[y]+v;h[1-g]+=c[m]/2-p[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[y]=c[y]+v+p[y],x[m]=Math.max(c[m],p[m]),x[d]=Math.min(0,p[d]+h[1-g]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Re);KA=fMt});function n_(r,e,t){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){if(i)s[r]();else s[r](e.name);art(s,n),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){P(n,function(l,u){s[l?"select":"unSelect"](u)}),art(s,o)}),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function art(r,e){var t=e||{};return P(r.getData(),function(i){var n=i.get("name");if(n===`
103
+ `||n==="")return;var a=r.isSelected(n);if(Bt(t,n))t[n]=t[n]&&a;else t[n]=a}),t}function ort(r){r.registerAction("legendToggleSelect","legendselectchanged",ne(n_,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ne(n_,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ne(n_,"inverseSelect")),r.registerAction("legendSelect","legendselected",ne(n_,"select")),r.registerAction("legendUnSelect","legendunselected",ne(n_,"unSelect"))}var srt=k(()=>{Z()});function dMt(r){var e=r.findComponents({mainType:"legend"});if(e&&e.length)r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}var lrt;var urt=k(()=>{yt();lrt=xl(dMt)});function qA(r){r.registerComponentModel(i_),r.registerComponentView(KA),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,lrt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),ort(r)}var VN=k(()=>{kN();UN();srt();urt()});function crt(r,e,t){var i=r.getOrient(),n=[1,1];n[i.index]=0,hn(e,t,{type:"box",ignoreSize:!!n})}var vMt,frt;var prt=k(()=>{dt();kN();ur();In();we();vMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,n){var a=Ra(t);r.prototype.init.call(this,t,i,n),crt(this,t,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),crt(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Dn(i_.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:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),e}(i_);frt=vMt});var hrt,FN,GN,mMt,drt;var vrt=k(()=>{dt();Z();jt();ur();UN();hrt=Lt,FN=["width","height"],GN=["x","y"],mMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new hrt),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hrt)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,n,a,o,s,l);var c=this._controllerGroup,f=i.get("pageIconSize",!0),p=it(f)?f:[f,f];v("pagePrev",0);var h=i.getModel("pageTextStyle");c.add(new me({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,y){var m=g+"DataIndex",d=Pu(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:xt(u._pageGo,u,m,i,a)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});d.name=g,c.add(d)}},e.prototype.layoutInner=function(t,i,n,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=FN[u],f=GN[u],p=FN[1-u],h=GN[1-u];o&&Ns("horizontal",l,t.get("selectorItemGap",!0));var v=t.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],m=It(n);o&&(m[c]=n[c]-g[c]-v);var d=this._layoutContentAndController(t,a,m,u,c,p,h,f);if(o){if(s==="end")y[u]+=d[c]+v;else{var x=g[c]+v;y[u]-=x,d[f]-=x}d[c]+=g[c]+v,y[1-u]+=d[h]+d[p]/2-g[p]/2,d[p]=Math.max(d[p],g[p]),d[h]=Math.min(d[h],g[h]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return d},e.prototype._layoutContentAndController=function(t,i,n,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,p=this._controllerGroup;Ns(t.get("orient"),c,t.get("itemGap"),!a?null:n.width,a?null:n.height),Ns("horizontal",p,t.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=p.getBoundingRect(),g=this._showController=h[o]>n[o],y=[-h.x,-h.y];if(!i)y[a]=c[u];var m=[0,0],d=[-v.x,-v.y],x=St(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);if(S==="end")d[a]+=n[o]-v[o];else m[a]+=v[o]+x}d[1-a]+=h[s]/2-v[s]/2,c.setPosition(y),f.setPosition(m),p.setPosition(d);var w={x:0,y:0};if(w[o]=g?n[o]:h[o],w[s]=Math.max(h[s],v[s]),w[l]=Math.min(0,v[l]+d[1-a]),f.__rectSize=n[o],g){var T={x:0,y:0};T[o]=Math.max(n[o]-v[o]-x,0),T[s]=w[s],f.setClipPath(new ee({shape:T})),f.__rectSize=T[o]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(t);return A.pageIndex!=null&&ge(c,{x:A.contentPosition[0],y:A.contentPosition[1]},g?t:null),this._updatePageInfoView(t,A),w},e.prototype._pageGo=function(t,i,n){var a=this._getPageInfo(i)[t];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var n=this._controllerGroup;P(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",p=i[f]!=null,h=n.childOfName(c);if(h)h.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=p?"pointer":"default"});var a=n.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",ht(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=FN[o],l=GN[o],u=this._findTargetItemIndex(i),c=n.children(),f=c[u],p=c.length,h=!p?0:1,v={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=S(f);v.contentPosition[o]=-g.s;for(var y=u+1,m=g,d=g,x=null;y<=p;++y){if(x=S(c[y]),!x&&d.e>m.s+a||x&&!w(x,m.s)){if(d.i>m.i)m=d;else m=x;if(m){if(v.pageNextDataIndex==null)v.pageNextDataIndex=m.i;++v.pageCount}}d=x}for(var y=u-1,m=g,d=g,x=null;y>=-1;--y){if(x=S(c[y]),(!x||!w(d,x.s))&&m.i<d.i){if(d=m,v.pagePrevDataIndex==null)v.pagePrevDataIndex=m.i;++v.pageCount,++v.pageIndex}m=x}return v;function S(T){if(T){var A=T.getBoundingRect(),M=A[l]+T[l];return{s:M,e:M+A[s],i:T.__legendDataIndex}}}function w(T,A){return T.e>=A&&T.s<=A+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;if(a==null&&l!=null)a=s;if(l===t)i=s}),i!=null?i:a},e.type="legend.scroll",e}(KA),drt=mMt});function HN(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(i)})})}function mrt(r){he(qA),r.registerComponentModel(frt),r.registerComponentView(drt),HN(r)}var grt=k(()=>{On();VN();prt();vrt()});function WN(r){he(qA),he(mrt)}var yrt=k(()=>{On();VN();grt()});var gMt,_rt;var xrt=k(()=>{dt();CA();In();gMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Dn(zf.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(zf),_rt=gMt});function Srt(r,e,t){YN(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(e.uid);if(n)n.getRange=t})}function brt(r,e){var t=YN(r).coordSysRecordMap,i=t.keys();for(var n=0;n<i.length;n++){var a=i[n],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);if(u){if(s.removeKey(l),!s.keys().length)wrt(t,o)}}}}function wrt(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function yMt(r,e){var t={model:e,containsPoint:ne(xMt,e),dispatchAction:ne(_Mt,r),dataZoomInfoMap:null,controller:null},i=t.controller=new Va(r.getZr());return P(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(!a.isAvailableBehavior(s.model.option))return;var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}),o.length&&t.dispatchAction(o)})}),t}function _Mt(r,e){if(!r.isDisposed())r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function xMt(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function SMt(r,e,t){var i,n="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var c=u.model,f=c.get("disabled",!0)?!1:c.get("zoomLock",!0)?"move":!0;if(a[n+f]>a[n+i])i=f;o=o&&c.get("preventDefaultMouseMove",!0),s=St(c.get("cursorGrab",!0),s),l=St(c.get("cursorGrabbing",!0),l)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function Trt(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var i=YN(t),n=i.coordSysRecordMap||(i.coordSysRecordMap=gt());n.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=TA(a);P(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,yMt(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=gt());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];if(u!=null)s=l.get(u)}if(!s){wrt(n,a);return}var c=SMt(l,a,t);o.enable(c.controlType,c.opt),$o(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var YN;var ZN=k(()=>{bf();yt();Z();Jh();YN=Ft()});function Art(r){return function(e,t,i,n){var a=this.range,o=a.slice(),s=e.axisModels[0];if(!s)return;var l=r(o,s,e,t,i,n);if(sa(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}var wMt,jN,XN,Crt;var Ert=k(()=>{dt();EA();Yh();ZN();Z();wMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Srt(n,t,{pan:xt(jN.pan,this),zoom:xt(jN.zoom,this),scrollMove:xt(jN.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){brt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(km),jN={zoom:function(r,e,t,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(!o)return;var s=XN[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sa(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a},pan:Art(function(r,e,t,i,n,a){var o=XN[i]([a.oldX,a.oldY],[a.newX,a.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Art(function(r,e,t,i,n,a){var o=XN[i]([0,0],[a.scrollDelta,a.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};XN={grid:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem.getRect();if(r=r||[0,0],a.dim==="x")o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1;else o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1;return o},polar:function(r,e,t,i,n){var a=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();if(r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis")o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1;else o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1;return o},singleAxis:function(r,e,t,i,n){var a=t.axis,o=n.model.coordinateSystem.getRect(),s={};if(r=r||[0,0],a.orient==="horizontal")s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1;else s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1;return s}},Crt=wMt});function a_(r){$h(r),r.registerComponentModel(_rt),r.registerComponentView(Crt),Trt(r)}var KN=k(()=>{xrt();Ert();ZN();MA()});var TMt,Mrt;var Lrt=k(()=>{dt();CA();In();we();TMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Dn(zf.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:Q.color.accent10,borderRadius:0,backgroundColor:Q.color.transparent,dataBackground:{lineStyle:{color:Q.color.accent30,width:0.5},areaStyle:{color:Q.color.accent20,opacity:0.2}},selectedDataBackground:{lineStyle:{color:Q.color.accent40,width:0.5},areaStyle:{color:Q.color.accent20,opacity:0.3}},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:Q.color.neutral00,borderColor:Q.color.accent20},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:Q.color.accent40,opacity:0.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:Q.color.tertiary},brushSelect:!0,brushStyle:{color:Q.color.accent30,opacity:0.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Q.color.accent40},moveHandleStyle:{opacity:0.8}},defaultLocationEdgeGap:15}),e}(zf),Mrt=TMt});function Irt(r,e,t,i){var n=r.get("labelFormatter"),a=r.get("labelPrecision");if(a==null||a==="auto")a=t.valuePrecision;var o=t.value[e],s=o==null||isNaN(o)?"":Ur(i)||zl(i)?i.getLabel({value:Math.round(o)}):isFinite(a)?Me(o,a,!0):o+"";return Mt(n)?n(o,s):ht(n)?n.replace("{value}",s):s}function IMt(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function PMt(r){return r==="vertical"?"ns-resize":"ew-resize"}var o_,AMt=1,qN=30,CMt=7,s_="horizontal",Drt="vertical",EMt=5,MMt,LMt,DMt,Prt;var Rrt=k(()=>{dt();Z();pl();jt();EA();te();ur();Yh();Jh();tr();qi();rr();we();_i();o_=ee,MMt=["line","bar","candlestick","scatter"],LMt={easing:"cubicOut",duration:100,delay:0},DMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=xt(this._onBrush,this),this._onBrushEnd=xt(this._onBrushEnd,this)},e.prototype.render=function(t,i,n,a){if(r.prototype.render.apply(this,arguments),$o(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}if(!a||a.type!=="dataZoom"||a.from!==this.uid)this._buildView();this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Fu(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new Lt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,n=t.get("brushSelect"),a=n?CMt:0,o=Je(t,i).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===s_?{right:o.width-s.x-s.width,top:o.height-qN-l-a,width:s.width,height:qN}:{right:l,top:s.y,width:qN,height:s.height},c=Ra(t.option);P(["right","top","width","height"],function(p){if(c[p]==="ph")c[p]=u[p]});var f=Be(c,o);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Drt&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===s_&&!o?{scaleY:l?1:-1,scaleX:1}:n===s_&&o?{scaleY:l?1:-1,scaleX:-1}:n===Drt&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),c=isNaN(u.x)?0:u.x,f=isNaN(u.y)?0:u.y;t.x=i.x-c,t.y=i.y-f,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=t.get("brushSelect");n.add(new o_({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new o_({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:xt(this._onClickPanel,this)}),s=this.api.getZr();if(a)o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd);else s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd);n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,n=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var f=o.getDataExtent(t.thisDim),p=o.getDataExtent(l),h=(p[1]-p[0])*0.3;p=[p[0]-h,p[1]+h];var v=[0,i[1]],g=[0,i[0]],y=[[i[0],0],[0,0]],m=[],d=g[1]/Math.max(1,o.count()-1),x=i[0]/(f[1]-f[0]),S=t.thisAxis.type==="time",w=-d,T=Math.round(o.count()/i[0]),A;o.each([t.thisDim,l],function(E,R,B){if(T>0&&B%T){if(!S)w+=d;return}w=S?(+E-f[0])*x:w+d;var z=R==null||isNaN(R)||R==="",V=z?0:Ne(R,p,v,!0);if(z&&!A&&B)y.push([y[y.length-1][0],0]),m.push([m[m.length-1][0],0]);else if(!z&&A)y.push([w,0]),m.push([w,0]);if(!z)y.push([w,V]),m.push([w,V]);A=z}),u=this._shadowPolygonPts=y,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var M=this.dataZoomModel;function D(E){var R=M.getModel(E?"selectedDataBackground":"dataBackground"),B=new Lt,z=new kr({shape:{points:u},segmentIgnoreThreshold:1,style:R.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),V=new Mr({shape:{points:c},segmentIgnoreThreshold:1,style:R.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return B.add(z),B.add(V),B}for(var L=0;L<3;L++){var I=D(L===1);this._displayables.sliderGroup.add(I),this._displayables.dataShadowSegs.push(I)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i===!1)return;var n,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();P(l,function(u){if(n)return;if(i!==!0&&Xt(MMt,u.get("type"))<0)return;var c=a.getComponent(hs(o),s).axis,f=IMt(o),p,h=u.coordinateSystem;if(f!=null&&h.getOtherAxis)p=h.getOtherAxis(c).inverse;f=u.getData().mapDimension(f);var v=u.getData().mapDimension(o);n={thisAxis:c,series:u,thisDim:v,otherDim:f,otherAxisInverse:p}},this)},this),n},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),p=i.filler=new o_({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(p),o.add(new o_({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:AMt,fill:Q.color.transparent}})),P([0,1],function(x){var S=l.get("handleIcon");if(!My[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0)S="path://"+S;var w=ir(S,-1,0,2,2,null,!0);w.attr({cursor:PMt(this._orient),draggable:!0,drift:xt(this._onDragMove,this,x),ondragend:xt(this._onDragEnd,this),onmouseover:xt(this._onOverDataInfoTriggerArea,this,!0),onmouseout:xt(this._onOverDataInfoTriggerArea,this,!1),z2:5});var T=w.getBoundingRect(),A=l.get("handleSize");this._handleHeight=wt(A,this._size[1]),this._handleWidth=T.width/T.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ll(w);var M=l.get("handleColor");if(M!=null)w.style.fill=M;o.add(n[x]=w);var D=l.getModel("textStyle"),L=l.get("handleLabel")||{},I=L.show||!1;t.add(a[x]=new me({silent:!0,invisible:!I,style:He(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var h=p;if(f){var v=wt(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new ee({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-0.5,height:v}}),y=v*0.8,m=i.moveHandleIcon=ir(l.get("moveHandleIcon"),-y/2,-y/2,y,y,Q.color.neutral00,!0);m.silent=!0,m.y=s[1]+v/2-0.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var d=Math.min(s[1]/2,Math.max(v,10));h=i.moveZone=new ee({invisible:!0,shape:{y:s[1]-d,height:v+d}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:xt(this._onActualMoveZoneDrift,this),ondragstart:xt(this._onActualMoveZoneDragStart,this),ondragend:xt(this._onActualMoveZoneDragEnd,this),onmouseover:xt(this._onOverDataInfoTriggerArea,this,!0),onmouseout:xt(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ne(t[0],[0,100],i,!0),Ne(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];sa(i,a,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Ne(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ne(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Pr([Ne(a[0],o,l,!0),Ne(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var i=this._displayables,n=this._handleEnds,a=Pr(n.slice()),o=this._size;P([0,1],function(h){var v=i.handles[h],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:n[h]+(h?-1:1),y:o[1]/2-g/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};if(i.moveHandle)i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2);var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]];for(var c=0;c<l.length;c++){var f=l[c],p=f.getClipPath();if(!p)p=new ee,f.setClipPath(p);p.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var c=this._range,f;if(t){var p={start:c[0],end:c[1]},h=AA(i,l);if(h){var v=h.calculateDataWindow(p).percentInverted;p={start:v[0],end:v[1]}}f=l.calculateDataWindow(p)}else f=l.getWindow();s=[Irt(i,0,f,u),Irt(i,1,f,u)]}}var g=Pr(this._handleEnds.slice());y.call(this,0),y.call(this,1);function y(m){var d=Du(n.handles[m].parent,this.group),x=jp(m===0?"right":"left",d),S=this._handleWidth/2+EMt,w=fn([g[m]+(m===0?-S:S),this._size[1]/2],d);a[m].setStyle({x:w[0],y:w[1],verticalAlign:o===s_?"middle":x,align:o===s_?x:"center",text:s[m]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var i=this.dataZoomModel.get("handleLabel")||{},n=i.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,i,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,i,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,i,n,a){this._dragging=!0,va(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=fn([i,n],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){if(this._dragging=!1,!this._isOverDataInfoTriggerArea)this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])return;var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)},e.prototype._onBrushStart=function(t){var{offsetX:i,offsetY:n}=t;this._brushStart=new Qt(i,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!this._brushing)return;var i=this._displayables.brushRect;if(this._brushing=!1,!i)return;i.attr("ignore",!0);var n=i.shape,a=+new Date;if(a-this._brushStartTime<200&&Math.abs(n.width)<5)return;var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();sa(0,l,o,0,u.minSpan!=null?Ne(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ne(u.maxSpan,s,o,!0):null),this._range=Pr([Ne(l[0],o,s,!0),Ne(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)},e.prototype._onBrush=function(t){if(this._brushing)va(t.event),this._updateBrushRect(t.offsetX,t.offsetY)},e.prototype._updateBrushRect=function(t,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;if(!o)o=n.brushRect=new o_({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o);o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?LMt:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=TA(this.dataZoomModel).infoList;if(!t&&i.length){var n=i[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*0.2,y:o*0.2,width:a*0.6,height:o*0.6}}return t},e.type="dataZoom.slider",e}(km);Prt=DMt});function l_(r){r.registerComponentModel(Mrt),r.registerComponentView(Prt),$h(r)}var JN=k(()=>{Lrt();Rrt();MA()});function $N(r){he(a_),he(l_)}var Ort=k(()=>{On();KN();JN()});var RMt,OMt,JA;var QN=k(()=>{Z();we();RMt={get:function(r,e,t){var i=It((OMt[r]||{})[e]);return t?it(i)?i[i.length-1]:i:i}},OMt={color:{active:["#006edd","#e0ffff"],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[0.3,1],inactive:[0,0]},colorLightness:{active:[0.9,0.5],inactive:[0,0]},colorAlpha:{active:[0.3,1],inactive:[0,0]},opacity:{active:[0.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JA=RMt});var krt,kMt,NMt,tz,zMt,BMt,UMt,Um;var ez=k(()=>{dt();Z();QN();If();t_();yt();te();Nr();we();krt=oi.mapVisual,kMt=oi.eachVisual,NMt=it,tz=P,zMt=Pr,BMt=Ne,UMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,i){var n=this.option;!i&&OA(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=xt(t,this),this.controllerVisuals=Q0(this.option.controller,i,t),this.targetVisuals=Q0(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,i=this.option.seriesTargets;if(i){var n=[];return tz(i,function(l){if(l.seriesIndex!=null)n.push(l.seriesIndex);else if(l.seriesId!=null){var u;if(t.ecModel.eachSeries(function(c){if(c.id===l.seriesId)u=c}),u)n.push(u.componentIndex)}}),n}var a=this.option.seriesId,o=this.option.seriesIndex;if(o==null&&a==null)o="all";var s=_l(this.ecModel,"series",{index:o,id:a},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return nt(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,i){P(this.getTargetSeriesIndices(),function(n){var a=this.ecModel.getSeriesByIndex(n);if(a)t.call(i,a)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(n){n===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,n){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;if(n=n||["<",">"],it(t))t=t.slice(),u=!0;var c=i?t:u?[f(t[0]),f(t[1])]:f(t);if(ht(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);else if(Mt(l))return u?l(t[0],t[1]):l(t);if(u)if(t[0]===s[0])return n[0]+" "+c[1];else if(t[1]===s[1])return n[1]+" "+c[0];else return c[0]+" - "+c[1];else return c;function f(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=zMt([t.min,t.max]);this._dataExtent=i},e.prototype.getDimension=function(t){var i=this,n=this.option.seriesTargets;if(n){var a=$a(n,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===i.ecModel.getSeriesByIndex(t).id});if(a)return a.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var i=t.hostModel.seriesIndex,n=this.getDimension(i);if(n!=null)return t.getDimensionIndex(n);var a=t.dimensions;for(var o=a.length-1;o>=0;o--){var s=a[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),o=i.controller||(i.controller={});re(a,n),re(o,n);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){if(NMt(i.color)&&!f.inRange)f.inRange={color:i.color.slice().reverse()};f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,p,h){var v=f[p],g=f[h];if(v&&!g)g=f[h]={},tz(v,function(y,m){if(!oi.isValidType(m))return;var d=JA.get(m,"inactive",s);if(d!=null){if(g[m]=d,m==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha"))g.opacity=[0,0]}})}function c(f){var p=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";tz(this.stateList,function(m){var d=this.itemSize,x=f[m];if(!x)x=f[m]={color:s?v:[v]};if(x.symbol==null)x.symbol=p&&It(p)||(s?y:[y]);if(x.symbolSize==null)x.symbolSize=h&&It(h)||(s?d[0]:[d[0],d[0]]);x.symbol=krt(x.symbol,function(T){return T==="none"?y:T});var S=x.symbolSize;if(S!=null){var w=-1/0;kMt(S,function(T){T>w&&(w=T)}),x.symbolSize=krt(S,function(T){return BMt(T,[0,w],[0,d[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},e}(de),Um=UMt});function zrt(r,e,t){if(t[0]===t[1])return t.slice();var i=200,n=(t[1]-t[0])/i,a=t[0],o=[];for(var s=0;s<=i&&a<t[1];s++)o.push(a),a+=n;return o.push(t[1]),o}var Nrt,VMt,Brt;var Urt=k(()=>{dt();Z();ez();te();In();we();Nrt=[20,140],VMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Nrt[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Nrt[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;if(!i||i.auto)t.auto=1,this.option.range=t;else if(it(i)){if(i[0]>i[1])i.reverse();i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1])}},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),P(this.stateList,function(t){var i=this.option.controller[t].symbolSize;if(i&&i[0]!==i[1])i[0]=i[1]/3},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=Pr((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,n=this.getExtent(),a=St(this.option.unboundedRange,!0);return(a&&i[0]<=n[0]||i[0]<=t)&&(a&&i[1]>=n[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(n){var a=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),i.push({seriesId:n.id,dataIndex:a})},this),i},e.prototype.getVisualMeta=function(t){var i=zrt(this,"outOfRange",this.getExtent()),n=zrt(this,"inRange",this.option.range.slice()),a=[];function o(h,v){a.push({value:h,color:t(h,v)})}var s=0,l=0,u=n.length,c=i.length;for(;l<c&&(!n.length||i[l]<=n[0]);l++)if(i[l]<n[s])o(i[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var f=1;l<c;l++)if(!n.length||n[n.length-1]<i[l]){if(f)a.length&&o(a[a.length-1].value,"outOfRange"),f=0;o(i[l],"outOfRange")}var p=a.length;return{stops:a,outerColors:[p?a[0].color:"transparent",p?a[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Dn(Um.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:Q.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),e}(Um);Brt=VMt});var FMt,$A;var rz=k(()=>{dt();Z();jt();pn();ur();If();jr();FMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,n,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,n,a)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,n=Pl(i.get("padding")||0),a=t.getBoundingRect();t.add(new ee({z2:-1,silent:!0,shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[3]+n[1],height:a.height+n[0]+n[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,n){n=n||{};var a=n.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[a||o.getValueState(t)],p=oi.prepareVisualTypes(f);return P(p,function(h){var v=f[h];if(n.convertOpacityToAlpha&&h==="opacity")h="colorAlpha",v=f.__alphaForOpacity;if(oi.dependsOn(h,i))v&&v.applyVisual(t,u,c)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,n=this.api,a=Je(i,n).refContainer;jc(t,i.getBoxLayoutParams(),a)},e.prototype.doRender=function(t,i,n,a){},e.type="visualMap",e}(Re),$A=FMt});function QA(r,e,t){var i=r.option,n=i.align;if(n!=null&&n!=="auto")return n;var a={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=Vrt[o],l=[0,null,10],u={};for(var c=0;c<3;c++)u[Vrt[1-o][c]]=l[c],u[s[c]]=c===2?t[0]:i[s[c]];var f=[["x","width",3],["y","height",0]][o],p=Be(u,a,i.padding);return s[(p.margin[f[2]]||0)+p[f[0]]+p[f[1]]*0.5<a[f[1]]*0.5?0:1]}function Vm(r,e){return P(r||[],function(t){if(t.dataIndex!=null)t.dataIndexInside=t.dataIndex,t.dataIndex=null;t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Vrt;var iz=k(()=>{Z();ur();Vrt=[["left","right","width"],["top","bottom","height"]]});function Hrt(r,e,t,i){return new kr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){va(n.event)},ondragend:i})}function ZMt(r,e,t){var i=HMt/2,n=r.get("hoverLinkDataSize");if(n)i=ru(n,e,t,!0)/2;return i}function Wrt(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function Yrt(r){return r==="vertical"?"ns-resize":"ew-resize"}var ru,GMt,Grt,nz,HMt=12,WMt=6,YMt,Zrt;var jrt=k(()=>{dt();Z();FS();pl();rz();jt();te();Yh();iz();yt();Hn();tr();qi();Yo();lr();rr();ru=Ne,GMt=P,Grt=Math.min,nz=Math.max,YMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){r.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=xt(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=xt(this._hideIndicator,this)},e.prototype.doRender=function(t,i,n,a){if(!a||a.type!=="selectDataRange"||a.from!==this.uid)this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var n=t.get("text");this._renderEndsText(i,n,0),this._renderEndsText(i,n,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,n){if(!i)return;var a=i[1-n];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),f=this._applyTransform(n===0?"bottom":"top",u),p=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new me({style:He(h,{x:c[0],y:c[1],verticalAlign:h.get("verticalAlign")||(p==="horizontal"?"middle":f),align:h.get("align")||(p==="horizontal"?f:"center"),text:a})}))},e.prototype._renderBar=function(t){var i=this.visualMapModel,n=this._shapes,a=i.itemSize,o=this._orient,s=this._useHandle,l=QA(i,this.api,a),u=n.mainGroup=this._createBarGroup(l),c=new Lt;u.add(c),c.add(n.outOfRange=Hrt()),c.add(n.inRange=Hrt(null,s?Yrt(this._orient):null,xt(this._dragHandle,this,"all",!1),xt(this._dragHandle,this,"all",!0))),c.setClipPath(new ee({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=i.textStyleModel.getTextRect("国"),p=nz(f.width,f.height);if(s)n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(i,u,0,a,p,o),this._createHandle(i,u,1,a,p,o);this._createIndicator(i,u,a,p,o),t.add(u)},e.prototype._createHandle=function(t,i,n,a,o,s){var l=xt(this._dragHandle,this,n,!1),u=xt(this._dragHandle,this,n,!0),c=wn(t.get("handleSize"),a[0]),f=ir(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),p=Yrt(this._orient);f.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){va(m.event)}}),f.x=a[0]/2,f.useStyle(t.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Eu(f,!0),i.add(f);var h=this.visualMapModel.textStyleModel,v=new me({cursor:p,draggable:!0,drift:l,onmousemove:function(m){va(m.event)},ondragend:u,style:He(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:0.1},v.stateTransition={duration:200},this.group.add(v);var g=[c,0],y=this._shapes;y.handleThumbs[n]=f,y.handleLabelPoints[n]=g,y.handleLabels[n]=v},e.prototype._createIndicator=function(t,i,n,a,o){var s=wn(t.get("indicatorSize"),n[0]),l=ir(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof _r){var c=l.style;l.useStyle(et({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);i.add(l);var f=this.visualMapModel.textStyleModel,p=new me({silent:!0,invisible:!0,style:He(f,{x:0,y:0,text:""})});this.group.add(p);var h=[(o==="horizontal"?a/2:WMt)+n[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=p,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,n,a){if(!this._useHandle)return;if(this._dragging=!i,!i){var o=this._applyTransform([n,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}if(i===!this.visualMapModel.get("realtime"))this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()});if(i)!this._hovering&&this._clearHoverLinkToSeries();else if(Wrt(this.visualMapModel))this._doHoverLinkToSeries(this._handleEnds[t],!1)},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),n=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[ru(i[0],n,a,!0),ru(i[1],n,a,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var n=this.visualMapModel,a=this._handleEnds,o=[0,n.itemSize[1]];sa(i,a,o,t,0);var s=n.getExtent();this._dataInterval=[ru(a[0],o,s,!0),ru(a[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,n=i.getExtent(),a=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,n,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Zo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var n=100,a=[],o=(t[1]-t[0])/n;a.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",i),offset:s/n})}return a.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),a},e.prototype._createBarPoints=function(t,i){var n=this.visualMapModel.itemSize;return[[n[0]-i[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,n=this.visualMapModel.get("inverse");return new Lt(i==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(!this._useHandle)return;var n=this._shapes,a=this.visualMapModel,{handleThumbs:o,handleLabels:s}=n,l=a.itemSize,u=a.getExtent(),c=this._applyTransform("left",n.mainGroup);GMt([0,1],function(f){var p=o[f];p.setStyle("fill",i.handlesColor[f]),p.y=t[f];var h=ru(t[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");p.scaleX=p.scaleY=v/l[0],p.x=l[0]-v/2;var g=fn(n.handleLabelPoints[f],Du(p,this.group));if(this._orient==="horizontal"){var y=c==="left"||c==="top"?(l[0]-v)/2:(l[0]-v)/-2;g[1]+=y}s[f].setStyle({x:g[0],y:g[1],text:a.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)},e.prototype._showIndicator=function(t,i,n,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(!f)return;f.attr("invisible",!1);var p={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",p),v=this.getControllerVisual(t,"symbolSize"),g=ru(t,s,u,!0),y=l[0]-v/2,m={x:f.x,y:f.y};f.y=g,f.x=y;var d=fn(c.indicatorLabelPoint,Du(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),w=this._orient,T=w==="horizontal";x.setStyle({text:(n?n:"")+o.formatValueText(i),verticalAlign:T?S:"middle",align:T?"center":S});var A={x:y,y:g,style:{fill:h}},M={style:{x:d[0],y:d[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(A,D),x.animateTo(M,D)}else f.attr(A),x.attr(M);this._firstShowIndicator=!1;var L=this._shapes.handleLabels;if(L)for(var I=0;I<L.length;I++)this.api.enterBlur(L[I])},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,a=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);a[1]=Grt(nz(0,a[1]),n[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();if(this.visualMapModel.option.hoverLink)t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this);else this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var n=this.visualMapModel,a=n.itemSize;if(!n.option.hoverLink)return;var o=[0,a[1]],s=n.getExtent();t=Grt(nz(o[0],t),o[1]);var l=ZMt(n,s,o),u=[t-l,t+l],c=ru(t,o,s,!0),f=[ru(u[0],o,s,!0),ru(u[1],o,s,!0)];if(u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),i)if(f[0]===-1/0)this._showIndicator(c,f[1],"< ",l);else if(f[1]===1/0)this._showIndicator(c,f[0],"> ",l);else this._showIndicator(c,c,"≈ ",l);var p=this._hoverLinkDataIndices,h=[];if(i||Wrt(n))h=this._hoverLinkDataIndices=n.findTargetDataIndices(f);var v=_F(p,h);this._dispatchHighDown("downplay",Vm(v[0],n)),this._dispatchHighDown("highlight",Vm(v[1],n))},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(Bs(t.target,function(l){var u=Yt(l);if(u.dataIndex!=null)return i=u,!0},!0),!i)return;var n=this.ecModel.getSeriesByIndex(i.seriesIndex),a=this.visualMapModel;if(!a.isTargetSeries(n))return;var o=n.getData(i.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),i.dataIndex);if(!isNaN(s))this._showIndicator(s,s)},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var n=0;n<i.length;n++)this.api.leaveBlur(i[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Vm(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,n,a){var o=Du(i,a?null:this.group);return it(t)?fn(t,o,n):jp(t,o,n)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}($A);Zrt=YMt});var Xrt,Krt=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})};var qrt=k(()=>{Xrt={type:"selectDataRange",event:"dataRangeSelected",update:"update"}});function jMt(r,e,t,i){var n=e.targetVisuals[i],a=oi.prepareVisualTypes(n),o={color:kl(r.getData(),"color")};for(var s=0,l=a.length;s<l;s++){var u=a[s],c=n[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,f,p)}return o.color;function f(h){return o[h]}function p(h,v){o[h]=v}}var Jrt;var $rt=k(()=>{Z();t_();If();Jrt=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(i){var n=r.pipelineContext;if(!i.isTargetSeries(r)||n&&n.large)return;t.push($tt(i.stateList,i.targetVisuals,xt(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),i=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var a=n.getVisualMeta(xt(jMt,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);if(o>=0)a.dimension=o,i.push(a)}}),r.getData().setVisual("visualMeta",i)}}]});function az(r){var e=r&&r.visualMap;if(!it(e))e=e?[e]:[];Qrt(e,function(t){if(!t)return;if(Fm(t,"splitList")&&!Fm(t,"pieces"))t.pieces=t.splitList,delete t.splitList;var i=t.pieces;if(i&&it(i))Qrt(i,function(a){if(Pt(a)){if(Fm(a,"start")&&!Fm(a,"min"))a.min=a.start;if(Fm(a,"end")&&!Fm(a,"max"))a.max=a.end}});if(!1)var n})}function Fm(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Qrt;var tit=k(()=>{Z();Qrt=P});function u_(r){if(eit)return;eit=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Xrt,Krt),P(Jrt,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(az)}var eit=!1;var oz=k(()=>{qrt();$rt();Z();tit()});function c_(r){r.registerComponentModel(Brt),r.registerComponentView(Zrt),u_(r)}var sz=k(()=>{Urt();jrt();oz()});function rit(r,e){var t=r.inverse;if(r.orient==="vertical"?!t:t)e.reverse()}var XMt,KMt,iit;var nit=k(()=>{dt();Z();ez();If();QN();te();In();XMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],KMt[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var a=this.option.categories;this.resetVisual(function(o,s){if(n==="categories")o.mappingMethod="category",o.categories=It(a);else o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=nt(this._pieceList,function(l){if(l=It(l),s!=="inRange")l.visual=null;return l})})},e.prototype.completeVisualOption=function(){var t=this.option,i={},n=oi.listVisualTypes(),a=this.isCategory();P(t.pieces,function(s){P(n,function(l){if(s.hasOwnProperty(l))i[l]=1})}),P(i,function(s,l){var u=!1;P(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&P(this.stateList,function(c){(t[c]||(t[c]={}))[l]=JA.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var n=this.option,a=this._pieceList,o=(i?n:t).selected||{};if(n.selected=o,P(a,function(l,u){var c=this.getSelectedMapKey(l);if(!o.hasOwnProperty(c))o[c]=!0},this),n.selectedMode==="single"){var s=!1;P(a,function(l,u){var c=this.getSelectedMapKey(l);if(o[c])s?o[c]=!1:s=!0},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=It(t)},e.prototype.getValueState=function(t){var i=oi.findPieceIndex(t,this._pieceList);return i!=null?this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],n=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=oi.findPieceIndex(l,n);c===t&&o.push(u)},this),i.push({seriesId:a.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var n=t.interval||[];i=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],n=["",""],a=this;function o(c,f){var p=a.getRepresentValue({interval:c});if(!f)f=a.getValueState(p);var h=t(p,f);if(c[0]===-1/0)n[0]=h;else if(c[1]===1/0)n[1]=h;else i.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return P(s,function(c){var f=c.interval;if(f)f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1]},this),{stops:i,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=Dn(Um.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}),e}(Um),KMt={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;var a=(i[1]-i[0])/n;while(+a.toFixed(t)!==a&&t<5)t++;if(e.precision=t,a=+a.toFixed(t),e.minOpen)r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<n;s+=a,o++){var l=o===n-1?i[1]:s+a;r.push({interval:[s,l],close:[1,1]})}if(e.maxOpen)r.push({interval:[i[1],1/0],close:[0,0]});NE(r),P(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;P(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),rit(e,r)},pieces:function(r){var e=this.option;P(e.pieces,function(t,i){if(!Pt(t))t={value:t};var n={text:"",index:i};if(t.label!=null)n.text=t.label;if(t.hasOwnProperty("value")){var a=n.value=t.value;n.interval=[a,a],n.close=[1,1]}else{var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[];for(var f=0;f<2;f++){var p=[["gte","gt","min"],["lte","lt","max"]][f];for(var h=0;h<3&&o[f]==null;h++)o[f]=t[p[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}if(c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1])n.value=o[0]}n.visual=oi.retrieveVisuals(t),r.push(n)},this),rit(e,r),NE(r),P(r,function(t){var i=t.close,n=[["<","≤"][i[1]],[">","≥"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};iit=XMt});var qMt,ait;var oit=k(()=>{dt();Z();rz();jt();qi();ur();iz();rr();qMt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,n=i.get("textGap"),a=i.textStyleModel,o=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,c=Gr(i.get("showLabel",!0),!u),f=!i.get("selectedMode");u&&this._renderEndsText(t,u[0],s,c,o),P(l.viewPieceList,function(p){var h=p.piece,v=new Lt;v.onclick=xt(this._onItemClick,this,h),this._enableHoverLink(v,p.indexInModelPieceList);var g=i.getRepresentValue(h);if(this._createItemSymbol(v,g,[0,0,s[0],s[1]],f),c){var y=this.visualMapModel.getValueState(g),m=a.get("align")||o;v.add(new me({style:He(a,{x:m==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:a.get("verticalAlign")||"middle",align:m,opacity:St(a.get("opacity"),y==="outOfRange"?0.5:1)}),silent:f}))}t.add(v)},this),u&&this._renderEndsText(t,u[1],s,c,o),Ns(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var n=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Vm(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return QA(t,this.api,t.itemSize);else{var n=i.align;if(!n||n==="auto")n="left";return n}},e.prototype._renderEndsText=function(t,i,n,a,o){if(!i)return;var s=new Lt,l=this.visualMapModel.textStyleModel;s.add(new me({style:He(l,{x:a?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:a?o:"center",text:i})})),t.add(s)},e.prototype._getViewData=function(){var t=this.visualMapModel,i=nt(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),a=t.get("orient"),o=t.get("inverse");if(a==="horizontal"?o:!o)i.reverse();else if(n)n=n.slice().reverse();return{viewPieceList:i,endsText:n}},e.prototype._createItemSymbol=function(t,i,n,a){var o=ir(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var i=this.visualMapModel,n=i.option,a=n.selectedMode;if(!a)return;var o=It(n.selected),s=i.getSelectedMapKey(t);if(a==="single"||a===!0)o[s]=!0,P(o,function(l,u){o[u]=u===s});else o[s]=!o[s];this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})},e.type="visualMap.piecewise",e}($A),ait=qMt});function f_(r){r.registerComponentModel(iit),r.registerComponentView(ait),u_(r)}var lz=k(()=>{nit();oit();oz()});function uz(r){he(c_),he(f_)}var sit=k(()=>{On();sz();lz()});var lit;var uit=k(()=>{jt();lit=function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);if(!t)return;e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:XM(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion})},r.prototype.updateWindow=function(e,t){var i=t.getViewOfComponentModel(this._thumbnailModel);if(!i)return;i.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r}()});var cit;var fit=k(()=>{dt();Nr();we();ZR();uit();cit=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,i){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new lit(this);if(this._target=null,this.ecModel.eachSeries(function(n){YR(n,null)}),this.shouldShow()){var i=this.getTarget();YR(i.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t){if(t.subType!=="graph")t=null}else t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0];return this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:Q.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Q.color.neutral30,borderColor:Q.color.neutral40,opacity:0.3},z:10},e}(de)});function pit(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",i={type:t};return i[r.mainType+"Id"]=r.id,et(i,e),i}function hit(r,e){var t=Ko(r);Xp(e.group,t.z,t.zlevel)}var dit;var vit=k(()=>{dt();jr();fr();bf();we();ur();jt();br();zn();Z();dit=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,n){if(this._api=n,this._model=t,!this._coordSys)this._coordSys=new Ef;if(!this._isEnabled()){this._clear();return}this._renderVersion=n.getECUpdateCycleVersion();var a=this.group;a.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();if(s.fill==null)s.fill=i.get("backgroundColor")||Q.color.neutral00;var l=Je(t,n).refContainer,u=Be(Cb(t,!0),l),c=s.lineWidth||0,f=this._contentRect=Xo(u.clone(),c/2,!0,!0),p=new Lt;a.add(p),p.setClipPath(new ee({shape:f.plain()}));var h=this._targetGroup=new Lt;p.add(h);var v=u.plain();v.r=o.getShallow("borderRadius",!0),a.add(this._bgRect=new ee({style:s,shape:v,silent:!1,cursor:"grab"}));var g=t.getModel("windowStyle"),y=g.getShallow("borderRadius",!0);p.add(this._windowRect=new ee({shape:{x:0,y:0,width:0,height:0,r:y},style:g.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),hit(t,this)},e.prototype.renderContent=function(t){if(this._bridgeRendered=t,this._isEnabled())this._dealRenderContent(),this._dealUpdateWindow(),hit(this._model,this)},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!t||t.renderVersion!==this._renderVersion)return;var i=this._targetGroup,n=this._coordSys,a=this._contentRect;if(i.removeAll(),!t)return;var o=t.group,s=o.getBoundingRect();i.add(o),this._bgRect.z2=t.z2Range.min-10,Cf(n,s.x,s.y,s.width,s.height);var l=Be({left:"center",top:"center",aspect:s.width/s.height},a);kh(n,l.x,l.y,l.width,l.height),Rh(o,n,Qu),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)},e.prototype.updateWindow=function(t){var i=this._bridgeRendered;if(i&&i.renderVersion===t.renderVersion)i.targetTrans=t.targetTrans;if(this._isEnabled())this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!t||t.renderVersion!==this._renderVersion)return;var i=mi([],t.targetTrans),n=Ri([],Oh(null,this._coordSys),i);this._transThisToTarget=mi([],n);var a=t.viewportRect;if(!a)a=new Gt(0,0,this._api.getWidth(),this._api.getHeight());else a=a.clone();a.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(Dt({r:s},a))},e.prototype._resetRoamController=function(t){var i=this,n=this._api,a=this._roamController;if(!a)a=this._roamController=new Va(n.getZr());if(!t||!this._isEnabled()){a.disable();return}a.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return i._contentRect.contain(s,l)}}}),a.off("pan").off("zoom").on("pan",xt(this._onPan,this)).on("zoom",xt(this._onZoom,this))},e.prototype._onPan=function(t){var i=this._transThisToTarget;if(!this._isEnabled()||!i)return;var n=vr([],[t.oldX,t.oldY],i),a=vr([],[t.oldX-t.dx,t.oldY-t.dy],i);this._api.dispatchAction(pit(this._model.getTarget().baseMapProvider,{dx:a[0]-n[0],dy:a[1]-n[1]}))},e.prototype._onZoom=function(t){var i=this._transThisToTarget;if(!this._isEnabled()||!i)return;var n=vr([],[t.originX,t.originY],i);this._api.dispatchAction(pit(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var i=t.getTarget().baseMapProvider;if(!i)return!1;return!0},e.prototype._clear=function(){if(this.group.removeAll(),this._bridgeRendered=null,this._roamController)this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(Re)});function cz(r){r.registerComponentModel(cit),r.registerComponentView(dit)}var mit=k(()=>{fit();vit()});function $Mt(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=yit(r).scope||(yit(r).scope={}),n=It(JMt);re(n.label,r.getLocaleModel().get("aria"),!1),re(t.option,n,!1),a(),o();function a(){var c=t.getModel("decal"),f=c.get("show");if(f){var p=gt();r.eachSeries(function(h){if(!h.isColorBySeries())git(h).scope=p.get(h.type)||p.set(h.type,{})}),r.eachSeries(function(h){if(Mt(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(!h.isColorBySeries()){var g=h.getRawData(),y={},m=git(h).scope;v.each(function(T){var A=v.getRawIndex(T);y[A]=T});var d=g.count();g.each(function(T){var A=y[T],M=g.getName(T)||T+"",D=hy(h.ecModel,M,m,d),L=v.getItemVisual(A,"decal");v.setItemVisual(A,"decal",w(L,D))})}else{var x=hy(h.ecModel,h.name,i,r.getSeriesCount()),S=v.getVisual("decal");v.setVisual("decal",w(S,x))}function w(T,A){var M=T?et(et({},A),T):A;return M.dirty=!0,M}})}}function o(){var c=e.getZr().dom;if(!c)return;var f=r.getLocaleModel().get("aria"),p=t.getModel("label");if(p.option=Dt(p.option,f),!p.get("enabled"))return;if(c.setAttribute("role","img"),p.get("description")){c.setAttribute("aria-label",p.get("description"));return}var h=r.getSeriesCount(),v=p.get(["data","maxCount"])||10,g=p.get(["series","maxCount"])||10,y=Math.min(h,g),m;if(h<1)return;else{var d=l();if(d){var x=p.get(["general","withTitle"]);m=s(x,{title:d})}else m=p.get(["general","withoutTitle"]);var S=[],w=h>1?p.get(["series","multiple","prefix"]):p.get(["series","single","prefix"]);m+=s(w,{seriesCount:h}),r.eachSeries(function(D,L){if(L<y){var I=void 0,E=D.get("name"),R=E?"withName":"withoutName";I=h>1?p.get(["series","multiple",R]):p.get(["series","single",R]),I=s(I,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:u(D.subType)});var B=D.getData();if(B.count()>v){var z=p.get(["data","partialData"]);I+=s(z,{displayCnt:v})}else I+=p.get(["data","allData"]);var V=p.get(["data","separator","middle"]),H=p.get(["data","separator","end"]),K=p.get(["data","excludeDimensionId"]),F=[];for(var G=0;G<B.count();G++)if(G<v){var rt=B.getName(G),ot=!K?B.getValues(G):be(B.getValues(G),function(mt,Tt){return Xt(K,Tt)===-1}),at=p.get(["data",rt?"withName":"withoutName"]);F.push(s(at,{name:rt,value:ot.join(V)}))}I+=F.join(V)+H,S.push(I)}});var T=p.getModel(["series","multiple","separator"]),A=T.get("middle"),M=T.get("end");m+=S.join(A)+M,c.setAttribute("aria-label",m)}}function s(c,f){if(!ht(c))return c;var p=c;return P(f,function(h,v){p=p.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),p}function l(){var c=r.get("title");if(c&&c.length)c=c[0];return c&&c.text}function u(c){var f=r.getLocaleModel().get(["series","typeNames"]);return f[c]||f.chart}}var JMt,git,yit,_it;var xit=k(()=>{Z();yt();dy();JMt={label:{enabled:!0},decal:{show:!1}},git=Ft(),yit=Ft(),_it=xl($Mt)});function fz(r){if(!r||!r.aria)return;var e=r.aria;if(e.show!=null)e.enabled=e.show;e.label=e.label||{},P(["description","general","series","data"],function(t){if(e[t]!=null)e.label[t]=e[t]})}var Sit=k(()=>{Z()});function pz(r){r.registerPreprocessor(fz),r.registerVisual(r.PRIORITY.VISUAL.ARIA,_it)}var bit=k(()=>{xit();Sit()});function hz(r,e){if(r===!0||r===!1){var t=new tLt;return t.value=r,t}var i="";if(!Ait(r))Ue(i);if(r.and)return Tit("and",r,e);else if(r.or)return Tit("or",r,e);else if(r.not)return aLt(r,e);return oLt(r,e)}function Tit(r,e,t){var i=e[r],n="";if(!it(i))Ue(n);if(!i.length)Ue(n);var a=r==="and"?new eLt:new rLt;if(a.children=nt(i,function(o){return hz(o,t)}),!a.children.length)Ue(n);return a}function aLt(r,e){var t=r.not,i="";if(!Ait(t))Ue(i);var n=new iLt;if(n.child=hz(t,e),!n.child)Ue(i);return n}function oLt(r,e){var t="",i=e.prepareGetValue(r),n=[],a=le(r),o=r.parser,s=o?Gb(o):null;for(var l=0;l<a.length;l++){var u=a[l];if(u==="parser"||e.valueGetterAttrMap.get(u))continue;var c=Bt(wit,u)?wit[u]:u,f=r[u],p=s?s(f):f,h=HH(c,p)||c==="reg"&&new QMt(p);if(!h)Ue(t);n.push(h)}if(!n.length)Ue(t);var v=new nLt;return v.valueGetterParam=i,v.valueParser=s,v.getValue=e.getValue,v.subCondList=n,v}function Ait(r){return Pt(r)&&!ii(r)}function Cit(r,e){return new sLt(r,e)}var wit,QMt,tLt,eLt,rLt,iLt,nLt,sLt;var Eit=k(()=>{Z();Vo();Vu();wit={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},QMt=function(){function r(e){var t=this._condVal=ht(e)?new RegExp(e):PV(e)?e:null;if(t==null){var i="";Ue(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return ht(t)?this._condVal.test(e):ue(t)?this._condVal.test(e+""):!1},r}(),tLt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),eLt=function(){function r(){}return r.prototype.evaluate=function(){var e=this.children;for(var t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),rLt=function(){function r(){}return r.prototype.evaluate=function(){var e=this.children;for(var t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),iLt=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),nLt=function(){function r(){}return r.prototype.evaluate=function(){var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),n=e?this.valueParser(i):null;for(var a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?n:i))return!1;return!0},r}();sLt=function(){function r(e,t){this._cond=hz(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}()});var Mit;var Lit=k(()=>{Eit();Z();Vo();Mit={type:"echarts:filter",transform:function(r){var e=r.upstream,t,i=Cit(r.config,{valueGetterAttrMap:gt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;if(!Bt(s,"dimension"))Ue(l);var c=e.getDimensionInfo(u);if(!c)Ue(l);return{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[];for(var a=0,o=e.count();a<o;a++)if(t=e.getRawDataItem(a),i.evaluate())n.push(t);return{data:n}}}});var Dit;var Iit=k(()=>{gi();Vo();Z();yt();Vu();Dit={type:"echarts:sort",transform:function(r){var{upstream:e,config:t}=r,i="",n=Ve(t);if(!n.length)Ue(i);var a=[];P(n,function(c){var{dimension:f,order:p,parser:h,incomparable:v}=c;if(f==null)Ue(i);if(p!=="asc"&&p!=="desc")Ue(i);if(v&&v!=="min"&&v!=="max"){var g="";Ue(g)}if(p!=="asc"&&p!=="desc"){var y="";Ue(y)}var m=e.getDimensionInfo(f);if(!m)Ue(i);var d=h?Gb(h):null;if(h&&!d)Ue(i);a.push({dimIdx:m.index,parser:d,comparator:new Hb(p,v)})});var o=e.sourceFormat;if(o!==ai&&o!==ji)Ue(i);var s=[];for(var l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var p=0;p<a.length;p++){var h=a[p],v=e.retrieveValueFromItem(c,h.dimIdx),g=e.retrieveValueFromItem(f,h.dimIdx);if(h.parser)v=h.parser(v),g=h.parser(g);var y=h.comparator.evaluate(v,g);if(y!==0)return y}return 0}),{data:s}}}});function dz(r){r.registerTransform(Mit),r.registerTransform(Dit)}var Pit=k(()=>{Lit();Iit()});function vz(r){r.registerComponentModel(lLt),r.registerComponentView(uLt)}var lLt,uLt;var Rit=k(()=>{dt();Nr();jr();gi();HL();lLt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,n){r.prototype.init.call(this,t,i,n),this._sourceManager=new Kb(this),GL(this)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),GL(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:jn},e}(de),uLt=function(r){W(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Re)});var Oit=k(()=>{a$();I$();nR();Y$();mO();Q$();TQ();OQ();Ltt();jtt();Im();vet();met();ket();Het();Ket();irt();yrt();Ort();KN();JN();sit();sz();lz();mit();bit();Pit();Rit()});function Gm(r,e){return Math.abs(r-e)<0.00001}function tC(r){var e=r.data,t=r.len(),i=[],n,a=0,o=0,s=0,l=0;function u(R,B){if(n&&n.length>2)i.push(n);n=[R,B]}function c(R,B,z,V){if(!(Gm(R,z)&&Gm(B,V)))n.push(R,B,z,V,z,V)}function f(R,B,z,V,H,K){var F=Math.abs(B-R),G=Math.tan(F/4)*4/3,rt=B<R?-1:1,ot=Math.cos(R),at=Math.sin(R),mt=Math.cos(B),Tt=Math.sin(B),Ut=ot*H+z,qt=at*K+V,Zt=mt*H+z,Rt=Tt*K+V,oe=H*G*rt,Vt=K*G*rt;n.push(Ut-oe*at,qt+Vt*ot,Zt+oe*Tt,Rt-Vt*mt,Zt,Rt)}var p,h,v,g;for(var y=0;y<t;){var m=e[y++],d=y===1;if(d){if(a=e[y],o=e[y+1],s=a,l=o,m===iu.L||m===iu.C||m===iu.Q)n=[s,l]}switch(m){case iu.M:a=s=e[y++],o=l=e[y++],u(s,l);break;case iu.L:p=e[y++],h=e[y++],c(a,o,p,h),a=p,o=h;break;case iu.C:n.push(e[y++],e[y++],e[y++],e[y++],a=e[y++],o=e[y++]);break;case iu.Q:p=e[y++],h=e[y++],v=e[y++],g=e[y++],n.push(a+0.6666666666666666*(p-a),o+0.6666666666666666*(h-o),v+0.6666666666666666*(p-v),g+0.6666666666666666*(h-g),v,g),a=v,o=g;break;case iu.A:var x=e[y++],S=e[y++],w=e[y++],T=e[y++],A=e[y++],M=e[y++]+A;y+=1;var D=!e[y++];if(p=Math.cos(A)*w+x,h=Math.sin(A)*T+S,d)s=p,l=h,u(s,l);else c(a,o,p,h);a=Math.cos(M)*w+x,o=Math.sin(M)*T+S;var L=(D?-1:1)*Math.PI/2;for(var I=A;D?I>M:I<M;I+=L){var E=D?Math.max(I+L,M):Math.min(I+L,M);f(I,E,x,S,w,T)}break;case iu.R:s=a=e[y++],l=o=e[y++],p=s+e[y++],h=l+e[y++],u(p,l),c(p,l,p,h),c(p,h,s,h),c(s,h,s,l),c(s,l,p,l);break;case iu.Z:n&&c(a,o,s,l),a=s,o=l;break}}if(n&&n.length>2)i.push(n);return i}function mz(r,e,t,i,n,a,o,s,l,u){if(Gm(r,t)&&Gm(e,i)&&Gm(n,o)&&Gm(a,s)){l.push(o,s);return}var c=2/u,f=c*c,p=o-r,h=s-e,v=Math.sqrt(p*p+h*h);p/=v,h/=v;var g=t-r,y=i-e,m=n-o,d=a-s,x=g*g+y*y,S=m*m+d*d;if(x<f&&S<f){l.push(o,s);return}var w=p*g+h*y,T=-p*m-h*d,A=x-w*w,M=S-T*T;if(A<f&&w>=0&&M<f&&T>=0){l.push(o,s);return}var D=[],L=[];Po(r,t,n,o,0.5,D),Po(e,i,a,s,0.5,L),mz(D[0],L[0],D[1],L[1],D[2],L[2],D[3],L[3],l,u),mz(D[4],L[4],D[5],L[5],D[6],L[6],D[7],L[7],l,u)}function kit(r,e){var t=tC(r),i=[];e=e||1;for(var n=0;n<t.length;n++){var a=t[n],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],p=a[u++],h=a[u++],v=a[u++],g=a[u++];mz(s,l,c,f,p,h,v,g,o,e),s=v,l=g}i.push(o)}return i}var iu;var gz=k(()=>{ga();ao();iu=Fi.CMD});function Uit(r,e,t){var i=r[e],n=r[1-e],a=Math.abs(i/n),o=Math.ceil(Math.sqrt(a*t)),s=Math.floor(t/o);if(s===0)s=1,o=t;var l=[];for(var u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function Nit(r,e,t){var{r0:i,r:n,startAngle:a,endAngle:o}=r,s=Math.abs(o-a),l=s*n,u=n-i,c=l>Math.abs(u),f=Uit([l,u],c?0:1,e),p=(c?s:u)/f.length;for(var h=0;h<f.length;h++){var v=(c?u:s)/f[h];for(var g=0;g<f[h];g++){var y={};if(c)y.startAngle=a+p*h,y.endAngle=a+p*(h+1),y.r0=i+v*g,y.r=i+v*(g+1);else y.startAngle=a+v*g,y.endAngle=a+v*(g+1),y.r0=i+p*h,y.r=i+p*(h+1);y.clockwise=r.clockwise,y.cx=r.cx,y.cy=r.cy,t.push(y)}}}function cLt(r,e,t){var{width:i,height:n}=r,a=i>n,o=Uit([i,n],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=r[s]/o.length;for(var p=0;p<o.length;p++){var h=r[l]/o[p];for(var v=0;v<o[p];v++){var g={};g[u]=p*f,g[c]=v*h,g[s]=f,g[l]=h,g.x+=r.x,g.y+=r.y,t.push(g)}}}function zit(r,e,t,i){return r*i-t*e}function fLt(r,e,t,i,n,a,o,s){var l=t-r,u=i-e,c=o-n,f=s-a,p=zit(c,f,l,u);if(Math.abs(p)<0.000001)return null;var h=r-n,v=e-a,g=zit(h,v,c,f)/p;if(g<0||g>1)return null;return new Qt(g*l+r,g*u+e)}function pLt(r,e,t){var i=new Qt;Qt.sub(i,t,e),i.normalize();var n=new Qt;Qt.sub(n,r,e);var a=n.dot(i);return a}function Hm(r,e){var t=r[r.length-1];if(t&&t[0]===e[0]&&t[1]===e[1])return;r.push(e)}function hLt(r,e,t){var i=r.length,n=[];for(var a=0;a<i;a++){var o=r[a],s=r[(a+1)%i],l=fLt(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);if(l)n.push({projPt:pLt(l,e,t),pt:l,idx:a})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(y,m){return y.projPt-m.projPt});var u=n[0],c=n[n.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}var p=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],v=[p],g=[h];for(var a=u.idx+1;a<=c.idx;a++)Hm(v,r[a].slice());Hm(v,h),Hm(v,p);for(var a=c.idx+1;a<=u.idx+i;a++)Hm(g,r[a%i].slice());return Hm(g,p),Hm(g,h),[{points:v},{points:g}]}function Bit(r){var e=r.points,t=[],i=[];Dp(e,t,i);var n=new Gt(t[0],t[1],i[0]-t[0],i[1]-t[1]),{width:a,height:o,x:s,y:l}=n,u=new Qt,c=new Qt;if(a>o)u.x=c.x=s+a/2,u.y=l,c.y=l+o;else u.y=c.y=l+o/2,u.x=s,c.x=s+a;return hLt(e,u,c)}function eC(r,e,t,i){if(t===1)i.push(e);else{var n=Math.floor(t/2),a=r(e);eC(r,a[0],n,i),eC(r,a[1],t-n,i)}return i}function dLt(r,e){var t=[];for(var i=0;i<e;i++)t.push(Kd(r));return t}function vLt(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function mLt(r){var e=[];for(var t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function Vit(r,e){var t=[],i=r.shape,n;switch(r.type){case"rect":cLt(i,e,t),n=ee;break;case"sector":Nit(i,e,t),n=Qr;break;case"circle":Nit({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),n=Qr;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=nt(kit(r.getUpdatedPathProxy(),o),function(m){return mLt(m)}),l=s.length;if(l===0)eC(Bit,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=nt(s,function(m){var d=[],x=[];Dp(m,d,x);var S=(x[1]-d[1])*(x[0]-d[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,d){return d.area-m.area});var p=e;for(var u=0;u<l;u++){var h=f[u];if(p<=0)break;var v=u===l-1?p:Math.ceil(h.area/c*e);if(v<0)continue;eC(Bit,{points:h.poly},v,t),p-=v}}n=kr;break}if(!n)return dLt(r,e);var g=[];for(var u=0;u<t.length;u++){var y=new n;y.setShape(t[u]),vLt(r,y),g.push(y)}return g}var Fit=k(()=>{Fg();fr();Tc();Z();US();Zd();DM();gz();qd()});function gLt(r,e){var t=r.length,i=e.length;if(t===i)return[r,e];var n=[],a=[],o=t<i?r:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],p=l;for(var h=2;h<s;){var v=o[h-2],g=o[h-1],y=o[h++],m=o[h++],d=o[h++],x=o[h++],S=o[h++],w=o[h++];if(p<=0){f.push(y,m,d,x,S,w);continue}var T=Math.min(p,c-1)+1;for(var A=1;A<=T;A++){var M=A/T;Po(v,y,d,S,M,n),Po(g,m,x,w,M,a),v=n[3],g=a[3],f.push(n[1],a[1],n[2],a[2],v,g),y=n[5],m=a[5],d=n[6],x=a[6]}p-=T-1}return o===r?[f,e]:[r,f]}function Git(r,e){var t=r.length,i=r[t-2],n=r[t-1],a=[];for(var o=0;o<e.length;)a[o++]=i,a[o++]=n;return a}function yLt(r,e){var t,i,n,a=[],o=[];for(var s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;if(!l)c=Git(i||u,u),f=u;else if(!u)f=Git(n||l,l),c=l;else t=gLt(l,u),c=t[0],f=t[1],i=c,n=f;a.push(c),o.push(f)}return[a,o]}function Hit(r){var e=0,t=0,i=0,n=r.length;for(var a=0,o=n-2;a<n;o=a,a+=2){var s=r[o],l=r[o+1],u=r[a],c=r[a+1],f=s*c-u*l;e+=f,t+=(s+u)*f,i+=(l+c)*f}if(e===0)return[r[0]||0,r[1]||0];return[t/e/3,i/e/3,e]}function _Lt(r,e,t,i){var n=(r.length-2)/6,a=1/0,o=0,s=r.length,l=s-2;for(var u=0;u<n;u++){var c=u*6,f=0;for(var p=0;p<s;p+=2){var h=p===0?c:(c+p-2)%l+2,v=r[h]-t[0],g=r[h+1]-t[1],y=e[p]-i[0],m=e[p+1]-i[1],d=y-v,x=m-g;f+=d*d+x*x}if(f<a)a=f,o=u}return o}function xLt(r){var e=[],t=r.length;for(var i=0;i<t;i+=2)e[i]=r[t-i-2],e[i+1]=r[t-i-1];return e}function SLt(r,e,t,i){var n=[],a;for(var o=0;o<r.length;o++){var s=r[o],l=e[o],u=Hit(s),c=Hit(l);if(a==null)a=u[2]<0!==c[2]<0;var f=[],p=[],h=0,v=1/0,g=[],y=s.length;if(a)s=xLt(s);var m=_Lt(s,l,u,c)*6,d=y-2;for(var x=0;x<d;x+=2){var S=(m+x)%d+2;f[x+2]=s[S]-u[0],f[x+3]=s[S+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],t>0){var w=i/t;for(var T=-i/2;T<=i/2;T+=w){var A=Math.sin(T),M=Math.cos(T),D=0;for(var x=0;x<s.length;x+=2){var L=f[x],I=f[x+1],E=l[x]-c[0],R=l[x+1]-c[1],B=E*M-R*A,z=E*A+R*M;g[x]=B,g[x+1]=z;var V=B-L,H=z-I;D+=V*V+H*H}if(D<v){v=D,h=T;for(var K=0;K<g.length;K++)p[K]=g[K]}}}else for(var F=0;F<y;F+=2)p[F]=l[F]-c[0],p[F+1]=l[F+1]-c[1];n.push({from:f,to:p,fromCp:u,toCp:c,rotation:-h})}return n}function h_(r){return r.__isCombineMorphing}function rC(r,e,t){var i=Yit+e,n=r[i]||r[e];if(!r[i])r[i]=r[e];var{replace:a,after:o,before:s}=t;r[e]=function(){var l=arguments,u;if(s&&s.apply(this,l),a)u=a.apply(this,l);else u=n.apply(this,l);return o&&o.apply(this,l),u}}function p_(r,e){var t=Yit+e;if(r[t])r[e]=r[t],r[t]=null}function Wit(r,e){for(var t=0;t<r.length;t++){var i=r[t];for(var n=0;n<i.length;){var a=i[n],o=i[n+1];i[n++]=e[0]*a+e[2]*o+e[4],i[n++]=e[1]*a+e[3]*o+e[5]}}}function Zit(r,e){var t=r.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),n=yLt(tC(t),tC(i)),a=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Wit(a,s),l&&Wit(o,l),rC(e,"updateTransform",{replace:u}),e.transform=null;var c=SLt(a,o,10,Math.PI),f=[];rC(e,"buildPath",{replace:function(p){var h=e.__morphT,v=1-h,g=[];for(var y=0;y<c.length;y++){var m=c[y],{from:d,to:x}=m,S=m.rotation*h,{fromCp:w,toCp:T}=m,A=Math.sin(S),M=Math.cos(S);xd(g,w,T,h);for(var D=0;D<d.length;D+=2){var L=d[D],I=d[D+1],E=x[D],R=x[D+1],B=L*v+E*h,z=I*v+R*h;f[D]=B*M-z*A+g[0],f[D+1]=B*A+z*M+g[1]}var V=f[0],H=f[1];p.moveTo(V,H);for(var D=2;D<d.length;){var E=f[D++],R=f[D++],K=f[D++],F=f[D++],G=f[D++],rt=f[D++];if(V===E&&H===R&&K===G&&F===rt)p.lineTo(G,rt);else p.bezierCurveTo(E,R,K,F,G,rt);V=G,H=rt}}}})}function nC(r,e,t){if(!r||!e)return e;var{done:i,during:n}=t;Zit(r,e),e.__morphT=0;function a(){p_(e,"buildPath"),p_(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Dt({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){a(),i&&i()}},t)),e}function bLt(r,e,t,i,n,a){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=a===i?0:Math.round(32767*(e-i)/(a-i));var s=0,l;for(var u=(1<<o)/2;u>0;u/=2){var c=0,f=0;if((r&u)>0)c=1;if((e&u)>0)f=1;if(s+=u*u*(3*c^f),f===0){if(c===1)r=u-1-r,e=u-1-e;l=r,r=e,e=l}}return s}function iC(r){var e=1/0,t=1/0,i=-1/0,n=-1/0,a=nt(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),i=Math.max(c,i),n=Math.max(f,n),[c,f]}),o=nt(a,function(s,l){return{cp:s,z:bLt(s[0],s[1],e,t,i,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function jit(r){return Vit(r.path,r.count)}function yz(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Xit(r,e,t){var i=[];function n(w){for(var T=0;T<w.length;T++){var A=w[T];if(h_(A))n(A.childrenRef());else if(A instanceof $t)i.push(A)}}n(r);var a=i.length;if(!a)return yz();var o=t.dividePath||jit,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),yz();i=iC(i),s=iC(s);var{done:l,during:u,individualDelay:c}=t,f=new xa;for(var p=0;p<a;p++){var h=i[p],v=s[p];if(v.parent=e,v.copyTransform(f),!c)Zit(h,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(w){for(var T=0;T<s.length;T++)s[T].addSelfToZr(w)}rC(e,"addSelfToZr",{after:function(w){g(w)}}),rC(e,"removeSelfFromZr",{after:function(w){for(var T=0;T<s.length;T++)s[T].removeSelfFromZr(w)}});function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,p_(e,"addSelfToZr"),p_(e,"removeSelfFromZr")}var m=s.length;if(c){var d=m,x=function(){if(d--,d===0)y(),l&&l()};for(var p=0;p<m;p++){var S=c?Dt({delay:(t.delay||0)+c(p,m,i[p],s[p]),done:x},t):t;nC(i[p],s[p],S)}}else e.__morphT=0,e.animateTo({__morphT:1},Dt({during:function(w){for(var T=0;T<m;T++){var A=s[T];A.__morphT=e.__morphT,A.dirtyShape()}u&&u(w)},done:function(){y();for(var w=0;w<r.length;w++)p_(r[w],"updateTransform");l&&l()}},t));if(e.__zr)g(e.__zr);return{fromIndividuals:i,toIndividuals:s,count:m}}function Kit(r,e,t){var i=e.length,n=[],a=t.dividePath||jit;function o(h){for(var v=0;v<h.length;v++){var g=h[v];if(h_(g))o(g.childrenRef());else if(g instanceof $t)n.push(g)}}if(h_(r)){o(r.childrenRef());var s=n.length;if(s<i){var l=0;for(var u=s;u<i;u++)n.push(Kd(n[l++%s]))}n.length=i}else{n=a({path:r,count:i});var c=r.getComputedTransform();for(var u=0;u<n.length;u++)n[u].setLocalTransform(c);if(n.length!==i)return console.error("Invalid morphing: unmatched splitted path"),yz()}n=iC(n),e=iC(e);var f=t.individualDelay;for(var u=0;u<i;u++){var p=f?Dt({delay:(t.delay||0)+f(u,i,n[u],e[u])},t):t;nC(n[u],e[u],p)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}var Yit="__mOriginal_";var qit=k(()=>{ga();Br();Z();br();qd();No();Fit();gz()});function Jit(r){return it(r[0])}function $it(r,e){var t=[],i=r.length;for(var n=0;n<i;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var a=e[n].length,o=void 0;for(o=0;o<a;o++)t[o%i].many.push(e[n][o])}var s=0;for(var n=i-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var a=l.length,u=Math.ceil(a/2);t[n].many=l.slice(u,a),t[s].many=l.slice(0,u),s++}return t}function aC(r,e,t,i,n,a){if(!r.length||!e.length)return;var o=Il("update",i,n);if(!(o&&o.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=et({setToFinal:!0},o),u,c;if(Jit(r))u=r,c=e;if(Jit(e))u=e,c=r;function f(m,d,x,S,w){var{many:T,one:A}=m;if(T.length===1&&!w){var M=d?T[0]:A,D=d?A:T[0];if(h_(M))f({many:[M],one:D},!0,x,S,!0);else{var L=s?Dt({delay:s(x,S)},l):l;nC(M,D,L),a(M,D,M,D,L)}}else{var I=Dt({dividePath:wLt[t],individualDelay:s&&function(H,K,F,G){return s(H+x,S)}},l),E=d?Xit(T,A,I):Kit(A,T,I),{fromIndividuals:R,toIndividuals:B}=E,z=R.length;for(var V=0;V<z;V++){var L=s?Dt({delay:s(V,z)},l):l;a(R[V],B[V],d?T[V]:m.one,d?m.one:T[V],L)}}}var p=u?u===r:r.length>e.length,h=u?$it(c,u):$it(p?e:r,[p?r:e]),v=0;for(var g=0;g<h.length;g++)v+=h[g].many.length;var y=0;for(var g=0;g<h.length;g++)f(h[g],p,y,v),y+=h[g].many.length}function Hf(r){if(!r)return[];if(it(r)){var e=[];for(var t=0;t<r.length;t++)e.push(Hf(r[t]));return e}var i=[];return r.traverse(function(n){if(n instanceof $t&&!n.disableMorphing&&!n.invisible&&!n.ignore)i.push(n)}),i}var wLt;var Qit=k(()=>{qit();jt();Z();Ki();qd();wLt={clone:function(r){var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count);for(var i=0;i<r.count;i++){var n=Kd(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null}});function CLt(r,e){var t=r.dimensions;for(var i=0;i<t.length;i++){var n=r.getDimensionInfo(t[i]);if(n&&n.otherDims[e]===0)return t[i]}}function ELt(r,e,t){var i=r.getDimensionInfo(t),n=i&&i.ordinalMeta;if(i){var a=r.get(i.name,e);if(n)return n.categories[a]||a+"";return a+""}}function rnt(r,e,t,i){var n=i?"itemChildGroupId":"itemGroupId",a=CLt(r,n);if(a){var o=ELt(r,e,a);return o}var s=r.getRawDataItem(e),l=i?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(i)return;return t||r.getId(e)}function int(r){var e=[];return P(r,function(t){var{data:i,dataGroupId:n}=t;if(i.count()>snt)return;var a=i.getIndices();for(var o=0;o<a.length;o++)e.push({data:i,groupId:rnt(i,o,n,!1),childGroupId:rnt(i,o,n,!0),divide:t.divide,dataIndex:o})}),e}function _z(r,e,t){r.traverse(function(i){if(i instanceof $t)ze(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function xz(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Wm(r){if(r.stopAnimation(),r.isGroup)r.traverse(function(e){e.stopAnimation()})}function MLt(r,e,t){var i=Il("update",t,e);i&&r.traverse(function(n){if(n instanceof fi){var a=wG(n);if(a)n.animateFrom({style:a},i)}})}function LLt(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var n=r[i],a=e[i];if(n.data.getId(n.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function lnt(r,e,t){var i=int(r),n=int(e);function a(x,S,w,T,A){if(w||x)S.animateFrom({style:w&&w!==x?et(et({},w.style),x.style):x.style},A)}var o=!1,s=TLt,l=gt(),u=gt();P(i,function(x){x.groupId&&l.set(x.groupId,!0),x.childGroupId&&u.set(x.childGroupId,!0)});for(var c=0;c<n.length;c++){var f=n[c].groupId;if(u.get(f)){s=tnt;break}var p=n[c].childGroupId;if(p&&l.get(p)){s=ent;break}}function h(x,S){return function(w){var{data:T,dataIndex:A}=w;if(S)return T.getId(A);if(x)return s===tnt?w.childGroupId:w.groupId;else return s===ent?w.childGroupId:w.groupId}}var v=LLt(i,n),g={};if(!v)for(var c=0;c<n.length;c++){var y=n[c],m=y.data.getItemGraphicEl(y.dataIndex);if(m)g[m.id]=!0}function d(x,S){var w=i[S],T=n[x],A=T.data.hostModel,M=w.data.getItemGraphicEl(w.dataIndex),D=T.data.getItemGraphicEl(T.dataIndex);if(M===D){D&&MLt(D,T.dataIndex,A);return}if(M&&g[M.id])return;if(D)if(Wm(D),M)Wm(M),xz(M),o=!0,aC(Hf(M),Hf(D),T.divide,A,x,a);else _z(D,A,x)}if(new dn(i,n,h(!0,v),h(!1,v),null,"multiple").update(d).updateManyToOne(function(x,S){var w=n[x],T=w.data,A=T.hostModel,M=T.getItemGraphicEl(w.dataIndex),D=be(nt(S,function(L){return i[L].data.getItemGraphicEl(i[L].dataIndex)}),function(L){return L&&L!==M&&!g[L.id]});if(M)if(Wm(M),D.length)P(D,function(L){Wm(L),xz(L)}),o=!0,aC(Hf(D),Hf(M),w.divide,A,x,a);else _z(M,A,w.dataIndex)}).updateOneToMany(function(x,S){var w=i[S],T=w.data.getItemGraphicEl(w.dataIndex);if(T&&g[T.id])return;var A=be(nt(x,function(D){return n[D].data.getItemGraphicEl(n[D].dataIndex)}),function(D){return D&&D!==T}),M=n[x[0]].data.hostModel;if(A.length)if(P(A,function(D){return Wm(D)}),T)Wm(T),xz(T),o=!0,aC(Hf(T),Hf(A),w.divide,M,x[0],a);else P(A,function(D){return _z(D,M,x[0])})}).updateManyToMany(function(x,S){new dn(S,x,function(w){return i[w].data.getId(i[w].dataIndex)},function(w){return n[w].data.getId(n[w].dataIndex)}).update(function(w,T){d(x[w],S[T])}).execute()}).execute(),o)P(e,function(x){var S=x.data,w=S.hostModel,T=w&&t.getViewOfSeriesModel(w),A=Il("update",w,0);if(T&&w.isAnimationEnabled()&&A&&A.duration>0)T.group.traverse(function(M){if(M instanceof $t&&!M.animators.length)M.animateFrom({style:{opacity:0}},A)})})}function nnt(r){var e=r.getModel("universalTransition").get("seriesKey");if(!e)return r.id;return e}function ant(r){if(it(r))return r.sort().join(",");return r}function Wf(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function DLt(r,e){var t=gt(),i=gt(),n=gt();P(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=nnt(o),f=ant(c);if(i.set(f,{dataGroupId:l,data:u}),it(c))P(c,function(p){n.set(p,{key:f,dataGroupId:l,data:u})})});function a(o){if(t.get(o))BE("Duplicated seriesKey in universalTransition "+o)}return P(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=nnt(o),c=ant(u),f=i.get(c);if(f)t.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Wf(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Wf(l),data:l}]});else if(it(u)){var p=[];if(P(u,function(g){var y=i.get(g);if(y.data)p.push({dataGroupId:y.dataGroupId,divide:Wf(y.data),data:y.data})}),p.length)t.set(c,{oldSeries:p,newSeries:[{dataGroupId:s,data:l,divide:Wf(l)}]})}else{var h=n.get(u);if(h){var v=t.get(h.key);if(!v)v={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Wf(h.data)}],newSeries:[]},t.set(h.key,v);v.newSeries.push({dataGroupId:s,data:l,divide:Wf(l)})}}}}),t}function ont(r,e){for(var t=0;t<r.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(i)return t}}function ILt(r,e,t,i){var n=[],a=[];if(P(Ve(r.from),function(o){var s=ont(e.oldSeries,o);if(s>=0)n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Wf(e.oldData[s]),groupIdDim:o.dimension})}),P(Ve(r.to),function(o){var s=ont(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Wf(l),groupIdDim:o.dimension})}}),n.length>0&&a.length>0)lnt(n,a,i)}function Sz(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){P(Ve(i.seriesTransition),function(n){P(Ve(n.to),function(a){var o=i.updatedSeries;for(var s=0;s<o.length;s++)if(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)o[s][by]=!0})})}),r.registerUpdateLifecycle("series:transition",function(e,t,i){var n=ALt(t);if(n.oldSeries&&i.updatedSeries&&i.optionChanged){var a=i.seriesTransition;if(a)P(Ve(a),function(h){ILt(h,n,i,t)});else{var o=DLt(n,i);P(o.keys(),function(h){var v=o.get(h);lnt(v.oldSeries,v.newSeries,t)})}P(i.updatedSeries,function(h){if(h[by])h[by]=!1})}var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],c=n.oldData=[];for(var f=0;f<s.length;f++){var p=s[f].getData();if(p.count()<snt)l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(p)}})}var snt=1e4,TLt=0,tnt=1,ent=2,ALt;var unt=k(()=>{Zr();Z();Qit();Br();jt();Hu();yt();Vo();Ki();no();ALt=Ft()});function RLt(r,e){return new PLt(r,e)}function OLt(r,e){var t=0,i={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};P(r.breaks,function(s){var l=s.gapParsed;if(l.type==="tpPrct")t+=l.val;var u=Tz(s,e);if(u){var c=u.vmin!==s.vmin,f=u.vmax!==s.vmax,p=u.vmax-u.vmin;if(c&&f);else if(c||f){var h=c?"S":"E";a[h][l.type].has=!0,a[h][l.type].span=p,a[h][l.type].inExtFrac=p/(s.vmax-s.vmin),a[h][l.type].val=l.val}else i[l.type].span+=p,i[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(i.tpAbs.val-i.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-i.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-i.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));P(r.breaks,function(s){var l=s.gapParsed;if(l.type==="tpPrct")s.gapReal=t!==0?ce(o,0)*l.val/t:0;if(l.type==="tpAbs")s.gapReal=l.val;if(s.gapReal==null)s.gapReal=0})}function kLt(r,e,t,i,n,a){if(r==="no")return;P(t,function(o){var s=Tz(o,a);if(!s)return;for(var l=e.length-1;l>=0;l--){var u=e[l],c=i(u),f=n*3/4;if(c>s.vmin-f&&c<s.vmax+f&&(r!=="preserve_extent_bound"||c!==a[0]&&c!==a[1]))e.splice(l,1)}})}function NLt(r,e,t,i){if(P(e,function(n){var a=Tz(n,t);if(!a)return;r.push({value:a.vmin,break:{type:"vmin",parsedBreak:a},time:i?i(a):void 0}),r.push({value:a.vmax,break:{type:"vmax",parsedBreak:a},time:i?i(a):void 0})}),e.length)r.sort(function(n,a){return n.value-a.value})}function Tz(r,e){var t=ce(r.vmin,e[0]),i=ke(r.vmax,e[1]);return t<i||t===i&&t>e[0]&&t<e[1]?{vmin:t,vmax:i,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function bz(r,e,t){var i=[];if(!r)return{breaks:i};function n(o,s){if(o>=0&&o<0.99999)return!0;return!1}P(r,function(o){if(!o||o.start==null||o.end==null)return;if(o.isExpanded)return;var s={breakOption:It(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(ht(o.gap)){var u=Ti(o.gap);if(u.match(/%$/)){var c=parseFloat(u)/100;if(!n(c,"Percent gap"))c=0;s.gapParsed.type="tpPrct",s.gapParsed.val=c,l=!0}}if(!l){var f=e.parse(o.gap);if(!isFinite(f)||f<0)f=0;s.gapParsed.type="tpAbs",s.gapParsed.val=f}}if(s.vmin===s.vmax)s.gapParsed.type="tpAbs",s.gapParsed.val=0;if(t&&t.noNegative)P(["vmin","vmax"],function(h){if(s[h]<0)s[h]=0});if(s.vmin>s.vmax){var p=s.vmax;s.vmax=s.vmin,s.vmin=p}i.push(s)}),i.sort(function(o,s){return o.vmin-s.vmin});var a=-1/0;return P(i,function(o,s){if(a>o.vmin)i[s]=null;a=o.vmax}),{breaks:be(i,function(o){return!!o})}}function Az(r,e){return wz(e)===wz(r)}function wz(r){return r.start+"_\x00_"+r.end}function zLt(r,e,t){var i=[];P(r,function(a,o){var s=e(a);if(s&&s.type==="vmin")i.push([o])}),P(r,function(a,o){var s=e(a);if(s&&s.type==="vmax"){var l=$a(i,function(u){return Az(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return P(i,function(a){if(a.length===2)n.push(t?a:[r[a[0]],r[a[1]]])}),n}function BLt(r,e,t,i){if(!e.break)return;var n=e.break.parsedBreak,a=$a(t,function(c){return Az(c.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:i,depth:es},s=r.transformOut(n.vmin,o),l=r.transformOut(n.vmax,o),u={vmin:s,vmax:l,breakOption:n.breakOption,gapParsed:It(a.gapParsed),gapReal:n.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}function ULt(r,e,t,i,n){n.original=bz(r,e,t);var a=n.transformed=bz(r,e,t),o=n.lookup;a.breaks=nt(a.breaks,function(s,l){var u={depth:es},c=e.transformIn(s.vmin,u),f=e.transformIn(s.vmax,u),p={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-c:s.gapParsed.val};return o.from[i+l]=c,o.to[i+l]=s.vmin,o.from[i+l+1]=f,o.to[i+l+1]=s.vmax,{vmin:c,vmax:f,gapParsed:p,gapReal:s.gapReal,breakOption:s.breakOption}})}function FLt(r,e){if(e)r=r||{},r.break={type:VLt[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax};return r}function pnt(){XG({createBreakScaleMapper:RLt,pruneTicksByBreak:kLt,addBreaksToTicks:NLt,parseAxisBreakOption:bz,identifyAxisBreak:Az,serializeAxisBreakIdentifier:wz,retrieveAxisBreakPairs:zLt,getTicksBreakOutwardTransform:BLt,parseAxisBreakOptionInwardTransform:ULt,makeAxisLabelFormatterParamBreak:FLt})}var PLt,cnt=0,fnt=0,VLt;var hnt=k(()=>{Z();te();rs();yt();PLt=function(){function r(e,t){Tv(this,r.decoratedMethods),this._outOfBrk=D1(null,t);var i=this._linear=D1(null,t);Av(this,i),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var i=0;i<this.breaks.length;i++){var n=this.breaks[i];if(n.vmin<e&&e<n.vmax){var a=t(e,n.vmax);return a}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===es?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(vn,e,t)},setExtent2:function(e,t,i){if(Ds(t,i)){if(e===vn)OLt(this,[t,i]);this._outOfBrk.setExtent2(e,t,i),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(i,null))}},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===es)return e;var i=cnt,n=fnt,a=!0;for(var o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){if(e>s.vmin)i+=s.vmin-n+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal;else i+=e-n;n=s.vmax,a=!1;break}i+=s.vmin-n+s.gapReal,n=s.vmax}if(a)i+=e-n;return i},transformOut:function(e,t){if(t&&t.depth===es)return e;var i=cnt,n=fnt,a=!0,o=0;for(var s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=i+l.vmin-n,c=u+l.gapReal;if(e<=c){if(e>u)o=l.vmin+(e-u)/(c-u)*(l.vmax-l.vmin);else o=n+e-i;n=l.vmax,a=!1;break}i=c,n=l.vmax}if(a)o=n+e-i;return o}},r}();VLt={vmin:"start",vmax:"end"}});function GLt(r,e){var t=$a(r,function(i){return wr().identifyAxisBreak(i.parsedBreak.breakOption,e.breakOption)});if(!t)r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1});return t}function HLt(r){P(r,function(e){return e.shouldRemove=!0})}function WLt(r){for(var e=r.length-1;e>=0;e--)if(r[e].shouldRemove)r.splice(e,1)}function YLt(r,e,t,i,n){var a=t.axis;if(a.scale.isBlank()||!wr())return;var o=wr().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(D){return D.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var f=s.get("expandOnClick"),p=s.get("zigzagZ"),h=s.getModel("itemStyle"),v=h.getItemStyle(),{stroke:g,lineWidth:y,lineDash:m,fill:d}=v,x=new Lt({ignoreModelZ:!0}),S=a.isHorizontal(),w=dnt(e).visualList||(dnt(e).visualList=[]);HLt(w);var T=function(D){var L=o[D][0].break.parsedBreak,I=[];if(I[0]=a.toGlobalCoord(a.dataToCoord(L.vmin,!0)),I[1]=a.toGlobalCoord(a.dataToCoord(L.vmax,!0)),I[1]<I[0])I.reverse();var E=GLt(w,L);E.shouldRemove=!1;var R=new Lt;if(M(E.zigzagRandomList,R,I[0],I[1],S,L),f)R.on("click",function(){var B={type:Hv,breaks:[{start:L.breakOption.start,end:L.breakOption.end}]};B[a.dim+"AxisIndex"]=t.componentIndex,n.dispatchAction(B)});R.silent=!f,x.add(R)};for(var A=0;A<o.length;A++)T(A);r.add(x),WLt(w);function M(D,L,I,E,R,B){var z={stroke:g,lineWidth:y,lineDash:m,fill:"none"},V=R?0:1,H=1-V,K=i[fe[H]]+i[Lr[H]];function F(vt){var ut=[],q=[];ut[V]=q[V]=vt,ut[H]=i[fe[H]],q[H]=K;var X={x1:ut[0],y1:ut[1],x2:q[0],y2:q[1]};return zp(X,X,{lineWidth:1}),ut[0]=X.x1,ut[1]=X.y1,ut[V]}I=F(I),E=F(E);var G=[],rt=[],ot=!0,at=i[fe[H]];for(var mt=0;;mt++){var Tt=at===i[fe[H]],Ut=at>=K;if(Ut)at=K;var qt=[],Zt=[];if(qt[V]=I,Zt[V]=E,!Tt&&!Ut)qt[V]+=ot?-l:l,Zt[V]-=!ot?-l:l;qt[H]=at,Zt[H]=at,G.push(qt),rt.push(Zt);var Rt=void 0;if(mt<D.length)Rt=D[mt];else Rt=Math.random(),D.push(Rt);if(at+=Rt*(c-u)+u,ot=!ot,Ut)break}var oe=wr().serializeAxisBreakIdentifier(B.breakOption);if(L.add(new Mr({anid:"break_a_"+oe,shape:{points:G},style:z,z:p})),B.gapReal!==0){L.add(new Mr({anid:"break_b_"+oe,shape:{points:rt},style:z,z:p}));var Vt=rt.slice();Vt.reverse();var N=G.concat(Vt);L.add(new kr({anid:"break_c_"+oe,shape:{points:N},style:{fill:d,opacity:v.opacity},z:p}))}}}function ZLt(r,e,t,i){var n=r.axis,a=t.transform;xe(i.style);var o=n.getExtent();if(n.inverse)o=o.slice(),o.reverse();var s=wr().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(y){return y.break},!1),l=nt(s,function(y){var m=y[0].break.parsedBreak,d=[n.dataToCoord(m.vmin,!0),n.dataToCoord(m.vmax,!0)];return d[0]>d[1]&&d.reverse(),{coordPair:d,brkId:wr().serializeAxisBreakIdentifier(m.breakOption)}});l.sort(function(y,m){return y.coordPair[0]-m.coordPair[0]});var u=o[0],c=null;for(var f=0;f<l.length;f++){var p=l[f],h=Math.max(p.coordPair[0],o[0]),v=Math.min(p.coordPair[1],o[1]);if(u<=h)g(u,h,c,p);u=v,c=p}if(u<=o[1])g(u,o[1],c,null);function g(y,m,d,x){function S(I,E){if(a)vr(I,I,a),vr(E,E,a)}function w(I,E){var R={x1:I[0],y1:I[1],x2:E[0],y2:E[1]};zp(R,R,i.style),I[0]=R.x1,I[1]=R.y1,E[0]=R.x2,E[1]=R.y2}var T=[y,0],A=[m,0],M=[y,5],D=[m,5];S(T,M),w(T,M),S(A,D),w(A,D),w(T,A);var L=new xr(et({shape:{x1:T[0],y1:T[1],x2:A[0],y2:A[1]}},i));e.add(L),L.anid="breakLine_"+(d?d.brkId:"\x00")+"_\x00_"+(x?x.brkId:"\x00")}}function jLt(r,e,t){if($a(t,function(d){return!d}))return;var i=new Qt;if(!Bv(t[0],t[1],i,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var n=Qe();bn(n,n,-e);var a=nt(t,function(d){return d.transform?Ri(Qe(),n,d.transform):n});function o(d){var x=t[0].localRect,S=new Qt(x[Lr[d]]*a[0][0],x[Lr[d]]*a[0][1]);return Math.abs(S.y)<0.00001}var s=0.5;if(o(0)||o(1)){var l=nt(t,function(d,x){var S=d.localRect.clone();return S.applyTransform(a[x]),S}),u=new Qt;u.copy(t[0].label).add(t[1].label).scale(0.5),u.transform(n);var c=i.clone().transform(n),f=l[0].x+l[1].x+(c.x>=0?l[0].width:l[1].width),p=(f+c.x)/2-u.x,h=Math.min(p,p-c.x),v=Math.max(p,p-c.x),g=v<0?v:h>0?h:0;s=(p-g)/c.x}var y=new Qt,m=new Qt;Qt.scale(y,i,-s),Qt.scale(m,i,1-s),Xy(t[0],y),Xy(t[1],m)}function XLt(r,e){var t={breaks:[]};return P(e.breaks,function(i){if(!i)return;var n=$a(r.get("breaks",!0),function(s){return wr().identifyAxisBreak(s,i)});if(!n)return;var a=e.type,o={isExpanded:!!n.isExpanded};n.isExpanded=a===Hv?!0:a===GI?!1:a===HI?!n.isExpanded:n.isExpanded,t.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}),t}function vnt(){xY({adjustBreakLabelPair:jLt,buildAxisBreakLine:ZLt,rectCoordBuildBreakAxis:YLt,updateModelAxisBreak:XLt})}var dnt;var mnt=k(()=>{yt();Z();Yd();br();Tw();Jy();jt();dnt=Ft()});function Cz(r){SY(r),pnt(),vnt()}var gnt=k(()=>{hnt();Tw();mnt()});function Ez(){V7(KLt)}function KLt(r,e){P(r,function(t){if(!t.model.get(["axisLabel","inside"])){var i=qLt(t);if(i){var n=t.isHorizontal()?"height":"width",a=t.model.get(["axisLabel","margin"]);if(e[n]-=i[n]+a,t.position==="top")e.y+=i.height+a;else if(t.position==="left")e.x+=i.width+a}}})}function qLt(r){var{model:e,scale:t}=r;if(!e.get(["axisLabel","show"])||t.isBlank())return;var i,n,a=t.getExtent();if(t instanceof gh)n=t.count();else i=t.getTicks(),n=i.length;var o=r.getLabelModel(),s=yh(r),l,u=1;if(n>40)u=Math.ceil(n/40);for(var c=0;c<n;c+=u){var f=i?i[c]:{value:a[0]+c},p=s(f,c),h=o.getTextRect(p),v=g(h,o.get("rotate")||0);l?l.union(v):l=v}return l;function g(y,m){var d=m*Math.PI/180,{width:x,height:S}=y,w=x*Math.abs(Math.cos(d))+Math.abs(S*Math.sin(d)),T=x*Math.abs(Math.sin(d))+Math.abs(S*Math.cos(d)),A=new Gt(y.x,y.y,w,T);return A}}var ynt=k(()=>{fr();Z();mP();k1();Qi()});var _nt=k(()=>{unt();tI();gnt();ynt();MP()});var xnt=k(()=>{On();QW();VJ();Oit();_nt();vW();he([MI]);he([bI]);he([UI,iP,uP,CP,RP,aR,vR,LR,jR,qR,JR,$R,gO,_O,SO,MO,LO,RO,OO,BO,VO,HO,hk]);he(wk);he(Lk);he(A0);he(Pk);he(B0);he(kk);he(Kk);he(Jk);he(cN);he(vN);he(el);he(SN);he(bN);he(CN);he(IN);he(RN);he(ON);he(WN);he($N);he(a_);he(l_);he(uz);he(c_);he(f_);he(cz);he(pz);he(dz);he(vz);he(Sz);he($y);he(Cz);he(Ez);he(EP)});function Fa(r){var e=60,t=62,i=45,n=47,a=33,o=39,s=34,l=63,u=`\r
104
+ >/= `,c=0;return sC=1,knt(function f(){for(var p=[];r[c];){if(r.charCodeAt(c)==e){if(r.charCodeAt(c+1)===n)return c=r.indexOf(">",c),p;if(r.charCodeAt(c+1)===a){if(r.charCodeAt(c+2)==i){for(;r.charCodeAt(c)!==t||r.charCodeAt(c-1)!=i||r.charCodeAt(c-2)!=i||c==-1;)c=r.indexOf(">",c+1);c===-1&&(c=r.length)}else for(c+=2;r.charCodeAt(c)!==t;c++);c++;continue}if(r.charCodeAt(c+1)===l){c=r.indexOf(">",c),c++;continue}for(var h=++c;u.indexOf(r[c])===-1;c++);for(var v=r.slice(h,c),g=!1,y={};r.charCodeAt(c)!==t;c++){var m=r.charCodeAt(c);if(m>64&&m<91||m>96&&m<123){for(h=c;u.indexOf(r[c])===-1;c++);for(var d=r.slice(h,c),x=r.charCodeAt(c);x!==o&&x!==s;)c++,x=r.charCodeAt(c);var S=r[c],w=++c;c=r.indexOf(S,w);var T=r.slice(w,c);g||(y={},g=!0),y[d]=T}}var A=[];r.charCodeAt(c-1)!==n&&(c++,A=f()),p.push({children:A,tagName:v,attrs:y})}else{var M=c;(c=r.indexOf("<",c)-1)===-2&&(c=r.length);var D=r.slice(M,c+1);D.length>0&&p.push(D)}c++}return p}())}function knt(r){var e={};if(r===void 0)return{};if(r.length===1&&typeof r[0]=="string")return r[0];for(var t in r.forEach(function(i){if(e[i.tagName]||(e[i.tagName]=[]),typeof i=="object"){var n=knt(i.children);typeof n=="object"&&(i.attrs&&(n.attrs=i.attrs),n.attrs===void 0?n.attrs={order:sC}:n.attrs.order=sC),sC++,e[i.tagName].push(n)}}),e)e[t].length==1&&(e[t]=e[t][0]);return e}function Ym(r){return Math.abs(r)>20000?"emu":"point"}function Tr(r){return r/12700}function nu(r){return r/20}function lC(r){return r/100}function fC(r){return r/60000}function Yf(r){return r/1e5}function Mz(r){var e=Math.ceil(r/26),t=(r%26||26)-1+65;return String.fromCharCode(t).repeat(e)}function di(r,e,t){var i={type:"solidFill"};if(r["a:srgbClr"])i.color="#"+r["a:srgbClr"].attrs.val;else if(r["a:schemeClr"]){var n=r["a:schemeClr"].attrs.val;t&&(n=t.getColorThemeName(n)),i.color=e.getColor(n)}else if(r["a:sysClr"])i.color="#"+r["a:sysClr"].attrs.lastClr;else if(r["a:prstClr"]){var a=J.get(r["a:prstClr"],["attrs","val"]);i.color=function(p){var h,v=["white","AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown","SeaGreen","SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue","Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"],g=["ffffff","f0f8ff","faebd7","00ffff","7fffd4","f0ffff","f5f5dc","ffe4c4","000000","ffebcd","0000ff","8a2be2","a52a2a","deb887","5f9ea0","7fff00","d2691e","ff7f50","6495ed","fff8dc","dc143c","00ffff","00008b","008b8b","b8860b","a9a9a9","a9a9a9","006400","bdb76b","8b008b","556b2f","ff8c00","9932cc","8b0000","e9967a","8fbc8f","483d8b","2f4f4f","2f4f4f","00ced1","9400d3","ff1493","00bfff","696969","696969","1e90ff","b22222","fffaf0","228b22","ff00ff","dcdcdc","f8f8ff","ffd700","daa520","808080","808080","008000","adff2f","f0fff0","ff69b4","cd5c5c","4b0082","fffff0","f0e68c","e6e6fa","fff0f5","7cfc00","fffacd","add8e6","f08080","e0ffff","fafad2","d3d3d3","d3d3d3","90ee90","ffb6c1","ffa07a","20b2aa","87cefa","778899","778899","b0c4de","ffffe0","00ff00","32cd32","faf0e6","ff00ff","800000","66cdaa","0000cd","ba55d3","9370db","3cb371","7b68ee","00fa9a","48d1cc","c71585","191970","f5fffa","ffe4e1","ffe4b5","ffdead","000080","fdf5e6","808000","6b8e23","ffa500","ff4500","da70d6","eee8aa","98fb98","afeeee","db7093","ffefd5","ffdab9","cd853f","ffc0cb","dda0dd","b0e0e6","800080","663399","ff0000","bc8f8f","4169e1","8b4513","fa8072","f4a460","2e8b57","fff5ee","a0522d","c0c0c0","87ceeb","6a5acd","708090","708090","fffafa","00ff7f","4682b4","d2b48c","008080","d8bfd8","ff6347","40e0d0","ee82ee","f5deb3","ffffff","f5f5f5","ffff00","9acd32"],y=v.indexOf(p);return y!=-1&&(h=g[y]),"#".concat(h||"000000")}(a)}var o=r["a:srgbClr"]||r["a:schemeClr"]||r["a:sysClr"],s=J.get(o,["a:alpha","attrs","val"],1e5);i.alpha=s/1e5;var l=J.get(o,["a:shade","attrs","val"]);l&&(i.shade=l/1e5);var u=J.get(o,["a:lumMod","attrs","val"]);u&&(i.lumMod=u/1e5);var c=J.get(o,["a:lumOff","attrs","val"]);c&&(i.lumOff=c/1e5);var f=J.get(o,["a:tint","attrs","val"]);return f&&(i.tint=f/1e5),i}function y_(r,e,t){var i,n={type:"blipFill"},a=J.get(r,["a:blip","attrs","r:embed"]);if(a){var o=(i=t.rels[a])===null||i===void 0?void 0:i.target;o&&(n.base64=e.getMedia(o))}var s=J.get(r,["a:blip","a:alphaModFix","attrs","amt"]);s&&(n.alpha=s/1e5);var l=J.get(r,["a:stretch","a:fillRect","attrs"]);return l&&(n.fillRect={},l.b&&(n.fillRect.b=l.b/1e5),l.t&&(n.fillRect.t=l.t/1e5),l.r&&(n.fillRect.r=l.r/1e5),l.l&&(n.fillRect.l=l.l/1e5)),n}function __(r,e,t){var i={type:"gradFill",tileRect:{},lin:{},gsList:[]};i.flip=r.attrs.flip,i.path=J.get(r,["a:path","attrs","path"])||"linear",i.rotWithShape=r.attrs.rotWithShape==="1",J.get(r,["a:lin","attrs","ang"])&&(i.lin.ang=fC(r["a:lin"].attrs.ang)),J.get(r,["a:lin","attrs","scaled"])&&(i.lin.scaled=r["a:lin"].attrs.scaled==="1");var n=J.get(r,["a:gsLst","a:gs"])||[];return i.gsList=n.map(function(a){return{color:di(a,e,t),pos:Yf(a.attrs.pos)}}),J.get(r,["a:tileRect","attrs","l"])&&(i.tileRect.l=Yf(r["a:tileRect"].attrs.l)),J.get(r,["a:tileRect","attrs","t"])&&(i.tileRect.t=Yf(r["a:tileRect"].attrs.t)),J.get(r,["a:tileRect","attrs","r"])&&(i.tileRect.r=Yf(r["a:tileRect"].attrs.r)),J.get(r,["a:tileRect","attrs","b"])&&(i.tileRect.b=Yf(r["a:tileRect"].attrs.b)),i}function Lz(r){return r<=0.04045?r/12.92:Math.pow((r+0.055)/1.055,2.4)}function Dz(r){return r<0.0031308?12.92*r:1.055*Math.pow(r,0.4166666666666667)-0.055}function Snt(r,e){var t=r[0],i=r[1],n=r[2],a=Lz(t/255)*e,o=Lz(i/255)*e,s=Lz(n/255)*e;return[Math.round(255*Dz(a)),Math.round(255*Dz(o)),Math.round(255*Dz(s))]}function Iz(r,e,t){var i=r/255,n=e/255,a=t/255,o=Math.max(i,n,a),s=Math.min(i,n,a),l=o-s,u=0,c=(o+s)/2;return l===0?u=0:o===i?u=(n-a)/l%6:o===n?u=(a-i)/l+2:o===a&&(u=(i-n)/l+4),(u=Math.round(60*u))<0&&(u+=360),{h:u,s:l===0||c===0||c===1?0:l/(1-Math.abs(2*c-1)),l:c}}function Pz(r,e,t){var i,n,a,o=(1-Math.abs(2*t-1))*e,s=o*(1-Math.abs(r/60%2-1)),l=t-o/2;return r<60?(i=o,n=s,a=0):r<120?(i=s,n=o,a=0):r<180?(i=0,n=o,a=s):r<240?(i=0,n=s,a=o):r<300?(i=s,n=0,a=o):(i=o,n=0,a=s),[i=Math.round(255*(i+l)),n=Math.round(255*(n+l)),a=Math.round(255*(a+l))]}function hr(r,e){if(!r||r.type==="none")return"";if(r.type==="solidFill"&&/^#[\da-fA-F]{3,6}$/.test(r.color)){var t=parseInt(r.color.substr(1,2),16),i=parseInt(r.color.substr(3,2),16),n=parseInt(r.color.substr(5,2),16);if(r.shade){var a=Snt([t,i,n],r.shade);t=a[0],i=a[1],n=a[2]}if(r.lumMod){var o=function(c,f,p,h){var v=Iz(c,f,p),g=v.h,y=v.l*h;return y>=1&&(y=1),Pz(g,v.s,y)}(t,i,n,r.lumMod);t=o[0],i=o[1],n=o[2]}if(r.lumOff)o=function(c,f,p,h){var v=Iz(c,f,p),g=v.h,y=h+v.l;return y>1&&(y=1),Pz(g,v.s,y)}(t,i,n,r.lumOff),t=o[0],i=o[1],n=o[2];if(r.tint||(e==null?void 0:e.light)){var s=function(c,f,p,h){var v=Iz(c,f,p),{h:g,l:y}=v;return h>=1&&(h=1),Pz(g,v.s,y*h+(1-h))}(t,i,n,r.tint||(e==null?void 0:e.light));t=s[0],i=s[1],n=s[2]}if(e==null?void 0:e.dark){var l=Snt([t,i,n],e==null?void 0:e.dark);t=l[0],i=l[1],n=l[2]}var u=r.alpha;return"rgba(".concat(t,",").concat(i,",").concat(n,",").concat(u,")")}}function Zm(r,e,t){var i={};if(!J.get(r,"a:noFill")){J.get(r,"attrs.w")&&(i.width=Tr(parseInt(J.get(r,"attrs.w"))));var n=J.get(r,"a:solidFill");n&&(i.color=di(n,e,t));var a=J.get(r,"a:prstDash");if(a&&(i.type=a.attrs.val),J.get(r,["a:miter"])&&(i.lineJoin="miter"),J.get(r,["a:bevel"])&&(i.lineJoin="bevel"),J.get(r,["a:round"])&&(i.lineJoin="round"),J.get(r,["a:miter","attrs","lim"])&&(i.miterLim=Tr(parseInt(J.get(r,["a:miter","attrs","lim"])))),J.get(r,["a:headEnd"])){var o=J.get(r,["a:headEnd","attrs"]);i.headEnd={type:o.type,len:o.len,w:o.w}}if(J.get(r,["a:tailEnd"])){var s=J.get(r,["a:tailEnd","attrs"]);i.tailEnd={type:s.type,len:s.len,w:s.w}}return i}}function bnt(r){var e={},t=J.get(r,"attrs")||{};return Object.keys(t).forEach(function(i){switch(i){case"algn":e.align=t[i];break;case"marL":e.marginLeft=Tr(parseInt(t[i]));break;case"indent":e.indent=Tr(parseInt(t[i]));break;case"lvl":e.level=t[i]}}),J.get(r,["a:lnSpc","a:spcPct","attrs","val"])&&(e.lineHeight=parseInt(r["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),e}function wnt(r,e,t){var i={},n=J.get(r,"attrs")||{};Object.keys(n).forEach(function(o){switch(o){case"sz":i.size=parseInt(n[o])/100;break;case"b":i.bold=n[o]==="1";break;case"i":i.italic=n[o]==="1";break;case"u":i.underline=n[o];break;case"strike":i.strike=n[o];break;case"order":case"dirty":break;default:i[o]=n[o]}});var a=J.get(r,"a:solidFill");return a&&(i.color=di(a,e,t)),i}function S_(r,e,t,i,n){return Mi(this,void 0,void 0,function(){var a,o,s,l,u,c,f,p,h,v,g,y,m,d,x,S,w,T,A,M,D;return Li(this,function(L){switch(L.label){case 0:for(s in o=[],a=e)o.push(s);l=0,L.label=1;case 1:if(!(l<o.length))return[3,17];if(!((s=o[l])in a))return[3,16];switch(u=s){case"p:sp":return[3,2];case"p:pic":return[3,3];case"p:cxnSp":return[3,4];case"p:graphicFrame":return[3,5];case"p:grpSp":return[3,14]}return[3,15];case 2:for(c=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<c.length;M++)m=c[M],r.push(new g_(m,t,i,n));return[3,16];case 3:for(f=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<f.length;M++)p=f[M],h=p["p:blipFill"]["a:blip"].attrs["r:embed"],v=i.rels[h].target,g=new uC(v,p,t,i,n),r.push(g);return[3,16];case 4:for(y=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<y.length;M++)m=y[M],r.push(new g_(m,t,i,n));return[3,16];case 5:d=Array.isArray(e[u])?e[u]:[e[u]],M=0,L.label=6;case 6:if(!(M<d.length))return[3,13];switch(x=d[M],S=J.get(x,["a:graphic","a:graphicData","attrs","uri"]),S){case"http://schemas.openxmlformats.org/drawingml/2006/table":return[3,7];case"http://schemas.openxmlformats.org/drawingml/2006/diagram":return[3,8];case"http://schemas.openxmlformats.org/drawingml/2006/chart":return[3,10]}return[3,12];case 7:return r.push(new Nnt(x,t,i,n)),[3,12];case 8:return[4,(w=new znt(x,t,i,n)).parseNode()];case 9:return L.sent(),r.push(w),[3,12];case 10:return[4,(T=new Bnt(x,t,i,n)).parseNode()];case 11:return L.sent(),r.push(T),[3,12];case 12:return M++,[3,6];case 13:return[3,16];case 14:for(A=Array.isArray(e[u])?e[u]:[e[u]],M=0;M<A.length;M++)D=A[M],r.push(new Nz(D,t,i,n));return[3,16];case 15:return[3,16];case 16:return l++,[3,1];case 17:return[2]}})})}function Oz(r){var{extend:e,offset:t,clip:i,base64:n,audioFile:a,videoFile:o}=r,s=document.createElement("div");s.style.setProperty("position","absolute"),s.style.setProperty("left",t.x+"px"),s.style.setProperty("top",t.y+"px");var l,u,c,f,p=document.createElement("div");p.style.setProperty("position","absolute"),p.style.setProperty("left","0"),p.style.setProperty("top","0"),p.style.setProperty("width",e.w+"px"),p.style.setProperty("height",e.h+"px"),p.style.setProperty("overflow","hidden"),i?(l=e.w/(1-(i.l===void 0?0:i.l)-(i.r===void 0?0:i.r)),u=e.h/(1-(i.t===void 0?0:i.t)-(i.b===void 0?0:i.b)),c=-1*l*(i.l===void 0?0:i.l),f=-1*u*(i.t===void 0?0:i.t)):(l=e.w,u=e.h,c=0);var h=document.createElement("img");if(h.src=n,h.width=l,h.height=u,h.style.setProperty("position","absolute"),h.style.setProperty("left",c+"px"),h.style.setProperty("top",f+"px"),p.append(h),s.append(p),a){var v=document.createElement("audio");v.style.position="absolute",v.style.left="0",v.style.top="0",v.src=a,v.controls=!0,v.style.transform="translate(-50%)",s.append(v)}if(o){var g=document.createElement("video");g.style.position="absolute",g.style.left="0",g.style.top="0",g.width=e.w,g.height=e.h,g.src=o,g.controls=!0,s.append(g)}return s}function iDt(r,e,t){var i,{props:n,text:a}=r,o=Jt(Jt({},e),n),s=document.createElement("span");s.innerHTML=typeof a=="string"?a:"";var l=18;o.size&&(((i=t==null?void 0:t.normAutofit)===null||i===void 0?void 0:i.fontScale)?(l=o.size*t.normAutofit.fontScale,s.style.fontSize=l+"px"):(l=o.size,s.style.fontSize=l+"px"));var u=hr(o.color);u&&(s.style.color=u);var c=/^[^\u4e00-\u9fff]+$/;if(o.typeface)switch(s.style.fontFamily=o.typeface,o.typeface){case"DengXian":c.test(a)&&(s.style.letterSpacing=-0.04*l+"px");break;case"DengXian Light":c.test(a)&&(s.style.letterSpacing=-0.05*l+"px");break;case"STLiti":case"SimSun":case"NSimSun":case"SimHei":c.test(a)&&(s.style.fontSize=0.85*parseInt(s.style.fontSize)+"px");break;case"华文中宋":case"Fira Sans Extra Condensed Medium":s.style.fontSize=0.85*parseInt(s.style.fontSize)+"px";break;case"FangSong":s.style.letterSpacing=-0.08*l+"px"}else c.test(a)&&(s.style.letterSpacing=-0.04*l+"px");return o.bold&&(s.style.fontWeight="bold"),o.italic&&(s.style.fontStyle="italic"),o.underline&&o.underline!=="none"&&(s.style.textDecoration="underline"),o.background&&(s.style.backgroundColor=hr(o.background)),s.style.wordBreak="break-word",s}function nDt(r,e,t){var i=document.createElement("span"),n=r.firstElementChild;switch(i.style.fontSize=n.style.fontSize,i.style.color=n.style.color,i.style.fontWeight=n.style.fontWeight,i.style.fontStyle=n.style.fontStyle,i.style.marginRight="10px",e.buAutoNum){case"arabicPeriod":default:i.textContent=t+".";break;case"circleNumDbPlain":i.textContent=["①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","⑪","⑫","⑬","⑭","⑮","⑯","⑰","⑱","⑲","⑳"][t-1]||t+"";break;case"romanUcPeriod":i.textContent=function(a){var o=[{value:1000,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];if(typeof a!="number"||a<1||a>3999)throw Error("Input must be a number between 1 and 3999.");for(var s="",l=0;l<o.length;l++)for(;a>=o[l].value;)s+=o[l].numeral,a-=o[l].value;return s}(t)+".";break;case"alphaUcPeriod":i.textContent=Mz(t)+".";break;case"alphaLcPeriod":i.textContent=Mz(t).toLowerCase()+".";break;case"alphaLcParenR":i.textContent=Mz(t).toLowerCase()+")";break;case"ea1JpnChsDbPeriod":i.textContent=function(a){var o=["〇","一","二","三","四","五","六","七","八","九"];if(!Number.isInteger(a)||a<0)return"";for(var s="",l=a.toString(),u=0;u<l.length;u++)s+=o[parseInt(l[u],10)];return s}(t)+"."}r.prepend(i)}function cC(r,e,t){var i,n,a,o;e===void 0&&(e=0),t===void 0&&(t={});var{inheritProps:s,inheritRProps:l,props:u,rows:c}=r,f=Jt(Jt({},s),u),p=function(){for(var T,A,M=0,D=0,L=c;D<L.length;D++){var I=L[D];I.props&&I.props.size&&(M=Math.max(M,I.props.size))}var E=((A=(T=t==null?void 0:t.bodyProps)===null||T===void 0?void 0:T.normAutofit)===null||A===void 0?void 0:A.fontScale)||1;return(M||l.size||18)*E},h=document.createElement("div"),v=t.isFirst?0:f.spaceBefore||0,g=t.isLast?0:f.spaceAfter||0;h.style.margin="".concat(Math.floor(0.2*p()),"px 0 0 0"),h.style.padding="".concat(Math.floor(v),"px 0px ").concat(Math.floor(g),"px 0px");var y=document.createElement("p");y.style.margin="0",y.style.padding="0px",y.style.wordBreak="break-word",y.style.textAlign=f.align&&{ctr:"center",l:"left",r:"right",dist:"justify"}[f.align]||"center",f.align==="dist"&&(y.style.textAlignLast="justify");var m=f.hasOwnProperty("lineHeight")?f.lineHeight:1;if(((n=(i=t.bodyProps)===null||i===void 0?void 0:i.normAutofit)===null||n===void 0?void 0:n.lnSpcReduction)&&(m*=1-((o=(a=t.bodyProps)===null||a===void 0?void 0:a.normAutofit)===null||o===void 0?void 0:o.lnSpcReduction)),y.style.lineHeight=m+"",y.style.fontSize=p()+"px",c.length){for(var d=0,x=c;d<x.length;d++){var S=x[d];S.isBr?y.appendChild(document.createElement("br")):y.appendChild(iDt(S,Jt(Jt({},l),{marginTop:Math.floor(0.2*p())}),t.bodyProps))}f.buAutoNum?nDt(y,f,e):f.buChar&&function(T,A){var M=document.createElement("span"),D=T.firstElementChild;M.style.color=D.style.color,M.style.fontSize=D.style.fontSize,M.textContent={n:"■",l:"●",u:"◆",p:"□","ü":"✔","Ø":"➢","•":"•"}[A.buChar]||"■",M.style.marginRight="10px",T.prepend(M)}(y,f),y.style.paddingLeft=(f.marginLeft||0)+(f.indent||0)+"px"}else{var w=document.createElement("span");w.innerHTML="&nbsp;",w.style.fontSize=l.size+"px",y.appendChild(w)}return h.appendChild(y),h}function zt(r){return document.createElementNS(Unt,r)}function uc(r){var e=r.extend;return 0.16667*Math.min(e.w,e.h)}function Ae(r,e,t){t===void 0&&(t=0);var i=e.prstGeom,n=((i==null?void 0:i.gd)||[]).find(function(a){return a.name===r});return n?n.fmla:t}function Ot(r,e,t){t===void 0&&(t=0);var{extend:i,prstGeom:n}=e,a=((n==null?void 0:n.gd)||[]).find(function(o){return o.name===r});return a?Math.min(i.w,i.h)*a.fmla:t}function Ant(r,e,t){t===void 0&&(t=0);var{extend:i,prstGeom:n}=e,a=((n==null?void 0:n.gd)||[]).find(function(o){return o.name===r});return a?Math.max(i.w,i.h)*a.fmla:t}function au(r,e){var t=0;switch(r){case"sm":t=1*e;break;case"med":t=1.5*e;break;case"lg":t=2.5*e}return Math.max(t,2)}function Cnt(r,e,t,i){i===void 0&&(i=!1);var n=r.border,a=n===void 0?{}:n,o=r.uuid,{headEnd:s,width:l,color:u,tailEnd:c}=a,f=i?s:c,p=f.len,h=p===void 0?"med":p,v=f.w,g=v===void 0?"med":v,y=au(h,l),m=au(g,l),d=zt("defs"),x=zt("marker"),S="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",S),x.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*m)),x.setAttribute("refX",y+"px"),x.setAttribute("refY",m+"px"),x.setAttribute("markerWidth",2*y+"px"),x.setAttribute("markerHeight",2*m+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var w=zt("ellipse");w.setAttribute("cx",y+"px"),w.setAttribute("cy",m+"px"),w.setAttribute("rx",y+"px"),w.setAttribute("ry",m+"px"),w.setAttribute("fill",hr(u)||"transparent"),x.appendChild(w),d.appendChild(x),e.appendChild(d),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(S,")"))}function Ent(r,e,t,i){i===void 0&&(i=!1);var n=r.border,a=n===void 0?{}:n,o=r.uuid,{headEnd:s,width:l,color:u,tailEnd:c}=a,f=i?s:c,p=f.len,h=p===void 0?"med":p,v=f.w,g=v===void 0?"med":v,y=au(h,l),m=au(g,l),d=zt("defs"),x=zt("marker"),S="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",S),x.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*m)),x.setAttribute("refX",(i?0.9*y:1.1*y)+"px"),x.setAttribute("refY",m+"px"),x.setAttribute("markerWidth",2*y+"px"),x.setAttribute("markerHeight",2*m+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var w=zt("path"),T=i?["M ".concat(2*y,",0"),"L 0,".concat(m),"L ".concat(2*y,",").concat(2*m),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(m),"L 0,".concat(2*m),"Z"].join(" ");w.setAttribute("d",T),w.setAttribute("fill",hr(u)||"transparent"),x.appendChild(w),d.appendChild(x),e.appendChild(d),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(S,")"))}function Mnt(r,e,t,i){i===void 0&&(i=!1);var n=r.border,a=n===void 0?{}:n,o=r.uuid,{headEnd:s,width:l,color:u,tailEnd:c}=a,f=i?s:c,p=f.len,h=p===void 0?"med":p,v=f.w,g=v===void 0?"med":v,y=au(h,l),m=au(g,l),d=zt("defs"),x=zt("marker"),S="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",S),x.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*m)),x.setAttribute("refX",y+"px"),x.setAttribute("refY",m+"px"),x.setAttribute("markerWidth",2*y+"px"),x.setAttribute("markerHeight",2*m+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var w=zt("path"),T=["M 0,".concat(m),"L ".concat(y,",0"),"L ".concat(2*y,",").concat(m),"L ".concat(y,",").concat(2*m),"Z"].join(" ");w.setAttribute("d",T),w.setAttribute("fill",hr(u)||"transparent"),x.appendChild(w),d.appendChild(x),e.appendChild(d),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(S,")"))}function Lnt(r,e,t,i){i===void 0&&(i=!1);var n=r.border,a=n===void 0?{}:n,o=r.uuid,{headEnd:s,width:l,color:u,tailEnd:c}=a,f=i?s:c,p=f.len,h=p===void 0?"med":p,v=f.w,g=v===void 0?"med":v,y=au(h,l),m=au(g,l),d=zt("defs"),x=zt("marker"),S="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",S),x.setAttribute("viewBox","0 0 ".concat(2*y+2*l," ").concat(2*m+2*l));var w=i?g==="lg"?2*l:3*l:g==="lg"?2*y:2*y-l;x.setAttribute("refX",w+"px"),x.setAttribute("refY",m+l+"px"),x.setAttribute("markerWidth",2*y+"px"),x.setAttribute("markerHeight",2*m+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var T=zt("path"),A=i?["M ".concat(2*y+l,", ").concat(l),"L ".concat(l,",").concat(m+l),"L ".concat(2*y+l,",").concat(2*m+l)].join(" "):["M ".concat(l,", ").concat(l),"L ".concat(2*y+l,",").concat(m+l),"L ".concat(l,",").concat(2*m+l)].join(" ");T.setAttribute("d",A),T.setAttribute("stroke-width",l+"px"),T.setAttribute("stroke",hr(u)||"transparent"),T.setAttribute("fill","transparent"),T.setAttribute("stroke-linecap","round"),T.setAttribute("stroke-linejoin","miter"),T.style.overflow="visible",x.appendChild(T),d.appendChild(x),e.appendChild(d),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(S,")"))}function Dnt(r,e,t,i){i===void 0&&(i=!1);var n=r.border,a=n===void 0?{}:n,o=r.uuid,{headEnd:s,width:l,color:u,tailEnd:c}=a,f=i?s:c,p=f.len,h=p===void 0?"med":p,v=f.w,g=v===void 0?"med":v,y=au(h,l),m=au(g,l),d=zt("defs"),x=zt("marker"),S="marker-".concat(o,"-").concat(i?"start":"end");x.setAttribute("id",S),x.setAttribute("viewBox","0 0 ".concat(2*y," ").concat(2*m));var w=i?g==="sm"?1.5*l:2*l:g==="sm"?2*y-1.5*l:2*y-2*l;x.setAttribute("refX",w+"px"),x.setAttribute("refY",m+"px"),x.setAttribute("markerWidth",2*y+"px"),x.setAttribute("markerHeight",2*m+"px"),x.setAttribute("orient","auto"),x.setAttribute("markerUnits","userSpaceOnUse");var T=zt("path"),A=i?["M 0, ".concat(m),"L ".concat(2*y,",0"),"L ".concat(y,",").concat(m),"L ".concat(2*y,",").concat(2*m),"Z"].join(" "):["M 0,0","L ".concat(2*y,",").concat(m),"L 0,".concat(2*m),"L ".concat(y,",").concat(m),"Z"].join(" ");T.setAttribute("d",A),T.setAttribute("fill",hr(u)||"transparent"),T.style.overflow="visible",x.appendChild(T),d.appendChild(x),e.appendChild(d),t.setAttribute(i?"marker-start":"marker-end","url(#".concat(S,")"))}function d_(r,e,t){var i=r.border,n=i===void 0?{}:i;r.extend;var{headEnd:a,tailEnd:o}=n;if(a&&a.type!=="none")switch(a.type){case"triangle":Ent(r,e,t,!0);break;case"oval":Cnt(r,e,t,!0);break;case"diamond":Mnt(r,e,t,!0);break;case"arrow":Lnt(r,e,t,!0);break;case"stealth":Dnt(r,e,t,!0)}if(o&&o.type!=="none")switch(o.type){case"triangle":Ent(r,e,t,!1);break;case"oval":Cnt(r,e,t,!1);break;case"diamond":Mnt(r,e,t,!1);break;case"arrow":Lnt(r,e,t,!1);break;case"stealth":Dnt(r,e,t,!1)}}function Int(r){var e=r.extend,t=zt("rect");return t.setAttribute("x","0"),t.setAttribute("y","0"),t.setAttribute("width",e.w+"px"),t.setAttribute("height",e.h+"px"),t}function Un(r,e,t,i,n){var a=r*Math.PI/180;return[a===0||a===2*Math.PI?e+i:a===Math.PI?e-i:a===Math.PI/2||a===3*Math.PI/2?e:a>0&&a<Math.PI/2||a>3*Math.PI/2&&a<2*Math.PI?e+Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(Math.tan(a),2)/Math.pow(n,2))):e-Math.sqrt(1/(1/Math.pow(i,2)+Math.pow(Math.tan(a),2)/Math.pow(n,2))),a===0||a===2*Math.PI||a===Math.PI?t:a===Math.PI/2?t+n:a===3*Math.PI/2?t-n:a>Math.PI&&a<2*Math.PI?t-Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(1/Math.tan(a),2)/Math.pow(i,2))):t+Math.sqrt(1/(1/Math.pow(n,2)+Math.pow(1/Math.tan(a),2)/Math.pow(i,2)))]}function v_(r,e){var t=0;return(e>r&&e-r>180||e<r&&r-e<180)&&(t=1),t}function m_(r){var e=r.extend,t=0.146*e.w,i=0.146*e.h;return{top:i,bottom:i,left:t,right:t,w:e.w-2*t,h:e.h-2*i}}function kz(r){var{extend:e,offset:t,border:i,background:n,rotate:a,flipH:o,flipV:s}=r,l=document.createElement("div"),{x:u,y:c}=t;l.className="shape-wrapper shape-".concat(r.shape),l.style.setProperty("position","absolute"),l.style.setProperty("width",(e.w||1)+"px"),l.style.setProperty("height",(e.h||1)+"px"),l.style.setProperty("left",u+"px"),l.style.setProperty("top",c+"px");var f,p=document.createElementNS(Unt,"svg");p.style.setProperty("position","absolute"),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.style.setProperty("left","0"),p.style.setProperty("top","0"),p.style.overflow="visible";var h={left:0,top:0,bottom:0,w:e.w,h:e.h},v=!0;switch(r.shape){case"customGeom":f=function(m){var d=m.prstGeom,x=d===void 0?{}:d,S=m.extend,{pathList:w,w:T,h:A}=x,M=zt("path"),D={moveTo:"M",lnTo:"L",cubicBezTo:"C",close:"Z"},L=S.w/T,I=S.h/A,E=w.map(function(R){var B=D[R.type],z=Array.isArray(R.points)?R.points.map(function(V){return"".concat(V[0]*L,",").concat(V[1]*I)}).join(" "):"";return z?"".concat(B," ").concat(z):"".concat(B)}).join(" ");return M.setAttribute("d",E),M.style.fillRule="evenodd",M}(r),d_(r,p,f);break;case"flowChartProcess":case"rect":f=Int(r);break;case"snip1Rect":f=function(m){var d=m.extend,x=zt("polygon"),S=Ot("adj",m,uc(m)),w=["0,0","".concat(d.w-S,",0"),"".concat(d.w,",").concat(S),"".concat(d.w,",").concat(d.h),"0,".concat(d.h)].join(" ");return x.setAttribute("points",w),x}(r);break;case"snip2SameRect":f=function(m){var d=m.extend,x=zt("polygon"),S=Ot("adj1",m,uc(m)),w=Ot("adj2",m,0),T=[[S,0],[d.w-S,0],[d.w,S],[d.w,d.h-w],[d.w-w,d.h],[w,d.h],[0,d.h-w],[0,S]].map(function(A){return"".concat(A[0],",").concat(A[1])}).join(" ");return x.setAttribute("points",T),x}(r);break;case"snip2DiagRect":f=function(m){var d=m.extend,x=zt("polygon"),S=Ot("adj1",m,0),w=Ot("adj2",m,uc(m)),T=[[S,0],[d.w-w,0],[d.w,w],[d.w,d.h-S],[d.w-S,d.h],[w,d.h],[0,d.h-w],[0,S]].map(function(A){return"".concat(A[0],",").concat(A[1])}).join(" ");return x.setAttribute("points",T),x}(r);break;case"snipRoundRect":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj1",m,uc(m)),w=Ot("adj2",m,uc(m)),T=["M ".concat(S,",0"),"L ".concat(d.w-w,",0"),"L ".concat(d.w,",").concat(w),"L ".concat(d.w,",").concat(d.h),"L 0,".concat(d.h),"L 0,".concat(S),"Q 0,0 ".concat(S,",0"),"Z"].join(" ");return x.setAttribute("d",T),x}(r);break;case"roundRect":f=function(m){var d=Int(m),x=Ot("adj",m,uc(m));return d.setAttribute("rx",x+"px"),d.setAttribute("ry",x+"px"),d}(r);break;case"round1Rect":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,uc(m)),w=["M 0,0","L ".concat(d.w-S,",0"),"Q ".concat(d.w,",0 ").concat(d.w,",").concat(S),"L ".concat(d.w,",").concat(d.h),"L 0,".concat(d.h),"Z"].join(" ");return x.setAttribute("d",w),x}(r);break;case"round2SameRect":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj1",m,uc(m)),w=Ot("adj2",m,0),T=["M ".concat(S,",0"),"L ".concat(d.w-S,",0"),"Q ".concat(d.w,",0 ").concat(d.w,",").concat(S),"L ".concat(d.w,",").concat(d.h-w),"Q ".concat(d.w,",").concat(d.h," ").concat(d.w-w,",").concat(d.h),"L ".concat(w,",").concat(d.h),"Q 0,".concat(d.h," 0,").concat(d.h-w),"L 0,".concat(S),"Q 0,0 ".concat(S,",0"),"Z"].join(" ");return x.setAttribute("d",T),x}(r);break;case"round2DiagRect":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj1",m,uc(m)),w=Ot("adj2",m,0),T=["M ".concat(S,",0"),"L ".concat(d.w-w,",0"),"Q ".concat(d.w,",0 ").concat(d.w,",").concat(w),"L ".concat(d.w,",").concat(d.h-S),"Q ".concat(d.w,",").concat(d.h," ").concat(d.w-S,",").concat(d.h),"L ".concat(w,",").concat(d.h),"Q 0,".concat(d.h," 0,").concat(d.h-w),"L 0,".concat(S),"Q 0,0 ".concat(S,",0"),"Z"].join(" ");return x.setAttribute("d",T),x}(r);break;case"triangle":f=function(m){var d=m.extend,x=zt("polygon"),S=["".concat(d.w/2,",0"),"0,".concat(d.h),"".concat(d.w,",").concat(d.h)].join(" ");return x.setAttribute("points",S),x}(r);break;case"rtTriangle":f=function(m){var d=m.extend,x=zt("polygon"),S=["0,".concat(d.h),"0,0","".concat(d.w,",").concat(d.h)].join(" ");return x.setAttribute("points",S),x}(r);break;case"ellipse":f=function(m){var d=m.extend,x=zt("ellipse"),S=d.w/2,w=d.h/2,T=S,A=w;return x.setAttribute("cx",S+"px"),x.setAttribute("cy",w+"px"),x.setAttribute("rx",T+"px"),x.setAttribute("ry",A+"px"),x}(r);break;case"line":f=function(m){var d=m.extend,x=zt("path"),S=["M 0,0","L ".concat(d.w,",").concat(d.h)].join(" ");return x.setAttribute("d",S),x}(r),d_(r,p,f),v=!1;break;case"straightConnector1":f=function(m){var d=m.extend,x=zt("path"),S=["M 0,0","L ".concat(d.w,",").concat(d.h)].join(" ");return x.setAttribute("d",S),x}(r),d_(r,p,f),v=!1;break;case"bentConnector3":f=function(m){var d=m.extend,x=zt("path"),S=Ant("adj1",m,0.5*Math.max(d.w,d.h)),w=["M 0,0","L ".concat(S,",0"),"L ".concat(S,",").concat(d.h),"L ".concat(d.w,",").concat(d.h)].join(" ");return x.setAttribute("d",w),x}(r),d_(r,p,f),v=!1;break;case"curvedConnector3":f=function(m){var d=m.extend,x=zt("path"),S=Ant("adj1",m,0.5*Math.max(d.w,d.h)),w=["M0,0","Q".concat(S,",0 ").concat(S,",").concat(d.h/2),"T".concat(d.w,",").concat(d.h)].join(" ");return x.setAttribute("d",w),x}(r),d_(r,p,f),v=!1;break;case"parallelogram":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.5*Math.min(d.w,d.h)),w=["M".concat(S,",0"),"L".concat(d.w,",0"),"L".concat(d.w-S,",").concat(d.h),"L0,".concat(d.h),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.5*Math.min(d.w,d.h)),S=0.84*(d.w-x),w=0.08*d.h+x/d.w*d.h*0.42;return{top:w,bottom:w,left:(d.w-S)/2,right:(d.w-S)/2,w:S,h:d.h-2*w}}(r);break;case"trapezoid":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.25*Math.min(d.w,d.h)),w=["M".concat(S,",0"),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(d.h),"L0,".concat(d.h),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.5*Math.min(d.w,d.h)),S=x/d.w*0.66*d.h,w=0.66*x;return{top:S,bottom:0,left:w,right:w,w:d.w-2*w,h:d.h-S}}(r);break;case"diamond":f=function(m){var d=m.extend,x=zt("path"),S=["M".concat(d.w/2,",0"),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w/2,",").concat(d.h),"L0,".concat(d.h/2),"Z"].join(" ");return x.setAttribute("d",S),x}(r),h=function(m){var d=m.extend,x=0.25*d.h,S=0.25*d.w;return{top:x,bottom:x,left:S,right:S,w:0.5*d.w,h:0.5*d.h}}(r);break;case"pentagon":f=function(m){var d=m.extend,x=zt("path"),S=["M".concat(d.w/2,",0"),"L".concat(d.w,",").concat(0.3771*d.h),"L".concat(0.808*d.w,",").concat(d.h),"L".concat(0.192*d.w,",").concat(d.h),"L0,".concat(0.3771*d.h),"Z"].join(" ");return x.setAttribute("d",S),x}(r),h=function(m){var d=m.extend,x=0.227*d.h,S=0.192*d.w;return{top:x,bottom:0,left:S,right:S,w:0.616*d.w,h:0.773*d.h}}(r);break;case"hexagon":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.25*Math.min(d.w,d.h)),w=["M".concat(S,",0"),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-S,",").concat(d.h),"L".concat(S,",").concat(d.h),"L0,".concat(d.h/2),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.25*Math.min(d.w,d.h)),S=0.098*d.h+x/d.w*0.38*d.h,w=0.088*d.w+0.422*x;return{top:S,bottom:S,left:w,right:w,w:d.w-2*w,h:d.h-2*S}}(r);break;case"heptagon":f=function(m){var d=m.extend,x=zt("path"),S=["M".concat(d.w/2,",0"),"L".concat(0.9*d.w,",").concat(0.2*d.h),"L".concat(d.w,",").concat(0.642*d.h),"L".concat(0.722*d.w,",").concat(d.h),"L".concat(0.278*d.w,",").concat(d.h),"L0,".concat(0.642*d.h),"L".concat(0.1*d.w,",").concat(0.2*d.h),"Z"].join(" ");return x.setAttribute("d",S),x}(r),h=function(m){var d=m.extend;return{top:0.2*d.h,bottom:0.2*d.h,left:0.1*d.w,right:0.1*d.w,w:0.8*d.w,h:0.6*d.h}}(r);break;case"octagon":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.29*Math.min(d.w,d.h)),w=["M".concat(S,",0"),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(S),"L".concat(d.w,",").concat(d.h-S),"L".concat(d.w-S,",").concat(d.h),"L".concat(S,",").concat(d.h),"L0,".concat(d.h-S),"L0,".concat(S),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.29*Math.min(d.w,d.h));return{top:0.5*x,bottom:0.5*x,left:0.5*x,right:0.5*x,w:d.w-x,h:d.h-x}}(r);break;case"decagon":f=function(m){var d=m.extend,x=zt("path"),S=0.344,w=0.117,T=0.19,A=["M".concat(d.w*S,",0"),"L".concat(0.656*d.w,",0"),"L".concat(0.883*d.w,",").concat(d.h*T),"L".concat(d.w,",").concat(0.5*d.h),"L".concat(0.883*d.w,",").concat(0.81*d.h),"L".concat(0.656*d.w,",").concat(d.h),"L".concat(d.w*S,",").concat(d.h),"L".concat(d.w*w,",").concat(0.81*d.h),"L0,".concat(0.5*d.h),"L".concat(d.w*w,",").concat(d.h*T),"Z"].join(" ");return x.setAttribute("d",A),x}(r),h=function(m){var d=m.extend,x=0.117,S=0.19;return{top:d.h*S,bottom:d.h*S,left:d.w*x,right:d.w*x,w:0.766*d.w,h:0.62*d.h}}(r);break;case"dodecagon":f=function(m){var d=m.extend,x=zt("path"),S=0.364,w=0.133,T=0.135,A=["M".concat(d.w*S,",0"),"L".concat(0.636*d.w,",0"),"L".concat(0.867*d.w,",").concat(d.h*T),"L".concat(d.w,",").concat(d.h*S),"L".concat(d.w,",").concat(0.636*d.h),"L".concat(0.867*d.w,",").concat(0.865*d.h),"L".concat(0.636*d.w,",").concat(d.h),"L".concat(d.w*S,",").concat(d.h),"L".concat(d.w*w,",").concat(0.865*d.h),"L0,".concat(0.636*d.h),"L0,".concat(d.h*S),"L".concat(d.w*w,",").concat(d.h*T),"Z"].join(" ");return x.setAttribute("d",A),x}(r),h=function(m){var d=m.extend,x=0.133,S=0.135;return{top:d.h*S,bottom:d.h*S,left:d.w*x,right:d.w*x,w:0.734*d.w,h:0.73*d.h}}(r);break;case"pie":f=function(m){var d=m.extend,x=zt("path"),S=Ae("adj1",m,360),w=Ae("adj2",m,270),T=d.w/2,A=d.h/2,M=d.w/2,D=d.h/2,L=Un(S,M,D,T,A),I=L[0],E=L[1],R=Un(w,M,D,T,A),B=R[0],z=R[1],V=v_(S,w),H="M".concat(M,",").concat(D,", L").concat(I," ").concat(E," A ").concat(T," ").concat(A," 0 ").concat(V," ").concat(1," ").concat(B," ").concat(z," Z");return x.setAttribute("d",H),x}(r),h=m_(r);break;case"arc":f=function(m){var d=m.extend,x=zt("path"),S=Ae("adj1",m,270),w=Ae("adj2",m,0),T=d.w/2,A=d.h/2,M=d.w/2,D=d.h/2,L=Un(S,M,D,T,A),I=L[0],E=L[1],R=Un(w,M,D,T,A),B=R[0],z=R[1],V=v_(S,w),H="M".concat(I,",").concat(E," A ").concat(T," ").concat(A," 0 ").concat(V," ").concat(1," ").concat(B," ").concat(z);return x.setAttribute("d",H),x}(r),v=!1;break;case"bracketPair":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.16667*Math.min(d.w,d.h)),w=["M".concat(S,",").concat(d.h),"Q".concat(0,",").concat(d.h," ").concat(0,",").concat(d.h-S),"L".concat(0,",").concat(S),"Q".concat(0,",").concat(0," ").concat(S,",").concat(0),"M".concat(d.w-S,",").concat(0),"Q".concat(d.w,",").concat(0," ").concat(d.w,",").concat(S),"L".concat(d.w,",").concat(d.h-S),"Q".concat(d.w,",").concat(d.h," ").concat(d.w-S,",").concat(d.h)].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=0.285*Ot("adj",m,0.16667*Math.min(d.w,d.h));return{top:x,bottom:x,left:x,right:x,w:d.w-2*x,h:d.h-2*x}}(r),v=!1;break;case"bracePair":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.083335*Math.min(d.w,d.h)),w=["M".concat(2*S,",").concat(d.h),"Q".concat(S,",").concat(d.h," ").concat(S,",").concat(d.h-S),"L".concat(S,",").concat(d.h/2+S),"Q".concat(S,",").concat(d.h/2," ").concat(0,",").concat(d.h/2),"Q".concat(S,",").concat(d.h/2," ").concat(S,",").concat(d.h/2-S),"L".concat(S,",").concat(S),"Q".concat(S,",").concat(0," ").concat(2*S,",").concat(0),"M".concat(d.w-2*S,",").concat(0),"Q".concat(d.w-S,",").concat(0," ").concat(d.w-S,",").concat(S),"L".concat(d.w-S,",").concat(d.h/2-S),"Q".concat(d.w-S,",").concat(d.h/2," ").concat(d.w,",").concat(d.h/2),"Q".concat(d.w-S,",").concat(d.h/2," ").concat(d.w-S,",").concat(d.h/2+S),"L".concat(d.w-S,",").concat(d.h-S),"Q".concat(d.w-S,",").concat(d.h," ").concat(d.w-2*S,",").concat(d.h)].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=0.285*Ot("adj",m,0.16667*Math.min(d.w,d.h));return{top:x,bottom:x,left:x,right:x,w:d.w-2*x,h:d.h-2*x}}(r),v=!1;break;case"chord":f=function(m){var d=m.extend,x=zt("path"),S=Ae("adj1",m,45),w=Ae("adj2",m,270),T=d.w/2,A=d.h/2,M=d.w/2,D=d.h/2,L=Un(S,M,D,T,A),I=L[0],E=L[1],R=Un(w,M,D,T,A),B=R[0],z=R[1],V=v_(S,w),H="M".concat(I," ").concat(E," A ").concat(T," ").concat(A," 0 ").concat(V," ").concat(1," ").concat(B," ").concat(z," Z");return x.setAttribute("d",H),x}(r),h=m_(r);break;case"teardrop":f=function(m){var d=m.extend,x=zt("path"),S=Ae("adj",m,1),w=d.w/2,T=d.h/2,A=d.w/2,M=d.h/2,D=Un(0,A,M,w,T),L=D[0],I=D[1],E=Un(270,A,M,w,T),R=E[0],B=E[1],z=v_(0,270),V="M".concat(L," ").concat(I," A ").concat(w," ").concat(T," 0 ").concat(z," ").concat(1," ").concat(R," ").concat(B),H=w*S,K=A+H,F=M-T*H/(d.w/2),G=(d.w/2+K)/2,rt=(d.h/2+F)/2;return V+=" Q".concat(G,",0 ").concat(K,",").concat(F),V+=" Q".concat(d.w,",").concat(rt," ").concat(A+w,",").concat(M),x.setAttribute("d",V),x}(r),h=m_(r);break;case"frame":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj1",m,0.12*Math.min(d.w,d.h)),w=["M0,0","L".concat(d.w,",0"),"L".concat(d.w,",").concat(d.h),"L0,".concat(d.h),"Z","M".concat(S,",").concat(S),"L".concat(S,",").concat(d.h-S),"L".concat(d.w-S,",").concat(d.h-S),"L".concat(d.w-S,",").concat(S),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.12*Math.min(d.w,d.h));return{top:x,bottom:x,left:x,right:x,w:d.w-2*x,h:d.h-2*x}}(r);break;case"halfFrame":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj1",m,0.333*Math.min(d.w,d.h)),w=Math.min(Ot("adj2",m,0.333*Math.min(d.w,d.h)),d.w*(1-S/d.h)),T=["M0,0","L".concat(d.w,",0"),"L".concat(d.w*(1-S/d.h),",").concat(S),"L".concat(w,",").concat(S),"L".concat(w,",").concat(d.h*(1-w/d.w)),"L0,".concat(d.h),"Z"].join(" ");return x.setAttribute("d",T),x}(r);break;case"corner":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj1",m,0.5*Math.min(d.w,d.h)),w=Ot("adj2",m,0.5*Math.min(d.w,d.h)),T=["M0,0","L".concat(w,",0"),"L".concat(w,",").concat(d.h-S),"L".concat(d.w,",").concat(d.h-S),"L".concat(d.w,",").concat(d.h),"L0,".concat(d.h),"Z"].join(" ");return x.setAttribute("d",T),x}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h));return{top:d.h-x,bottom:0,left:0,right:0,w:d.w,h:x}}(r);break;case"diagStripe":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.5*Math.min(d.w,d.h)),w=d.w*S/d.h,T=["M".concat(w,",0"),"L".concat(d.w,",0"),"L0,".concat(d.h),"L0,".concat(S),"Z"].join(" ");return x.setAttribute("d",T),x}(r),h=function(m){var d=m.extend,x=Ae("adj",m,0.5),S=0.5*(1-x)*d.h,w=0.5*(1-x)*d.w;return{top:0,bottom:S,left:0,right:w,w:d.w-w,h:d.h-S}}(r);break;case"plus":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.25*Math.min(d.w,d.h)),w=["M".concat(S,",0"),"L".concat(d.w-S,",0"),"L".concat(d.w-S,",").concat(S),"L".concat(d.w,",").concat(S),"L".concat(d.w,",").concat(d.h-S),"L".concat(d.w-S,",").concat(d.h-S),"L".concat(d.w-S,",").concat(d.h),"L".concat(S,",").concat(d.h),"L".concat(S,",").concat(d.h-S),"L0,".concat(d.h-S),"L0,".concat(S),"L".concat(S,",").concat(S),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.25*Math.min(d.w,d.h));return{top:x,bottom:x,left:0,right:0,w:d.w,h:d.h-2*x}}(r);break;case"plaque":f=function(m){var d=m.extend,x=zt("path"),S=Ot("adj",m,0.16667*Math.min(d.w,d.h)),w=["M".concat(S,",0"),"L".concat(d.w-S,",0"),"Q".concat(d.w-S,",").concat(S," ").concat(d.w,",").concat(S),"L".concat(d.w,",").concat(d.h-S),"Q".concat(d.w-S,",").concat(d.h-S," ").concat(d.w-S,",").concat(d.h),"L".concat(S,",").concat(d.h),"Q".concat(S,",").concat(d.h-S," 0,").concat(d.h-S),"L0,".concat(S),"Q".concat(S,",").concat(S," ").concat(S,",0"),"Z"].join(" ");return x.setAttribute("d",w),x}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.16667*Math.min(d.w,d.h));return{top:0.72*x,bottom:0.72*x,left:0.72*x,right:0.72*x,w:d.w-1.44*x,h:d.w-1.44*x}}(r);break;case"can":f=function(m){var{extend:d,background:x}=m,S=zt("g"),w=zt("path"),T=Ot("adj",m,0.25*Math.min(d.w,d.h)),A=["M0,".concat(T/2),"L0,".concat(d.h-T/2),"A".concat(d.w/2,",").concat(T/2," 0 0 0 ").concat(d.w,",").concat(d.h-T/2),"L".concat(d.w,",").concat(T/2),"A".concat(d.w/2,",").concat(T/2," 0 0 1 0,").concat(T/2),"Z"].join(" ");w.setAttribute("d",A);var M=zt("ellipse"),D=d.w/2,L=T/2,I=d.w/2,E=T/2;return M.setAttribute("cx",D+"px"),M.setAttribute("cy",L+"px"),M.setAttribute("rx",I+"px"),M.setAttribute("ry",E+"px"),(x==null?void 0:x.type)==="solidFill"&&M.setAttribute("fill",hr(x,{light:0.5})||"transparent"),S.appendChild(w),S.appendChild(M),S}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.25*Math.min(d.w,d.h));return{top:x,bottom:0,left:0,right:0,w:d.w,h:d.h-x}}(r);break;case"cube":f=function(m){var{extend:d,background:x}=m,S=Ot("adj",m,0.25*Math.min(d.w,d.h)),w=zt("g"),T=zt("path"),A=["M0,".concat(S),"L".concat(d.w-S,",").concat(S),"L".concat(d.w-S,",").concat(d.h),"L0,".concat(d.h),"Z"].join(" ");T.setAttribute("d",A);var M=zt("path"),D=["M0,".concat(S),"L".concat(S,",0"),"L".concat(d.w,",0"),"L".concat(d.w-S,",").concat(S),"Z"].join(" ");M.setAttribute("d",D),(x==null?void 0:x.type)==="solidFill"&&M.setAttribute("fill",hr(x,{light:0.8})||"transparent");var L=zt("path"),I=["M".concat(d.w,",0"),"L".concat(d.w-S,",").concat(S),"L".concat(d.w-S,",").concat(d.h),"L".concat(d.w,",").concat(d.h-S),"Z"].join(" ");return L.setAttribute("d",I),(x==null?void 0:x.type)==="solidFill"&&L.setAttribute("fill",hr(x,{dark:0.6})||"transparent"),w.appendChild(T),w.appendChild(M),w.appendChild(L),w}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.25*Math.min(d.w,d.h));return{top:x,bottom:0,left:0,right:x,w:d.w-x,h:d.h-x}}(r);break;case"bevel":f=function(m){var{extend:d,background:x}=m,S=Ot("adj",m,0.125*Math.min(d.w,d.h)),w=zt("g"),T=zt("path"),A=["M".concat(S,",").concat(S),"L".concat(d.w-S,",").concat(S),"L".concat(d.w-S,",").concat(d.h-S),"L".concat(S,",").concat(d.h-S),"Z"].join(" ");T.setAttribute("d",A);var M=zt("path"),D=["M0,0","L".concat(S,",").concat(S),"L".concat(d.w-S,",").concat(S),"L".concat(d.w,",0"),"Z"].join(" ");M.setAttribute("d",D),(x==null?void 0:x.type)==="solidFill"&&M.setAttribute("fill",hr(x,{light:0.8})||"transparent");var L=zt("path"),I=["M".concat(d.w,",0"),"L".concat(d.w-S,",").concat(S),"L".concat(d.w-S,",").concat(d.h-S),"L".concat(d.w,",").concat(d.h),"Z"].join(" ");L.setAttribute("d",I),(x==null?void 0:x.type)==="solidFill"&&L.setAttribute("fill",hr(x,{dark:0.6})||"transparent");var E=zt("path"),R=["M".concat(d.w,",").concat(d.h),"L".concat(d.w-S,",").concat(d.h-S),"L".concat(S,",").concat(d.h-S),"L0,".concat(d.h),"Z"].join(" ");E.setAttribute("d",R),(x==null?void 0:x.type)==="solidFill"&&E.setAttribute("fill",hr(x,{dark:0.625})||"transparent");var B=zt("path"),z=["M0,".concat(d.h),"L".concat(S,",").concat(d.h-S),"L".concat(S,",").concat(S),"L0,0","Z"].join(" ");return B.setAttribute("d",z),(x==null?void 0:x.type)==="solidFill"&&B.setAttribute("fill",hr(x,{light:0.6})||"transparent"),w.appendChild(T),w.appendChild(M),w.appendChild(L),w.appendChild(E),w.appendChild(B),w}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.125*Math.min(d.w,d.h));return{top:x,bottom:x,left:x,right:x,w:d.w-2*x,h:d.h-2*x}}(r);break;case"donut":f=function(m){var d=m.extend,x=Ot("adj",m,0.25*Math.min(d.w,d.h)),S=zt("path"),w=["M0,".concat(d.h/2),"A".concat(d.w/2,",").concat(d.h/2," 0 1,1 0,").concat(d.h/2+1),"Z","M".concat(d.w-x,",").concat(d.h/2),"A".concat(d.w/2-x,",").concat(d.h/2-x," 0 1,0 ").concat(d.w-x,",").concat(d.h/2+1),"Z"].join(" ");return S.setAttribute("d",w),S}(r),h=m_(r);break;case"noSmoking":f=function(m){var d=m.extend,x=Ot("adj",m,0.25*Math.min(d.w,d.h)),S=zt("path"),w=Math.atan(d.h/d.w),T=x/2/Math.sin(w),A=d.w/2,M=d.h/2,D=-1*d.h/d.w,L=d.h*T/d.w,I=d.w/2-x,E=d.h/2-x,R=-2*I*I*D*L,B=Math.sqrt(Math.pow(2*I*I*D*L,2)-4*(E*E+I*I*D*D)*I*I*(L*L-E*E)),z=2*(E*E+I*I*D*D),V=(R-B)/z,H=D*V+L,K=(R+B)/z,F=D*K+L,G=-d.h*T/d.w,rt=-2*I*I*D*G,ot=Math.sqrt(Math.pow(2*I*I*D*G,2)-4*(E*E+I*I*D*D)*I*I*(G*G-E*E)),at=2*(E*E+I*I*D*D),mt=(rt-ot)/at,Tt=D*mt+G,Ut=(rt+ot)/at,qt=D*Ut+G,Zt=["M0,".concat(d.h/2),"A".concat(d.w/2,",").concat(d.h/2," 0 1,1 0,").concat(d.h/2+1),"Z","M".concat(A+K,",").concat(M-F),"A".concat(I,",").concat(E," 0 0 0 ").concat(A+V,",").concat(M-H),"Z","M".concat(A+mt,",").concat(M-Tt),"A".concat(I,",").concat(E," 0 0 0 ").concat(A+Ut,",").concat(M-qt),"Z"].join(" ");return S.setAttribute("d",Zt),S}(r),h=m_(r);break;case"rightArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=Ot("adj2",m,0.5*Math.min(d.w,d.h)),w=zt("path"),T=["M0,".concat(d.h/2-x/2),"L".concat(d.w-S,",").concat(d.h/2-x/2),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-S,",").concat(d.h),"L".concat(d.w-S,",").concat(d.h/2+x/2),"L0,".concat(d.h/2+x/2),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=x*Ot("adj2",m,0.5*Math.min(d.w,d.h))/d.h;return{top:d.h/2-x/2,bottom:d.h/2-x/2,left:0,right:S,w:d.w-S,h:x}}(r);break;case"leftArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=Ot("adj2",m,0.5*Math.min(d.w,d.h)),w=zt("path"),T=["M0,".concat(d.h/2),"L".concat(S,",0"),"L".concat(S,",").concat(d.h/2-x/2),"L".concat(d.w,",").concat(d.h/2-x/2),"L".concat(d.w,",").concat(d.h/2+x/2),"L".concat(S,",").concat(d.h/2+x/2),"L".concat(S,",").concat(d.h),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=x*Ot("adj2",m,0.5*Math.min(d.w,d.h))/d.h;return{top:d.h/2-x/2,bottom:d.h/2-x/2,left:S,right:0,w:d.w-S,h:x}}(r);break;case"upArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=Ot("adj2",m,0.5*Math.min(d.w,d.h)),w=zt("path"),T=["M".concat(d.w/2,",0"),"L".concat(d.w,",").concat(S),"L".concat(d.w/2+x/2,",").concat(S),"L".concat(d.w/2+x/2,",").concat(d.h),"L".concat(d.w/2-x/2,",").concat(d.h),"L".concat(d.w/2-x/2,",").concat(S),"L0,".concat(S),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=x*Ot("adj2",m,0.5*Math.min(d.w,d.h))/d.w;return{top:S,bottom:0,left:d.w/2-x/2,right:d.w/2-x/2,w:x,h:d.h-S}}(r);break;case"downArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=Ot("adj2",m,0.5*Math.min(d.w,d.h)),w=zt("path"),T=["M".concat(d.w/2,",").concat(d.h),"L0,".concat(d.h-S),"L".concat(d.w/2-x/2,",").concat(d.h-S),"L".concat(d.w/2-x/2,",0"),"L".concat(d.w/2+x/2,",0"),"L".concat(d.w/2+x/2,",").concat(d.h-S),"L".concat(d.w,",").concat(d.h-S),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=x*Ot("adj2",m,0.5*Math.min(d.w,d.h))/d.w;return{top:0,bottom:S,left:d.w/2-x/2,right:d.w/2-x/2,w:x,h:d.h-S}}(r);break;case"leftRightArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=Ot("adj2",m,0.5*Math.min(d.w,d.h)),w=zt("path"),T=["M0,".concat(d.h/2),"L".concat(S,",0"),"L".concat(S,",").concat(d.h/2-x/2),"L".concat(d.w-S,",").concat(d.h/2-x/2),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-S,",").concat(d.h),"L".concat(d.w-S,",").concat(d.h/2+x/2),"L".concat(S,",").concat(d.h/2+x/2),"L".concat(S,",").concat(d.h),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=x*Ot("adj2",m,0.5*Math.min(d.w,d.h))/d.h;return{top:d.h/2-x/2,bottom:d.h/2-x/2,left:S,right:S,w:d.w-2*S,h:x}}(r);break;case"upDownArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=Ot("adj2",m,0.5*Math.min(d.w,d.h)),w=zt("path"),T=["M".concat(d.w/2,",").concat(d.h),"L0,".concat(d.h-S),"L".concat(d.w/2-x/2,",").concat(d.h-S),"L".concat(d.w/2-x/2,",").concat(S),"L0,".concat(S),"L".concat(d.w/2,",0"),"L".concat(d.w,",").concat(S),"L".concat(d.w/2+x/2,",").concat(S),"L".concat(d.w/2+x/2,",").concat(d.h-S),"L".concat(d.w,",").concat(d.h-S),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.5*Math.min(d.w,d.h)),S=x*Ot("adj2",m,0.5*Math.min(d.w,d.h))/d.w;return{top:S,bottom:S,left:d.w/2-x/2,right:d.w/2-x/2,w:x,h:d.h-2*S}}(r);break;case"quadArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.225*Math.min(d.w,d.h)),S=Ot("adj2",m,0.225*Math.min(d.w,d.h)),w=Ot("adj3",m,0.225*Math.min(d.w,d.h)),T=zt("path"),A=["M0,".concat(d.h/2),"L".concat(w,",").concat(d.h/2-S),"L".concat(w,",").concat(d.h/2-x/2),"L".concat(d.w/2-x/2,",").concat(d.h/2-x/2),"L".concat(d.w/2-x/2,",").concat(w),"L".concat(d.w/2-S,",").concat(w),"L".concat(d.w/2,",0"),"L".concat(d.w/2+S,",").concat(w),"L".concat(d.w/2+x/2,",").concat(w),"L".concat(d.w/2+x/2,",").concat(d.h/2-x/2),"L".concat(d.w-w,",").concat(d.h/2-x/2),"L".concat(d.w-w,",").concat(d.h/2-S),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-w,",").concat(d.h/2+S),"L".concat(d.w-w,",").concat(d.h/2+x/2),"L".concat(d.w/2+x/2,",").concat(d.h/2+x/2),"L".concat(d.w/2+x/2,",").concat(d.h-w),"L".concat(d.w/2+S,",").concat(d.h-w),"L".concat(d.w/2,",").concat(d.h),"L".concat(d.w/2-S,",").concat(d.h-w),"L".concat(d.w/2-x/2,",").concat(d.h-w),"L".concat(d.w/2-x/2,",").concat(d.h/2+x/2),"L".concat(w,",").concat(d.h/2+x/2),"L".concat(w,",").concat(d.h/2+S),"Z"].join(" ");return T.setAttribute("d",A),T}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.225*Math.min(d.w,d.h)),S=Ot("adj2",m,0.225*Math.min(d.w,d.h)),w=Ot("adj3",m,0.225*Math.min(d.w,d.h)),T=S===0?0:x*w/S/2;return{top:d.h/2-x/2,bottom:d.h/2-x/2,left:T,right:T,w:d.w-2*T,h:x}}(r);break;case"leftRightUpArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.225*Math.min(d.w,d.h)),S=Ot("adj2",m,0.225*Math.min(d.w,d.h)),w=Ot("adj3",m,0.225*Math.min(d.w,d.h)),T=zt("path");x>2*S&&(x=2*S);var A=["M0,".concat(d.h-S),"L".concat(w,",").concat(d.h-2*S),"L".concat(w,",").concat(d.h-S-x/2),"L".concat(d.w/2-x/2,",").concat(d.h-S-x/2),"L".concat(d.w/2-x/2,",").concat(w),"L".concat(d.w/2-S,",").concat(w),"L".concat(d.w/2,",0"),"L".concat(d.w/2+S,",").concat(w),"L".concat(d.w/2+x/2,",").concat(w),"L".concat(d.w/2+x/2,",").concat(d.h-S-x/2),"L".concat(d.w-w,",").concat(d.h-S-x/2),"L".concat(d.w-w,",").concat(d.h-2*S),"L".concat(d.w,",").concat(d.h-S),"L".concat(d.w-w,",").concat(d.h),"L".concat(d.w-w,",").concat(d.h-S+x/2),"L".concat(w,",").concat(d.h-S+x/2),"L".concat(w,",").concat(d.h),"Z"].join(" ");return T.setAttribute("d",A),T}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.225*Math.min(d.w,d.h)),S=Ot("adj2",m,0.225*Math.min(d.w,d.h)),w=Ot("adj3",m,0.225*Math.min(d.w,d.h)),T=S===0?0:x*w/S/2;return{top:d.h-S-x/2,bottom:S-x/2,left:T,right:T,w:d.w-2*T,h:x}}(r);break;case"bentArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.25*Math.min(d.w,d.h)),S=Ot("adj2",m,0.25*Math.min(d.w,d.h)),w=Ot("adj3",m,0.25*Math.min(d.w,d.h)),T=Ot("adj4",m,0.4375*Math.min(d.w,d.h)),A=zt("path");x>2*S&&(x=2*S);var M=T-x;M<0&&(M=0);var D=["M0,".concat(d.h),"L0,".concat(S-x/2+T),"A".concat(T," ").concat(T," 0 0 1 ").concat(T," ").concat(S-x/2),"L".concat(d.w-w,",").concat(S-x/2),"L".concat(d.w-w,",0"),"L".concat(d.w,",").concat(S),"L".concat(d.w-w,",").concat(2*S),"L".concat(d.w-w,",").concat(S+x/2),"L".concat(x+M,",").concat(S+x/2),"A".concat(M," ").concat(M," 0 0 0 ").concat(x," ").concat(S+x/2+M),"L".concat(x,",").concat(d.h),"Z"].join(" ");return A.setAttribute("d",D),A}(r);break;case"uturnArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.25*Math.min(d.w,d.h)),S=Ot("adj2",m,0.25*Math.min(d.w,d.h)),w=Ot("adj3",m,0.25*Math.min(d.w,d.h)),T=Ot("adj4",m,0.4375*Math.min(d.w,d.h)),A=Ot("adj5",m,0.75*Math.min(d.w,d.h)),M=zt("path");x>2*S&&(x=2*S),A<w&&(A=w+x),T>A-w&&(T=A-w);var D=T-x;D>A-w-x&&(D=A-w-x),D<0&&(D=0);var L=S-x/2,I=["M0,".concat(d.h),"L0,".concat(T),"A".concat(T," ").concat(T," 0 0 1 ").concat(T," 0"),"L".concat(d.w-T-L,",0"),"A".concat(T," ").concat(T," 0 0 1 ").concat(d.w-L," ").concat(T),"L".concat(d.w-L,",").concat(A-w),"L".concat(d.w,",").concat(A-w),"L".concat(d.w-S,",").concat(A),"L".concat(d.w-2*S,",").concat(A-w),"L".concat(d.w-S-x/2,",").concat(A-w),"L".concat(d.w-S-x/2,",").concat(x+D),"A".concat(D," ").concat(D," 0 0 0 ").concat(d.w-D-S-x/2," ").concat(x),"L".concat(x+D,",").concat(x),"A".concat(D," ").concat(D," 0 0 0 ").concat(x," ").concat(x+D),"L".concat(x,",").concat(d.h),"Z"].join(" ");return M.setAttribute("d",I),M}(r);break;case"leftUpArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.25*Math.min(d.w,d.h)),S=Ot("adj2",m,0.25*Math.min(d.w,d.h)),w=Ot("adj3",m,0.25*Math.min(d.w,d.h));x>2*S&&(x=2*S);var T=Math.min(d.w,d.h)-2*S;w>T&&(w=T),w<0&&(w=0);var A=S-x/2,M=zt("path"),D=["M0,".concat(d.h-S),"L".concat(w,",").concat(d.h-2*S),"L".concat(w,",").concat(d.h-S-x/2),"L".concat(d.w-S-x/2,",").concat(d.h-S-x/2),"L".concat(d.w-S-x/2,",").concat(w),"L".concat(d.w-2*S,",").concat(w),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(w),"L".concat(d.w-A,",").concat(w),"L".concat(d.w-A,",").concat(d.h-A),"L".concat(w,",").concat(d.h-A),"L".concat(w,",").concat(d.h),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.25*Math.min(d.w,d.h)),S=Ot("adj2",m,0.25*Math.min(d.w,d.h)),w=Ot("adj3",m,0.25*Math.min(d.w,d.h));x>2*S&&(x=2*S);var T=Math.min(d.w,d.h)-2*S;w>T&&(w=T),w<0&&(w=0);var A=S===0?0:x*w/S/2;return{top:d.h-S-x/2,bottom:S-x/2,left:A,right:S,w:d.w-A-S,h:x}}(r);break;case"bentUpArrow":f=function(m){var d=m.extend,x=Ot("adj1",m,0.25*Math.min(d.w,d.h)),S=Ot("adj2",m,0.25*Math.min(d.w,d.h)),w=Ot("adj3",m,0.25*Math.min(d.w,d.h));x>2*S&&(x=2*S);var T=Math.min(d.w,d.h)-2*S;w>T&&(w=T),w<0&&(w=0);var A=S-x/2,M=zt("path"),D=["M0,".concat(d.h),"L0,".concat(d.h-x),"L".concat(d.w-S-x/2,",").concat(d.h-x),"L".concat(d.w-S-x/2,",").concat(w),"L".concat(d.w-2*S,",").concat(w),"L".concat(d.w-S,",0"),"L".concat(d.w,",").concat(w),"L".concat(d.w-A,",").concat(w),"L".concat(d.w-A,",").concat(d.h),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ot("adj1",m,0.25*Math.min(d.w,d.h));return{top:d.h-x,bottom:0,left:0,right:0,w:d.w,h:x}}(r);break;case"curvedRightArrow":f=function(m){var{extend:d,background:x}=m,S=Ot("adj1",m,0.25*Math.min(d.w,d.h)),w=Ot("adj2",m,0.5*Math.min(d.w,d.h)),T=Ot("adj3",m,0.25*Math.min(d.w,d.h));S>w&&(S=w);var A=w/2-S/2,M=(d.h-w/2-S/2)/2,D=(d.h-A-S)/2,L=zt("g"),I=zt("path"),E=["M".concat(d.w,",0"),"A ".concat(d.w," ").concat(M," 0 0 0 ").concat(0," ").concat(M),"L0,".concat(D+S),"A ".concat(d.w," ").concat(D," 0 0 1 ").concat(d.w," ").concat(S),"Z"].join(" ");I.setAttribute("d",E),(x==null?void 0:x.type)==="solidFill"&&I.setAttribute("fill",hr(x,{dark:0.6})||"transparent");var R=zt("path"),B=["M0,".concat(M),"A ".concat(d.w," ").concat(M," 0 0 0 ").concat(d.w-T," ").concat(d.h-w/2-S/2),"L".concat(d.w-T,",").concat(d.h-w),"L".concat(d.w,",").concat(d.h-w/2),"L".concat(d.w-T,",").concat(d.h),"L".concat(d.w-T,",").concat(d.h-A),"A ".concat(d.w," ").concat(D," 0 0 1 0 ").concat(S+D),"Z"].join(" ");return R.setAttribute("d",B),L.appendChild(I),L.appendChild(R),L}(r);break;case"curvedLeftArrow":f=function(m){var{extend:d,background:x}=m,S=Ot("adj1",m,0.25*Math.min(d.w,d.h)),w=Ot("adj2",m,0.5*Math.min(d.w,d.h)),T=Ot("adj3",m,0.25*Math.min(d.w,d.h));S>w&&(S=w);var A=w/2-S/2,M=(d.h-w/2-S/2)/2,D=(d.h-A-S)/2,L=zt("g"),I=zt("path"),E=["M0,".concat(d.h-w/2),"L".concat(T,",").concat(d.h-w),"L".concat(T,",").concat(d.h-w/2-S/2),"A".concat(d.w," ").concat(M," 0 0 0 ").concat(d.w," ").concat(M),"L".concat(d.w,",").concat(D+S),"A ".concat(d.w," ").concat(D," 0 0 1 ").concat(T," ").concat(d.h-A),"L".concat(T,",").concat(d.h),"Z"].join(" ");I.setAttribute("d",E);var R=zt("path"),B=["M0,0","A ".concat(d.w," ").concat(M," 0 0 1 ").concat(d.w," ").concat(M),"L".concat(d.w,",").concat(D+S),"A ".concat(d.w," ").concat(D," 0 0 0 ").concat(0," ").concat(S),"Z"].join(" ");return R.setAttribute("d",B),(x==null?void 0:x.type)==="solidFill"&&R.setAttribute("fill",hr(x,{dark:0.6})||"transparent"),L.appendChild(I),L.appendChild(R),L}(r);break;case"curvedUpArrow":f=function(m){var{extend:d,background:x}=m,S=Ot("adj1",m,0.25*Math.min(d.w,d.h)),w=Ot("adj2",m,0.5*Math.min(d.w,d.h)),T=Ot("adj3",m,0.25*Math.min(d.w,d.h));S>w&&(S=w);var A=w/2-S/2,M=(d.w-w/2-S/2)/2,D=(d.w-A-S)/2,L=zt("g"),I=zt("path"),E=["M".concat(d.w-w/2,",").concat(0),"L".concat(d.w-w,",").concat(T),"L".concat(d.w-w/2-S/2,",").concat(T),"A".concat(M," ").concat(d.h," 0 0 1 ").concat(M," ").concat(d.h),"L".concat(M+S,",").concat(d.h),"A".concat(D," ").concat(d.h," 0 0 0 ").concat(d.w-A," ").concat(T),"L".concat(d.w,",").concat(T),"Z"].join(" ");I.setAttribute("d",E);var R=zt("path"),B=["M".concat(S,",0"),"L".concat(0,",").concat(0),"A ".concat(M," ").concat(d.h," 0 0 0 ").concat(M," ").concat(d.h),"L".concat(M+S,",").concat(d.h),"A ".concat(D," ").concat(d.h," 0 0 1 ").concat(S," ").concat(0),"Z"].join(" ");return R.setAttribute("d",B),(x==null?void 0:x.type)==="solidFill"&&R.setAttribute("fill",hr(x,{dark:0.6})||"transparent"),L.appendChild(I),L.appendChild(R),L}(r);break;case"curvedDownArrow":f=function(m){var{extend:d,background:x}=m,S=Ot("adj1",m,0.25*Math.min(d.w,d.h)),w=Ot("adj2",m,0.5*Math.min(d.w,d.h)),T=Ot("adj3",m,0.25*Math.min(d.w,d.h));S>w&&(S=w);var A=w/2-S/2,M=(d.w-w/2-S/2)/2,D=(d.w-A-S)/2,L=zt("g"),I=zt("path"),E=["M".concat(0,",").concat(d.h),"L".concat(S,",").concat(d.h),"A".concat(D," ").concat(d.h," 0 0 1 ").concat(D+S," ").concat(0),"L".concat(M,",").concat(0),"A".concat(M," ").concat(d.h," 0 0 0 ").concat(0," ").concat(d.h),"Z"].join(" ");I.setAttribute("d",E),(x==null?void 0:x.type)==="solidFill"&&I.setAttribute("fill",hr(x,{dark:0.6})||"transparent");var R=zt("path"),B=["M".concat(d.w-w/2,",").concat(d.h),"L".concat(d.w-w,",").concat(d.h-T),"L".concat(d.w-w/2-S/2,",").concat(d.h-T),"A ".concat(M," ").concat(d.h," 0 0 0 ").concat(M," ").concat(0),"L".concat(M+S,",").concat(0),"A ".concat(D," ").concat(d.h," 0 0 1 ").concat(d.w-A," ").concat(d.h-T),"L".concat(d.w,",").concat(d.h-T),"Z"].join(" ");return R.setAttribute("d",B),L.appendChild(I),L.appendChild(R),L}(r);break;case"stripedRightArrow":f=function(m){var d=m.extend,x=zt("g"),S=Math.min(d.w,d.h),w=Ae("adj1",m,0.5)*d.h,T=Ae("adj2",m,0.5)*S,A=S/8,M=S/16,D=S/32,L=5*S/32,I=d.h/2-w/2,E=d.h/2+w/2,R=zt("path");R.setAttribute("d",["M".concat(0,",").concat(I),"L".concat(D,",").concat(I),"L".concat(D,",").concat(E),"L".concat(0,",").concat(E),"Z"].join(" "));var B=zt("path");B.setAttribute("d",["M".concat(M,",").concat(I),"L".concat(A,",").concat(I),"L".concat(A,",").concat(E),"L".concat(M,",").concat(E),"Z"].join(" "));var z=zt("path"),V=["M".concat(L,",").concat(I),"L".concat(d.w-T,",").concat(I),"L".concat(d.w-T,",").concat(0),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-T,",").concat(d.h),"L".concat(d.w-T,",").concat(E),"L".concat(L,",").concat(E),"Z"].join(" ");return z.setAttribute("d",V),x.appendChild(z),x.appendChild(R),x.appendChild(B),x}(r),h=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.5)*d.h,w=S*(Ae("adj2",m,0.5)*x)/d.h;return{top:d.h/2-S/2,bottom:d.h/2-S/2,left:0,right:w,w:d.w-w,h:S}}(r);break;case"notchedRightArrow":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.5)*d.h,w=Ae("adj2",m,0.5)*x,T=S*w/d.h,A=d.h/2-S/2,M=d.h/2+S/2,D=zt("path"),L=["M".concat(0,",").concat(A),"L".concat(d.w-w,",").concat(A),"L".concat(d.w-w,",").concat(0),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-w,",").concat(d.h),"L".concat(d.w-w,",").concat(M),"L".concat(0,",").concat(M),"L".concat(T,",").concat(d.h/2),"Z"].join(" ");return D.setAttribute("d",L),D}(r),h=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.5)*d.h,w=Ae("adj2",m,0.5)*x,T=S*w/d.h,A=S*w/d.h;return{top:d.h/2-S/2,bottom:d.h/2-S/2,left:T,right:A,w:d.w-T-A,h:S}}(r);break;case"homePlate":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj",m,0.5)*x,w=zt("path"),T=["M".concat(0,",").concat(0),"L".concat(d.w-S,",").concat(0),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-S,",").concat(d.h),"L".concat(0,",").concat(d.h),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj",m,0.5)*x;return{top:0,bottom:0,left:0,right:S/2,w:d.w-S/2,h:d.h}}(r);break;case"chevron":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj",m,0.5)*x,w=zt("path"),T=["M".concat(0,",").concat(0),"L".concat(d.w-S,",").concat(0),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-S,",").concat(d.h),"L".concat(0,",").concat(d.h),"L".concat(S,",").concat(d.h/2),"Z"].join(" ");return w.setAttribute("d",T),w}(r),h=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj",m,0.5)*x;return{top:0,bottom:0,left:S,right:S,w:d.w-2*S,h:d.h}}(r);break;case"blockArc":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=zt("path"),w=Ae("adj1",m,180),T=Ae("adj2",m,0),A=Ot("adj3",m,0.25*x),M=d.w/2,D=d.h/2,L=d.w/2,I=d.h/2,E=d.w/2-A,R=d.h/2-A,B=Un(w,M,D,L,I),z=B[0],V=B[1],H=Un(T,M,D,L,I),K=H[0],F=H[1],G=Un(w,M,D,E,R),rt=G[0],ot=G[1],at=Un(T,M,D,E,R),mt=at[0],Tt=at[1],Ut=v_(w,T),qt=["M".concat(z,",").concat(V),"A".concat(L," ").concat(I," 0 ").concat(Ut," 1 ").concat(K," ").concat(F),"L".concat(mt,",").concat(Tt),"A".concat(E," ").concat(R," 0 ").concat(Ut," 0 ").concat(rt," ").concat(ot),"Z"].join(" ");return S.setAttribute("d",qt),S}(r),h=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,180),w=Ae("adj2",m,0),T=Ot("adj3",m,0.25*x),A=d.w/2,M=d.h/2,D=d.w/2,L=d.h/2,I=d.w/2-T,E=d.h/2-T,R=Un(S,A,M,D,L),B=R[0],z=R[1],V=Un(w,A,M,D,L),H=V[0],K=V[1],F=Un(S,A,M,I,E),G=F[0],rt=F[1],ot=Un(w,A,M,I,E),at=[[B,z],[H,K],[G,rt],[ot[0],ot[1]]];at.push(),S>w&&at.push([d.w,d.h/2]),(w>180&&w<=360&&S<180||S>w&&w>=0&&w<180&&S<180)&&at.push([0,d.h/2]),(S<w&&S<90&&w>90||S>w&&w>90||S>w&&S<90)&&at.push([d.w/2,d.h]),(S<w&&S<270&&w>270||S>w&&w>270||S>w&&S<270)&&at.push([d.w/2,0]);var mt=1/0,Tt=1/0,Ut=-1/0,qt=-1/0;return at.forEach(function(Zt){mt=Math.min(Zt[0],mt),Tt=Math.min(Zt[1],Tt),Ut=Math.max(Zt[0],Ut),qt=Math.max(Zt[1],qt)}),{top:Tt,bottom:d.h-qt,left:mt,right:d.w-Ut,w:Ut-mt,h:qt-Tt}}(r);break;case"foldedCorner":f=function(m){var{extend:d,background:x}=m,S=zt("g"),w=zt("path"),T=Ot("adj",m,0.16667*Math.min(d.w,d.h)),A=["M0,0","L".concat(d.w,",0"),"L".concat(d.w,",").concat(d.h-T),"L".concat(d.w-T,",").concat(d.h),"L".concat(0,",").concat(d.h),"Z"].join(" ");w.setAttribute("d",A);var M=T*Math.cos(Math.PI/4)/Math.cos(Math.PI/6)*Math.cos(0.4166666666666667*Math.PI),D=zt("path"),L=["M".concat(d.w-T+M,", ").concat(d.h-T+M),"L".concat(d.w,",").concat(d.h-T),"L".concat(d.w-T,",").concat(d.h),"Z"].join(" ");return D.setAttribute("d",L),(x==null?void 0:x.type)==="solidFill"&&D.setAttribute("fill",hr(x,{dark:0.6})||"transparent"),S.appendChild(w),S.appendChild(D),S}(r),h=function(m){var d=m.extend,x=Ot("adj",m,0.16667*Math.min(d.w,d.h));return{top:0,bottom:x,left:0,right:0,w:d.w,h:d.h-x}}(r);break;case"rightArrowCallout":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.25)*x,w=Ae("adj2",m,0.25)*x,T=Ae("adj3",m,0.25)*x,A=Ae("adj4",m,0.64977)*d.w,M=zt("path"),D=["M".concat(0,",").concat(0),"L".concat(A,",").concat(0),"L".concat(A,",").concat(d.h/2-S/2),"L".concat(d.w-T,",").concat(d.h/2-S/2),"L".concat(d.w-T,",").concat(d.h/2-w),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-T,",").concat(d.h/2+w),"L".concat(d.w-T,",").concat(d.h/2+S/2),"L".concat(A,",").concat(d.h/2+S/2),"L".concat(A,",").concat(d.h),"L".concat(0,",").concat(d.h),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ae("adj4",m,0.64977)*d.w;return{top:0,bottom:0,left:0,right:d.w-x,w:x,h:d.h}}(r);break;case"leftArrowCallout":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.25)*x,w=Ae("adj2",m,0.25)*x,T=Ae("adj3",m,0.25)*x,A=Ae("adj4",m,0.64977)*d.w,M=zt("path"),D=["M".concat(0,",").concat(d.h/2),"L".concat(T,",").concat(d.h/2-w),"L".concat(T,",").concat(d.h/2-S/2),"L".concat(d.w-A,",").concat(d.h/2-S/2),"L".concat(d.w-A,",").concat(0),"L".concat(d.w,",").concat(0),"L".concat(d.w,",").concat(d.h),"L".concat(d.w-A,",").concat(d.h),"L".concat(d.w-A,",").concat(d.h/2+S/2),"L".concat(T,",").concat(d.h/2+S/2),"L".concat(T,",").concat(d.h/2+w),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ae("adj4",m,0.64977)*d.w;return{top:0,bottom:0,left:d.w-x,right:0,w:x,h:d.h}}(r);break;case"upArrowCallout":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.25)*x,w=Ae("adj2",m,0.25)*x,T=Ae("adj3",m,0.25)*x,A=Ae("adj4",m,0.64977)*d.h,M=zt("path"),D=["M".concat(0,",").concat(d.h-A),"L".concat(d.w/2-S/2,",").concat(d.h-A),"L".concat(d.w/2-S/2,",").concat(T),"L".concat(d.w/2-w,",").concat(T),"L".concat(d.w/2,",").concat(0),"L".concat(d.w/2+w,",").concat(T),"L".concat(d.w/2+S/2,",").concat(T),"L".concat(d.w/2+S/2,",").concat(d.h-A),"L".concat(d.w,",").concat(d.h-A),"L".concat(d.w,",").concat(d.h),"L".concat(0,",").concat(d.h),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ae("adj4",m,0.64977)*d.h;return{top:d.h-x,bottom:0,left:0,right:0,w:d.w,h:x}}(r);break;case"downArrowCallout":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.25)*x,w=Ae("adj2",m,0.25)*x,T=Ae("adj3",m,0.25)*x,A=Ae("adj4",m,0.64977)*d.h,M=zt("path"),D=["M".concat(0,",").concat(0),"L".concat(d.w,",").concat(0),"L".concat(d.w,",").concat(A),"L".concat(d.w/2+S/2,",").concat(A),"L".concat(d.w/2+S/2,",").concat(d.h-T),"L".concat(d.w/2+w,",").concat(d.h-T),"L".concat(d.w/2,",").concat(d.h),"L".concat(d.w/2-w,",").concat(d.h-T),"L".concat(d.w/2-S/2,",").concat(d.h-T),"L".concat(d.w/2-S/2,",").concat(A),"L".concat(0,",").concat(A),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ae("adj4",m,0.64977)*d.h;return{top:0,bottom:d.h-x,left:0,right:0,w:d.w,h:x}}(r);break;case"leftRightArrowCallout":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.25)*x,w=Ae("adj2",m,0.25)*x,T=Ae("adj3",m,0.25)*x,A=Ae("adj4",m,0.48123)*d.w,M=zt("path"),D=["M".concat(0,",").concat(d.h/2),"L".concat(T,",").concat(d.h/2-w),"L".concat(T,",").concat(d.h/2-S/2),"L".concat(d.w/2-A/2,",").concat(d.h/2-S/2),"L".concat(d.w/2-A/2,",").concat(0),"L".concat(d.w/2+A/2,",").concat(0),"L".concat(d.w/2+A/2,",").concat(d.h/2-S/2),"L".concat(d.w-T,",").concat(d.h/2-S/2),"L".concat(d.w-T,",").concat(d.h/2-w),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-T,",").concat(d.h/2+w),"L".concat(d.w-T,",").concat(d.h/2+S/2),"L".concat(d.w/2+A/2,",").concat(d.h/2+S/2),"L".concat(d.w/2+A/2,",").concat(d.h),"L".concat(d.w/2-A/2,",").concat(d.h),"L".concat(d.w/2-A/2,",").concat(d.h/2+S/2),"L".concat(T,",").concat(d.h/2+S/2),"L".concat(T,",").concat(d.h/2+w),"Z"].join(" ");return M.setAttribute("d",D),M}(r),h=function(m){var d=m.extend,x=Ae("adj4",m,0.48123)*d.w;return{top:0,bottom:0,left:d.w/2-x/2,right:d.w/2-x/2,w:x,h:d.h}}(r);break;case"quadArrowCallout":f=function(m){var d=m.extend,x=Math.min(d.w,d.h),S=Ae("adj1",m,0.18515)*x,w=Ae("adj2",m,0.18515)*x,T=Ae("adj3",m,0.18515)*x,A=Ae("adj4",m,0.48123)*d.w,M=Ae("adj4",m,0.48123)*d.h,D=zt("path"),L=["M".concat(0,",").concat(d.h/2),"L".concat(T,",").concat(d.h/2-w),"L".concat(T,",").concat(d.h/2-S/2),"L".concat(d.w/2-A/2,",").concat(d.h/2-S/2),"L".concat(d.w/2-A/2,",").concat(d.h/2-M/2),"L".concat(d.w/2-S/2,",").concat(d.h/2-M/2),"L".concat(d.w/2-S/2,",").concat(T),"L".concat(d.w/2-w,",").concat(T),"L".concat(d.w/2,",").concat(0),"L".concat(d.w/2+w,",").concat(T),"L".concat(d.w/2+S/2,",").concat(T),"L".concat(d.w/2+S/2,",").concat(d.h/2-M/2),"L".concat(d.w/2+A/2,",").concat(d.h/2-M/2),"L".concat(d.w/2+A/2,",").concat(d.h/2-S/2),"L".concat(d.w-T,",").concat(d.h/2-S/2),"L".concat(d.w-T,",").concat(d.h/2-w),"L".concat(d.w,",").concat(d.h/2),"L".concat(d.w-T,",").concat(d.h/2+w),"L".concat(d.w-T,",").concat(d.h/2+S/2),"L".concat(d.w/2+A/2,",").concat(d.h/2+S/2),"L".concat(d.w/2+A/2,",").concat(d.h/2+M/2),"L".concat(d.w/2+S/2,",").concat(d.h/2+M/2),"L".concat(d.w/2+S/2,",").concat(d.h-T),"L".concat(d.w/2+w,",").concat(d.h-T),"L".concat(d.w/2,",").concat(d.h),"L".concat(d.w/2-w,",").concat(d.h-T),"L".concat(d.w/2-S/2,",").concat(d.h-T),"L".concat(d.w/2-S/2,",").concat(d.h/2+M/2),"L".concat(d.w/2-A/2,",").concat(d.h/2+M/2),"L".concat(d.w/2-A/2,",").concat(d.h/2+S/2),"L".concat(T,",").concat(d.h/2+S/2),"L".concat(T,",").concat(d.h/2+w),"Z"].join(" ");return D.setAttribute("d",L),D}(r),h=function(m){var d=m.extend,x=Ae("adj4",m,0.48123)*d.w,S=Ae("adj4",m,0.48123)*d.h;return{top:d.h/2-S/2,bottom:d.h/2-S/2,left:d.w/2-x/2,right:d.w/2-x/2,w:x,h:S}}(r)}if(f)v?(n==null?void 0:n.type)==="blipFill"?function(m,d,x){var S=m.background,w=S===void 0?{}:S,T=m.extend,{base64:A,alpha:M,fillRect:D}=w,L=D===void 0?{}:D,I=L.b,E=I===void 0?0:I,R=L.t,B=R===void 0?0:R,z=L.l,V=z===void 0?0:z,H=L.r,K=H===void 0?0:H,F=zt("defs"),G=zt("pattern");G.setAttribute("id","background_"+m.uuid),G.setAttribute("patternUnits","userSpaceOnUse"),G.setAttribute("width",T.w+""),G.setAttribute("height",T.h+"");var rt=zt("image");rt.setAttribute("href",A),rt.setAttribute("preserveAspectRatio","none");var ot=T.w*V,at=T.h*B,mt=T.w*(1-V-K),Tt=T.h*(1-B-E);rt.setAttribute("width",mt+""),rt.setAttribute("height",Tt+""),rt.setAttribute("x",ot+""),rt.setAttribute("y",at+""),typeof M=="number"&&rt.setAttribute("opacity",M+""),G.appendChild(rt),F.appendChild(G),d.appendChild(F),x.setAttribute("fill","url(#background_".concat(m.uuid,")"))}(r,p,f):(n==null?void 0:n.type)==="gradFill"?function(m,d,x){var S=m.background,w=S===void 0?{}:S;m.extend;var{gsList:T,lin:A,path:M,tileRect:D}=w,L=D===void 0?{}:D,I=zt("defs"),E=zt(M==="circle"?"radialGradient":"linearGradient");E.setAttribute("id","background_grad_fill_"+m.uuid);var R=T||[];if(R.sort(function(K,F){return K.pos-F.pos}),R.forEach(function(K){var F=zt("stop");F.setAttribute("offset","".concat(100*K.pos,"%")),F.setAttribute("stop-color",hr(K.color)),E.appendChild(F)}),M==="circle"){var{r:B,l:z,t:V,b:H}=L;B===-1?E.setAttribute("cx","100%"):z===-1&&E.setAttribute("cx","0%"),V===-1?E.setAttribute("cy","0%"):H===-1&&E.setAttribute("cy","100%")}else(A==null?void 0:A.ang)&&E.setAttribute("gradientTransform","rotate(".concat(A.ang,")"));I.appendChild(E),d.appendChild(I),x.setAttribute("fill","url(#background_grad_fill_".concat(m.uuid,")"))}(r,p,f):f.setAttribute("fill",hr(n)||"transparent"):f.setAttribute("fill","transparent"),i.width?(f.setAttribute("stroke-width",i.width+"px"),f.setAttribute("stroke",hr(i.color)||"transparent")):f.setAttribute("stroke-width","0"),f.setAttribute("stroke-dasharray",function(m){return m&&m.type!=="solid"?({sysDot:[1,1],sysDash:[3,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]}[m.type]||[]).map(function(d){return d*m.width}).join(","):""}(i)),f.setAttribute("stroke-linecap",i.cap&&{sq:"square",rnd:"round",flat:"butt"}[i.cap]||"square"),f.setAttribute("stroke-linejoin",i.lineJoin||"round"),i.lineJoin==="miter"&&f.setAttribute("stroke-miterlimit",i.miterLim+""),p.appendChild(f);var g=[];o&&g.push("scaleX(-1)"),s&&g.push("scaleY(-1)"),p.style.setProperty("transform",g.join(" ")),l.appendChild(p);var y=function(m,d,x){var S;x===void 0&&(x=!1);var{inheritProps:w,props:T,paragraphs:A}=m;if(!A||A.length===0)return null;var M=Jt(Jt({},w),T),D=document.createElement("div");switch(D.className="text-wrapper",D.style.boxSizing="border-box",D.style.position="absolute",D.style.left=d.left+"px",M.vert==="eaVert"?(D.style.writingMode="vertical-rl",D.style.height=d.h+"px"):D.style.width=d.w+"px",M.anchor){case"b":D.style.bottom=d.bottom+"px";break;case"t":D.style.top=d.top+"px";break;case"ctr":D.style.top=d.top+d.h/2+"px",D.style.transform="translateY(-50%)";break;default:x?D.style.top=d.top+"px":(D.style.top=d.top+d.h/2+"px",D.style.transform="translateY(-50%)")}var L=[M.hasOwnProperty("tIns")?Math.floor(M.tIns)+"px":"3px",M.hasOwnProperty("rIns")?Math.floor(M.rIns)+"px":"5px",M.hasOwnProperty("bIns")?Math.floor(M.bIns)+"px":"3px",M.hasOwnProperty("lIns")?Math.floor(M.lIns)+"px":"5px"];D.style.padding=L.join(" ");for(var I={},E=0,R=function(V){var H=Jt(Jt({},V.inheritProps),V.props),K=void 0;if(H.buAutoNum){var F=H.level?+H.level:0;I[F]||(I[F]=0),((S=V.rows)===null||S===void 0?void 0:S.length)&&I[F]++,Object.keys(I).forEach(function(G){+G>F&&(I[G]=0)}),K=cC(V,I[F],{isFirst:E===0,isLast:A.length-1===E,bodyProps:M})}else K=cC(V,0,{isFirst:E===0,isLast:A.length-1===E,bodyProps:M});D.appendChild(K),E++},B=0,z=A;B<z.length;B++)R(z[B]);return D}(r.textBody,h,r.isTextBox);return y&&l.appendChild(y),a&&l.style.setProperty("transform","rotate(".concat(a,"deg)")),l}function Vnt(r){var e=document.createElement("div"),t=r.extend;r.chExtend;var i=r.offset;r.chOffset;var{flipV:n,flipH:a,rotate:o}=r,{x:s,y:l}=i,{w:u,h:c}=t;e.className="group",e.style.position="absolute",e.style.left=s+"px",e.style.top=l+"px",e.style.width=u+"px",e.style.height=c+"px";var f=[];a&&f.push("scaleX(-1)"),n&&f.push("scaleY(-1)"),o&&f.push("rotate(".concat(o,"deg)")),e.style.transformOrigin="center center",e.style.transform=f.join(" ");for(var p=0;p<r.nodes.length;p++){var h=r.nodes[p],v=void 0;h instanceof uC?v=Oz(h):h instanceof g_?v=kz(h):h instanceof Nz&&(v=Vnt(h)),v&&e.appendChild(v)}return e}function Pnt(r,e){al[r]||(al[r]=[]),al[r].push(e)}function oC(r,e){if(al[r])for(var t=0;t<al[r].length;t++)al[r][t](e)}function Rz(r,e){al?al[r]&&(al[r]=al[r].filter(function(t){return t!==e})):al[r]=[]}function Fnt(r,e){return new aDt(r,e)}var Ont,J,sC=1,x_,$Lt,g_,uC,Nnt,Nz,znt,Bnt,QLt,tDt,eDt,rDt,Tnt,Unt="http://www.w3.org/2000/svg",al,Rnt,aDt;var Gnt=k(()=>{vV();TV();xnt();Ont=hV(gV()),J=hV(yV());x_=function(){function r(e,t,i){var n,a;this.uuid=P2(),this.offset={x:0,y:0},this.extend={w:0,h:0},this.rotate=0,this.order=0,this.flipV=!1,this.flipH=!1,this.source=e,this.ctx=t,this.group=i;var o=J.get(e,["p:nvSpPr","p:nvPr"]);if(o){var s=J.get(o,"p:ph");s&&s.attrs&&(this.idx=s.attrs.idx,this.type=s.attrs.type),J.get(o,["attrs","userDrawn"])&&(this.userDrawn=J.get(o,["attrs","userDrawn"])==="1")}if(this.order=J.get(e,"attrs.order",0),this.source["p:spPr"]){if(u=this.getXfrm()){var l=this.group&&(((n=this.ctx.pptx)===null||n===void 0?void 0:n.wps)||Ym(parseInt(u["a:off"].attrs.x))==="point")?nu:Tr;this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy||"0")))},this.rotate=fC(parseInt(J.get(u,"attrs.rot",0))),this.flipV=J.get(u,"attrs.flipV")==="1",this.flipH=J.get(u,"attrs.flipH")==="1"}}else if(this.source["p:xfrm"]){var u=this.source["p:xfrm"];l=this.group&&(((a=this.ctx.pptx)===null||a===void 0?void 0:a.wps)||Ym(parseInt(u["a:off"].attrs.x))==="point")?nu:Tr,this.offset={x:Math.round(l(parseInt(u["a:off"].attrs.x))),y:Math.round(l(parseInt(u["a:off"].attrs.y)))},this.extend={w:Math.round(l(parseInt(u["a:ext"].attrs.cx))),h:Math.round(l(parseInt(u["a:ext"].attrs.cy)))}}if(i){var{extend:c,chExtend:f,chOffset:p}=i,h=f.w===0?0:c.w/f.w,v=f.h===0?0:c.h/f.h;this.extend.w=this.extend.w*h,this.extend.h=this.extend.h*v,this.offset.x=(this.offset.x-p.x)*h,this.offset.y=(this.offset.y-p.y)*v}}return Object.defineProperty(r.prototype,"theme",{get:function(){return(this.ctx.sliderMaster||this.ctx).theme},enumerable:!1,configurable:!0}),r.prototype.getColorThemeName=function(e){return this.ctx.getColorThemeName(e)},r.prototype.getXfrm=function(){var e=this.source["p:spPr"]["a:xfrm"];return e||(this.idx?e=this.ctx.getNodeInheritAttrsByIdx(this.idx,["p:spPr","a:xfrm"]):this.type&&(e=this.ctx.getNodeInheritAttrsByType(this.type,["p:spPr","a:xfrm"]))),e},r}(),$Lt=function(){function r(e,t){this.props={},this.inheritProps={},this.source=e,this.node=t,this._getInheritBodyProps(),this._parseBodyProps(),this._parseLstStyle(),this._parseText()}return r.prototype._getInheritBodyProps=function(){var e,t=this.node.ctx,i=this.node.type,n=this.node.idx;if(i||n)switch(t.slideType){case"slideMaster":break;case"slideLayout":(e=i?t.slideMaster.getNodeByType(i):t.slideMaster.getNodeByIdx(n))&&(this.inheritProps=J.get(e,["textBody","props"])||{});break;case"slide":(e=i?t.slideLayout.slideMaster.getNodeByType(i):t.slideLayout.slideMaster.getNodeByIdx(n))&&Object.assign(this.inheritProps,J.get(e,["textBody","props"])||{}),(e=i?t.slideLayout.getNodeByType(i):t.slideLayout.getNodeByIdx(n))&&Object.assign(this.inheritProps,J.get(e,["textBody","props"])||{})}},r.prototype._parseBodyProps=function(){var e=this,t=J.get(this.source,["a:bodyPr","attrs"])||{};Object.keys(t).forEach(function(o){switch(o){case"anchor":e.props.anchor=t[o];break;case"rtlCol":e.props.rtlCol=t[o]==="1";break;case"lIns":case"rIns":case"tIns":case"bIns":e.props[o]=Tr(parseInt(t[o]));break;case"order":break;default:e.props[o]=t[o]}});var i=J.get(this.source,["a:bodyPr","a:normAutofit","attrs"]);if(i){this.props.normAutofit={};var n=i.fontScale;n&&(this.props.normAutofit.fontScale=Yf(parseInt(n)));var a=i.lnSpcReduction;a&&(this.props.normAutofit.lnSpcReduction=Yf(parseInt(a)))}},r.prototype._parseLstStyle=function(){var e=this,t={},i=J.get(this.source,"a:lstStyle")||{};Object.keys(i).forEach(function(n){if(n.startsWith("a:")&&n.endsWith("pPr")){var a=n.substr(2,n.length-5);t[a]={props:e._formatPPr(i[n])};var o=J.get(i[n],["a:defRPr"]);t[a].defRPr=e._formatRPr(o)}}),this.lstStyle=t},r.prototype._parseText=function(){var e=this,t=J.get(this.source,["a:p"])||[];Array.isArray(t)||(t=[t]),this.paragraphs=t.map(function(i){return e._parseParagraph(i)})},r.prototype._parseParagraph=function(e){var t=this,i={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},n=J.get(e,["a:pPr"])||{};i.props=this._formatPPr(n);var a=J.get(e,["a:endParaRPr"]);i.endParaRProps=this._formatRPr(a);var o=J.get(e,["a:r"])||[];Array.isArray(o)||(o=[o]);var s=J.get(e,["a:br"])||[];return Array.isArray(s)||(s=[s]),(o=o.concat(s.map(function(l){return Jt({isBr:!0},l)}))).sort(function(l,u){return J.get(l,["attrs","order"])-J.get(u,["attrs","order"])}),i.rows=o.map(function(l){return t._parseRow(l)}),i.inheritProps=this._getInheritPProps(i.props.level),i.inheritRProps=this._getInheritRProps(i.props.level),i},r.prototype._getInheritPProps=function(e){e===void 0&&(e="0");var t,i={},n=this.node.ctx,a=this.node.type,o=this.node.idx;switch(n.slideType){case"slideMaster":this.node.isTextBox?Object.assign(i,J.get(n.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(i,J.get(n,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(i,J.get(n.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(i,J.get(n.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(a||o)&&(t=a?n.slideMaster.getNodeByType(a):n.slideMaster.getNodeByIdx(o))&&Object.assign(i,J.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{});break;case"slide":this.node.isTextBox?Object.assign(i,J.get(n.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"props"])||{}):Object.assign(i,J.get(n.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"props"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(i,J.get(n.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=a?n.slideLayout.slideMaster.getNodeByType(a):n.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(i,J.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}),(t=a?n.slideLayout.getNodeByType(a):n.slideLayout.getNodeByIdx(o))&&Object.assign(i,J.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"props"])||{}))}return i},r.prototype._getInheritRProps=function(e){e===void 0&&(e="0");var t,i={},n=this.node.ctx,a=this.node.type,o=this.node.idx;switch(n.slideType){case"slideMaster":this.node.isTextBox?Object.assign(i,J.get(n.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(i,J.get(n,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slideLayout":this.node.isTextBox?Object.assign(i,J.get(n.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(i,J.get(n.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(a||o)&&(t=a?n.slideMaster.getNodeByType(a):n.slideMaster.getNodeByIdx(o))&&(i=J.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{});break;case"slide":this.node.isTextBox?Object.assign(i,J.get(n.slideLayout.slideMaster.defaultTextStyle,["lvl".concat(e?+e+1:1),"defRPr"])||{}):Object.assign(i,J.get(n.slideLayout.slideMaster,["textStyles","otherStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(a||o)&&(["subTitle","ctrTitle","title"].includes(a)&&Object.assign(i,J.get(n.slideLayout.slideMaster,["textStyles","titleStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=a?n.slideLayout.slideMaster.getNodeByType(a):n.slideLayout.slideMaster.getNodeByIdx(o))&&Object.assign(i,J.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}),(t=a?n.slideLayout.getNodeByType(a):n.slideLayout.getNodeByIdx(o))&&Object.assign(i,J.get(t,["textBody","lstStyle","lvl".concat(e?+e+1:1),"defRPr"])||{}))}var s=J.get(this.node.source,["p:style","a:fontRef"]);return J.get(s,"a:schemeClr")&&(i.color=di(s,this.node.theme,this.node)),J.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])&&Object.assign(i,J.get(this.lstStyle,["lvl".concat(e?+e+1:1),"defRPr"])),i},r.prototype._formatPPr=function(e){var t={},i=J.get(e,"attrs")||{};return Object.keys(i).forEach(function(n){switch(n){case"algn":t.align=i[n];break;case"marL":t.marginLeft=Tr(parseInt(i[n]));break;case"indent":t.indent=Tr(parseInt(i[n]));break;case"lvl":t.level=i[n]}}),J.get(e,["a:lnSpc","a:spcPct","attrs","val"])&&(t.lineHeight=parseInt(e["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),J.get(e,["a:buAutoNum","attrs","type"])&&(t.buAutoNum=e["a:buAutoNum"].attrs.type),J.get(e,["a:buChar","attrs","char"])&&(t.buChar=e["a:buChar"].attrs.char),J.get(e,["a:spcBef","a:spcPts","attrs","val"])&&(t.spaceBefore=lC(parseInt(e["a:spcBef"]["a:spcPts"].attrs.val))),J.get(e,["a:spcAft","a:spcPts","attrs","val"])&&(t.spaceAfter=lC(parseInt(e["a:spcAft"]["a:spcPts"].attrs.val))),J.get(e,["a:defRPr"])&&(t.defRPr=this._formatRPr(J.get(e,["a:defRPr"]))),t},r.prototype._parseRow=function(e){if(e.isBr)return{isBr:!0};var t={props:{},text:""},i=J.get(e,["a:rPr"])||{};return t.props=this._formatRPr(i),t.text=J.get(e,"a:t")||"",t},r.prototype._formatRPr=function(e){var t={},i=J.get(e,"attrs")||{};Object.keys(i).forEach(function(o){switch(o){case"sz":t.size=parseInt(i[o])/100;break;case"b":t.bold=i[o]==="1";break;case"i":t.italic=i[o]==="1";break;case"u":t.underline=i[o];break;case"strike":t.strike=i[o];break;case"order":case"dirty":break;default:t[o]=i[o]}});var n=J.get(e,"a:solidFill");n&&(t.color=di(n,this.node.theme,this.node));var a=J.get(e,"a:highlight");return a&&(t.background=di(a,this.node.theme,this.node)),t.typeface=J.get(e,["a:ea","attrs","typeface"]),t},r}();g_=function(r){function e(t,i,n,a){var o=r.call(this,t,n,a)||this;return o.border={},o.prstGeom={},o.isTextBox=!1,o.pptx=i,o._parseShape(),o._parIsTextBox(),o._parsePrstGeom(),o._parseBackground(),o._parseBorder(),o._parseTxt(),o}return dd(e,r),e.prototype._parseShape=function(){if(this.shape=J.get(this.source,["p:spPr","a:prstGeom","attrs","prst"]),!this.shape&&J.get(this.source,["p:spPr","a:custGeom"])){this.shape="customGeom";var t=J.get(this.source,["p:spPr","a:custGeom","a:pathLst","a:path"]),i=[],n=[],a=function(s){switch(s){case"a:moveTo":case"a:cubicBezTo":case"a:lnTo":n=Array.isArray(t[s])?t[s]:[t[s]],i=i.concat(n.map(function(l){return{order:l.attrs.order,type:s.split(":")[1],points:(Array.isArray(l["a:pt"])?l["a:pt"]:[l["a:pt"]]).map(function(u){return[Tr(parseInt(J.get(u,["attrs","x"]))),Tr(parseInt(J.get(u,["attrs","y"])))]})}}));break;case"a:close":n=Array.isArray(t[s])?t[s]:[t[s]],i=i.concat(n.map(function(l){return{order:l.attrs.order,type:s.split(":")[1]}}))}};for(var o in t)a(o);i.sort(function(s,l){return s.order-l.order}),this.prstGeom.pathList=i,J.get(t,["attrs","w"])&&(this.prstGeom.w=Tr(parseInt(J.get(t,["attrs","w"])))),J.get(t,["attrs","h"])&&(this.prstGeom.h=Tr(parseInt(J.get(t,["attrs","h"]))))}},e.prototype._parIsTextBox=function(){this.isTextBox=J.get(this.source,["p:nvSpPr","p:cNvSpPr","attrs","txBox"])==="1"},e.prototype._parsePrstGeom=function(){var t=this,i=J.get(this.source,["p:spPr","a:prstGeom"]),n=J.get(i,["a:avLst","a:gd"]);n&&(Array.isArray(n)||(n=[n]),this.prstGeom.gd=n.map(function(a){var o=["pie","chord","arc"].includes(t.shape)||["blockArc"].includes(t.shape)&&["adj1","adj2"].includes(a.attrs.name)?fC(parseInt(a.attrs.fmla.split(" ")[1])):Yf(parseInt(a.attrs.fmla.split(" ")[1]));return{name:a.attrs.name,fmla:o}}))},e.prototype._parseBackground=function(){if(!J.get(this.source,["p:spPr","a:noFill"]))if(J.get(this.source,["p:spPr","a:grpFill"])&&this.group)this.background=this.group.getBackground();else{var t=J.get(this.source,["p:spPr","a:solidFill"]);if(t)this.background=di(t,this.theme,this);else{var i=J.get(this.source,["p:spPr","a:gradFill"]);if(i)this.background=__(i,this.theme,this);else{var n=J.get(this.source,["p:spPr","a:blipFill"]);if(n)this.background=y_(n,this.pptx,this.ctx);else{var a=J.get(this.source,["p:style","a:fillRef"]);a&&(this.background=di(a,this.theme,this))}}}}},e.prototype._parseBorder=function(){var t=J.get(this.source,["p:style","a:lnRef"]);if(t){var i=parseInt(t.attrs.idx),n=this.theme.getLineStyle(i);this.border=Jt(Jt({},n),this.border),this.border.color&&this.border.color.color||(this.border.color=di(t,this.theme,this))}var a=J.get(this.source,["p:spPr","a:ln"]);a&&Object.assign(this.border,Zm(a,this.theme,this)),this.border.color&&this.border.color.color&&!this.border.width&&(this.border.width=e.defaultBorderWidth)},e.prototype._parseTxt=function(){this.textBody=new $Lt(J.get(this.source,["p:txBody"]),this)},e.defaultBorderWidth=0.75,e}(x_),uC=function(r){function e(t,i,n,a,o){var s,l,u=r.call(this,i,a,o)||this;u.userDrawn=!0,u.pptx=n,u.path=t;var c=J.get(u.source,["p:blipFill","a:srcRect"]);c&&(u.clip={},c.attrs.b&&(u.clip.b=parseInt(c.attrs.b)/1e5),c.attrs.t&&(u.clip.t=parseInt(c.attrs.t)/1e5),c.attrs.l&&(u.clip.l=parseInt(c.attrs.l)/1e5),c.attrs.r&&(u.clip.r=parseInt(c.attrs.r)/1e5));var f=J.get(i,["p:nvPicPr","p:nvPr","a:audioFile","attrs","r:link"]);if(f){var p=(s=u.ctx.rels[f])===null||s===void 0?void 0:s.target;u.audioFile=u.pptx.getMedia(p)}var h=J.get(i,["p:nvPicPr","p:nvPr","a:videoFile","attrs","r:link"]);if(h){var v=(l=u.ctx.rels[h])===null||l===void 0?void 0:l.target;u.videoFile=u.pptx.getMedia(v)}return u}return dd(e,r),Object.defineProperty(e.prototype,"base64",{get:function(){return this.pptx.getMedia(this.path)},enumerable:!1,configurable:!0}),e}(x_),Nnt=function(r){function e(t,i,n,a){var o=r.call(this,t,n,a)||this;return o.userDrawn=!0,o.props={tableStyleId:""},o.tableGrid={gridCol:[]},o.tr=[],o.tableStyles={},o.pptx=i,o._parseTableProps(),o._parseTableGrid(),o._parseTr(),o._parseInheritStyles(),o}return dd(e,r),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype._parseTableProps=function(){var t=J.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblPr"]);this.props.tableStyleId=J.get(t,"a:tableStyleId"),this.tableStyles=J.get(this.slideMaster.tableStyles,this.props.tableStyleId)||{},J.get(t,["attrs","bandCol"])==="1"&&(this.props.bandCol=!0),J.get(t,["attrs","bandRow"])==="1"&&(this.props.bandRow=!0),J.get(t,["attrs","firstCol"])==="1"&&(this.props.firstCol=!0),J.get(t,["attrs","firstRow"])==="1"&&(this.props.firstRow=!0),J.get(t,["attrs","lastCol"])==="1"&&(this.props.lastCol=!0),J.get(t,["attrs","lastRow"])==="1"&&(this.props.lastRow=!0)},e.prototype._parseTableGrid=function(){var t=J.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tblGrid","a:gridCol"]);if(t)for(var i=0;i<t.length;i++){var n=J.get(t[i],["attrs","w"]);this.tableGrid.gridCol.push({width:Tr(parseInt(n))})}},e.prototype._parseTr=function(){var t=[],i=J.get(this.source,["a:graphic","a:graphicData","a:tbl","a:tr"]);Array.isArray(i)||(i=[i]);for(var n=0;n<i.length;n++){var a={props:{},td:[]},o=i[n];a.props.height=Tr(parseInt(J.get(o,["attrs","h"])));var s=J.get(o,["a:tc"]);Array.isArray(s)||(s=[s]);for(var l=0;l<s.length;l++)a.td.push(this._parseTd(s[l]));t.push(a)}this.tr=t},e.prototype._parseTd=function(t){var i,n,a,o,s=this,l={props:{border:{}},paragraphs:[]},u=J.get(t,["a:tcPr","attrs"]);(u==null?void 0:u.marB)&&(l.props.marB=Tr(parseInt(u==null?void 0:u.marB))),(u==null?void 0:u.marT)&&(l.props.marT=Tr(parseInt(u==null?void 0:u.marT))),(u==null?void 0:u.marL)&&(l.props.marL=Tr(parseInt(u==null?void 0:u.marL))),(u==null?void 0:u.marR)&&(l.props.marR=Tr(parseInt(u==null?void 0:u.marR))),(u==null?void 0:u.anchor)&&(l.props.anchor=u==null?void 0:u.anchor);var c=J.get(t,["a:tcPr"]);J.get(c,["a:lnR"])&&(l.props.border.right=Zm(J.get(c,["a:lnR"]),this.theme,this.ctx)),J.get(c,["a:lnL"])&&(l.props.border.left=Zm(J.get(c,["a:lnL"]),this.theme,this.ctx)),J.get(c,["a:lnT"])&&(l.props.border.top=Zm(J.get(c,["a:lnT"]),this.theme,this.ctx)),J.get(c,["a:lnB"])&&(l.props.border.bottom=Zm(J.get(c,["a:lnB"]),this.theme,this.ctx)),((i=t==null?void 0:t.attrs)===null||i===void 0?void 0:i.rowSpan)&&(l.props.rowSpan=parseInt(t.attrs.rowSpan)),((n=t==null?void 0:t.attrs)===null||n===void 0?void 0:n.gridSpan)&&(l.props.gridSpan=parseInt(t.attrs.gridSpan)),((a=t==null?void 0:t.attrs)===null||a===void 0?void 0:a.vMerge)&&(l.props.vMerge=t.attrs.vMerge==="1"),((o=t==null?void 0:t.attrs)===null||o===void 0?void 0:o.hMerge)&&(l.props.hMerge=t.attrs.hMerge==="1");var f=J.get(t,["a:tcPr","a:solidFill"]);f&&(l.props.background=di(f,this.theme,this.ctx));var p=J.get(t,["a:txBody"]),h=J.get(p,["a:p"]);return Array.isArray(h)||(h=[h]),l.paragraphs=h.map(function(v){return s._parseParagraph(v)}),l},e.prototype._parseParagraph=function(t){var i=this,n={props:{},inheritProps:{},inheritRProps:{},endParaRProps:{},rows:[]},a=J.get(t,["a:pPr"])||{};n.props=this._formatPPr(a);var o=J.get(t,["a:endParaRPr"]);n.endParaRProps=this._formatRPr(o);var s=J.get(t,["a:r"])||[];Array.isArray(s)||(s=[s]);var l=J.get(t,["a:br"])||[];return Array.isArray(l)||(l=[l]),(s=s.concat(l.map(function(u){return Jt({isBr:!0},u)}))).sort(function(u,c){return J.get(u,["attrs","order"])-J.get(c,["attrs","order"])}),n.rows=s.map(function(u){return i._parseRow(u)}),n},e.prototype._parseRow=function(t){if(t.isBr)return{isBr:!0};var i={props:{},text:""},n=J.get(t,["a:rPr"])||{};return i.props=this._formatRPr(n),i.text=J.get(t,"a:t")||"",i},e.prototype._formatPPr=function(t){var i={},n=J.get(t,"attrs")||{};return Object.keys(n).forEach(function(a){if(a==="algn")i.align=n[a]}),J.get(t,["a:lnSpc","a:spcPct","attrs","val"])&&(i.lineHeight=parseInt(t["a:lnSpc"]["a:spcPct"].attrs.val)/1e5),J.get(t,["a:buAutoNum","attrs","type"])&&(i.buAutoNum=t["a:buAutoNum"].attrs.type),J.get(t,["a:buChar","attrs","char"])&&(i.buChar=t["a:buChar"].attrs.char),J.get(t,["a:spcBef","a:spcPts","attrs","val"])&&(i.spaceBefore=lC(parseInt(t["a:spcBef"]["a:spcPts"].attrs.val))),J.get(t,["a:spcAft","a:spcPts","attrs","val"])&&(i.spaceAfter=lC(parseInt(t["a:spcAft"]["a:spcPts"].attrs.val))),i},e.prototype._formatRPr=function(t){var i={},n=J.get(t,"attrs")||{};Object.keys(n).forEach(function(s){switch(s){case"sz":i.size=parseInt(n[s])/100;break;case"b":i.bold=n[s]==="1";break;case"i":i.italic=n[s]==="1";break;case"u":i.underline=n[s];break;case"strike":i.strike=n[s];break;case"order":case"dirty":break;default:i[s]=n[s]}});var a=J.get(t,"a:solidFill");a&&(i.color=di(a,this.theme,this.ctx));var o=J.get(t,"a:highlight");return o&&(i.background=di(o,this.theme,this.ctx)),i.typeface=J.get(t,["a:ea","attrs","typeface"]),i},e.prototype._isLastCol=function(t,i){var n,a;if(i===t.length-1)return!0;for(var o=i+1;o<t.length;o++)if(!((n=t[o].props)===null||n===void 0?void 0:n.hMerge)&&!((a=t[o].props)===null||a===void 0?void 0:a.vMerge))return!1;return!0},e.prototype._isBandRow=function(t){var i;return((i=this.props)===null||i===void 0?void 0:i.firstRow)?t%2==1:t%2==0},e.prototype._isBandCol=function(t){var i;return((i=this.props)===null||i===void 0?void 0:i.firstCol)?t%2==1:t%2==0},e.prototype._parseInheritStyles=function(){var t,i,n,a,o,s,l,u,c=this,f=(i=(t=this.tableStyles)===null||t===void 0?void 0:t.wholeTbl)===null||i===void 0?void 0:i.tcStyle,p=(a=(n=this.tableStyles)===null||n===void 0?void 0:n.wholeTbl)===null||a===void 0?void 0:a.tcTxStyle,h=(s=(o=this.slideMaster.defaultTextStyle)===null||o===void 0?void 0:o.lvl1)===null||s===void 0?void 0:s.props,v=(u=(l=this.slideMaster.defaultTextStyle)===null||l===void 0?void 0:l.lvl1)===null||u===void 0?void 0:u.defRPr;this.tr.forEach(function(g,y){g.td.forEach(function(m,d){var x,S,w,T,A,M,D,L,I,E,R,B,z,V,H,K,F,G,rt,ot,at,mt,Tt,Ut,qt,Zt,Rt,oe,Vt,N,vt,ut,q,X,lt,At,Ct,pt,Ht,ie,Kt,_e,gr,Ge,si,Ga,Wi,Ha,Ir,xo,ds,en,ol,ou,Zf,jf,$e=Jt(Jt({},h),f),Vr=Jt(Jt({},v),p);c.props.firstRow&&y===0?($e=Jt(Jt(Jt({},$e),(S=(x=c.tableStyles)===null||x===void 0?void 0:x.firstRow)===null||S===void 0?void 0:S.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(A=(T=(w=c.tableStyles)===null||w===void 0?void 0:w.firstRow)===null||T===void 0?void 0:T.tcStyle)===null||A===void 0?void 0:A.border)}),Vr=Jt(Jt({},Vr),(D=(M=c.tableStyles)===null||M===void 0?void 0:M.firstRow)===null||D===void 0?void 0:D.tcTxStyle)):c.props.lastRow&&y===c.tr.length-1?($e=Jt(Jt(Jt({},$e),(I=(L=c.tableStyles)===null||L===void 0?void 0:L.lastRow)===null||I===void 0?void 0:I.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(B=(R=(E=c.tableStyles)===null||E===void 0?void 0:E.lastRow)===null||R===void 0?void 0:R.tcStyle)===null||B===void 0?void 0:B.border)}),Vr=Jt(Jt({},Vr),(V=(z=c.tableStyles)===null||z===void 0?void 0:z.lastRow)===null||V===void 0?void 0:V.tcTxStyle)):c.props.firstCol&&d===0?($e=Jt(Jt(Jt({},$e),(K=(H=c.tableStyles)===null||H===void 0?void 0:H.firstCol)===null||K===void 0?void 0:K.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(rt=(G=(F=c.tableStyles)===null||F===void 0?void 0:F.firstCol)===null||G===void 0?void 0:G.tcStyle)===null||rt===void 0?void 0:rt.border)}),Vr=Jt(Jt({},Vr),(at=(ot=c.tableStyles)===null||ot===void 0?void 0:ot.firstCol)===null||at===void 0?void 0:at.tcTxStyle)):c.props.lastCol&&c._isLastCol(g.td,d)?($e=Jt(Jt(Jt({},$e),(Tt=(mt=c.tableStyles)===null||mt===void 0?void 0:mt.lastCol)===null||Tt===void 0?void 0:Tt.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(Zt=(qt=(Ut=c.tableStyles)===null||Ut===void 0?void 0:Ut.lastCol)===null||qt===void 0?void 0:qt.tcStyle)===null||Zt===void 0?void 0:Zt.border)}),Vr=Jt(Jt({},Vr),(oe=(Rt=c.tableStyles)===null||Rt===void 0?void 0:Rt.lastCol)===null||oe===void 0?void 0:oe.tcTxStyle)):(c.props.bandRow&&(c._isBandRow(y)?($e=Jt(Jt(Jt({},$e),(N=(Vt=c.tableStyles)===null||Vt===void 0?void 0:Vt.band1H)===null||N===void 0?void 0:N.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(q=(ut=(vt=c.tableStyles)===null||vt===void 0?void 0:vt.band1H)===null||ut===void 0?void 0:ut.tcStyle)===null||q===void 0?void 0:q.border)}),Vr=Jt(Jt({},Vr),(lt=(X=c.tableStyles)===null||X===void 0?void 0:X.band1H)===null||lt===void 0?void 0:lt.tcTxStyle)):($e=Jt(Jt(Jt({},$e),(Ct=(At=c.tableStyles)===null||At===void 0?void 0:At.band2V)===null||Ct===void 0?void 0:Ct.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(ie=(Ht=(pt=c.tableStyles)===null||pt===void 0?void 0:pt.band2V)===null||Ht===void 0?void 0:Ht.tcStyle)===null||ie===void 0?void 0:ie.border)}),Vr=Jt(Jt({},Vr),(_e=(Kt=c.tableStyles)===null||Kt===void 0?void 0:Kt.band2V)===null||_e===void 0?void 0:_e.tcTxStyle))),c.props.bandCol&&(c._isBandCol(d)?($e=Jt(Jt(Jt({},$e),(Ge=(gr=c.tableStyles)===null||gr===void 0?void 0:gr.band1V)===null||Ge===void 0?void 0:Ge.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(Wi=(Ga=(si=c.tableStyles)===null||si===void 0?void 0:si.band1V)===null||Ga===void 0?void 0:Ga.tcStyle)===null||Wi===void 0?void 0:Wi.border)}),Vr=Jt(Jt({},Vr),(Ir=(Ha=c.tableStyles)===null||Ha===void 0?void 0:Ha.band1V)===null||Ir===void 0?void 0:Ir.tcTxStyle)):($e=Jt(Jt(Jt({},$e),(ds=(xo=c.tableStyles)===null||xo===void 0?void 0:xo.band2H)===null||ds===void 0?void 0:ds.tcStyle),{border:Jt(Jt({},$e==null?void 0:$e.border),(ou=(ol=(en=c.tableStyles)===null||en===void 0?void 0:en.band2H)===null||ol===void 0?void 0:ol.tcStyle)===null||ou===void 0?void 0:ou.border)}),Vr=Jt(Jt({},Vr),(jf=(Zf=c.tableStyles)===null||Zf===void 0?void 0:Zf.band2H)===null||jf===void 0?void 0:jf.tcTxStyle)))),m.inheritTcStyle=$e,m.inheritTcTxStyle=Vr})})},e}(x_),Nz=function(){function r(e,t,i,n){if(this.offset={x:0,y:0},this.chOffset={x:0,y:0},this.extend={w:0,h:0},this.chExtend={w:0,h:0},this.rotate=0,this.nodes=[],this.flipV=!1,this.flipH=!1,this.userDrawn=!0,this.order=J.get(e,["attrs","order"]),this.pptx=t,this.ctx=i,this.source=e,this.group=n,this.source["p:grpSpPr"]){var a=J.get(this.source,["p:grpSpPr","a:xfrm"]);if(a&&(this.offset={x:Math.round(this.group&&this.pptx.wps?nu(parseInt(a["a:off"].attrs.x)):Tr(parseInt(a["a:off"].attrs.x))),y:Math.round(this.group&&this.pptx.wps?nu(parseInt(a["a:off"].attrs.y)):Tr(parseInt(a["a:off"].attrs.y)))},this.chOffset={x:Math.round(Ym(a["a:chOff"].attrs.x)==="point"||this.pptx.wps?nu(parseInt(a["a:chOff"].attrs.x)):Tr(parseInt(a["a:chOff"].attrs.x))),y:Math.round(Ym(a["a:chOff"].attrs.y)==="point"||this.pptx.wps?nu(parseInt(a["a:chOff"].attrs.y)):Tr(parseInt(a["a:chOff"].attrs.y)))},this.chExtend={w:Math.round(Ym(a["a:chExt"].attrs.cx)==="point"||this.pptx.wps?nu(parseInt(a["a:chExt"].attrs.cx)):Tr(parseInt(a["a:chExt"].attrs.cx))),h:Math.round(Ym(a["a:chExt"].attrs.cy)==="point"||this.pptx.wps?nu(parseInt(a["a:chExt"].attrs.cy)):Tr(parseInt(a["a:chExt"].attrs.cy)))},this.extend={w:Math.round(this.group&&this.pptx.wps?nu(parseInt(a["a:ext"].attrs.cx)):Tr(parseInt(a["a:ext"].attrs.cx))),h:Math.round(this.group&&this.pptx.wps?nu(parseInt(a["a:ext"].attrs.cy)):Tr(parseInt(a["a:ext"].attrs.cy)))},this.rotate=fC(parseInt(J.get(a,"attrs.rot",0))),this.flipV=J.get(a,"attrs.flipV")==="1",this.flipH=J.get(a,"attrs.flipH")==="1"),n){var{extend:o,chExtend:s,chOffset:l}=n,u=o.w/s.w,c=o.h/s.h;this.extend.w=this.extend.w*u,this.extend.h=this.extend.h*c,this.offset.x=(this.offset.x-l.x)*u,this.offset.y=(this.offset.y-l.y)*c}}this._parseBackground(),this._parseNodes()}return r.prototype.getBackground=function(){return this.background&&this.background.type!=="none"?this.background:this.group?this.group.getBackground():void 0},r.prototype._parseBackground=function(){var e=J.get(this.source,["p:grpSpPr"]);e&&e["a:solidFill"]?this.background=di(e["a:solidFill"],this.ctx.theme,this.ctx):e&&e["a:gradFill"]?this.background=__(e["a:gradFill"],this.ctx.theme,this.ctx):e&&e["a:blipFill"]&&(this.background=y_(e["a:blipFill"],this.pptx,this.ctx))},r.prototype._parseNodes=function(){var e=this.source;S_(this.nodes,e,this.pptx,this.ctx,this)},r}(),znt=function(r){function e(t,i,n,a){var o=r.call(this,t,n,a)||this;return o.nodes=[],o.pptx=i,o}return dd(e,r),e.prototype.parseNode=function(){return Mi(this,void 0,void 0,function(){var t,i,n,a,o,s,l,u,c;return Li(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),(t=J.get(this.source,["a:graphic","a:graphicData","dgm:relIds","attrs","r:dm"]))&&this.ctx.rels[t]?(i=this.ctx.rels[t].target,a=Fa,[4,this.pptx.getXmlByPath(i)]):[2];case 1:return n=a.apply(void 0,[f.sent()]),(o=J.get(n,["dgm:dataModel","dgm:extLst","a:ext","dsp:dataModelExt","attrs","relId"]))&&this.ctx.rels[o]?(s=this.ctx.rels[o].target,[4,this.pptx.getXmlByPath(s)]):[2];case 2:return l=(l=f.sent()).replace(/dsp:/g,"p:"),u=Fa(l),c=J.get(u,["p:drawing","p:spTree"]),S_(this.nodes,c,this.pptx,this.ctx),[3,4];case 3:return f.sent(),[3,4];case 4:return[2]}})})},e}(x_),Bnt=function(r){function e(t,i,n,a){var o=r.call(this,t,n,a)||this;return o.options={title:{},tooltip:{},legend:{},series:[],color:[]},o.userDrawn=!0,o.pptx=i,o}return dd(e,r),Object.defineProperty(e.prototype,"slideMaster",{get:function(){return this.ctx.slideMaster||this.ctx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),e.prototype.parseNode=function(){return Mi(this,void 0,void 0,function(){var t,i,n,a,o,s;return Li(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),(t=J.get(this.source,["a:graphic","a:graphicData","c:chart","attrs","r:id"]))&&this.ctx.rels[t]?(i=this.ctx.rels[t].target,a=Fa,[4,this.pptx.getXmlByPath(i)]):[2];case 1:return n=a.apply(void 0,[l.sent()]),o=J.get(n,["c:chartSpace","c:chart"]),s=J.get(o,["c:plotArea"]),J.get(s,["c:lineChart"])?this.parseLine(J.get(s,["c:lineChart"]),o):J.get(s,["c:line3DChart"])?this.parseLine(J.get(s,["c:line3DChart"]),o):J.get(s,["c:areaChart"])?this.parseAreaLine(J.get(s,["c:areaChart"]),o):J.get(s,["c:area3DChart"])?this.parseAreaLine(J.get(s,["c:area3DChart"]),o):J.get(s,["c:barChart"])?this.parseBar(J.get(s,["c:barChart"]),o):J.get(s,["c:bar3DChart"])?this.parseBar(J.get(s,["c:bar3DChart"]),o):J.get(s,["c:pieChart"])?this.parsePie(J.get(s,["c:pieChart"])):J.get(s,["c:pie3DChart"])?this.parsePie(J.get(s,["c:pie3DChart"])):J.get(s,["c:doughnutChart"])&&this.parseDoughnutChart(J.get(s,["c:doughnutChart"])),[3,3];case 2:return l.sent(),[3,3];case 3:return[2]}})})},e.prototype.parseAreaLine=function(t,i){this.parseLine(t,i),this.options.series=this.options.series.map(function(n){return n.areaStyle={},n})},e.prototype.parseLine=function(t,i){var n=J.get(t,["c:ser"]);Array.isArray(n)||(n=[n]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(J.get(i,["c:title"]))},this.options.xAxis={type:"category",data:this.getCategory(n[0])},this.options.yAxis={type:"value"},this.options.series=this.parseLineSeries(n,t),this.options.color=this.parseLineColors(n),this.options.legend={bottom:"bottom",left:"center"},J.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},e.prototype.parseBar=function(t,i){var n=J.get(t,["c:ser"]);Array.isArray(n)||(n=[n]),this.options.title={top:"top",left:"center",text:this.parseChartTitle(J.get(i,["c:title"]))},J.get(t,["c:barDir","attrs","val"])==="bar"?(this.options.yAxis={type:"category",data:this.getCategory(n[0])},this.options.xAxis={type:"value"}):(this.options.xAxis={type:"category",data:this.getCategory(n[0])},this.options.yAxis={type:"value"}),this.options.series=this.parseBarSeries(n,t),this.options.color=this.parseBarColors(n),this.options.legend={bottom:"bottom",left:"center"},J.get(t,["c:grouping","attrs","val"])==="percentStacked"&&(this.options.tooltip.valueFormatter=function(a){return(100*a).toFixed(2)+"%"})},e.prototype.parsePie=function(t){var i=J.get(t,["c:ser"]);this.options.title={top:"top",left:"center",text:this.parsePieTitle(i)},this.options.color=this.parsePieColors(i),this.options.series=[this.parsePieSeries(i,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parseDoughnutChart=function(t){var i=J.get(t,["c:ser"]);this.options.title.text=this.parsePieTitle(i),this.options.color=this.parsePieColors(i),this.options.series=[this.parsePieSeries(i,t)],this.options.legend={bottom:"bottom",left:"center"}},e.prototype.parsePieTitle=function(t){return J.get(t,["c:tx","c:strRef","c:strCache","c:pt","c:v"])},e.prototype.parseChartTitle=function(t){var i=J.get(t,["c:tx","c:rich","a:p"]);return Array.isArray(i)||(i=[i]),i.map(function(n){var a=J.get(n,["a:r"]);return Array.isArray(a)||(a=[a]),a.map(function(o){return J.get(o,["a:t"])||""}).join("")}).join("")||"图表标题"},e.prototype.parseBarColors=function(t){var i=this;return t.map(function(n){return hr(di(J.get(n,["c:spPr","a:solidFill"]),i.theme,i.ctx))})},e.prototype.parseLineColors=function(t){var i=this;return t.map(function(n){return hr(di(J.get(n,["c:spPr","a:ln","a:solidFill"])||J.get(n,["c:spPr","a:solidFill"]),i.theme,i.ctx))})},e.prototype.parsePieColors=function(t){var i=this,n=[],a=J.get(t,["c:dPt"]);return Array.isArray(a)||(a=[a]),a.forEach(function(o){n.push(hr(di(J.get(o,["c:spPr","a:solidFill"]),i.theme,i.ctx)))}),n},e.prototype.parsePieSeries=function(t,i){var n={type:"pie",radius:"80%",startAngle:90,data:[]};J.get(i,["c:holeSize","attrs","val"])&&(n.radius=["".concat(0.8*J.get(i,["c:holeSize","attrs","val"]),"%"),"80%"]);var a=J.get(i,["c:firstSliceAng","attrs","val"]);a&&(n.startAngle=90-a);for(var o=this.getCategory(t),s=this.getVal(t),l=0;l<o.length;l++)n.data.push({name:o[l],value:s[l]});return n},e.prototype.parseBarSeries=function(t,i){var n,a=this,o=J.get(i,["c:grouping","attrs","val"]);o==="stacked"?n="Ad":o==="percentStacked"&&(n="total");var s=t.map(function(u){return{type:"bar",name:J.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(u),stack:n}});if(o==="percentStacked"){var l=[];s.forEach(function(u,c){l=c===0?vd([],u.data,!0):l.map(function(f,p){return f+u.data[p]})}),s.forEach(function(u){u.data=u.data.map(function(c,f){return l[f]<=0?0:c/l[f]})})}return s},e.prototype.parseLineSeries=function(t,i){var n,a=this,o=J.get(i,["c:grouping","attrs","val"]);o==="stacked"?n="Ad":o==="percentStacked"&&(n="total");var s=t.map(function(u){return{type:"line",name:J.get(u,["c:tx","c:strRef","c:strCache","c:pt","c:v"]),data:a.getVal(u),stack:n}});if(n==="total"){var l=[];s.forEach(function(u,c){l=c===0?vd([],u.data,!0):l.map(function(f,p){return f+u.data[p]})}),s.forEach(function(u){u.data=u.data.map(function(c,f){return l[f]<=0?0:c/l[f]})})}return s},e.prototype.getCategory=function(t){if(J.get(t,["c:cat","c:strRef"])){var i=J.get(t,["c:cat","c:strRef","c:strCache","c:pt"]);return Array.isArray(i)||(i=[i]),i.map(function(n){return J.get(n,["c:v"])})}if(J.get(t,["c:cat","c:numRef"]))return i=J.get(t,["c:cat","c:numRef","c:numCache","c:pt"]),Array.isArray(i)||(i=[i]),i.map(function(n){return J.get(n,["c:v"])})},e.prototype.getVal=function(t){var i=J.get(t,["c:val","c:numRef","c:numCache","c:pt"]);return Array.isArray(i)||(i=[i]),i.map(function(n){return+J.get(n,["c:v"])})},e}(x_);QLt=function(){function r(e,t,i){this.slideType="slide",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=i}return Object.defineProperty(r.prototype,"index",{get:function(){if(!this.name)return 0;var e=this.name.match(/(\d+)/);return e?parseInt(e[0]):1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"slideMaster",{get:function(){return this.slideLayout&&this.slideLayout.slideMaster},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slides/slide","slides/_rels/slide")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Mi(this,void 0,void 0,function(){return Li(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),this._loadBackground(),[4,this._loadNodes()];case 2:return e.sent(),[2]}})})},r.prototype._loadRels=function(){return Mi(this,void 0,void 0,function(){var e,t,i,n=this;return Li(this,function(a){switch(a.label){case 0:return t=Fa,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[a.sent()]),i=J.get(e,["Relationships","Relationship"])||[],Array.isArray(i)||(i=[i]),i.forEach(function(o){switch(J.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),n.slideLayout=n.pptx.getSlideLayout(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramLayout":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData":case"http://schemas.microsoft.com/office/2007/relationships/diagramDrawing":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramColors":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),n.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){var e=J.get(this.source,["p:sld","p:cSld","p:bg","p:bgPr"]);e&&e["a:solidFill"]?this.background=di(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=__(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=y_(e["a:blipFill"],this.pptx,this))},r.prototype._loadNodes=function(){return Mi(this,void 0,void 0,function(){var e;return Li(this,function(t){switch(t.label){case 0:return e=J.get(this.source,["p:sld","p:cSld","p:spTree"]),[4,S_(this.nodes,e,this.pptx,this)];case 1:return t.sent(),[2]}})})},r.prototype.getColorThemeName=function(e){return this.slideLayout.getColorThemeName(e)},r.prototype.getNodeInheritAttrsByType=function(e,t){var i=this.slideLayout.getNodeByType(e),n=J.get(i.source,t);return n||this.slideLayout.getNodeInheritAttrsByType(e,t)},r.prototype.getNodeInheritAttrsByIdx=function(e,t){var i=this.slideLayout.getNodeByIdx(e),n=J.get(i.source,t);return n||this.slideLayout.getNodeInheritAttrsByIdx(e,t)},r}(),tDt=function(){function r(e,t,i){this.slideType="slideLayout",this.rels={},this.background={type:"none"},this.nodes=[],this.name=e,this.source=t,this.pptx=i}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideLayouts/slideLayout","slideLayouts/_rels/slideLayout")+".rels"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"theme",{get:function(){return this.slideMaster.theme},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Mi(this,void 0,void 0,function(){return Li(this,function(e){switch(e.label){case 0:return[4,this._loadRels()];case 1:return e.sent(),[4,this._loadBackground()];case 2:return e.sent(),[4,this._loadNodes()];case 3:return e.sent(),[2]}})})},r.prototype._loadRels=function(){return Mi(this,void 0,void 0,function(){var e,t,i,n=this;return Li(this,function(a){switch(a.label){case 0:return t=Fa,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[a.sent()]),i=J.get(e,["Relationships","Relationship"])||[],Array.isArray(i)||(i=[i]),i.forEach(function(o){switch(J.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),n.slideMaster=n.pptx.getSlideMaster(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),n.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._loadBackground=function(){return Mi(this,void 0,void 0,function(){var e;return Li(this,function(t){return(e=J.get(this.source,["p:sldLayout","p:cSld","p:bg","p:bgPr"]))&&e["a:solidFill"]?this.background=di(e["a:solidFill"],this.theme):e&&e["a:gradFill"]?this.background=__(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]&&(this.background=y_(e["a:blipFill"],this.pptx,this)),[2]})})},r.prototype._loadNodes=function(){return Mi(this,void 0,void 0,function(){var e;return Li(this,function(t){return e=J.get(this.source,["p:sldLayout","p:cSld","p:spTree"]),S_(this.nodes,e,this.pptx,this),[2]})})},r.prototype.getColorThemeName=function(e){return this.slideMaster.getColorThemeName(e)},r.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},r.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},r.prototype.getNodeInheritAttrsByType=function(e,t){var i=this.slideMaster.getNodeByType(e);return i&&J.get(i.source,t)},r.prototype.getNodeInheritAttrsByIdx=function(e,t){var i=this.slideMaster.getNodeByIdx(e);return i&&J.get(i.source,t)},r}(),eDt=function(){function r(e,t,i){this.slideType="slideMaster",this.rels={},this.background={type:"none"},this.textStyles={titleStyle:{},bodyStyle:{},otherStyle:{}},this.defaultTextStyle={},this.nodes=[],this.tableStyles={},this.name=e,this.source=t,this.pptx=i,this.load()}return Object.defineProperty(r.prototype,"_relsPath",{get:function(){return this.name.replace("slideMasters/slideMaster","slideMasters/_rels/slideMaster")+".rels"},enumerable:!1,configurable:!0}),r.prototype.load=function(){return Mi(this,void 0,void 0,function(){return Li(this,function(e){switch(e.label){case 0:return[4,this._parseRels()];case 1:return e.sent(),this._parseColorMap(),this._parseBackground(),this._parseTextStyles(),this._parseTableStyles(),this._parseDefaultTextStyle(),this._loadNodes(),[2]}})})},r.prototype._parseRels=function(){return Mi(this,void 0,void 0,function(){var e,t,i,n=this;return Li(this,function(a){switch(a.label){case 0:return t=Fa,[4,this.pptx.getXmlByPath(this._relsPath)];case 1:return e=t.apply(void 0,[a.sent()]),i=J.get(e,["Relationships","Relationship"])||[],Array.isArray(i)||(i=[i]),i.forEach(function(o){switch(J.get(o,["attrs","Type"])){case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme":var s=o.attrs.Target.replace("../","ppt/");s.startsWith("/ppt")&&(s=s.substr(1)),n.theme=n.pptx.getTheme(s);break;case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio":case"http://schemas.microsoft.com/office/2007/relationships/media":case"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video":var l=o.attrs.Target.replace("../","ppt/");l.startsWith("/ppt")&&(l=l.substr(1)),n.rels[o.attrs.Id]={type:o.attrs.Type.split("/").pop(),target:l}}}),[2]}})})},r.prototype._parseColorMap=function(){this.colorMap=J.omit(J.get(this.source,["p:sldMaster","p:clrMap","attrs"])||{},["order"])},r.prototype.getColorThemeName=function(e){return this.colorMap[e]||e},r.prototype._parseBackground=function(){var e=J.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgPr"]),t=J.get(this.source,["p:sldMaster","p:cSld","p:bg","p:bgRef"]);e&&e["a:solidFill"]?this.background=di(e["a:solidFill"],this.theme,this):e&&e["a:gradFill"]?this.background=__(e["a:gradFill"],this.theme,this):e&&e["a:blipFill"]?this.background=y_(e["a:blipFill"],this.pptx,this):t&&(this.background=di(t,this.theme,this))},r.prototype._parseDefaultTextStyle=function(){var e=this,t=this.pptx.defaultTextStyleSource;Object.keys(t).forEach(function(i){if(i.startsWith("a:")&&i.endsWith("pPr")){var n=i.substr(2,i.length-5),a=J.get(t[i],["a:defRPr"]);e.defaultTextStyle[n]={props:bnt(t[i]),defRPr:wnt(a,e.theme,e)}}})},r.prototype._parseTextStyles=function(){var e=this,t=J.get(this.source,["p:sldMaster","p:txStyles"]);["titleStyle","bodyStyle","otherStyle"].forEach(function(i){var n=e.textStyles[i],a=J.get(t,"p:".concat(i))||{};Object.keys(a).forEach(function(o){if(o.startsWith("a:")&&o.endsWith("pPr")){var s=o.substr(2,o.length-5);n[s]={},n[s].props=bnt(a[o]);var l=J.get(a[o],["a:defRPr"]);n[s].defRPr=wnt(l,e.theme,e)}})})},r.prototype._parseTableStyles=function(){var e=this,t={},i=J.get(this.pptx.tableStyles,["a:tblStyleLst","a:tblStyle"])||[];Array.isArray(i)||(i=[i]),i.forEach(function(n){var a=J.get(n,["attrs","styleId"]);t[a]={},Object.keys(n).forEach(function(o){if(o.startsWith("a:")){var s=o.substr(2);t[a][s]={};var l=J.get(n[o],["a:tcStyle"]);if(l){var u={};J.get(l,["a:fill","a:solidFill"])&&(u.background=di(J.get(l,["a:fill","a:solidFill"]),e.theme,e));var c=J.get(l,"a:tcBdr");c&&(u.border={},Object.keys(c).forEach(function(h){if(h.startsWith("a:")){var v=h.substr(2),g=J.get(c[h],["a:ln"]);u.border[v]=Zm(g,e.theme,e)}})),t[a][s].tcStyle=u}var f=J.get(n[o],["a:tcTxStyle"]);if(f){var p={};p.color=di(f,e.theme,e),J.get(f,["attrs","b"])==="on"&&(p.bold=!0),t[a][s].tcTxStyle=p}}})}),this.tableStyles=t},r.prototype._loadNodes=function(){return Mi(this,void 0,void 0,function(){var e;return Li(this,function(t){return e=J.get(this.source,["p:sldMaster","p:cSld","p:spTree"]),S_(this.nodes,e,this.pptx,this),[2]})})},r.prototype.getNodeByType=function(e){return this.nodes.find(function(t){return t.type===e})},r.prototype.getNodeByIdx=function(e){return this.nodes.find(function(t){return t.idx===e})},r.prototype.getNodeInheritAttrsByType=function(e,t){},r.prototype.getNodeInheritAttrsByIdx=function(e,t){},r}(),rDt=function(){function r(e,t,i){this.clrScheme={},this.borderScheme=[],this.name=e,this.source=t,this.pptx=i,this._parseClrScheme(),this._parseLineStyleLst()}return r.prototype._parseClrScheme=function(){var e=J.get(this.source,["a:theme","a:themeElements","a:clrScheme"]);for(var t in e)if(t.startsWith("a:")){var i=t.substring(2),n=J.get(e[t],["a:sysClr","attrs","lastClr"])||J.get(e[t],["a:srgbClr","attrs","val"]);this.clrScheme[i]="#"+n}},r.prototype._parseLineStyleLst=function(){var e=this,t=J.get(this.source,["a:theme","a:themeElements","a:fmtScheme","a:lnStyleLst","a:ln"])||[];this.borderScheme=t.map(function(i){var n={color:{}};return J.get(i,["attrs","w"])&&(n.width=Tr(parseInt(J.get(i,["attrs","w"])))),J.get(i,["attrs","algn"])&&(n.algn=J.get(i,["attrs","algn"])),J.get(i,["attrs","cap"])&&(n.cap=J.get(i,["attrs","cap"])),J.get(i,["attrs","cmpd"])&&(n.cmpd=J.get(i,["attrs","cmpd"])),J.get(i,["a:miter","attrs","lim"])&&(n.miterLim=Tr(parseInt(J.get(i,["a:miter","attrs","lim"])))),J.get(i,["a:prstDash","attrs","val"])&&(n.type=J.get(i,["a:prstDash","attrs","val"])),J.get(i,["a:solidFill"])&&(n.color=di(J.get(i,["a:solidFill"]),e)),n})},r.prototype.getColor=function(e){if(e!=="phClr")return this.clrScheme[e]||this.defaultColor},r.prototype.getLineStyle=function(e){return this.borderScheme[e-1]},r}(),Tnt=function(){function r(){this.slides=[],this.slideLayouts=[],this.slideMaster=[],this.themes=[],this.medias={},this.wps=!1}return r.prototype.load=function(e){return Mi(this,void 0,void 0,function(){var t,i;return Li(this,function(n){switch(n.label){case 0:return t=new Ont.default,i=this,[4,t.loadAsync(e)];case 1:return i._zipContents=n.sent(),[4,this._loadThumbnail()];case 2:return n.sent(),[4,this._loadMedia()];case 3:return n.sent(),[4,this._loadPresentation()];case 4:return n.sent(),[4,this._loadContentTypes()];case 5:return n.sent(),[2]}})})},r.prototype._loadThumbnail=function(){return Mi(this,void 0,void 0,function(){var e;return Li(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this._zipContents.files["docProps/thumbnail.jpeg"]?[4,this._zipContents.files["docProps/thumbnail.jpeg"].async("base64")]:[3,2];case 1:e=t.sent(),this.thumbnail="data:image/jpeg;base64,"+e,t.label=2;case 2:return[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}})})},r.prototype._loadPresentation=function(){return Mi(this,void 0,void 0,function(){var e,t,i,n,a,o;return Li(this,function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),[4,this._zipContents.files["ppt/presentation.xml"].async("text")];case 1:return e=s.sent(),t=Fa(e),i=t["p:presentation"]["p:sldSz"].attrs,this.width=Tr(parseInt(i.cx)),this.height=Tr(parseInt(i.cy)),this.defaultTextStyleSource=J.get(t,["p:presentation","p:defaultTextStyle"]),this._zipContents.files["docProps/app.xml"]?[4,this._zipContents.files["docProps/app.xml"].async("text")]:[3,3];case 2:n=s.sent(),a=Fa(n),o=J.get(a,["Properties","Application"]),this.wps=(o==null?void 0:o.includes("WPS"))||!1,s.label=3;case 3:return[3,5];case 4:return s.sent(),[3,5];case 5:return[2]}})})},r.prototype._loadContentTypes=function(){return Mi(this,void 0,void 0,function(){var e,t,i,n,a,o,s,l,u,c,f,p,h,v,g,y,m,d,x,S,w;return Li(this,function(T){switch(T.label){case 0:return T.trys.push([0,22,,23]),t=Fa,[4,this._zipContents.files["[Content_Types].xml"].async("text")];case 1:if(e=t.apply(void 0,[T.sent()]),i=e.Types.Override,!(n=i.filter(function(A){return A.attrs.ContentType==="application/vnd.openxmlformats-officedocument.theme+xml"})))return[3,5];a=0,o=n,T.label=2;case 2:return a<o.length?(s=o[a],d=s.attrs.PartName.substr(1),l=Fa,[4,this._zipContents.files[d].async("text")]):[3,5];case 3:x=l.apply(void 0,[T.sent()]),this.themes.push(new rDt(d,x,this)),T.label=4;case 4:return a++,[3,2];case 5:return(u=i.find(function(A){return A.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"}))?(d=u.attrs.PartName.substr(1),c=Fa,[4,this._zipContents.files[d].async("text")]):[3,7];case 6:x=c.apply(void 0,[T.sent()]),this.tableStyles=x,T.label=7;case 7:f=i.filter(function(A){return A.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"}),m=0,T.label=8;case 8:return m<f.length?(d=f[m].attrs.PartName.substr(1),p=Fa,[4,this._zipContents.files[d].async("text")]):[3,11];case 9:x=p.apply(void 0,[T.sent()]),this.slideMaster.push(new eDt(d,x,this)),T.label=10;case 10:return m++,[3,8];case 11:h=i.filter(function(A){return A.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"}),m=0,T.label=12;case 12:return m<h.length?(d=h[m].attrs.PartName.substr(1),v=Fa,[4,this._zipContents.files[d].async("text")]):[3,16];case 13:return x=v.apply(void 0,[T.sent()]),[4,(g=new tDt(d,x,this)).load()];case 14:T.sent(),this.slideLayouts.push(g),T.label=15;case 15:return m++,[3,12];case 16:y=i.filter(function(A){return A.attrs.ContentType==="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"}),m=0,T.label=17;case 17:return m<y.length?(d=y[m].attrs.PartName.substr(1),S=Fa,[4,this._zipContents.files[d].async("text")]):[3,21];case 18:return x=S.apply(void 0,[T.sent()]),[4,(w=new QLt(d,x,this)).load()];case 19:T.sent(),this.slides.push(w),T.label=20;case 20:return m++,[3,17];case 21:return this.slides.sort(function(A,M){return A.index-M.index}),[3,23];case 22:return T.sent(),[3,23];case 23:return[2]}})})},r.prototype._loadMedia=function(){return Mi(this,void 0,void 0,function(){var e,t,i,n,a,o,s,l,u,c,f,p,h,v=this;return Li(this,function(g){switch(g.label){case 0:e=Object.keys(this._zipContents.files).filter(function(m){return m.startsWith("ppt/media/image")}).map(function(m){return v._zipContents.files[m]}),t=0,i=e,g.label=1;case 1:return t<i.length?(n=i[t],a=function(m){var d;switch(m){case"jpg":case"jpeg":d="image/jpeg";break;case"png":d="image/png";break;case"gif":d="image/gif";break;case"emf":d="image/x-emf";break;case"wmf":d="image/x-wmf";break;default:d="image/*"}return d}((y=n.name).substr(2+(~-y.lastIndexOf(".")>>>0))),[4,n.async("base64")]):[3,4];case 2:o=g.sent(),this.medias[n.name]="data:".concat(a,";base64,").concat(o),g.label=3;case 3:return t++,[3,1];case 4:s=Object.keys(this._zipContents.files).filter(function(m){return m.startsWith("ppt/media/media")&&["mp3","wav","ogg","mp4","webm"].includes(m.split(".").pop().toLowerCase())}).map(function(m){return v._zipContents.files[m]}),l=0,u=s,g.label=5;case 5:return l<u.length?(c=u[l],f=c.name.split(".").pop().toLowerCase(),[4,c.async("arraybuffer")]):[3,8];case 6:p=g.sent(),h=new Blob([p],{type:"".concat(["mp3","wav"].includes(f)?"audio":"video","/").concat(f)}),this.medias[c.name]=URL.createObjectURL(h),g.label=7;case 7:return l++,[3,5];case 8:return[2]}var y})})},r.prototype.getXmlByPath=function(e){return Mi(this,void 0,void 0,function(){return Li(this,function(t){switch(t.label){case 0:if(!this._zipContents.files[e])throw Error("文件不存在");return[4,this._zipContents.files[e].async("text")];case 1:return[2,t.sent()]}})})},r.prototype.getSlideLayout=function(e){return this.slideLayouts.find(function(t){return t.name===e})},r.prototype.getSlideMaster=function(e){return this.slideMaster.find(function(t){return t.name===e})},r.prototype.getTheme=function(e){return this.themes.find(function(t){return t.name===e})},r.prototype.getMedia=function(e){return this.medias[e]},r}();al={};Rnt=function(){function r(e,t,i){this.scale=1,this.wrapper=e,this.pptx=t,this.options=i,this._calcScaleAndRenderPort()}return r.prototype._calcScaleAndRenderPort=function(){var e=this.options.viewPort.width/this.pptx.width;this.scale=e;var t=this.options.viewPort.width,i=this.pptx.height*this.scale;this.renderPort={width:t,height:i,left:0,top:0}},r.prototype.renderSlide=function(e){var t=this.pptx.slides[e],i=document.createElement("div");i.classList.add("pptx-preview-slide-wrapper"),i.classList.add("pptx-preview-slide-wrapper-".concat(e)),i.style.setProperty("width",this.renderPort.width+"px"),i.style.setProperty("height",this.renderPort.height+"px"),i.style.setProperty("position",this.options.mode==="slide"?"absolute":"relative"),this.options.mode==="slide"&&i.style.setProperty("top",(this.options.viewPort.height-this.renderPort.height)/2+"px"),i.style.margin="0 auto 10px",i.style.setProperty("background","#fff"),i.style.setProperty("overflow","hidden"),this._renderBackground(t,i),this._renderSlideMaster(t.slideMaster,i),this._renderSlideLayout(t.slideLayout,i),this._renderSlide(t,i),this.wrapper.append(i)},r.prototype._renderSlideMaster=function(e,t){var i=document.createElement("div");i.classList.add("slide-master-wrapper"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width",this.pptx.width+"px"),i.style.setProperty("height",this.pptx.height+"px"),i.style.setProperty("transform","scale(".concat(this.scale,")")),i.style.setProperty("transform-origin","0 0");var n=vd([],e.nodes,!0).filter(function(s){return s.userDrawn});n.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<n.length;a++){var o=this._renderNode(n[a]);o&&i.append(o)}t.append(i)},r.prototype._renderSlideLayout=function(e,t){var i=document.createElement("div");i.classList.add("slide-layout-wrapper"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width",this.pptx.width+"px"),i.style.setProperty("height",this.pptx.height+"px"),i.style.setProperty("transform","scale(".concat(this.scale,")")),i.style.setProperty("transform-origin","0 0");var n=vd([],e.nodes,!0).filter(function(s){return s.userDrawn});n.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<n.length;a++){var o=this._renderNode(n[a]);o&&i.append(o)}t.append(i)},r.prototype._renderSlide=function(e,t){var i=document.createElement("div");i.classList.add("slide-wrapper"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style.setProperty("top","0"),i.style.setProperty("width",this.pptx.width+"px"),i.style.setProperty("height",this.pptx.height+"px"),i.style.setProperty("transform","scale(".concat(this.scale,")")),i.style.setProperty("transform-origin","0 0");var n=vd([],e.nodes,!0);n.sort(function(s,l){return s.order>l.order?1:-1});for(var a=0;a<n.length;a++){var o=this._renderNode(n[a]);o&&i.append(o)}t.append(i)},r.prototype._renderNode=function(e){return e instanceof uC?Oz(e):e instanceof g_?kz(e):e instanceof Nz?Vnt(e):e instanceof znt?function(t){var i=document.createElement("div"),{extend:n,offset:a,flipV:o,flipH:s,rotate:l}=t,{x:u,y:c}=a,{w:f,h:p}=n;i.className="smart-chart-diagram",i.style.position="absolute",i.style.left=u+"px",i.style.top=c+"px",i.style.width=f+"px",i.style.height=p+"px";var h=[];s&&h.push("scaleX(-1)"),o&&h.push("scaleY(-1)"),l&&h.push("rotate(".concat(l,"deg)")),i.style.transformOrigin="center center",i.style.transform=h.join(" ");for(var v=0;v<t.nodes.length;v++){var g=t.nodes[v],y=void 0;g instanceof uC?y=Oz(g):g instanceof g_&&(y=kz(g)),y&&i.appendChild(y)}return i}(e):e instanceof Nnt?function(t){var{extend:i,offset:n,tr:a}=t,o=t.tableGrid.gridCol,s=document.createElement("div");s.style.position="absolute",s.style.left=n.x+"px",s.style.top=n.y+"px",s.style.width=i.w+"px",s.style.height=i.h+"px";var l=document.createElement("table");return l.style.borderCollapse="collapse",a.forEach(function(u){var{props:c,td:f}=u,p=c.height,h=document.createElement("tr");h.style.height=p+"px",f.forEach(function(v,g){var y,m,{props:d,inheritTcStyle:x,inheritTcTxStyle:S,paragraphs:w}=v;if(!d.vMerge&&!d.hMerge){var T=document.createElement("td");T.style.width=(((y=o[g])===null||y===void 0?void 0:y.width)||30)+"px",d.rowSpan&&T.setAttribute("rowspan",d.rowSpan+""),d.gridSpan&&T.setAttribute("colspan",d.gridSpan+"");var A=d.background||x.background;A&&(T.style.background=hr(A));var M=Jt(Jt({},x.border),d.border),D=function(F){return F?F.toLowerCase().includes("dash")?"dashed":F.toLowerCase().includes("dot")?"dotted":"solid":"solid"};M.bottom&&(T.style.borderBottom="".concat(M.bottom.width,"px ").concat(D(M.bottom.type)," ").concat(hr(M.bottom.color))),M.top&&(T.style.borderTop="".concat(M.top.width,"px ").concat(D(M.top.type)," ").concat(hr(M.top.color))),M.left&&(T.style.borderLeft="".concat(M.left.width,"px ").concat(D(M.left.type)," ").concat(hr(M.left.color))),M.right&&(T.style.borderRight="".concat(M.right.width,"px ").concat(D(M.right.type)," ").concat(hr(M.right.color)));var L=document.createElement("div");switch(L.className="text-wrapper",L.style.boxSizing="border-box",L.style.width="100%",L.style.height="100%",L.style.overflow="hidden",L.style.display="flex",L.style.flexDirection="column",d.anchor){case"b":L.style.justifyContent="flex-end";break;case"t":L.style.justifyContent="flex-start";break;case"ctr":L.style.justifyContent="center"}var I=[d.hasOwnProperty("marT")?Math.floor(d.marT)+"px":"3px",d.hasOwnProperty("marR")?Math.floor(d.marR-1)+"px":"5px",d.hasOwnProperty("marB")?Math.floor(d.marB)+"px":"3px",d.hasOwnProperty("marL")?Math.floor(d.marL-1)+"px":"5px"];L.style.padding=I.join(" ");for(var E=Jt({},d),R={},B=w.map(function(F){return Jt(Jt({},F),{props:Jt({align:"l"},F.props),inheritRProps:Jt(Jt({},F.inheritRProps),S)})}),z=0,V=function(F){var G=Jt(Jt({},F.inheritProps),F.props),rt=void 0;if(G.buAutoNum){var ot=G.level?+G.level:0;R[ot]||(R[ot]=0),((m=F.rows)===null||m===void 0?void 0:m.length)&&R[ot]++,Object.keys(R).forEach(function(at){+at>ot&&(R[at]=0)}),rt=cC(F,R[ot],{isFirst:z===0,isLast:w.length-1===z,bodyProps:E})}else rt=cC(F,0,{isFirst:z===0,isLast:w.length-1===z,bodyProps:E});L.appendChild(rt),z++},H=0,K=B;H<K.length;H++)V(K[H]);T.append(L),h.append(T)}}),l.append(h)}),s.append(l),s}(e):e instanceof Bnt?function(t){var i=document.createElement("div"),{extend:n,offset:a,flipV:o,flipH:s,rotate:l,options:u}=t,{x:c,y:f}=a,{w:p,h}=n;i.className="chart-node",i.style.position="absolute",i.style.left=c+"px",i.style.top=f+"px",i.style.width=p+"px",i.style.height=h+"px";var v=[];return s&&v.push("scaleX(-1)"),o&&v.push("scaleY(-1)"),l&&v.push("rotate(".concat(l,"deg)")),i.style.transformOrigin="center center",i.style.transform=v.join(" "),setTimeout(function(){var g=O6(i,null,{renderer:"svg"});g.setOption(u),Pnt("destroy",function(){g&&g.dispose(),g&&(g=null)}),Pnt("removeSlide",function(){g&&g.dispose(),g&&(g=null)})},0),i}(e):void 0},r.prototype._renderBackground=function(e,t){var i,n=document.createElement("div");n.classList.add("slide-background"),n.style.setProperty("position","absolute"),n.style.setProperty("left","0"),n.style.setProperty("top","0"),n.style.setProperty("width","100%"),n.style.setProperty("height","100%");var a=e.background;if(a.type==="none"&&(a=e.slideLayout.background),a.type==="none"&&(a=e.slideMaster.background),a.type==="blipFill"){var o=a,{base64:s,alpha:l,fillRect:u}=o,c=u===void 0?{}:u,f=c.b,p=f===void 0?0:f,h=c.t,v=h===void 0?0:h,g=c.l,y=g===void 0?0:g,m=c.r,d=m===void 0?0:m,x=this.renderPort.width*y,S=this.renderPort.height*v,w=this.renderPort.width*(1-y-d),T=this.renderPort.height*(1-v-p);n.style.backgroundImage="url(".concat(s,")"),n.style.backgroundSize="".concat(w," ").concat(T),n.style.backgroundPosition="".concat(x,"px ").concat(S,"px"),l&&(n.style.opacity=l+""),n.style.backgroundRepeat="no-repeat"}else if(a.type==="solidFill"){var A=hr(e.background)||hr(e.slideLayout.background)||hr(e.slideMaster.background);A?n.style.setProperty("background",A):n.style.setProperty("background","#fff")}else if(a.type==="gradFill")if(a.path==="circle"){var M=a.tileRect||{},D=(p=M.b,v=M.t,y=M.l,"radial-gradient(circle at ");(d=M.r)===-1?D+=" right":y===-1&&(D+=" left"),v===-1?D+=" top":p===-1&&(D+=" bottom"),p||v||y||d||(D+=" center"),D+=",",D+=a.gsList.map(function(I){return"".concat(hr(I.color)," ").concat(100*I.pos+"%")}).join(","),n.style.setProperty("background",D)}else{var L=((i=a==null?void 0:a.lin)===null||i===void 0?void 0:i.ang)||0;D="linear-gradient(".concat(L+90,"deg,"),D+=a.gsList.map(function(I){return"".concat(hr(I.color)," ").concat(100*I.pos+"%")}).join(","),n.style.setProperty("background",D)}t.append(n)},r}(),aDt=function(){function r(e,t){this.currentIndex=-1,this.dom=e,this.options=t,this._renderWrapper()}return Object.defineProperty(r.prototype,"slideCount",{get:function(){var e,t;return(t=(e=this.pptx)===null||e===void 0?void 0:e.slides)===null||t===void 0?void 0:t.length},enumerable:!1,configurable:!0}),r.prototype._renderWrapper=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper"),e.setAttribute("position","relative"),e.style.setProperty("background","#000"),e.style.setProperty("width",this.options.width+"px"),this.options.height&&e.style.setProperty("height",this.options.height+"px"),e.style.setProperty("position","relative"),e.style.setProperty("margin","0 auto"),this.options.height&&e.style.setProperty("overflow-y","auto"),this.dom.append(e),this.wrapper=e},r.prototype.renderNextButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","80px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var t=document.createElement("div");return t.style.setProperty("width","10px"),t.style.setProperty("height","10px"),t.style.setProperty("border-left","2px solid #fff"),t.style.setProperty("border-bottom","2px solid #fff"),t.style.setProperty("transform","rotate(225deg)"),t.style.setProperty("position","absolute"),t.style.setProperty("top","15px"),t.style.setProperty("left","15px"),e.append(t),e},r.prototype.renderPreButton=function(){var e=document.createElement("div");e.classList.add("pptx-preview-wrapper-next"),e.style.setProperty("position","absolute"),e.style.setProperty("bottom","20px"),e.style.setProperty("right","140px"),e.style.setProperty("z-index","100"),e.style.setProperty("cursor","pointer"),e.style.setProperty("width","40px"),e.style.setProperty("height","40px"),e.style.setProperty("background","#666666"),e.style.setProperty("border-radius","100%");var t=document.createElement("div");return t.style.setProperty("width","10px"),t.style.setProperty("height","10px"),t.style.setProperty("border-left","2px solid #fff"),t.style.setProperty("border-bottom","2px solid #fff"),t.style.setProperty("transform","rotate(45deg)"),t.style.setProperty("position","absolute"),t.style.setProperty("top","15px"),t.style.setProperty("left","15px"),e.append(t),e},r.prototype.updatePagination=function(){var e=this.wrapper.querySelector(".pptx-preview-wrapper-pagination");e&&(e.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount))},r.prototype.renderPagination=function(e){var t=document.createElement("div");t.classList.add("pptx-preview-wrapper-pagination"),t.innerText="".concat(this.currentIndex+1,"/").concat(this.slideCount),t.style.setProperty("position","absolute"),t.style.setProperty("bottom","33px"),t.style.setProperty("right","20px"),t.style.setProperty("color","#666666"),t.style.setProperty("font-size","14px"),t.style.setProperty("z-index","100"),e.append(t)},r.prototype.removeCurrentSlide=function(){var e=this.wrapper.querySelector(".pptx-preview-slide-wrapper-".concat(this.currentIndex));e&&this.wrapper.removeChild(e),oC("removeSlide")},r.prototype.renderNextSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex<this.slideCount-1?this.currentIndex+1:0,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},r.prototype.renderPreSlide=function(){this.removeCurrentSlide(),this.currentIndex=this.currentIndex>0?this.currentIndex-1:this.slideCount-1,this.htmlRender.renderSlide(this.currentIndex),this.updatePagination()},r.prototype._addPre=function(e){},r.prototype.preview=function(e){var t=this;return oC("destroy"),Rz("destroy"),new Promise(function(i,n){t.wrapper.innerHTML="";var a=t.pptx=new Tnt;a.load(e).then(function(){try{var o=t.htmlRender=new Rnt(t.wrapper,a,{viewPort:{width:t.options.width,height:t.options.height},mode:t.options.mode});if(t.options.mode==="slide"){var s=t.renderNextButton();s.onclick=function(){t.renderNextSlide()},t.wrapper.append(s);var l=t.renderPreButton();l.onclick=function(){t.renderPreSlide()},t.wrapper.append(l),t.renderPagination(t.wrapper),t._addPre(t.wrapper),t.currentIndex=0,o.renderSlide(0)}else for(var u=0;u<a.slides.length;u++)o.renderSlide(u);i(a)}catch(c){n(c)}}).catch(function(o){n(o)})})},r.prototype.load=function(e){var t=this;return oC("destroy"),Rz("destroy"),new Promise(function(i,n){t.wrapper.innerHTML="";var a=t.pptx=new Tnt;a.load(e).then(function(){try{t.htmlRender=new Rnt(t.wrapper,a,{viewPort:{width:t.options.width,height:t.options.height},mode:t.options.mode}),i(a)}catch(o){n(o)}}).catch(function(o){n(o)})})},r.prototype.renderSingleSlide=function(e){this.removeCurrentSlide(),this.currentIndex=e,this.htmlRender.renderSlide(this.currentIndex)},r.prototype.destroy=function(){oC("destroy"),Rz("destroy")},r}()});class Wnt extends Error{name="OfficePreviewError"}function Ynt(){let r=globalThis.DOMPurify;if(!r||typeof r.sanitize!=="function")throw new Wnt("This document needs the page sanitizer to render safely.");return r}var oDt=/^(?:data:image\/|data:font\/|blob:|#)/i;function Hnt(r){return r.replace(/@import[^;]*(?:;|$)/gi,"").replace(/url\(\s*(?:(["'])([\s\S]*?)\1|([^)]*))\s*\)/gi,(e,t,i,n)=>{let a=String(i??n??"").trim();return oDt.test(a)&&!a.includes("\\")?`url("${a.replaceAll('"',"\\\"")}")`:"none"})}var sDt=["script","iframe","object","embed","form","input","button","link","meta","base","frame","frameset","applet"],lDt=/^(?:(?:https?|mailto):|#|data:|blob:)/i,uDt=/^(?:data:|blob:)/i;function cDt(r){let e=Ynt(),t=Array.from(r.querySelectorAll("canvas")).map((i)=>{let{parentNode:n,nextSibling:a}=i;return i.remove(),{canvas:i,parent:n,next:a}});e.sanitize(r,{IN_PLACE:!0,FORBID_TAGS:sDt,FORBID_ATTR:["srcset","background","srcdoc","action","formaction"],ALLOWED_URI_REGEXP:lDt});for(let{canvas:i,parent:n,next:a}of t){if(!n||!r.contains(n))continue;n.insertBefore(i,a&&a.parentNode===n?a:null)}for(let i of[r,...Array.from(r.querySelectorAll("*"))]){let n=i.tagName.toLowerCase();for(let a of Array.from(i.attributes)){let o=a.name.toLowerCase(),s=a.value.trim();if(o.startsWith("on"))i.removeAttribute(a.name);else if(o==="style")i.setAttribute("style",Hnt(a.value));else if(o==="href"||o==="xlink:href"){if(!(n==="a"?/^(?:https?:|mailto:|#)/i:/^(?:#|data:|blob:)/i).test(s))i.removeAttribute(a.name)}else if((o==="src"||o==="poster")&&!uDt.test(s))i.removeAttribute(a.name)}}for(let i of Array.from(r.querySelectorAll("style")))i.textContent=Hnt(i.textContent||"")}async function fDt(r,e,t={}){Ynt();await Promise.resolve().then(() => Gnt());let n=Math.max(320,Math.round(t.width||e.clientWidth||960)),a=Fnt(e,{width:n,mode:"list"});e.replaceChildren(a.wrapper);try{await a.preview(await r.arrayBuffer()),cDt(a.wrapper)}catch(o){throw a.destroy(),e.replaceChildren(),o}}export{fDt as render};