text: webpackJsonp([30,141],{9:function(n,t,s){"use strict";s(14),s(13)},13:function(n,t){},14:function(n,t){},18:function(n,t,s){"use strict";s(9),s(27)},27:function(n,t){},327:function(n,t,s){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(402),o=e(a);t["default"]=o["default"],n.exports=t["default"]},393:function(n,t,s){var e;/*! Hammer.JS - v2.0.7 - 2016-04-22
  	 * http://hammerjs.github.io/
  	 *
  	 * Copyright (c) 2016 Jorik Tangelder;
  	 * Licensed under the MIT license */
  !function(a,o,i,p){"use strict";function r(n,t,s){return setTimeout(f(n,s),t)}function c(n,t,s){return!!Array.isArray(n)&&(l(n,s[t],s),!0)}function l(n,t,s){var e;if(n)if(n.forEach)n.forEach(t,s);else if(n.length!==p)for(e=0;e<n.length;)t.call(s,n[e],e,n),e++;else for(e in n)n.hasOwnProperty(e)&&t.call(s,n[e],e,n)}function u(n,t,s){var e="DEPRECATED METHOD: "+t+"\n"+s+" AT \n";return function(){var t=new Error("get-stack-trace"),s=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=a.console&&(a.console.warn||a.console.log);return o&&o.call(a.console,e,s),n.apply(this,arguments)}}function h(n,t,s){var e,a=t.prototype;e=n.prototype=Object.create(a),e.constructor=n,e._super=a,s&&mn(e,s)}function f(n,t){return function(){return n.apply(t,arguments)}}function d(n,t){return typeof n==yn?n.apply(t?t[0]||p:p,t):n}function k(n,t){return n===p?t:n}function m(n,t,s){l(T(t),function(t){n.addEventListener(t,s,!1)})}function g(n,t,s){l(T(t),function(t){n.removeEventListener(t,s,!1)})}function v(n,t){for(;n;){if(n==t)return!0;n=n.parentNode}return!1}function y(n,t){return n.indexOf(t)>-1}function T(n){return n.trim().split(/\s+/g)}function b(n,t,s){if(n.indexOf&&!s)return n.indexOf(t);for(var e=0;e<n.length;){if(s&&n[e][s]==t||!s&&n[e]===t)return e;e++}return-1}function C(n){return Array.prototype.slice.call(n,0)}function E(n,t,s){for(var e=[],a=[],o=0;o<n.length;){var i=t?n[o][t]:n[o];b(a,i)<0&&e.push(n[o]),a[o]=i,o++}return s&&(e=t?e.sort(function(n,s){return n[t]>s[t]}):e.sort()),e}function w(n,t){for(var s,e,a=t[0].toUpperCase()+t.slice(1),o=0;o<gn.length;){if(s=gn[o],e=s?s+a:t,e in n)return e;o++}return p}function P(){return Pn++}function x(n){var t=n.ownerDocument||n;return t.defaultView||t.parentWindow||a}function O(n,t){var s=this;this.manager=n,this.callback=t,this.element=n.element,this.target=n.options.inputTarget,this.domHandler=function(t){d(n.options.enable,[n])&&s.handler(t)},this.init()}function _(n){var t,s=n.options.inputClass;return new(t=s?s:_n?Y:Sn?U:On?B:F)(n,S)}function S(n,t,s){var e=s.pointers.length,a=s.changedPointers.length,o=t&Nn&&e-a===0,i=t&(jn|Ln)&&e-a===0;s.isFirst=!!o,s.isFinal=!!i,o&&(n.session={}),s.eventType=t,I(n,s),n.emit("hammer.input",s),n.recognize(s),n.session.prevInput=s}function I(n,t){var s=n.session,e=t.pointers,a=e.length;s.firstInput||(s.firstInput=A(t)),a>1&&!s.firstMultiple?s.firstMultiple=A(t):1===a&&(s.firstMultiple=!1);var o=s.firstInput,i=s.firstMultiple,p=i?i.center:o.center,r=t.center=R(e);t.timeStamp=Cn(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=L(p,r),t.distance=j(p,r),M(s,t),t.offsetDirection=z(t.deltaX,t.deltaY);var c=N(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=bn(c.x)>bn(c.y)?c.x:c.y,t.scale=i?X(i.pointers,e):1,t.rotation=i?W(i.pointers,e):0,t.maxPointers=s.prevInput?t.pointers.length>s.prevInput.maxPointers?t.pointers.length:s.prevInput.maxPointers:t.pointers.length,D(s,t);var l=n.element;v(t.srcEvent.target,l)&&(l=t.srcEvent.target),t.target=l}function M(n,t){var s=t.center,e=n.offsetDelta||{},a=n.prevDelta||{},o=n.prevInput||{};t.eventType!==Nn&&o.eventType!==jn||(a=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},e=n.offsetDelta={x:s.x,y:s.y}),t.deltaX=a.x+(s.x-e.x),t.deltaY=a.y+(s.y-e.y)}function D(n,t){var s,e,a,o,i=n.lastInterval||t,r=t.timeStamp-i.timeStamp;if(t.eventType!=Ln&&(r>Rn||i.velocity===p)){var c=t.deltaX-i.deltaX,l=t.deltaY-i.deltaY,u=N(r,c,l);e=u.x,a=u.y,s=bn(u.x)>bn(u.y)?u.x:u.y,o=z(c,l),n.lastInterval=t}else s=i.velocity,e=i.velocityX,a=i.velocityY,o=i.direction;t.velocity=s,t.velocityX=e,t.velocityY=a,t.direction=o}function A(n){for(var t=[],s=0;s<n.pointers.length;)t[s]={clientX:Tn(n.pointers[s].clientX),clientY:Tn(n.pointers[s].clientY)},s++;return{timeStamp:Cn(),pointers:t,center:R(t),deltaX:n.deltaX,deltaY:n.deltaY}}function R(n){var t=n.length;if(1===t)return{x:Tn(n[0].clientX),y:Tn(n[0].clientY)};for(var s=0,e=0,a=0;a<t;)s+=n[a].clientX,e+=n[a].clientY,a++;return{x:Tn(s/t),y:Tn(e/t)}}function N(n,t,s){return{x:t/n||0,y:s/n||0}}function z(n,t){return n===t?Wn:bn(n)>=bn(t)?n<0?Xn:Fn:t<0?Yn:Hn}function j(n,t,s){s||(s=Bn);var e=t[s[0]]-n[s[0]],a=t[s[1]]-n[s[1]];return Math.sqrt(e*e+a*a)}function L(n,t,s){s||(s=Bn);var e=t[s[0]]-n[s[0]],a=t[s[1]]-n[s[1]];return 180*Math.atan2(a,e)/Math.PI}function W(n,t){return L(t[1],t[0],Zn)+L(n[1],n[0],Zn)}function X(n,t){return j(t[0],t[1],Zn)/j(n[0],n[1],Zn)}function F(){this.evEl=Jn,this.evWin=$n,this.pressed=!1,O.apply(this,arguments)}function Y(){this.evEl=nt,this.evWin=tt,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=et,this.evWin=at,this.started=!1,O.apply(this,arguments)}function q(n,t){var s=C(n.touches),e=C(n.changedTouches);return t&(jn|Ln)&&(s=E(s.concat(e),"identifier",!0)),[s,e]}function U(){this.evTarget=it,this.targetIds={},O.apply(this,arguments)}function V(n,t){var s=C(n.touches),e=this.targetIds;if(t&(Nn|zn)&&1===s.length)return e[s[0].identifier]=!0,[s,s];var a,o,i=C(n.changedTouches),p=[],r=this.target;if(o=s.filter(function(n){return v(n.target,r)}),t===Nn)for(a=0;a<o.length;)e[o[a].identifier]=!0,a++;for(a=0;a<i.length;)e[i[a].identifier]&&p.push(i[a]),t&(jn|Ln)&&delete e[i[a].identifier],a++;return p.length?[E(o.concat(p),"identifier",!0),p]:void 0}function B(){O.apply(this,arguments);var n=f(this.handler,this);this.touch=new U(this.manager,n),this.mouse=new F(this.manager,n),this.primaryTouch=null,this.lastTouches=[]}function Z(n,t){n&Nn?(this.primaryTouch=t.changedPointers[0].identifier,G.call(this,t)):n&(jn|Ln)&&G.call(this,t)}function G(n){var t=n.changedPointers[0];if(t.identifier===this.primaryTouch){var s={x:t.clientX,y:t.clientY};this.lastTouches.push(s);var e=this.lastTouches,a=function(){var n=e.indexOf(s);n>-1&&e.splice(n,1)};setTimeout(a,pt)}}function J(n){for(var t=n.srcEvent.clientX,s=n.srcEvent.clientY,e=0;e<this.lastTouches.length;e++){var a=this.lastTouches[e],o=Math.abs(t-a.x),i=Math.abs(s-a.y);if(o<=rt&&i<=rt)return!0}return!1}function $(n,t){this.manager=n,this.set(t)}function K(n){if(y(n,dt))return dt;var t=y(n,kt),s=y(n,mt);return t&&s?dt:t||s?t?kt:mt:y(n,ft)?ft:ht}function Q(){if(!lt)return!1;var n={},t=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(s){n[s]=!t||a.CSS.supports("touch-action",s)}),n}function nn(n){this.options=mn({},this.defaults,n||{}),this.id=P(),this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=vt,this.simultaneous={},this.requireFail=[]}function tn(n){return n&Et?"cancel":n&bt?"end":n&Tt?"move":n&yt?"start":""}function sn(n){return n==Hn?"down":n==Yn?"up":n==Xn?"left":n==Fn?"right":""}function en(n,t){var s=t.manager;return s?s.get(n):n}function an(){nn.apply(this,arguments)}function on(){an.apply(this,arguments),this.pX=null,this.pY=null}function pn(){an.apply(this,arguments)}function rn(){nn.apply(this,arguments),this._timer=null,this._input=null}function cn(){an.apply(this,arguments)}function ln(){an.apply(this,arguments)}function un(){nn.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function hn(n,t){return t=t||{},t.recognizers=k(t.recognizers,hn.defaults.preset),new fn(n,t)}function fn(n,t){this.options=mn({},hn.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||n,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=n,this.input=_(this),this.touchAction=new $(this,this.options.touchAction),dn(this,!0),l(this.options.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]),n[3]&&t.requireFailure(n[3])},this)}function dn(n,t){var s=n.element;if(s.style){var e;l(n.options.cssProps,function(a,o){e=w(s.style,o),t?(n.oldCssProps[e]=s.style[e],s.style[e]=a):s.style[e]=n.oldCssProps[e]||""}),t||(n.oldCssProps={})}}function kn(n,t){var s=o.createEvent("Event");s.initEvent(n,!0,!0),s.gesture=t,t.target.dispatchEvent(s)}var mn,gn=["","webkit","Moz","MS","ms","o"],vn=o.createElement("div"),yn="function",Tn=Math.round,bn=Math.abs,Cn=Date.now;mn="function"!=typeof Object.assign?function(n){if(n===p||null===n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),s=1;s<arguments.length;s++){var e=arguments[s];if(e!==p&&null!==e)for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a])}return t}:Object.assign;var En=u(function(n,t,s){for(var e=Object.keys(t),a=0;a<e.length;)(!s||s&&n[e[a]]===p)&&(n[e[a]]=t[e[a]]),a++;return n},"extend","Use `assign`."),wn=u(function(n,t){return En(n,t,!0)},"merge","Use `assign`."),Pn=1,xn=/mobile|tablet|ip(ad|hone|od)|android/i,On="ontouchstart"in a,_n=w(a,"PointerEvent")!==p,Sn=On&&xn.test(navigator.userAgent),In="touch",Mn="pen",Dn="mouse",An="kinect",Rn=25,Nn=1,zn=2,jn=4,Ln=8,Wn=1,Xn=2,Fn=4,Yn=8,Hn=16,qn=Xn|Fn,Un=Yn|Hn,Vn=qn|Un,Bn=["x","y"],Zn=["clientX","clientY"];O.prototype={handler:function(){},init:function(){this.evEl&&m(this.element,this.evEl,this.domHandler),this.evTarget&&m(this.target,this.evTarget,this.domHandler),this.evWin&&m(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(x(this.element),this.evWin,this.domHandler)}};var Gn={mousedown:Nn,mousemove:zn,mouseup:jn},Jn="mousedown",$n="mousemove mouseup";h(F,O,{handler:function(n){var t=Gn[n.type];t&Nn&&0===n.button&&(this.pressed=!0),t&zn&&1!==n.which&&(t=jn),this.pressed&&(t&jn&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:Dn,srcEvent:n}))}});var Kn={pointerdown:Nn,pointermove:zn,pointerup:jn,pointercancel:Ln,pointerout:Ln},Qn={2:In,3:Mn,4:Dn,5:An},nt="pointerdown",tt="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(nt="MSPointerDown",tt="MSPointerMove MSPointerUp MSPointerCancel"),h(Y,O,{handler:function(n){var t=this.store,s=!1,e=n.type.toLowerCase().replace("ms",""),a=Kn[e],o=Qn[n.pointerType]||n.pointerType,i=o==In,p=b(t,n.pointerId,"pointerId");a&Nn&&(0===n.button||i)?p<0&&(t.push(n),p=t.length-1):a&(jn|Ln)&&(s=!0),p<0||(t[p]=n,this.callback(this.manager,a,{pointers:t,changedPointers:[n],pointerType:o,srcEvent:n}),s&&t.splice(p,1))}});var st={touchstart:Nn,touchmove:zn,touchend:jn,touchcancel:Ln},et="touchstart",at="touchstart touchmove touchend touchcancel";h(H,O,{handler:function(n){var t=st[n.type];if(t===Nn&&(this.started=!0),this.started){var s=q.call(this,n,t);t&(jn|Ln)&&s[0].length-s[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:s[0],changedPointers:s[1],pointerType:In,srcEvent:n})}}});var ot={touchstart:Nn,touchmove:zn,touchend:jn,touchcancel:Ln},it="touchstart touchmove touchend touchcancel";h(U,O,{handler:function(n){var t=ot[n.type],s=V.call(this,n,t);s&&this.callback(this.manager,t,{pointers:s[0],changedPointers:s[1],pointerType:In,srcEvent:n})}});var pt=2500,rt=25;h(B,O,{handler:function(n,t,s){var e=s.pointerType==In,a=s.pointerType==Dn;if(!(a&&s.sourceCapabilities&&s.sourceCapabilities.firesTouchEvents)){if(e)Z.call(this,t,s);else if(a&&J.call(this,s))return;this.callback(n,t,s)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ct=w(vn.style,"touchAction"),lt=ct!==p,ut="compute",ht="auto",ft="manipulation",dt="none",kt="pan-x",mt="pan-y",gt=Q();$.prototype={set:function(n){n==ut&&(n=this.compute()),lt&&this.manager.element.style&&gt[n]&&(this.manager.element.style[ct]=n),this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return l(this.manager.recognizers,function(t){d(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),K(n.join(" "))},preventDefaults:function(n){var t=n.srcEvent,s=n.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var e=this.actions,a=y(e,dt)&&!gt[dt],o=y(e,mt)&&!gt[mt],i=y(e,kt)&&!gt[kt];if(a){var p=1===n.pointers.length,r=n.distance<2,c=n.deltaTime<250;if(p&&r&&c)return}return i&&o?void 0:a||o&&s&qn||i&&s&Un?this.preventSrc(t):void 0},preventSrc:function(n){this.manager.session.prevented=!0,n.preventDefault()}};var vt=1,yt=2,Tt=4,bt=8,Ct=bt,Et=16,wt=32;nn.prototype={defaults:{},set:function(n){return mn(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(c(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=en(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return c(n,"dropRecognizeWith",this)?this:(n=en(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(c(n,"requireFailure",this))return this;var t=this.requireFail;return n=en(n,this),b(t,n)===-1&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(c(n,"dropRequireFailure",this))return this;n=en(n,this);var t=b(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function t(t){s.manager.emit(t,n)}var s=this,e=this.state;e<bt&&t(s.options.event+tn(e)),t(s.options.event),n.additionalEvent&&t(n.additionalEvent),e>=bt&&t(s.options.event+tn(e))},tryEmit:function(n){return this.canEmit()?this.emit(n):void(this.state=wt)},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(wt|vt)))return!1;n++}return!0},recognize:function(n){var t=mn({},n);return d(this.options.enable,[this,t])?(this.state&(Ct|Et|wt)&&(this.state=vt),this.state=this.process(t),void(this.state&(yt|Tt|bt|Et)&&this.tryEmit(t))):(this.reset(),void(this.state=wt))},process:function(n){},getTouchAction:function(){},reset:function(){}},h(an,nn,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return 0===t||n.pointers.length===t},process:function(n){var t=this.state,s=n.eventType,e=t&(yt|Tt),a=this.attrTest(n);return e&&(s&Ln||!a)?t|Et:e||a?s&jn?t|bt:t&yt?t|Tt:yt:wt}}),h(on,an,{defaults:{event:"pan",threshold:10,pointers:1,direction:Vn},getTouchAction:function(){var n=this.options.direction,t=[];return n&qn&&t.push(mt),n&Un&&t.push(kt),t},directionTest:function(n){var t=this.options,s=!0,e=n.distance,a=n.direction,o=n.deltaX,i=n.deltaY;return a&t.direction||(t.direction&qn?(a=0===o?Wn:o<0?Xn:Fn,s=o!=this.pX,e=Math.abs(n.deltaX)):(a=0===i?Wn:i<0?Yn:Hn,s=i!=this.pY,e=Math.abs(n.deltaY))),n.direction=a,s&&e>t.threshold&&a&t.direction},attrTest:function(n){return an.prototype.attrTest.call(this,n)&&(this.state&yt||!(this.state&yt)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX,this.pY=n.deltaY;var t=sn(n.direction);t&&(n.additionalEvent=this.options.event+t),this._super.emit.call(this,n)}}),h(pn,an,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[dt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&yt)},emit:function(n){if(1!==n.scale){var t=n.scale<1?"in":"out";n.additionalEvent=this.options.event+t}this._super.emit.call(this,n)}}),h(rn,nn,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ht]},process:function(n){var t=this.options,s=n.pointers.length===t.pointers,e=n.distance<t.threshold,a=n.deltaTime>t.time;if(this._input=n,!e||!s||n.eventType&(jn|Ln)&&!a)this.reset();else if(n.eventType&Nn)this.reset(),this._timer=r(function(){this.state=Ct,this.tryEmit()},t.time,this);else if(n.eventType&jn)return Ct;return wt},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===Ct&&(n&&n.eventType&jn?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=Cn(),this.manager.emit(this.options.event,this._input)))}}),h(cn,an,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[dt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&yt)}}),h(ln,an,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:qn|Un,pointers:1},getTouchAction:function(){return on.prototype.getTouchAction.call(this)},attrTest:function(n){var t,s=this.options.direction;return s&(qn|Un)?t=n.overallVelocity:s&qn?t=n.overallVelocityX:s&Un&&(t=n.overallVelocityY),this._super.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers==this.options.pointers&&bn(t)>this.options.velocity&&n.eventType&jn},emit:function(n){var t=sn(n.offsetDirection);t&&this.manager.emit(this.options.event+t,n),this.manager.emit(this.options.event,n)}}),h(un,nn,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ft]},process:function(n){var t=this.options,s=n.pointers.length===t.pointers,e=n.distance<t.threshold,a=n.deltaTime<t.time;if(this.reset(),n.eventType&Nn&&0===this.count)return this.failTimeout();if(e&&a&&s){if(n.eventType!=jn)return this.failTimeout();var o=!this.pTime||n.timeStamp-this.pTime<t.interval,i=!this.pCenter||j(this.pCenter,n.center)<t.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,i&&o?this.count+=1:this.count=1,this._input=n;var p=this.count%t.taps;if(0===p)return this.hasRequireFailures()?(this._timer=r(function(){this.state=Ct,this.tryEmit()},t.interval,this),yt):Ct}return wt},failTimeout:function(){return this._timer=r(function(){this.state=wt},this.options.interval,this),wt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ct&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),hn.VERSION="2.0.7",hn.defaults={domEvents:!1,touchAction:ut,enable:!0,inputTarget:null,inputClass:null,preset:[[cn,{enable:!1}],[pn,{enable:!1},["rotate"]],[ln,{direction:qn}],[on,{direction:qn},["swipe"]],[un],[un,{event:"doubletap",taps:2},["tap"]],[rn]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Pt=1,xt=2;fn.prototype={set:function(n){return mn(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?xt:Pt},recognize:function(n){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(n);var s,e=this.recognizers,a=t.curRecognizer;(!a||a&&a.state&Ct)&&(a=t.curRecognizer=null);for(var o=0;o<e.length;)s=e[o],t.stopped===xt||a&&s!=a&&!s.canRecognizeWith(a)?s.reset():s.recognize(n),!a&&s.state&(yt|Tt|bt)&&(a=t.curRecognizer=s),o++}},get:function(n){if(n instanceof nn)return n;for(var t=this.recognizers,s=0;s<t.length;s++)if(t[s].options.event==n)return t[s];return null},add:function(n){if(c(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(c(n,"remove",this))return this;if(n=this.get(n)){var t=this.recognizers,s=b(t,n);s!==-1&&(t.splice(s,1),this.touchAction.update())}return this},on:function(n,t){if(n!==p&&t!==p){var s=this.handlers;return l(T(n),function(n){s[n]=s[n]||[],s[n].push(t)}),this}},off:function(n,t){if(n!==p){var s=this.handlers;return l(T(n),function(n){t?s[n]&&s[n].splice(b(s[n],t),1):delete s[n]}),this}},emit:function(n,t){this.options.domEvents&&kn(n,t);var s=this.handlers[n]&&this.handlers[n].slice();if(s&&s.length){t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var e=0;e<s.length;)s[e](t),e++}},destroy:function(){this.element&&dn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},mn(hn,{INPUT_START:Nn,INPUT_MOVE:zn,INPUT_END:jn,INPUT_CANCEL:Ln,STATE_POSSIBLE:vt,STATE_BEGAN:yt,STATE_CHANGED:Tt,STATE_ENDED:bt,STATE_RECOGNIZED:Ct,STATE_CANCELLED:Et,STATE_FAILED:wt,DIRECTION_NONE:Wn,DIRECTION_LEFT:Xn,DIRECTION_RIGHT:Fn,DIRECTION_UP:Yn,DIRECTION_DOWN:Hn,DIRECTION_HORIZONTAL:qn,DIRECTION_VERTICAL:Un,DIRECTION_ALL:Vn,Manager:fn,Input:O,TouchAction:$,TouchInput:U,MouseInput:F,PointerEventInput:Y,TouchMouseInput:B,SingleTouchInput:H,Recognizer:nn,AttrRecognizer:an,Tap:un,Pan:on,Swipe:ln,Pinch:pn,Rotate:cn,Press:rn,on:m,off:g,each:l,merge:wn,extend:En,assign:mn,inherit:h,bindFn:f,prefixed:w});var Ot="undefined"!=typeof a?a:"undefined"!=typeof self?self:{};Ot.Hammer=hn,e=function(){return hn}.call(t,s,t,n),!(e!==p&&(n.exports=e))}(window,document,"Hammer")},402:function(n,t,s){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}function a(n,t){var s=this;t.hasOwnProperty("vertical")&&console.warn("vertical is deprecated, please use `direction` instead");var e=t.direction;if(e||t.hasOwnProperty("vertical")){var a=e?e:t.vertical?"DIRECTION_ALL":"DIRECTION_HORIZONTAL";n.get("pan").set({direction:y[a]}),n.get("swipe").set({direction:y[a]})}t.options&&Object.keys(t.options).forEach(function(e){if("recognizers"===e)Object.keys(t.options.recognizers).forEach(function(s){var e=n.get(s);e.set(t.options.recognizers[s]),t.options.recognizers[s].requireFailure&&e.requireFailure(t.options.recognizers[s].requireFailure)},s);else{var a=e,o={};o[a]=t.options[e],n.set(o)}},this),t.recognizeWith&&Object.keys(t.recognizeWith).forEach(function(s){var e=n.get(s);e.recognizeWith(t.recognizeWith[s])},this),Object.keys(t).forEach(function(s){var e=b[s];e&&(n.off(e),n.on(e,t[s]))})}Object.defineProperty(t,"__esModule",{value:!0});var o=s(2),i=e(o),p=s(3),r=e(p),c=s(5),l=e(c),u=s(4),h=e(u),f=s(1),d=e(f),k=s(12),m=e(k),g=s(10),v=e(g),y="undefined"!=typeof window?s(393):void 0,T={children:!0,direction:!0,options:!0,recognizeWith:!0,vertical:!0},b={action:"tap press",onDoubleTap:"doubletap",onPan:"pan",onPanCancel:"pancancel",onPanEnd:"panend",onPanStart:"panstart",onPinch:"pinch",onPinchCancel:"pinchcancel",onPinchEnd:"pinchend",onPinchIn:"pinchin",onPinchOut:"pinchout",onPinchStart:"pinchstart",onPress:"press",onPressUp:"pressup",onRotate:"rotate",onRotateCancel:"rotatecancel",onRotateEnd:"rotateend",onRotateMove:"rotatemove",onRotateStart:"rotatestart",onSwipe:"swipe",onSwipeRight:"swiperight",onSwipeLeft:"swipeleft",onSwipeUp:"swipeup",onSwipeDown:"swipedown",onTap:"tap"};Object.keys(b).forEach(function(n){T[n]=!0});var C=function(n){function t(){return(0,i["default"])(this,t),(0,l["default"])(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,h["default"])(t,n),(0,r["default"])(t,[{key:"componentDidMount",value:function(){this.hammer=new y(v["default"].findDOMNode(this)),a(this.hammer,this.props)}},{key:"componentDidUpdate",value:function(){this.hammer&&a(this.hammer,this.props)}},{key:"componentWillUnmount",value:function(){this.hammer&&(this.hammer.stop(),this.hammer.destroy()),this.hammer=null}},{key:"render",value:function(){var n={};return Object.keys(this.props).forEach(function(t){T[t]||(n[t]=this.props[t])},this),d["default"].cloneElement(d["default"].Children.only(this.props.children),n)}}]),t}(d["default"].Component);C.displayName="Hammer",C.propTypes={className:m["default"].string},t["default"]=C,n.exports=t["default"]},594:function(n,t,s){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(7),o=e(a),i=s(2),p=e(i),r=s(3),c=e(r),l=s(5),u=e(l),h=s(4),f=e(h),d=s(1),k=e(d),m=s(1005),g=e(m),v=s(8),y=e(v),T=function(n){function t(){return(0,p["default"])(this,t),(0,u["default"])(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,f["default"])(t,n),(0,c["default"])(t,[{key:"render",value:function(){var n,t=this.props,s=t.className,e=t.style,a=t.prefixCls,i=t.left,p=void 0===i?[]:i,r=t.right,c=void 0===r?[]:r,l=t.autoClose,u=t.disabled,h=t.onOpen,f=t.onClose,d=t.children,m=(0,y["default"])((n={},(0,o["default"])(n,""+a,1),(0,o["default"])(n,s,!!s),n));return p.length||c.length?k["default"].createElement("div",{style:e,className:s},k["default"].createElement(g["default"],{prefixCls:a,left:p,right:c,autoClose:l,disabled:u,onOpen:h,onClose:f},d)):k["default"].createElement("div",{style:e,className:m},d)}}]),t}(k["default"].Component);T.defaultProps={prefixCls:"am-swipe",title:"\u8bf7\u786e\u8ba4\u64cd\u4f5c",autoClose:!1,disabled:!1,left:[],right:[],onOpen:function(){},onClose:function(){}},t["default"]=T,n.exports=t["default"]},595:function(n,t,s){"use strict";s(9),s(916)},768:function(n,t,s){n.exports={content:[],meta:{order:0,title:{"zh-CN":"\u57fa\u672c","en-US":"Basic"},filename:"components/swipe-action/demo/basic.md",id:"components-swipe-action-demo-basic"},highlightedCode:["pre",{lang:"jsx",highlighted:'<span class="token keyword">import</span> <span class="token punctuation">{</span> SwipeAction<span class="token punctuation">,</span> List <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">\'antd-mobile\'</span><span class="token punctuation">;</span>\n\n<span class="token keyword">const</span> SwipeActionExample <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> <span class="token punctuation">(</span>\n  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>List</span><span class="token punctuation">></span></span>\n    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>SwipeAction</span>\n      <span class="token attr-name">style</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">{</span> backgroundColor<span class="token punctuation">:</span> <span class="token string">\'gray\'</span> <span class="token punctuation">}</span><span class="token punctuation">}</span></span>\n      <span class="token attr-name">autoClose</span>\n      <span class="token attr-name">right</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">[</span>\n        <span class="token punctuation">{</span>\n          text<span class="token punctuation">:</span> <span class="token string">\'Cancel\'</span><span class="token punctuation">,</span>\n          onPress<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'cancel\'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>\n          style<span class="token punctuation">:</span> <span class="token punctuation">{</span> backgroundColor<span class="token punctuation">:</span> <span class="token string">\'#ddd\'</span><span class="token punctuation">,</span> color<span class="token punctuation">:</span> <span class="token string">\'white\'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n        <span class="token punctuation">}</span></span><span class="token attr-name">,</span>\n        <span class="token attr-name">{</span>\n          <span class="token attr-name"><span class="token namespace">text:</span></span> <span class="token attr-name">\'Delete\',</span>\n          <span class="token attr-name"><span class="token namespace">onPress:</span></span> <span class="token attr-name">()</span> <span class="token attr-name">=</span><span class="token punctuation">></span> <span class="token attr-name">console.log(\'delete\'),</span>\n          <span class="token attr-name"><span class="token namespace">style:</span></span> <span class="token attr-name">{</span> <span class="token attr-name"><span class="token namespace">backgroundColor:</span></span> <span class="token attr-name">\'#F4333C\',</span> <span class="token attr-name"><span class="token namespace">color:</span></span> <span class="token attr-name">\'white\'</span> <span class="token attr-name">},</span>\n        <span class="token attr-name">},</span>\n      <span class="token attr-name">]}</span>\n      <span class="token attr-name">left</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">[</span>\n        <span class="token punctuation">{</span>\n          text<span class="token punctuation">:</span> <span class="token string">\'Reply\'</span><span class="token punctuation">,</span>\n          onPress<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'reply\'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>\n          style<span class="token punctuation">:</span> <span class="token punctuation">{</span> backgroundColor<span class="token punctuation">:</span> <span class="token string">\'#108ee9\'</span><span class="token punctuation">,</span> color<span class="token punctuation">:</span> <span class="token string">\'white\'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n        <span class="token punctuation">}</span></span><span class="token attr-name">,</span>\n        <span class="token attr-name">{</span>\n          <span class="token attr-name"><span class="token namespace">text:</span></span> <span class="token attr-name">\'Cancel\',</span>\n          <span class="token attr-name"><span class="token namespace">onPress:</span></span> <span class="token attr-name">()</span> <span class="token attr-name">=</span><span class="token punctuation">></span> <span class="token attr-name">console.log(\'cancel\'),</span>\n          <span class="token attr-name"><span class="token namespace">style:</span></span> <span class="token attr-name">{</span> <span class="token attr-name"><span class="token namespace">backgroundColor:</span></span> <span class="token attr-name">\'#ddd\',</span> <span class="token attr-name"><span class="token namespace">color:</span></span> <span class="token attr-name">\'white\'</span> <span class="token attr-name">},</span>\n        <span class="token attr-name">},</span>\n      <span class="token attr-name">]}</span>\n      <span class="token attr-name">onOpen</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'global open\'</span><span class="token punctuation">)</span><span class="token punctuation">}</span></span>\n      <span class="token attr-name">onClose</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'global close\'</span><span class="token punctuation">)</span><span class="token punctuation">}</span></span>\n    <span class="token punctuation">></span></span>\n      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>List.Item</span>\n        <span class="token attr-name">extra</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>More<span class="token punctuation">"</span></span>\n        <span class="token attr-name">arrow</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>horizontal<span class="token punctuation">"</span></span>\n      <span class="token punctuation">></span></span>\n        Have left and right buttons\n      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>List.Item</span><span class="token punctuation">></span></span>\n    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>SwipeAction</span><span class="token punctuation">></span></span>\n    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>SwipeAction</span>\n      <span class="token attr-name">style</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">{</span> backgroundColor<span class="token punctuation">:</span> <span class="token string">\'gray\'</span> <span class="token punctuation">}</span><span class="token punctuation">}</span></span>\n      <span class="token attr-name">autoClose</span>\n      <span class="token attr-name">right</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">[</span>\n        <span class="token punctuation">{</span>\n          text<span class="token punctuation">:</span> <span class="token string">\'Cancel\'</span><span class="token punctuation">,</span>\n          onPress<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'cancel\'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>\n          style<span class="token punctuation">:</span> <span class="token punctuation">{</span> backgroundColor<span class="token punctuation">:</span> <span class="token string">\'#ddd\'</span><span class="token punctuation">,</span> color<span class="token punctuation">:</span> <span class="token string">\'white\'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n        <span class="token punctuation">}</span></span><span class="token attr-name">,</span>\n        <span class="token attr-name">{</span>\n          <span class="token attr-name"><span class="token namespace">text:</span></span> <span class="token attr-name">\'Delete\',</span>\n          <span class="token attr-name"><span class="token namespace">onPress:</span></span> <span class="token attr-name">()</span> <span class="token attr-name">=</span><span class="token punctuation">></span> <span class="token attr-name">console.log(\'delete\'),</span>\n          <span class="token attr-name"><span class="token namespace">style:</span></span> <span class="token attr-name">{</span> <span class="token attr-name"><span class="token namespace">backgroundColor:</span></span> <span class="token attr-name">\'#F4333C\',</span> <span class="token attr-name"><span class="token namespace">color:</span></span> <span class="token attr-name">\'white\'</span> <span class="token attr-name">},</span>\n        <span class="token attr-name">},</span>\n      <span class="token attr-name">]}</span>\n      <span class="token attr-name">left</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">[</span>\n        <span class="token punctuation">{</span>\n          text<span class="token punctuation">:</span> <span class="token string">\'Reply\'</span><span class="token punctuation">,</span>\n          onPress<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'reply\'</span><span class="token punctuation">)</span><span class="token punctuation">,</span>\n          style<span class="token punctuation">:</span> <span class="token punctuation">{</span> backgroundColor<span class="token punctuation">:</span> <span class="token string">\'#108ee9\'</span><span class="token punctuation">,</span> color<span class="token punctuation">:</span> <span class="token string">\'white\'</span> <span class="token punctuation">}</span><span class="token punctuation">,</span>\n        <span class="token punctuation">}</span></span><span class="token attr-name">,</span>\n        <span class="token attr-name">{</span>\n          <span class="token attr-name"><span class="token namespace">text:</span></span> <span class="token attr-name">\'Cancel\',</span>\n          <span class="token attr-name"><span class="token namespace">onPress:</span></span> <span class="token attr-name">()</span> <span class="token attr-name">=</span><span class="token punctuation">></span> <span class="token attr-name">console.log(\'cancel\'),</span>\n          <span class="token attr-name"><span class="token namespace">style:</span></span> <span class="token attr-name">{</span> <span class="token attr-name"><span class="token namespace">backgroundColor:</span></span> <span class="token attr-name">\'#ddd\',</span> <span class="token attr-name"><span class="token namespace">color:</span></span> <span class="token attr-name">\'white\'</span> <span class="token attr-name">},</span>\n        <span class="token attr-name">},</span>\n      <span class="token attr-name">]}</span>\n      <span class="token attr-name">onOpen</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'global open\'</span><span class="token punctuation">)</span><span class="token punctuation">}</span></span>\n      <span class="token attr-name">onClose</span><span class="token script language-javascript"><span class="token punctuation">=</span><span class="token punctuation">{</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token operator">=</span><span class="token operator">></span> console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">\'global close\'</span><span class="token punctuation">)</span><span class="token punctuation">}</span></span>\n    <span class="token punctuation">></span></span>\n      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>List.Item</span>\n        <span class="token attr-name">extra</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>More<span class="token punctuation">"</span></span>\n        <span class="token attr-name">arrow</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">"</span>horizontal<span class="token punctuation">"</span></span>\n      <span class="token punctuation">></span></span>\n        Have left and right buttons\n      <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>List.Item</span><span class="token punctuation">></span></span>\n    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>SwipeAction</span><span class="token punctuation">></span></span>\n  <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>List</span><span class="token punctuation">></span></span>\n<span class="token punctuation">)</span><span class="token punctuation">;</span>\n\nReactDOM<span class="token punctuation">.</span><span class="token function">render</span><span class="token punctuation">(</span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>SwipeActionExample</span> <span class="token punctuation">/></span></span><span class="token punctuation">,</span> mountNode<span class="token punctuation">)</span><span class="token punctuation">;</span>'
  }],preview:function(){function n(n){return n&&n.__esModule?n:{"default":n}}var t=s(1),e=(s(10),s(595),s(594)),a=n(e),o=(s(18),s(30)),i=n(o),p=function(){return t.createElement(i["default"],null,t.createElement(a["default"],{style:{backgroundColor:"gray"},autoClose:!0,right:[{text:"Cancel",onPress:function(){return console.log("cancel")},style:{backgroundColor:"#ddd",color:"white"}},{text:"Delete",onPress:function(){return console.log("delete")},style:{backgroundColor:"#F4333C",color:"white"}}],left:[{text:"Reply",onPress:function(){return console.log("reply")},style:{backgroundColor:"#108ee9",color:"white"}},{text:"Cancel",onPress:function(){return console.log("cancel")},style:{backgroundColor:"#ddd",color:"white"}}],onOpen:function(){return console.log("global open")},onClose:function(){return console.log("global close")}},t.createElement(i["default"].Item,{extra:"More",arrow:"horizontal"},"Have left and right buttons")),t.createElement(a["default"],{style:{backgroundColor:"gray"},autoClose:!0,right:[{text:"Cancel",onPress:function(){return console.log("cancel")},style:{backgroundColor:"#ddd",color:"white"}},{text:"Delete",onPress:function(){return console.log("delete")},style:{backgroundColor:"#F4333C",color:"white"}}],left:[{text:"Reply",onPress:function(){return console.log("reply")},style:{backgroundColor:"#108ee9",color:"white"}},{text:"Cancel",onPress:function(){return console.log("cancel")},style:{backgroundColor:"#ddd",color:"white"}}],onOpen:function(){return console.log("global open")},onClose:function(){return console.log("global close")}},t.createElement(i["default"].Item,{extra:"More",arrow:"horizontal"},"Have left and right buttons")))};return t.createElement(p,null)}}},839:function(n,t,s){n.exports={basic:s(768)}},916:function(n,t){},937:function(n,t){/*!
  	 * for-in <https://github.com/jonschlinkert/for-in>
  	 *
  	 * Copyright (c) 2014-2017, Jon Schlinkert.
  	 * Released under the MIT License.
  	 */
  "use strict";n.exports=function(n,t,s){for(var e in n)if(t.call(s,n[e],e,n)===!1)break}},938:function(n,t,s){/*!
  	 * for-own <https://github.com/jonschlinkert/for-own>
  	 *
  	 * Copyright (c) 2014-2017, Jon Schlinkert.
  	 * Released under the MIT License.
  	 */
  "use strict";var e=s(937),a=Object.prototype.hasOwnProperty;n.exports=function(n,t,s){e(n,function(e,o){if(a.call(n,o))return t.call(s,n[o],o,n)})}},962:function(n,t){/*!
  	 * is-extendable <https://github.com/jonschlinkert/is-extendable>
  	 *
  	 * Copyright (c) 2015, Jon Schlinkert.
  	 * Licensed under the MIT License.
  	 */
  "use strict";n.exports=function(n){return"undefined"!=typeof n&&null!==n&&("object"==typeof n||"function"==typeof n)}},967:function(n,t,s){/*!
  	 * object.omit <https://github.com/jonschlinkert/object.omit>
  	 *
  	 * Copyright (c) 2014-2015, Jon Schlinkert.
  	 * Licensed under the MIT License.
  	 */
  "use strict";var e=s(962),a=s(938);n.exports=function(n,t){if(!e(n))return{};t=[].concat.apply([],[].slice.call(arguments,1));var s,o=t[t.length-1],i={};"function"==typeof o&&(s=t.pop());var p="function"==typeof s;return t.length||p?(a(n,function(e,a){t.indexOf(a)===-1&&(p?s(e,a,n)&&(i[a]=e):i[a]=e)}),i):n}},1004:function(n,t,s){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(6),o=e(a),i=s(2),p=e(i),r=s(3),c=e(r),l=s(5),u=e(l),h=s(4),f=e(h),d=s(1),k=e(d),m=s(10),g=e(m),v=s(327),y=e(v),T=s(967),b=e(T),C=function(n,t){var s={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(s[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,e=Object.getOwnPropertySymbols(n);a<e.length;a++)t.indexOf(e[a])<0&&(s[e[a]]=n[e[a]]);return s},E=function(n){function t(n){(0,p["default"])(this,t);var s=(0,u["default"])(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return s.onPanStart=s.onPanStart.bind(s),s.onPan=s.onPan.bind(s),s.onPanEnd=s.onPanEnd.bind(s),s.onCloseSwipe=s.onCloseSwipe.bind(s),s.openedLeft=!1,s.openedRight=!1,s}return(0,f["default"])(t,n),(0,c["default"])(t,[{key:"componentDidMount",value:function(){var n=this.props,t=n.left,s=void 0===t?[]:t,e=n.right,a=void 0===e?[]:e,o=this.content.offsetWidth;this.cover&&(this.cover.style.width=o+"px"),this.contentWidth=o,this.btnsLeftWidth=o/5*s.length,this.btnsRightWidth=o/5*a.length,document.body.addEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"onCloseSwipe",value:function(n){var t=this;if(this.openedLeft||this.openedRight){var s=function(n){for(;n.parentNode&&n.parentNode!==document.body;){if(n.className.indexOf(t.props.prefixCls+"-actions")>-1)return n;n=n.parentNode}}(n.target);s||(n.preventDefault(),this.close())}}},{key:"onPanStart",value:function(n){this.props.disabled||(this.panStartX=n.deltaX)}},{key:"onPan",value:function(n){if(!this.props.disabled){var t=this.props,s=t.left,e=void 0===s?[]:s,a=t.right,o=void 0===a?[]:a,i=n.deltaX-this.panStartX;i<0&&o.length?this._setStyle(Math.min(i,0)):i>0&&e.length&&this._setStyle(Math.max(i,0))}}},{key:"onPanEnd",value:function(n){if(!this.props.disabled){var t=this.props,s=t.left,e=void 0===s?[]:s,a=t.right,o=void 0===a?[]:a,i=n.deltaX-this.panStartX,p=this.contentWidth,r=this.btnsLeftWidth,c=this.btnsRightWidth,l=.33*p,u=i>l||i>r/2,h=i<-l||i<-c/2;h&&i<0&&o.length?this.open(-c,!1,!0):u&&i>0&&e.length?this.open(r,!0,!1):this.close()}}},{key:"onBtnClick",value:function(n,t){var s=t.onPress;s&&s(n),this.props.autoClose&&this.close()}},{key:"_getContentEasing",value:function(n,t){return n<0&&n<t?t-Math.pow(t-n,.85):n>0&&n>t?t+Math.pow(n-t,.85):n}},{key:"_setStyle",value:function(n){var t=this.props,s=t.left,e=void 0===s?[]:s,a=t.right,o=void 0===a?[]:a,i=n>0?this.btnsLeftWidth:-this.btnsRightWidth,p=this._getContentEasing(n,i);if(this.content.style.left=p+"px",this.cover&&(this.cover.style.display=Math.abs(n)>0?"block":"none",this.cover.style.left=p+"px"),e.length){var r=Math.max(Math.min(n,Math.abs(i)),0);this.left.style.width=r+"px"}if(o.length){var c=Math.max(Math.min(-n,Math.abs(i)),0);this.right.style.width=c+"px"}}},{key:"open",value:function(n,t,s){this.openedLeft||this.openedRight||!this.props.onOpen||this.props.onOpen(),this.openedLeft=t,this.openedRight=s,this._setStyle(n)}},{key:"close",value:function(){(this.openedLeft||this.openedRight)&&this.props.onClose&&this.props.onClose(),this._setStyle(0),this.openedLeft=!1,this.openedRight=!1}},{key:"renderButtons",value:function(n,t){var s=this,e=this.props.prefixCls;return n&&n.length?k["default"].createElement("div",{className:e+"-actions "+e+"-actions-"+t,ref:function(n){return s[t]=g["default"].findDOMNode(n)}},n.map(function(n,t){return k["default"].createElement("div",{key:t,className:e+"-btn "+(n.hasOwnProperty("className")?n.className:""),style:n.style,role:"button",onClick:function(t){return s.onBtnClick(t,n)}},k["default"].createElement("div",{className:e+"-text"},n.text||"Click"))})):null}},{key:"render",value:function(){var n=this,t=this.props,s=t.prefixCls,e=t.left,a=void 0===e?[]:e,i=t.right,p=void 0===i?[]:i,r=t.children,c=C(t,["prefixCls","left","right","children"]),l=(0,b["default"])(c,["disabled","autoClose","onOpen","onClose"]),u={ref:function(t){return n.content=g["default"].findDOMNode(t)}};return a.length||p.length?k["default"].createElement("div",(0,o["default"])({className:""+s},l),k["default"].createElement("div",{className:s+"-cover",ref:function(t){return n.cover=g["default"].findDOMNode(t)}}),this.renderButtons(a,"left"),this.renderButtons(p,"right"),k["default"].createElement(y["default"],(0,o["default"])({direction:"DIRECTION_HORIZONTAL",onPanStart:this.onPanStart,onPan:this.onPan,onPanEnd:this.onPanEnd},u),k["default"].createElement("div",{className:s+"-content"},r))):k["default"].createElement("div",(0,o["default"])({},u,l),r)}}]),t}(k["default"].Component);E.defaultProps={prefixCls:"rc-swipeout",autoClose:!1,disabled:!1,left:[],right:[],onOpen:function(){},onClose:function(){}},t["default"]=E,n.exports=t["default"]},1005:function(n,t,s){"use strict";function e(n){return n&&n.__esModule?n:{"default":n}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(1004);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e(a)["default"]}}),n.exports=t["default"]}});