(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c2735b5a"],{"0a26":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("ad06"),o=i("78eb"),a=i("9884"),s=i("ea8e"),r=function(t){var e=t.parent,i=t.bem,r=t.role;return{mixins:[Object(a["a"])(e),o["a"]],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===r&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,i=t.target,n=this.$refs.icon,o=n===i||(null==n?void 0:n.contains(i));this.isDisabled||!o&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,o=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(s["a"])(o)}},[this.slots("icon",{checked:e})||t(n["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:r,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}}},2241:function(t,e,i){"use strict";var n,o=i("c31d"),a=i("2b0e"),s=i("2638"),r=i.n(s),l=i("d282"),c=i("ea8e"),h=i("b1d2"),u=i("6605"),d=i("b650"),f=i("bb33"),v=i("82a8"),m=Object(l["a"])("dialog"),p=m[0],g=m[1],b=m[2],y=p({mixins:[Object(u["a"])()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(i){!1!==i&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(f["a"],{class:g("footer")},[this.showCancelButton&&e(v["a"],{attrs:{size:"large",type:"warning",text:this.cancelButtonText||b("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:g("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(v["a"],{attrs:{size:"large",type:"danger",text:this.confirmButtonText||b("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:g("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,i=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return i("div",{class:[h["c"],g("footer")]},[this.showCancelButton&&i(d["a"],{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||b("cancel")},class:g("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(d["a"],{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||b("confirm")},class:[g("confirm"),(t={},t[h["a"]]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var i=this.$createElement;if(e)return i("div",{class:g("content")},[e]);var n=this.message,o=this.messageAlign;if(n){var a,s,l={class:g("message",(a={"has-title":t},a[o]=o,a)),domProps:(s={},s[this.allowHtml?"innerHTML":"textContent"]=n,s)};return i("div",{class:g("content",{isolated:!t})},[i("div",r()([{},l]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,i=this.slots(),n=this.slots("title")||this.title,o=n&&t("div",{class:g("header",{isolated:!e&&!i})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[g([this.theme]),this.className],style:{width:Object(c["a"])(this.width)}},[o,this.genContent(n,i),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}}),S=i("a142");function w(t){return document.body.contains(t)}function O(){n&&n.$destroy(),n=new(a["default"].extend(y))({el:document.createElement("div"),propsData:{lazyRender:!1}}),n.$on("input",(function(t){n.value=t}))}function x(t){return S["g"]?Promise.resolve():new Promise((function(e,i){n&&w(n.$el)||O(),Object(o["a"])(n,x.currentOptions,t,{resolve:e,reject:i})}))}x.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){n["confirm"===t?"resolve":"reject"](t)}},x.alert=x,x.confirm=function(t){return x(Object(o["a"])({showCancelButton:!0},t))},x.close=function(){n&&(n.value=!1)},x.setDefaultOptions=function(t){Object(o["a"])(x.currentOptions,t)},x.resetDefaultOptions=function(){x.currentOptions=Object(o["a"])({},x.defaultOptions)},x.resetDefaultOptions(),x.install=function(){a["default"].use(y)},x.Component=y,a["default"].prototype.$dialog=x;e["a"]=x},"28a2":function(t,e,i){"use strict";var n=i("c31d"),o=i("2b0e"),a=i("d282"),s=Object(a["a"])("image-preview"),r=s[0],l=s[1],c=i("6605"),h=i("3875"),u=i("5fbe"),d=i("ad06"),f=i("02de"),v=i("1325"),m=i("4598"),p=i("482d"),g=i("9884"),b=Object(a["a"])("swipe"),y=b[0],S=b[1],w=y({mixins:[h["a"],Object(g["b"])("vanSwipe"),Object(u["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",i=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Object(f["a"])(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(v["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=Date.now()-this.touchStartTime,n=e/i,o=Math.abs(n)>.25||Math.abs(e)>t/2;if(o&&this.isCorrectDirection){var a=this.vertical?this.offsetY:this.offsetX,s=0;s=this.loop?a>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:s,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?Object(p["c"])(e+t,-1,i):Object(p["c"])(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=e-i;return this.loop||(n=Object(p["c"])(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,o=void 0===n?0:n,a=t.emitChange,s=this.loop,r=this.count,l=this.active,c=this.children,h=this.trackSize,u=this.minOffset;if(!(r<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,o);if(s){if(c[0]&&f!==u){var v=f0;c[r-1].offset=m?-h:0}}this.active=d,this.offset=f,a&&d!==l&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(m["a"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(m["a"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(m["a"])((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(m["a"])((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,o=this.slots("indicator");return o||(this.showIndicators&&i>1?e("div",{class:S("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,o){return e("i",{class:S("indicator",{active:o===n}),style:o===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:S()},[t("div",{ref:"track",style:this.trackStyle,class:S("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),O=i("44bf"),x=i("543e"),k=Object(a["a"])("swipe-item"),C=k[0],$=k[1],j=C({mixins:[Object(g["a"])("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return i&&(t[n?"height":"width"]=i+"px"),this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,i=this.parent,n=this.mounted;if(!i.lazyRender||e)return!0;if(!n)return!1;var o=i.activeIndicator,a=i.count-1,s=0===o&&i.loop?a:o-1,r=o===a&&i.loop?0:o+1,l=t===o||t===s||t===r;return l&&(this.inited=!0),l}},render:function(){var t=arguments[0];return t("div",{class:$(),style:this.style,on:Object(n["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}});function B(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var z,T={mixins:[h["a"]],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight,i=e/t;return this.imageRatio>i},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var i=this.moveX/t,n=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+i+"px, "+n+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){t=Object(p["c"])(t,+this.minZoom,+this.maxZoom),t!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,i=this.offsetX,n=void 0===i?0:i;this.touchStart(t),this.touchStartTime=new Date,this.fingerNum=e.length,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===this.fingerNum&&1!==this.scale,this.zooming=2===this.fingerNum&&!n,this.zooming&&(this.startScale=this.scale,this.startDistance=B(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&Object(v["c"])(t,!0),this.moving){var i=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=Object(p["c"])(i,-this.maxMoveX,this.maxMoveX),this.moveY=Object(p["c"])(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var o=B(e),a=this.startScale*o/this.startDistance;this.setScale(a)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Object(p["c"])(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Object(p["c"])(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),Object(v["c"])(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this;if(!(this.fingerNum>1)){var e=this.offsetX,i=void 0===e?0:e,n=this.offsetY,o=void 0===n?0:n,a=new Date-this.touchStartTime,s=250,r=5;i=e.max)return;-1===i.indexOf(this.name)&&(i.push(this.name),e.$emit("input",i))}else{var n=i.indexOf(this.name);-1!==n&&(i.splice(n,1),e.$emit("input",i))}}}})},"44bf":function(t,e,i){"use strict";var n=i("2638"),o=i.n(n),a=i("d282"),s=i("a142"),r=i("ea8e"),l=i("ad06"),c=Object(a["a"])("image"),h=c[0],u=c[1];e["a"]=h({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(s["c"])(this.width)&&(t.width=Object(r["a"])(this.width)),Object(s["c"])(this.height)&&(t.height=Object(r["a"])(this.height)),Object(s["c"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(r["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&s["b"]&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var e=t.el;e===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var e=t.el;e!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:u("loading")},[this.slots("loading")||t(l["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:u("loading-icon")})]):this.error&&this.showError?t("div",{class:u("error")},[this.slots("error")||t(l["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:u("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:u("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",o()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",o()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:u({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}})},4598:function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return c}));var n=i("a142"),o=Date.now();function a(t){var e=Date.now(),i=Math.max(0,16-(e-o)),n=setTimeout(t,i);return o=e+i,n}var s=n["g"]?t:window,r=s.requestAnimationFrame||a;s.cancelAnimationFrame||s.clearTimeout;function l(t){return r.call(s,t)}function c(t){l((function(){l(t)}))}}).call(this,i("c8ba"))},"482d":function(t,e,i){"use strict";function n(t,e,i){return Math.min(Math.max(t,e),i)}function o(t,e,i){var n=t.indexOf(e),o="";return-1===n?t:"-"===e&&0!==n?t.slice(0,n):("."===e&&t.match(/^(\.|-\.)/)&&(o=n?"-0":"0"),o+t.slice(0,n+1)+t.slice(n).replace(i,""))}function a(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!0),t=e?o(t,".",/\./g):t.split(".")[0],t=i?o(t,"-",/-/g):t.replace(/-/,"");var n=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(n,"")}function s(t,e){var i=Math.pow(10,10);return Math.round((t+e)*i)/i}i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return s}))},"565f":function(t,e,i){"use strict";var n=i("2638"),o=i.n(n),a=i("c31d"),s=i("a142");function r(){return!s["g"]&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}var l=i("a8c1"),c=r();function h(){c&&Object(l["d"])(Object(l["a"])())}var u=i("482d"),d=i("1325"),f=i("d282"),v=i("ea8e"),m=i("ad06"),p=i("7744"),g=i("dfaf"),b=Object(f["a"])("field"),y=b[0],S=b[1];e["a"]=y({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:Object(a["a"])({},g["a"],{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(s["c"])(this.value)&&""!==this.value,i="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&i}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return Object(a["a"])({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(v["a"])(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise((function(i){var n=e.validator(t,e);if(Object(s["f"])(n))return n.then(i);i(n)}))},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var i=e.message;return Object(s["d"])(i)?i(t,e):i},runRules:function(t){var e=this;return t.reduce((function(t,i){return t.then((function(){if(!e.validateFailed){var t=e.formValue;return i.formatter&&(t=i.formatter(t,i)),e.runSyncRule(t,i)?i.validator?e.runValidator(t,i).then((function(n){!1===n&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,i))})):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,i)))}}))}),Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise((function(i){t||i(),e.resetValidation(),e.runRules(t).then((function(){e.validateFailed?i({name:e.name,message:e.validateMessage}):i()}))}))},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,i=this.rules.filter((function(i){return i.trigger?i.trigger===t:e}));i.length&&this.validate(i)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(s["c"])(t)?String(t):"";var i=this.maxlength;if(Object(s["c"])(i)&&t.length>i&&(t=this.value&&this.value.length===+i?this.value:t.slice(0,i)),"number"===this.type||"digit"===this.type){var n="number"===this.type;t=Object(u["b"])(t,n,n)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var o=this.$refs.input;o&&t!==o.value&&(o.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.$nextTick(this.adjustSize),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.getProp("readonly")||(this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),this.$nextTick(this.adjustSize),h())},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){Object(d["c"])(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){var e=13;if(t.keyCode===e){var i=this.getProp("submitOnEnter");i||"textarea"===this.type||Object(d["c"])(t),"search"===this.type&&this.blur()}this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){var e=Object(l["a"])();t.style.height="auto";var i=t.scrollHeight;if(Object(s["e"])(this.autosize)){var n=this.autosize,o=n.maxHeight,a=n.minHeight;o&&(i=Math.min(i,o)),a&&(i=Math.max(i,a))}i&&(t.style.height=i+"px",Object(l["d"])(e))}},genInput:function(){var t=this.$createElement,e=this.type,i=this.getProp("disabled"),n=this.getProp("readonly"),s=this.slots("input"),r=this.getProp("inputAlign");if(s)return t("div",{class:S("control",[r,"custom"]),on:{click:this.onClickInput}},[s]);var l={ref:"input",class:S("control",r),domProps:{value:this.value},attrs:Object(a["a"])({},this.$attrs,{name:this.name,disabled:i,readonly:n,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",o()([{},l]));var c,h=e;return"number"===e&&(h="text",c="decimal"),"digit"===e&&(h="tel",c="numeric"),t("input",o()([{attrs:{type:h,inputmode:c}},l]))},genLeftIcon:function(){var t=this.$createElement,e=this.slots("left-icon")||this.leftIcon;if(e)return t("div",{class:S("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(m["a"],{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots,i=e("right-icon")||this.rightIcon;if(i)return t("div",{class:S("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(m["a"],{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:S("word-limit")},[t("span",{class:S("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var i=this.getProp("errorMessageAlign");return t("div",{class:S("error-message",i)},[e])}}},getProp:function(t){return Object(s["c"])(this[t])?this[t]:this.vanForm&&Object(s["c"])(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],i=this.slots,n=this.getProp("disabled"),o=this.getProp("labelAlign"),a={icon:this.genLeftIcon},s=this.genLabel();s&&(a.title=function(){return s});var r=this.slots("extra");return r&&(a.extra=function(){return r}),e(p["a"],{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:S("value"),titleClass:[S("label",o),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:a,class:S((t={error:this.showError,disabled:n},t["label-"+o]=o,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:S("body")},[this.genInput(),this.showClear&&e(m["a"],{attrs:{name:"clear"},class:S("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),i("button")&&e("div",{class:S("button")},[i("button")])]),this.genWordLimit(),this.genMessage()])}})},6605:function(t,e,i){"use strict";var n={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter((function(e){return e.vm===t}))[0]},remove:function(t){var e=this.find(t);if(e){e.vm=null,e.overlay=null;var i=this.stack.indexOf(e);this.stack.splice(i,1)}}},o=i("c31d"),a=i("2638"),s=i.n(a),r=i("d282"),l=i("a142"),c=i("ba31"),h=i("1325"),u=Object(r["a"])("overlay"),d=u[0],f=u[1];function v(t){Object(h["c"])(t,!0)}function m(t,e,i,n){var a=Object(o["a"])({zIndex:e.zIndex},e.customStyle);return Object(l["c"])(e.duration)&&(a.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",s()([{directives:[{name:"show",value:e.show}],style:a,class:[f(),e.className],on:{touchmove:e.lockScroll?v:l["h"]}},Object(c["b"])(n,!0)]),[null==i.default?void 0:i.default()])])}m.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var p=d(m);function g(t){var e=t.parentNode;e&&e.removeChild(t)}var b={className:"",customStyle:{}};function y(t){return Object(c["c"])(p,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}function S(t){var e=n.find(t);if(e){var i=t.$el,a=e.config,s=e.overlay;i&&i.parentNode&&i.parentNode.insertBefore(s.$el,i),Object(o["a"])(s,b,a,{show:!0})}}function w(t,e){var i=n.find(t);if(i)i.config=e;else{var o=y(t);n.stack.push({vm:t,config:e,overlay:o})}S(t)}function O(t){var e=n.find(t);e&&(e.overlay.show=!1)}function x(t){var e=n.find(t);e&&(g(e.overlay.$el),n.remove(t))}var k=i("a8c1"),C=i("3875");function $(t){return"string"===typeof t?document.querySelector(t):t()}function j(t){var e=void 0===t?{}:t,i=e.ref,n=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e=this.getContainer,o=i?this.$refs[i]:this.$el;e?t=$(e):this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),n&&n.call(this)}}}}var B=i("5fbe"),z={mixins:[Object(B["a"])((function(t,e){this.handlePopstate(e&&this.closeOnPopstate)}))],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){if(!this.$isServer&&this.bindStatus!==t){this.bindStatus=t;var e=t?h["b"]:h["a"];e(window,"popstate",this.onPopstate)}}}};i.d(e,"a",(function(){return P}));var T={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function P(t){return void 0===t&&(t={}),{mixins:[C["a"],z,j({afterPortal:function(){this.overlay&&S()}})],provide:function(){return{vanPopup:this}},props:T,data:function(){return this.onReopenCallback=[],{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var i=e?"open":"close";this.inited=this.inited||this.value,this[i](),t.skipToggleEvent||this.$emit(i)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){x(this),this.opened&&this.removeLock(),this.getContainer&&g(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(n.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock(),this.onReopenCallback.forEach((function(t){t()})))},addLock:function(){this.lockScroll&&(Object(h["b"])(document,"touchstart",this.touchStart),Object(h["b"])(document,"touchmove",this.onTouchMove),n.lockCount||document.body.classList.add("van-overflow-hidden"),n.lockCount++)},removeLock:function(){this.lockScroll&&n.lockCount&&(n.lockCount--,Object(h["a"])(document,"touchstart",this.touchStart),Object(h["a"])(document,"touchmove",this.onTouchMove),n.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(O(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",i=Object(k["c"])(t.target,this.$el),n=i.scrollHeight,o=i.offsetHeight,a=i.scrollTop,s="11";0===a?s=o>=n?"00":"01":a+o>=n&&(s="10"),"11"===s||"vertical"!==this.direction||parseInt(s,2)&parseInt(e,2)||Object(h["c"])(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick((function(){t.updateZIndex(t.overlay?1:0),t.overlay?w(t,{zIndex:n.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):O(t)}))},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++n.zIndex+t},onReopen:function(t){this.onReopenCallback.push(t)}}}}},"772a":function(t,e,i){"use strict";var n=i("d282"),o=i("db85"),a=Object(n["a"])("form"),s=a[0],r=a[1];e["a"]=s({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(i,n){var o=[],a=e.getFieldsByNames(t);a.reduce((function(t,e){return t.then((function(){if(!o.length)return e.validate().then((function(t){t&&o.push(t)}))}))}),Promise.resolve()).then((function(){o.length?n(o):i()}))}))},validateFields:function(t){var e=this;return new Promise((function(i,n){var o=e.getFieldsByNames(t);Promise.all(o.map((function(t){return t.validate()}))).then((function(t){t=t.filter((function(t){return t})),t.length?n(t):i()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,i){e[0].validate().then((function(e){e?i(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]);var e=this.getFieldsByNames(t);e.forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(i){return i.name===t&&(i.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),Object(o["a"])(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(i){t.$emit("failed",{values:e,errors:i}),t.scrollToError&&t.scrollToField(i[0].name)}))}},render:function(){var t=arguments[0];return t("form",{class:r(),on:{submit:this.onSubmit}},[this.slots()])}})},"78eb":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},"82a8":function(t,e,i){"use strict";var n=i("c31d"),o=i("d282"),a=i("48f4"),s=i("9884"),r=i("b650"),l=Object(o["a"])("goods-action-button"),c=l[0],h=l[1];e["a"]=c({mixins:[Object(s["a"])("vanGoodsAction")],props:Object(n["a"])({},a["c"],{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),Object(a["b"])(this.$router,this)}},render:function(){var t=arguments[0];return t(r["a"],{class:h([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}})},"8ad4":function(t,e,i){"use strict";var n=i("d282"),o=i("ea8e"),a=i("a142");function s(t){if(!Object(a["c"])(t))return t;if(Array.isArray(t))return t.map((function(t){return s(t)}));if("object"===typeof t){var e={};return Object.keys(t).forEach((function(i){e[i]=s(t[i])})),e}return t}var r=i("1325"),l=i("482d"),c=i("3875"),h=i("78eb"),u=Object(n["a"])("slider"),d=u[0],f=u[1],v=function(t,e){return JSON.stringify(t)===JSON.stringify(e)};e["a"]=d({mixins:[c["a"],h["a"]],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(o["a"])(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),Object(r["c"])(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),i=this.vertical?this.deltaY:this.deltaX,n=this.vertical?e.height:e.width,o=i/n*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+o:this.currentValue=this.startValue+o,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),i=this.vertical?t.clientY-e.top:t.clientX-e.left,n=this.vertical?e.height:e.width,o=+this.min+i/n*this.scope;if(this.range){var a=this.value,s=a[0],r=a[1],l=(s+r)/2;o<=l?s=o:r=o,o=[s,r]}this.startValue=this.value,this.updateValue(o,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=s(t),t.reverse()):t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),v(t,this.value)||this.$emit("input",t),e&&!v(t,this.startValue)&&this.$emit("change",t)},format:function(t){var e=+this.min,i=+this.max,n=+this.step;t=Object(l["c"])(t,e,i);var o=Math.round((t-e)/n)*n;return Object(l["a"])(e,o)}},render:function(){var t,e,i=this,n=arguments[0],a=this.vertical,s=a?"height":"width",r=a?"width":"height",l=(t={background:this.inactiveColor},t[r]=Object(o["a"])(this.barHeight),t),c=function(){var t=i.value,e=i.min,n=i.range,o=i.scope;return n?100*(t[1]-t[0])/o+"%":100*(t-e)/o+"%"},h=function(){var t=i.value,e=i.min,n=i.range,o=i.scope;return n?100*(t[0]-e)/o+"%":null},u=(e={},e[s]=c(),e.left=this.vertical?null:h(),e.top=this.vertical?h():null,e.background=this.activeColor,e);this.dragStatus&&(u.transition="none");var d=function(t){var e=["left","right"],o="number"===typeof t,a=o?i.value[t]:i.value,s=function(){return o?"button-wrapper-"+e[t]:"button-wrapper"},r=function(){return o?"wrapper"+t:"wrapper"},l=function(){if(o){var e=i.slots(0===t?"left-button":"right-button",{value:a});if(e)return e}return i.slots("button")?i.slots("button"):n("div",{class:f("button"),style:i.buttonStyle})};return n("div",{ref:r(),attrs:{role:"slider",tabindex:i.disabled?-1:0,"aria-valuemin":i.min,"aria-valuenow":i.value,"aria-valuemax":i.max,"aria-orientation":i.vertical?"vertical":"horizontal"},class:f(s()),on:{touchstart:function(){o&&(i.index=t)},click:function(t){return t.stopPropagation()}}},[l()])};return n("div",{style:l,class:f({disabled:this.disabled,vertical:a}),on:{click:this.onClick}},[n("div",{class:f("bar"),style:u},[this.range?[d(0),d(1)]:d()])])}})},"8f80":function(t,e,i){"use strict";var n=i("c31d"),o=i("d282"),a=i("ea8e"),s=i("a142");function r(t){return Array.isArray(t)?t:[t]}function l(t,e){return new Promise((function(i){if("file"!==e){var n=new FileReader;n.onload=function(t){i(t.target.result)},"dataUrl"===e?n.readAsDataURL(t):"text"===e&&n.readAsText(t)}else i(null)}))}function c(t,e){return r(t).some((function(t){return!!t&&(Object(s["d"])(e)?e(t):t.size>e)}))}var h=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function u(t){return h.test(t)}function d(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?u(t.url):!!t.content&&0===t.content.indexOf("data:image"))}var f=i("78eb"),v=i("ad06"),m=i("44bf"),p=i("543e"),g=i("28a2"),b=Object(o["a"])("uploader"),y=b[0],S=b[1];e["a"]=y({inheritAttrs:!1,mixins:[f["a"]],model:{prop:"fileList"},props:{disabled:Boolean,readonly:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(a["a"])(this.previewSize)},value:function(){return this.fileList}},created:function(){this.urls=[]},beforeDestroy:function(){this.urls.forEach((function(t){return URL.revokeObjectURL(t)}))},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,i=t.target.files;if(!this.disabled&&i.length){if(i=1===i.length?i[0]:[].slice.call(i),this.beforeRead){var n=this.beforeRead(i,this.getDetail());if(!n)return void this.resetInput();if(Object(s["f"])(n))return void n.then((function(t){t?e.readFile(t):e.readFile(i)})).catch(this.resetInput)}this.readFile(i)}},readFile:function(t){var e=this,i=c(t,this.maxSize);if(Array.isArray(t)){var n=this.maxCount-this.fileList.length;t.length>n&&(t=t.slice(0,n)),Promise.all(t.map((function(t){return l(t,e.resultType)}))).then((function(n){var o=t.map((function(t,e){var i={file:t,status:"",message:""};return n[e]&&(i.content=n[e]),i}));e.onAfterRead(o,i)}))}else l(t,this.resultType).then((function(n){var o={file:t,status:"",message:""};n&&(o.content=n),e.onAfterRead(o,i)}))},onAfterRead:function(t,e){var i=this;this.resetInput();var n=t;if(e){var o=t;Array.isArray(t)?(o=[],n=[],t.forEach((function(t){t.file&&(c(t.file,i.maxSize)?o.push(t):n.push(t))}))):n=null,this.$emit("oversize",o,this.getDetail())}var a=Array.isArray(n)?Boolean(n.length):Boolean(n);a&&(this.$emit("input",[].concat(this.fileList,r(n))),this.afterRead&&this.afterRead(n,this.getDetail()))},onDelete:function(t,e){var i,n=this,o=null!=(i=t.beforeDelete)?i:this.beforeDelete;if(o){var a=o(t,this.getDetail(e));if(!a)return;if(Object(s["f"])(a))return void a.then((function(){n.deleteFile(t,e)})).catch(s["h"])}this.deleteFile(t,e)},deleteFile:function(t,e){var i=this.fileList.slice(0);i.splice(e,1),this.$emit("input",i),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onClickUpload:function(t){this.$emit("click-upload",t)},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var i=this.fileList.filter((function(t){return d(t)})),o=i.map((function(t){return t.file&&!t.url&&(t.url=URL.createObjectURL(t.file),e.urls.push(t.url)),t.url}));this.imagePreview=Object(g["a"])(Object(n["a"])({images:o,startPosition:i.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,i=t.status,n=t.message;if("uploading"===i||"failed"===i){var o="failed"===i?e(v["a"],{attrs:{name:"close"},class:S("mask-icon")}):e(p["a"],{class:S("loading")}),a=Object(s["c"])(n)&&""!==n;return e("div",{class:S("mask")},[o,a&&e("div",{class:S("mask-message")},[n])])}},genPreviewItem:function(t,e){var i,o,a,s=this,r=this.$createElement,l=null!=(i=t.deletable)?i:this.deletable,c="uploading"!==t.status&&l,h=c&&r("div",{class:S("preview-delete"),on:{click:function(i){i.stopPropagation(),s.onDelete(t,e)}}},[r(v["a"],{attrs:{name:"cross"},class:S("preview-delete-icon")})]),u=this.slots("preview-cover",Object(n["a"])({index:e},t)),f=u&&r("div",{class:S("preview-cover")},[u]),p=null!=(o=t.previewSize)?o:this.previewSize,g=null!=(a=t.imageFit)?a:this.imageFit,b=d(t)?r(m["a"],{attrs:{fit:g,src:t.content||t.url,width:p,height:p,lazyLoad:this.lazyLoad},class:S("preview-image"),on:{click:function(){s.onPreviewImage(t)}}},[f]):r("div",{class:S("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[r(v["a"],{class:S("file-icon"),attrs:{name:"description"}}),r("div",{class:[S("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),f]);return r("div",{class:S("preview"),on:{click:function(){s.$emit("click-preview",t,s.getDetail(e))}}},[b,this.genPreviewMask(t),h])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,i=this.slots(),o=this.readonly?null:t("input",{attrs:Object(n["a"])({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:S("input"),on:{change:this.onChange}});if(i)return t("div",{class:S("input-wrapper"),key:"input-wrapper",on:{click:this.onClickUpload}},[i,o]);if(this.previewSize){var a=this.previewSizeWithUnit;e={width:a,height:a}}return t("div",{class:S("upload",{readonly:this.readonly}),style:e,on:{click:this.onClickUpload}},[t(v["a"],{attrs:{name:this.uploadIcon},class:S("upload-icon")}),this.uploadText&&t("span",{class:S("upload-text")},[this.uploadText]),o])}}},render:function(){var t=arguments[0];return t("div",{class:S()},[t("div",{class:S("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}})},9884:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a}));var n=i("db85");function o(t,e){var i,o;void 0===e&&(e={});var a=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(o={parent:function(){return this.disableBindRelation?null:this[t]}},o[a]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},o),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Object(n["a"])(t,this.parent),this.parent.children=t}}}}}function a(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}},"9f14":function(t,e,i){"use strict";var n=i("d282"),o=i("0a26"),a=Object(n["a"])("radio"),s=a[0],r=a[1];e["a"]=s({mixins:[Object(o["a"])({bem:r,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}})},a3e2:function(t,e,i){"use strict";var n=i("2638"),o=i.n(n),a=i("d282"),s=i("ba31"),r=i("ad06"),l=Object(a["a"])("tag"),c=l[0],h=l[1];function u(t,e,i,n){var a,l=e.type,c=e.mark,u=e.plain,d=e.color,f=e.round,v=e.size,m=e.textColor,p=u?"color":"backgroundColor",g=(a={},a[p]=d,a);u?(g.color=m||d,g.borderColor=d):(g.color=m,g.background=d);var b={mark:c,plain:u,round:f};v&&(b[v]=v);var y=e.closeable&&t(r["a"],{attrs:{name:"cross"},class:h("close"),on:{click:function(t){t.stopPropagation(),Object(s["a"])(n,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",o()([{key:"content",style:g,class:h([b,l])},Object(s["b"])(n,!0)]),[null==i.default?void 0:i.default(),y])])}u.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}},e["a"]=c(u)},b1d2:function(t,e,i){"use strict";i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return r}));var n="van-hairline",o=n+"--top",a=n+"--left",s=n+"--surround",r=n+"--top-bottom"},b650:function(t,e,i){"use strict";var n=i("c31d"),o=i("2638"),a=i.n(o),s=i("d282"),r=i("ba31"),l=i("b1d2"),c=i("48f4"),h=i("ad06"),u=i("543e"),d=Object(s["a"])("button"),f=d[0],v=d[1];function m(t,e,i,n){var o,s=e.tag,d=e.icon,f=e.type,m=e.color,p=e.plain,g=e.disabled,b=e.loading,y=e.hairline,S=e.loadingText,w=e.iconPosition,O={};function x(t){e.loading&&t.preventDefault(),b||g||(Object(r["a"])(n,"click",t),Object(c["a"])(n))}function k(t){Object(r["a"])(n,"touchstart",t)}m&&(O.color=p?m:"white",p||(O.background=m),-1!==m.indexOf("gradient")?O.border=0:O.borderColor=m);var C=[v([f,e.size,{plain:p,loading:b,disabled:g,hairline:y,block:e.block,round:e.round,square:e.square}]),(o={},o[l["b"]]=y,o)];function $(){return b?i.loading?i.loading():t(u["a"],{class:v("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):i.icon?t("div",{class:v("icon")},[i.icon()]):d?t(h["a"],{attrs:{name:d,classPrefix:e.iconPrefix},class:v("icon")}):void 0}function j(){var n,o=[];return"left"===w&&o.push($()),n=b?S:i.default?i.default():e.text,n&&o.push(t("span",{class:v("text")},[n])),"right"===w&&o.push($()),o}return t(s,a()([{style:O,class:C,attrs:{type:e.nativeType,disabled:g},on:{click:x,touchstart:k}},Object(r["b"])(n)]),[t("div",{class:v("content")},[j()])])}m.props=Object(n["a"])({},c["c"],{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}}),e["a"]=f(m)},bb33:function(t,e,i){"use strict";var n=i("d282"),o=i("9884"),a=Object(n["a"])("goods-action"),s=a[0],r=a[1];e["a"]=s({mixins:[Object(o["b"])("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){var t=arguments[0];return t("div",{class:r({unfit:!this.safeAreaInsetBottom})},[this.slots()])}})},db85:function(t,e,i){"use strict";function n(t){var e=[];function i(t){t.forEach((function(t){e.push(t),t.componentInstance&&i(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&i(t.children)}))}return i(t),e}function o(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var o=n(i.children);t.sort((function(t,e){return o.indexOf(t.$vnode)-o.indexOf(e.$vnode)}))}}i.d(e,"a",(function(){return o}))},e27c:function(t,e,i){"use strict";var n=i("d282"),o=i("78eb"),a=i("9884"),s=Object(n["a"])("radio-group"),r=s[0],l=s[1];e["a"]=r({mixins:[Object(a["b"])("vanRadio"),o["a"]],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:l([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}})},e41f:function(t,e,i){"use strict";var n=i("d282"),o=i("a142"),a=i("6605"),s=i("ad06"),r=Object(n["a"])("popup"),l=r[0],c=r[1];e["a"]=l({mixins:[Object(a["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,a=this.duration,r="center"===n,l=this.transition||(r?"van-fade":"van-popup-slide-"+n),h={};if(Object(o["c"])(a)){var u=r?"animationDuration":"transitionDuration";h[u]=a+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:l},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:h,class:c((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(s["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:c("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}})}}]);