/*! For license information please see 284.d4b1412c50a512b19eb2.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[284],{"743":function(i,e,r){"use strict";r.r(e),r.d(e,"taro_image_core",(function(){return s}));var n=r(120),a=r(783);r.e(295).then(r.t.bind(null,3413,7));var s=function(){function t(i){Object(n.g)(this,i),this.onLoad=Object(n.c)(this,"load",7),this.onError=Object(n.c)(this,"error",7),this.mode="scaleToFill",this.lazyLoad=!1,this.aspectFillMode="width"}return t.prototype.componentDidLoad=function(){var i=this;if(this.lazyLoad){var e=new IntersectionObserver((function(r){r[r.length-1].isIntersecting&&(e.unobserve(i.imgRef),i.imgRef.src=i.src)}),{"rootMargin":"300px 0px"});e.observe(this.imgRef)}},t.prototype.imageOnLoad=function(){var i=this.imgRef,e=i.width,r=i.height,n=i.naturalWidth,a=i.naturalHeight;this.onLoad.emit({"width":e,"height":r}),this.aspectFillMode=n>a?"width":"height"},t.prototype.imageOnError=function(){this.onError.emit()},t.prototype.render=function(){var i,e=this,r=this,s=r.src,h=r.mode,m=r.lazyLoad,c=r.aspectFillMode,l=r.imageOnLoad,d=r.imageOnError,g=Object(a.a)({"taro-img__widthfix":"widthFix"===h}),p=Object(a.a)("taro-img__mode-"+h.toLowerCase().replace(/\s/g,""),((i={})["taro-img__mode-aspectfill--"+c]="aspectFill"===h,i));return Object(n.e)(n.a,{"class":g},m?Object(n.e)("img",{"ref":function(i){return e.imgRef=i},"class":p,"onLoad":l.bind(this),"onError":d.bind(this)}):Object(n.e)("img",{"ref":function(i){return e.imgRef=i},"class":p,"src":s,"onLoad":l.bind(this),"onError":d.bind(this)}))},t}();s.style='img[src=""]{opacity:0}taro-image-core{display:inline-block;overflow:hidden;position:relative;font-size:0;width:320px;height:240px}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-top{width:100%}.taro-img__mode-bottom{width:100%;position:absolute;bottom:0}.taro-img__mode-left{height:100%}.taro-img__mode-right{position:absolute;height:100%;right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;right:0;bottom:0}'},"783":function(i,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function createCommonjsModule(i,e,r){return i(r={"path":e,"exports":{},"require":function(i,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}((function(i){!function(){var e={}.hasOwnProperty;function o(){for(var i=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var a=typeof n;if("string"===a||"number"===a)i.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&i.push(s)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var h in n)e.call(n,h)&&n[h]&&i.push(h);else i.push(n.toString())}}return i.join(" ")}i.exports?(o.default=o,i.exports=o):window.classNames=o}()}))}}]);