@zimyo/ui 1.11.0 → 1.11.2
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.
- package/dist/chunks/{Calender-1b3e5e03.esm.js → Calender-d4b487fe.esm.js} +1 -1
- package/dist/chunks/{Heading-177b03ef.esm.js → Heading-cefb898e.esm.js} +1 -1
- package/dist/chunks/{Muted-7d9a3dca.esm.js → Muted-d00b328e.esm.js} +1 -1
- package/dist/chunks/{Text-18106168.esm.js → Text-5b99f7f4.esm.js} +1 -1
- package/dist/chunks/{tslib.es6-6cad17f3.esm.js → tslib.es6-4974c96c.esm.js} +1 -1
- package/dist/components/Accordion/index.esm.js +1 -1
- package/dist/components/AppList/index.esm.js +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.esm.js +1 -1
- package/dist/components/BulkActionsBar/index.esm.js +1 -1
- package/dist/components/Button/index.esm.js +1 -1
- package/dist/components/Card/index.esm.js +1 -1
- package/dist/components/Charts/index.esm.js +1 -1
- package/dist/components/Checkbox/index.esm.js +1 -1
- package/dist/components/CheckboxGroup/index.esm.js +1 -1
- package/dist/components/DataTable/index.esm.js +1 -1
- package/dist/components/DatePicker/index.esm.js +1 -1
- package/dist/components/DateRangePicker/index.esm.js +1 -1
- package/dist/components/Form/index.esm.js +1 -1
- package/dist/components/GlobalMenuSearch/index.esm.js +1 -1
- package/dist/components/Input/index.esm.js +1 -1
- package/dist/components/Modal/index.esm.js +1 -1
- package/dist/components/Popover/index.esm.js +1 -1
- package/dist/components/PopupConfirm/index.esm.js +1 -1
- package/dist/components/Radio/index.esm.js +1 -1
- package/dist/components/RadioGroup/index.esm.js +1 -1
- package/dist/components/Select/index.esm.js +1 -1
- package/dist/components/Switch/index.esm.js +1 -1
- package/dist/components/Tab/index.esm.js +1 -1
- package/dist/components/Table/index.esm.js +1 -1
- package/dist/components/TimePicker/index.esm.js +1 -1
- package/dist/components/Timeline/index.esm.js +1 -1
- package/dist/components/Typography/index.esm.js +1 -1
- package/dist/index.d.ts +58 -4
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{c as i}from"../../chunks/index-a7c3d9a4.esm.js";import{a as t}from"../../chunks/index-32c3a4e2.esm.js";import{T as r}from"../../chunks/Text-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{c as i}from"../../chunks/index-a7c3d9a4.esm.js";import{a as t}from"../../chunks/index-32c3a4e2.esm.js";import{T as r}from"../../chunks/Text-5b99f7f4.esm.js";import"react";import"../../chunks/tslib.es6-4974c96c.esm.js";import"@mui/material";var o=i("zui:inline-flex zui:items-center zui:rounded-full zui:font-medium zui:gap-2",{variants:{variant:{contained:"",outlined:"zui:border zui:bg-transparent",text:"zui:bg-transparent zui:border-transparent"},size:{sm:"zui:text-xs zui:px-2 zui:py-0.5",md:"zui:text-sm zui:px-3 zui:py-1",lg:"zui:text-base zui:px-4 zui:py-1.5"},type:{success:"",warning:"",error:"",info:"",default:""}},defaultVariants:{variant:"contained",size:"md",type:"default"}}),u={success:{bg:"zui:bg-green-100",text:"zui:text-green-700",border:"zui:border-green-700"},warning:{bg:"zui:bg-yellow-100",text:"zui:text-yellow-600",border:"zui:border-yellow-600"},error:{bg:"zui:bg-red-100",text:"zui:text-red-700",border:"zui:border-red-700"},info:{bg:"zui:bg-blue-100",text:"zui:text-blue-700",border:"zui:border-blue-700"},default:{bg:"zui:bg-gray-100",text:"zui:text-gray-800",border:"zui:border-gray-800"}},n=function(i){var n,d,l,a=i.label,s=i.icon,b=i.iconPosition,z=void 0===b?"start":b,g=i.dot,p=void 0!==g&&g,c=i.dotPosition,x=void 0===c?"start":c,m=i.variant,v=void 0===m?"contained":m,f=i.size,y=void 0===f?"md":f,h=i.type,k=void 0===h?"default":h,w=i.color,j=i.className,N=u[k],C={bg:null!==(n=null==w?void 0:w.bg)&&void 0!==n?n:N.bg,text:null!==(d=null==w?void 0:w.text)&&void 0!==d?d:N.text,border:null!==(l=null==w?void 0:w.border)&&void 0!==l?l:N.border},P=t(o({variant:v,size:y,type:k}),"string"==typeof(null==w?void 0:w.bg)?"":"contained"===v?C.bg:"","string"==typeof(null==w?void 0:w.text)?"":C.text,"string"==typeof(null==w?void 0:w.border)?"":"outlined"===v?C.border:"",j),T={backgroundColor:"contained"===v?null==w?void 0:w.bg:void 0,color:null==w?void 0:w.text,borderColor:"outlined"===v?null==w?void 0:w.border:void 0},V=p&&e("span",{className:"zui:w-2 zui:h-2 zui:rounded-full zui:bg-current zui:inline-block"}),W=[];return p&&"start"===x&&W.push(V),s&&"start"===z&&W.push(s),W.push(e("span",{children:a},"label")),s&&"end"===z&&W.push(s),p&&"end"===x&&W.push(V),e(r,{fontWeight:600,className:P,style:T,children:W})};export{n as Badge,n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as i,jsx as e,Fragment as r}from"react/jsx-runtime";import{useState as t}from"react";import{Button as o}from"../Button/index.esm.js";import"../../chunks/tslib.es6-
|
|
1
|
+
import{jsxs as i,jsx as e,Fragment as r}from"react/jsx-runtime";import{useState as t}from"react";import{Button as o}from"../Button/index.esm.js";import"../../chunks/tslib.es6-4974c96c.esm.js";import{ListItemButton as a,IconButton as l}from"@mui/material";import{T as n}from"../../chunks/Text-5b99f7f4.esm.js";import s from"@mui/material/List";import u from"@mui/material/ListItemText";import{Popover as m}from"../Popover/index.esm.js";import{c,X as d}from"../../chunks/lucide-8c9441ea.esm.js";var z=function(z){var p=z.selectedRows,h=z.totalRows,b=z.bulkActions,f=z.clearSelection,x=z.maxVisibleActions,g=void 0===x?3:x,v=t(null),k=v[0],w=v[1],y=b.slice(0,g),j=b.slice(g),C=function(){w(null)},N=Boolean(k);return 0===p.length?null:i("div",{className:"zui:bg-blue-100 zui:border zui:border-blue-200 zui:shadow-sm zui:py-1 zui:px-2 zui:rounded-md zui:flex zui:justify-between zui:items-center zui:gap-2 zui:flex-wrap",children:[i(n,{size:"sm",fontWeight:500,className:"zui:text-blue-700 zui:mr-4",children:[p.length," of ",h," selected"]}),i("div",{className:"zui:flex zui:flex-row zui:gap-1.5",children:[y.map(function(i){return e(o,{className:"zui:h-8 zui:bg-white zui:text-blue-700 zui:text-xs zui:border-1 zui:border-gray-100",startIcon:i.icon,size:"small",variant:"text",disabled:i.disabled,onClick:function(){return i.onClick(p)},title:i.label,children:i.label},i.id)}),j.length>0&&i(r,{children:[i(o,{size:"small",variant:"text",className:"zui:h-8 zui:bg-white zui:text-blue-500 zui:text-xs zui:border-1 zui:border-gray-100","aria-controls":N?"more-actions-popover":void 0,"aria-haspopup":"true","aria-expanded":N?"true":void 0,onClick:function(i){w(i.currentTarget)},children:["More ",e(c,{className:"zui:w-4 zui:h-4 zui:ml-1"})]}),e(m,{padding:0,minWidth:200,id:"more-actions-popover",open:N,anchorEl:k,onClose:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:e(s,{disablePadding:!0,children:j.map(function(r){return i(a,{disabled:r.disabled,onClick:function(){r.onClick(p),C()},className:"danger"===r.variant?"zui:text-red-600":"",divider:!0,children:[r.icon,e(u,{primaryTypographyProps:{variant:"body2",ml:1},primary:r.label})]},r.id)})})})]}),i(l,{size:"small",onClick:f,children:[" ",e(d,{size:18})]})]})]})};export{z as BulkActionsBar,z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i,a as o}from"../../chunks/tslib.es6-
|
|
1
|
+
import{_ as i,a as o}from"../../chunks/tslib.es6-4974c96c.esm.js";import{jsx as r}from"react/jsx-runtime";import e from"react";import{Button as t,CircularProgress as a}from"@mui/material";var n=e.forwardRef(function(e,n){var d=e.children,s=e.loading,l=void 0!==s&&s,c=e.loadingText,m=e.loaderSize,v=void 0===m?18:m,f=e.loaderPosition,u=void 0===f?"start":f,p=e.variant,z=void 0===p?"contained":p,h=e.color,x=void 0===h?"primary":h,I=e.size,b=void 0===I?"medium":I,g=e.sx,j=void 0===g?{}:g,y=e.disabled,B=e.startIcon,P=e.endIcon,S=i(e,["children","loading","loadingText","loaderSize","loaderPosition","variant","color","size","sx","disabled","startIcon","endIcon"]),T=l&&"end"===u,k=l&&"center"===u;return r(t,o({ref:n,variant:z,color:x,disabled:y||l,size:b,startIcon:l&&"start"===u?r(a,{size:v,color:"inherit"}):B,endIcon:T?r(a,{size:v,color:"inherit"}):P,sx:o({position:"relative"},j)},S,{children:k?r(a,{size:v,color:"inherit"}):l&&c?c:d}))});n.displayName="Button";export{n as Button,n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as r,b as t}from"../../chunks/tslib.es6-
|
|
1
|
+
import{_ as e,a as r,b as t}from"../../chunks/tslib.es6-4974c96c.esm.js";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{useTheme as n,Card as o,CardHeader as d,Typography as l,CardActions as s,Box as c,Skeleton as u}from"@mui/material";import v from"@mui/material/CardContent";import m from"@mui/material/CardMedia";var h=function(t){var a,d=t.children,l=t.sx,s=void 0===l?{}:l,c=t.elevation,u=void 0===c?1:c,v=t.variant,m=void 0===v?"elevated":v,h=e(t,["children","sx","elevation","variant"]),p=n();return i(o,r({elevation:"elevated"===m?u:0,variant:"outlined"===m?"outlined":"elevation",sx:r({borderRadius:(null===(a=p.radius)||void 0===a?void 0:a.sm)||8,border:"bordered"===m?"1px solid ".concat(p.palette.divider):"none",overflow:"hidden",backgroundColor:p.palette.background.paper},s)},h,{children:d}))},p=function(e){var t=e.title,a=e.subtitle,n=e.action,o=e.sx;return i(d,{title:"string"==typeof t?i(l,{variant:"h6",fontWeight:600,children:t}):t,subheader:"string"==typeof a?i(l,{variant:"body2",color:"text.secondary",children:a}):a,action:n,sx:r({p:0},o)})},f=function(e){var t=e.children,a=e.sx;return i(v,{sx:r({p:0,"&:last-child":{pb:0}},a),children:t})},x=function(e){var t=e.children,a=e.sx;return i(s,{sx:r({p:0},a),children:t})},g=function(e){var t=e.src,a=e.height,n=void 0===a?160:a,o=e.alt,d=void 0===o?"card image":o,l=e.sx;return i(m,{sx:r({p:0},l),component:"img",height:n,image:t,alt:d})},b=function(e){var r=e.lines,n=void 0===r?3:r;return a(c,{p:2,children:[i(u,{variant:"rectangular",height:140}),t([],Array(n),!0).map(function(e,r){return i(u,{variant:"text",height:20,sx:{mt:1}},r)})]})},C=Object.assign(h,{Header:p,Content:f,Body:f,Actions:x,Image:g,Skeleton:b});export{x as CardActions,f as CardContent,p as CardHeader,g as CardImage,h as CardRoot,b as CardSkeleton,C as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{c as e,a as n}from"../../chunks/tslib.es6-6cad17f3.esm.js";import i,{PureComponent as r}from"react";import{g as o,c as a}from"../../chunks/_commonjsHelpers-02d3be64.esm.js";import{alpha as s}from"@mui/material";var l=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},u=new function(){this.browser=new l,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(u.wxa=!0,u.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?u.worker=!0:!u.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(u.node=!0,u.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=e.domSupported="undefined"!=typeof document;if(s){var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,u);var c=u,h="sans-serif",p="12px "+h;var d,f,g=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),v={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!d){var n=v.createCanvas();d=n&&n.getContext("2d")}if(d)return f!==e&&(f=d.font=e||p),d.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||p),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=g[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function y(t){for(var e in v)t[e]&&(v[e]=t[e])}var m=U(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),x=U(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),_=Object.prototype.toString,b=Array.prototype,w=b.forEach,S=b.filter,M=b.slice,I=b.map,T=function(){}.constructor,C=T?T.prototype:null,D="__proto__",A=2311;function k(){return A++}function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function N(t){if(null==t||"object"!=typeof t)return t;var e=t,n=_.call(t);if("[object Array]"===n){if(!mt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=N(t[i])}}else if(x[n]){if(!mt(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!m[n]&&!mt(t)&&!rt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==D&&(e[a]=N(t[a]));return e}function E(t,e,n){if(!et(e)||!et(t))return n?N(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==D){var r=t[i],o=e[i];!et(o)||!et(r)||K(o)||K(r)||rt(o)||rt(r)||nt(o)||nt(r)||mt(o)||mt(r)?!n&&i in t||(t[i]=N(e[i])):E(r,o,n)}return t}function O(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=E(n,t[i],e);return n}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==D&&(t[n]=e[n]);return t}function R(t,e,n){for(var i=Z(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var V=v.createCanvas;function z(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function B(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function G(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else R(t,e,n)}function F(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===w)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function H(t,e,n){if(!t)return[];if(!e)return pt(t);if(t.map&&t.map===I)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function U(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function Y(t,e,n){if(!t)return[];if(!e)return pt(t);if(t.filter&&t.filter===S)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function X(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function Z(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var j=C&&$(C.bind)?C.call.bind(C.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(M.call(arguments)))}};function q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(M.call(arguments)))}}function K(t){return Array.isArray?Array.isArray(t):"[object Array]"===_.call(t)}function $(t){return"function"==typeof t}function J(t){return"string"==typeof t}function Q(t){return"[object String]"===_.call(t)}function tt(t){return"number"==typeof t}function et(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function nt(t){return!!m[_.call(t)]}function it(t){return!!x[_.call(t)]}function rt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ot(t){return null!=t.colorStops}function at(t){return null!=t.image}function st(t){return"[object RegExp]"===_.call(t)}function lt(t){return t!=t}function ut(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function ct(t,e){return null!=t?t:e}function ht(t,e,n){return null!=t?t:null!=e?e:n}function pt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return M.apply(t,e)}function dt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function ft(t,e){if(!t)throw new Error(e)}function gt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vt="__ec_primitive__";function yt(t){t[vt]=!0}function mt(t){return t[vt]}var xt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Z(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),_t="function"==typeof Map;var bt=function(){function t(e){var n=K(e);this.data=_t?new Map:new xt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&W(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return _t?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function wt(t){return new bt(t)}function St(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function Mt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&P(n,e),n}function It(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Tt(t,e){return t.hasOwnProperty(e)}function Ct(){}var Dt=180/Math.PI,At=Number.EPSILON||Math.pow(2,-52),kt=Object.freeze({__proto__:null,EPSILON:At,HashMap:bt,RADIAN_TO_DEGREE:Dt,assert:ft,bind:j,clone:N,concatArray:St,createCanvas:V,createHashMap:wt,createObject:Mt,curry:q,defaults:R,disableUserSelect:It,each:W,eqNaN:lt,extend:P,filter:Y,find:X,guid:k,hasOwn:Tt,indexOf:z,inherits:B,isArray:K,isArrayLike:F,isBuiltInObject:nt,isDom:rt,isFunction:$,isGradientObject:ot,isImagePatternObject:at,isNumber:tt,isObject:et,isPrimitive:mt,isRegExp:st,isString:J,isStringSafe:Q,isTypedArray:it,keys:Z,logError:L,map:H,merge:E,mergeAll:O,mixin:G,noop:Ct,normalizeCssArray:dt,reduce:U,retrieve:ut,retrieve2:ct,retrieve3:ht,setAsPrimitive:yt,slice:pt,trim:gt});function Lt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Nt(t,e){return t[0]=e[0],t[1]=e[1],t}function Et(t){return[t[0],t[1]]}function Ot(t,e,n){return t[0]=e,t[1]=n,t}function Pt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Rt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Vt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function zt(t){return Math.sqrt(Gt(t))}var Bt=zt;function Gt(t){return t[0]*t[0]+t[1]*t[1]}var Ft=Gt;function Wt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ht(t,e){var n=zt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Ut(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Yt=Ut;function Xt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Zt=Xt;function jt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function qt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Kt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function $t(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Jt=Object.freeze({__proto__:null,add:Pt,applyTransform:qt,clone:Et,copy:Nt,create:Lt,dist:Yt,distSquare:Zt,distance:Ut,distanceSquare:Xt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:zt,lenSquare:Gt,length:Bt,lengthSquare:Ft,lerp:jt,max:$t,min:Kt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Ht,scale:Wt,scaleAndAdd:Rt,set:Ot,sub:Vt}),Qt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},te=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Qt(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Qt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Qt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Qt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ee=te,ne=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ie=ne,re=Math.log(2);function oe(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/re);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(h+=(d%2?-1:1)*t[n][p]*oe(t,e-1,c,u,r|f,o),d++)}return o[a]=h,h}function ae(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=oe(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*oe(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var se="___zrEVENTSAVED",le=[];function ue(t,e,n,i,r){if(e.getBoundingClientRect&&c.domSupported&&!ce(e)){var o=e[se]||(e[se]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){W(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?ae(s,a):ae(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function ce(t){return"CANVAS"===t.nodeName.toUpperCase()}var he=/([&<>"'])/g,pe={"&":"&","<":"<",">":">",'"':""","'":"'"};function de(t){return null==t?"":(t+"").replace(he,function(t,e){return pe[e]})}var fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ge=[],ve=c.browser.firefox&&+c.browser.version.split(".")[0]<39;function ye(t,e,n,i){return n=n||{},i?me(t,e,n):ve&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):me(t,e,n),n}function me(t,e,n){if(c.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ce(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ue(ge,t,i,r))return n.zrX=ge[0],void(n.zrY=ge[1])}n.zrX=n.zrY=0}function xe(t){return t||window.event}function _e(t,e,n){if(null!=(e=xe(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ye(t,r,e,n)}else{ye(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&fe.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function be(t,e,n,i){t.addEventListener(e,n,i)}function we(t,e,n,i){t.removeEventListener(e,n,i)}var Se=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Me(t){return 2===t.which||3===t.which}var Ie=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=ye(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Ce)if(Ce.hasOwnProperty(e)){var n=Ce[e](this._track,t);if(n)return n}},t}();function Te(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Ce={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Te(r)/Te(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function De(){return[1,0,0,1,0,0]}function Ae(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ke(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Le(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ne(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ee(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function Oe(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Pe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Re(t){var e=[1,0,0,1,0,0];return ke(e,t),e}var Ve=Object.freeze({__proto__:null,clone:Re,copy:ke,create:De,identity:Ae,invert:Pe,mul:Le,rotate:Ee,scale:Oe,translate:Ne}),ze=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),Be=ze,Ge=Math.min,Fe=Math.max,We=Math.abs,He=["x","y"],Ue=["width","height"],Ye=new Be,Xe=new Be,Ze=new Be,je=new Be,qe=rn(),Ke=qe.minTv,$e=qe.maxTv,Je=[0,0],Qe=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=Ge(t.x,this.x),n=Ge(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Ne(r,r,[-e.x,-e.y]),Oe(r,r,[n,i]),Ne(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&Be.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(tn,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(en,n.x,n.y,n.width,n.height));var s=!!i;qe.reset(r,s);var l=qe.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>p||d>f||g>v)return!1;var y=!(c<d||f<u||p<g||v<h);return(s||o)&&(Je[0]=1/0,Je[1]=0,nn(u,c,d,f,0,s,o,a),nn(h,p,g,v,1,s,o,a),s&&Be.copy(i,y?qe.useDir?qe.dirMinTv:Ke:$e)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ye.x=Ze.x=n.x,Ye.y=je.y=n.y,Xe.x=je.x=n.x+n.width,Xe.y=Ze.y=n.y+n.height,Ye.transform(i),je.transform(i),Xe.transform(i),Ze.transform(i),e.x=Ge(Ye.x,Xe.x,Ze.x,je.x),e.y=Ge(Ye.y,Xe.y,Ze.y,je.y);var l=Fe(Ye.x,Xe.x,Ze.x,je.x),u=Fe(Ye.y,Xe.y,Ze.y,je.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),tn=new Qe(0,0,0,0),en=new Qe(0,0,0,0);function nn(t,e,n,i,r,o,a,s){var l=We(e-n),u=We(i-t),c=Ge(l,u),h=He[r],p=He[1-r],d=Ue[r];e<n||i<t?l<u?(o&&($e[h]=-l),s&&(a[h]=e,a[d]=0)):(o&&($e[h]=u),s&&(a[h]=t,a[d]=0)):(a&&(a[h]=Fe(t,n),a[d]=Ge(e,i)-a[h]),o&&(c<Je[0]||qe.useDir)&&(Je[0]=Ge(c,Je[0]),(l<u||!qe.bidirectional)&&(Ke[h]=l,Ke[p]=0,qe.useDir&&qe.calcDirMTV()),(l>=u||!qe.bidirectional)&&(Ke[h]=-u,Ke[p]=0,qe.useDir&&qe.calcDirMTV())))}function rn(){var t=0,e=new Be,n=new Be,i={minTv:new Be,maxTv:new Be,useDir:!1,dirMinTv:new Be,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=Fe(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return We(t)<1e-10}return i}var on=Qe,an="silent";function sn(){Se(this.event)}var ln=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(ie),un=function(t,e){this.x=t,this.y=e},cn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hn=new on(0,0,0,0),pn=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new un(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new ln,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new ee(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(W(cn,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=gn(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new un(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new un(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:sn}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new un(t,e);if(fn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new on(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(hn.copy(c.getBoundingRect()),c.transform&&hn.applyTransform(c.transform),hn.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h){if(fn(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Ie);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new un;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(ie);function dn(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||an}return!1}function fn(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=dn(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==an)){e.target=a;break}}}function gn(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){pn.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=gn(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Yt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var vn=pn;function yn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function mn(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function xn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function _n(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function bn(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=_n(t[c],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(h=xn(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0===--s){for(l=0;l<i;l++)t[h+l]=a[u+l];return}if(1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var p,d,f,g=r;for(;;){p=0,d=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],d++,p=0,0===--s){f=!0;break}}else if(t[h++]=a[u++],p++,d=0,1===--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=_n(t[c],a,u,i,0,e))){for(l=0;l<p;l++)t[h+l]=a[u+l];if(h+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[h++]=t[c++],0===--s){f=!0;break}if(0!==(d=xn(a[u],t,c,s,0,e))){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,0===(s-=d)){f=!0;break}}if(t[h++]=a[u++],1===--i){f=!0;break}g--}while(p>=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,p=0,d=0;if(t[h--]=t[u--],0===--i){for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l];return}if(1===s){for(d=(h-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];return void(t[h]=a[c])}var f=r;for(;;){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){y=!0;break}}while((g|v)<f);if(y)break;do{if(0!==(g=i-_n(a[c],t,n,i,i-1,e))){for(i-=g,d=(h-=g)+1,p=(u-=g)+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(0!==(v=s-xn(t[u],a,0,s,s-1,e))){for(s-=v,d=(h-=v)+1,p=(c-=v)+1,l=0;l<v;l++)t[d+l]=a[p+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--i){y=!0;break}f--}while(g>=7||v>=7);if(y)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(d=(h-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function wn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)mn(t,n,i,n+(o=yn(t,n,i,e)),e);else{var a=bn(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=yn(t,n,i,e))<s){var l=r;l>s&&(l=s),mn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Sn=!1;function Mn(){Sn||(Sn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function In(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Tn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=In}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,wn(n,In)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var p=c[h];t.__dirty&&(p.__dirty|=1),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Mn(),d.z=0),isNaN(d.z2)&&(Mn(),d.z2=0),isNaN(d.zlevel)&&(Mn(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=z(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Cn=Tn,Dn=c.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},An={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-An.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*An.bounceIn(2*t):.5*An.bounceOut(2*t-1)+.5}},kn=An,Ln=Math.pow,Nn=Math.sqrt,En=1e-8,On=1e-4,Pn=Nn(3),Rn=1/3,Vn=Lt(),zn=Lt(),Bn=Lt();function Gn(t){return t>-1e-8&&t<En}function Fn(t){return t>En||t<-1e-8}function Wn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Hn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Un(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Gn(c)&&Gn(h)){if(Gn(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[d++]=M)}else{var f=h*h-4*c*p;if(Gn(f)){var g=h/c,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),v>=0&&v<=1&&(o[d++]=v)}else if(f>0){var y=Nn(f),m=c*s+1.5*a*(-h+y),x=c*s+1.5*a*(-h-y);(M=(-s-((m=m<0?-Ln(-m,Rn):Ln(m,Rn))+(x=x<0?-Ln(-x,Rn):Ln(x,Rn))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*c*s-3*a*h)/(2*Nn(c*c*c)),b=Math.acos(_)/3,w=Nn(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+Pn*Math.sin(b)))/(3*a),(-s+w*(S-Pn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),v>=0&&v<=1&&(o[d++]=v),I>=0&&I<=1&&(o[d++]=I)}}return d}function Yn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Gn(a)){if(Fn(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(Gn(u))r[0]=-o/(2*a);else if(u>0){var c,h=Nn(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}function Xn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Zn(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,v=.005,y=1/0;Vn[0]=l,Vn[1]=u;for(var m=0;m<1;m+=.05)zn[0]=Wn(t,n,r,a,m),zn[1]=Wn(e,i,o,s,m),(f=Zt(Vn,zn))<y&&(h=m,y=f);y=1/0;for(var x=0;x<32&&!(v<On);x++)p=h-v,d=h+v,zn[0]=Wn(t,n,r,a,p),zn[1]=Wn(e,i,o,s,p),f=Zt(zn,Vn),p>=0&&f<y?(h=p,y=f):(Bn[0]=Wn(t,n,r,a,d),Bn[1]=Wn(e,i,o,s,d),g=Zt(Bn,Vn),d<=1&&g<y?(h=d,y=g):v*=.5);return c&&(c[0]=Wn(t,n,r,a,h),c[1]=Wn(e,i,o,s,h)),Nn(y)}function jn(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Wn(t,n,r,a,f),v=Wn(e,i,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function qn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Kn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function $n(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Jn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Qn(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Vn[0]=a,Vn[1]=s;for(var p=0;p<1;p+=.05){zn[0]=qn(t,n,r,p),zn[1]=qn(e,i,o,p),(v=Zt(Vn,zn))<h&&(u=p,h=v)}h=1/0;for(var d=0;d<32&&!(c<On);d++){var f=u-c,g=u+c;zn[0]=qn(t,n,r,f),zn[1]=qn(e,i,o,f);var v=Zt(zn,Vn);if(f>=0&&v<h)u=f,h=v;else{Bn[0]=qn(t,n,r,g),Bn[1]=qn(e,i,o,g);var y=Zt(Bn,Vn);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=qn(t,n,r,u),l[1]=qn(e,i,o,u)),Nn(h)}function ti(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=qn(t,n,r,p),f=qn(e,i,o,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var ei=/cubic-bezier\(([0-9,\.e ]+)\)/;function ni(t){var e=t&&ei.exec(t);if(e){var n=e[1].split(","),i=+gt(n[0]),r=+gt(n[1]),o=+gt(n[2]),a=+gt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Un(0,i,o,1,t,s)&&Wn(0,r,a,1,s[0])}}}var ii=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ct,this.ondestroy=t.ondestroy||Ct,this.onrestart=t.onrestart||Ct,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=$(t)?t:kn[t]||ni(t)},t}(),ri=function(t){this.value=t},oi=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new ri(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ai=function(){function t(t){this._list=new oi,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new ri(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),si=ai,li={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ui(t){return(t=Math.round(t))<0?0:t>255?255:t}function ci(t){return t<0?0:t>1?1:t}function hi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ui(parseFloat(e)/100*255):ui(parseInt(e,10))}function pi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ci(parseFloat(e)/100):ci(parseFloat(e))}function di(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function fi(t,e,n){return t+(e-t)*n}function gi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function vi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var yi=new si(20),mi=null;function xi(t,e){mi&&vi(mi,e),mi=yi.put(t,mi||e.slice())}function _i(t,e){if(t){e=e||[];var n=yi.get(t);if(n)return vi(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in li)return vi(e,li[i]),xi(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(gi(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),xi(t,e),e):void gi(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(gi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),xi(t,e),e):void gi(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?gi(e,+u[0],+u[1],+u[2],1):gi(e,0,0,0,1);c=pi(u.pop());case"rgb":return u.length>=3?(gi(e,hi(u[0]),hi(u[1]),hi(u[2]),3===u.length?c:pi(u[3])),xi(t,e),e):void gi(e,0,0,0,1);case"hsla":return 4!==u.length?void gi(e,0,0,0,1):(u[3]=pi(u[3]),bi(u,e),xi(t,e),e);case"hsl":return 3!==u.length?void gi(e,0,0,0,1):(bi(u,e),xi(t,e),e);default:return}}gi(e,0,0,0,1)}}function bi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=pi(t[1]),r=pi(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return gi(e=e||[],ui(255*di(a,o,n+1/3)),ui(255*di(a,o,n)),ui(255*di(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function wi(t,e){var n=_i(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Ai(n,4===n.length?"rgba":"rgb")}}function Si(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=ui(fi(a[0],s[0],l)),n[1]=ui(fi(a[1],s[1],l)),n[2]=ui(fi(a[2],s[2],l)),n[3]=ci(fi(a[3],s[3],l)),n}}var Mi=Si;function Ii(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=_i(e[r]),s=_i(e[o]),l=i-r,u=Ai([ui(fi(a[0],s[0],l)),ui(fi(a[1],s[1],l)),ui(fi(a[2],s[2],l)),ci(fi(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Ti=Ii;function Ci(t,e,n,i){var r=_i(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}($(e)?e(r[0]):e)),null!=n&&(r[1]=pi($(n)?n(r[1]):n)),null!=i&&(r[2]=pi($(i)?i(r[2]):i)),Ai(bi(r),"rgba")}function Di(t,e){var n=_i(t);if(n&&null!=e)return n[3]=ci(e),Ai(n,"rgba")}function Ai(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ki(t,e){var n=_i(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var Li=new si(100);function Ni(t){if(J(t)){var e=Li.get(t);return e||(e=wi(t,-.1),Li.put(t,e)),e}if(ot(t)){var n=P({},t);return n.colorStops=H(t.colorStops,function(t){return{offset:t.offset,color:wi(t.color,-.1)}}),n}return t}var Ei=Object.freeze({__proto__:null,fastLerp:Si,fastMapToColor:Mi,lerp:Ii,lift:wi,liftColor:Ni,lum:ki,mapToColor:Ti,modifyAlpha:Di,modifyHSL:Ci,parse:_i,parseCssFloat:pi,parseCssInt:hi,random:function(){return Ai([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ai,toHex:function(t){var e=_i(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}}),Oi=Math.round;function Pi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=_i(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Ri=1e-4;function Vi(t){return t<Ri&&t>-1e-4}function zi(t){return Oi(1e3*t)/1e3}function Bi(t){return Oi(1e4*t)/1e4}var Gi={left:"start",right:"end",center:"middle",middle:"middle"};function Fi(t){return t&&!!t.image}function Wi(t){return Fi(t)||function(t){return t&&!!t.svgElement}(t)}function Hi(t){return"linear"===t.type}function Ui(t){return"radial"===t.type}function Yi(t){return t&&("linear"===t.type||"radial"===t.type)}function Xi(t){return"url(#"+t+")"}function Zi(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ji(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Dt,r=ct(t.scaleX,1),o=ct(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+Oi(a*Dt)+"deg, "+Oi(s*Dt)+"deg)"),l.join(" ")}var qi=c.hasGlobalWindow&&$(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return"production"!==process.env.NODE_ENV&&L("Base64 isn't natively supported in the current environment."),null},Ki=Array.prototype.slice;function $i(t,e,n){return(e-t)*n+t}function Ji(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=$i(e[o],n[o],i);return t}function Qi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function tr(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function er(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function nr(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:Ki.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function ir(t){if(F(t)){var e=t.length;if(F(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ki.call(t[i]));return n}return Ki.call(t)}return t}function rr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function or(t){return 4===t||5===t}function ar(t){return 1===t||2===t}var sr=[0,0,0,0],lr=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(F(e)){var l=function(t){return F(t&&t[0])?2:1}(e);a=l,(1===l&&!tt(e[0])||2===l&&!tt(e[0][0]))&&(o=!0)}else if(tt(e)&&!lt(e))a=0;else if(J(e))if(isNaN(+e)){var u=_i(e);u&&(s=u,a=3)}else a=0;else if(ot(e)){var c=P({},s);c.colorStops=H(e.colorStops,function(t){return{offset:t.offset,color:_i(t.color)}}),Hi(e)?a=4:Ui(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=$(n)?n:kn[n]||ni(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ar(i),l=or(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?nr(h,p,i):l&&er(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=Qi([],n[u].value,d,-1):ar(i)&&(n[u].additiveValue=1===i?Qi([],n[u].value,d,-1):tr([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?sr:t[c];if(!ar(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(ar(s))1===s?Ji(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=$i(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(or(s)){var y=i[a],m=r[a],x=4===s;t[c]={type:x?"linear":"radial",x:$i(y.x,m.x,g),y:$i(y.y,m.y,g),colorStops:H(y.colorStops,function(t,e){var n=m.colorStops[e];return{offset:$i(t.offset,n.offset,g),color:rr(Ji([],t.color,n.color,g))}}),global:m.global},x?(t[c].x2=$i(y.x2,m.x2,g),t[c].y2=$i(y.y2,m.y2,g)):t[c].r=$i(y.r,m.r,g)}else if(h)Ji(v,i[a],r[a],g),o||(t[c]=rr(v));else{var _=$i(i[a],r[a],g);o?this._additiveValue=_:t[c]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(_i(t[n],sr),Qi(sr,sr,i,1),t[n]=rr(sr)):1===e?Qi(t[n],t[n],i,1):2===e&&tr(t[n],t[n],i,1)},t}(),ur=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?L("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Z(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new lr(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=rr(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,ir(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ir(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new ii({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return H(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=ir(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Z(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),cr=ur;function hr(){return(new Date).getTime()}var pr,dr,fr=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=hr()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){var t=this;this._running=!0,Dn(function e(){t._running&&(Dn(e),!t._paused&&t.update())})},n.prototype.start=function(){this._running||(this._time=hr(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=hr(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=hr()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new cr(t,e.loop);return this.addAnimator(n),n},n}(ie),gr=fr,vr=c.domSupported,yr=(dr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:pr=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:H(pr,function(t){var e=t.replace("mouse","pointer");return dr.hasOwnProperty(e)?e:t})}),mr=["mousemove","mouseup"],xr=["pointermove","pointerup"],_r=!1;function br(t){var e=t.pointerType;return"pen"===e||"touch"===e}function wr(t){t&&(t.zrByTouch=!0)}function Sr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Mr=function(t,e){this.stopPropagation=Ct,this.stopImmediatePropagation=Ct,this.preventDefault=Ct,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ir={mousedown:function(t){t=_e(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=_e(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=_e(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Sr(this,(t=_e(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){_r=!0,t=_e(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){_r||(t=_e(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){wr(t=_e(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ir.mousemove.call(this,t),Ir.mousedown.call(this,t)},touchmove:function(t){wr(t=_e(this.dom,t)),this.handler.processGesture(t,"change"),Ir.mousemove.call(this,t)},touchend:function(t){wr(t=_e(this.dom,t)),this.handler.processGesture(t,"end"),Ir.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ir.click.call(this,t)},pointerdown:function(t){Ir.mousedown.call(this,t)},pointermove:function(t){br(t)||Ir.mousemove.call(this,t)},pointerup:function(t){Ir.mouseup.call(this,t)},pointerout:function(t){br(t)||Ir.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Ir[t]=function(e){e=_e(this.dom,e),this.trigger(t,e)}});var Tr={pointermove:function(t){br(t)||Tr.mousemove.call(this,t)},pointerup:function(t){Tr.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Cr(t,e){var n=e.domHandlers;c.pointerEventsSupported?W(yr.pointer,function(i){Ar(e,i,function(e){n[i].call(t,e)})}):(c.touchEventsSupported&&W(yr.touch,function(i){Ar(e,i,function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),W(yr.mouse,function(i){Ar(e,i,function(r){r=xe(r),e.touching||n[i].call(t,r)})}))}function Dr(t,e){function n(n){Ar(e,n,function(i){i=xe(i),Sr(t,i.target)||(i=function(t,e){return _e(t.dom,new Mr(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}c.pointerEventsSupported?W(xr,n):c.touchEventsSupported||W(mr,n)}function Ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,be(t.domTarget,e,n,i)}function kr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&we(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Nr=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Lr(e,Ir),vr&&(i._globalHandlerScope=new Lr(document,Tr)),Cr(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){kr(this._localHandlerScope),vr&&kr(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,vr&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Dr(this,e):kr(e)}},n}(ie),Er=1;c.hasGlobalWindow&&(Er=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Or=Er,Pr="#333",Rr="#ccc",Vr=Ae,zr=5e-5;function Br(t){return t>zr||t<-5e-5}var Gr=[],Fr=[],Wr=[1,0,0,1,0,0],Hr=Math.abs,Ur=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Br(this.rotation)||Br(this.x)||Br(this.y)||Br(this.scaleX-1)||Br(this.scaleY-1)||Br(this.skewX)||Br(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Vr(n),t&&(e?Le(n,t,n):ke(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Vr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Gr);var n=Gr[0]<0?-1:1,i=Gr[1]<0?-1:1,r=((Gr[0]-n)*e+n)/Gr[0]||0,o=((Gr[1]-i)*e+i)/Gr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Pe(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Le(Fr,t.invTransform,e),e=Fr);var n=this.originX,i=this.originY;(n||i)&&(Wr[4]=n,Wr[5]=i,Le(Fr,e,Wr),Fr[4]-=n,Fr[5]-=i,e=Fr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&qt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&qt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Hr(t[0]-1)>1e-10&&Hr(t[3]-1)>1e-10?Math.sqrt(Hr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Xr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&Ee(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Yr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xr(t,e){for(var n=0;n<Yr.length;n++){var i=Yr[n];t[i]=e[i]}}var Zr,jr=Ur;function qr(t){Zr||(Zr=new si(100)),t=t||p;var e=Zr.get(t);return e||(e={font:t,strWidthCache:new si(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:v.measureText("国",t).width,asciiCharWidth:v.measureText("a",t).width},Zr.put(t,e)),e}var Kr=0,$r=5;function Jr(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(Kr>=$r)){t=t||p;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=v.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?Kr=$r:r>2&&Kr++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Qr(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=v.measureText(e,t.font).width,n.put(e,i)),i}function to(t,e,n,i){var r=Qr(qr(e),t),o=ro(e),a=no(0,r,n),s=io(0,o,i);return new on(a,s,r,o)}function eo(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return to(r[0],e,n,i);for(var o=new on(0,0,0,0),a=0;a<r.length;a++){var s=to(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function no(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function io(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function ro(t){return qr(t).stWideCharWidth}function oo(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ao(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=oo(i[0],n.width),u+=oo(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var so="__zr_normal__",lo=Yr.concat(["ignore"]),uo=U(Yr,function(t,e){return t[e]=!0,t},{ignore:!1}),co={},ho=new on(0,0,0,0),po=[],fo=function(){function t(t){this.id=k(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=ho,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(co,n,h):ao(co,n,h),r.x=co.x,r.y=co.y,o=co.align,a=co.verticalAlign;var p=n.origin;if(p&&null!=n.rotation){var d=void 0,f=void 0;"center"===p?(d=.5*h.width,f=.5*h.height):(d=oo(p[0],h.width),f=oo(p[1],h.height)),l=!0,r.originX=-r.x+d+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=v.overflowRect=v.overflowRect||new on(0,0,0,0);r.getLocalTransform(po),Pe(po,po),on.copy(y,h),y.applyTransform(po)}else v.overflowRect=null;var m=void 0,x=void 0,_=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(m=n.insideFill,x=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,x=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(m),_=!0)),(m=m||"#000")===v.fill&&x===v.stroke&&_===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=m,v.stroke=x,v.autoStroke=_,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rr:Pr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&_i(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ai(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},P(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(et(t))for(var n=Z(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==so)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,lo)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(so,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===so;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(z(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}L("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=z(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=z(i,t),o=z(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];P(n,r),r.textConfig&&P(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=P({},i?this.textConfig:n.textConfig),P(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<lo.length;u++){var c=lo[u],h=r&&uo[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(!t.__zr||t.__hostTarget){if(t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}else if("production"!==process.env.NODE_ENV)throw new Error("Recursive component attachment.")}else if("production"!==process.env.NODE_ENV)throw new Error("Text element has been added to zrender.")},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),"production"!==process.env.NODE_ENV&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new jr,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;if("production"===process.env.NODE_ENV||i){var r=new cr(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r}L('Property "'+t+'" is not existed in element '+this.id)},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=z(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){go(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){go(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=go(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1;var n={};function i(t,e,i){n[t+e+i]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+i+"' instead"),n[t+e+i]=!0)}function r(t,n,r,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(e,t,{get:function(){("production"!==process.env.NODE_ENV&&i(t,r,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(e){"production"!==process.env.NODE_ENV&&i(t,r,o),this[r]=e[0],this[o]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function go(t,e,n,i,r){var o=[];mo(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function vo(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function yo(t,e,n){if(F(e[n]))if(F(t[n])||(t[n]=[]),it(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),vo(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(F(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?vo(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else vo(o,r,a);o.length=r.length}else t[n]=e[n]}function mo(t,e,n,i,r,o,a,s){for(var l=Z(i),u=r.duration,c=r.delay,h=r.additive,p=r.setToFinal,d=!et(o),f=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(null!=m&&null!=n[y]&&(d||o[y]))if(!et(m)||F(m)||ot(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}mo(t,y,n[y],m,r,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===e)if(w.stopTracks(g)){var b=z(f,w);f.splice(b,1)}}if(r.force||(g=Y(g,function(t){return e=i[t],r=n[t],!(e===r||F(e)&&F(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r}),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},p&&(S={});for(_=0;_<x;_++){M[y=g[_]]=n[y],p?S[y]=i[y]:n[y]=i[y]}}else if(p){I={};for(_=0;_<x;_++){I[y=g[_]]=ir(n[y]),yo(n,i,y)}}(w=new cr(n,!1,!1,h?Y(f,function(t){return t.targetName===e}):null)).targetName=e,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}G(fo,ie),G(fo,jr);var xo=fo,_o=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),"production"!==process.env.NODE_ENV&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},n.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=z(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=z(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},n.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new on(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(on.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},n}(xo);_o.prototype.type="group";var bo=_o,wo={},So={};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{e,a as n}from"../../chunks/tslib.es6-4974c96c.esm.js";import i,{PureComponent as r}from"react";import{g as o,c as a}from"../../chunks/_commonjsHelpers-02d3be64.esm.js";import{alpha as s}from"@mui/material";var l=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},u=new function(){this.browser=new l,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(u.wxa=!0,u.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?u.worker=!0:!u.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(u.node=!0,u.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=e.domSupported="undefined"!=typeof document;if(s){var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,u);var c=u,h="sans-serif",p="12px "+h;var d,f,g=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),v={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!d){var n=v.createCanvas();d=n&&n.getContext("2d")}if(d)return f!==e&&(f=d.font=e||p),d.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||p),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=g[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function y(t){for(var e in v)t[e]&&(v[e]=t[e])}var m=U(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),x=U(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),_=Object.prototype.toString,b=Array.prototype,w=b.forEach,S=b.filter,M=b.slice,I=b.map,T=function(){}.constructor,C=T?T.prototype:null,D="__proto__",A=2311;function k(){return A++}function L(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function N(t){if(null==t||"object"!=typeof t)return t;var e=t,n=_.call(t);if("[object Array]"===n){if(!mt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=N(t[i])}}else if(x[n]){if(!mt(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!m[n]&&!mt(t)&&!rt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==D&&(e[a]=N(t[a]));return e}function E(t,e,n){if(!et(e)||!et(t))return n?N(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==D){var r=t[i],o=e[i];!et(o)||!et(r)||K(o)||K(r)||rt(o)||rt(r)||nt(o)||nt(r)||mt(o)||mt(r)?!n&&i in t||(t[i]=N(e[i])):E(r,o,n)}return t}function O(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=E(n,t[i],e);return n}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==D&&(t[n]=e[n]);return t}function R(t,e,n){for(var i=Z(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var V=v.createCanvas;function z(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function B(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function G(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else R(t,e,n)}function F(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===w)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function H(t,e,n){if(!t)return[];if(!e)return pt(t);if(t.map&&t.map===I)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function U(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function Y(t,e,n){if(!t)return[];if(!e)return pt(t);if(t.filter&&t.filter===S)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function X(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function Z(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var j=C&&$(C.bind)?C.call.bind(C.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(M.call(arguments)))}};function q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(M.call(arguments)))}}function K(t){return Array.isArray?Array.isArray(t):"[object Array]"===_.call(t)}function $(t){return"function"==typeof t}function J(t){return"string"==typeof t}function Q(t){return"[object String]"===_.call(t)}function tt(t){return"number"==typeof t}function et(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function nt(t){return!!m[_.call(t)]}function it(t){return!!x[_.call(t)]}function rt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function ot(t){return null!=t.colorStops}function at(t){return null!=t.image}function st(t){return"[object RegExp]"===_.call(t)}function lt(t){return t!=t}function ut(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function ct(t,e){return null!=t?t:e}function ht(t,e,n){return null!=t?t:null!=e?e:n}function pt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return M.apply(t,e)}function dt(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function ft(t,e){if(!t)throw new Error(e)}function gt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var vt="__ec_primitive__";function yt(t){t[vt]=!0}function mt(t){return t[vt]}var xt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Z(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),_t="function"==typeof Map;var bt=function(){function t(e){var n=K(e);this.data=_t?new Map:new xt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&W(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return _t?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function wt(t){return new bt(t)}function St(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function Mt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&P(n,e),n}function It(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Tt(t,e){return t.hasOwnProperty(e)}function Ct(){}var Dt=180/Math.PI,At=Number.EPSILON||Math.pow(2,-52),kt=Object.freeze({__proto__:null,EPSILON:At,HashMap:bt,RADIAN_TO_DEGREE:Dt,assert:ft,bind:j,clone:N,concatArray:St,createCanvas:V,createHashMap:wt,createObject:Mt,curry:q,defaults:R,disableUserSelect:It,each:W,eqNaN:lt,extend:P,filter:Y,find:X,guid:k,hasOwn:Tt,indexOf:z,inherits:B,isArray:K,isArrayLike:F,isBuiltInObject:nt,isDom:rt,isFunction:$,isGradientObject:ot,isImagePatternObject:at,isNumber:tt,isObject:et,isPrimitive:mt,isRegExp:st,isString:J,isStringSafe:Q,isTypedArray:it,keys:Z,logError:L,map:H,merge:E,mergeAll:O,mixin:G,noop:Ct,normalizeCssArray:dt,reduce:U,retrieve:ut,retrieve2:ct,retrieve3:ht,setAsPrimitive:yt,slice:pt,trim:gt});function Lt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Nt(t,e){return t[0]=e[0],t[1]=e[1],t}function Et(t){return[t[0],t[1]]}function Ot(t,e,n){return t[0]=e,t[1]=n,t}function Pt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Rt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Vt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function zt(t){return Math.sqrt(Gt(t))}var Bt=zt;function Gt(t){return t[0]*t[0]+t[1]*t[1]}var Ft=Gt;function Wt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ht(t,e){var n=zt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Ut(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Yt=Ut;function Xt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Zt=Xt;function jt(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function qt(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Kt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function $t(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Jt=Object.freeze({__proto__:null,add:Pt,applyTransform:qt,clone:Et,copy:Nt,create:Lt,dist:Yt,distSquare:Zt,distance:Ut,distanceSquare:Xt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:zt,lenSquare:Gt,length:Bt,lengthSquare:Ft,lerp:jt,max:$t,min:Kt,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Ht,scale:Wt,scaleAndAdd:Rt,set:Ot,sub:Vt}),Qt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},te=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Qt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new Qt(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Qt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Qt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Qt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Qt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ee=te,ne=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ie=ne,re=Math.log(2);function oe(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/re);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(h+=(d%2?-1:1)*t[n][p]*oe(t,e-1,c,u,r|f,o),d++)}return o[a]=h,h}function ae(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=oe(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*oe(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var se="___zrEVENTSAVED",le=[];function ue(t,e,n,i,r){if(e.getBoundingClientRect&&c.domSupported&&!ce(e)){var o=e[se]||(e[se]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){W(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})},n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?ae(s,a):ae(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function ce(t){return"CANVAS"===t.nodeName.toUpperCase()}var he=/([&<>"'])/g,pe={"&":"&","<":"<",">":">",'"':""","'":"'"};function de(t){return null==t?"":(t+"").replace(he,function(t,e){return pe[e]})}var fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ge=[],ve=c.browser.firefox&&+c.browser.version.split(".")[0]<39;function ye(t,e,n,i){return n=n||{},i?me(t,e,n):ve&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):me(t,e,n),n}function me(t,e,n){if(c.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(ce(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ue(ge,t,i,r))return n.zrX=ge[0],void(n.zrY=ge[1])}n.zrX=n.zrY=0}function xe(t){return t||window.event}function _e(t,e,n){if(null!=(e=xe(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ye(t,r,e,n)}else{ye(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&fe.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function be(t,e,n,i){t.addEventListener(e,n,i)}function we(t,e,n,i){t.removeEventListener(e,n,i)}var Se=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Me(t){return 2===t.which||3===t.which}var Ie=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=ye(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Ce)if(Ce.hasOwnProperty(e)){var n=Ce[e](this._track,t);if(n)return n}},t}();function Te(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var Ce={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Te(r)/Te(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function De(){return[1,0,0,1,0,0]}function Ae(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ke(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Le(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Ne(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Ee(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function Oe(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Pe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Re(t){var e=[1,0,0,1,0,0];return ke(e,t),e}var Ve=Object.freeze({__proto__:null,clone:Re,copy:ke,create:De,identity:Ae,invert:Pe,mul:Le,rotate:Ee,scale:Oe,translate:Ne}),ze=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),Be=ze,Ge=Math.min,Fe=Math.max,We=Math.abs,He=["x","y"],Ue=["width","height"],Ye=new Be,Xe=new Be,Ze=new Be,je=new Be,qe=rn(),Ke=qe.minTv,$e=qe.maxTv,Je=[0,0],Qe=function(){function t(e,n,i,r){t.set(this,e,n,i,r)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=Ge(t.x,this.x),n=Ge(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Ne(r,r,[-e.x,-e.y]),Oe(r,r,[n,i]),Ne(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&Be.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=t.set(tn,e.x,e.y,e.width,e.height)),n instanceof t||(n=t.set(en,n.x,n.y,n.width,n.height));var s=!!i;qe.reset(r,s);var l=qe.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>p||d>f||g>v)return!1;var y=!(c<d||f<u||p<g||v<h);return(s||o)&&(Je[0]=1/0,Je[1]=0,nn(u,c,d,f,0,s,o,a),nn(h,p,g,v,1,s,o,a),s&&Be.copy(i,y?qe.useDir?qe.dirMinTv:Ke:$e)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ye.x=Ze.x=n.x,Ye.y=je.y=n.y,Xe.x=je.x=n.x+n.width,Xe.y=Ze.y=n.y+n.height,Ye.transform(i),je.transform(i),Xe.transform(i),Ze.transform(i),e.x=Ge(Ye.x,Xe.x,Ze.x,je.x),e.y=Ge(Ye.y,Xe.y,Ze.y,je.y);var l=Fe(Ye.x,Xe.x,Ze.x,je.x),u=Fe(Ye.y,Xe.y,Ze.y,je.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),tn=new Qe(0,0,0,0),en=new Qe(0,0,0,0);function nn(t,e,n,i,r,o,a,s){var l=We(e-n),u=We(i-t),c=Ge(l,u),h=He[r],p=He[1-r],d=Ue[r];e<n||i<t?l<u?(o&&($e[h]=-l),s&&(a[h]=e,a[d]=0)):(o&&($e[h]=u),s&&(a[h]=t,a[d]=0)):(a&&(a[h]=Fe(t,n),a[d]=Ge(e,i)-a[h]),o&&(c<Je[0]||qe.useDir)&&(Je[0]=Ge(c,Je[0]),(l<u||!qe.bidirectional)&&(Ke[h]=l,Ke[p]=0,qe.useDir&&qe.calcDirMTV()),(l>=u||!qe.bidirectional)&&(Ke[h]=-u,Ke[p]=0,qe.useDir&&qe.calcDirMTV())))}function rn(){var t=0,e=new Be,n=new Be,i={minTv:new Be,maxTv:new Be,useDir:!1,dirMinTv:new Be,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=Fe(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return We(t)<1e-10}return i}var on=Qe,an="silent";function sn(){Se(this.event)}var ln=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return e(n,t),n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(ie),un=function(t,e){this.x=t,this.y=e},cn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hn=new on(0,0,0,0),pn=function(t){function n(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new un(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new ln,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new ee(a),a}return e(n,t),n.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(W(cn,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},n.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=gn(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new un(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},n.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},n.prototype.resize=function(){this._hovered=new un(0,0)},n.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},n.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:sn}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},n.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new un(t,e);if(fn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new on(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(hn.copy(c.getBoundingRect()),c.transform&&hn.applyTransform(c.transform),hn.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h){if(fn(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}}return r},n.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Ie);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new un;o.target=i.target,this.dispatchToElement(o,r,i.event)}},n}(ie);function dn(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||an}return!1}function fn(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=dn(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==an)){e.target=a;break}}}function gn(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){pn.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=gn(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Yt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var vn=pn;function yn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function mn(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function xn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function _n(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function bn(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=_n(t[c],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(h=xn(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0===--s){for(l=0;l<i;l++)t[h+l]=a[u+l];return}if(1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var p,d,f,g=r;for(;;){p=0,d=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],d++,p=0,0===--s){f=!0;break}}else if(t[h++]=a[u++],p++,d=0,1===--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=_n(t[c],a,u,i,0,e))){for(l=0;l<p;l++)t[h+l]=a[u+l];if(h+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[h++]=t[c++],0===--s){f=!0;break}if(0!==(d=xn(a[u],t,c,s,0,e))){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,0===(s-=d)){f=!0;break}}if(t[h++]=a[u++],1===--i){f=!0;break}g--}while(p>=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,p=0,d=0;if(t[h--]=t[u--],0===--i){for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l];return}if(1===s){for(d=(h-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];return void(t[h]=a[c])}var f=r;for(;;){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--i){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1===--s){y=!0;break}}while((g|v)<f);if(y)break;do{if(0!==(g=i-_n(a[c],t,n,i,i-1,e))){for(i-=g,d=(h-=g)+1,p=(u-=g)+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(0!==(v=s-xn(t[u],a,0,s,s-1,e))){for(s-=v,d=(h-=v)+1,p=(c-=v)+1,l=0;l<v;l++)t[d+l]=a[p+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0===--i){y=!0;break}f--}while(g>=7||v>=7);if(y)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(d=(h-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function wn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)mn(t,n,i,n+(o=yn(t,n,i,e)),e);else{var a=bn(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=yn(t,n,i,e))<s){var l=r;l>s&&(l=s),mn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Sn=!1;function Mn(){Sn||(Sn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function In(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Tn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=In}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,wn(n,In)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var p=c[h];t.__dirty&&(p.__dirty|=1),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Mn(),d.z=0),isNaN(d.z2)&&(Mn(),d.z2=0),isNaN(d.zlevel)&&(Mn(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=z(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Cn=Tn,Dn=c.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},An={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-An.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*An.bounceIn(2*t):.5*An.bounceOut(2*t-1)+.5}},kn=An,Ln=Math.pow,Nn=Math.sqrt,En=1e-8,On=1e-4,Pn=Nn(3),Rn=1/3,Vn=Lt(),zn=Lt(),Bn=Lt();function Gn(t){return t>-1e-8&&t<En}function Fn(t){return t>En||t<-1e-8}function Wn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Hn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Un(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Gn(c)&&Gn(h)){if(Gn(s))o[0]=0;else(M=-l/s)>=0&&M<=1&&(o[d++]=M)}else{var f=h*h-4*c*p;if(Gn(f)){var g=h/c,v=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),v>=0&&v<=1&&(o[d++]=v)}else if(f>0){var y=Nn(f),m=c*s+1.5*a*(-h+y),x=c*s+1.5*a*(-h-y);(M=(-s-((m=m<0?-Ln(-m,Rn):Ln(m,Rn))+(x=x<0?-Ln(-x,Rn):Ln(x,Rn))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*c*s-3*a*h)/(2*Nn(c*c*c)),b=Math.acos(_)/3,w=Nn(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(v=(-s+w*(S+Pn*Math.sin(b)))/(3*a),(-s+w*(S-Pn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),v>=0&&v<=1&&(o[d++]=v),I>=0&&I<=1&&(o[d++]=I)}}return d}function Yn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Gn(a)){if(Fn(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(Gn(u))r[0]=-o/(2*a);else if(u>0){var c,h=Nn(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}function Xn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Zn(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,v=.005,y=1/0;Vn[0]=l,Vn[1]=u;for(var m=0;m<1;m+=.05)zn[0]=Wn(t,n,r,a,m),zn[1]=Wn(e,i,o,s,m),(f=Zt(Vn,zn))<y&&(h=m,y=f);y=1/0;for(var x=0;x<32&&!(v<On);x++)p=h-v,d=h+v,zn[0]=Wn(t,n,r,a,p),zn[1]=Wn(e,i,o,s,p),f=Zt(zn,Vn),p>=0&&f<y?(h=p,y=f):(Bn[0]=Wn(t,n,r,a,d),Bn[1]=Wn(e,i,o,s,d),g=Zt(Bn,Vn),d<=1&&g<y?(h=d,y=g):v*=.5);return c&&(c[0]=Wn(t,n,r,a,h),c[1]=Wn(e,i,o,s,h)),Nn(y)}function jn(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Wn(t,n,r,a,f),v=Wn(e,i,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function qn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Kn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function $n(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Jn(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Qn(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Vn[0]=a,Vn[1]=s;for(var p=0;p<1;p+=.05){zn[0]=qn(t,n,r,p),zn[1]=qn(e,i,o,p),(v=Zt(Vn,zn))<h&&(u=p,h=v)}h=1/0;for(var d=0;d<32&&!(c<On);d++){var f=u-c,g=u+c;zn[0]=qn(t,n,r,f),zn[1]=qn(e,i,o,f);var v=Zt(zn,Vn);if(f>=0&&v<h)u=f,h=v;else{Bn[0]=qn(t,n,r,g),Bn[1]=qn(e,i,o,g);var y=Zt(Bn,Vn);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=qn(t,n,r,u),l[1]=qn(e,i,o,u)),Nn(h)}function ti(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=qn(t,n,r,p),f=qn(e,i,o,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var ei=/cubic-bezier\(([0-9,\.e ]+)\)/;function ni(t){var e=t&&ei.exec(t);if(e){var n=e[1].split(","),i=+gt(n[0]),r=+gt(n[1]),o=+gt(n[2]),a=+gt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Un(0,i,o,1,t,s)&&Wn(0,r,a,1,s[0])}}}var ii=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ct,this.ondestroy=t.ondestroy||Ct,this.onrestart=t.onrestart||Ct,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=$(t)?t:kn[t]||ni(t)},t}(),ri=function(t){this.value=t},oi=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new ri(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ai=function(){function t(t){this._list=new oi,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new ri(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),si=ai,li={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ui(t){return(t=Math.round(t))<0?0:t>255?255:t}function ci(t){return t<0?0:t>1?1:t}function hi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ui(parseFloat(e)/100*255):ui(parseInt(e,10))}function pi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ci(parseFloat(e)/100):ci(parseFloat(e))}function di(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function fi(t,e,n){return t+(e-t)*n}function gi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function vi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var yi=new si(20),mi=null;function xi(t,e){mi&&vi(mi,e),mi=yi.put(t,mi||e.slice())}function _i(t,e){if(t){e=e||[];var n=yi.get(t);if(n)return vi(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in li)return vi(e,li[i]),xi(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(gi(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),xi(t,e),e):void gi(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(gi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),xi(t,e),e):void gi(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?gi(e,+u[0],+u[1],+u[2],1):gi(e,0,0,0,1);c=pi(u.pop());case"rgb":return u.length>=3?(gi(e,hi(u[0]),hi(u[1]),hi(u[2]),3===u.length?c:pi(u[3])),xi(t,e),e):void gi(e,0,0,0,1);case"hsla":return 4!==u.length?void gi(e,0,0,0,1):(u[3]=pi(u[3]),bi(u,e),xi(t,e),e);case"hsl":return 3!==u.length?void gi(e,0,0,0,1):(bi(u,e),xi(t,e),e);default:return}}gi(e,0,0,0,1)}}function bi(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=pi(t[1]),r=pi(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return gi(e=e||[],ui(255*di(a,o,n+1/3)),ui(255*di(a,o,n)),ui(255*di(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function wi(t,e){var n=_i(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Ai(n,4===n.length?"rgba":"rgb")}}function Si(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=ui(fi(a[0],s[0],l)),n[1]=ui(fi(a[1],s[1],l)),n[2]=ui(fi(a[2],s[2],l)),n[3]=ci(fi(a[3],s[3],l)),n}}var Mi=Si;function Ii(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=_i(e[r]),s=_i(e[o]),l=i-r,u=Ai([ui(fi(a[0],s[0],l)),ui(fi(a[1],s[1],l)),ui(fi(a[2],s[2],l)),ci(fi(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Ti=Ii;function Ci(t,e,n,i){var r=_i(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}($(e)?e(r[0]):e)),null!=n&&(r[1]=pi($(n)?n(r[1]):n)),null!=i&&(r[2]=pi($(i)?i(r[2]):i)),Ai(bi(r),"rgba")}function Di(t,e){var n=_i(t);if(n&&null!=e)return n[3]=ci(e),Ai(n,"rgba")}function Ai(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function ki(t,e){var n=_i(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var Li=new si(100);function Ni(t){if(J(t)){var e=Li.get(t);return e||(e=wi(t,-.1),Li.put(t,e)),e}if(ot(t)){var n=P({},t);return n.colorStops=H(t.colorStops,function(t){return{offset:t.offset,color:wi(t.color,-.1)}}),n}return t}var Ei=Object.freeze({__proto__:null,fastLerp:Si,fastMapToColor:Mi,lerp:Ii,lift:wi,liftColor:Ni,lum:ki,mapToColor:Ti,modifyAlpha:Di,modifyHSL:Ci,parse:_i,parseCssFloat:pi,parseCssInt:hi,random:function(){return Ai([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ai,toHex:function(t){var e=_i(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}}),Oi=Math.round;function Pi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=_i(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Ri=1e-4;function Vi(t){return t<Ri&&t>-1e-4}function zi(t){return Oi(1e3*t)/1e3}function Bi(t){return Oi(1e4*t)/1e4}var Gi={left:"start",right:"end",center:"middle",middle:"middle"};function Fi(t){return t&&!!t.image}function Wi(t){return Fi(t)||function(t){return t&&!!t.svgElement}(t)}function Hi(t){return"linear"===t.type}function Ui(t){return"radial"===t.type}function Yi(t){return t&&("linear"===t.type||"radial"===t.type)}function Xi(t){return"url(#"+t+")"}function Zi(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ji(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Dt,r=ct(t.scaleX,1),o=ct(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+Oi(a*Dt)+"deg, "+Oi(s*Dt)+"deg)"),l.join(" ")}var qi=c.hasGlobalWindow&&$(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return"production"!==process.env.NODE_ENV&&L("Base64 isn't natively supported in the current environment."),null},Ki=Array.prototype.slice;function $i(t,e,n){return(e-t)*n+t}function Ji(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=$i(e[o],n[o],i);return t}function Qi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function tr(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function er(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function nr(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:Ki.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function ir(t){if(F(t)){var e=t.length;if(F(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ki.call(t[i]));return n}return Ki.call(t)}return t}function rr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function or(t){return 4===t||5===t}function ar(t){return 1===t||2===t}var sr=[0,0,0,0],lr=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(F(e)){var l=function(t){return F(t&&t[0])?2:1}(e);a=l,(1===l&&!tt(e[0])||2===l&&!tt(e[0][0]))&&(o=!0)}else if(tt(e)&&!lt(e))a=0;else if(J(e))if(isNaN(+e)){var u=_i(e);u&&(s=u,a=3)}else a=0;else if(ot(e)){var c=P({},s);c.colorStops=H(e.colorStops,function(t){return{offset:t.offset,color:_i(t.color)}}),Hi(e)?a=4:Ui(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=$(n)?n:kn[n]||ni(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ar(i),l=or(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?nr(h,p,i):l&&er(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=Qi([],n[u].value,d,-1):ar(i)&&(n[u].additiveValue=1===i?Qi([],n[u].value,d,-1):tr([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?sr:t[c];if(!ar(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(ar(s))1===s?Ji(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=$i(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(or(s)){var y=i[a],m=r[a],x=4===s;t[c]={type:x?"linear":"radial",x:$i(y.x,m.x,g),y:$i(y.y,m.y,g),colorStops:H(y.colorStops,function(t,e){var n=m.colorStops[e];return{offset:$i(t.offset,n.offset,g),color:rr(Ji([],t.color,n.color,g))}}),global:m.global},x?(t[c].x2=$i(y.x2,m.x2,g),t[c].y2=$i(y.y2,m.y2,g)):t[c].r=$i(y.r,m.r,g)}else if(h)Ji(v,i[a],r[a],g),o||(t[c]=rr(v));else{var _=$i(i[a],r[a],g);o?this._additiveValue=_:t[c]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(_i(t[n],sr),Qi(sr,sr,i,1),t[n]=rr(sr)):1===e?Qi(t[n],t[n],i,1):2===e&&tr(t[n],t[n],i,1)},t}(),ur=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?L("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Z(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new lr(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=rr(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,ir(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ir(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new ii({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return H(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=ir(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Z(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),cr=ur;function hr(){return(new Date).getTime()}var pr,dr,fr=function(t){function n(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return e(n,t),n.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},n.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},n.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},n.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},n.prototype.update=function(t){for(var e=hr()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){var t=this;this._running=!0,Dn(function e(){t._running&&(Dn(e),!t._paused&&t.update())})},n.prototype.start=function(){this._running||(this._time=hr(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=hr(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=hr()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},n.prototype.isFinished=function(){return null==this._head},n.prototype.animate=function(t,e){e=e||{},this.start();var n=new cr(t,e.loop);return this.addAnimator(n),n},n}(ie),gr=fr,vr=c.domSupported,yr=(dr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:pr=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:H(pr,function(t){var e=t.replace("mouse","pointer");return dr.hasOwnProperty(e)?e:t})}),mr=["mousemove","mouseup"],xr=["pointermove","pointerup"],_r=!1;function br(t){var e=t.pointerType;return"pen"===e||"touch"===e}function wr(t){t&&(t.zrByTouch=!0)}function Sr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Mr=function(t,e){this.stopPropagation=Ct,this.stopImmediatePropagation=Ct,this.preventDefault=Ct,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Ir={mousedown:function(t){t=_e(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=_e(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=_e(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Sr(this,(t=_e(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){_r=!0,t=_e(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){_r||(t=_e(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){wr(t=_e(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ir.mousemove.call(this,t),Ir.mousedown.call(this,t)},touchmove:function(t){wr(t=_e(this.dom,t)),this.handler.processGesture(t,"change"),Ir.mousemove.call(this,t)},touchend:function(t){wr(t=_e(this.dom,t)),this.handler.processGesture(t,"end"),Ir.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ir.click.call(this,t)},pointerdown:function(t){Ir.mousedown.call(this,t)},pointermove:function(t){br(t)||Ir.mousemove.call(this,t)},pointerup:function(t){Ir.mouseup.call(this,t)},pointerout:function(t){br(t)||Ir.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Ir[t]=function(e){e=_e(this.dom,e),this.trigger(t,e)}});var Tr={pointermove:function(t){br(t)||Tr.mousemove.call(this,t)},pointerup:function(t){Tr.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Cr(t,e){var n=e.domHandlers;c.pointerEventsSupported?W(yr.pointer,function(i){Ar(e,i,function(e){n[i].call(t,e)})}):(c.touchEventsSupported&&W(yr.touch,function(i){Ar(e,i,function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(e)})}),W(yr.mouse,function(i){Ar(e,i,function(r){r=xe(r),e.touching||n[i].call(t,r)})}))}function Dr(t,e){function n(n){Ar(e,n,function(i){i=xe(i),Sr(t,i.target)||(i=function(t,e){return _e(t.dom,new Mr(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}c.pointerEventsSupported?W(xr,n):c.touchEventsSupported||W(mr,n)}function Ar(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,be(t.domTarget,e,n,i)}function kr(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&we(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Lr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Nr=function(t){function n(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Lr(e,Ir),vr&&(i._globalHandlerScope=new Lr(document,Tr)),Cr(i,i._localHandlerScope),i}return e(n,t),n.prototype.dispose=function(){kr(this._localHandlerScope),vr&&kr(this._globalHandlerScope)},n.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},n.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,vr&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Dr(this,e):kr(e)}},n}(ie),Er=1;c.hasGlobalWindow&&(Er=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Or=Er,Pr="#333",Rr="#ccc",Vr=Ae,zr=5e-5;function Br(t){return t>zr||t<-5e-5}var Gr=[],Fr=[],Wr=[1,0,0,1,0,0],Hr=Math.abs,Ur=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Br(this.rotation)||Br(this.x)||Br(this.y)||Br(this.scaleX-1)||Br(this.scaleY-1)||Br(this.skewX)||Br(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Vr(n),t&&(e?Le(n,t,n):ke(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Vr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Gr);var n=Gr[0]<0?-1:1,i=Gr[1]<0?-1:1,r=((Gr[0]-n)*e+n)/Gr[0]||0,o=((Gr[1]-i)*e+i)/Gr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Pe(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Le(Fr,t.invTransform,e),e=Fr);var n=this.originX,i=this.originY;(n||i)&&(Wr[4]=n,Wr[5]=i,Le(Fr,e,Wr),Fr[4]-=n,Fr[5]-=i,e=Fr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&qt(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&qt(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Hr(t[0]-1)>1e-10&&Hr(t[3]-1)>1e-10?Math.sqrt(Hr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Xr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&Ee(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Yr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xr(t,e){for(var n=0;n<Yr.length;n++){var i=Yr[n];t[i]=e[i]}}var Zr,jr=Ur;function qr(t){Zr||(Zr=new si(100)),t=t||p;var e=Zr.get(t);return e||(e={font:t,strWidthCache:new si(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:v.measureText("国",t).width,asciiCharWidth:v.measureText("a",t).width},Zr.put(t,e)),e}var Kr=0,$r=5;function Jr(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(Kr>=$r)){t=t||p;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=v.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?Kr=$r:r>2&&Kr++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Qr(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=v.measureText(e,t.font).width,n.put(e,i)),i}function to(t,e,n,i){var r=Qr(qr(e),t),o=ro(e),a=no(0,r,n),s=io(0,o,i);return new on(a,s,r,o)}function eo(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return to(r[0],e,n,i);for(var o=new on(0,0,0,0),a=0;a<r.length;a++){var s=to(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function no(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function io(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function ro(t){return qr(t).stWideCharWidth}function oo(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ao(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=oo(i[0],n.width),u+=oo(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var so="__zr_normal__",lo=Yr.concat(["ignore"]),uo=U(Yr,function(t,e){return t[e]=!0,t},{ignore:!1}),co={},ho=new on(0,0,0,0),po=[],fo=function(){function t(t){this.id=k(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=ho,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(co,n,h):ao(co,n,h),r.x=co.x,r.y=co.y,o=co.align,a=co.verticalAlign;var p=n.origin;if(p&&null!=n.rotation){var d=void 0,f=void 0;"center"===p?(d=.5*h.width,f=.5*h.height):(d=oo(p[0],h.width),f=oo(p[1],h.height)),l=!0,r.originX=-r.x+d+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=v.overflowRect=v.overflowRect||new on(0,0,0,0);r.getLocalTransform(po),Pe(po,po),on.copy(y,h),y.applyTransform(po)}else v.overflowRect=null;var m=void 0,x=void 0,_=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(m=n.insideFill,x=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,x=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(m),_=!0)),(m=m||"#000")===v.fill&&x===v.stroke&&_===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=m,v.stroke=x,v.autoStroke=_,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rr:Pr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&_i(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ai(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},P(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(et(t))for(var n=Z(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==so)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,lo)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(so,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===so;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(z(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}L("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=z(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=z(i,t),o=z(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];P(n,r),r.textConfig&&P(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=P({},i?this.textConfig:n.textConfig),P(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<lo.length;u++){var c=lo[u],h=r&&uo[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if(!t.__zr||t.__hostTarget){if(t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}else if("production"!==process.env.NODE_ENV)throw new Error("Recursive component attachment.")}else if("production"!==process.env.NODE_ENV)throw new Error("Text element has been added to zrender.")},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),"production"!==process.env.NODE_ENV&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new jr,this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;if("production"===process.env.NODE_ENV||i){var r=new cr(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r}L('Property "'+t+'" is not existed in element '+this.id)},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=z(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){go(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){go(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=go(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1;var n={};function i(t,e,i){n[t+e+i]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+i+"' instead"),n[t+e+i]=!0)}function r(t,n,r,o){function a(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[o]},set:function(e){t[o]=e}})}Object.defineProperty(e,t,{get:function(){("production"!==process.env.NODE_ENV&&i(t,r,o),this[n])||a(this,this[n]=[]);return this[n]},set:function(e){"production"!==process.env.NODE_ENV&&i(t,r,o),this[r]=e[0],this[o]=e[1],this[n]=e,a(this,e)}})}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function go(t,e,n,i,r){var o=[];mo(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var p=0;p<o.length;p++){var d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function vo(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function yo(t,e,n){if(F(e[n]))if(F(t[n])||(t[n]=[]),it(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),vo(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(F(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?vo(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else vo(o,r,a);o.length=r.length}else t[n]=e[n]}function mo(t,e,n,i,r,o,a,s){for(var l=Z(i),u=r.duration,c=r.delay,h=r.additive,p=r.setToFinal,d=!et(o),f=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(null!=m&&null!=n[y]&&(d||o[y]))if(!et(m)||F(m)||ot(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}mo(t,y,n[y],m,r,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===e)if(w.stopTracks(g)){var b=z(f,w);f.splice(b,1)}}if(r.force||(g=Y(g,function(t){return e=i[t],r=n[t],!(e===r||F(e)&&F(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r}),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s){M={},p&&(S={});for(_=0;_<x;_++){M[y=g[_]]=n[y],p?S[y]=i[y]:n[y]=i[y]}}else if(p){I={};for(_=0;_<x;_++){I[y=g[_]]=ir(n[y]),yo(n,i,y)}}(w=new cr(n,!1,!1,h?Y(f,function(t){return t.targetName===e}):null)).targetName=e,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),I&&w.whenWithKeys(0,I,g),w.whenWithKeys(null==u?500:u,s?M:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}G(fo,ie),G(fo,jr);var xo=fo,_o=function(t){function n(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return e(n,t),n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(t){return this._children[t]},n.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),"production"!==process.env.NODE_ENV&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},n.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},n.prototype.replace=function(t,e){var n=z(this._children,t);return n>=0&&this.replaceAt(e,n),this},n.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},n.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},n.prototype.remove=function(t){var e=this.__zr,n=this._children,i=z(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},n.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},n.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},n.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},n.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},n.prototype.getBoundingRect=function(t){for(var e=new on(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(on.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},n}(xo);_o.prototype.type="group";var bo=_o,wo={},So={};
|
|
2
2
|
/*!
|
|
3
3
|
* ZRender, a high performance 2d drawing library.
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as i}from"../../chunks/tslib.es6-
|
|
1
|
+
import{_ as e,a as i}from"../../chunks/tslib.es6-4974c96c.esm.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";import*as u from"react";import{a as s}from"../../chunks/index-32c3a4e2.esm.js";import{M as n,d as a}from"../../chunks/lucide-8c9441ea.esm.js";var l={sm:"zui:h-4 zui:w-4",md:"zui:h-5 zui:w-5",lg:"zui:h-6 zui:w-6"},c=u.forwardRef(function(c,z){var o=c.className,d=c.label,m=c.description,f=c.size,h=void 0===f?"md":f,p=c.disabled,b=c.indeterminate,x=c.error,k=e(c,["className","label","description","size","disabled","indeterminate","error"]),w=u.useRef(null);return u.useEffect(function(){w.current&&(w.current.indeterminate=!!b)},[b]),r("label",{className:s("zui:inline-flex zui:items-start zui:gap-2 zui:cursor-pointer",p&&"zui:opacity-60 zui:cursor-not-allowed",o),children:[r("span",{className:s("zui:relative zui:inline-flex zui:items-center zui:justify-center zui:rounded zui:border zui:border-slate-300 zui:bg-white zui:transition-colors zui:shrink-0",l[h],{"zui:border-red-500":x,"zui:bg-slate-200":p,"zui:border-blue-600":(k.checked||b)&&!x,"zui:bg-blue-600":(k.checked||b)&&!x,"zui:ring-1 zui:ring-offset-1 zui:ring-blue-600":(k.checked||b)&&!p}),children:[t("input",i({type:"checkbox",className:"zui:sr-only",ref:function(e){w.current=e,"function"==typeof z?z(e):z&&(z.current=e)},disabled:p,"aria-invalid":x},k)),b?t(n,{className:"zui:w-3 zui:h-3 zui:text-white zui:pointer-events-none",strokeWidth:3}):k.checked?t(a,{className:"zui:w-4 zui:h-4 zui:text-white zui:pointer-events-none"}):null]}),(d||m)&&r("div",{className:"zui:flex zui:flex-col",children:[d&&t("span",{className:"zui:text-sm zui:text-slate-800 zui:font-medium",children:d}),m&&t("span",{className:s("zui:text-xs zui:text-slate-500",x&&"zui:text-red-500"),children:m})]})]})});export{c as Checkbox,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../../chunks/tslib.es6-
|
|
1
|
+
import{b as e}from"../../chunks/tslib.es6-4974c96c.esm.js";import{jsxs as i,jsx as r}from"react/jsx-runtime";import*as a from"react";import{a as l}from"../../chunks/index-32c3a4e2.esm.js";import{Checkbox as u}from"../Checkbox/index.esm.js";import"../../chunks/lucide-8c9441ea.esm.js";var t=function(t){var s,o=t.name,d=t.label,n=t.description,c=t.error,z=t.options,m=t.value,v=t.defaultValue,b=t.onChange,p=t.direction,h=void 0===p?"vertical":p,x=t.layout,f=void 0===x?"box":x,g=t.disabled,N=void 0!==g&&g,k=t.size,y=void 0===k?"md":k,j=t.className,C=t.columns,w=void 0===C?3:C,S=a.useState(v||[]),V=S[0],q=S[1],A=void 0!==m,B=A?m:V,D=function(i,r){var a=r?e(e([],B,!0),[i],!1):B.filter(function(e){return e!==i});A||q(a),null==b||b(a)};return i("fieldset",{className:l("zui:space-y-2",j),"aria-invalid":c||void 0,children:[(d||n)&&i("div",{className:"zui:mb-2",children:[d&&r("legend",{className:"zui:text-sm zui:font-medium zui:text-slate-800",children:d}),n&&r("p",{className:l("zui:text-xs zui:text-slate-500",c&&"zui:text-red-500"),children:n})]}),r("div",{className:l((s={"zui:space-y-2":"list"===f&&"vertical"===h,"zui:flex zui:flex-wrap zui:gap-4":"list"===f&&"horizontal"===h,"zui:grid zui:gap-4":"box"===f},s["zui:grid-cols-".concat(w)]="box"===f&&"horizontal"===h,s["zui:grid-cols-1"]="box"===f&&"vertical"===h,s),j),children:z.map(function(e){var a=B.includes(e.value),t=r(u,{name:o,size:y,label:"list"===f?e.label:void 0,description:"list"===f?e.description:void 0,value:e.value,checked:a,onChange:function(i){return D(e.value,i.target.checked)},disabled:N||e.disabled,error:c});return"box"===f?i("label",{className:l("group zui:relative zui:flex zui:cursor-pointer zui:rounded-md zui:border zui:border-gray-200 zui:bg-neutral-100 zui:p-2.5 zui:transition-all",{"zui:border-blue-600 zui:ring-1 zui:ring-blue-500 zui:bg-blue-50":a,"zui:hover:border-gray-400":!N,"zui:opacity-50 zui:cursor-not-allowed":N||e.disabled,"zui:border-red-500":c}),children:[r(u,{name:o,size:y,value:e.value,checked:a,onChange:function(i){return D(e.value,i.target.checked)},disabled:N||e.disabled,error:c,className:"zui:absolute zui:top-3 zui:right-3"}),i("div",{children:[r("p",{className:"zui:text-sm zui:font-medium zui:text-slate-800",children:e.label}),e.description&&r("p",{className:"zui:text-xs zui:text-slate-500",children:e.description})]})]},e.value):r("div",{children:t},e.value)})})]})};export{t as CheckboxGroup,t as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as e}from"../../chunks/tslib.es6-
|
|
1
|
+
import{b as e}from"../../chunks/tslib.es6-4974c96c.esm.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import*as o from"react";import l from"react";import{Checkbox as i}from"../Checkbox/index.esm.js";import{n as r,c as a,o as u,p as s,C as g,a as d,q as c,r as p}from"../../chunks/lucide-8c9441ea.esm.js";import"../../chunks/index-32c3a4e2.esm.js";
|
|
2
2
|
/**
|
|
3
3
|
* table-core
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as i,jsx as e}from"react/jsx-runtime";import*as t from"react";import{i as u,f as r,C as n}from"../../chunks/Calender-
|
|
1
|
+
import{jsxs as i,jsx as e}from"react/jsx-runtime";import*as t from"react";import{i as u,f as r,C as n}from"../../chunks/Calender-d4b487fe.esm.js";import{u as o,a}from"../../chunks/index-32c3a4e2.esm.js";import{Popover as s}from"../Popover/index.esm.js";import{X as l,h as c}from"../../chunks/lucide-8c9441ea.esm.js";import"../../chunks/typeof-cc63ab7d.esm.js";import"../../chunks/tslib.es6-4974c96c.esm.js";import"../Button/index.esm.js";import"@mui/material";var z={xs:"zui:h-8 zui:px-3 zui:text-xs",sm:"zui:h-9 zui:px-3 zui:text-sm",md:"zui:h-10 zui:px-3 zui:text-sm",lg:"zui:h-11 zui:px-3 zui:text-base"},d=function(i){if("boolean"==typeof i)return i;if(i instanceof Date)return!!u(i)&&i;if(Array.isArray(i))return i.filter(function(i){return i instanceof Date&&u(i)});if("object"==typeof i&&null!==i){var e={};return"from"in i&&u(i.from)&&(e.from=i.from),"to"in i&&u(i.to)&&(e.to=i.to),"before"in i&&u(i.before)&&(e.before=i.before),"after"in i&&u(i.after)&&(e.after=i.after),"dayOfWeek"in i&&(e.dayOfWeek=i.dayOfWeek),Object.keys(e).length>0&&e}return!1},m=function(m){var f=m.label,p=m.value,b=m.onChange,h=m.placeholder,x=void 0===h?"Pick a date":h,g=m.required,v=m.description,y=m.error,k=m.disabled,N=m.variant,j=void 0===N?"outlined":N,w=m.size,C=void 0===w?"md":w,O=m.className,P=m.disableRange,W=void 0!==P&&P,A=m.floatingLabel,B=void 0!==A&&A,D=m.isClerable,F=void 0===D||D,M=function(i){return{container:i?"zui:opacity-80":"",label:i?"zui:text-gray-500":"zui:text-gray-700",input:i?" zui:cursor-not-allowed zui:opacity-60 zui:text-gray-500 zui:bg-gray-50 zui:border zui:border-gray-300":""}}(k||!1),S=o("date"),q=t.useState(null),E=q[0],L=q[1],R=t.useMemo(function(){return!(!p||!u(p))&&r(p,"PPP")},[p]),T=function(){L(null)};return i("div",{className:a("zui:w-full zui:space-y-1",M.container,O),children:[!B&&f&&i("label",{htmlFor:S,className:a("zui:block zui:mb-2 zui:text-sm zui:font-medium zui:leading-none",M.label),children:[f,g&&e("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]}),i("div",{className:a("zui:relative zui:flex zui:items-center zui:justify-between zui:rounded-md zui:border zui:text-sm zui:ring-offset-background zui:transition-colors","focus-within:zui:ring-1 focus-within:zui:ring-ring focus-within:zui:ring-offset-1","outlined"===j&&"zui:bg-background zui:border-input","contained"===j&&"zui:bg-muted zui:border-transparent",(y||!R&&p)&&"zui:border-destructive focus-within:zui:ring-destructive",z[C],M.input,O),onClick:function(i){return!k&&void L(i.currentTarget)},children:[e("div",{className:"zui:truncate",children:R||x}),i("div",{className:"zui:flex zui:flex-row zui:gap-0.5",children:[F&&R&&!k?e(l,{onClick:function(i){i.stopPropagation(),null==b||b(void 0),T()},className:"zui:ml-2 zui:h-4 zui:w-4 zui:opacity-50 zui:cursor-pointer zui:rounded-full zui:hover:bg-gray-100"}):null,e(c,{className:"zui:ml-2 zui:h-4 zui:w-4 zui:opacity-50"})]}),B&&f&&i("label",{htmlFor:S,className:a("zui:pointer-events-none zui:absolute zui:left-3 zui:-top-[9px] zui:z-10 zui:bg-background zui:px-1 zui:text-xs zui:text-muted-foreground zui:transition-all",M.label),children:[f,g&&e("span",{className:"zui:text-destructive zui:font-medium",children:" *"})]})]}),e(s,{open:Boolean(E),onClose:T,anchorEl:E,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:e(n,{id:S,mode:"single",selected:p,defaultMonth:p,onSelect:function(i){null==b||b(null!=i?i:void 0),T()},disabled:d(W)})}),v&&!y&&e("p",{className:"zui:text-xs zui:text-muted-foreground",children:v}),y&&e("p",{className:"zui:text-xs zui:text-destructive",children:y})]})};export{m as DatePicker,m as default};
|