=i.startTime&&!i.hasStarted&&(i.hasStarted=!0,i.onStart&&i.onStart());var h=(t-i.startTime)/c;if(h=Math.max(0,Math.min(h,1)),h=i.easing(h),i.onFrame)i.onFrame(h);else for(var l in o){var u=(0,o[l])(h),f=void 0;if(\"points\"===l){f=[];for(var p=Math.max(a.points.length,s.points.length),g=0;g=i.endTime&&!i.hasEnded&&(i.hasEnded=!0,i.onEnd&&i.onEnd()),1===h&&(this.anims.splice(e,1),e--)}}}this.canvas.map(function(t){return t.draw(),t}),this.time=r.now()},t}();t.exports=a},function(t,e,i){function n(t){for(var e=[],i=0,n=t.length;il.x?n.x:l.x,c=l.y+p/2):\"xy\"===r&&(i.isPolar?(s=i.center.x,c=i.center.y):(s=(l.x+u.x)/2,c=(l.y+u.y)/2));var d=a.getScaledMatrix(g,[s,c],r);g.isClip=!0,g.endState={matrix:d},g.set(\"canvas\",t.get(\"canvas\")),t.attr(\"clip\",g);a.doAnimation(g,g.endState,e,function(){t.attr(\"clip\",null),g.remove(!0)})}function r(t,e,i){for(var n,r,s,o=t.get(\"children\"),c=0,h=o.length;cD&&e.splice(D,e.length-D),e.sort(function(t,e){return t.y-e.y});var i=t._antiCollision(e);S=S.concat(i)})}this.drawnLabels=S},e.bindEvents=function(){var t=this.pieLabelCfg.triggerOn||\"touchstart\",e=a.wrapBehavior(this,\"_handleEvent\");a.addEventListener(this.canvasDom,t,e)},e.unBindEvents=function(){var t=this.pieLabelCfg.triggerOn||\"touchstart\",e=a.getWrapBehavior(this,\"_handleEvent\");a.removeEventListener(this.canvasDom,t,e)},e.clear=function(){this.labelGroup&&this.labelGroup.clear(),this.halo&&this.halo.remove(!0),this.lastSelectedData=null,this.drawnLabels=[],this.unBindEvents()},e._drawLabel=function(t){var e=this.pieLabelCfg,i=this.chart.get(\"width\"),n=e.sidePadding,r=t.y,a=t.textGroup,s=a.get(\"children\"),o={textAlign:\"left\"===t._side?\"left\":\"right\",x:\"left\"===t._side?n:i-n};return s.forEach(function(t){t.attr(o),t.attr(\"y\",r+t.get(\"offsetY\"))}),a},e._drawLabelLine=function(t,e){var i=this.chart,n=this.pieLabelCfg,r=this.labelGroup,s=i.get(\"width\"),o=n.sidePadding,c=n.adjustOffset,h=n.lineStyle,l=n.anchorStyle,u=n.skipOverlapLabels,f=t._anchor,p=t._inflection,g=t.fill,d=t.y,v={x:\"left\"===t._side?o:s-o,y:d},y=[f,p,v];if(!u&&p.y!==d)if(p.ym.x)&&(y=[f,_,v])}else y=[f,{x:p.x,y:d},v];r.addShape(\"Polyline\",{attrs:a.mix({points:y,lineWidth:1,stroke:g},h)}),r.addShape(\"Circle\",{attrs:a.mix({x:f.x,y:f.y,r:2,fill:g},l)})},e._antiCollision=function(t){var e,i=this,n=i.chart,r=i.pieLabelCfg,a=n.get(\"coord\"),s=n.get(\"height\"),o=a.center,c=a.circleRadius,h=r.inflectionOffset,l=r.lineHeight,u=o.y-c-h-l,f=!0,p=s,g=0,d=Number.MIN_VALUE,v=0,y=t.map(function(t){var e=t.y;e>g&&(g=e),e=v&&(v=i),{size:l,targets:[e-u]}});g-u>p&&(p=g-u);for(var m=function(t){t.forEach(function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),p-t.size)})};f;)for(m(y),f=!1,e=y.length;e--;)if(e>0){var x=y[e-1],_=y[e];x.pos+x.size>_.pos&&(x.size+=_.size,x.targets=x.targets.concat(_.targets),x.pos+x.size>p&&(x.pos=p-x.size),y.splice(e,1),f=!0)}e=0,y.forEach(function(i){var n=u;i.targets.forEach(function(){t[e].y=i.pos+n+l/2,n+=l,e++})});var S=[];return t.forEach(function(t){var e=i._drawLabel(t);i.labelGroup.add(e),i._drawLabelLine(t,v),S.push(e)}),S},e._handleEvent=function(t){for(var e,i=this.chart,n=this.drawnLabels,r=this.pieLabelCfg,s=r.onClick,o=r.activeShape,c=a.createEvent(t,i),h=c.x,l=c.y,u=0,f=n.length;u=g.minX&&h<=g.maxX&&l>=g.minY&&l<=g.maxY){e=p;break}}var d=i.getSnapRecords({x:h,y:l});e?c.data=e.get(\"data\"):d.length&&(c.data=d[0]._origin),s&&s(c),c.data&&o&&this._activeShape(c.data)},e._getSelectedShapeByData=function(t){var e=null,i=this.chart.get(\"geoms\")[0],n=i.get(\"container\").get(\"children\");return a.each(n,function(n){if(n.get(\"isShape\")&&n.get(\"className\")===i.get(\"type\")){var r=n.get(\"origin\")._origin;if(a.isObjectValueEqual(r,t))return e=n,!1}}),e},e._activeShape=function(t){var e=this.chart,i=this.lastSelectedData,n=this.pieLabelCfg;if(t!==i){this.lastSelectedData=t;var r=n.activeStyle,s=this._getSelectedShapeByData(t)._attrs.attrs,o=s.x,c=s.y,h=s.startAngle,l=s.endAngle,u=s.r,f=s.fill,p=e.get(\"frontPlot\");this.halo&&this.halo.remove(!0);var g=p.addShape(\"sector\",{attrs:a.mix({x:o,y:c,r:u+r.offset+r.appendRadius,r0:u+r.offset,fill:f,startAngle:h,endAngle:l},r)});this.halo=g,e.get(\"canvas\").draw()}},t}();t.exports={init:function(t){var e=t.get(\"frontPlot\").addGroup({className:\"pie-label\",zIndex:0}),i=new c({chart:t,labelGroup:e});t.set(\"pieLabelController\",i),t.pieLabel=function(t){return t=a.deepMix({},o,t),i.pieLabelCfg=t,this}},afterGeomDraw:function(t){var e=t.get(\"pieLabelController\");e.pieLabelCfg&&(e.renderLabels(),e.bindEvents())},clearInner:function(t){var e=t.get(\"pieLabelController\");e.pieLabelCfg&&e.clear()}}},function(t,e,i){t.exports={Interaction:i(12),PieSelect:i(140),IntervalSelect:i(141),Swipe:i(142),Pan:i(143),Pinch:i(144)}},function(t,e,i){var n;!function(r,a,s,o){function c(t,e,i){return setTimeout(p(t,i),e)}function h(t,e,i){return!!Array.isArray(t)&&(l(t,i[e],i),!0)}function l(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==o)for(n=0;n\\s*\\(/gm,\"{anonymous}()@\"):\"Unknown Stack Trace\",a=r.console&&(r.console.warn||r.console.log);return a&&a.call(r.console,n,i),t.apply(this,arguments)}}function f(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&et(n,i)}function p(t,e){return function(){return t.apply(e,arguments)}}function g(t,e){return typeof t==rt?t.apply(e?e[0]||o:o,e):t}function d(t,e){return t===o?e:t}function v(t,e,i){l(_(e),function(e){t.addEventListener(e,i,!1)})}function y(t,e,i){l(_(e),function(e){t.removeEventListener(e,i,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function x(t,e){return t.indexOf(e)>-1}function _(t){return t.trim().split(/\\s+/g)}function S(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]}):n.sort()),n}function P(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),a=0;a1&&!i.firstMultiple?i.firstMultiple=A(e):1===r&&(i.firstMultiple=!1);var a=i.firstInput,s=i.firstMultiple,c=s?s.center:a.center,h=e.center=D(n);e.timeStamp=ot(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=E(c,h),e.distance=O(c,h),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},a=t.prevInput||{};e.eventType!==dt&&a.eventType!==yt||(r=t.prevDelta={x:a.deltaX||0,y:a.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=I(e.deltaX,e.deltaY);var l=k(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=st(l.x)>st(l.y)?l.x:l.y,e.scale=s?function(t,e){return O(e[0],e[1],At)/O(t[0],t[1],At)}(s.pointers,n):1,e.rotation=s?function(t,e){return E(e[1],e[0],At)+E(t[1],t[0],At)}(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,a,s=t.lastInterval||e,c=e.timeStamp-s.timeStamp;if(e.eventType!=mt&&(c>gt||s.velocity===o)){var h=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,u=k(c,h,l);n=u.x,r=u.y,i=st(u.x)>st(u.y)?u.x:u.y,a=I(h,l),t.lastInterval=e}else i=s.velocity,n=s.velocityX,r=s.velocityY,a=s.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=a}(i,e);var u=t.element;m(e.srcEvent.target,u)&&(u=e.srcEvent.target);e.target=u}(t,i),t.emit(\"hammer.input\",i),t.recognize(i),t.session.prevInput=i}function A(t){for(var e=[],i=0;i=st(e)?t<0?_t:St:e<0?bt:Ct}function O(t,e,i){i||(i=Tt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function E(t,e,i){i||(i=Tt);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}function Y(){this.evEl=kt,this.evWin=It,this.pressed=!1,M.apply(this,arguments)}function B(){this.evEl=Yt,this.evWin=Bt,M.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function F(){this.evTarget=Nt,this.evWin=Lt,this.started=!1,M.apply(this,arguments)}function N(){this.evTarget=Xt,this.targetIds={},M.apply(this,arguments)}function L(){M.apply(this,arguments);var t=p(this.handler,this);this.touch=new N(this.manager,t),this.mouse=new Y(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function R(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout(function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)},zt)}}function X(t,e){this.manager=t,this.set(e)}function z(t){this.options=et({},this.defaults,t||{}),this.id=lt++,this.manager=null,this.options.enable=d(this.options.enable,!0),this.state=$t,this.simultaneous={},this.requireFail=[]}function j(t){return t&ie?\"cancel\":t&te?\"end\":t&Qt?\"move\":t&Kt?\"start\":\"\"}function G(t){return t==Ct?\"down\":t==bt?\"up\":t==_t?\"left\":t==St?\"right\":\"\"}function W(t,e){var i=e.manager;return i?i.get(t):t}function H(){z.apply(this,arguments)}function V(){H.apply(this,arguments),this.pX=null,this.pY=null}function q(){H.apply(this,arguments)}function U(){z.apply(this,arguments),this._timer=null,this._input=null}function Z(){H.apply(this,arguments)}function J(){H.apply(this,arguments)}function $(){z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function K(t,e){return e=e||{},e.recognizers=d(e.recognizers,K.defaults.preset),new Q(t,e)}function Q(t,e){this.options=et({},K.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(ft?B:pt?N:ut?L:Y))(t,T)}(this),this.touchAction=new X(this,this.options.touchAction),tt(this,!0),l(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function tt(t,e){var i=t.element;if(i.style){var n;l(t.options.cssProps,function(r,a){n=P(i.style,a),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||\"\"}),e||(t.oldCssProps={})}}var et,it=[\"\",\"webkit\",\"Moz\",\"MS\",\"ms\",\"o\"],nt=a.createElement(\"div\"),rt=\"function\",at=Math.round,st=Math.abs,ot=Date.now;et=\"function\"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError(\"Cannot convert undefined or null to object\");for(var e=Object(t),i=1;i-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;n=te&&e(i.options.event+j(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&r&e.direction},attrTest:function(t){return H.prototype.attrTest.call(this,t)&&(this.state&Kt||!(this.state&Kt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=G(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(q,H,{defaults:{event:\"pinch\",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Kt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?\"in\":\"out\";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(U,z,{defaults:{event:\"press\",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ht]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(yt|mt)&&!r)this.reset();else if(t.eventType&dt)this.reset(),this._timer=c(function(){this.state=ee,this.tryEmit()},e.time,this);else if(t.eventType&yt)return ee;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ee&&(t&&t.eventType&yt?this.manager.emit(this.options.event+\"up\",t):(this._input.timeStamp=ot(),this.manager.emit(this.options.event,this._input)))}}),f(Z,H,{defaults:{event:\"rotate\",threshold:0,pointers:2},getTouchAction:function(){return[qt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Kt)}}),f(J,H,{defaults:{event:\"swipe\",threshold:10,velocity:.3,direction:Pt|wt,pointers:1},getTouchAction:function(){return V.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Pt|wt)?e=t.overallVelocity:i&Pt?e=t.overallVelocityX:i&wt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&st(e)>this.options.velocity&&t.eventType&yt},emit:function(t){var e=G(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f($,z,{defaults:{event:\"tap\",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance=e.x&&s<=e.x+e.width&&o>=e.y&&o<=e.height+e.y?i=t:l.push(t)})}else if(\"range\"===c){var f=e.getSnapRecords({x:s,y:o});if(!f.length)return void this.reset();var p=f[0]._origin,g=this._selectShapesByData(p);i=g.selectedShape,l=g.unSelectedShapes}if(i)if(this.selectedShape=i,i.get(\"_selected\")){if(!this.cancelable)return void this._setEventData(t);this.reset()}else this._selectShapes(i,l);else this.reset();this._setEventData(t)},i.end=function(t){this._setEventData(t)},e}(a);s.registerInteraction(\"interval-select\",o),t.exports=o},function(t,e,i){function n(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}var r=i(0),a=i(12),s=i(7),o=i(30),c=i(49),h=i(31),l=function(t){function e(e,i){var a,s=n(n(a=t.call(this,e,i)||this)),l=s.hammer,u=s.threshold,f=s.velocity;return l&&l.get(\"swipe\").set({direction:6,threshold:u,velocity:f}),i.registerPlugins([o,{changeData:function(){s.limitRange={}},clear:function(){s.limitRange={}}}]),s.mode=\"x\",r.mix(s,h,c),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e=r.mix({},e,{startEvent:\"touchstart\",processEvent:\"swipe\",endEvent:\"touchend\",currentDeltaX:null,threshold:10,velocity:.3,limitRange:{},_timestamp:0,_panCumulativeDelta:0,speed:5})},i.process=function(t){this.currentDeltaX=0,this._handleMove(t)},i.end=function(){this.currentDeltaX=null,this._panCumulativeDelta=0},e}(a);s.registerInteraction(\"swipe\",l),t.exports=l},function(t,e,i){function n(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}var r=i(0),a=i(12),s=i(7),o=i(30),c=i(49),h=i(50),l=i(31),u=function(t){function e(e,i){var a,s=n(n(a=t.call(this,e,i)||this)),u=s.hammer,f=s.panThreshold;return u&&u.get(\"pan\").set({threshold:f}),i.registerPlugins([o,{changeData:function(){s.limitRange={}},clear:function(){s.limitRange={}}}]),r.mix(n(n(a)),l,c,h),a._bindPress(),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e=r.mix({},e,{startEvent:\"panstart\",processEvent:\"panmove\",endEvent:\"panend\",resetEvent:\"touchend\",mode:\"x\",panThreshold:10,pressThreshold:9,pressTime:251,currentDeltaX:null,currentDeltaY:null,limitRange:{},_timestamp:0,lastPoint:null,_panCumulativeDelta:0,speed:5}),(r.isWx||r.isMy)&&(e.startEvent=\"touchstart\",e.processEvent=\"touchmove\",e.endEvent=\"touchend\"),e},i.start=function(t){this.pressed||(this.currentDeltaX=0,this.currentDeltaY=0,\"touchstart\"!==t.type&&\"touchStart\"!==t.type||(this.lastPoint=t.touches[0]),this._handleMove(t))},i.process=function(t){this.pressed||this._handleMove(t)},i.end=function(){this.pressed||(this.currentDeltaX=null,this.currentDeltaY=null,this.lastPoint=null,this._panCumulativeDelta=0)},e}(a);s.registerInteraction(\"pan\",u),t.exports=u},function(t,e,i){function n(t){if(void 0===t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t}var r=i(0),a=i(23),s=i(12),o=i(7),c=i(30),h=i(50),l=i(31),u=function(t){function e(e,i){var a,s=n(n(a=t.call(this,e,i)||this));return s.hammer.get(\"pinch\").set({enable:!0}),i.registerPlugins([c,{changeData:function(){s.limitRange={},s.originTicks=null},clear:function(){s.limitRange={},s.originTicks=null}}]),r.mix(s,h,l),s._bindPress(),a}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix({},e,{startEvent:\"pinchstart\",processEvent:\"pinch\",endEvent:\"pinchend\",resetEvent:\"touchend\",pressThreshold:9,pressTime:251,mode:\"x\",currentPinchScaling:null,originValues:null,minScale:null,maxScale:null,limitRange:{},sensitivity:1,_pinchCumulativeDelta:0,_timestamp:0})},i.start=function(){this.pressed||(this.currentPinchScaling=1)},i.process=function(t){this.pressed||this._handlePinch(t)},i.end=function(t){this.pressed||(this._handlePinch(t),this.currentPinchScaling=null,this.pinchCumulativeDelta=0)},i._handlePinch=function(t){var e,i=1/this.currentPinchScaling*t.scale,n=t.target.getBoundingClientRect(),r={x:t.center.x-n.left,y:t.center.y-n.top},a=Math.abs(t.pointers[0].clientX-t.pointers[1].clientX),s=Math.abs(t.pointers[0].clientY-t.pointers[1].clientY),o=a/s;e=o>.3&&o<1.7?\"xy\":a>s?\"x\":\"y\";var c=this._timestamp,h=+new Date;h-c>16&&(this._doZoom(i,r,e),this._timestamp=h),this.currentPinchScaling=t.scale},i._doZoom=function(t,e,i){var n,s=this,o=s.mode,c=s.chart,h=s.limitRange;n=\"xy\"===o&&void 0!==i?i:\"xy\";var l=c.get(\"data\");if(r.directionEnabled(o,\"x\")&&r.directionEnabled(n,\"x\")){var u=c.getXScale(),f=u.field;h[f]||(h[f]=a.getLimitRange(l,u)),u.isCategory?s._zoomCatScale(u,t,e):u.isLinear&&s._zoomLinearScale(u,t,e,\"x\");var p=a.getColDef(c,f);this.xRange=a.getFieldRange(p,h[f],u.type)}if(r.directionEnabled(o,\"y\")&&r.directionEnabled(n,\"y\")){var g=c.getYScales();r.each(g,function(i){var n=i.field;h[n]||(h[n]=a.getLimitRange(l,i)),i.isLinear&&s._zoomLinearScale(i,t,e,\"y\")});var d=a.getColDef(c,g[0].field);this.yRange=a.getFieldRange(d,h[g[0].field],g[0].type)}c.repaint()},i._zoomLinearScale=function(t,e,i,n){var r=this.chart,a=t.min,s=t.max,o=t.field,c=s-a,h=this.limitRange,l=h[o].max-h[o].min,u=r.get(\"coord\"),f=c*(e-1);if(this.minScale&&e<1){var p=l/this.minScale;f=Math.max(c-p,f)}if(this.maxScale&&e>=1){var g=l/this.maxScale;f=Math.min(c-g,f)}var d=u.invertPoint(i),v=\"x\"===n?d.x:d.y,y=s-f*(1-v),m=a+f*v;this.updateLinearScale(o,m,y)},i._zoomCatScale=function(t,e,i){var n=this._pinchCumulativeDelta,r=this.sensitivity;n=e>1?n+1:n-1,this._pinchCumulativeDelta=n;var a=t.field,s=t.values,o=this.chart.get(\"coord\");this.originTicks||(this.originTicks=t.ticks);var c=this.limitRange[a],h=c.length,l=this.minScale||1,u=this.maxScale||5,f=parseInt(h/u),p=parseInt(h/l),g=s.length;if(n>0&&g<=f)return null;if(n<0&&g>=p)return null;var d=h-1,v=s[0],y=s[g-1],m=c.indexOf(v),x=c.indexOf(y),_=(o.start.x+o.end.x)/2,S=i.x;if(Math.abs(n)>r){var b=Math.max(1,parseInt(g*Math.abs(e-1)));n<0?(S>=_?m<=0?x=Math.min(d,x+b):m=Math.max(0,m-b):S<_&&(x>=d?m=Math.max(0,m-b):x=Math.min(d,x+b)),this._pinchCumulativeDelta=0):n>0&&(S>=_?m=mm?x=Math.max(m,x-b):x),this._pinchCumulativeDelta=0);var C=c.slice(m,x+1);this.updateCatScale(a,C,this.originTicks,c,m,x)}},e}(s);o.registerInteraction(\"pinch\",u),t.exports=u}])});"]}