(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"117":function(e,t,r){"use strict";r.d(t,"s",(function(){return S})),r.d(t,"q",(function(){return k})),r.d(t,"a",(function(){return A})),r.d(t,"b",(function(){return E})),r.d(t,"d",(function(){return M})),r.d(t,"e",(function(){return D})),r.d(t,"i",(function(){return R})),r.d(t,"j",(function(){return I})),r.d(t,"k",(function(){return C})),r.d(t,"m",(function(){return T})),r.d(t,"p",(function(){return H})),r.d(t,"r",(function(){return L})),r.d(t,"f",(function(){return W})),r.d(t,"g",(function(){return N})),r.d(t,"l",(function(){return U})),r.d(t,"n",(function(){return K})),r.d(t,"o",(function(){return q})),r.d(t,"c",(function(){return B})),r.d(t,"h",(function(){return J}));var o=r(34),n=r.n(o),c=r(128),u=r.n(c),a=r(21),i=r.n(a),s=r(35),p=r.n(s),f=r(36),l=r.n(f),d=r(132),y=r.n(d),b=r(134),v=r.n(b),x=r(136),m=r.n(x),h=r(137),_=r.n(h),O=r(2),j=r.n(O);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _createSuper(e){var t=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function _createSuperInternal(){var r,o=m()(e);if(t){var n=m()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return v()(this,r)}}j.a.createElement;function updateStyle(e,t,r){/^--/.test(t)?e.style.setProperty(t,r):e.style[t]=r}function updateProp(e,t,r,o,n){var c=e.ref.current,u=n[r],a=o?o[r]:void 0;if("children"!==r)if("classname"!==r.toLowerCase())if("style"!==r){if(/^data-.+/.test(r)&&c.setAttribute(r,u),"taro-scroll-view-core"===t){if("scrollTop"===r)return void(c.mpScrollTop=u);if("scrollLeft"===r)return void(c.mpScrollLeft=u);if("scrollIntoView"===r)return void(c.mpScrollIntoView=u)}if("function"==typeof u&&r.match(/^on[A-Z]/)){var i=r.substr(2).toLowerCase(),s=u;return"taro-scroll-view-core"===t&&"scroll"===i&&(s=function fn(e){e instanceof CustomEvent&&u.apply(null,Array.from(arguments))}),e.eventHandlers.push([i,s]),c.addEventListener(i,s)}if("string"!=typeof u&&"number"!=typeof u)return"boolean"==typeof u?u?(c[r]=!0,c.setAttribute(r,u)):(c[r]=!1,c.removeAttribute(r)):void(c[r]=u);c[r]=u}else{if("string"==typeof u)return void c.setAttribute(r,u);if(!u)return void c.removeAttribute(r);if(o)if("string"==typeof a)c.style.cssText="";else for(var p in a)updateStyle(c,p,"");for(var f in u)updateStyle(c,f,u[f])}else c.className=o?function getClassName(e,t,r){var o=Array.from(e.classList),n=(t.className||t.class||"").split(" "),c=(r.className||r.class||"").split(" "),u=[];return o.forEach((function(e){c.indexOf(e)>-1?(u.push(e),c=c.filter((function(t){return t!==e}))):-1===n.indexOf(e)&&u.push(e)})),(u=[].concat(_()(u),_()(c))).join(" ")}(c,o,n):u}var w=function reactifyWebComponent(e){var t=function(t){y()(Index,t);var r=_createSuper(Index);function Index(e){var t;return p()(this,Index),(t=r.call(this,e)).eventHandlers=[],t.ref=Object(O.createRef)(),t}return l()(Index,[{"key":"update","value":function update(t){var r=this;this.clearEventHandlers(),this.ref.current&&(Object.keys(t||{}).forEach((function(o){"children"===o||"key"===o||o in r.props||updateProp(r,e,o,t,r.props)})),Object.keys(this.props).forEach((function(o){updateProp(r,e,o,t,r.props)})))}},{"key":"componentDidUpdate","value":function componentDidUpdate(e){this.update(e)}},{"key":"componentDidMount","value":function componentDidMount(){var e=this.props.forwardRef;"function"==typeof e?e(this.ref.current):e&&"object"===i()(e)&&e.hasOwnProperty("current")?e.current=this.ref.current:"string"==typeof e&&console.warn("内置组件不支持字符串 ref"),this.update()}},{"key":"componentWillUnmount","value":function componentWillUnmount(){this.clearEventHandlers()}},{"key":"clearEventHandlers","value":function clearEventHandlers(){var e=this;this.eventHandlers.forEach((function(t){var r=u()(t,2),o=r[0],n=r[1];e.ref.current&&e.ref.current.removeEventListener(o,n)})),this.eventHandlers=[]}},{"key":"render","value":function render(){var t=this.props,r=t.children,o=t.dangerouslySetInnerHTML,n={"ref":this.ref};return o&&(n.dangerouslySetInnerHTML=o),Object(O.createElement)(e,n,r)}}]),Index}(j.a.Component);return j.a.forwardRef((function(e,r){return j.a.createElement(t,_objectSpread(_objectSpread({},e),{},{"forwardRef":r}))}))};function input_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function input_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?input_ownKeys(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):input_ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=w("taro-input-core"),P=(j.a.createElement,j.a.forwardRef((function(e,t){var r=input_objectSpread({},e);return r.hasOwnProperty("focus")&&(r.autoFocus=Boolean(r.focus),delete r.focus),j.a.createElement(g,input_objectSpread(input_objectSpread({},r),{},{"ref":t}))}))),S=w("taro-view-core"),k=(w("taro-icon-core"),w("taro-progress-core"),w("taro-rich-text-core"),w("taro-text-core")),A=w("taro-button-core"),E=(w("taro-checkbox-core"),w("taro-checkbox-group-core"),w("taro-editor-core"),w("taro-form-core")),M=P,D=w("taro-label-core"),R=w("taro-picker-core"),I=(w("taro-picker-view-core"),w("taro-picker-view-column-core"),w("taro-radio-core")),C=w("taro-radio-group-core"),T=w("taro-slider-core"),H=w("taro-switch-core"),L=(w("taro-cover-image-core"),w("taro-textarea-core")),W=(w("taro-cover-view-core"),w("taro-movable-area-core")),N=w("taro-movable-view-core"),U=w("taro-scroll-view-core"),K=w("taro-swiper-core"),q=w("taro-swiper-item-core"),B=(w("taro-functional-page-navigator-core"),w("taro-navigator-core"),w("taro-audio-core"),w("taro-camera-core"),w("taro-image-core")),J=(w("taro-live-player-core"),w("taro-video-core"),w("taro-map-core"),w("taro-canvas-core"),w("taro-ad-core"),w("taro-official-account-core"),w("taro-open-data-core"));w("taro-web-view-core"),w("taro-navigation-bar-core"),w("taro-block-core"),w("taro-custom-wrapper-core")},"125":function(e,t,r){var o=r(126);e.exports=function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},"126":function(e,t){e.exports=function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.default=e.exports,e.exports.__esModule=!0},"128":function(e,t,r){var o=r(129),n=r(130),c=r(125),u=r(131);e.exports=function _slicedToArray(e,t){return o(e)||n(e,t)||c(e,t)||u()},e.exports.default=e.exports,e.exports.__esModule=!0},"129":function(e,t){e.exports=function _arrayWithHoles(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},"130":function(e,t){e.exports=function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,c=[],u=!0,a=!1;try{for(r=r.call(e);!(u=(o=r.next()).done)&&(c.push(o.value),!t||c.length!==t);u=!0);}catch(e){a=!0,n=e}finally{try{u||null==r.return||r.return()}finally{if(a)throw n}}return c}},e.exports.default=e.exports,e.exports.__esModule=!0},"131":function(e,t){e.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},"132":function(e,t,r){var o=r(133);e.exports=function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{"constructor":{"value":e,"writable":!0,"configurable":!0}}),t&&o(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},"133":function(e,t){function _setPrototypeOf(t,r){return e.exports=_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,_setPrototypeOf(t,r)}e.exports=_setPrototypeOf,e.exports.default=e.exports,e.exports.__esModule=!0},"134":function(e,t,r){var o=r(21).default,n=r(135);e.exports=function _possibleConstructorReturn(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0},"135":function(e,t){e.exports=function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},"136":function(e,t){function _getPrototypeOf(t){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,_getPrototypeOf(t)}e.exports=_getPrototypeOf,e.exports.default=e.exports,e.exports.__esModule=!0},"137":function(e,t,r){var o=r(138),n=r(139),c=r(125),u=r(140);e.exports=function _toConsumableArray(e){return o(e)||n(e)||c(e)||u()},e.exports.default=e.exports,e.exports.__esModule=!0},"138":function(e,t,r){var o=r(126);e.exports=function _arrayWithoutHoles(e){if(Array.isArray(e))return o(e)},e.exports.default=e.exports,e.exports.__esModule=!0},"139":function(e,t){e.exports=function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},"140":function(e,t){e.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},"295":function(e,t,r){},"304":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return y}));var o=r(6),n=r(8),c=r(13),u=r(14),a=r(2),i=r(43),s=r(117),p=r(39),f=function add(e){return{"type":p.a,"count":e}};r(295);var l,d=r(42),y=Object(i.b)((function(e){return{"counter":e.counter}}),(function(e){return{"add":function add(t){e(f(t))},"dec":function dec(){e(function minus(){return{"type":p.b}}())},"asyncAdd":function asyncAdd(t){e(function counter_asyncAdd(){return function(e){setTimeout((function(){e(f())}),2e3)}}())}}}))(l=function(e){Object(c.a)(ReduxDemo,e);var t=Object(u.a)(ReduxDemo);function ReduxDemo(){return Object(o.a)(this,ReduxDemo),t.apply(this,arguments)}return Object(n.a)(ReduxDemo,[{"key":"componentWillReceiveProps","value":function componentWillReceiveProps(e){console.log(this.props,e)}},{"key":"componentWillUnmount","value":function componentWillUnmount(){}},{"key":"componentDidShow","value":function componentDidShow(){}},{"key":"componentDidHide","value":function componentDidHide(){}},{"key":"render","value":function render(){var e=this;return Object(d.jsxs)(s.s,{"children":[Object(d.jsx)(s.a,{"className":"add_btn","onClick":function onClick(){return e.props.add(Math.random())},"children":"+"}),Object(d.jsx)(s.a,{"className":"dec_btn","onClick":this.props.dec,"children":"-"}),Object(d.jsx)(s.a,{"className":"dec_btn","onClick":function onClick(){return e.props.asyncAdd(Math.random())},"children":"async"}),Object(d.jsx)(s.s,{"children":Object(d.jsx)(s.q,{"children":this.props.counter.num})}),Object(d.jsx)(s.s,{"children":Object(d.jsx)(s.q,{"children":"Hello, World"})})]})}}]),ReduxDemo}(a.Component))||l}}]);