fastlion-amis
Version:
一种MIS页面生成工具
2 lines • 1.27 MB
JavaScript
;/*!node_modules/zrender/dist/zrender.js*/
amis.define("4b321bf",(function(t,e,r,i){var n,o;n=this,o=function(t){"use strict";var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new e,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?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(r.node=!0,r.svgSupported=!0):function(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),a&&(r.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}(navigator.userAgent,r);var i,n,o="sans-serif",a="12px sans-serif",s=function(t){var e={};if("undefined"==typeof JSON)return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32),n=(t.charCodeAt(r)-20)/100;e[i]=n}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!i){var r=h.createCanvas();i=r&&r.getContext("2d")}if(i)return n!==e&&(n=i.font=e||a),i.measureText(t);t=t||"";var o=/(\d+)px/.exec(e=e||a),l=o&&+o[1]||12,u=0;if(e.indexOf("mono")>=0)u=l*t.length;else for(var c=0;c<t.length;c++){var f=s[t[c]];u+=null==f?l:f*l}return{width:u}},loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i}},l=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),u=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),c=Object.prototype.toString,f=Array.prototype,p=f.forEach,d=f.filter,v=f.slice,y=f.map,g=function(){}.constructor,_=g?g.prototype:null,m="__proto__",x=2311;function w(){return x++}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function S(t){if(null==t||"object"!=typeof t)return t;var e=t,r=c.call(t);if("[object Array]"===r){if(!et(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=S(t[i])}}else if(u[r]){if(!et(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,n=t.length;i<n;i++)e[i]=t[i]}}else if(!l[r]&&!et(t)&&!j(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==m&&(e[a]=S(t[a]));return e}function k(t,e,r){if(!W(e)||!W(t))return r?S(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==m){var n=t[i],o=e[i];!W(o)||!W(n)||B(o)||B(n)||j(o)||j(n)||X(o)||X(n)||et(o)||et(n)?!r&&i in t||(t[i]=S(e[i])):k(n,o,r)}return t}function T(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==m&&(t[r]=e[r]);return t}function C(t,e,r){for(var i=O(e),n=0;n<i.length;n++){var o=i[n];(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var P=h.createCanvas;function M(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function A(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var o=i[n];"constructor"!==o&&(r?null!=e[o]:null==t[o])&&(t[o]=e[o])}else C(t,e,r)}function L(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function D(t,e,r){if(t&&e)if(t.forEach&&t.forEach===p)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(r,t[o],o,t)}function z(t,e,r){if(!t)return[];if(!e)return K(t);if(t.map&&t.map===y)return t.map(e,r);for(var i=[],n=0,o=t.length;n<o;n++)i.push(e.call(r,t[n],n,t));return i}function I(t,e,r,i){if(t&&e){for(var n=0,o=t.length;n<o;n++)r=e.call(i,r,t[n],n,t);return r}}function R(t,e,r){if(!t)return[];if(!e)return K(t);if(t.filter&&t.filter===d)return t.filter(e,r);for(var i=[],n=0,o=t.length;n<o;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function O(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}var F=_&&E(_.bind)?_.call.bind(_.bind):function(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(v.call(arguments)))}};function B(t){return Array.isArray?Array.isArray(t):"[object Array]"===c.call(t)}function E(t){return"function"==typeof t}function N(t){return"string"==typeof t}function H(t){return"number"==typeof t}function W(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function X(t){return!!l[c.call(t)]}function q(t){return!!u[c.call(t)]}function j(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Y(t){return null!=t.colorStops}function V(t){return null!=t.image}function U(t){return t!=t}function G(t,e){return null!=t?t:e}function Z(t,e,r){return null!=t?t:null!=e?e:r}function K(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return v.apply(t,e)}function Q(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 $(t,e){if(!t)throw new Error(e)}function J(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tt="__ec_primitive__";function et(t){return t[tt]}var rt=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 O(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},t}(),it="function"==typeof Map,nt=function(){function t(e){var r=B(e);this.data=it?new Map:new rt;var i=this;function n(t,e){r?i.set(t,e):i.set(e,t)}e instanceof t?e.each(n):e&&D(e,n)}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(r,i){t.call(e,r,i)}))},t.prototype.keys=function(){var t=this.data.keys();return it?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ot(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&T(r,e),r}function at(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function st(t,e){return t.hasOwnProperty(e)}function ht(){}var lt=180/Math.PI,ut=Object.freeze({__proto__:null,guid:w,logError:b,clone:S,merge:k,mergeAll:function(t,e){for(var r=t[0],i=1,n=t.length;i<n;i++)r=k(r,t[i],e);return r},extend:T,defaults:C,createCanvas:P,indexOf:M,inherits:function(t,e){var r=t.prototype;function i(){}for(var n in i.prototype=e.prototype,t.prototype=new i,r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e},mixin:A,isArrayLike:L,each:D,map:z,reduce:I,filter:R,find:function(t,e,r){if(t&&e)for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]},keys:O,bind:F,curry:function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(v.call(arguments)))}},isArray:B,isFunction:E,isString:N,isStringSafe:function(t){return"[object String]"===c.call(t)},isNumber:H,isObject:W,isBuiltInObject:X,isTypedArray:q,isDom:j,isGradientObject:Y,isImagePatternObject:V,isRegExp:function(t){return"[object RegExp]"===c.call(t)},eqNaN:U,retrieve:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(null!=t[r])return t[r]},retrieve2:G,retrieve3:Z,slice:K,normalizeCssArray:Q,assert:$,trim:J,setAsPrimitive:function(t){t[tt]=!0},isPrimitive:et,HashMap:nt,createHashMap:function(t){return new nt(t)},concatArray:function(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];var n=t.length;for(i=0;i<e.length;i++)r[i+n]=e[i];return r},createObject:ot,disableUserSelect:at,hasOwn:st,noop:ht,RADIAN_TO_DEGREE:lt}),ct=function(t,e){return ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ct(t,e)};function ft(t,e){function r(){this.constructor=t}ct(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function pt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function dt(t){return[t[0],t[1]]}function vt(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function yt(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function gt(t){return Math.sqrt(mt(t))}var _t=gt;function mt(t){return t[0]*t[0]+t[1]*t[1]}var xt=mt;function wt(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function bt(t,e){var r=gt(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function St(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var kt=St;function Tt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Ct=Tt;function Pt(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function Mt(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function At(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Lt(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Dt=Object.freeze({__proto__:null,create:pt,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:dt,set:function(t,e,r){return t[0]=e,t[1]=r,t},add:vt,scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t},sub:yt,len:gt,length:_t,lenSquare:mt,lengthSquare:xt,mul:function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},div:function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:wt,normalize:bt,distance:St,dist:kt,distanceSquare:Tt,distSquare:Ct,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:Pt,applyTransform:Mt,min:At,max:Lt}),zt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},It=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 zt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,i=t.offsetY,n=r-this._x,o=i-this._y;this._x=r,this._y=i,e.drift(n,o,t),this.handler.dispatchToElement(new zt(e,t),"drag",t.event);var a=this.handler.findHover(r,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new zt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new zt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new zt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new zt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Rt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,r,i){this._$handlers||(this._$handlers={});var n=this._$handlers;if("function"==typeof e&&(i=r,r=e,e=null),!r||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),n[t]||(n[t]=[]);for(var a=0;a<n[t].length;a++)if(n[t][a].h===r)return this;var s={h:r,query:e,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},h=n[t].length-1,l=n[t][h];return l&&l.callAtLast?n[t].splice(h,0,s):n[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 r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var i=[],n=0,o=r[t].length;n<o;n++)r[t][n].h!==e&&i.push(r[t][n]);r[t]=i}r[t]&&0===r[t].length&&delete r[t]}else delete r[t];return this},t.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],n=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var h=i[s];if(!n||!n.filter||null==h.query||n.filter(t,h.query))switch(o){case 0:h.h.call(h.ctx);break;case 1:h.h.call(h.ctx,e[0]);break;case 2:h.h.call(h.ctx,e[0],e[1]);break;default:h.h.apply(h.ctx,e)}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],n=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,h=0;h<s;h++){var l=i[h];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(o){case 0:l.h.call(a);break;case 1:l.h.call(a,e[0]);break;case 2:l.h.call(a,e[0],e[1]);break;default:l.h.apply(a,e.slice(1,o-1))}}return n&&n.afterTrigger&&n.afterTrigger(t),this},t}(),Ot=Math.log(2);function Ft(t,e,r,i,n,o){var a=i+"-"+n,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var h=Math.round(Math.log((1<<s)-1&~n)/Ot);return t[r][h]}for(var l=i|1<<r,u=r+1;i&1<<u;)u++;for(var c=0,f=0,p=0;f<s;f++){var d=1<<f;d&n||(c+=(p%2?-1:1)*t[r][f]*Ft(t,e-1,u,l,n|d,o),p++)}return o[a]=c,c}function Bt(t,e){var r=[[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={},n=Ft(r,8,0,0,0,i);if(0!==n){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)*Ft(r,7,0===a?1:0,1<<a,1<<s,i)/n*e[a];return function(t,e,r){var i=e*o[6]+r*o[7]+1;t[0]=(e*o[0]+r*o[1]+o[2])/i,t[1]=(e*o[3]+r*o[4]+o[5])/i}}}function Et(t,e,i,n,o){if(e.getBoundingClientRect&&r.domSupported&&!Nt(e)){var a=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),s=function(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=["left","right"],n=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,h=(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",n[h]+":0",i[1-s]+":auto",n[1-h]+":auto",""].join("!important;"),t.appendChild(a),r.push(a)}return r}(e,a),h=function(t,e,r){for(var i=r?"invTrans":"trans",n=e[i],o=e.srcCoords,a=[],s=[],h=!0,l=0;l<4;l++){var u=t[l].getBoundingClientRect(),c=2*l,f=u.left,p=u.top;a.push(f,p),h=h&&o&&f===o[c]&&p===o[c+1],s.push(t[l].offsetLeft,t[l].offsetTop)}return h&&n?n:(e.srcCoords=a,e[i]=r?Bt(s,a):Bt(a,s))}(s,a,o);if(h)return h(t,i,n),!0}return!1}function Nt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Ht=/([&<>"'])/g,Wt={"&":"&","<":"<",">":">",'"':""","'":"'"},Xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qt=[],jt=r.browser.firefox&&+r.browser.version.split(".")[0]<39;function Yt(t,e,r,i){return r=r||{},i?Vt(t,e,r):jt&&null!=e.layerX&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):null!=e.offsetX?(r.zrX=e.offsetX,r.zrY=e.offsetY):Vt(t,e,r),r}function Vt(t,e,i){if(r.domSupported&&t.getBoundingClientRect){var n=e.clientX,o=e.clientY;if(Nt(t)){var a=t.getBoundingClientRect();return i.zrX=n-a.left,void(i.zrY=o-a.top)}if(Et(qt,t,n,o))return i.zrX=qt[0],void(i.zrY=qt[1])}i.zrX=i.zrY=0}function Ut(t){return t||window.event}function Gt(t,e,r){if(null!=(e=Ut(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var n="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];n&&Yt(t,n,e,r)}else{Yt(t,e,e,r);var o=function(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;return null==r||null==i?e:3*(0!==i?Math.abs(i):Math.abs(r))*(i>0?-1:i<0?1:r>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Xt.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var Zt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,r){return this._doTrack(t,e,r),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,r){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],h=Yt(r,s,{});n.points.push([h.zrX,h.zrY]),n.touches.push(s)}this._track.push(n)}},t.prototype._recognize=function(t){for(var e in Qt)if(Qt.hasOwnProperty(e)){var r=Qt[e](this._track,t);if(r)return r}},t}();function Kt(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}var Qt={pinch:function(t,e){var r=t.length;if(r){var i,n=(t[r-1]||{}).points,o=(t[r-2]||{}).points||n;if(o&&o.length>1&&n&&n.length>1){var a=Kt(n)/Kt(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=n)[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 $t(){return[1,0,0,1,0,0]}function Jt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function te(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 ee(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],o=e[0]*r[2]+e[2]*r[3],a=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],h=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=o,t[3]=a,t[4]=s,t[5]=h,t}function re(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function ie(t,e,r,i){void 0===i&&(i=[0,0]);var n=e[0],o=e[2],a=e[4],s=e[1],h=e[3],l=e[5],u=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*u,t[1]=-n*u+s*c,t[2]=o*c+h*u,t[3]=-o*u+c*h,t[4]=c*(a-i[0])+u*(l-i[1])+i[0],t[5]=c*(l-i[1])-u*(a-i[0])+i[1],t}function ne(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function oe(t,e){var r=e[0],i=e[2],n=e[4],o=e[1],a=e[3],s=e[5],h=r*a-o*i;return h?(h=1/h,t[0]=a*h,t[1]=-o*h,t[2]=-i*h,t[3]=r*h,t[4]=(i*s-a*n)*h,t[5]=(o*n-r*s)*h,t):null}var ae=Object.freeze({__proto__:null,create:$t,identity:Jt,copy:te,mul:ee,translate:re,rotate:ie,scale:ne,invert:oe,clone:function(t){var e=[1,0,0,1,0,0];return te(e,t),e}}),se=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,r=this.y-t.y;return Math.sqrt(e*e+r*r)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},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,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+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,r){t.x=e,t.y=r},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,r){t.x=e.x+r.x,t.y=e.y+r.y},t.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},t.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},t.scaleAndAdd=function(t,e,r,i){t.x=e.x+r.x*i,t.y=e.y+r.y*i},t.lerp=function(t,e,r,i){var n=1-i;t.x=n*e.x+i*r.x,t.y=n*e.y+i*r.y},t}(),he=Math.min,le=Math.max,ue=new se,ce=new se,fe=new se,pe=new se,de=new se,ve=new se,ye=function(){function t(t,e,r,i){r<0&&(t+=r,r=-r),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=r,this.height=i}return t.prototype.union=function(t){var e=he(t.x,this.x),r=he(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=le(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=le(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=e,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,r=t.width/e.width,i=t.height/e.height,n=[1,0,0,1,0,0];return re(n,n,[-e.x,-e.y]),ne(n,n,[r,i]),re(n,n,[t.x,t.y]),n},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,n=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,h=e.x,l=e.x+e.width,u=e.y,c=e.y+e.height,f=!(o<h||l<n||s<u||c<a);if(r){var p=1/0,d=0,v=Math.abs(o-h),y=Math.abs(l-n),g=Math.abs(s-u),_=Math.abs(c-a),m=Math.min(v,y),x=Math.min(g,_);o<h||l<n?m>d&&(d=m,v<y?se.set(ve,-v,0):se.set(ve,y,0)):m<p&&(p=m,v<y?se.set(de,v,0):se.set(de,-y,0)),s<u||c<a?x>d&&(d=x,g<_?se.set(ve,0,-g):se.set(ve,0,_)):m<p&&(p=m,g<_?se.set(de,0,g):se.set(de,0,-_))}return r&&se.copy(r,f?de:ve),f},t.prototype.contain=function(t,e){var r=this;return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,r,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],o=i[3],a=i[4],s=i[5];return e.x=r.x*n+a,e.y=r.y*o+s,e.width=r.width*n,e.height=r.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))}ue.x=fe.x=r.x,ue.y=pe.y=r.y,ce.x=pe.x=r.x+r.width,ce.y=fe.y=r.y+r.height,ue.transform(i),pe.transform(i),ce.transform(i),fe.transform(i),e.x=he(ue.x,ce.x,fe.x,pe.x),e.y=he(ue.y,ce.y,fe.y,pe.y);var h=le(ue.x,ce.x,fe.x,pe.x),l=le(ue.y,ce.y,fe.y,pe.y);e.width=h-e.x,e.height=l-e.y}else e!==r&&t.copy(e,r)},t}(),ge="silent";function _e(){!function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}(this.event)}var me=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return ft(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Rt),xe=function(t,e){this.x=t,this.y=e},we=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],be=new ye(0,0,0,0),Se=function(t){function e(e,r,i,n,o){var a=t.call(this)||this;return a._hovered=new xe(0,0),a.storage=e,a.painter=r,a.painterRoot=n,a._pointerSize=o,i=i||new me,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new It(a),a}return ft(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(D(we,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,r=t.zrY,i=Ce(this,e,r),n=this._hovered,o=n.target;o&&!o.__zr&&(o=(n=this.findHover(n.x,n.y)).target);var a=this._hovered=i?new xe(e,r):this.findHover(e,r),s=a.target,h=this.proxy;h.setCursor&&h.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.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})},e.prototype.resize=function(){this._hovered=new xe(0,0)},e.prototype.dispatch=function(t,e){var r=this[t];r&&r.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,r){var i=(t=t||{}).target;if(!i||!i.silent){for(var n="on"+e,o=function(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:_e}}(e,t,r);i&&(i[n]&&(o.cancelBubble=!!i[n].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[n]&&t[n].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,r){var i=this.storage.getDisplayList(),n=new xe(t,e);if(Te(i,n,t,e,r),this._pointerSize&&!n.target){for(var o=[],a=this._pointerSize,s=a/2,h=new ye(t-s,e-s,a,a),l=i.length-1;l>=0;l--){var u=i[l];u===r||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(be.copy(u.getBoundingRect()),u.transform&&be.applyTransform(u.transform),be.intersect(h)&&o.push(u))}if(o.length)for(var c=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=4)for(var d=0;d<f;d+=c)if(Te(o,n,t+p*Math.cos(d),e+p*Math.sin(d),r),n.target)return n}return n},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Zt);var r=this._gestureMgr;"start"===e&&r.clear();var i=r.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&r.clear(),i){var n=i.type;t.gestureEvent=n;var o=new xe;o.target=i.target,this.dispatchToElement(o,n,i.event)}},e}(Rt);function ke(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var i=t,n=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return!n||ge}return!1}function Te(t,e,r,i,n){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==n&&!a.ignore&&(s=ke(a,r,i))&&(!e.topTarget&&(e.topTarget=a),s!==ge)){e.target=a;break}}}function Ce(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}function Pe(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;!function(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function Me(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var o,a=t[i],s=e,h=i;s<h;)n(a,t[o=s+h>>>1])<0?h=o:s=o+1;var l=i-s;switch(l){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(;l>0;)t[s+l]=t[s+l-1],l--}t[s]=a}}function Ae(t,e,r,i,n,o){var a=0,s=0,h=1;if(o(t,e[r+n])>0){for(s=i-n;h<s&&o(t,e[r+n+h])>0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),a+=n,h+=n}else{for(s=n+1;h<s&&o(t,e[r+n-h])<=0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s);var l=a;a=n-h,h=n-l}for(a++;a<h;){var u=a+(h-a>>>1);o(t,e[r+u])>0?a=u+1:h=u}return h}function Le(t,e,r,i,n,o){var a=0,s=0,h=1;if(o(t,e[r+n])<0){for(s=n+1;h<s&&o(t,e[r+n-h])<0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s);var l=a;a=n-h,h=n-l}else{for(s=i-n;h<s&&o(t,e[r+n+h])>=0;)a=h,(h=1+(h<<1))<=0&&(h=s);h>s&&(h=s),a+=n,h+=n}for(a++;a<h;){var u=a+(h-a>>>1);o(t,e[r+u])<0?h=u:a=u+1}return h}function De(t,e){var r,i,n=7,o=0,a=[];function s(s){var h=r[s],l=i[s],u=r[s+1],c=i[s+1];i[s]=l+c,s===o-3&&(r[s+1]=r[s+2],i[s+1]=i[s+2]),o--;var f=Le(t[u],t,h,l,0,e);h+=f,0!=(l-=f)&&0!==(c=Ae(t[h+l-1],t,u,c,c-1,e))&&(l<=c?function(r,i,o,s){var h=0;for(h=0;h<i;h++)a[h]=t[r+h];var l=0,u=o,c=r;if(t[c++]=t[u++],0!=--s)if(1!==i){for(var f,p,d,v=n;;){f=0,p=0,d=!1;do{if(e(t[u],a[l])<0){if(t[c++]=t[u++],p++,f=0,0==--s){d=!0;break}}else if(t[c++]=a[l++],f++,p=0,1==--i){d=!0;break}}while((f|p)<v);if(d)break;do{if(0!==(f=Le(t[u],a,l,i,0,e))){for(h=0;h<f;h++)t[c+h]=a[l+h];if(c+=f,l+=f,(i-=f)<=1){d=!0;break}}if(t[c++]=t[u++],0==--s){d=!0;break}if(0!==(p=Ae(a[l],t,u,s,0,e))){for(h=0;h<p;h++)t[c+h]=t[u+h];if(c+=p,u+=p,0==(s-=p)){d=!0;break}}if(t[c++]=a[l++],1==--i){d=!0;break}v--}while(f>=7||p>=7);if(d)break;v<0&&(v=0),v+=2}if((n=v)<1&&(n=1),1===i){for(h=0;h<s;h++)t[c+h]=t[u+h];t[c+s]=a[l]}else{if(0===i)throw new Error;for(h=0;h<i;h++)t[c+h]=a[l+h]}}else{for(h=0;h<s;h++)t[c+h]=t[u+h];t[c+s]=a[l]}else for(h=0;h<i;h++)t[c+h]=a[l+h]}(h,l,u,c):function(r,i,o,s){var h=0;for(h=0;h<s;h++)a[h]=t[o+h];var l=r+i-1,u=s-1,c=o+s-1,f=0,p=0;if(t[c--]=t[l--],0!=--i)if(1!==s){for(var d=n;;){var v=0,y=0,g=!1;do{if(e(a[u],t[l])<0){if(t[c--]=t[l--],v++,y=0,0==--i){g=!0;break}}else if(t[c--]=a[u--],y++,v=0,1==--s){g=!0;break}}while((v|y)<d);if(g)break;do{if(0!=(v=i-Le(a[u],t,r,i,i-1,e))){for(i-=v,p=1+(c-=v),f=1+(l-=v),h=v-1;h>=0;h--)t[p+h]=t[f+h];if(0===i){g=!0;break}}if(t[c--]=a[u--],1==--s){g=!0;break}if(0!=(y=s-Ae(t[l],a,0,s,s-1,e))){for(s-=y,p=1+(c-=y),f=1+(u-=y),h=0;h<y;h++)t[p+h]=a[f+h];if(s<=1){g=!0;break}}if(t[c--]=t[l--],0==--i){g=!0;break}d--}while(v>=7||y>=7);if(g)break;d<0&&(d=0),d+=2}if((n=d)<1&&(n=1),1===s){for(p=1+(c-=i),f=1+(l-=i),h=i-1;h>=0;h--)t[p+h]=t[f+h];t[c]=a[u]}else{if(0===s)throw new Error;for(f=c-(s-1),h=0;h<s;h++)t[f+h]=a[h]}}else{for(p=1+(c-=i),f=1+(l-=i),h=i-1;h>=0;h--)t[p+h]=t[f+h];t[c]=a[u]}else for(f=c-(s-1),h=0;h<s;h++)t[f+h]=a[h]}(h,l,u,c))}return r=[],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){r[o]=t,i[o]=e,o+=1}}}D(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Se.prototype[t]=function(e){var r,i,n=e.zrX,o=e.zrY,a=Ce(this,n,o);if("mouseup"===t&&a||(i=(r=this.findHover(n,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||kt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,t,e)}}));var ze=!1;function Ie(){ze||(ze=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Oe=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Re}return t.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var r=this._displayList;return!t&&r.length||this.updateDisplayList(e),r},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,r=this._displayList,i=0,n=e.length;i<n;i++)this._updateAndAddDisplayable(e[i],null,t);r.length=this._displayListLen,function(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var o=0;if(n<32)Me(t,r,i,r+(o=Pe(t,r,i,e)),e);else{var a=De(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(n);do{if((o=Pe(t,r,i,e))<s){var h=n;h>s&&(h=s),Me(t,r,r+h,r+o,e),o=h}a.pushRun(r,o),a.mergeRuns(),n-=o,r+=o}while(0!==n);a.forceMergeRuns()}}}(r,Re)},t.prototype._updateAndAddDisplayable=function(t,e,r){if(!t.ignore||r){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var n=i,o=t;n;)n.parent=o,n.updateTransform(),e.push(n),o=n,n=n.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var h=a[s];t.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,e,r)}t.__dirty=0}else{var l=t;e&&e.length?l.__clipPaths=e:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(Ie(),l.z=0),isNaN(l.z2)&&(Ie(),l.z2=0),isNaN(l.zlevel)&&(Ie(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,r);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,r);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,r)}},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,r=t.length;e<r;e++)this.delRoot(t[e]);else{var i=M(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}(),Fe=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Be={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,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,r=.1;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=.1):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:r*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-Be.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*Be.bounceIn(2*t):.5*Be.bounceOut(2*t-1)+.5}},Ee=Math.pow,Ne=Math.sqrt,He=1e-8,We=1e-4,Xe=Ne(3),qe=1/3,je=pt(),Ye=pt(),Ve=pt();function Ue(t){return t>-1e-8&&t<He}function Ge(t){return t>He||t<-1e-8}function Ze(t,e,r,i,n){var o=1-n;return o*o*(o*t+3*n*e)+n*n*(n*i+3*o*r)}function Ke(t,e,r,i,n){var o=1-n;return 3*(((e-t)*o+2*(r-e)*n)*o+(i-r)*n*n)}function Qe(t,e,r,i,n,o){var a=i+3*(e-r)-t,s=3*(r-2*e+t),h=3*(e-t),l=t-n,u=s*s-3*a*h,c=s*h-9*a*l,f=h*h-3*s*l,p=0;if(Ue(u)&&Ue(c))Ue(s)?o[0]=0:(k=-h/s)>=0&&k<=1&&(o[p++]=k);else{var d=c*c-4*u*f;if(Ue(d)){var v=c/u,y=-v/2;(k=-s/a+v)>=0&&k<=1&&(o[p++]=k),y>=0&&y<=1&&(o[p++]=y)}else if(d>0){var g=Ne(d),_=u*s+1.5*a*(-c+g),m=u*s+1.5*a*(-c-g);(k=(-s-((_=_<0?-Ee(-_,qe):Ee(_,qe))+(m=m<0?-Ee(-m,qe):Ee(m,qe))))/(3*a))>=0&&k<=1&&(o[p++]=k)}else{var x=(2*u*s-3*a*c)/(2*Ne(u*u*u)),w=Math.acos(x)/3,b=Ne(u),S=Math.cos(w),k=(-s-2*b*S)/(3*a),T=(y=(-s+b*(S+Xe*Math.sin(w)))/(3*a),(-s+b*(S-Xe*Math.sin(w)))/(3*a));k>=0&&k<=1&&(o[p++]=k),y>=0&&y<=1&&(o[p++]=y),T>=0&&T<=1&&(o[p++]=T)}}return p}function $e(t,e,r,i,n){var o=6*r-12*e+6*t,a=9*e+3*i-3*t-9*r,s=3*e-3*t,h=0;if(Ue(a))Ge(o)&&(u=-s/o)>=0&&u<=1&&(n[h++]=u);else{var l=o*o-4*a*s;if(Ue(l))n[0]=-o/(2*a);else if(l>0){var u,c=Ne(l),f=(-o-c)/(2*a);(u=(-o+c)/(2*a))>=0&&u<=1&&(n[h++]=u),f>=0&&f<=1&&(n[h++]=f)}}return h}function Je(t,e,r,i,n,o){var a=(e-t)*n+t,s=(r-e)*n+e,h=(i-r)*n+r,l=(s-a)*n+a,u=(h-s)*n+s,c=(u-l)*n+l;o[0]=t,o[1]=a,o[2]=l,o[3]=c,o[4]=c,o[5]=u,o[6]=h,o[7]=i}function tr(t,e,r,i,n,o,a,s,h){for(var l=t,u=e,c=0,f=1/h,p=1;p<=h;p++){var d=p*f,v=Ze(t,r,n,a,d),y=Ze(e,i,o,s,d),g=v-l,_=y-u;c+=Math.sqrt(g*g+_*_),l=v,u=y}return c}function er(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function rr(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function ir(t,e,r){var i=t+r-2*e;return 0===i?.5:(t-e)/i}function nr(t,e,r,i,n){var o=(e-t)*i+t,a=(r-e)*i+e,s=(a-o)*i+o;n[0]=t,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=r}function or(t,e,r,i,n,o,a){for(var s=t,h=e,l=0,u=1/a,c=1;c<=a;c++){var f=c*u,p=er(t,r,n,f),d=er(e,i,o,f),v=p-s,y=d-h;l+=Math.sqrt(v*v+y*y),s=p,h=d}return l}var ar=/cubic-bezier\(([0-9,\.e ]+)\)/;function sr(t){var e=t&&ar.exec(t);if(e){var r=e[1].split(","),i=+J(r[0]),n=+J(r[1]),o=+J(r[2]),a=+J(r[3]);if(isNaN(i+n+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Qe(0,i,o,1,t,s)&&Ze(0,n,a,1,s[0])}}}var hr=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||ht,this.ondestroy=t.ondestroy||ht,this.onrestart=t.onrestart||ht,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 r=this._life,i=t-this._startTime-this._pausedTime,n=i/r;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,a=o?o(n):n;if(this.onframe(a),1===n){if(!this.loop)return!0;var s=i%r;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=E(t)?t:Be[t]||sr(t)},t}(),lr=function(t){this.value=t},ur=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new lr(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,r=t.next;e?e.next=r:this.head=r,r?r.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}(),cr=function(){function t(t){this._list=new ur,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var r=this._list,i=this._map,n=null;if(null==i[t]){var o=r.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=r.head;r.remove(s),delete i[s.key],n=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new lr(e),a.key=t,r.insertEntry(a),i[t]=a}return n},t.prototype.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),fr={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 pr(t){return(t=Math.round(t))<0?0:t>255?255:t}function dr(t){return t<0?0:t>1?1:t}function vr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?pr(parseFloat(e)/100*255):pr(parseInt(e,10))}function yr(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?dr(parseFloat(e)/100):dr(parseFloat(e))}function gr(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function _r(t,e,r){return t+(e-t)*r}function mr(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function xr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var wr=new cr(20),br=null;function Sr(t,e){br&&xr(br,e),br=wr.put(t,br||e.slice())}function kr(t,e){if(t){e=e||[];var r=wr.get(t);if(r)return xr(e,r);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in fr)return xr(e,fr[i]),Sr(t,e),e;var n,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(n=parseInt(i.slice(1,4),16))>=0&&n<=4095?(mr(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,5===o?parseInt(i.slice(4),16)/15:1),Sr(t,e),e):void mr(e,0,0,0,1):7===o||9===o?(n=parseInt(i.slice(1,7),16))>=0&&n<=16777215?(mr(e,(16711680&n)>>16,(65280&n)>>8,255&n,9===o?parseInt(i.slice(7),16)/255:1),Sr(t,e),e):void mr(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var h=i.substr(0,a),l=i.substr(a+1,s-(a+1)).split(","),u=1;switch(h){case"rgba":if(4!==l.length)return 3===l.length?mr(e,+l[0],+l[1],+l[2],1):mr(e,0,0,0,1);u=yr(l.pop());case"rgb":return l.length>=3?(mr(e,vr(l[0]),vr(l[1]),vr(l[2]),3===l.length?u:yr(l[3])),Sr(t,e),e):void mr(e,0,0,0,1);case"hsla":return 4!==l.length?void mr(e,0,0,0,1):(l[3]=yr(l[3]),Tr(l,e),Sr(t,e),e);case"hsl":return 3!==l.length?void mr(e,0,0,0,1):(Tr(l,e),Sr(t,e),e);default:return}}mr(e,0,0,0,1)}}function Tr(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=yr(t[1]),n=yr(t[2]),o=n<=.5?n*(i+1):n+i-n*i,a=2*n-o;return mr(e=e||[],pr(255*gr(a,o,r+1/3)),pr(255*gr(a,o,r)),pr(255*gr(a,o,r-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Cr(t,e){var r=kr(t);if(r){for(var i=0;i<3;i++)r[i]=e<0?r[i]*(1-e)|0:(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Dr(r,4===r.length?"rgba":"rgb")}}function Pr(t,e,r){if(e&&e.length&&t>=0&&t<=1){r=r||[];var i=t*(e.length-1),n=Math.floor(i),o=Math.ceil(i),a=e[n],s=e[o],h=i-n;return r[0]=pr(_r(a[0],s[0],h)),r[1]=pr(_r(a[1],s[1],h)),r[2]=pr(_r(a[2],s[2],h)),r[3]=dr(_r(a[3],s[3],h)),r}}var Mr=Pr;function Ar(t,e,r){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),n=Math.floor(i),o=Math.ceil(i),a=kr(e[n]),s=kr(e[o]),h=i-n,l=Dr([pr(_r(a[0],s[0],h)),pr(_r(a[1],s[1],h)),pr(_r(a[2],s[2],h)),dr(_r(a[3],s[3],h))],"rgba");return r?{color:l,leftIndex:n,rightIndex:o,value:i}:l}}var Lr=Ar;function Dr(t,e){if(t&&t.length){var r=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}}function zr(t,e){var r=kr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Ir=new cr(100);function Rr(t){if(N(t)){var e=Ir.get(t);return e||(e=Cr(t,-.1),Ir.put(t,e)),e}if(Y(t)){var r=T({},t);return r.colorStops=z(t.colorStops,(function(t){return{offset:t.offset,color:Cr(t.color,-.1)}})),r}return t}var Or=Object.freeze({__proto__:null,parse:kr,lift:Cr,toHex:function(t){var e=kr(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},fastLerp:Pr,fastMapToColor:Mr,lerp:Ar,mapToColor:Lr,modifyHSL:function(t,e,r,i){var n,o=kr(t);if(t)return o=function(t){if(t){var e,r,i=t[0]/255,n=t[1]/255,o=t[2]/255,a=Math.min(i,n,o),s=Math.max(i,n,o),h=s-a,l=(s+a)/2;if(0===h)e=0,r=0;else{r=l<.5?h/(s+a):h/(2-s-a);var u=((s-i)/6+h/2)/h,c=((s-n)/6+h/2)/h,f=((s-o)/6+h/2)/h;i===s?e=f-c:n===s?e=1/3+u-f:o===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,r,l];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(n=e,(n=Math.round(n))<0?0:n>360?360:n)),null!=r&&(o[1]=yr(r)),null!=i&&(o[2]=yr(i)),Dr(Tr(o),"rgba")},modifyAlpha:function(t,e){var r=kr(t);if(r&&null!=e)return r[3]=dr(e),Dr(r,"rgba")},stringify:Dr,lum:zr,random:function(){return Dr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},liftColor:Rr}),Fr=Math.round;function Br(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var r=kr(t);r&&(t="rgb("+r[0]+","+r[1]+","+r[2]+")",e=r[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Er=1e-4;function Nr(t){return t<Er&&t>-1e-4}function Hr(t){return Fr(1e3*t)/1e3}function Wr(t){return Fr(1e4*t)/1e4}var Xr={left:"start",right:"end",center:"middle",middle:"middle"};function qr(t){return t&&!!t.image}function jr(t){return qr(t)||function(t){return t&&!!t.svgElement}(t)}function Yr(t){return"linear"===t.type}function Vr(t){return"radial"===t.type}function Ur(t){return t&&("linear"===t.type||"radial"===t.type)}function Gr(t){return"url(#"+t+")"}function Zr(t){var e=t.getGlobalScale(),r=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Kr(t){var e=t.x||0,r=t.y||0,i=(t.rotation||0)*lt,n=G(t.scaleX,1),o=G(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,h=[];return(e||r)&&h.push("translate("+e+"px,"+r+"px)"),i&&h.push("rotate("+i+")"),1===n&&1===o||h.push("scale("+n+","+o+")"),(a||s)&&h.push("skew("+Fr(a*lt)+"deg, "+Fr(s*lt)+"deg)"),h.join(" ")}var Qr=r.hasGlobalWindow&&E(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return b("Base64 isn't natively supported in the current environment."),null},$r=Array.prototype.slice;function Jr(t,e,r){return(e-t)*r+t}function ti(t,e,r,i){for(var n=