Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-swipeout

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-swipeout - npm Package Compare versions

Comparing version 1.4.6-alpha.7 to 2.0.0-alpha.0

2

dist/rc-swipeout.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-swipeout"]=e(require("react"),require("react-dom")):t["rc-swipeout"]=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=104)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(9),r=n(39),o=n(26),s=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(40),r=n(16);t.exports=function(t){return i(r(t))}},function(t,e,n){var i=n(0),r=n(1),o=n(37),s=n(7),u=function(t,e,n){var a,c,f,l=t&u.F,p=t&u.G,h=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,m=p?r:r[e]||(r[e]={}),g=m.prototype,b=p?i:h?i[e]:(i[e]||{}).prototype;p&&(n=e);for(a in n)(c=!l&&b&&void 0!==b[a])&&a in m||(f=c?b[a]:n[a],m[a]=p&&"function"!=typeof b[a]?n[a]:v&&c?o(f,i):y&&b[a]==f?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):d&&"function"==typeof f?o(Function.call,f):f,d&&((m.virtual||(m.virtual={}))[a]=f,t&u.R&&g&&!g[a]&&s(g,a,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var i=n(4),r=n(14);t.exports=n(2)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(24)("wks"),r=n(15),o=n(0).Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},function(t,e,n){var i=n(11);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(44),r=n(17);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var i=n(9),r=n(77),o=n(17),s=n(23)("IE_PROTO"),u=function(){},a=function(){var t,e=n(38)("iframe"),i=o.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;i--;)delete a.prototype[o[i]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=i(t),n=new u,u.prototype=null,n[s]=t):n=a(),void 0===e?n:r(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(4).f,r=n(3),o=n(8)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(24)("keys"),r=n(15);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(0),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(11);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(0),r=n(1),o=n(19),s=n(28),u=n(4).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:s.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(29),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}()},function(t,e,n){"use strict";e.__esModule=!0;var i=n(54),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(56),o=i(r),s=n(55),u=i(s),a=n(35),c=i(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(35),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,r.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(58),o=i(r),s=n(57),u=i(s),a="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===a(o.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(66);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(11),r=n(0).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var i=n(19),r=n(6),o=n(45),s=n(7),u=n(3),a=n(18),c=n(72),f=n(22),l=n(79),p=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,y,m,g){c(n,e,v);var b,T,_,O=function(t){if(!h&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",w="values"==y,S=!1,x=t.prototype,P=x[p]||x["@@iterator"]||y&&x[y],C=P||O(y),M=y?w?O("entries"):C:void 0,j="Array"==e?x.entries||P:P;if(j&&(_=l(j.call(new t)))!==Object.prototype&&_.next&&(f(_,E,!0),i||u(_,p)||s(_,p,d)),w&&P&&"values"!==P.name&&(S=!0,C=function(){return P.call(this)}),i&&!g||!h&&!S&&x[p]||s(x,p,C),a[e]=C,a[E]=d,y)if(b={values:w?C:O("values"),keys:m?C:O("keys"),entries:M},g)for(T in b)T in x||o(x,T,b[T]);else r(r.P+r.F*(h||S),e,b);return b}},function(t,e,n){var i=n(13),r=n(14),o=n(5),s=n(26),u=n(3),a=n(39),c=Object.getOwnPropertyDescriptor;e.f=n(2)?c:function(t,e){if(t=o(t),e=s(e,!0),a)try{return c(t,e)}catch(t){}if(u(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(44),r=n(17).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(3),r=n(5),o=n(68)(!1),s=n(23)("IE_PROTO");t.exports=function(t,e){var n,u=r(t),a=0,c=[];for(n in u)n!=s&&i(u,n)&&c.push(n);for(;e.length>a;)i(u,n=e[a++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){t.exports=n(7)},function(t,e,n){var i=n(16);t.exports=function(t){return Object(i(t))}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(53);e.default=i.a},function(t,e){},function(t,e,n){var i,r;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var i=arguments[e];if(i){var r=typeof i;if("string"===r||"number"===r)t.push(i);else if(Array.isArray(i))t.push(n.apply(null,i));else if("object"===r)for(var s in i)o.call(i,s)&&i[s]&&t.push(s)}}return t.join(" ")}var o={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=n:(i=[],void 0!==(r=function(){return n}.apply(e,i))&&(t.exports=r))}()},function(t,e,n){"use strict";var i=n(32),r=n.n(i),o=n(59),s=n.n(o),u=n(30),a=n.n(u),c=n(31),f=n.n(c),l=n(34),p=n.n(l),h=n(33),d=n.n(h),v=n(47),y=n.n(v),m=n(48),g=n.n(m),b=n(103),T=n(98),_=n(51),O=n.n(_),E=this&&this.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&(n[i[r]]=t[i[r]]);return n},w=function(t){function e(t){a()(this,e);var n=p()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onCloseSwipe=function(t){if(n.openedLeft||n.openedRight){(function(t){for(;t.parentNode&&t.parentNode!==document.body;){if(t.className.indexOf(n.props.prefixCls+"-actions")>-1)return t;t=t.parentNode}})(t.target)||(t.preventDefault(),n.close())}},n.onPanStart=function(t){var e=t.direction,i=t.deltaX,r=2===e,o=4===e;if(r||o){var s=n.props,u=s.left,a=s.right;n.needShowRight=r&&a.length>0,n.needShowLeft=o&&u.length>0,n.left&&(n.left.style.visibility=n.needShowRight?"hidden":"visible"),n.right&&(n.right.style.visibility=n.needShowLeft?"hidden":"visible"),(n.needShowLeft||n.needShowRight)&&(n.swiping=!0,n.setState({swiping:n.swiping}),n._setStyle(i))}},n.onPan=function(t){var e=t.deltaX;n.swiping&&n._setStyle(e)},n.onPanEnd=function(t){if(n.swiping){var e=n.btnsLeftWidth,i=n.btnsRightWidth,r=t.deltaX,o=n.needShowRight&&Math.abs(r)>i/2,s=n.needShowLeft&&Math.abs(r)>i/2;o?n.open(-i,!1,!0):s?n.open(e,!0,!1):n.close(),n.swiping=!1,n.setState({swiping:n.swiping}),n.needShowLeft=!1,n.needShowRight=!1}},n._setStyle=function(t){var e=t>0?n.btnsLeftWidth:-n.btnsRightWidth,i=n._getContentEasing(t,e);n.content.style.left=i+"px",n.cover&&(n.cover.style.display=Math.abs(t)>0?"block":"none",n.cover.style.left=i+"px")},n.open=function(t,e,i){n.openedLeft||n.openedRight||!n.props.onOpen||n.props.onOpen(),n.openedLeft=e,n.openedRight=i,n._setStyle(t)},n.close=function(){(n.openedLeft||n.openedRight)&&n.props.onClose&&n.props.onClose(),n._setStyle(0),n.openedLeft=!1,n.openedRight=!1},n.state={swiping:!1},n.openedLeft=!1,n.openedRight=!1,n}return d()(e,t),f()(e,[{key:"componentDidMount",value:function(){this.btnsLeftWidth=this.left?this.left.offsetWidth:0,this.btnsRightWidth=this.right?this.right.offsetWidth:0,document.body.addEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"onBtnClick",value:function(t,e){var n=e.onPress;n&&n(t),this.props.autoClose&&this.close()}},{key:"_getContentEasing",value:function(t,e){var n=Math.abs(t)-Math.abs(e),i=n>0,r=e>0?1:-1;return i?(t=e+Math.pow(n,.85)*r,Math.abs(t)>Math.abs(e)?e:t):t}},{key:"renderButtons",value:function(t,e){var n=this,i=this.props.prefixCls;return t&&t.length?y.a.createElement("div",{className:i+"-actions "+i+"-actions-"+e,ref:function(t){return n[e]=t}},t.map(function(t,e){return y.a.createElement("div",{key:e,className:i+"-btn "+(t.hasOwnProperty("className")?t.className:""),style:t.style,role:"button",onClick:function(e){return n.onBtnClick(e,t)}},y.a.createElement("div",{className:i+"-btn-text"},t.text||"Click"))})):null}},{key:"render",value:function(){var t=this,e=this.props,i=e.prefixCls,o=e.left,u=e.right,a=e.disabled,c=e.children,f=E(e,["prefixCls","left","right","disabled","children"]),l=n.i(T.a)(f,["autoClose","onOpen","onClose"]),p={ref:function(e){return t.content=g.a.findDOMNode(e)}},h=O()(i,s()({},i+"-swiping",this.state.swiping));return!o.length&&!u.length||a?y.a.createElement("div",r()({},p,l),c):y.a.createElement("div",r()({className:h},l),y.a.createElement("div",{className:i+"-cover",ref:function(e){return t.cover=e}}),this.renderButtons(o,"left"),this.renderButtons(u,"right"),y.a.createElement(b.a,r()({direction:"DIRECTION_HORIZONTAL",onPanStart:this.onPanStart,onPan:this.onPan,onPanEnd:this.onPanEnd},p),y.a.createElement("div",{className:i+"-content"},c)))}}]),e}(y.a.Component);e.a=w,w.defaultProps={prefixCls:"rc-swipeout",autoClose:!1,disabled:!1,left:[],right:[],onOpen:function(){},onClose:function(){}}},function(t,e,n){"use strict";var i=n(52);n.d(e,"a",function(){return i.a})},function(t,e,n){t.exports={default:n(60),__esModule:!0}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(29),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){n(85),t.exports=n(1).Object.assign},function(t,e,n){n(86);var i=n(1).Object;t.exports=function(t,e){return i.create(t,e)}},function(t,e,n){n(87);var i=n(1).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){n(88),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(91),n(89),n(92),n(93),t.exports=n(1).Symbol},function(t,e,n){n(90),n(94),t.exports=n(28).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(5),r=n(83),o=n(82);t.exports=function(t){return function(e,n,s){var u,a=i(e),c=r(a.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if((u=a[f++])!=u)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var i=n(12),r=n(21),o=n(13);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var s,u=n(t),a=o.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e,n){var i=n(0).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(36);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(20),r=n(14),o=n(22),s={};n(7)(s,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var i=n(12),r=n(5);t.exports=function(t,e){for(var n,o=r(t),s=i(o),u=s.length,a=0;u>a;)if(o[n=s[a++]]===e)return n}},function(t,e,n){var i=n(15)("meta"),r=n(11),o=n(3),s=n(4).f,u=0,a=Object.isExtensible||function(){return!0},c=!n(10)(function(){return a(Object.preventExtensions({}))}),f=function(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[i].i},p=function(t,e){if(!o(t,i)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[i].w},h=function(t){return c&&d.NEED&&a(t)&&!o(t,i)&&f(t),t},d=t.exports={KEY:i,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){"use strict";var i=n(12),r=n(21),o=n(13),s=n(46),u=n(40),a=Object.assign;t.exports=!a||n(10)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=i})?function(t,e){for(var n=s(t),a=arguments.length,c=1,f=r.f,l=o.f;a>c;)for(var p,h=u(arguments[c++]),d=f?i(h).concat(f(h)):i(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(n[p]=h[p]);return n}:a},function(t,e,n){var i=n(4),r=n(9),o=n(12);t.exports=n(2)?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),u=s.length,a=0;u>a;)i.f(t,n=s[a++],e[n]);return t}},function(t,e,n){var i=n(5),r=n(43).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return r(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?u(t):r(i(t))}},function(t,e,n){var i=n(3),r=n(46),o=n(23)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var i=n(11),r=n(9),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(37)(Function.call,n(42).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var i=n(25),r=n(16);t.exports=function(t){return function(e,n){var o,s,u=String(r(e)),a=i(n),c=u.length;return a<0||a>=c?t?"":void 0:(o=u.charCodeAt(a),o<55296||o>56319||a+1===c||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){var i=n(25),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(25),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){"use strict";var i=n(67),r=n(73),o=n(18),s=n(5);t.exports=n(41)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(6);i(i.S+i.F,"Object",{assign:n(76)})},function(t,e,n){var i=n(6);i(i.S,"Object",{create:n(20)})},function(t,e,n){var i=n(6);i(i.S+i.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var i=n(6);i(i.S,"Object",{setPrototypeOf:n(80).set})},function(t,e){},function(t,e,n){"use strict";var i=n(81)(!0);n(41)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var i=n(0),r=n(3),o=n(2),s=n(6),u=n(45),a=n(75).KEY,c=n(10),f=n(24),l=n(22),p=n(15),h=n(8),d=n(28),v=n(27),y=n(74),m=n(69),g=n(71),b=n(9),T=n(5),_=n(26),O=n(14),E=n(20),w=n(78),S=n(42),x=n(4),P=n(12),C=S.f,M=x.f,j=w.f,R=i.Symbol,I=i.JSON,A=I&&I.stringify,L=h("_hidden"),N=h("toPrimitive"),k={}.propertyIsEnumerable,D=f("symbol-registry"),F=f("symbols"),z=f("op-symbols"),W=Object.prototype,X="function"==typeof R,Y=i.QObject,q=!Y||!Y.prototype||!Y.prototype.findChild,H=o&&c(function(){return 7!=E(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=C(W,e);i&&delete W[e],M(t,e,n),i&&t!==W&&M(W,e,i)}:M,U=function(t){var e=F[t]=E(R.prototype);return e._k=t,e},V=X&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},G=function(t,e,n){return t===W&&G(z,e,n),b(t),e=_(e,!0),b(n),r(F,e)?(n.enumerable?(r(t,L)&&t[L][e]&&(t[L][e]=!1),n=E(n,{enumerable:O(0,!1)})):(r(t,L)||M(t,L,O(1,{})),t[L][e]=!0),H(t,e,n)):M(t,e,n)},B=function(t,e){b(t);for(var n,i=m(e=T(e)),r=0,o=i.length;o>r;)G(t,n=i[r++],e[n]);return t},Z=function(t,e){return void 0===e?E(t):B(E(t),e)},J=function(t){var e=k.call(this,t=_(t,!0));return!(this===W&&r(F,t)&&!r(z,t))&&(!(e||!r(this,t)||!r(F,t)||r(this,L)&&this[L][t])||e)},K=function(t,e){if(t=T(t),e=_(e,!0),t!==W||!r(F,e)||r(z,e)){var n=C(t,e);return!n||!r(F,e)||r(t,L)&&t[L][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=j(T(t)),i=[],o=0;n.length>o;)r(F,e=n[o++])||e==L||e==a||i.push(e);return i},$=function(t){for(var e,n=t===W,i=j(n?z:T(t)),o=[],s=0;i.length>s;)!r(F,e=i[s++])||n&&!r(W,e)||o.push(F[e]);return o};X||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(z,n),r(this,L)&&r(this[L],t)&&(this[L][t]=!1),H(this,t,O(1,n))};return o&&q&&H(W,t,{configurable:!0,set:e}),U(t)},u(R.prototype,"toString",function(){return this._k}),S.f=K,x.f=G,n(43).f=w.f=Q,n(13).f=J,n(21).f=$,o&&!n(19)&&u(W,"propertyIsEnumerable",J,!0),d.f=function(t){return U(h(t))}),s(s.G+s.W+s.F*!X,{Symbol:R});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var nt=P(h.store),it=0;nt.length>it;)v(nt[it++]);s(s.S+s.F*!X,"Symbol",{for:function(t){return r(D,t+="")?D[t]:D[t]=R(t)},keyFor:function(t){if(V(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!X,"Object",{create:Z,defineProperty:G,defineProperties:B,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),I&&s(s.S+s.F*(!X||c(function(){var t=R();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!V(t)){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);return e=i[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!V(e))return e}),i[1]=e,A.apply(I,i)}}}),R.prototype[N]||n(7)(R.prototype,N,R.prototype.valueOf),l(R,"Symbol"),l(Math,"Math",!0),l(i.JSON,"JSON",!0)},function(t,e,n){n(27)("asyncIterator")},function(t,e,n){n(27)("observable")},function(t,e,n){n(84);for(var i=n(0),r=n(7),o=n(18),s=n(8)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<u.length;a++){var c=u[a],f=i[c],l=f&&f.prototype;l&&!l[s]&&r(l,s,c),o[c]=o.Array}},function(t,e,n){"use strict";function i(t){return function(){return t}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";function i(t,e,n,i,o,s,u,a){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,i,o,s,u,a],l=0;c=new Error(e.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(t){};t.exports=i},function(t,e,n){var i;!function(r,o,s,u){"use strict";function a(t,e,n){return setTimeout(h(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(f(t,n[e],n),!0)}function f(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==u)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function l(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function p(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&dt(i,n)}function h(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==mt?t.apply(e?e[0]||u:u,e):t}function v(t,e){return t===u?e:t}function y(t,e,n){f(T(e),function(e){t.addEventListener(e,n,!1)})}function m(t,e,n){f(T(e),function(e){t.removeEventListener(e,n,!1)})}function g(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function b(t,e){return t.indexOf(e)>-1}function T(t){return t.trim().split(/\s+/g)}function _(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function O(t){return Array.prototype.slice.call(t,0)}function E(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];_(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function w(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<vt.length;){if(n=vt[o],(i=n?n+r:e)in t)return i;o++}return u}function S(){return Et++}function x(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function P(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function C(t){var e=t.options.inputClass;return new(e||(xt?Y:Pt?U:St?G:X))(t,M)}function M(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&Mt&&i-r==0,s=e&(Rt|It)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,j(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function j(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=A(e)),r>1&&!n.firstMultiple?n.firstMultiple=A(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,u=s?s.center:o.center,a=e.center=L(i);e.timeStamp=Tt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=F(u,a),e.distance=D(u,a),R(n,e),e.offsetDirection=k(e.deltaX,e.deltaY);var c=N(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=bt(c.x)>bt(c.y)?c.x:c.y,e.scale=s?W(s.pointers,i):1,e.rotation=s?z(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,I(n,e);var f=t.element;g(e.srcEvent.target,f)&&(f=e.srcEvent.target),e.target=f}function R(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==Mt&&o.eventType!==Rt||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function I(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(e.eventType!=It&&(a>Ct||s.velocity===u)){var c=e.deltaX-s.deltaX,f=e.deltaY-s.deltaY,l=N(a,c,f);i=l.x,r=l.y,n=bt(l.x)>bt(l.y)?l.x:l.y,o=k(c,f),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function A(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:gt(t.pointers[n].clientX),clientY:gt(t.pointers[n].clientY)},n++;return{timeStamp:Tt(),pointers:e,center:L(e),deltaX:t.deltaX,deltaY:t.deltaY}}function L(t){var e=t.length;if(1===e)return{x:gt(t[0].clientX),y:gt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:gt(n/e),y:gt(i/e)}}function N(t,e,n){return{x:e/t||0,y:n/t||0}}function k(t,e){return t===e?At:bt(t)>=bt(e)?t<0?Lt:Nt:e<0?kt:Dt}function D(t,e,n){n||(n=Xt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function F(t,e,n){n||(n=Xt);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function z(t,e){return F(e[1],e[0],Yt)+F(t[1],t[0],Yt)}function W(t,e){return D(e[0],e[1],Yt)/D(t[0],t[1],Yt)}function X(){this.evEl=Ht,this.evWin=Ut,this.pressed=!1,P.apply(this,arguments)}function Y(){this.evEl=Bt,this.evWin=Zt,P.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function q(){this.evTarget=Kt,this.evWin=Qt,this.started=!1,P.apply(this,arguments)}function H(t,e){var n=O(t.touches),i=O(t.changedTouches);return e&(Rt|It)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}function U(){this.evTarget=te,this.targetIds={},P.apply(this,arguments)}function V(t,e){var n=O(t.touches),i=this.targetIds;if(e&(Mt|jt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=O(t.changedTouches),u=[],a=this.target;if(o=n.filter(function(t){return g(t.target,a)}),e===Mt)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&u.push(s[r]),e&(Rt|It)&&delete i[s[r].identifier],r++;return u.length?[E(o.concat(u),"identifier",!0),u]:void 0}function G(){P.apply(this,arguments);var t=h(this.handler,this);this.touch=new U(this.manager,t),this.mouse=new X(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function B(t,e){t&Mt?(this.primaryTouch=e.changedPointers[0].identifier,Z.call(this,e)):t&(Rt|It)&&Z.call(this,e)}function Z(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,ee)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=ne&&s<=ne)return!0}return!1}function K(t,e){this.manager=t,this.set(e)}function Q(t){if(b(t,ue))return ue;var e=b(t,ae),n=b(t,ce);return e&&n?ue:e||n?e?ae:ce:b(t,se)?se:oe}function $(t){this.options=dt({},this.defaults,t||{}),this.id=S(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=le,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ye?"cancel":t&de?"end":t&he?"move":t&pe?"start":""}function et(t){return t==Dt?"down":t==kt?"up":t==Lt?"left":t==Nt?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function it(){$.apply(this,arguments)}function rt(){it.apply(this,arguments),this.pX=null,this.pY=null}function ot(){it.apply(this,arguments)}function st(){$.apply(this,arguments),this._timer=null,this._input=null}function ut(){it.apply(this,arguments)}function at(){it.apply(this,arguments)}function ct(){$.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ft(t,e){return e=e||{},e.recognizers=v(e.recognizers,ft.defaults.preset),new lt(t,e)}function lt(t,e){this.options=dt({},ft.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=C(this),this.touchAction=new K(this,this.options.touchAction),pt(this,!0),f(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 pt(t,e){var n=t.element;if(n.style){var i;f(t.options.cssProps,function(r,o){i=w(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function ht(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var dt,vt=["","webkit","Moz","MS","ms","o"],yt=o.createElement("div"),mt="function",gt=Math.round,bt=Math.abs,Tt=Date.now;dt="function"!=typeof Object.assign?function(t){if(t===u||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==u&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var _t=l(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===u)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),Ot=l(function(t,e){return _t(t,e,!0)},"merge","Use `assign`."),Et=1,wt=/mobile|tablet|ip(ad|hone|od)|android/i,St="ontouchstart"in r,xt=w(r,"PointerEvent")!==u,Pt=St&&wt.test(navigator.userAgent),Ct=25,Mt=1,jt=2,Rt=4,It=8,At=1,Lt=2,Nt=4,kt=8,Dt=16,Ft=Lt|Nt,zt=kt|Dt,Wt=Ft|zt,Xt=["x","y"],Yt=["clientX","clientY"];P.prototype={handler:function(){},init:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(x(this.element),this.evWin,this.domHandler)},destroy: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)}};var qt={mousedown:Mt,mousemove:jt,mouseup:Rt},Ht="mousedown",Ut="mousemove mouseup";p(X,P,{handler:function(t){var e=qt[t.type];e&Mt&&0===t.button&&(this.pressed=!0),e&jt&&1!==t.which&&(e=Rt),this.pressed&&(e&Rt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Vt={pointerdown:Mt,pointermove:jt,pointerup:Rt,pointercancel:It,pointerout:It},Gt={2:"touch",3:"pen",4:"mouse",5:"kinect"},Bt="pointerdown",Zt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Bt="MSPointerDown",Zt="MSPointerMove MSPointerUp MSPointerCancel"),p(Y,P,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=Vt[i],o=Gt[t.pointerType]||t.pointerType,s="touch"==o,u=_(e,t.pointerId,"pointerId");r&Mt&&(0===t.button||s)?u<0&&(e.push(t),u=e.length-1):r&(Rt|It)&&(n=!0),u<0||(e[u]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(u,1))}});var Jt={touchstart:Mt,touchmove:jt,touchend:Rt,touchcancel:It},Kt="touchstart",Qt="touchstart touchmove touchend touchcancel";p(q,P,{handler:function(t){var e=Jt[t.type];if(e===Mt&&(this.started=!0),this.started){var n=H.call(this,t,e);e&(Rt|It)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var $t={touchstart:Mt,touchmove:jt,touchend:Rt,touchcancel:It},te="touchstart touchmove touchend touchcancel";p(U,P,{handler:function(t){var e=$t[t.type],n=V.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;p(G,P,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)B.call(this,e,n);else if(r&&J.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=w(yt.style,"touchAction"),re=ie!==u,oe="auto",se="manipulation",ue="none",ae="pan-x",ce="pan-y",fe=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();K.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&fe[t]&&(this.manager.element.style[ie]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return f(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Q(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=b(i,ue)&&!fe[ue],o=b(i,ce)&&!fe[ce],s=b(i,ae)&&!fe[ae];if(r){var u=1===t.pointers.length,a=t.distance<2,c=t.deltaTime<250;if(u&&a&&c)return}return s&&o?void 0:r||o&&n&Ft||s&&n&zt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var le=1,pe=2,he=4,de=8,ve=de,ye=16;$.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=nt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=nt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=nt(t,this),-1===_(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=_(this.requireFail,t);return e>-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){n.manager.emit(e,t)}var n=this,i=this.state;i<de&&e(n.options.event+tt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=de&&e(n.options.event+tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|le)))return!1;t++}return!0},recognize:function(t){var e=dt({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ve|ye|32)&&(this.state=le),this.state=this.process(e),this.state&(pe|he|de|ye)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},p(it,$,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(pe|he),r=this.attrTest(t);return i&&(n&It||!r)?e|ye:i||r?n&Rt?e|de:e&pe?e|he:pe:32}}),p(rt,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:Wt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Ft&&e.push(ce),t&zt&&e.push(ae),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Ft?(r=0===o?At:o<0?Lt:Nt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?At:s<0?kt:Dt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&pe||!(this.state&pe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(ot,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&pe)},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)}}),p(st,$,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Rt|It)&&!r)this.reset();else if(t.eventType&Mt)this.reset(),this._timer=a(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Rt)return ve;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Rt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Tt(),this.manager.emit(this.options.event,this._input)))}}),p(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ue]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&pe)}}),p(at,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ft|zt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Ft|zt)?e=t.overallVelocity:n&Ft?e=t.overallVelocityX:n&zt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Rt},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(ct,$,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&Mt&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Rt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||D(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=a(function(){this.state=ve,this.tryEmit()},e.interval,this),pe):ve}return 32},failTimeout:function(){return this._timer=a(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ft.VERSION="2.0.7",ft.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[ot,{enable:!1},["rotate"]],[at,{direction:Ft}],[rt,{direction:Ft},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};lt.prototype={set:function(t){return dt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ve)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(pe|he|de)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof $)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=_(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==u&&e!==u){var n=this.handlers;return f(T(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==u){var n=this.handlers;return f(T(t),function(t){e?n[t]&&n[t].splice(_(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&ht(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&pt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dt(ft,{INPUT_START:Mt,INPUT_MOVE:jt,INPUT_END:Rt,INPUT_CANCEL:It,STATE_POSSIBLE:le,STATE_BEGAN:pe,STATE_CHANGED:he,STATE_ENDED:de,STATE_RECOGNIZED:ve,STATE_CANCELLED:ye,STATE_FAILED:32,DIRECTION_NONE:At,DIRECTION_LEFT:Lt,DIRECTION_RIGHT:Nt,DIRECTION_UP:kt,DIRECTION_DOWN:Dt,DIRECTION_HORIZONTAL:Ft,DIRECTION_VERTICAL:zt,DIRECTION_ALL:Wt,Manager:lt,Input:P,TouchAction:K,TouchInput:U,MouseInput:X,PointerEventInput:Y,TouchMouseInput:G,SingleTouchInput:q,Recognizer:$,AttrRecognizer:it,Tap:ct,Pan:rt,Swipe:at,Pinch:ot,Rotate:ut,Press:st,on:y,off:m,each:f,merge:Ot,extend:_t,assign:dt,inherit:p,bindFn:h,prefixed:w}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ft,(i=function(){return ft}.call(e,n,e,t))!==u&&(t.exports=i)}(window,document)},function(t,e,n){"use strict";function i(t,e){for(var n=o()({},t),i=0;i<e.length;i++){delete n[e[i]]}return n}var r=n(32),o=n.n(r);e.a=i},function(t,e,n){"use strict";var i=n(95),r=n(96),o=n(101);t.exports=function(){function t(t,e,n,i,s,u){u!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e};return n.checkPropTypes=i,n.PropTypes=n,n}},function(t,e,n){t.exports=n(99)()},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function i(t,e){var n=this;e.hasOwnProperty("vertical")&&console.warn("vertical is deprecated, please use `direction` instead");var i=e.direction;if(i||e.hasOwnProperty("vertical")){var r=i||(e.vertical?"DIRECTION_ALL":"DIRECTION_HORIZONTAL");t.get("pan").set({direction:g[r]}),t.get("swipe").set({direction:g[r]})}e.options&&Object.keys(e.options).forEach(function(i){if("recognizers"===i)Object.keys(e.options.recognizers).forEach(function(n){var i=t.get(n);i.set(e.options.recognizers[n]),e.options.recognizers[n].requireFailure&&i.requireFailure(e.options.recognizers[n].requireFailure)},n);else{var r=i,o={};o[r]=e.options[i],t.set(o)}},this),e.recognizeWith&&Object.keys(e.recognizeWith).forEach(function(n){t.get(n).recognizeWith(e.recognizeWith[n])},this),Object.keys(e).forEach(function(n){var i=T[n];i&&(t.off(i),t.on(i,e[n]))})}var r=n(30),o=n.n(r),s=n(31),u=n.n(s),a=n(34),c=n.n(a),f=n(33),l=n.n(f),p=n(47),h=n.n(p),d=n(100),v=n.n(d),y=n(48),m=n.n(y),g="undefined"!=typeof window?n(97):void 0,b={children:!0,direction:!0,options:!0,recognizeWith:!0,vertical:!0},T={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(T).forEach(function(t){b[t]=!0});var _=function(t){function e(){return o()(this,e),c()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l()(e,t),u()(e,[{key:"componentDidMount",value:function(){this.hammer=new g(m.a.findDOMNode(this)),i(this.hammer,this.props)}},{key:"componentDidUpdate",value:function(){this.hammer&&i(this.hammer,this.props)}},{key:"componentWillUnmount",value:function(){this.hammer&&(this.hammer.stop(),this.hammer.destroy()),this.hammer=null}},{key:"render",value:function(){var t={};return Object.keys(this.props).forEach(function(e){b[e]||(t[e]=this.props[e])},this),h.a.cloneElement(h.a.Children.only(this.props.children),t)}}]),e}(h.a.Component);_.displayName="Hammer",_.propTypes={className:v.a.string},e.a=_},function(t,e,n){"use strict";var i=n(102);e.a=i.a},function(t,e,n){n(49),t.exports=n(50)}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports["rc-swipeout"]=e(require("react"),require("react-dom")):t["rc-swipeout"]=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=99)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(9),o=n(39),i=n(27),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(40),o=n(17);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(1),i=n(37),u=n(7),c=function(t,e,n){var a,s,f,l=t&c.F,p=t&c.G,h=t&c.S,v=t&c.P,d=t&c.B,g=t&c.W,y=p?o:o[e]||(o[e]={}),b=y.prototype,m=p?r:h?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(s=!l&&m&&void 0!==m[a])&&a in y||(f=s?m[a]:n[a],y[a]=p&&"function"!=typeof m[a]?n[a]:d&&s?i(f,r):g&&m[a]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[a]=f,t&c.R&&b&&!b[a]&&u(b,a,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4),o=n(14);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(25)("wks"),o=n(15),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(44),o=n(18);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(53),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports={}},function(t,e){t.exports=!0},function(t,e,n){var r=n(9),o=n(77),i=n(18),u=n(24)("IE_PROTO"),c=function(){},a=function(){var t,e=n(38)("iframe"),r=i.length;for(e.style.display="none",n(70).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=a(),void 0===e?n:o(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(4).f,o=n(3),i=n(8)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(25)("keys"),o=n(15);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(1),i=n(20),u=n(29),c=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(8)},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(55),i=r(o),u=n(54),c=r(u),a=n(35),s=r(a);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,c.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(35),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(57),i=r(o),u=n(56),c=r(u),a="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(66);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(11),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){"use strict";var r=n(20),o=n(6),i=n(45),u=n(7),c=n(3),a=n(19),s=n(72),f=n(23),l=n(79),p=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,d,g,y,b){s(n,e,d);var m,S,_,x=function(t){if(!h&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",w="values"==g,P=!1,E=t.prototype,M=E[p]||E["@@iterator"]||g&&E[g],T=M||x(g),j=g?w?x("entries"):T:void 0,C="Array"==e?E.entries||M:M;if(C&&(_=l(C.call(new t)))!==Object.prototype&&_.next&&(f(_,O,!0),r||c(_,p)||u(_,p,v)),w&&M&&"values"!==M.name&&(P=!0,T=function(){return M.call(this)}),r&&!b||!h&&!P&&E[p]||u(E,p,T),a[e]=T,a[O]=v,g)if(m={values:w?T:x("values"),keys:y?T:x("keys"),entries:j},b)for(S in m)S in E||i(E,S,m[S]);else o(o.P+o.F*(h||P),e,m);return m}},function(t,e,n){var r=n(13),o=n(14),i=n(5),u=n(27),c=n(3),a=n(39),s=Object.getOwnPropertyDescriptor;e.f=n(2)?s:function(t,e){if(t=i(t),e=u(e,!0),a)try{return s(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(44),o=n(18).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(5),i=n(68)(!1),u=n(24)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,s=[];for(n in c)n!=u&&r(c,n)&&s.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(s,n)||s.push(n));return s}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return i}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return c}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s});var r=1,o=2,i=4,u=8,c=16,a={time:251},s={threshold:10,velocity:.3}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(52);e.default=r.a},function(t,e){},function(t,e,n){"use strict";var r=n(16),o=n.n(r),i=n(58),u=n.n(i),c=n(31),a=n.n(c),s=n(32),f=n.n(s),l=n(34),p=n.n(l),h=n(33),v=n.n(h),d=n(48),g=n.n(d),y=n(98),b=n.n(y),m=n(96),S=n(95),_=n(59),x=n.n(_),O=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&(n[r[o]]=t[r[o]]);return n},w=function(t){function e(t){a()(this,e);var n=p()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onCloseSwipe=function(t){if(n.openedLeft||n.openedRight){(function(t){for(;t.parentNode&&t.parentNode!==document.body;){if(t.className.indexOf(n.props.prefixCls+"-actions")>-1)return t;t=t.parentNode}})(t.target)||(t.preventDefault(),n.close())}},n.onPanStart=function(t){var e=t.direction,r=t.moveStatus,o=r.x,i=2===e,u=4===e;if(i||u){var c=n.props,a=c.left,s=c.right;n.needShowRight=i&&s.length>0,n.needShowLeft=u&&a.length>0,n.left&&(n.left.style.visibility=n.needShowRight?"hidden":"visible"),n.right&&(n.right.style.visibility=n.needShowLeft?"hidden":"visible"),(n.needShowLeft||n.needShowRight)&&(n.swiping=!0,n.setState({swiping:n.swiping}),n._setStyle(o))}},n.onPanMove=function(t){var e=t.moveStatus,r=e.x;n.swiping&&n._setStyle(r)},n.onPanEnd=function(t){if(n.swiping){var e=n.btnsLeftWidth,r=n.btnsRightWidth,o=t.moveStatus,i=o.x,u=n.needShowRight&&Math.abs(i)>r/2,c=n.needShowLeft&&Math.abs(i)>r/2;u?n.open(-r,!1,!0):c?n.open(e,!0,!1):n.close(),n.swiping=!1,n.setState({swiping:n.swiping}),n.needShowLeft=!1,n.needShowRight=!1}},n._setStyle=function(t){var e=t>0?n.btnsLeftWidth:-n.btnsRightWidth,r=n._getContentEasing(t,e);n.content.style.left=r+"px",n.cover&&(n.cover.style.display=Math.abs(t)>0?"block":"none",n.cover.style.left=r+"px")},n.open=function(t,e,r){n.openedLeft||n.openedRight||!n.props.onOpen||n.props.onOpen(),n.openedLeft=e,n.openedRight=r,n._setStyle(t)},n.close=function(){(n.openedLeft||n.openedRight)&&n.props.onClose&&n.props.onClose(),n._setStyle(0),n.openedLeft=!1,n.openedRight=!1},n.state={swiping:!1},n.openedLeft=!1,n.openedRight=!1,n}return v()(e,t),f()(e,[{key:"componentDidMount",value:function(){this.btnsLeftWidth=this.left?this.left.offsetWidth:0,this.btnsRightWidth=this.right?this.right.offsetWidth:0,document.body.addEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("touchstart",this.onCloseSwipe,!0)}},{key:"onBtnClick",value:function(t,e){var n=e.onPress;n&&n(t),this.props.autoClose&&this.close()}},{key:"_getContentEasing",value:function(t,e){var n=Math.abs(t)-Math.abs(e),r=n>0,o=e>0?1:-1;return r?(t=e+Math.pow(n,.85)*o,Math.abs(t)>Math.abs(e)?e:t):t}},{key:"renderButtons",value:function(t,e){var n=this,r=this.props.prefixCls;return t&&t.length?g.a.createElement("div",{className:r+"-actions "+r+"-actions-"+e,ref:function(t){return n[e]=t}},t.map(function(t,e){return g.a.createElement("div",{key:e,className:r+"-btn "+(t.hasOwnProperty("className")?t.className:""),style:t.style,role:"button",onClick:function(e){return n.onBtnClick(e,t)}},g.a.createElement("div",{className:r+"-btn-text"},t.text||"Click"))})):null}},{key:"render",value:function(){var t=this,e=this.props,r=e.prefixCls,i=e.left,c=e.right,a=e.disabled,s=e.children,f=O(e,["prefixCls","left","right","disabled","children"]),l=n.i(S.a)(f,["autoClose","onOpen","onClose"]),p={ref:function(e){return t.content=b.a.findDOMNode(e)}},h=x()(r,u()({},r+"-swiping",this.state.swiping));return!i.length&&!c.length||a?g.a.createElement("div",o()({},p,l),s):g.a.createElement("div",o()({className:h},l),g.a.createElement("div",{className:r+"-cover",ref:function(e){return t.cover=e}}),this.renderButtons(i,"left"),this.renderButtons(c,"right"),g.a.createElement(m.a,o()({onPanStart:this.onPanStart,onPanMove:this.onPanMove,onPanEnd:this.onPanEnd},p),g.a.createElement("div",{className:r+"-content"},s)))}}]),e}(g.a.Component);e.a=w,w.defaultProps={prefixCls:"rc-swipeout",autoClose:!1,disabled:!1,left:[],right:[],onOpen:function(){},onClose:function(){}}},function(t,e,n){"use strict";var r=n(51);n.d(e,"a",function(){return r.a})},function(t,e,n){t.exports={default:n(60),__esModule:!0}},function(t,e,n){t.exports={default:n(61),__esModule:!0}},function(t,e,n){t.exports={default:n(63),__esModule:!0}},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(30),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r,o;!function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r))t.push(n.apply(null,r));else if("object"===o)for(var u in r)i.call(r,u)&&r[u]&&t.push(u)}}return t.join(" ")}var i={}.hasOwnProperty;void 0!==t&&t.exports?t.exports=n:(r=[],void 0!==(o=function(){return n}.apply(e,r))&&(t.exports=o))}()},function(t,e,n){n(85),t.exports=n(1).Object.assign},function(t,e,n){n(86);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){n(87);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){n(88),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){n(91),n(89),n(92),n(93),t.exports=n(1).Symbol},function(t,e,n){n(90),n(94),t.exports=n(29).f("iterator")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(5),o=n(83),i=n(82);t.exports=function(t){return function(e,n,u){var c,a=r(e),s=o(a.length),f=i(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(12),o=n(22),i=n(13);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&e.push(u);return e}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(21),o=n(14),i=n(23),u={};n(7)(u,n(8)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(12),o=n(5);t.exports=function(t,e){for(var n,i=o(t),u=r(i),c=u.length,a=0;c>a;)if(i[n=u[a++]]===e)return n}},function(t,e,n){var r=n(15)("meta"),o=n(11),i=n(3),u=n(4).f,c=0,a=Object.isExtensible||function(){return!0},s=!n(10)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return s&&v.NEED&&a(t)&&!i(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,n){"use strict";var r=n(12),o=n(22),i=n(13),u=n(46),c=n(40),a=Object.assign;t.exports=!a||n(10)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,s=1,f=o.f,l=i.f;a>s;)for(var p,h=c(arguments[s++]),v=f?r(h).concat(f(h)):r(h),d=v.length,g=0;d>g;)l.call(h,p=v[g++])&&(n[p]=h[p]);return n}:a},function(t,e,n){var r=n(4),o=n(9),i=n(12);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,a=0;c>a;)r.f(t,n=u[a++],e[n]);return t}},function(t,e,n){var r=n(5),o=n(43).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,e,n){var r=n(3),o=n(46),i=n(24)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(11),o=n(9),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(37)(Function.call,n(42).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(26),o=n(17);t.exports=function(t){return function(e,n){var i,u,c=String(o(e)),a=r(n),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(26),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(26),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(67),o=n(73),i=n(19),u=n(5);t.exports=n(41)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(76)})},function(t,e,n){var r=n(6);r(r.S,"Object",{create:n(21)})},function(t,e,n){var r=n(6);r(r.S+r.F*!n(2),"Object",{defineProperty:n(4).f})},function(t,e,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(80).set})},function(t,e){},function(t,e,n){"use strict";var r=n(81)(!0);n(41)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(2),u=n(6),c=n(45),a=n(75).KEY,s=n(10),f=n(25),l=n(23),p=n(15),h=n(8),v=n(29),d=n(28),g=n(74),y=n(69),b=n(71),m=n(9),S=n(5),_=n(27),x=n(14),O=n(21),w=n(78),P=n(42),E=n(4),M=n(12),T=P.f,j=E.f,C=w.f,k=r.Symbol,L=r.JSON,G=L&&L.stringify,R=h("_hidden"),N=h("toPrimitive"),A={}.propertyIsEnumerable,F=f("symbol-registry"),I=f("symbols"),W=f("op-symbols"),D=Object.prototype,B="function"==typeof k,q=r.QObject,z=!q||!q.prototype||!q.prototype.findChild,V=i&&s(function(){return 7!=O(j({},"a",{get:function(){return j(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=T(D,e);r&&delete D[e],j(t,e,n),r&&t!==D&&j(D,e,r)}:j,U=function(t){var e=I[t]=O(k.prototype);return e._k=t,e},H=B&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},J=function(t,e,n){return t===D&&J(W,e,n),m(t),e=_(e,!0),m(n),o(I,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=O(n,{enumerable:x(0,!1)})):(o(t,R)||j(t,R,x(1,{})),t[R][e]=!0),V(t,e,n)):j(t,e,n)},K=function(t,e){m(t);for(var n,r=y(e=S(e)),o=0,i=r.length;i>o;)J(t,n=r[o++],e[n]);return t},Y=function(t,e){return void 0===e?O(t):K(O(t),e)},Q=function(t){var e=A.call(this,t=_(t,!0));return!(this===D&&o(I,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,R)&&this[R][t])||e)},X=function(t,e){if(t=S(t),e=_(e,!0),t!==D||!o(I,e)||o(W,e)){var n=T(t,e);return!n||!o(I,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=C(S(t)),r=[],i=0;n.length>i;)o(I,e=n[i++])||e==R||e==a||r.push(e);return r},$=function(t){for(var e,n=t===D,r=C(n?W:S(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(D,e)||i.push(I[e]);return i};B||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(W,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),V(this,t,x(1,n))};return i&&z&&V(D,t,{configurable:!0,set:e}),U(t)},c(k.prototype,"toString",function(){return this._k}),P.f=X,E.f=J,n(43).f=w.f=Z,n(13).f=Q,n(22).f=$,i&&!n(20)&&c(D,"propertyIsEnumerable",Q,!0),v.f=function(t){return U(h(t))}),u(u.G+u.W+u.F*!B,{Symbol:k});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var nt=M(h.store),rt=0;nt.length>rt;)d(nt[rt++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return o(F,t+="")?F[t]:F[t]=k(t)},keyFor:function(t){if(H(t))return g(F,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:Y,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),L&&u(u.S+u.F*(!B||s(function(){var t=k();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&b(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,G.apply(L,r)}}}),k.prototype[N]||n(7)(k.prototype,N,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){n(28)("asyncIterator")},function(t,e,n){n(28)("observable")},function(t,e,n){n(84);for(var r=n(0),o=n(7),i=n(19),u=n(8)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var s=c[a],f=r[s],l=f&&f.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,e,n){"use strict";function r(t,e){for(var n=i()({},t),r=0;r<e.length;r++){delete n[e[r]]}return n}var o=n(16),i=n.n(o);e.a=r},function(t,e,n){"use strict";var r=n(16),o=n.n(r),i=n(31),u=n.n(i),c=n(32),a=n.n(c),s=n(34),f=n.n(s),l=n(33),p=n.n(l),h=n(48),v=n.n(h),d=n(97),g=n(47),y=function(t){function e(t){u()(this,e);var r=f()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.state={},r.triggerEvent=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];var i=r.props[t];"function"==typeof i&&i.apply(void 0,[r.getGestureState()].concat(n))},r.triggerCombineEvent=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.triggerEvent.apply(r,[t].concat(o)),r.triggerSubEvent.apply(r,[t,e].concat(o))},r.triggerSubEvent=function(t,e){for(var o=arguments.length,i=Array(o>2?o-2:0),u=2;u<o;u++)i[u-2]=arguments[u];if(e){var c=n.i(d.a)(t,e);r.triggerEvent.apply(r,[c].concat(i))}},r.triggerPinchEvent=function(t,e){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var u=r.gesture.scale;"move"===e&&"number"==typeof u&&(u>1&&r.triggerEvent("onPinchOut"),u<1&&r.triggerEvent("onPinchIn")),r.triggerCombineEvent.apply(r,[t,e].concat(o))},r.initPressTimer=function(){r.cleanPressTimer(),r.pressTimer=setTimeout(function(){r.setGestureState({press:!0}),r.triggerEvent("onPress")},g.a.time)},r.cleanPressTimer=function(){r.pressTimer&&clearTimeout(r.pressTimer)},r.setGestureState=function(t){r.gesture||(r.gesture={}),r.gesture=o()({},r.gesture,t)},r.getGestureState=function(){return r.gesture?o()({},r.gesture):r.gesture},r.cleanGestureState=function(){delete r.gesture},r.getTouches=function(t){return Array.prototype.slice.call(t.touches).map(function(t){return{x:t.pageX,y:t.pageY}})},r._handleTouchStart=function(t){t.preventDefault(),r.initGestureStatus(t),r.initPressTimer(),r.checkIfMultiTouchStart()},r.initGestureStatus=function(t){r.cleanGestureState();var e=r.getTouches(t),o=n.i(d.b)(),i=n.i(d.c)(e);r.setGestureState({startTime:o,startTouches:e,startMutliFingerStatus:i,time:o,touches:e,mutliFingerStatus:i})},r.checkIfMultiTouchStart=function(){var t=r.props,e=t.enablePinch,o=t.enableRotate,i=r.gesture.touches;if(i.length>1&&(e||o)){if(e){var u=n.i(d.c)(i);r.setGestureState({startMutliFingerStatus:u,pinch:!0,scale:1}),r.triggerCombineEvent("onPinch","start")}o&&(r.setGestureState({rotate:!0,rotation:0}),r.triggerCombineEvent("onRotate","start"))}},r._handleTouchMove=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.checkIfSingleTouchMove(),r.checkIfMultiTouchMove())},r.checkIfMultiTouchMove=function(){var t=r.gesture,e=t.pinch,o=t.rotate,i=t.touches,u=t.startMutliFingerStatus,c=t.mutliFingerStatus;if(e||o){if(i.length<2)return r.setGestureState({pinch:!1,rotate:!1}),e&&r.triggerCombineEvent("onPinch","cancel"),void(o&&r.triggerCombineEvent("onRotate","cancel"));if(e){var a=c.z/u.z;r.setGestureState({scale:a}),r.triggerPinchEvent("onPinch","move")}if(o){var s=n.i(d.d)(u,c);r.setGestureState({rotation:s}),r.triggerCombineEvent("onRotate","move")}}},r.checkIfSingleTouchMove=function(){var t=r.gesture,e=t.pan,o=t.touches,i=t.moveStatus;if(o.length>1)return r.setGestureState({pan:!1}),void(e&&r.triggerCombineEvent("onPan","cancel"));if(i){var u=i.x,c=i.y,a=n.i(d.e)(u,c);r.setGestureState({direction:a});var s=n.i(d.f)(a);e?(r.triggerCombineEvent("onPan",s),r.triggerSubEvent("onPan","move")):(r.triggerCombineEvent("onPan","start"),r.setGestureState({pan:!0}))}},r.checkIfMultiTouchEnd=function(t){var e=r.gesture,n=e.pinch,o=e.rotate;n&&r.triggerCombineEvent("onPinch",t),o&&r.triggerCombineEvent("onRotate",t)},r.updateGestureStatus=function(t){var e=n.i(d.b)();if(r.setGestureState({time:e}),t.touches&&t.touches.length){var o=r.gesture,i=o.startTime,u=o.startTouches,c=o.pinch,a=o.rotate,s=r.getTouches(t),f=n.i(d.g)(u,s,e-i),l=void 0;(c||a)&&(l=n.i(d.c)(s)),r.setGestureState({touches:s,mutliFingerStatus:l,moveStatus:f})}},r._handleTouchEnd=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("end"),r.checkIfMultiTouchEnd("end"))},r._handleTouchCancel=function(t){r.gesture&&(r.cleanPressTimer(),r.updateGestureStatus(t),r.doSingleTouchEnd("cancel"),r.checkIfMultiTouchEnd("cancel"))},r.doSingleTouchEnd=function(t){var e=r.gesture,o=e.moveStatus,i=e.pinch,u=e.rotate,c=e.press,a=e.pan,s=e.direction;if(!i&&!u){if(o){var f=o.z,l=o.velocity,p=n.i(d.h)(f,l);if(r.setGestureState({swipe:p}),a&&r.triggerCombineEvent("onPan",t),p){var h=n.i(d.f)(s);return void r.triggerCombineEvent("onSwipe",h)}}if(c)return void r.triggerEvent("onPressUp");r.triggerEvent("onTap")}},r}return p()(e,t),a()(e,[{key:"componentWillUnmount",value:function(){this.cleanPressTimer()}},{key:"render",value:function(){var t=this.props.children,e=v.a.Children.only(t),n={onTouchStart:this._handleTouchStart,onTouchMove:this._handleTouchMove,onTouchCancel:this._handleTouchCancel,onTouchEnd:this._handleTouchEnd};return v.a.cloneElement(e,n)}}]),e}(h.Component);e.a=y,y.defaultProps={enableRotate:!1,enablePinch:!1}},function(t,e,n){"use strict";function r(t,e){return Math.sqrt(t*t+e*e)}function o(t,e){var n=Math.atan2(e,t);return 180/(Math.PI/n)}function i(){return Date.now()}function u(t){if(!(t.length<2)){var e=t[0],n=e.x,i=e.y,u=t[1],c=u.x,a=u.y,s=c-n,f=a-i;return{x:s,y:f,z:r(s,f),angle:o(s,f)}}}function c(t,e,n){var i=t[0],u=i.x,c=i.y,a=e[0],s=a.x,f=a.y,l=s-u,p=f-c,h=r(l,p);return{x:l,y:p,z:h,time:n,velocity:h/n,angle:o(l,p)}}function a(t,e){var n=t.angle;return e.angle-n}function s(t,e){return t+e[0].toUpperCase()+e.slice(1)}function f(t,e){return Math.abs(t)>=h.b.threshold&&Math.abs(e)>h.b.velocity}function l(t,e){return t===e?h.c:Math.abs(t)>=Math.abs(e)?t<0?h.d:h.e:e<0?h.f:h.g}function p(t){var e=void 0;switch(t){case h.c:break;case h.d:e="left";break;case h.e:e="right";break;case h.f:e="up";break;case h.g:e="down"}return e}e.b=i,e.c=u,e.g=c,e.d=a,e.a=s,e.h=f,e.e=l,e.f=p;var h=n(47)},function(t,n){t.exports=e},function(t,e,n){n(49),t.exports=n(50)}])});

@@ -30,3 +30,3 @@ /// <reference types="react" />

onPanStart: (e: any) => void;
onPan: (e: any) => void;
onPanMove: (e: any) => void;
onPanEnd: (e: any) => void;

@@ -33,0 +33,0 @@ onBtnClick(ev: any, btn: any): void;

@@ -17,3 +17,3 @@ import _extends from 'babel-runtime/helpers/extends';

import ReactDOM from 'react-dom';
import Hammer from 'rc-hammerjs';
import Gesture from 'rc-gesture';
import omit from 'omit.js';

@@ -48,3 +48,4 @@ import classnames from 'classnames';

var direction = e.direction,
deltaX = e.deltaX;
moveStatus = e.moveStatus;
var deltaX = moveStatus.x;
// http://hammerjs.github.io/api/#directions

@@ -77,4 +78,5 @@

};
_this.onPan = function (e) {
var deltaX = e.deltaX;
_this.onPanMove = function (e) {
var moveStatus = e.moveStatus;
var deltaX = moveStatus.x;

@@ -92,3 +94,4 @@ if (!_this.swiping) {

var btnsRightWidth = _this.btnsRightWidth;
var deltaX = e.deltaX;
var moveStatus = e.moveStatus;
var deltaX = moveStatus.x;

@@ -237,4 +240,4 @@ var needOpenRight = _this.needShowRight && Math.abs(deltaX) > btnsRightWidth / 2;

React.createElement(
Hammer,
_extends({ direction: 'DIRECTION_HORIZONTAL', onPanStart: this.onPanStart, onPan: this.onPan, onPanEnd: this.onPanEnd }, refProps),
Gesture,
_extends({ onPanStart: this.onPanStart, onPanMove: this.onPanMove, onPanEnd: this.onPanEnd }, refProps),
React.createElement(

@@ -241,0 +244,0 @@ 'div',

@@ -30,3 +30,3 @@ /// <reference types="react" />

onPanStart: (e: any) => void;
onPan: (e: any) => void;
onPanMove: (e: any) => void;
onPanEnd: (e: any) => void;

@@ -33,0 +33,0 @@ onBtnClick(ev: any, btn: any): void;

@@ -39,5 +39,5 @@ 'use strict';

var _rcHammerjs = require('rc-hammerjs');
var _rcGesture = require('rc-gesture');
var _rcHammerjs2 = _interopRequireDefault(_rcHammerjs);
var _rcGesture2 = _interopRequireDefault(_rcGesture);

@@ -89,3 +89,4 @@ var _omit = require('omit.js');

var direction = e.direction,
deltaX = e.deltaX;
moveStatus = e.moveStatus;
var deltaX = moveStatus.x;
// http://hammerjs.github.io/api/#directions

@@ -118,4 +119,5 @@

};
_this.onPan = function (e) {
var deltaX = e.deltaX;
_this.onPanMove = function (e) {
var moveStatus = e.moveStatus;
var deltaX = moveStatus.x;

@@ -133,3 +135,4 @@ if (!_this.swiping) {

var btnsRightWidth = _this.btnsRightWidth;
var deltaX = e.deltaX;
var moveStatus = e.moveStatus;
var deltaX = moveStatus.x;

@@ -278,4 +281,4 @@ var needOpenRight = _this.needShowRight && Math.abs(deltaX) > btnsRightWidth / 2;

_react2['default'].createElement(
_rcHammerjs2['default'],
(0, _extends3['default'])({ direction: 'DIRECTION_HORIZONTAL', onPanStart: this.onPanStart, onPan: this.onPan, onPanEnd: this.onPanEnd }, refProps),
_rcGesture2['default'],
(0, _extends3['default'])({ onPanStart: this.onPanStart, onPanMove: this.onPanMove, onPanEnd: this.onPanEnd }, refProps),
_react2['default'].createElement(

@@ -282,0 +285,0 @@ 'div',

{
"name": "rc-swipeout",
"version": "1.4.6-alpha.7",
"version": "2.0.0-alpha.0",
"description": "swipe out ui component for react(web and react-native)",

@@ -58,3 +58,3 @@ "keywords": [

"omit.js": "^1.0.0",
"rc-hammerjs": "^0.6.6",
"rc-gesture": "0.0.5",
"react-native-swipeout": "~2.1.1"

@@ -68,3 +68,2 @@ },

"expect.js": "0.3.x",
"hammer-simulator": "0.0.1",
"pre-commit": "1.x",

@@ -71,0 +70,0 @@ "rc-test": "~6.0.3",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc