/*! For license information please see index.js.LICENSE.txt */ (wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/home/index"],{"./node_modules/@antmjs/vantui/es/card/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),i=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),a=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),s=n("webpack/container/remote/react"),c=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),u=n("./node_modules/@antmjs/vantui/es/common/jumpLink.js"),l=n("./node_modules/@antmjs/vantui/es/tag/index.js"),d=n("webpack/container/remote/react/jsx-runtime"),m=["tag","num","desc","thumb","title","price","centered","lazyLoad","thumbLink","originPrice","thumbMode","currency","renderFooter","renderBottom","renderNum","renderOriginPrice","renderPriceTop","renderThumb","renderPrice","renderDesc","renderTag","renderTitle","renderTags","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=e.columnNum&&!e.square?(0,o.addUnit)(e.gutter):null})}function contentStyle(e){return e.square?(0,r.style)({right:(0,o.addUnit)(e.gutter),bottom:(0,o.addUnit)(e.gutter),height:"auto"}):""}},"./node_modules/@antmjs/vantui/es/grid/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),o=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=n("webpack/container/remote/react"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/grid/wxs.js"),c=n("webpack/container/remote/react/jsx-runtime"),u=["gutter","clickable","columnNum","center","border","direction","iconSize","square","reverse","className","style"];t.default=function Grid(e){var t=e.gutter,n=void 0===t?null:t,l=e.clickable,d=e.columnNum,m=void 0===d?4:d,f=e.center,p=void 0===f||f,h=e.border,v=void 0===h||h,j=e.direction,b=e.iconSize,y=void 0===b?"48":b,g=e.square,w=e.reverse,x=void 0!==w&&w,_=e.className,S=void 0===_?"":_,O=e.style,P=void 0===O?{}:O,k=(0,r.default)(e,u),N=(0,i.useRef)([]),C=(0,i.useCallback)((function(){N.current.forEach((function(e){e.updateStyle()}))}),[]);(0,i.useEffect)((function(){C()}),[C]);var T=(0,i.useCallback)((function(e,t){N.current[e]=t}),[]),E=(0,i.useMemo)((function(){var e=[];return k.children&&Array.isArray(k.children)&&k.children.forEach((function(t,r){e.push((0,i.cloneElement)(t,{setChildrenInstance:T,key:r,index:r,parentInstance:{columnNum:m,border:v,square:g,gutter:n,clickable:l,center:p,direction:j,reverse:x,iconSize:y}}))})),e}),[k.children,m]);return(0,c.jsx)(o.View,{className:"van-grid "+(v&&!n?"van-hairline--top":"")+" "+S,style:a.style([s.rootStyle({gutter:n}),P]),children:E})}},"./node_modules/@antmjs/vantui/es/grid/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js"),o=n("./node_modules/@antmjs/vantui/es/wxs/add-unit.js");function rootStyle(e){return(0,r.style)({"padding-left":(0,o.addUnit)(e.gutter)})}},"./node_modules/@antmjs/vantui/es/notice-bar/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),a=n("webpack/container/remote/@tarojs/taro"),s=n("webpack/container/remote/react"),c=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),u=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),l=n("./node_modules/@antmjs/vantui/es/common/utils.js"),d=n("./node_modules/@antmjs/vantui/es/icon/index.js"),m=n("./node_modules/@antmjs/vantui/es/notice-bar/wxs.js"),f=n("webpack/container/remote/react/jsx-runtime"),p=["text","mode","url","openType","delay","speed","scrollable","leftIcon","color","backgroundColor","background","wrapable","renderLeftIcon","renderRightIcon","onClick","onClose","style","className","children"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(t){return _objectSpread(_objectSpread({},t),{},{animationData:b.current.resetAnimation.translateX(e?0:b.current.wrapWidth).step().export()})})),setTimeout((function(){(0,l.requestAnimationFrame)((function(){v((function(e){return _objectSpread(_objectSpread({},e),{},{animationData:b.current.animation.translateX(-b.current.contentWidth).step().export()})}))}))}),10),b.current.timer=setTimeout((function(){H()}),b.current.duration)}),[]),J=(0,s.useCallback)((function(){(0,l.requestAnimationFrame)((function(){Promise.all([(0,l.getRect)(null,".van-notice-bar__content_".concat(r.unitag)),(0,l.getRect)(null,".van-notice-bar__wrap_".concat(r.unitag))]).then((function(e){var t=e[0],n=e[1];null!=t&&null!=n&&t.width&&n.width&&!1!==D&&(0,a.nextTick)((function(){(D||n.width<=t.width)&&(b.current.wrapWidth=n.width,b.current.contentWidth=t.width,b.current.duration=(n.width+t.width)/T*1e3,b.current.animation=(0,a.createAnimation)({duration:b.current.duration,timingFunction:"linear",delay:N}),H(!0))}))}))}))}),[r.unitag,D,T,N,H]),Q=(0,s.useCallback)((function(e){"closeable"===x&&(b.current.timer&&clearTimeout(b.current.timer),b.current.timer=null,v((function(e){return _objectSpread(_objectSpread({},e),{},{show:!1})})),null==K||K(e))}),[x,K]);return r.show&&(0,f.jsxs)(c.View,_objectSpread(_objectSpread({className:u.bem("notice-bar",{withicon:x,wrapable:M})+" ".concat(X||""),style:u.style([m.rootStyle({color:I,backgroundColor:z,background:F}),W])},B),{},{onClick:Y,children:[A?(0,f.jsx)(d.default,{name:A,className:"van-notice-bar__left-icon"}):R,(0,f.jsx)(c.View,{className:"van-notice-bar__wrap van-notice-bar__wrap_".concat(r.unitag),children:(0,f.jsxs)(c.View,{className:"van-notice-bar__content van-notice-bar__content_".concat(r.unitag," ")+(!1!==D||M?"":"van-ellipsis"),animation:r.animationData,children:[g,!g&&U]})}),"closeable"===x?(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"cross",onClick:Q}):"link"===x?(0,f.jsx)(c.Navigator,{url:S,openType:P,children:(0,f.jsx)(d.default,{className:"van-notice-bar__right-icon",name:"arrow"})}):q]}))}},"./node_modules/@antmjs/vantui/es/notice-bar/wxs.js":function(e,t,n){"use strict";n.d(t,{rootStyle:function(){return rootStyle}});var r=n("./node_modules/@antmjs/vantui/es/wxs/style.js");function rootStyle(e){return(0,r.style)({color:e.color,"background-color":e.backgroundColor,background:e.background})}},"./node_modules/@antmjs/vantui/es/swiper-item/index.js":function(e,t,n){"use strict";var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("webpack/container/remote/react"),i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/swiper/context.js"),s=n("webpack/container/remote/react/jsx-runtime");function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=me&&xe({pace:-me})},ye=function prev(){be(),ke(),Oe((function(){Oe((function(){C.current.moving=!1,xe({pace:-1,isEmit:!0})}))}))},ge=function next(){be(),ke(),Oe((function(){Oe((function(){C.current.moving=!1,xe({pace:1,isEmit:!0})}))}))},we=function to(e){be(),ke(),Oe((function(){Oe((function(){var t;C.current.moving=!1,t=c.loop&&me===e?0===F?0:e:e%me,xe({pace:t-F,isEmit:!0})}))}))},xe=function move(e){var t=e.pace,n=void 0===t?0:t,r=e.offset,o=void 0===r?0:r,i=e.isEmit,a=void 0!==i&&i;if(!(me<=1)){var s=_e(n),u=Se(s,o);if(c.loop){if(Array.isArray(d)&&d[0]&&u!==he){var l=u0;te[me-1]=m?-fe:0}ne(te)}a&&F!==s&&c.onChange&&c.onChange((s+me)%me),F=s,M(s),$(u),Ce(u)}},_e=function getActive(e){if(e){var t=F+e;return c.loop?Pe(t,-1,me):Pe(t,0,me-1)}return F},Se=function getOffset(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e*Number(se);c.loop||(n=Math.min(n,-he));var r=t-n;return c.loop||(r=Pe(r,he,0)),r},Oe=function requestFrame(e){b.requestAnimationFrame.call(b,e)},Pe=function range(e,t,n){return Math.min(Math.max(e,t),n)},ke=function touchReset(){ue.startX=0,ue.startY=0,ue.deltaX=0,ue.deltaY=0,ue.offsetX=0,ue.offsetY=0,ue.delta=0,ue.stateDirection="",ue.touchTime=0},Ne=m()((n={},(0,a.default)(n,"van-swiper__inner",!0),(0,a.default)(n,"van-swiper__vertical",D),n)),Ce=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,t=N.current,n=0;if(S){var r=D?U:Y,o=D?(null==L?void 0:L.height)-r:(null==L?void 0:L.width)-r;n=e+(F!==me-1||c.loop?o/2:-o/2)}else n=e;t.style.transitionDuration="".concat(C.current.moving?0:c.duration,"ms"),t.style[D?"height":"width"]="".concat(Number(se)*me,"px"),t.style[D?"width":"height"]="".concat(D?Y:U,"px"),t.style.transform="translate3D".concat(D?"(0,".concat(n,"px,0)"):"(".concat(n,"px,0,0)"))};(0,l.useEffect)((function(){C.current.activePagination=(F+me)%me}),[F]);var Te=function queryRect(e){return new Promise((function(t){var n=(0,f.createSelectorQuery)();n.select("#".concat(e.id))&&n.select("#".concat(e.id)).boundingClientRect(),n.exec((function(e){t(e[0])}))}))},Ee=function(){var e=(0,r.default)(u().mark((function _callee(){var e,t,n,r,o,i,a=arguments;return u().wrap((function _callee$(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:+c.initPage,s.next=3,Te(k.current);case 3:t=s.sent,n=Math.max(Math.min(me-1,e),0),r=c.width?+c.width:null==t?void 0:t.width,o=c.height?+c.height:null==t?void 0:t.height,se=D?o:r,fe=me*Number(se),i=Se(n),C.current.moving=!0,ie&&(C.current.moving=!1),I(t),M(n),K(r),B(o),$(i),ae(!0);case 18:case"end":return s.stop()}}),_callee)})));return function init(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){ie&&Ce()}),[D,Y,U,Q,ie]),(0,l.useEffect)((function(){return function(){ae(!1)}}),[]),(0,l.useEffect)((function(){ve(),je()}),[d]),(0,l.useEffect)((function(){Ee()}),[c.initPage]),(0,l.useEffect)((function(){return function(){ve()}}),[]),(0,f.useReady)((function(){Ee(),p().nextTick((function(){setTimeout((function(){ve(),je()}),16)}))}));var De=function itemStyle(e){var t={},n=c.direction||w,r=se;r&&(t["horizontal"===n?"width":"height"]="".concat(r,"px"));var o=te[e];return o&&(t.transform="translate3D".concat("horizontal"===n?"(".concat(o,"px,0,0)"):"(0,".concat(o,"px,0)"))),t};return(0,l.useImperativeHandle)(t,(function(){return{to:we,next:ge,prev:ye}})),(0,j.jsx)(v.DataContext.Provider,{value:pe,children:(0,j.jsxs)(h.View,_objectSpread(_objectSpread({className:"van-swiper ".concat(x),ref:k},P),{},{id:"container-"+E,onTouchStart:function onTouchStart(e){c.isPreventDefault&&e.preventDefault(),c.isStopPropagation&&e.stopPropagation(),c.touchable&&(!function touchStart(e){var t,n;ke(),ue.startX=(null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0,ue.startY=(null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0}(e),ue.touchTime=Date.now(),ve(),be())},onTouchMove:function onTouchMove(e){c.touchable&&C.current.moving&&(!function touchMove(e){var t,n;ue.deltaX=((null==e||null===(t=e.touches[0])||void 0===t?void 0:t.clientX)||0)-ue.startX,ue.deltaY=((null==e||null===(n=e.touches[0])||void 0===n?void 0:n.clientY)||0)-ue.startY,ue.offsetX=Math.abs(ue.deltaX),ue.offsetY=Math.abs(ue.deltaY),ue.delta=D?ue.deltaY:ue.deltaX,ue.stateDirection||(ue.stateDirection=function getDirection(e,t){return e>t&&e>5?"horizontal":t>e&&t>5?"vertical":""}(ue.offsetX,ue.offsetY))}(e),ue.stateDirection===c.direction&&xe({offset:ue.delta}))},onTouchEnd:function onTouchEnd(){if(c.touchable&&C.current.moving){var e=ue.delta/(Date.now()-ue.touchTime),t=Math.abs(e)>.3||Math.abs(ue.delta)>+(se/2).toFixed(2),n=0;if(C.current.moving=!1,t&&ue.stateDirection===c.direction){var r=D?ue.offsetY:ue.offsetX;n=c.loop?r>0?ue.delta>0?-1:1:0:-Math[ue.delta>0?"ceil":"floor"](ue.delta/se),xe({pace:n,isEmit:!0})}else ue.delta?xe({pace:0}):Ce();je()}},catchMove:D,style:_objectSpread(_objectSpread({},O),{},{height:U}),children:[(0,j.jsxs)(h.View,{className:Ne,ref:N,children:[l.Children.map(de,(function(e,t){return(0,j.jsx)(h.View,{className:"van-swiper-item-wrapper",style:De(t),children:e},t)})),(0,j.jsx)(h.View,{className:"van-swiper-item-wrapper",style:De(0),children:de&&de.length?de[0]:""})]}),c.paginationVisible&&!("pageContent"in c)?(0,j.jsx)(h.View,{className:m()((s={},(0,a.default)(s,"van-swiper__pagination",!0),(0,a.default)(s,"van-swiper__pagination-vertical",D),s)),children:l.Children.map(de,(function(e,t){var n;return(0,j.jsx)(h.Text,{style:(F+me)%me===t?{backgroundColor:c.paginationColor}:void 0,className:m()((n={},(0,a.default)(n,"van-swiper__pagination-item",!0),(0,a.default)(n,"active",(F+me)%me===t),n))},t)}))}):(0,j.jsx)(h.View,{children:_})]}))})},x=(0,l.forwardRef)(w);t.default=x},"./node_modules/@antmjs/vantui/es/tag/index.js":function(e,t,n){"use strict";n.d(t,{Tag:function(){return Tag}});var r=n("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),o=n("./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js"),i=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),a=n("./node_modules/@antmjs/vantui/es/wxs/utils.js"),s=n("./node_modules/@antmjs/vantui/es/icon/index.js"),c=n("./node_modules/@antmjs/vantui/es/tag/wxs.js"),u=n("webpack/container/remote/react/jsx-runtime"),l=["type","size","mark","plain","round","color","textColor","closeable","children","onClose","style","className"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t=0;--n){var r=this.tryEntries[n],i=r.completion;if("root"===r.tryLoc)return handle("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),s=o.call(r,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),resetTryEntry(n),l}},catch:function _catch(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;resetTryEntry(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(e,t,n){return this.delegate={iterator:values(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,n){var r=n("./node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js":function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function _next(e){asyncGeneratorStep(i,r,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,r,o,_next,_throw,"throw",e)}_next(void 0)}))}}n.d(t,{default:function(){return _asyncToGenerator}})}},function(e){e.O(0,["taro","vendors","common"],(function(){return t="./src/pages/home/index.tsx",e(e.s=t);var t}));e.O()}]);