!function(t){function e(e){for(var n,r,o=e[0],a=e[1],s=0,l=[];s1?i-1:0),o=1;o=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function x(t,e){return y.call(t,e)}function k(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,C=k(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),S=k(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),_=/\B([A-Z])/g,O=k(function(t){return t.replace(_,"-$1").toLowerCase()});var $=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function T(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function j(t,e){for(var n in e)t[n]=e[n];return t}function A(t){for(var e={},n=0;n0,J=K&&K.indexOf("edge/")>0,Z=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===X),tt=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(W)try{var it={};Object.defineProperty(it,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var rt=function(){return void 0===H&&(H=!W&&!Y&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),H},ot=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,ct="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=E,ut=0,dt=function(){this.id=ut++,this.subs=[]};dt.prototype.addSub=function(t){this.subs.push(t)},dt.prototype.removeSub=function(t){b(this.subs,t)},dt.prototype.depend=function(){dt.target&&dt.target.addDep(this)},dt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!x(r,"default"))a=!1;else if(""===a||a===O(t)){var c=Rt(String,r.type);(c<0||s0&&(ue((l=t(l,(n||"")+"_"+c))[0])&&ue(d)&&(i[u]=bt(d.text+l[0].text),l.shift()),i.push.apply(i,l)):s(l)?ue(d)?i[u]=bt(d.text+l):""!==l&&i.push(bt(l)):ue(l)&&ue(d)?i[u]=bt(d.text+l.text):(a(e._isVList)&&o(l.tag)&&r(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+c+"__"),i.push(l)));return i}(t):void 0}function ue(t){return o(t)&&o(t.text)&&!1===t.isComment}function de(t,e){if(t){for(var n=Object.create(null),i=ct?Reflect.ownKeys(t):Object.keys(t),r=0;r0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==i&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in r={},t)t[c]&&"$"!==c[0]&&(r[c]=ve(e,c,t[c]))}else r={};for(var l in e)l in r||(r[l]=me(e,l));return t&&Object.isExtensible(t)&&(t._normalized=r),U(r,"$stable",a),U(r,"$key",s),U(r,"$hasNormal",o),r}function ve(t,e,n){var i=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:i,enumerable:!0,configurable:!0}),i}function me(t,e){return function(){return t[e]}}function ge(t,e){var n,i,r,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,r=t.length;idocument.createEvent("Event").timeStamp&&(un=function(){return dn.now()})}function hn(){var t,e;for(ln=un(),sn=!0,nn.sort(function(t,e){return t.id-e.id}),cn=0;cncn&&nn[n].id>t.id;)n--;nn.splice(n+1,0,t)}else nn.push(t);an||(an=!0,ee(hn))}}(this)},pn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var vn={enumerable:!0,configurable:!0,get:E,set:E};function mn(t,e,n){vn.get=function(){return this[e][n]},vn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,vn)}function gn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},i=t._props={},r=t.$options._propKeys=[];t.$parent&&St(!1);var o=function(o){r.push(o);var a=Mt(o,e,n,t);$t(i,o,a),o in t||mn(t,"_props",o)};for(var a in e)o(a);St(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?E:$(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});var n=Object.keys(e),i=t.$options.props,r=(t.$options.methods,n.length);for(;r--;){var o=n[r];0,i&&x(i,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&mn(t,"_data",o))}var a;Ot(e,!0)}(t):Ot(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),i=rt();for(var r in e){var o=e[r],a="function"==typeof o?o:o.get;0,i||(n[r]=new pn(t,a||E,E,bn)),r in t||yn(t,r,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var i=e[n];if(Array.isArray(i))for(var r=0;r-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function jn(t,e){var n=t.cache,i=t.keys,r=t._vnode;for(var o in n){var a=n[o];if(a){var s=$n(a.componentOptions);s&&!e(s)&&An(n,o,i,r)}}}function An(t,e,n,i){var r=t[e];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),t[e]=null,b(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=Cn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),i=e._parentVnode;n.parent=e.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(Sn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Qe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=he(e._renderChildren,r),t.$scopedSlots=i,t._c=function(e,n,i,r){return Re(t,e,n,i,r,!1)},t.$createElement=function(e,n,i,r){return Re(t,e,n,i,r,!0)};var o=n&&n.data;$t(t,"$attrs",o&&o.attrs||i,null,!0),$t(t,"$listeners",e._parentListeners||i,null,!0)}(e),en(e,"beforeCreate"),function(t){var e=de(t.$options.inject,t);e&&(St(!1),Object.keys(e).forEach(function(n){$t(t,n,e[n])}),St(!0))}(e),gn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),en(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(_n),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Tt,t.prototype.$delete=jt,t.prototype.$watch=function(t,e,n){if(u(e))return wn(this,t,e,n);(n=n||{}).user=!0;var i=new pn(this,t,e,n);if(n.immediate)try{e.call(this,i.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(_n),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var i=this;if(Array.isArray(t))for(var r=0,o=t.length;r1?T(e):e;for(var n=T(arguments,1),i='event handler for "'+t+'"',r=0,o=e.length;rparseInt(this.max)&&An(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:j,mergeOptions:Lt,defineReactive:$t},t.set=Tt,t.delete=jt,t.nextTick=ee,t.observable=function(t){return Ot(t),t},t.options=Object.create(null),M.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,j(t.options.components,Nn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),On(t),function(t){M.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}(t)}(_n),Object.defineProperty(_n.prototype,"$isServer",{get:rt}),Object.defineProperty(_n.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(_n,"FunctionalRenderContext",{value:Ne}),_n.version="2.6.10";var In=m("style,class"),zn=m("input,textarea,option,select,progress"),Bn=m("contenteditable,draggable,spellcheck"),Ln=m("events,caret,typing,plaintext-only"),Dn=function(t,e){return Un(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"},Mn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Pn="http://www.w3.org/1999/xlink",Fn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Rn=function(t){return Fn(t)?t.slice(6,t.length):""},Un=function(t){return null==t||!1===t};function Vn(t){for(var e=t.data,n=t,i=t;o(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(e=Hn(i.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Hn(e,n.data));return function(t,e){if(o(t)||o(e))return qn(t,Wn(e));return""}(e.staticClass,e.class)}function Hn(t,e){return{staticClass:qn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function qn(t,e){return t?e?t+" "+e:t:e||""}function Wn(t){return Array.isArray(t)?function(t){for(var e,n="",i=0,r=t.length;i-1?vi(t,e,n):Mn(e)?Un(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Bn(e)?t.setAttribute(e,Dn(e,n)):Fn(e)?Un(n)?t.removeAttributeNS(Pn,Rn(e)):t.setAttributeNS(Pn,e,n):vi(t,e,n)}function vi(t,e,n){if(Un(n))t.removeAttribute(e);else{if(Q&&!G&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var mi={create:fi,update:fi};function gi(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Vn(e),c=n._transitionClasses;o(c)&&(s=qn(s,Wn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var bi,yi={create:gi,update:gi},xi="__r",ki="__c";function wi(t,e,n){var i=bi;return function r(){null!==e.apply(null,arguments)&&_i(t,r,n,i)}}var Ci=Yt&&!(tt&&Number(tt[1])<=53);function Si(t,e,n,i){if(Ci){var r=ln,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}bi.addEventListener(t,e,nt?{capture:n,passive:i}:n)}function _i(t,e,n,i){(i||bi).removeEventListener(t,e._wrapper||e,n)}function Oi(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};bi=e.elm,function(t){if(o(t[xi])){var e=Q?"change":"input";t[e]=[].concat(t[xi],t[e]||[]),delete t[xi]}o(t[ki])&&(t.change=[].concat(t[ki],t.change||[]),delete t[ki])}(n),ae(n,i,Si,_i,wi,e.context),bi=void 0}}var $i,Ti={create:Oi,update:Oi};function ji(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(n in o(c.__ob__)&&(c=e.data.domProps=j({},c)),s)n in c||(a[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var l=r(i)?"":String(i);Ai(a,l)&&(a.value=l)}else if("innerHTML"===n&&Kn(a.tagName)&&r(a.innerHTML)){($i=$i||document.createElement("div")).innerHTML=""+i+"";for(var u=$i.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(i!==s[n])try{a[n]=i}catch(t){}}}}function Ai(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,i=t._vModifiers;if(o(i)){if(i.number)return v(n)!==v(e);if(i.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Ei={create:ji,update:ji},Ni=k(function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var i=t.split(n);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function Ii(t){var e=zi(t.style);return t.staticStyle?j(t.staticStyle,e):e}function zi(t){return Array.isArray(t)?A(t):"string"==typeof t?Ni(t):t}var Bi,Li=/^--/,Di=/\s*!important$/,Mi=function(t,e,n){if(Li.test(e))t.style.setProperty(e,n);else if(Di.test(n))t.style.setProperty(O(e),n.replace(Di,""),"important");else{var i=Fi(e);if(Array.isArray(n))for(var r=0,o=n.length;r-1?e.split(Vi).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function qi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Vi).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Wi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&j(e,Yi(t.name||"v")),j(e,t),e}return"string"==typeof t?Yi(t):void 0}}var Yi=k(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Xi=W&&!G,Ki="transition",Qi="animation",Gi="transition",Ji="transitionend",Zi="animation",tr="animationend";Xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Gi="WebkitTransition",Ji="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Zi="WebkitAnimation",tr="webkitAnimationEnd"));var er=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function nr(t){er(function(){er(t)})}function ir(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Hi(t,e))}function rr(t,e){t._transitionClasses&&b(t._transitionClasses,e),qi(t,e)}function or(t,e,n){var i=sr(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===Ki?Ji:tr,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&l()};setTimeout(function(){c0&&(n=Ki,u=a,d=o.length):e===Qi?l>0&&(n=Qi,u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?Ki:Qi:null)?n===Ki?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===Ki&&ar.test(i[Gi+"Property"])}}function cr(t,e){for(;t.length1}function pr(t,e){!0!==e.data.show&&ur(e)}var vr=function(t){var e,n,i={},c=t.modules,l=t.nodeOps;for(e=0;ep?y(t,r(n[g+1])?null:n[g+1].elm,n,f,g,i):f>g&&k(0,e,h,p)}(h,m,g,n,u):o(g)?(o(t.text)&&l.setTextContent(h,""),y(h,null,g,0,g.length-1,n)):o(m)?k(0,m,0,m.length-1):o(t.text)&&l.setTextContent(h,""):t.text!==e.text&&l.setTextContent(h,e.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(t,e)}}}function _(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var i=0;i-1,a.selected!==o&&(a.selected=o);else if(z(xr(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function yr(t,e){return e.every(function(e){return!z(e,t)})}function xr(t){return"_value"in t?t._value:t.value}function kr(t){t.target.composing=!0}function wr(t){t.target.composing&&(t.target.composing=!1,Cr(t.target,"input"))}function Cr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Sr(t){return!t.componentInstance||t.data&&t.data.transition?t:Sr(t.componentInstance._vnode)}var _r={model:mr,show:{bind:function(t,e,n){var i=e.value,r=(n=Sr(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&r?(n.data.show=!0,ur(n,function(){t.style.display=o})):t.style.display=i?o:"none"},update:function(t,e,n){var i=e.value;!i!=!e.oldValue&&((n=Sr(n)).data&&n.data.transition?(n.data.show=!0,i?ur(n,function(){t.style.display=t.__vOriginalDisplay}):dr(n,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,i,r){r||(t.style.display=t.__vOriginalDisplay)}}},Or={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function $r(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?$r(We(e.children)):t}function Tr(t){var e={},n=t.$options;for(var i in n.propsData)e[i]=t[i];var r=n._parentListeners;for(var o in r)e[C(o)]=r[o];return e}function jr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Ar=function(t){return t.tag||qe(t)},Er=function(t){return"show"===t.name},Nr={name:"transition",props:Or,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Ar)).length){0;var i=this.mode;0;var r=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=$r(r);if(!o)return r;if(this._leaving)return jr(t,r);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Tr(this),l=this._vnode,u=$r(l);if(o.data.directives&&o.data.directives.some(Er)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!qe(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=j({},c);if("out-in"===i)return this._leaving=!0,se(d,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),jr(t,r);if("in-out"===i){if(qe(o))return l;var h,f=function(){h()};se(c,"afterEnter",f),se(c,"enterCancelled",f),se(d,"delayLeave",function(t){h=t})}}return r}}},Ir=j({tag:String,moveClass:String},Or);function zr(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Br(t){t.data.newPos=t.elm.getBoundingClientRect()}function Lr(t){var e=t.data.pos,n=t.data.newPos,i=e.left-n.left,r=e.top-n.top;if(i||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}delete Ir.mode;var Dr={Transition:Nr,TransitionGroup:{props:Ir,beforeMount:function(){var t=this,e=this._update;this._update=function(n,i){var r=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,n,i)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Tr(this),s=0;s-1?Gn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Gn[t]=/HTMLUnknownElement/.test(e.toString())},j(_n.options.directives,_r),j(_n.options.components,Dr),_n.prototype.__patch__=W?vr:E,_n.prototype.$mount=function(t,e){return function(t,e,n){var i;return t.$el=e,t.$options.render||(t.$options.render=gt),en(t,"beforeMount"),i=function(){t._update(t._render(),n)},new pn(t,i,E,{before:function(){t._isMounted&&!t._isDestroyed&&en(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,en(t,"mounted")),t}(this,t=t&&W?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},W&&setTimeout(function(){F.devtools&&ot&&ot.emit("init",_n)},0),e.default=_n}.call(this,n(15),n(26).setImmediate)},function(t,e,n){"use strict";n.d(e,"d",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"b",function(){return s});var i="#f44",r="#1989fa",o="#07c160",a="#fff",s="#969799"},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i={QUOTA_LIMIT:0,STOCK_LIMIT:1},r="";e.c={LIMIT_TYPE:i,UNSELECTED_SKU_VALUE_ID:r}},function(t,e,n){"use strict";(function(t){n.d(e,"b",function(){return c}),n.d(e,"a",function(){return l});var i=n(0),r=Date.now();var o=i.h?t:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-r)),i=setTimeout(t,n);return r=e+n,i},s=o.cancelAnimationFrame||o.clearTimeout;function c(t){return a.call(o,t)}function l(t){s.call(o,t)}}).call(this,n(15))},function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=c):r&&(c=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:l}}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";var i=n(3),r=n(19),o=n(20),a=i.default.prototype,s=i.default.util.defineReactive;s(a,"$vantLang","zh-CN"),s(a,"$vantMessages",{"zh-CN":o.a}),e.a={messages:function(){return a.$vantMessages[a.$vantLang]},use:function(t,e){var n;a.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),Object(r.a)(a.$vantMessages,t)}}},function(t,e,n){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="dist/",n(n.s=3)}([function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(o).concat([r]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;rn.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r"+t.slice(1).join(" ")+""}}},u={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item.path?n("router-link",{attrs:{"active-class":"active",to:t.base+t.item.path},domProps:{innerHTML:t._s(t.itemName)}}):t.item.link?n("a",{attrs:{href:t.item.link},domProps:{innerHTML:t._s(t.itemName)}}):n("a",{domProps:{innerHTML:t._s(t.itemName)}})},staticRenderFns:[]},d=n(1)(l,u,!1,null,null,null).exports,h={name:"van-doc-nav",components:(s={},s[d.name]=d,s),props:{navConfig:Array,base:{type:String,default:""}},data:function(){return{top:60,bottom:0}},computed:{style:function(){return{top:this.top+"px",bottom:this.bottom+"px"}}},created:function(){window.addEventListener("scroll",this.onScroll),this.onScroll()},methods:{onScroll:function(){var t=window.pageYOffset;this.top=Math.max(0,60-t)}}},f={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc-nav",style:t.style},t._l(t.navConfig,function(e,i){return n("div",{key:i,staticClass:"van-doc-nav__item"},[n("van-doc-nav-link",{attrs:{item:e,base:t.base}}),t._v(" "),e.children?n("div",t._l(e.children,function(e,i){return n("div",{key:i,staticClass:"nav-item"},[n("van-doc-nav-link",{attrs:{item:e,base:t.base}})],1)})):t._e(),t._v(" "),t._l(e.groups,function(i,r){return e.groups?n("div",{key:r},[n("div",{staticClass:"van-doc-nav__group-title"},[t._v(t._s(i.groupName))]),t._v(" "),n("div",t._l(i.list,function(e,i){return e.disabled?t._e():n("div",{key:i,staticClass:"van-doc-nav__subitem"},[n("van-doc-nav-link",{attrs:{item:e,base:t.base}})],1)}))]):t._e()})],2)}))},staticRenderFns:[]};var p=n(1)(h,f,!1,function(t){n(8)},null,null).exports,v={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-doc-block"},[this._t("default")],2)},staticRenderFns:[]};var m=n(1)({name:"van-doc-block"},v,!1,function(t){n(10)},null,null).exports,g={name:"van-doc-header",props:{config:Object,active:String},methods:{onSwitchLang:function(t){this.$router.push(this.$route.path.replace(t.from,t.to))}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc-header"},[n("div",{staticClass:"van-doc-row"},[n("div",{staticClass:"van-doc-header__top"},[n("a",{staticClass:"van-doc-header__logo",attrs:{href:t.config.logo.href}},[n("img",{attrs:{src:t.config.logo.image}}),t._v(" "),n("span",[t._v(t._s(t.config.logo.title))]),t._v(" "),t.config.logo.version?n("span",{staticClass:"van-doc-header__version"},[t._v("v"+t._s(t.config.logo.version))]):t._e()]),t._v(" "),n("ul",{staticClass:"van-doc-header__top-nav"},t._l(t.config.nav,function(e,i){return n("li",{staticClass:"van-doc-header__top-nav-item",class:{active:i===t.active}},[n("a",{staticClass:"van-doc-header__top-nav-title",class:{active:i===t.active,link:"string"==typeof e&&"github"!==i},attrs:{href:"string"==typeof e?e:"javascript:;",target:"github"===i?"_blank":""}},["github"===i?n("svg",{staticClass:"octicon octicon-mark-github",attrs:{height:"28",width:"28",viewBox:"0 0 16 16",version:"1.1","aria-hidden":"true"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"}})]):"lang"===i?n("span",{staticClass:"van-doc-header__top-nav-lang",on:{click:function(n){t.onSwitchLang(e)}}},[t._v(t._s(e.text))]):n("span",[t._v(t._s(i))])])])}))])])])},staticRenderFns:[]};var y=n(1)(g,b,!1,function(t){n(12)},null,null).exports,x={name:"van-doc-footer",props:{config:Object}},k={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"van-doc-footer"},[n("ul",t._l(t.config.nav,function(e,i){return n("li",{key:i,staticClass:"van-doc-footer__item"},[n("a",{attrs:{href:e,target:"_blank"}},[t._v(t._s(i))])])})),t._v(" "),t.config.github?n("a",{staticClass:"github-corner",attrs:{href:t.config.github,target:"_blank","aria-label":"View source on Github"}},[n("svg",{attrs:{width:"100",height:"100",viewBox:"0 0 250 250","aria-hidden":"true"}},[n("path",{staticClass:"octo-arm",staticStyle:{"transform-origin":"130px 106px"},attrs:{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor"}}),t._v(" "),n("path",{staticClass:"octo-body",attrs:{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor"}})])]):t._e()])},staticRenderFns:[]};var w=n(1)(x,k,!1,function(t){n(14)},null,null).exports,C={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{class:["van-doc-content","van-doc-content--"+this.currentPage]},[this._t("default")],2)},staticRenderFns:[]};var S=n(1)({name:"van-doc-content",computed:{currentPage:function(){var t=this.$route.path;return t?t.split("/").slice(-1)[0]:this.$route.name}}},C,!1,function(t){n(16)},null,null).exports,_={name:"van-doc-container",props:{hasSimulator:Boolean}},O={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"van-doc-container van-doc-row",class:{"van-doc-container--with-simulator":this.hasSimulator}},[this._t("default")],2)},staticRenderFns:[]};var $=n(1)(_,O,!1,function(t){n(18)},null,null).exports,T={name:"van-doc-simulator",props:{src:String},data:function(){return{scrollTop:window.scrollY,windowHeight:window.innerHeight}},mounted:function(){var t=this;window.addEventListener("scroll",function(){t.scrollTop=window.scrollY}),window.addEventListener("resize",function(){t.windowHeight=window.innerHeight})},computed:{isFixed:function(){return this.scrollTop>60},simulatorStyle:function(){return{height:Math.min(640,this.windowHeight-90)+"px"}}}},j={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:["van-doc-simulator",{"van-doc-simulator-fixed":this.isFixed}]},[e("iframe",{ref:"iframe",style:this.simulatorStyle,attrs:{src:this.src,frameborder:"0"}})])},staticRenderFns:[]};var A=n(1)(T,j,!1,function(t){n(20)},null,null).exports,E={name:"van-doc-demo-block",props:{title:String}},N={render:function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"van-doc-demo-block"},[e("h2",{staticClass:"van-doc-demo-block__title"},[this._v(this._s(this.title))]),this._v(" "),this._t("default")],2)},staticRenderFns:[]};var I=n(1)(E,N,!1,function(t){n(22)},null,null).exports,z={name:"van-doc-demo-section",props:{name:String,title:String,background:String},computed:{demoName:function(){return this.name||this.getParentName()},style:function(){return{background:this.background}}},methods:{getParentName:function(){var t=this.$parent;if(t&&t.$options.name)return t.$options.name.replace("demo-","")}}},B={render:function(){var t=this.$createElement;return(this._self._c||t)("section",{staticClass:"van-doc-demo-section",class:"demo-"+this.demoName,style:this.style},[this._t("default")],2)},staticRenderFns:[]};var L=n(1)(z,B,!1,function(t){n(24)},null,null).exports,D=n(26),M=n.n(D);n(27);e.default=function(){P.map(function(t){r.a.component(t.name,t)})},n.d(e,"Nav",function(){return p}),n.d(e,"Header",function(){return y}),n.d(e,"Footer",function(){return w}),n.d(e,"VanDoc",function(){return c}),n.d(e,"Block",function(){return m}),n.d(e,"Content",function(){return S}),n.d(e,"Container",function(){return $}),n.d(e,"Simulator",function(){return A}),n.d(e,"DemoBlock",function(){return I}),n.d(e,"DemoSection",function(){return L}),n.d(e,"progress",function(){return M.a});var P=[p,y,w,c,m,S,$,A,I,L]},function(t,e){t.exports=n(3)},function(t,e,n){var i=n(6);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("4ea92526",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,'body{color:#333;font-size:16px;min-width:1100px;overflow-x:auto;background-color:#fff;-webkit-font-smoothing:antialiased;font-family:PingFang SC,Helvetica Neue,Arial,sans-serif}body,p{margin:0}h1,h2,h3,h4,h5,h6{margin:0;font-size:inherit}ol,ul{margin:0;padding:0;list-style:none}a{text-decoration:none}.van-doc-row{width:100%}@media (min-width:1440px){.van-doc-row{width:1440px;margin:0 auto}}code{display:block;font-size:13px;overflow-x:auto;font-weight:400;line-height:22px;border-radius:3px;margin-bottom:25px;position:relative;word-break:break-all;white-space:pre-wrap;color:#455a64;padding:18px 10px 18px 20px;background-color:#f1f4f8;font-family:Source Code Pro,Monaco,Inconsolata,monospace}code:after{top:5px;right:10px;position:absolute;color:#ccc;font-size:12px}pre{margin:0}pre+pre{margin-top:-10px}code.language-html:after{content:"HTML"}code.language-javascript:after{content:"JS"}code.language-css:after{content:"CSS"}.hljs{display:block;overflow-x:auto;padding:.5em;background:#fff}.hljs-subst{color:#455a64}.hljs-addition,.hljs-meta,.hljs-string,.hljs-symbol,.hljs-template-tag,.hljs-template-variable{color:#5758bb}.hljs-comment,.hljs-quote{color:#999}.hljs-bullet,.hljs-link,.hljs-literal,.hljs-number,.hljs-regexp{color:#32a973}.hljs-deletion,.hljs-variable{color:#88f}.hljs-built_in,.hljs-doctag,.hljs-keyword,.hljs-name,.hljs-section,.hljs-selector-class,.hljs-selector-id,.hljs-selector-tag,.hljs-strong,.hljs-tag,.hljs-title,.hljs-type{color:#0079f3}.hljs-emphasis{font-style:italic}.hljs-attribute{color:#e6550d}',""])},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;ra{font-weight:700}.van-doc-nav__subitem a{font-size:14px}.van-doc-nav__subitem a:hover{color:#0079f3}.van-doc-nav__subitem span{opacity:.6;font-size:13px}.van-doc-nav__group-title{font-size:12px;line-height:40px;padding-left:40px;color:rgba(69,90,100,.6)}@media (max-width:1300px){.van-doc-nav{min-width:220px;max-width:220px}.van-doc-nav__item a,.van-doc-nav__subitem a{line-height:22px}.van-doc-nav__subitem a{font-size:13px}}",""])},function(t,e,n){var i=n(11);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("2cefc454",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-block{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:20px}.van-doc-block .highlight{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}.van-doc-block .highlight pre{word-break:break-all}",""])},function(t,e,n){var i=n(13);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("25593cb0",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,'.van-doc-header{width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-bottom:1px solid #f1f4f8}.van-doc-header__top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 40px;height:60px;line-height:60px}.van-doc-header__top-nav{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right}.van-doc-header__top-nav>li{display:inline-block;position:relative;vertical-align:middle}.van-doc-header__top-nav-lang{padding:0 7px;font-size:14px;line-height:24px;display:block;border-radius:3px;text-align:center;color:#455a64;border:1px solid currentColor;font-family:Helvetica Neue,Arial,sans-serif;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.van-doc-header__top-nav-lang:hover{color:#0079f3}.van-doc-header__top-nav-item{margin:0 15px}.van-doc-header__top-nav-title{display:block;font-size:15px}.van-doc-header__top-nav-title svg{fill:#455a64;display:block;vertical-align:middle;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.van-doc-header__top-nav-title svg:hover{fill:#0079f3}.van-doc-header__top-nav-title.link{color:#34495e;border-bottom:1px solid transparent;-webkit-transition:.3s ease-in-out;transition:.3s ease-in-out}.van-doc-header__top-nav-title.link.active,.van-doc-header__top-nav-title.link:hover{color:#0079f3;border-bottom-color:#19b5fe}.van-doc-header__top-nav .van-doc-header__arrow:hover{color:#34495e}.van-doc-header__top-nav .van-doc-header__arrow:after{content:"";display:inline-block;vertical-align:middle;margin-top:-1px;margin-left:1px;margin-right:-4px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #ccc;pointer-events:none}.van-doc-header__logo{display:block}.van-doc-header__logo img,.van-doc-header__logo span{display:inline-block;vertical-align:middle}.van-doc-header__logo img{width:24px;margin-right:5px}.van-doc-header__logo span{font-size:22px;color:#333;font-family:Dosis,Source Sans Pro,Helvetica Neue,Arial,sans-serif}.van-doc-header__logo .van-doc-header__version{font-size:90%;padding-top:7px;opacity:.7;margin-left:3px;line-height:1}.van-doc-header__bottom{height:50px;line-height:50px}.van-doc-header__bottom-nav{text-align:center}.van-doc-header__bottom-nav li{display:inline-block}.van-doc-header__bottom-nav a{color:#fff;opacity:.8;display:block;padding:0 20px;font-size:14px}.van-doc-header__bottom-nav a.active{background-color:hsla(0,0%,100%,.1)}.van-doc-header__bottom-nav a.active,.van-doc-header__bottom-nav a:hover{opacity:1}',""])},function(t,e,n){var i=n(15);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("71d7b96b",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-footer{position:relative;background-color:#061a2a}.van-doc-footer ul{text-align:center}.van-doc-footer__item{margin-right:45px;display:inline-block}.van-doc-footer__item a{color:#b3b3b3;display:block;font-size:13px;line-height:72px;-webkit-transition:color .3s ease-in-out;transition:color .3s ease-in-out}.van-doc-footer__item a:hover{color:#fff}.github-corner{position:absolute;top:-50px;right:61px;height:50px;width:40px;overflow:hidden}.github-corner svg{fill:transparent;color:#fff;position:absolute;border:0;right:-29px;opacity:.9;-webkit-transition:.3s;transition:.3s;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.github-corner svg:hover{opacity:1;-webkit-transform:rotate(-45deg) scale(1.15)!important;transform:rotate(-45deg) scale(1.15)!important}.github-corner .octo-arm{-webkit-animation:octocat-wave 3s ease-in-out infinite;animation:octocat-wave 3s ease-in-out infinite}@-webkit-keyframes octocat-wave{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}@keyframes octocat-wave{0%,to{-webkit-transform:rotate(0);transform:rotate(0)}20%,60%{-webkit-transform:rotate(-25deg);transform:rotate(-25deg)}40%,80%{-webkit-transform:rotate(10deg);transform:rotate(10deg)}}",""])},function(t,e,n){var i=n(17);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("279782d6",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,'.van-doc-content{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;padding:0 0 75px}.van-doc-content a{color:#0079f3}.van-doc-content section{padding:13px 40px;overflow:hidden}.van-doc-content section>h1,.van-doc-content section>h2,.van-doc-content section>h3,.van-doc-content section>h4,.van-doc-content section>h5,.van-doc-content section>h6{line-height:1.5;font-weight:400;margin:20px 0 10px;color:#333}.van-doc-content section>h1{font-size:36px}.van-doc-content section>h2{font-size:30px;margin-bottom:25px}.van-doc-content section>h3{font-size:22px;margin-top:45px}.van-doc-content section>h2+h3{margin-top:25px}.van-doc-content section>h4{font-size:16px;margin-bottom:15px}.van-doc-content section>h5{font-size:14px}.van-doc-content section>h6{font-size:14px;color:#666}.van-doc-content section>p{margin:15px 0;font-size:14px;line-height:26px;color:#34495e}.van-doc-content section>ol li,.van-doc-content section>ul li{color:#34495e;font-size:14px;line-height:22px;margin:5px 0 5px 10px;padding-left:15px;position:relative}.van-doc-content section>ol li:before,.van-doc-content section>ul li:before{content:"";position:absolute;top:0;left:0;width:6px;height:6px;margin-top:8px;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #666}.van-doc-content section>ol li li,.van-doc-content section>ul li li{margin-left:0}.van-doc-content section>hr{border:0 none;border-top:1px solid #eee}.van-doc-content section li>code,.van-doc-content section p>code,.van-doc-content section table code{margin:2px;padding:2px 7px;display:inline}.van-doc-content blockquote{padding:16px;margin:20px 0;font-size:14px;border-radius:4px;background-color:#ecf9ff;color:rgba(52,73,94,.8);border-left:5px solid #50bfff}.van-doc-content table{width:100%;font-size:13px;line-height:1.5;margin-bottom:45px;background-color:#fff;border-collapse:collapse;color:#34495e}.van-doc-content table th{padding:8px 10px;text-align:left;font-weight:400;background-color:#f1f4f8}.van-doc-content table th:first-child{padding-left:10px}.van-doc-content table td{padding:8px;border-bottom:1px solid #f1f4f8}.van-doc-content table code{font-size:13px;padding:0 8px;font-family:inherit;word-break:keep-all}.van-doc-content--changelog strong{font-size:16px;font-weight:500}.van-doc-content--changelog section{padding-bottom:30px}.van-doc-content--changelog section>h2{margin-top:50px;margin-bottom:10px}.van-doc-content--changelog section>h2+p,.van-doc-content--changelog section>h2+p code{margin:0}.van-doc-content--changelog section>h2 a{color:inherit;font-size:24px;-webkit-font-smoothing:auto}.van-doc-content--changelog section>h2:first-child,.van-doc-content--changelog section>h2:nth-child(2){margin-top:20px}',""])},function(t,e,n){var i=n(19);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("62581546",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-container{overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;padding-left:240px}.van-doc-container--with-simulator{padding-right:400px}@media (max-width:1300px){.van-doc-container--with-simulator{padding-right:360px}}",""])},function(t,e,n){var i=n(21);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("f4085a02",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-simulator{z-index:1;overflow:hidden;position:absolute;border-radius:6px;background:#fafafa;-webkit-box-sizing:border-box;box-sizing:border-box;right:40px;width:360px;min-width:360px;top:100px;-webkit-box-shadow:#ebedf0 0 4px 12px;box-shadow:0 4px 12px #ebedf0}@media (max-width:1300px){.van-doc-simulator{width:320px;min-width:320px}}@media (max-width:1100px){.van-doc-simulator{left:750px;right:auto}}@media (min-width:1440px){.van-doc-simulator{right:50%;margin-right:-680px}}.van-doc-simulator-fixed{position:fixed;top:40px}.van-doc-simulator iframe{width:100%;display:block}",""])},function(t,e,n){var i=n(23);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("4f1c5121",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-demo-block__title{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:35px 15px 15px}.van-doc-demo-block:first-of-type .van-doc-demo-block__title{padding-top:20px}",""])},function(t,e,n){var i=n(25);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(2)("9caa41b0",i,!0)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,".van-doc-demo-section{min-height:100vh;padding-bottom:20px;-webkit-box-sizing:border-box;box-sizing:border-box}.van-doc-demo-section__title{margin:0;padding:15px;font-size:16px;line-height:1.5;font-weight:400;text-transform:capitalize}.van-doc-demo-section__title+.van-doc-demo-block .van-doc-demo-block__title{padding-top:0}",""])},function(t,e,n){var i,r;"function"==typeof Symbol&&Symbol.iterator;void 0===(r="function"==typeof(i=function(){var t,e,n={version:"0.2.0"},i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function r(t,e,n){return tn?n:t}function o(t){return 100*(-1+t)}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(i[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=r(t,i.minimum,1),n.status=1===t?null:t;var c=n.render(!e),l=c.querySelector(i.barSelector),u=i.speed,d=i.easing;return c.offsetWidth,a(function(e){""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),s(l,function(t,e,n){var r;return(r="translate3d"===i.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,r}(t,u,d)),1===t?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout(function(){s(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),e()},u)},u)):setTimeout(e,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){return n.status||n.set(0),i.trickle&&function t(){setTimeout(function(){n.status&&(n.trickle(),t())},i.trickleSpeed)}(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!=typeof t&&(t=(1-e)*r(Math.random()*e,.1,.95)),e=r(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},t=0,e=0,n.promise=function(i){return i&&"resolved"!==i.state()?(0===e&&n.start(),t++,e++,i.always(function(){0==--e?(t=0,n.done()):n.set((t-e)/t)}),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=i.template;var r,a=e.querySelector(i.barSelector),c=t?"-100":o(n.status||0),u=document.querySelector(i.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),i.showSpinner||(r=e.querySelector(i.spinnerSelector))&&h(r),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(e),e},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(i.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var a=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),s=function(){var t=["Webkit","O","Moz","ms"],e={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()}),e[n]||(e[n]=function(e){var n=document.body.style;if(e in n)return e;for(var i,r=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);r--;)if((i=t[r]+o)in n)return i;return e}(n))}function i(t,e,i){e=n(e),t.style[e]=i}return function(t,e){var n,r,o=arguments;if(2==o.length)for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&i(t,n,r);else i(t,o[1],o[2])}}();function c(t,e){var n="string"==typeof t?t:d(t);return n.indexOf(" "+e+" ")>=0}function l(t,e){var n=d(t),i=n+e;c(n,e)||(t.className=i.substring(1))}function u(t,e){var n,i=d(t);c(t,e)&&(n=i.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function d(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n})?i.call(e,n,e,t):i)||(t.exports=r)},function(t,e,n){var i=n(28);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(29)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){(t.exports=n(0)(void 0)).push([t.i,"/* Make clicks pass-through */\n#nprogress {\n pointer-events: none;\n}\n#nprogress .bar {\n background: rgba(52, 152, 219, .7);\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n}\n/* Fancy blur effect */\n#nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n -webkit-box-shadow: 0 0 5px rgba(52, 152, 219, .7), 0 0 2px rgba(52, 152, 219, .7);\n box-shadow: 0 0 5px rgba(52, 152, 219, .7), 0 0 2px rgba(52, 152, 219, .7);\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n}\n/* Remove these to get rid of the spinner */\n#nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n}\n#nprogress .spinner-icon {\n display: none;\n width: 12px;\n height: 12px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: rgba(52, 152, 219, .7);\n border-left-color: rgba(52, 152, 219, .7);\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n}\n.nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n}\n.nprogress-custom-parent #nprogress .spinner, .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n}\n@-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n}\n@keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n",""])},function(t,e,n){var i,r,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var i=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}}(),c=null,l=0,u=[],d=n(30);function h(t,e){for(var n=0;n=0&&u.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){const e=function(){0;return n.nc}();e&&(t.attrs.nonce=e)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function b(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=c||(c=m(e)),i=k.bind(null,n,a,!1),r=k.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),i=function(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=d(i));r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),i=function(t,e){var n=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return h(n,e),function(t){for(var i=[],r=0;r2?n-2:0),r=2;rn&&e>p?"horizontal":n>e&&n>p?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0}}},m=!1;if(!a.h)try{var g={};Object.defineProperty(g,"passive",{get:function(){m=!0}}),window.addEventListener("test-passive",null,g)}catch(t){}function b(t,e,n,i){void 0===i&&(i=!1),a.h||t.addEventListener(e,n,!!m&&{capture:!1,passive:i})}function y(t,e,n){a.h||t.removeEventListener(e,n)}function x(t){t.stopPropagation()}function k(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&x(t)}var w=Object(a.k)("overlay"),C=w[0],S=w[1];function _(t,e,n,r){var a=Object(i.a)({zIndex:e.zIndex},e.customStyle);return t("transition",{attrs:{name:"van-fade"}},[t("div",o()([{directives:[{name:"show",value:e.visible}],style:a,class:[S(),e.className],on:{touchmove:function(t){k(t,!0)}}},u(r,!0)]))])}_.props={zIndex:Number,className:null,visible:Boolean,customStyle:Object};var O,$=C(_),T={className:"",customStyle:{}};function j(){if(f.top){var t=f.top.vm;t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}function A(){if(O||(O=h($,{on:{click:j}})),f.top){var t=f.top,e=t.vm,n=t.config,r=e.$el,o=r&&r.parentNode?r.parentNode:document.body;o&&o.appendChild(O.$el),Object(i.a)(O,T,n,{visible:!0})}else O.visible=!1}function E(t){var e=f.stack;e.length&&(f.top.vm===t?(e.pop(),A()):f.stack=e.filter(function(e){return e.vm!==t}))}function N(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=window.getComputedStyle(n).overflowY;if("scroll"===i||"auto"===i)return n;n=n.parentNode}return e}function I(t){return"scrollTop"in t?t.scrollTop:t.pageYOffset}function z(t){return(t===window?0:t.getBoundingClientRect().top)+I(window)}function B(t){return t===window?t.innerHeight:t.getBoundingClientRect().height}var L={mixins:[v],props:{value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[String,Number],getContainer:[String,Function],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}},data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(t){var e=t?"open":"close";this.inited=this.inited||this.value,this[e](),this.$emit(e)},getContainer:function(){this.move()},overlay:function(){this.renderOverlay()}},mounted:function(){this.getContainer&&this.move(),this.value&&this.open()},activated:function(){this.value&&this.open()},beforeDestroy:function(){this.close(),this.getContainer&&this.$parent&&this.$parent.$el&&this.$parent.$el.appendChild(this.$el)},deactivated:function(){this.close()},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(f.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.lockScroll&&(b(document,"touchstart",this.touchStart),b(document,"touchmove",this.onTouchMove),f.lockCount||document.body.classList.add("van-overflow-hidden"),f.lockCount++))},close:function(){this.opened&&(this.lockScroll&&(f.lockCount--,y(document,"touchstart",this.touchStart),y(document,"touchmove",this.onTouchMove),f.lockCount||document.body.classList.remove("van-overflow-hidden")),this.opened=!1,E(this),this.$emit("input",!1))},move:function(){var t,e=this.getContainer;e?t="string"==typeof e?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==this.$el.parentNode&&t.appendChild(this.$el),this.overlay&&A()},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=N(t.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,o=n.scrollTop,a="11";0===o?a=r>=i?"00":"01":o+r>=i&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||k(t,!0)},renderOverlay:function(){var t,e;!this.$isServer&&this.value&&(this.overlay?(t=this,e={zIndex:f.zIndex++,className:this.overlayClass,customStyle:this.overlayStyle},f.stack.some(function(e){return e.vm===t})||(f.stack.push({vm:t,config:e}),A())):E(this),this.updateZIndex())},updateZIndex:function(){var t=this;this.$nextTick(function(){t.$el.style.zIndex=f.zIndex++})}}},D=Object(a.k)("info"),M=D[0],P=D[1];function F(t,e,n,i){if(Object(a.d)(e.info)&&""!==e.info)return t("div",o()([{class:P()},u(i,!0)]),[e.info])}F.props={info:[String,Number]};var R=M(F),U=Object(a.k)("icon")[0];function V(t,e,n,i){var r,a=!!(r=e.name)&&-1!==r.indexOf("/");return t(e.tag,o()([{class:[e.classPrefix,a?"van-icon--image":e.classPrefix+"-"+e.name],style:{color:e.color,fontSize:e.size}},u(i,!0)]),[n.default&&n.default(),a&&t("img",{attrs:{src:e.name}}),t(R,{attrs:{info:e.info}})])}V.props={name:String,size:String,color:String,info:[String,Number],tag:{type:String,default:"i"},classPrefix:{type:String,default:"van-icon"}};var H=U(V),q=Object(a.k)("loading"),W=q[0],Y=q[1],X="#c9c9c9";function K(t,e,n,i){var r=e.color,a=e.size,s=e.type,c="white"===r||"black"===r?r:"",l={color:"black"===r?X:r,width:a,height:a},d=[];if("spinner"===s)for(var h=0;h<12;h++)d.push(t("i"));var f="circular"===s&&t("svg",{class:Y("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]);return t("div",o()([{class:Y([s,c]),style:l},u(i,!0)]),[t("span",{class:Y("spinner",s)},[d,f])])}K.props={size:String,type:{type:String,default:"circular"},color:{type:String,default:X}};var Q=W(K),G=Object(a.k)("popup"),J=G[0],Z=G[1],tt=J({mixins:[L],props:{position:String,transition:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},render:function(t){var e,n=this;if(this.shouldRender){var i=this.position,r=function(t){return function(){return n.$emit(t)}};return t("transition",{attrs:{name:this.transition||(i?"van-popup-slide-"+i:"van-fade")},on:{afterEnter:r("opened"),afterLeave:r("closed")}},[t("div",{directives:[{name:"show",value:this.value}],class:Z((e={},e[i]=i,e))},[this.slots()])])}}}),et=Object(a.k)("actionsheet"),nt=et[0],it=et[1];function rt(t,e,n,i){var r=e.title,a=e.cancelText,s=function(){d(i,"input",!1),d(i,"cancel")};return t(tt,o()([{class:it({"safe-area-inset-bottom":e.safeAreaInsetBottom}),attrs:{value:e.value,position:"bottom",overlay:e.overlay,lazyRender:e.lazyRender,getContainer:e.getContainer,closeOnClickOverlay:e.closeOnClickOverlay},on:{input:function(t){d(i,"input",t)}}},u(i)]),[r?t("div",{class:[it("header"),"van-hairline--top-bottom"]},[r,t(H,{attrs:{name:"close"},class:it("close"),on:{click:s}})]):e.actions.map(function(e,n){return t("div",{class:[it("item",{disabled:e.disabled||e.loading}),e.className,"van-hairline--top"],on:{click:function(t){t.stopPropagation(),e.disabled||e.loading||(e.callback&&e.callback(e),d(i,"select",e,n))}}},[e.loading?t(Q,{class:it("loading"),attrs:{size:"20px"}}):[t("span",{class:it("name")},[e.name]),e.subname&&t("span",{class:it("subname")},[e.subname])]])}),n.default&&t("div",{class:it("content")},[n.default()]),a&&t("div",{class:it("cancel"),on:{click:s}},[a])])}rt.props=Object(i.a)({},L.props,{title:String,actions:Array,cancelText:String,safeAreaInsetBottom:Boolean,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var ot=nt(rt);function at(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var st=n(19);function ct(t){return Array.isArray(t)?t.map(function(t){return ct(t)}):"object"==typeof t?Object(st.a)({},t):t}var lt={title:String,loading:Boolean,showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,visibleItemCount:{type:Number,default:5},itemHeight:{type:Number,default:44}},ut=Object(a.k)("picker-column"),dt=ut[0],ht=ut[1],ft=dt({props:{valueKey:String,className:String,itemHeight:Number,defaultIndex:Number,initialOptions:Array,visibleItemCount:Number},data:function(){return{startY:0,offset:0,duration:0,startOffset:0,options:ct(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{defaultIndex:function(){this.setIndex(this.defaultIndex)}},computed:{count:function(){return this.options.length}},methods:{onTouchStart:function(t){this.startY=t.touches[0].clientY,this.startOffset=this.offset,this.duration=0},onTouchMove:function(t){k(t);var e=t.touches[0].clientY-this.startY;this.offset=Object(a.j)(this.startOffset+e,-this.count*this.itemHeight,this.itemHeight)},onTouchEnd:function(){if(this.offset!==this.startOffset){this.duration=200;var t=Object(a.j)(Math.round(-this.offset/this.itemHeight),0,this.count-1);this.setIndex(t,!0)}},adjustIndex:function(t){for(var e=t=Object(a.j)(t,0,this.count);e=0;n--)if(!this.isDisabled(this.options[n]))return n},isDisabled:function(t){return Object(a.g)(t)&&t.disabled},getOptionText:function(t){return Object(a.g)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){t=this.adjustIndex(t)||0,this.offset=-t*this.itemHeight,t!==this.currentIndex&&(this.currentIndex=t,e&&this.$emit("change",t))},setValue:function(t){for(var e=this.options,n=0;nn&&(e=e.slice(0,n),t.value=e),e},onInput:function(t){this.$emit("input",this.format(t.target))},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.readonly&&this.blur()},onBlur:function(t){this.focused=!1,this.$emit("blur",t),Object(a.e)()&&window.scrollTo(0,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)},onClickLeftIcon:function(){this.$emit("click-left-icon")},onClickRightIcon:function(){this.$emit("click-icon"),this.$emit("click-right-icon"),this.onIconClick&&this.onIconClick()},onClear:function(t){k(t),this.$emit("input",""),this.$emit("clear")},onKeypress:function(t){if("number"===this.type){var e=t.keyCode,n=-1===String(this.value).indexOf(".");e>=48&&e<=57||46===e&&n||45===e||k(t)}"search"===this.type&&13===t.keyCode&&this.blur(),this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(a.g)(this.autosize)){var n=this.autosize,i=n.maxHeight,r=n.minHeight;i&&(e=Math.min(e,i)),r&&(e=Math.max(e,r))}e&&(t.style.height=e+"px")}},renderInput:function(){var t=this.$createElement,e={ref:"input",class:Bt("control",this.inputAlign),domProps:{value:this.value},attrs:Object(i.a)({},this.$attrs,{readonly:this.readonly}),on:this.listeners};return"textarea"===this.type?t("textarea",o()([{},e])):t("input",o()([{attrs:{type:this.type}},e]))},renderLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:Bt("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(H,{attrs:{name:this.leftIcon}})])},renderRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||e("icon")||this.rightIcon||this.icon)return t("div",{class:Bt("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||e("icon")||t(H,{attrs:{name:this.rightIcon||this.icon}})])}},render:function(t){var e,n=this.slots,i=this.labelAlign,r={icon:this.renderLeftIcon};return n("label")&&(r.title=function(){return n("label")}),t(Et,{attrs:{icon:this.leftIcon,size:this.size,title:this.label,center:this.center,border:this.border,isLink:this.isLink,required:this.required,titleStyle:this.labelStyle,titleClass:Bt("label",i)},class:Bt((e={error:this.error,disabled:this.$attrs.disabled},e["label-"+i]=i,e["min-height"]="textarea"===this.type&&!this.autosize,e)),scopedSlots:r},[t("div",{class:Bt("body")},[this.renderInput(),this.showClear&&t(H,{attrs:{name:"clear"},class:Bt("clear"),on:{touchstart:this.onClear}}),this.renderRightIcon(),n("button")&&t("div",{class:Bt("button")},[n("button")])]),this.errorMessage&&t("div",{class:Bt("error-message",this.errorMessageAlign)},[this.errorMessage])])}}),Dt=Object(a.k)("toast"),Mt=Dt[0],Pt=Dt[1],Ft=["success","fail","loading"],Rt=Mt({mixins:[L],props:{className:null,forbidClick:Boolean,message:[String,Number],type:{type:String,default:"text"},loadingType:{type:String,default:"circular"},position:{type:String,default:"middle"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickale()},destroyed:function(){this.toggleClickale()},watch:{value:function(){this.toggleClickale()},forbidClick:function(){this.toggleClickale()}},methods:{toggleClickale:function(){var t=this.value&&this.forbidClick;if(this.clickable!==t){this.clickable=t;var e=t?"add":"remove";document.body.classList[e]("van-toast--unclickable")}}},render:function(t){var e=this,n=this.type,i=this.message,r=-1!==Ft.indexOf(n)?"default":n;return t("transition",{attrs:{name:"van-fade"}},[t("div",{directives:[{name:"show",value:this.value}],class:[Pt([r,this.position]),this.className]},[function(){switch(r){case"text":return t("div",[i]);case"html":return t("div",{domProps:{innerHTML:i}});default:return["loading"===n?t(Q,{attrs:{color:"white",type:e.loadingType}}):t(H,{class:Pt("icon"),attrs:{name:n}}),Object(a.d)(i)&&t("div",{class:Pt("text")},[i])]}}()])])}}),Ut={type:"text",mask:!1,value:!0,message:"",className:"",onClose:null,duration:3e3,position:"middle",forbidClick:!1,loadingType:"circular",getContainer:"body",overlayStyle:null},Vt=function(t){return Object(a.g)(t)?t:{message:t}},Ht=[],qt=!1,Wt=Object(i.a)({},Ut);function Yt(t){void 0===t&&(t={});var e=function(){if(a.h)return{};if(!Ht.length||qt){var t=new(s.default.extend(Rt))({el:document.createElement("div")});Ht.push(t)}return Ht[Ht.length-1]}();return e.value&&e.updateZIndex(),t=Object(i.a)({},Wt,Vt(t),{clear:function(){if(e.value=!1,t.onClose&&t.onClose(),qt&&!a.h){clearTimeout(e.timer),Ht=Ht.filter(function(t){return t!==e});var n=e.$el.parentNode;n&&n.removeChild(e.$el),e.$destroy()}}}),Object(i.a)(e,function(t){return t.overlay=t.mask,t}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;Yt[t]=(e=t,function(t){return Yt(Object(i.a)({type:e},Vt(t)))})}),Yt.clear=function(t){Ht.length&&(t?(Ht.forEach(function(t){t.clear()}),Ht=[]):qt?Ht.shift().clear():Ht[0].clear())},Yt.setDefaultOptions=function(t){Object(i.a)(Wt,t)},Yt.resetDefaultOptions=function(){Wt=Object(i.a)({},Ut)},Yt.allowMultiple=function(t){void 0===t&&(t=!0),qt=t},Yt.install=function(){s.default.use(Rt)},s.default.prototype.$toast=Yt;var Xt=Yt,Kt=Object(a.k)("button"),Qt=Kt[0],Gt=Kt[1];function Jt(t,e,n,i){var r=e.tag,a=e.type,s=e.disabled,c=e.loading,l=e.hairline,h=e.loadingText,f=[Gt([a,e.size,{loading:c,disabled:s,hairline:l,block:e.block,plain:e.plain,round:e.round,square:e.square,"bottom-action":e.bottomAction}]),{"van-hairline--surround":l}];return t(r,o()([{class:f,attrs:{type:e.nativeType,disabled:s},on:{click:function(t){c||s||(d(i,"click",t),_t(i))},touchstart:function(t){d(i,"touchstart",t)}}},u(i)]),[c?[t(Q,{attrs:{size:e.loadingSize,color:"default"===a?void 0:""}}),h&&t("span",{class:Gt("loading-text")},[h])]:t("span",{class:Gt("text")},[n.default?n.default():e.text])])}Jt.props=Object(i.a)({},Ot,{text:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,nativeType:String,loadingText:String,bottomAction:Boolean,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var Zt,te=Qt(Jt),ee=Object(a.k)("dialog"),ne=ee[0],ie=ee[1],re=ee[2],oe=ne({mixins:[L],props:{title:String,message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,showConfirmButton:{type:Boolean,default:!0},overlay:{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.beforeClose?(this.loading[t]=!0,this.beforeClose(t,function(n){!1!==n&&e.onClose(t),e.loading[t]=!1})):this.onClose(t)},onClose:function(t){this.close(),this.callback&&this.callback(t)}},render:function(t){var e,n=this;if(this.shouldRender){var i=this.title,r=this.message,o=this.messageAlign,a=this.slots(),s=i&&t("div",{class:ie("header",{isolated:!r&&!a})},[i]),c=(a||r)&&t("div",{class:ie("content")},[a||t("div",{domProps:{innerHTML:r},class:ie("message",(e={"has-title":i},e[o]=o,e))})]),l=this.showCancelButton&&this.showConfirmButton,u=t("div",{class:["van-hairline--top",ie("footer",{buttons:l})]},[this.showCancelButton&&t(te,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||re("cancel")},class:ie("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){n.handleAction("cancel")}}}),this.showConfirmButton&&t(te,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||re("confirm")},class:[ie("confirm"),{"van-hairline--left":l}],style:{color:this.confirmButtonColor},on:{click:function(){n.handleAction("confirm")}}})]);return t("transition",{attrs:{name:"van-dialog-bounce"}},[t("div",{directives:[{name:"show",value:this.value}],class:[ie(),this.className]},[s,c,u])])}}});function ae(t){return a.h?Promise.resolve():new Promise(function(e,n){Zt&&Object(a.f)(Zt.$el)||(Zt&&Zt.$destroy(),(Zt=new(s.default.extend(oe))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",function(t){Zt.value=t})),Object(i.a)(Zt,ae.currentOptions,t,{resolve:e,reject:n})})}ae.defaultOptions={value:!0,title:"",message:"",overlay:!0,className:"",lockScroll:!0,beforeClose:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnClickOverlay:!1,callback:function(t){Zt["confirm"===t?"resolve":"reject"](t)}},ae.alert=ae,ae.confirm=function(t){return ae(Object(i.a)({showCancelButton:!0},t))},ae.close=function(){Zt&&(Zt.value=!1)},ae.setDefaultOptions=function(t){Object(i.a)(ae.currentOptions,t)},ae.resetDefaultOptions=function(){ae.currentOptions=Object(i.a)({},ae.defaultOptions)},ae.resetDefaultOptions(),ae.install=function(){s.default.use(oe)},s.default.prototype.$dialog=ae;var se=ae,ce=Object(a.k)("address-edit-detail"),le=ce[0],ue=ce[1],de=ce[2],he=Object(a.c)(),fe=le({props:{value:String,error:Boolean,focused:Boolean,detailRows:Number,searchResult:Array,showSearchResult:Boolean},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},renderFinish:function(){var t=this.$createElement;if(this.value&&this.focused&&he)return t("div",{class:ue("finish"),on:{click:this.onFinish}},[de("complete")])},renderSearchResult:function(){var t=this,e=this.$createElement,n=this.searchResult;if(this.focused&&n&&this.showSearchResult)return n.map(function(n){return e(Et,{key:n.name+n.address,attrs:{title:n.name,label:n.address,icon:"location-o",clickable:!0},on:{click:function(){t.onSelect(n)}}})})}},render:function(t){return t(Et,{class:ue()},[t(Lt,{attrs:{autosize:!0,rows:this.detailRows,clearable:!he,type:"textarea",maxlength:"200",value:this.value,error:this.error,label:de("label"),placeholder:de("placeholder")},ref:"field",scopedSlots:{icon:this.renderFinish},on:Object(i.a)({},this.$listeners)}),this.renderSearchResult()])}}),pe={value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1},size:{type:String,default:"30px"}},ve=Object(a.k)("switch"),me=ve[0],ge=ve[1];function be(t,e,n,i){var r=e.value,a=e.loading,s=e.disabled,c=e.activeValue,l=e.inactiveValue,h=r===c,f={fontSize:e.size,backgroundColor:h?e.activeColor:e.inactiveColor};return t("div",o()([{class:ge({on:h,disabled:s}),style:f,on:{click:function(){if(!s&&!a){var t=h?l:c;d(i,"input",t),d(i,"change",t)}}}},u(i)]),[t("div",{class:ge("node")},[a&&t(Q,{class:ge("loading")})])])}be.props=pe;var ye=me(be),xe=Object(a.k)("switch-cell"),ke=xe[0],we=xe[1];function Ce(t,e,n,r){return t(Et,o()([{attrs:{center:!0,title:e.title,border:e.border},class:we()},u(r)]),[t(ye,{props:Object(i.a)({},e),on:Object(i.a)({},r.listeners)})])}Ce.props=Object(i.a)({},pe,{title:String,border:Boolean,size:{type:String,default:"24px"}});var Se=ke(Ce),_e=Object(a.k)("address-edit"),Oe=_e[0],$e=_e[1],Te=_e[2],je={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1},Ae=Oe({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,showSetDefault:Boolean,showSearchResult:Boolean,saveButtonText:String,deleteButtonText:String,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},detailRows:{type:Number,default:1},addressInfo:{type:Object,default:function(){return Object(i.a)({},je)}},telValidator:{type:Function,default:at},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:!1,name:!1,postalCode:!1,addressDetail:!1}}},computed:{areaListLoaded:function(){return Object(a.g)(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,n=t.province,i=t.city,r=t.county;if(t.areaCode){var o=[e,n,i,r];return n&&n===i&&o.splice(1,1),o.filter(function(t){return t}).join("/")}return""}},watch:{addressInfo:{handler:function(t){this.data=Object(i.a)({},je,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]=!1,this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){t.some(function(t){return!t.code})?Xt(Te("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,Object(i.a)(this.data,e)}},onSave:function(){var t=this,e=["name","tel","areaCode","addressDetail"];this.showPostal&&e.push("postalCode"),e.every(function(e){var n=t.getErrorMessage(e);return n&&(t.errorInfo[e]=!0,Xt(n)),!n})&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var n=this.validator(t,e);if(n)return n}switch(t){case"name":return e?"":Te("nameEmpty");case"tel":return this.telValidator(e)?"":Te("telInvalid");case"areaCode":return e?"":Te("areaEmpty");case"addressDetail":return e?"":Te("addressEmpty");case"postalCode":return e&&!/^\d{6}$/.test(e)?Te("postalEmpty"):""}},onDelete:function(){var t=this;se.confirm({title:Te("confirmDelete")}).then(function(){t.$emit("delete",t.data)}).catch(function(){t.$emit("cancel-delete",t.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout(function(){t.detailFocused=!1})}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=function(t){return function(){return e.onFocus(t)}},o=this.searchResult.length&&this.detailFocused;return t("div",{class:$e()},[t(Lt,{attrs:{clearable:!0,label:Te("name"),placeholder:Te("namePlaceholder"),error:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(t){n.name=t}}}),t(Lt,{attrs:{clearable:!0,type:"tel",label:Te("tel"),placeholder:Te("telPlaceholder"),error:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(t){n.tel=t}}}),t(Lt,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,label:Te("area"),placeholder:Te("areaPlaceholder"),value:this.areaText},on:{click:function(){e.showAreaPopup=!0}}}),t(fe,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:n.addressDetail,error:i.addressDetail,detailRows:this.detailRows,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:r("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(Lt,{directives:[{name:"show",value:!o}],attrs:{type:"tel",maxlength:"6",label:Te("postal"),placeholder:Te("postal"),error:i.postalCode},on:{focus:r("postalCode")},model:{value:n.postalCode,callback:function(t){n.postalCode=t}}}),this.slots(),this.showSetDefault&&t(Se,{directives:[{name:"show",value:!o}],attrs:{title:Te("defaultAddress")},on:{change:function(t){e.$emit("change-default",t)}},model:{value:n.isDefault,callback:function(t){n.isDefault=t}}}),t("div",{directives:[{name:"show",value:!o}],class:$e("buttons")},[t(te,{attrs:{block:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||Te("save")},on:{click:this.onSave}}),this.showDelete&&t(te,{attrs:{block:!0,loading:this.isDeleting,text:this.deleteButtonText||Te("delete")},on:{click:this.onDelete}})]),t(tt,{attrs:{position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(wt,{ref:"area",attrs:{loading:!this.areaListLoaded,value:n.areaCode,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),Ee=Object(a.k)("radio-group"),Ne=Ee[0],Ie=Ee[1],ze=Ne({props:{value:null,disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}},render:function(t){return t("div",{class:Ie()},[this.slots()])}}),Be={data:function(){return{parent:null}},methods:{findParent:function(t){for(var e=this.$parent;e;){if(e.$options.name===t){this.parent=e;break}e=e.$parent}}}},Le=function(t,e){return{mixins:[Be],props:{name:null,value:null,disabled:Boolean,checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},created:function(){this.bindGroup&&this.findParent(t)},computed:{isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},iconStyle:function(){var t=this.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}}},render:function(){var t=this,n=arguments[0],i=this.slots,r=this.checked,o=i("icon",{checked:r})||n(H,{attrs:{name:"success"},style:this.iconStyle}),a=i()&&n("span",{class:e("label",[this.labelPosition,{disabled:this.isDisabled}]),on:{click:this.onClickLabel}},[i()]);return n("div",{class:e(),on:{click:function(e){t.$emit("click",e)}}},[n("div",{class:e("icon",[this.shape,{disabled:this.isDisabled,checked:r}]),on:{click:this.onClickIcon}},[o]),a])}}},De=Object(a.k)("radio"),Me=(0,De[0])({mixins:[Le("van-radio-group",De[1])],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:{onClickIcon:function(){this.isDisabled||(this.currentValue=this.name)},onClickLabel:function(){this.isDisabled||this.labelDisabled||(this.currentValue=this.name)}}}),Pe=Object(a.k)("address-item"),Fe=Pe[0],Re=Pe[1];function Ue(t,e,n,i){var r=e.disabled,a=e.switchable;return t(Et,o()([{class:Re({disabled:r,unswitchable:!a}),attrs:{valueClass:Re("value"),clickable:a&&!r},scopedSlots:{default:function(){var n=e.data,i=[t("div",{class:Re("name")},[n.name+","+n.tel]),t("div",{class:Re("address")},[n.address])];return a&&!r?t(Me,{attrs:{name:n.id}},[i]):i},"right-icon":function(){return t(H,{attrs:{name:"edit"},class:Re("edit"),on:{click:function(t){t.stopPropagation(),d(i,"edit")}}})}},on:{click:function(){a&&d(i,"select")}}},u(i)]))}Ue.props={data:Object,disabled:Boolean,switchable:Boolean};var Ve=Fe(Ue),He=Object(a.k)("address-list"),qe=He[0],We=He[1],Ye=He[2];function Xe(t,e,n,i){var r=function(n,r){return n.map(function(n,o){return t(Ve,{attrs:{data:n,disabled:r,switchable:e.switchable},key:n.id,on:{select:function(){d(i,r?"select-disabled":"select",n,o)},edit:function(){d(i,r?"edit-disabled":"edit",n,o)}}})})},a=r(e.list),s=r(e.disabledList,!0);return t("div",o()([{class:We()},u(i)]),[n.top&&n.top(),t(ze,{attrs:{value:e.value},on:{input:function(t){d(i,"input",t)}}},[a]),e.disabledText&&t("div",{class:We("disabled-text")},[e.disabledText]),s,n.default&&n.default(),t(te,{attrs:{square:!0,size:"large",type:"danger",text:e.addButtonText||Ye("add")},class:We("add"),on:{click:function(){d(i,"add")}}})])}Xe.props={list:Array,disabledList:Array,disabledText:String,addButtonText:String,value:[String,Number],switchable:{type:Boolean,default:!0}};var Ke=qe(Xe),Qe=Object(a.k)("badge"),Ge=Qe[0],Je=Qe[1],Ze=Ge({props:{url:String,info:[String,Number],title:String},inject:["vanBadgeGroup"],created:function(){this.parent.badges.push(this)},beforeDestroy:function(){var t=this;this.parent.badges=this.parent.badges.filter(function(e){return e!==t})},computed:{parent:function(){return this.vanBadgeGroup},select:function(){return this.parent.badges.indexOf(this)===+this.parent.activeKey}},methods:{onClick:function(){var t=this.parent.badges.indexOf(this);this.$emit("click",t),this.parent.$emit("change",t)}},render:function(t){return t("a",{attrs:{href:this.url},class:[Je({select:this.select}),"van-hairline"],on:{click:this.onClick}},[t("div",{class:Je("text")},[this.title,t(R,{attrs:{info:this.info},class:Je("info")})])])}}),tn=Object(a.k)("badge-group"),en=tn[0],nn=tn[1],rn=en({props:{activeKey:{type:[Number,String],default:0}},provide:function(){return{vanBadgeGroup:this}},data:function(){return{badges:[]}},render:function(t){return t("div",{class:[nn(),"van-hairline--top-bottom"]},[this.slots()])}}),on=n(4),an=Object(a.k)("tag"),sn=an[0],cn=an[1],ln={danger:on.d,primary:on.a,success:on.c};function un(t,e,n,i){var r,a=e.type,s=e.mark,c=e.plain,l=e.round,d=e.size,h=e.color||a&&ln[a]||on.b,f=((r={})[c?"color":"backgroundColor"]=h,r);e.textColor&&(f.color=e.textColor);var p={mark:s,plain:c,round:l};return d&&(p[d]=d),t("span",o()([{style:f,class:[cn(p),{"van-hairline--surround":c}]},u(i,!0)]),[n.default&&n.default()])}un.props={size:String,type:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String};var dn=sn(un),hn=Object(a.k)("card"),fn=hn[0],pn=hn[1];function vn(t,e,n,i){var r=e.thumb,s=n.thumb||r,c=n.tag||e.tag,l=n.num||Object(a.d)(e.num),h=n.price||Object(a.d)(e.price),f=n["origin-price"]||Object(a.d)(e.originPrice),p=l||h||f,v=s&&t("a",{attrs:{href:e.thumbLink},class:pn("thumb"),on:{click:function(){d(i,"click-thumb")}}},[n.thumb?n.thumb():e.lazyLoad?t("img",{class:pn("img"),directives:[{name:"lazy",value:r}]}):t("img",{class:pn("img"),attrs:{src:r}}),c&&t("div",{class:pn("tag")},[n.tag?n.tag():t(dn,{attrs:{mark:!0,type:"danger"}},[e.tag])])]),m=n.title?n.title():e.title&&t("div",{class:pn("title")},[e.title]),g=n.desc?n.desc():e.desc&&t("div",{class:[pn("desc"),"van-ellipsis"]},[e.desc]),b=h&&t("div",{class:pn("price")},[n.price?n.price():e.currency+" "+e.price]),y=f&&t("div",{class:pn("origin-price")},[n["origin-price"]?n["origin-price"]():e.currency+" "+e.originPrice]),x=l&&t("div",{class:pn("num")},[n.num?n.num():"x "+e.num]),k=n.footer&&t("div",{class:pn("footer")},[n.footer()]);return t("div",o()([{class:pn()},u(i,!0)]),[t("div",{class:pn("header")},[v,t("div",{class:pn("content",{centered:e.centered})},[m,g,n.tags&&n.tags(),p&&t("div",{class:"van-card__bottom"},[b,y,x,n.bottom&&n.bottom()])])]),k])}vn.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var mn=fn(vn),gn=Object(a.k)("cell-group"),bn=gn[0],yn=gn[1];function xn(t,e,n,i){var r=t("div",o()([{class:[yn(),{"van-hairline--top-bottom":e.border}]},u(i,!0)]),[n.default&&n.default()]);return e.title?t("div",[t("div",{class:yn("title")},[e.title]),r]):r}xn.props={title:String,border:{type:Boolean,default:!0}};var kn=bn(xn),wn=Object(a.k)("checkbox"),Cn=(0,wn[0])({mixins:[Le("van-checkbox-group",wn[1])],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(){var t=this,e=!this.checked;clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){t.checked=e})},onClickIcon:function(){this.isDisabled||this.toggle()},onClickLabel:function(){this.isDisabled||this.labelDisabled||this.toggle()},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),e.$emit("input",n))}}}}),Sn=Object(a.k)("checkbox-group"),_n=Sn[0],On=Sn[1],$n=_n({props:{max:Number,value:Array,disabled:Boolean},watch:{value:function(t){this.$emit("change",t)}},render:function(t){return t("div",{class:On()},[this.slots()])}}),Tn=n(6),jn=Object(a.k)("circle"),An=jn[0],En=jn[1],Nn="M 530 530 m -500, 0 a 500, 500 0 1, 1 1000, 0 a 500, 500 0 1, 1 -1000, 0";function In(t){return Math.min(Math.max(t,0),100)}var zn=An({props:{text:String,value:Number,speed:Number,size:{type:String,default:"100px"},fill:{type:String,default:"none"},rate:{type:Number,default:100},layerColor:{type:String,default:on.e},color:{type:String,default:on.a},strokeWidth:{type:Number,default:40},clockwise:{type:Boolean,default:!0}},computed:{style:function(){return{width:this.size,height:this.size}},layerStyle:function(){var t=3140*(100-this.value)/100;return t=this.clockwise?t:6280-t,{stroke:""+this.color,strokeDashoffset:t+"px",strokeWidth:this.strokeWidth+1+"px"}},hoverStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}}},watch:{rate:{handler:function(){this.startTime=Date.now(),this.startRate=this.value,this.endRate=In(this.rate),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Tn.a)(this.rafId),this.rafId=Object(Tn.b)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",In(parseFloat(e.toFixed(1)))),(this.increase?ethis.endRate)&&(this.rafId=Object(Tn.b)(this.animate))}},render:function(t){return t("div",{class:En(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 1060 1060"}},[t("path",{class:En("hover"),style:this.hoverStyle,attrs:{d:Nn}}),t("path",{class:En("layer"),style:this.layerStyle,attrs:{d:Nn}})]),this.slots()||this.text&&t("div",{class:En("text")},[this.text])])}}),Bn=Object(a.k)("col"),Ln=Bn[0],Dn=Bn[1],Mn=Ln({props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{gutter:function(){return this.$parent&&Number(this.$parent.gutter)||0},style:function(){var t=this.gutter/2+"px";return this.gutter?{paddingLeft:t,paddingRight:t}:{}}},render:function(t){var e,n=this.span,i=this.offset;return t(this.tag,{class:Dn((e={},e[n]=n,e["offset-"+i]=i,e)),style:this.style},[this.slots()])}}),Pn=Object(a.k)("collapse"),Fn=Pn[0],Rn=Pn[1],Un=Fn({props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},data:function(){return{items:[]}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter(function(e){return e!==t})),this.$emit("change",t),this.$emit("input",t)}},render:function(t){return t("div",{class:[Rn(),{"van-hairline--top-bottom":this.border}]},[this.slots()])}}),Vn=Object(a.k)("collapse-item"),Hn=Vn[0],qn=Vn[1],Wn=["title","icon","right-icon"],Yn=Hn({mixins:[Be],props:Object(i.a)({},Ct,{name:[String,Number],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{items:function(){return this.parent.items},index:function(){return this.items.indexOf(this)},currentName:function(){return Object(a.d)(this.name)?this.name:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent.value;return this.parent.accordion?e===this.currentName:e.some(function(e){return e===t.currentName})}},created:function(){this.findParent("van-collapse"),this.items.push(this),this.show=this.expanded,this.inited=this.expanded},destroyed:function(){this.items.splice(this.index,1)},watch:{expanded:function(t,e){var n=this;null!==e&&(t&&(this.show=!0,this.inited=!0),Object(Tn.b)(function(){var e=n.$refs,i=e.content,r=e.wrapper;if(i&&r){var o=i.clientHeight;if(o){var a=o+"px";r.style.height=t?0:a,Object(Tn.b)(function(){r.style.height=t?a:0})}else n.onTransitionEnd()}}))}},methods:{onClick:function(){if(!this.disabled){var t=this.parent,e=t.accordion&&this.currentName===t.value?"":this.currentName,n=!this.expanded;this.parent.switch(e,n)}},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height=null:this.show=!1}},render:function(t){var e=this,n=Wn.reduce(function(t,n){return e.slots(n)&&(t[n]=function(){return e.slots(n)}),t},{});this.slots("value")&&(n.default=function(){return e.slots("value")});var r=t(Et,{class:qn("title",{disabled:this.disabled,expanded:this.expanded}),on:{click:this.onClick},scopedSlots:n,props:Object(i.a)({},this.$props)}),o=this.inited&&t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:qn("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:qn("content")},[this.slots()])]);return t("div",{class:[qn(),{"van-hairline--top":this.index}]},[r,o])}}),Xn=Object(a.k)("contact-card"),Kn=Xn[0],Qn=Xn[1],Gn=Xn[2];function Jn(t,e,n,i){var r=e.type,a=e.editable;return t(Et,o()([{attrs:{center:!0,border:!1,isLink:a,valueClass:Qn("value"),icon:"edit"===r?"contact":"add-square"},class:Qn([r]),on:{click:function(t){a&&d(i,"click",t)}}},u(i)]),["add"===r?e.addText||Gn("addText"):[t("div",[Gn("name")+":"+e.name]),t("div",[Gn("tel")+":"+e.tel])]])}Jn.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var Zn=Kn(Jn),ti=Object(a.k)("contact-edit"),ei=ti[0],ni=ti[1],ii=ti[2],ri={tel:"",name:""},oi=ei({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,contactInfo:{type:Object,default:function(){return Object(i.a)({},ri)}},telValidator:{type:Function,default:at}},data:function(){return{data:Object(i.a)({},ri,this.contactInfo),errorInfo:{name:!1,tel:!1}}},watch:{contactInfo:function(t){this.data=Object(i.a)({},ri,t)}},methods:{onFocus:function(t){this.errorInfo[t]=!1},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":ii("nameEmpty");case"tel":return this.telValidator(e)?"":ii("telInvalid")}},onSave:function(){var t=this;["name","tel"].every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=!0,Xt(n)),!n})&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;se.confirm({message:ii("confirmDelete")}).then(function(){t.$emit("delete",t.data)})}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=function(t){return function(){return e.onFocus(t)}};return t("div",{class:ni()},[t(Lt,{attrs:{clearable:!0,maxlength:"30",label:ii("name"),placeholder:ii("nameEmpty"),error:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(t){n.name=t}}}),t(Lt,{attrs:{clearable:!0,type:"tel",label:ii("tel"),placeholder:ii("telEmpty"),error:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(t){n.tel=t}}}),t("div",{class:ni("buttons")},[t(te,{attrs:{block:!0,type:"danger",text:ii("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&t(te,{attrs:{block:!0,text:ii("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),ai=Object(a.k)("contact-list"),si=ai[0],ci=ai[1],li=ai[2];function ui(t,e,n,i){var r=e.list.map(function(e,n){var r=function(){d(i,"input",e.id),d(i,"select",e,n)};return t(Et,{key:e.id,attrs:{isLink:!0,valueClass:ci("item-value")},class:ci("item"),scopedSlots:{default:function(){return t(Me,{attrs:{name:e.id},on:{click:r}},[t("div",{class:ci("name")},[e.name+","+e.tel])])},"right-icon":function(){return t(H,{attrs:{name:"edit"},class:ci("edit"),on:{click:function(t){t.stopPropagation(),d(i,"edit",e,n)}}})}},on:{click:r}})});return t("div",o()([{class:ci()},u(i)]),[t(ze,{attrs:{value:e.value},class:ci("group")},[r]),t(te,{attrs:{square:!0,size:"large",type:"danger",text:e.addText||li("addText")},class:ci("add"),on:{click:function(){d(i,"add")}}})])}ui.props={value:null,list:Array,addText:String};var di=si(ui),hi=Object(a.k)("coupon"),fi=hi[0],pi=hi[1],vi=hi[2];function mi(t){return(t<10?"0":"")+t}function gi(t){var e=new Date(1e3*t);return e.getFullYear()+"."+mi(e.getMonth()+1)+"."+mi(e.getDate())}var bi=fi({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){return vi("valid")+":"+gi(this.coupon.startAt)+" - "+gi(this.coupon.endAt)},faceAmount:function(){var t,e,n=this.coupon;return n.valueDesc?n.valueDesc+""+(n.unitDesc||"")+"":n.denominations?""+this.currency+" "+((e=this.coupon.denominations)/100).toFixed(e%100==0?0:e%10==0?1:2):n.discount?vi("discount",((t=this.coupon.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=this.coupon.originCondition;return 0===(t=t%100==0?Math.round(t/100):(t/100).toFixed(2))?vi("unlimited"):vi("condition",t)}},render:function(t){var e=this.coupon,n=this.disabled,i=n&&e.reason||e.description;return t("div",{class:pi({disabled:n})},[t("div",{class:pi("content")},[t("div",{class:pi("head")},[t("h2",{domProps:{innerHTML:this.faceAmount}}),t("p",[this.coupon.condition||this.conditionMessage])]),t("div",{class:pi("body")},[t("h2",[e.name]),t("p",[this.validPeriod]),this.chosen&&t(Cn,{attrs:{value:!0},class:pi("corner")})])]),i&&t("p",{class:pi("description")},[i])])}}),yi=Object(a.k)("coupon-cell"),xi=yi[0],ki=yi[1],wi=yi[2];function Ci(t,e,n,i){var r=e.coupons[e.chosenCoupon]?"van-coupon-cell--selected":"",a=function(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,r=e[n];return r?"-"+i+((r.denominations||r.value)/100).toFixed(2):0===e.length?wi("tips"):wi("count",e.length)}(e);return t(Et,o()([{class:ki(),attrs:{value:a,title:e.title||wi("title"),border:e.border,isLink:e.editable,valueClass:r}},u(i,!0)]))}Ci.model={prop:"chosenCoupon"},Ci.props={title:String,coupons:Array,currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:Number,default:-1}};var Si=xi(Ci),_i=Object(a.k)("tab"),Oi=_i[0],$i=_i[1],Ti=Oi({mixins:[Be],props:{title:String,disabled:Boolean},data:function(){return{inited:!1}},computed:{index:function(){return this.parent.tabs.indexOf(this)},selected:function(){return this.index===this.parent.curActive}},watch:{"parent.curActive":function(){this.inited=this.inited||this.selected},title:function(){this.parent.setLine()}},created:function(){this.findParent("van-tabs")},mounted:function(){var t=this.parent.tabs,e=this.parent.slots().indexOf(this.$vnode);t.splice(-1===e?t.length:e,0,this),this.slots("title")&&this.parent.renderTitle(this.$refs.title,this.index)},beforeDestroy:function(){this.parent.tabs.splice(this.index,1)},render:function(t){var e=this.slots,n=this.inited||!this.parent.lazyRender;return t("div",{directives:[{name:"show",value:this.selected||this.parent.animated}],class:$i("pane")},[n?e():t(),e("title")&&t("div",{ref:"title"},[e("title")])])}}),ji=Object(a.k)("tabs"),Ai=ji[0],Ei=ji[1],Ni=Object(a.k)("tab")[1],Ii=Ai({mixins:[v],model:{prop:"active"},props:{color:String,sticky:Boolean,animated:Boolean,offsetTop:Number,swipeable:Boolean,background:String,titleActiveColor:String,titleInactiveColor:String,ellipsis:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0},lineWidth:{type:Number,default:null},lineHeight:{type:Number,default:null},active:{type:[Number,String],default:0},type:{type:String,default:"line"},duration:{type:Number,default:.3},swipeThreshold:{type:Number,default:4}},data:function(){return{tabs:[],position:"",curActive:null,lineStyle:{backgroundColor:this.color},events:{resize:!1,sticky:!1,swipeable:!1}}},computed:{scrollable:function(){return this.tabs.length>this.swipeThreshold||!this.ellipsis},wrapStyle:function(){switch(this.position){case"top":return{top:this.offsetTop+"px",position:"fixed"};case"bottom":return{top:"auto",bottom:0};default:return null}},navStyle:function(){return{borderColor:this.color,background:this.background}},trackStyle:function(){if(this.animated)return{left:-1*this.curActive*100+"%",transitionDuration:this.duration+"s"}}},watch:{active:function(t){t!==this.curActive&&this.correctActive(t)},color:function(){this.setLine()},tabs:function(){this.correctActive(this.curActive||this.active),this.scrollIntoView(),this.setLine()},curActive:function(){var t,e;this.scrollIntoView(),this.setLine(),"top"!==this.position&&"bottom"!==this.position||(t=window,e=z(this.$el)-this.offsetTop,"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e))},sticky:function(){this.handlers(!0)},swipeable:function(){this.handlers(!0)}},mounted:function(){this.onShow()},activated:function(){this.onShow(),this.setLine()},deactivated:function(){this.handlers(!1)},beforeDestroy:function(){this.handlers(!1)},methods:{onShow:function(){var t=this;this.$nextTick(function(){t.inited=!0,t.handlers(!0),t.scrollIntoView(!0)})},handlers:function(t){var e=this.events,n=this.sticky&&t,i=this.swipeable&&t;if(e.resize!==t&&(e.resize=t,(t?b:y)(window,"resize",this.setLine,!0)),e.sticky!==n&&(e.sticky=n,this.scrollEl=this.scrollEl||N(this.$el),(n?b:y)(this.scrollEl,"scroll",this.onScroll,!0),this.onScroll()),e.swipeable!==i){e.swipeable=i;var r=this.$refs.content,o=i?b:y;o(r,"touchstart",this.touchStart),o(r,"touchmove",this.touchMove),o(r,"touchend",this.onTouchEnd),o(r,"touchcancel",this.onTouchEnd)}},onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.curActive;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.setCurActive(n-1):e<0&&n!==this.tabs.length-1&&this.setCurActive(n+1))},onScroll:function(){var t=I(window)+this.offsetTop,e=z(this.$el),n=e+this.$el.offsetHeight-this.$refs.wrap.offsetHeight;this.position=t>n?"bottom":t>e?"top":"";var i={scrollTop:t,isFixed:"top"===this.position};this.$emit("scroll",i)},setLine:function(){var t=this,e=this.inited;this.$nextTick(function(){var n=t.$refs.tabs;if(n&&n[t.curActive]&&"line"===t.type){var i=n[t.curActive],r=t.lineWidth,o=t.lineHeight,s=Object(a.d)(r)?r:i.offsetWidth/2,c=i.offsetLeft+(i.offsetWidth-s)/2,l={width:s+"px",backgroundColor:t.color,transform:"translateX("+c+"px)"};if(e&&(l.transitionDuration=t.duration+"s"),Object(a.d)(o)){var u=o+"px";l.height=u,l.borderRadius=u}t.lineStyle=l}})},correctActive:function(t){t=+t;var e=this.tabs.some(function(e){return e.index===t}),n=(this.tabs[0]||{}).index||0;this.setCurActive(e?t:n)},setCurActive:function(t){t=this.findAvailableTab(t,t=0&&i10?n:"0"+n)+":00"}if(!e){var i=t.split(":"),r=i[0],o=i[1];return(r=Fi(Object(a.j)(r,this.minHour,this.maxHour)))+":"+(o=Fi(Object(a.j)(o,this.minMinute,this.maxMinute)))}return t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)},getBoundary:function(t,e){var n,i=this[t+"Date"],r=i.getFullYear(),o=1,a=1,s=0,c=0;return"max"===t&&(o=12,a=Ui(e.getFullYear(),e.getMonth()+1),s=23,c=59),e.getFullYear()===r&&(o=i.getMonth()+1,e.getMonth()+1===o&&(a=i.getDate(),e.getDate()===a&&(s=i.getHours(),e.getHours()===s&&(c=i.getMinutes())))),(n={})[t+"Year"]=r,n[t+"Month"]=o,n[t+"Date"]=a,n[t+"Hour"]=s,n[t+"Minute"]=c,n},onConfirm:function(){this.$emit("confirm",this.innerValue)},onChange:function(t){var e,n=this;if("time"===this.type){var i=t.getIndexes();e=i[0]+this.minHour+":"+(i[1]+this.minMinute)}else{var r=t.getValues(),o=Ri(r[0]),a=Ri(r[1]),s=Ui(o,a),c=Ri(r[2]);"year-month"===this.type&&(c=1),c=c>s?s:c;var l=0,u=0;"datetime"===this.type&&(l=Ri(r[3]),u=Ri(r[4])),e=new Date(o,a-1,c,l,u)}this.innerValue=this.correctValue(e),this.$nextTick(function(){n.$nextTick(function(){n.$emit("change",t)})})},updateColumnValue:function(t){var e=this,n=[],i=this.formatter;if("time"===this.type){var r=t.split(":");n=[i("hour",r[0]),i("minute",r[1])]}else n=[i("year",""+t.getFullYear()),i("month",Fi(t.getMonth()+1)),i("day",Fi(t.getDate()))],"datetime"===this.type&&n.push(i("hour",Fi(t.getHours())),i("minute",Fi(t.getMinutes()))),"year-month"===this.type&&(n=n.slice(0,2));this.$nextTick(function(){e.$refs.picker.setValues(n)})}},render:function(t){var e=this,n={};return Object.keys(lt).forEach(function(t){n[t]=e[t]}),t(bt,{class:qi(),ref:"picker",attrs:{columns:this.columns},on:{change:this.onChange,confirm:this.onConfirm,cancel:function(){e.$emit("cancel")}},props:Object(i.a)({},n)})}}),Xi=Object(a.k)("goods-action"),Ki=Xi[0],Qi=Xi[1];function Gi(t,e,n,i){return t("div",o()([{class:Qi({"safe-area-inset-bottom":e.safeAreaInsetBottom})},u(i,!0)]),[n.default&&n.default()])}Gi.props={safeAreaInsetBottom:Boolean};var Ji=Ki(Gi),Zi=Object(a.k)("goods-action-big-btn"),tr=Zi[0],er=Zi[1];function nr(t,e,n,i){return t(te,o()([{attrs:{square:!0,size:"large",loading:e.loading,disabled:e.disabled,type:e.primary?"danger":"warning"},class:er(),on:{click:function(t){d(i,"click",t),_t(i)}}},u(i)]),[n.default?n.default():e.text])}nr.props=Object(i.a)({},Ot,{text:String,primary:Boolean,loading:Boolean,disabled:Boolean});var ir=tr(nr),rr=Object(a.k)("goods-action-mini-btn"),or=rr[0],ar=rr[1];function sr(t,e,n,i){return t("div",o()([{class:[ar(),"van-hairline"],on:{click:function(t){d(i,"click",t),_t(i)}}},u(i)]),[t(H,{class:[ar("icon"),e.iconClass],attrs:{tag:"div",info:e.info,name:e.icon}}),n.default?n.default():e.text])}sr.props=Object(i.a)({},Ot,{text:String,icon:String,info:[String,Number],iconClass:null});var cr=or(sr),lr=Object(a.k)("swipe"),ur=lr[0],dr=lr[1],hr=ur({mixins:[v],props:{width:Number,height:Number,autoplay:Number,vertical:Boolean,initialSwipe:Number,indicatorColor:String,loop:{type:Boolean,default:!0},touchable:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},duration:{type:Number,default:500}},data:function(){return{computedWidth:0,computedHeight:0,offset:0,active:0,deltaX:0,deltaY:0,swipes:[],swiping:!1}},mounted:function(){this.initialize(),this.$isServer||b(window,"resize",this.onResize,!0)},activated:function(){this.rendered&&this.initialize(),this.rendered=!0},destroyed:function(){this.clear(),this.$isServer||y(window,"resize",this.onResize)},watch:{swipes:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t?this.autoPlay():this.clear()}},computed:{count:function(){return this.swipes.length},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,e=this.vertical?"height":"width",n=this.vertical?"width":"height";return(t={})[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":"",t.transitionDuration=(this.swiping?0:this.duration)+"ms",t.transform="translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)",t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}}},methods:{initialize:function(t){if(void 0===t&&(t=this.initialSwipe),clearTimeout(this.timer),this.$el){var e=this.$el.getBoundingClientRect();this.computedWidth=this.width||e.width,this.computedHeight=this.height||e.height}this.swiping=!0,this.active=t,this.offset=this.count>1?-this.size*this.active:0,this.swipes.forEach(function(t){t.offset=0}),this.autoPlay()},onResize:function(){this.initialize(this.activeIndicator)},onTouchStart:function(t){this.touchable&&(this.clear(),this.swiping=!0,this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(k(t,!0),this.move({offset:Math.min(Math.max(this.delta,-this.size),this.size)})))},onTouchEnd:function(){if(this.touchable&&this.swiping){if(this.delta&&this.isCorrectDirection){var t=this.vertical?this.offsetY:this.offsetX;this.move({pace:t>0?this.delta>0?-1:1:0,emitChange:!0})}this.swiping=!1,this.autoPlay()}},move:function(t){var e=t.pace,n=void 0===e?0:e,i=t.offset,r=void 0===i?0:i,o=t.emitChange,a=this.delta,s=this.active,c=this.count,l=this.swipes,u=this.trackSize,d=0===s,h=s===c-1;!this.loop&&(d&&(r>0||n<0)||h&&(r<0||n>0))||c<=1||(l[0]&&(l[0].offset=h&&(a<0||n>0)?u:0),l[c-1]&&(l[c-1].offset=d&&(a>0||n<0)?-u:0),n&&s+n>=-1&&s+n<=c&&(this.active+=n,o&&this.$emit("change",this.activeIndicator)),this.offset=Math.round(r-this.active*this.size))},swipeTo:function(t){var e=this;this.swiping=!0,this.resetTouchStatus(),this.correctPosition(),setTimeout(function(){e.swiping=!1,e.move({pace:t%e.count-e.active,emitChange:!0})},30)},correctPosition:function(){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&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){t.swiping=!0,t.resetTouchStatus(),t.correctPosition(),setTimeout(function(){t.swiping=!1,t.move({pace:1,emitChange:!0}),t.autoPlay()},30)},e))}},render:function(t){var e=this,n=this.count,i=this.activeIndicator,r=this.slots("indicator")||this.showIndicators&&n>1&&t("div",{class:dr("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map(function(n,r){return t("i",{class:dr("indicator",{active:r===i}),style:r===i?e.indicatorStyle:null})})]);return t("div",{class:dr()},[t("div",{ref:"track",style:this.trackStyle,class:dr("track"),on:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this.slots()]),r])}}),fr=Object(a.k)("swipe-item"),pr=fr[0],vr=fr[1],mr=pr({data:function(){return{offset:0}},beforeCreate:function(){this.$parent.swipes.push(this)},destroyed:function(){this.$parent.swipes.splice(this.$parent.swipes.indexOf(this),1)},render:function(t){var e=this.$parent,n=e.vertical,r=e.computedWidth,o=e.computedHeight,a={width:r+"px",height:n?o+"px":"100%",transform:"translate"+(n?"Y":"X")+"("+this.offset+"px)"};return t("div",{class:vr(),style:a,on:Object(i.a)({},this.$listeners)},[this.slots()])}}),gr=Object(a.k)("image-preview"),br=gr[0],yr=gr[1];function xr(t){return Math.sqrt(Math.abs((t[0].clientX-t[1].clientX)*(t[0].clientY-t[1].clientY)))}var kr,wr=br({mixins:[L,v],props:{images:Array,className:null,lazyLoad:Boolean,asyncClose:Boolean,startPosition:Number,showIndicators:Boolean,loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3},overlayClass:{type:String,default:"van-image-preview__overlay"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,active:0}},computed:{imageStyle:function(){var t=this.scale,e={transition:this.zooming||this.moving?"":".3s all"};return 1!==t&&(e.transform="scale3d("+t+", "+t+", 1) translate("+this.moveX/t+"px, "+this.moveY/t+"px)"),e}},watch:{value:function(){this.active=this.startPosition},startPosition:function(t){this.active=t}},methods:{onWrapperTouchStart:function(){this.touchStartTime=new Date},onWrapperTouchEnd:function(t){k(t);var e=new Date-this.touchStartTime,n=this.$refs.swipe||{},i=n.offsetX,r=void 0===i?0:i,o=n.offsetY;if(e<300&&r<10&&(void 0===o?0:o)<10){var a=this.active;this.resetScale(),this.$emit("close",{index:a,url:this.images[a]}),this.asyncClose||this.$emit("input",!1)}},startMove:function(t){var e=t.currentTarget.getBoundingClientRect(),n=window.innerWidth,i=window.innerHeight;this.touchStart(t),this.moving=!0,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.maxMoveX=Math.max(0,(e.width-n)/2),this.maxMoveY=Math.max(0,(e.height-i)/2)},startZoom:function(t){this.moving=!1,this.zooming=!0,this.startScale=this.scale,this.startDistance=xr(t.touches)},onTouchStart:function(t){var e=t.touches,n=(this.$refs.swipe||{}).offsetX,i=void 0===n?0:n;1===e.length&&1!==this.scale?this.startMove(t):2!==e.length||i||this.startZoom(t)},onTouchMove:function(t){var e=t.touches;if((this.moving||this.zooming)&&k(t,!0),this.moving){this.touchMove(t);var n=this.deltaX+this.startMoveX,i=this.deltaY+this.startMoveY;this.moveX=Object(a.j)(n,-this.maxMoveX,this.maxMoveX),this.moveY=Object(a.j)(i,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=xr(e),o=this.startScale*r/this.startDistance;this.scale=Object(a.j)(o,this.minZoom,this.maxZoom)}},onTouchEnd:function(t){if(this.moving||this.zooming){var e=!0;this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.moving=!1,this.zooming=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale()),e&&k(t,!0)}},onChange:function(t){this.resetScale(),this.active=t,this.$emit("change",t)},resetScale:function(){this.scale=1,this.moveX=0,this.moveY=0}},render:function(t){var e=this;if(this.value){var n=this.active,i=this.images,r=this.showIndex&&t("div",{class:yr("index")},[this.slots("index")||n+1+"/"+i.length]),a=t(hr,{ref:"swipe",attrs:{loop:this.loop,indicatorColor:"white",initialSwipe:this.startPosition,showIndicators:this.showIndicators},on:{change:this.onChange}},[i.map(function(i,r){var a={class:yr("image"),style:r===n?e.imageStyle:null,on:{touchstart:e.onTouchStart,touchmove:e.onTouchMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd}};return t(mr,[e.lazyLoad?t("img",o()([{directives:[{name:"lazy",value:i}]},a])):t("img",o()([{attrs:{src:i}},a]))])})]);return t("transition",{attrs:{name:"van-fade"}},[t("div",{class:[yr(),this.className],on:{touchstart:this.onWrapperTouchStart,touchend:this.onWrapperTouchEnd,touchcancel:this.onWrapperTouchEnd}},[r,a])])}}}),Cr={images:[],loop:!0,value:!0,minZoom:1/3,maxZoom:3,className:"",lazyLoad:!1,showIndex:!0,asyncClose:!1,startPosition:0,showIndicators:!1},Sr=function(t,e){if(void 0===e&&(e=0),!a.h){kr||(kr=new(s.default.extend(wr))({el:document.createElement("div")}),document.body.appendChild(kr.$el));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(i.a)(kr,Cr,n),kr.$once("input",function(t){kr.value=t}),n.onClose&&kr.$once("close",n.onClose),kr}};Sr.install=function(){s.default.use(wr)};var _r=Sr,Or=n(22),$r=n.n(Or).a,Tr=Object(a.k)("list"),jr=Tr[0],Ar=Tr[1],Er=Tr[2],Nr=jr({model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:Number,default:300},direction:{type:String,default:"down"}},mounted:function(){this.scroller=N(this.$el),this.handler(!0),this.immediateCheck&&this.$nextTick(this.check)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{loading:function(){this.$nextTick(this.check)},finished:function(){this.$nextTick(this.check)}},methods:{check:function(){if(!(this.loading||this.finished||this.error)){var t=this.$el,e=this.scroller,n=B(e);if(n&&"none"!==window.getComputedStyle(t).display&&null!==t.offsetParent){var i=this.offset,r=this.direction;(function(){if(t===e){var o=I(t);if("up"===r)return o<=i;var a=o+n;return e.scrollHeight-a<=i}return"up"===r?I(e)-z(t)<=i:z(t)+B(t)-z(e)-n<=i})()&&(this.$emit("input",!0),this.$emit("load"))}}},clickErrorText:function(){this.$emit("update:error",!1),this.$nextTick(this.check)},handler:function(t){this.binded!==t&&(this.binded=t,(t?b:y)(this.scroller,"scroll",this.check))}},render:function(t){return t("div",{class:Ar()},["down"===this.direction&&this.slots(),this.loading&&t("div",{class:Ar("loading"),key:"loading"},[this.slots("loading")||[t(Q,{class:Ar("loading-icon")}),t("span",{class:Ar("loading-text")},[this.loadingText||Er("loading")])]]),this.finished&&this.finishedText&&t("div",{class:Ar("finished-text")},[this.finishedText]),this.error&&this.errorText&&t("div",{on:{click:this.clickErrorText},class:Ar("error-text")},[this.errorText]),"up"===this.direction&&this.slots()])}}),Ir=n(8),zr=Object(a.k)("nav-bar"),Br=zr[0],Lr=zr[1];function Dr(t,e,n,i){return t("div",o()([{class:[Lr({fixed:e.fixed}),{"van-hairline--bottom":e.border}],style:{zIndex:e.zIndex}},u(i)]),[t("div",{class:Lr("left"),on:{click:i.listeners["click-left"]||a.i}},[n.left?n.left():[e.leftArrow&&t(H,{class:Lr("arrow"),attrs:{name:"arrow-left"}}),e.leftText&&t("span",{class:Lr("text")},[e.leftText])]]),t("div",{class:[Lr("title"),"van-ellipsis"]},[n.title?n.title():e.title]),t("div",{class:Lr("right"),on:{click:i.listeners["click-right"]||a.i}},[n.right?n.right():e.rightText&&t("span",{class:Lr("text")},[e.rightText])])])}Dr.props={title:String,fixed:Boolean,leftText:String,rightText:String,leftArrow:Boolean,border:{type:Boolean,default:!0},zIndex:{type:Number,default:1}};var Mr=Br(Dr),Pr=Object(a.k)("notice-bar"),Fr=Pr[0],Rr=Pr[1],Ur=Fr({props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:!0},speed:{type:Number,default:50}},data:function(){return{wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:""}},watch:{text:{handler:function(){var t=this;this.$nextTick(function(){var e=t.$refs,n=e.wrap,i=e.content;if(n&&i){var r=n.getBoundingClientRect().width,o=i.getBoundingClientRect().width;t.scrollable&&o>r&&(t.wrapWidth=r,t.offsetWidth=o,t.duration=o/t.speed,t.animationClass=Rr("play"))}})},immediate:!0}},methods:{onClickIcon:function(){"closeable"===this.mode&&(this.showNoticeBar=!1,this.$emit("close"))},onAnimationEnd:function(){var t=this;this.firstRound=!1,this.$nextTick(function(){t.duration=(t.offsetWidth+t.wrapWidth)/t.speed,t.animationClass=Rr("play--infinite")})}},render:function(t){var e=this,n=this.mode,i="closeable"===n?"cross":"link"===n?"arrow":"",r={color:this.color,background:this.background},o={paddingLeft:this.firstRound?0:this.wrapWidth+"px",animationDelay:(this.firstRound?this.delay:0)+"s",animationDuration:this.duration+"s"};return t("div",{directives:[{name:"show",value:this.showNoticeBar}],class:Rr({withicon:n,wrapable:this.wrapable}),style:r,on:{click:function(){e.$emit("click")}}},[this.leftIcon&&t(H,{class:Rr("left-icon"),attrs:{name:this.leftIcon}}),t("div",{ref:"wrap",class:Rr("wrap")},[t("div",{ref:"content",class:[Rr("content"),this.animationClass,{"van-ellipsis":!this.scrollable&&!this.wrapable}],style:o,on:{animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[this.slots()||this.text])]),i&&t(H,{class:Rr("right-icon"),attrs:{name:i},on:{click:this.onClickIcon}})])}}),Vr=Object(a.k)("notify"),Hr=Vr[0],qr=Vr[1];function Wr(t,e,n,i){var r={color:e.color,background:e.background};return t(tt,o()([{attrs:{value:e.value,position:"top",overlay:!1,lockScroll:!1},style:r,class:[qr(),e.className],on:{input:function(t){d(i,"input",t)}}},u(i)]),[e.message])}Wr.props=Object(i.a)({},L.props,{className:null,message:[String,Number],color:{type:String,default:on.e},background:{type:String,default:on.d},duration:{type:Number,default:3e3}});var Yr,Xr,Kr=Hr(Wr);function Qr(t){var e;if(!a.h)return Xr||(Xr=h(Kr)),t=Object(i.a)({},Qr.currentOptions,(e=t,Object(a.g)(e)?e:{message:e})),Object(i.a)(Xr,t),clearTimeout(Yr),t.duration&&t.duration>0&&(Yr=setTimeout(Qr.clear,t.duration)),Xr}function Gr(){return{value:!0,message:"",color:on.e,background:on.d,duration:3e3,className:""}}Qr.clear=function(){Xr&&(Xr.value=!1)},Qr.currentOptions=Gr(),Qr.setDefaultOptions=function(t){Object(i.a)(Qr.currentOptions,t)},Qr.resetDefaultOptions=function(){Qr.currentOptions=Gr()},Qr.install=function(){s.default.use(Kr)},s.default.prototype.$notify=Qr;var Jr=Qr,Zr=Object(a.k)("key"),to=Zr[0],eo=Zr[1],no=to({props:{type:Array,text:[String,Number]},data:function(){return{active:!1}},computed:{className:function(){var t=this.type.slice(0);return this.active&&t.push("active"),eo(t)}},methods:{onFocus:function(){this.active=!0,this.$emit("press",this.text)},onBlur:function(t){k(t,!0),this.active=!1}},render:function(t){var e=this.onBlur;return t("i",{class:["van-hairline",this.className],on:{touchstart:this.onFocus,touchmove:e,touchend:e,touchcancel:e}},[this.text])}}),io=Object(a.k)("number-keyboard"),ro=io[0],oo=io[1],ao=io[2],so=["blue","big"],co=["delete","big","gray"],lo=ro({props:{show:Boolean,title:String,closeButtonText:String,deleteButtonText:String,safeAreaInsetBottom:Boolean,theme:{type:String,default:"default"},extraKey:{type:String,default:""},zIndex:{type:Number,default:100},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0}},mounted:function(){this.handler(!0)},destroyed:function(){this.handler(!1)},activated:function(){this.handler(!0)},deactivated:function(){this.handler(!1)},watch:{show:function(){this.transition||this.$emit(this.show?"show":"hide")}},computed:{keys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});switch(this.theme){case"default":t.push({text:this.extraKey,type:["gray"]},{text:0},{text:this.deleteText,type:["gray","delete"]});break;case"custom":t.push({text:0,type:["middle"]},{text:this.extraKey})}return t},deleteText:function(){return this.deleteButtonText||ao("delete")}},methods:{handler:function(t){this.$isServer||t!==this.handlerStatus&&this.hideOnClickOutside&&(this.handlerStatus=t,document.body[(t?"add":"remove")+"EventListener"]("touchstart",this.onBlur))},onBlur:function(){this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t){""!==t&&(t===this.deleteText?this.$emit("delete"):t===this.closeButtonText?this.onClose():this.$emit("input",t))}},render:function(t){var e=this.title,n=this.theme,i=this.onPress,r=this.closeButtonText,o=this.slots("title-left"),a=r&&"default"===n,s=e||a||o;return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:oo([n,{"safe-area-inset-bottom":this.safeAreaInsetBottom}]),on:{touchstart:x,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[s&&t("div",{class:[oo("title"),"van-hairline--top"]},[o&&t("span",{class:oo("title-left")},[o]),e&&t("span",[e]),a&&t("span",{class:oo("close"),on:{click:this.onClose}},[r])]),t("div",{class:oo("body")},[this.keys.map(function(e){return t(no,{key:e.text,attrs:{text:e.text,type:e.type},on:{press:i}})})]),"custom"===n&&t("div",{class:oo("sidebar")},[t(no,{attrs:{text:this.deleteText,type:co},on:{press:i}}),t(no,{attrs:{text:r,type:so},on:{press:i}})])])])}}),uo=Object(a.k)("pagination"),ho=uo[0],fo=uo[1],po=uo[2];function vo(t,e,n){return{number:t,text:e,active:n}}var mo=ho({props:{value:Number,prevText:String,nextText:String,pageCount:Number,totalItems:Number,forceEllipses:Boolean,mode:{type:String,default:"multi"},itemsPerPage:{type:Number,default:10},showPageSize:{type:Number,default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count;if("multi"!==this.mode)return t;var n=1,i=e,r=void 0!==this.showPageSize&&this.showPageSizee&&(n=(i=e)-this.showPageSize+1);for(var o=n;o<=i;o++){var a=vo(o,o,o===this.value);t.push(a)}if(r&&this.showPageSize>0&&this.forceEllipses){if(n>1){var s=vo(n-1,"...",!1);t.unshift(s)}if(i=0&&t<=100}},showPivot:{type:Boolean,default:!0},color:{type:String,default:on.a},textColor:{type:String,default:on.e}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.getWidth()},watch:{showPivot:function(){this.getWidth()},pivotText:function(){this.getWidth()}},methods:{getWidth:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(t){var e=this.pivotText,n=this.percentage,i=Object(a.d)(e)?e:n+"%",r=this.showPivot&&i,o=this.inactive?"#cacaca":this.color,s={color:this.textColor,background:this.pivotColor||o},c={background:o,width:(this.progressWidth-this.pivotWidth)*n/100+"px"};return t("div",{class:jo()},[t("span",{class:jo("portion",{"with-pivot":r}),style:c},[r&&t("span",{ref:"pivot",style:s,class:jo("pivot")},[i])])])}}),Eo=Object(a.k)("pull-refresh"),No=Eo[0],Io=Eo[1],zo=Eo[2],Bo=["pulling","loosing","success"],Lo=No({mixins:[v],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,value:{type:Boolean,required:!0},successDuration:{type:Number,default:500},animationDuration:{type:Number,default:300},headHeight:{type:Number,default:50}},data:function(){return{status:"normal",height:0,duration:0}},computed:{untouchable:function(){return"loading"===this.status||"success"===this.status||this.disabled}},watch:{value:function(t){var e=this;this.duration=this.animationDuration,!t&&this.successText?(this.status="success",setTimeout(function(){e.setStatus(0)},this.successDuration)):this.setStatus(t?this.headHeight:0,t)}},mounted:function(){this.scrollEl=N(this.$el)},methods:{onTouchStart:function(t){!this.untouchable&&this.getCeiling()&&(this.duration=0,this.touchStart(t))},onTouchMove:function(t){this.untouchable||(this.touchMove(t),!this.ceiling&&this.getCeiling()&&(this.duration=0,this.startY=t.touches[0].clientY,this.deltaY=0),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(this.setStatus(this.ease(this.deltaY)),k(t)))},onTouchEnd:function(){!this.untouchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(this.headHeight,!0),this.$emit("input",!0),this.$emit("refresh")):this.setStatus(0))},getCeiling:function(){return this.ceiling=0===I(this.scrollEl),this.ceiling},ease:function(t){var e=this.headHeight;return t=a?"full":r+.5>=a&&s?"half":"void"));function x(t){v||p||(d(i,"input",t),d(i,"change",t))}return t("div",o()([{class:Po()},u(i),{on:{touchmove:function(t){if(!p&&!v&&document.elementFromPoint){k(t);var e=t.touches[0],n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);if(r&&r.dataset){var o=r.dataset.score;o&&x(+o)}}}}}]),[b.map(function(n,i){return function(n,i){var r="full"===n,o="void"===n;return t("div",{key:i,class:Po("item")},[t(H,{attrs:{name:r?c:f,size:l+"px","data-score":i+1,color:v?g:r?h:m},class:Po("icon"),on:{click:function(){x(i+1)}}}),e.allowHalf&&t(H,{attrs:{name:o?f:c,size:l+"px","data-score":i+.5,color:v?g:o?m:h},class:Po("icon","half"),on:{click:function(){x(i+.5)}}})])}(n,i)})])}Fo.props={value:Number,readonly:Boolean,disabled:Boolean,allowHalf:Boolean,size:{type:Number,default:20},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},color:{type:String,default:"#ffd21e"},voidColor:{type:String,default:"#c7c7c7"},disabledColor:{type:String,default:"#bdbdbd"},count:{type:Number,default:5}};var Ro=Mo(Fo),Uo=Object(a.k)("row"),Vo=Uo[0],Ho=Uo[1],qo=Vo({props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},render:function(t){var e,n=this.align,i=this.justify,r="flex"===this.type,o="-"+Number(this.gutter)/2+"px",a=this.gutter?{marginLeft:o,marginRight:o}:{};return t(this.tag,{style:a,class:Ho((e={flex:r},e["align-"+n]=r&&n,e["justify-"+i]=r&&i,e))},[this.slots()])}}),Wo=Object(a.k)("search"),Yo=Wo[0],Xo=Wo[1],Ko=Wo[2];function Qo(t,e,n,r){var a={attrs:r.data.attrs,on:Object(i.a)({},r.listeners,{input:function(t){d(r,"input",t)},keypress:function(t){13===t.keyCode&&(k(t),d(r,"search",e.value)),d(r,"keypress",t)}})},s=u(r);return delete s.attrs,t("div",o()([{class:Xo({"show-action":e.showAction}),style:{background:e.background}},s]),[t("div",{class:Xo("content",e.shape)},[n.label||e.label?t("div",{class:Xo("label")},[n.label?n.label():e.label]):null,t(Lt,o()([{attrs:{clearable:!0,type:"search",value:e.value,border:!1,leftIcon:"search"},scopedSlots:{"left-icon":n["left-icon"]}},a]))]),function(){if(!e.showAction)return null;return t("div",{class:Xo("action")},[n.action?n.action():t("div",{on:{click:function(){d(r,"input",""),d(r,"cancel")}}},[Ko("cancel")])])}()])}Qo.props={value:String,label:String,showAction:Boolean,shape:{type:String,default:"square"},background:{type:String,default:"#fff"}};var Go=Yo(Qo),Jo=Object(a.k)("sku-header"),Zo=Jo[0],ta=Jo[1];function ea(t,e,n,i){var r=e.sku,a=e.goods,s=e.skuEventBus,c=function(t,e){var n=e.s1;if(n){var i=t.tree.filter(function(t){return"s1"===t.k_s})[0]||{};if(i.v){var r=i.v.filter(function(t){return t.id===n})[0];if(r)return r.imgUrl||r.img_url}}}(r,e.selectedSku)||a.picture;return t("div",o()([{class:[ta(),"van-hairline--bottom"]},u(i)]),[t("div",{class:ta("img-wrap"),on:{click:function(){s.$emit("sku:previewImage",c)}}},[t("img",{attrs:{src:c}})]),t("div",{class:ta("goods-info")},[t("div",{class:"van-sku__goods-name van-ellipsis"},[a.title]),n.default&&n.default(),t(H,{attrs:{name:"close"},class:"van-sku__close-icon",on:{click:function(){s.$emit("sku:close")}}})])])}ea.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object};var na=Zo(ea),ia=Object(a.k)("sku-row"),ra=ia[0],oa=ia[1];function aa(t,e,n,i){return t("div",o()([{class:oa()},u(i)]),[t("div",{class:oa("title")},[e.skuRow.k,":"]),n.default&&n.default()])}aa.props={skuRow:Object};var sa=ra(aa),ca=n(5),la=function(t){var e={};return t.forEach(function(t){e[t.k_s]=t.v}),e},ua=function(t,e){var n=Object.keys(e).filter(function(t){return e[t]!==ca.b});return t.length===n.length},da=function(t,e){return t.filter(function(t){return Object.keys(e).every(function(n){return String(t[n])===String(e[n])})})[0]},ha=function(t,e){var n=la(t);return Object.keys(e).reduce(function(t,i){var r=n[i],o=e[i];if(o!==ca.b){var a=r.filter(function(t){return t.id===o})[0];a&&t.push(a)}return t},[])},fa=function(t,e,n){var r,o=n.key,a=n.valueId,s=Object(i.a)({},e,((r={})[o]=a,r)),c=Object.keys(s).filter(function(t){return s[t]!==ca.b});return t.filter(function(t){return c.every(function(e){return String(s[e])===String(t[e])})}).reduce(function(t,e){return t+=e.stock_num},0)>0},pa={normalizeSkuTree:la,getSkuComb:da,getSelectedSkuValues:ha,isAllSelected:ua,isSkuChoosable:fa},va=(0,Object(a.k)("sku-row-item")[0])({props:{skuList:Array,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object},computed:{choosable:function(){return fa(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",Object(i.a)({},this.skuValue,{skuKeyStr:this.skuKeyStr}))}},render:function(t){return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.skuValue.id===this.selectedSku[this.skuKeyStr],"van-sku-row__item--disabled":!this.choosable}],on:{click:this.onSelect}},[this.skuValue.name])}}),ma=Object(a.k)("stepper"),ga=ma[0],ba=ma[1],ya=ga({props:{value:null,integer:Boolean,disabled:Boolean,inputWidth:String,asyncChange:Boolean,disableInput:Boolean,min:{type:[String,Number],default:1},max:{type:[String,Number],default:1/0},step:{type:[String,Number],default:1},defaultValue:{type:[String,Number],default:1}},data:function(){var t=this.range(Object(a.d)(this.value)?this.value:this.defaultValue);return t!==+this.value&&this.$emit("input",t),{currentValue:t}},computed:{minusDisabled:function(){return this.disabled||this.currentValue<=this.min},plusDisabled:function(){return this.disabled||this.currentValue>=this.max}},watch:{value:function(t){t!==this.currentValue&&(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t)}},methods:{format:function(t){return""===(t=String(t).replace(/[^0-9.-]/g,""))?0:this.integer?Math.floor(t):+t},range:function(t){return Math.max(Math.min(this.max,this.format(t)),this.min)},onInput:function(t){var e=t.target.value,n=this.format(e);this.asyncChange?(t.target.value=this.currentValue,this.$emit("input",n),this.$emit("change",n)):(+e!==n&&(t.target.value=n),this.currentValue=n)},onChange:function(t){if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e="minus"===t?-this.step:+this.step,n=Math.round(100*(this.currentValue+e))/100;this.asyncChange?(this.$emit("input",n),this.$emit("change",n)):this.currentValue=this.range(n),this.$emit(t)}},onFocus:function(t){this.$emit("focus",t)},onBlur:function(t){this.currentValue=this.range(this.currentValue),this.$emit("blur",t),0===this.currentValue&&(t.target.value=this.currentValue)}},render:function(t){var e=this,n=function(t){return function(){e.onChange(t)}};return t("div",{class:ba()},[t("button",{class:ba("minus",{disabled:this.minusDisabled}),on:{click:n("minus")}}),t("input",{attrs:{type:"number",disabled:this.disabled||this.disableInput},class:ba("input"),domProps:{value:this.currentValue},style:{width:this.inputWidth},on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur}}),t("button",{class:ba("plus",{disabled:this.plusDisabled}),on:{click:n("plus")}})])}}),xa=Object(a.k)("sku-stepper")[0],ka=ca.a.QUOTA_LIMIT,wa=ca.a.STOCK_LIMIT,Ca=xa({props:{quota:Number,quotaUsed:Number,hideStock:Boolean,skuEventBus:Object,skuStockNum:Number,selectedSku:Object,selectedNum:Number,stepperTitle:String,hideQuotaText:Boolean,selectedSkuComb:Object,disableStepperInput:Boolean,customStepperConfig:Object},data:function(){return{currentNum:this.selectedNum,limitType:wa}},watch:{currentNum:function(t){this.skuEventBus.$emit("sku:numChange",t)},stepperLimit:function(t){t0&&(n="每人限购"+this.quota+"件"),n},stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=ka):(t=this.stock,this.limitType=wa),t}},methods:{setCurrentNum:function(t){this.currentNum=t},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed})},onChange:function(t){var e=this.customStepperConfig.handleStepperChange;e&&e(t),this.$emit("change",t)}},render:function(t){var e=this;return t("div",{class:"van-sku-stepper-stock"},[t("div",{class:"van-sku-stepper-container"},[t("div",{class:"van-sku__stepper-title"},[this.stepperTitle||"购买数量",":"]),t(ya,{class:"van-sku__stepper",attrs:{max:this.stepperLimit,disableInput:this.disableStepperInput},on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:e.currentNum,callback:function(t){e.currentNum=t}}})]),!this.hideStock&&t("div",{class:"van-sku__stock"},[this.stockText]),!this.hideQuotaText&&this.quotaText&&t("div",{class:"van-sku__quota"},[this.quotaText])])}});function Sa(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)}var _a=Object(a.k)("uploader"),Oa=_a[0],$a=_a[1],Ta=Oa({inheritAttrs:!1,props:{disabled:Boolean,beforeRead:Function,afterRead:Function,accept:{type:String,default:"image/*"},resultType:{type:String,default:"dataUrl"},maxSize:{type:Number,default:Number.MAX_VALUE}},computed:{detail:function(){return{name:this.$attrs.name||""}}},methods:{onChange:function(t){var e=this,n=t.target.files;!this.disabled&&n.length&&(!(n=1===n.length?n[0]:[].slice.call(n,0))||this.beforeRead&&!this.beforeRead(n,this.detail)?this.resetInput():Array.isArray(n)?Promise.all(n.map(this.readFile)).then(function(t){var i=!1,r=n.map(function(r,o){return r.size>e.maxSize&&(i=!0),{file:n[o],content:t[o]}});e.onAfterRead(r,i)}):this.readFile(n).then(function(t){e.onAfterRead({file:n,content:t},n.size>e.maxSize)}))},readFile:function(t){var e=this;return new Promise(function(n){var i=new FileReader;i.onload=function(t){n(t.target.result)},"dataUrl"===e.resultType?i.readAsDataURL(t):"text"===e.resultType&&i.readAsText(t)})},onAfterRead:function(t,e){e?this.$emit("oversize",t):this.afterRead&&this.afterRead(t,this.detail),this.resetInput()},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")}},render:function(t){var e=this.accept,n=this.disabled;return t("div",{class:$a()},[this.slots(),t("input",{attrs:Object(i.a)({},this.$attrs,{type:"file",accept:e,disabled:n}),ref:"input",class:$a("input"),on:{change:this.onChange}})])}}),ja=Object(a.k)("sku-img-uploader"),Aa=ja[0],Ea=ja[1],Na=Aa({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{paddingImg:""}},computed:{imgList:function(){return this.value&&!this.paddingImg?[this.value]:[]}},methods:{afterReadFile:function(t){var e=this;this.paddingImg=t.content,this.uploadImg(t.file,t.content).then(function(t){e.$emit("input",t),e.$nextTick(function(){e.paddingImg=""})}).catch(function(){e.paddingImg=""})},onOversize:function(){this.$toast("最大可上传图片为"+this.maxSize+"MB,请尝试压缩图片尺寸")}},render:function(t){var e=this,n=this.imgList,i=this.paddingImg,r=(i||n.length>0)&&t("div",{class:"van-clearfix"},[n.map(function(n){return t("div",{class:Ea("img")},[t("img",{attrs:{src:n}}),t(H,{attrs:{name:"clear"},class:Ea("delete"),on:{click:function(){e.$emit("input","")}}})])}),i&&t("div",{class:Ea("img")},[t("img",{attrs:{src:i}}),t(Q,{attrs:{type:"spinner"},class:Ea("uploading")})])]);return t("div",{class:Ea()},[t(Ta,{attrs:{disabled:!!i,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize}},[t("div",{class:Ea("header")},[i?t("div",["正在上传..."]):[t(H,{attrs:{name:"photograph"}}),t("span",{class:"label"},[this.value?"重拍":"拍照"," 或 "]),t(H,{attrs:{name:"photo"}}),t("span",{class:"label"},[this.value?"重新选择照片":"选择照片"])]])]),r])}}),Ia=Object(a.k)("sku-messages"),za=Ia[0],Ba=Ia[1],La={id_no:"输入身份证号码",text:"输入文本",tel:"输入数字",email:"输入邮箱",date:"点击选择日期",time:"点击选择时间",textarea:"点击填写段落文本",mobile:"输入手机号码"},Da=za({props:{messages:Array,messageConfig:Object,goodsId:[Number,String]},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){return(t||[]).map(function(){return{value:""}})},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime-local":t.type},getMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=n.value;t.messages[i].datetime>0&&(r=r.replace(/T/g," ")),e["message_"+i]=r}),e},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=n.value,o=t.messages[i];o.datetime>0&&(r=r.replace(/T/g," ")),e[o.name]=r}),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type;return(this.messageConfig.placeholderMap||{})[e]||La[e]},validateMessages:function(){for(var t=this.messageValues,e=0;e18))return"请填写正确的身份证号码"}}}},render:function(t){var e=this;return t(kn,{class:Ba()},[this.messages.map(function(n,i){return"image"===n.type?t(Et,{class:Ba("image-cell"),attrs:{label:"仅限一张",title:n.name,required:"1"===String(n.required)},key:e.goodsId+"-"+i},[t(Na,{attrs:{uploadImg:e.messageConfig.uploadImg,maxSize:e.messageConfig.uploadMaxSize},model:{value:e.messageValues[i].value,callback:function(t){e.messageValues[i].value=t}}})]):t(Lt,{attrs:{maxlength:"200",label:n.name,required:"1"===String(n.required),placeholder:e.getPlaceholder(n),type:e.getType(n)},key:e.goodsId+"-"+i,model:{value:e.messageValues[i].value,callback:function(t){e.messageValues[i].value=t}}})})])}}),Ma=Object(a.k)("sku-actions"),Pa=Ma[0],Fa=Ma[1];function Ra(t,e,n,i){var r=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",o()([{class:Fa()},u(i)]),[e.showAddCartBtn&&t(te,{attrs:{bottomAction:!0,text:"加入购物车"},on:{click:r("sku:addCart")}}),t(te,{attrs:{type:"primary",bottomAction:!0,text:e.buyText||"立即购买"},on:{click:r("sku:buy")}})])}Ra.props={buyText:String,skuEventBus:Object,showAddCartBtn:Boolean};var Ua=Pa(Ra),Va=Object(a.k)("sku")[0],Ha=ca.a.QUOTA_LIMIT,qa=Va({props:{sku:Object,goods:Object,quota:Number,value:Boolean,buyText:String,quotaUsed:Number,goodsId:[Number,String],hideStock:Boolean,hideQuotaText:Boolean,stepperTitle:String,getContainer:Function,customSkuValidator:Function,closeOnClickOverlay:Boolean,disableStepperInput:Boolean,resetStepperOnHide:Boolean,resetSelectedSkuOnHide:Boolean,initialSku:{type:Object,default:function(){return{}}},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}},customStepperConfig:{type:Object,default:function(){return{}}}},data:function(){return{selectedSku:{},selectedNum:1,show:this.value}},watch:{show:function(t){if(this.$emit("input",t),!t){var e=ha(this.sku.tree,this.selectedSku);this.$emit("sku-close",{selectedSkuValues:e,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku(this.skuTree)}},value:function(t){this.show=t},skuTree:function(t){this.resetSelectedSku(t)}},computed:{skuGroupClass:function(){return["van-sku-group-container","van-hairline--bottom",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){return ua(this.sku.tree,this.selectedSku)},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},selectedSkuComb:function(){return this.hasSku?this.isSkuCombSelected?da(this.sku.list,this.selectedSku):null:{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num}},price:function(){return this.selectedSkuComb?(this.selectedSkuComb.price/100).toFixed(2):this.sku.price},skuTree:function(){return this.sku.tree||[]},imageList:function(){var t=[this.goods.picture];if(this.skuTree.length>0){var e=this.skuTree.filter(function(t){return"s1"===t.k_s})[0]||{};if(!e.v)return;e.v.forEach(function(e){var n=e.imgUrl||e.img_url;n&&t.push(n)})}return t}},created:function(){var t=new s.default;this.skuEventBus=t,t.$on("sku:close",this.onClose),t.$on("sku:select",this.onSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(this.skuTree),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,n=Object(a.d)(e)?e:1;t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(t){var e=this;this.selectedSku={},t.forEach(function(t){e.selectedSku[t.k_s]=e.initialSku[t.k_s]||ca.b}),t.forEach(function(t){var n=t.k_s,i=t.v[0].id;1===t.v.length&&fa(e.sku.list,e.selectedSku,{key:n,valueId:i})&&(e.selectedSku[n]=i)})},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return"商品已经无法购买啦";if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return"请先选择商品规格"},onClose:function(){this.show=!1},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?Object(i.a)({},this.selectedSku,((e={})[t.skuKeyStr]=ca.b,e)):Object(i.a)({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,n=this.imageList.findIndex(function(e){return e===t}),i={index:n,imageList:this.imageList,indexImage:t};this.$emit("preview-on",i),_r({images:this.imageList,startPosition:n,onClose:function(){e.$emit("preview-close",i)}})},onOverLimit:function(t){var e=t.action,n=t.limitType,i=t.quota,r=t.quotaUsed,o=this.customStepperConfig.handleOverLimit;if(o)o(t);else if("minus"===e)Xt("至少选择一件");else if("plus"===e)if(n===Ha){var a="限购"+i+"件";r>0&&(a+=",你已购买"+r+"件"),Xt(a)}else Xt("库存不足")},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){var e=this.validateSku();e?Xt(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb,messages:this.getSkuMessages(),cartMessages:this.getSkuCartMessages()}}},render:function(t){var e=this;if(!this.isSkuEmpty){var n=this.sku,i=this.goods,r=this.price,o=this.skuEventBus,a=this.selectedSku,s=this.selectedNum,c=this.stepperTitle,l=this.hideQuotaText,u=this.selectedSkuComb,d={price:r,selectedNum:s,skuEventBus:o,selectedSku:a,selectedSkuComb:u},h=function(t){return e.slots(t,d)},f=h("sku-header")||t(na,{attrs:{sku:n,goods:i,skuEventBus:o,selectedSku:a}},[h("sku-header-price")||t("div",{class:"van-sku__goods-price"},[t("span",{class:"van-sku__price-symbol"},["¥"]),t("span",{class:"van-sku__price-num"},[r])])]),p=h("sku-group")||this.hasSku&&t("div",{class:this.skuGroupClass},[this.skuTree.map(function(e){return t(sa,{attrs:{skuRow:e}},[e.v.map(function(i){return t(va,{attrs:{skuList:n.list,skuValue:i,selectedSku:a,skuEventBus:o,skuKeyStr:e.k_s}})})])})]),v=h("sku-stepper")||t(Ca,{ref:"skuStepper",attrs:{quota:this.quota,hideStock:this.hideStock,quotaUsed:this.quotaUsed,skuEventBus:o,selectedNum:s,selectedSku:a,stepperTitle:c,skuStockNum:n.stock_num,hideQuotaText:l,selectedSkuComb:u,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig},on:{change:function(t){e.$emit("stepper-change",t)}}}),m=h("sku-messages")||t(Da,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),g=h("sku-actions")||t(Ua,{attrs:{buyText:this.buyText,skuEventBus:o,showAddCartBtn:this.showAddCartBtn}});return t(tt,{attrs:{position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay},class:"van-sku-container",model:{value:e.show,callback:function(t){e.show=t}}},[f,t("div",{class:"van-sku-body",style:this.bodyStyle},[h("sku-body-top"),p,h("extra-sku-group"),v,m]),g])}}});qa.SkuActions=Ua,qa.SkuHeader=na,qa.SkuMessages=Da,qa.SkuStepper=Ca,qa.SkuRow=sa,qa.SkuRowItem=va,qa.skuHelper=pa,qa.skuConstants=ca.c;var Wa=qa,Ya=Object(a.k)("slider"),Xa=Ya[0],Ka=Ya[1],Qa=Xa({mixins:[v],props:{min:Number,value:Number,disabled:Boolean,vertical:Boolean,activeColor:String,inactiveColor:String,max:{type:Number,default:100},step:{type:Number,default:1},barHeight:{type:String,default:"2px"}},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.startValue=this.format(this.value))},onTouchMove:function(t){if(k(t,!0),!this.disabled){this.touchMove(t);var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*100;this.newValue=this.startValue+n,this.updateValue(this.newValue)}},onTouchEnd:function(){this.disabled||this.updateValue(this.newValue,!0)},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=(this.vertical?t.clientY-e.top:t.clientX-e.left)/(this.vertical?e.height:e.width)*100;this.updateValue(n,!0)}},updateValue:function(t,e){t=this.format(t),this.$emit("input",t),e&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(t){var e,n=this.vertical,i={background:this.inactiveColor},r=n?"width":"height",o=((e={})[n?"height":"width"]=this.format(this.value)+"%",e[r]=this.barHeight,e.background=this.activeColor,e);return t("div",{style:i,class:Ka({disabled:this.disabled,vertical:n}),on:{click:this.onClick}},[t("div",{class:Ka("bar"),style:o},[t("div",{class:Ka("button-wrapper"),on:{touchstart:this.onTouchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[this.slots("button")||t("div",{class:Ka("button")})])])])}}),Ga=Object(a.k)("step"),Ja=Ga[0],Za=Ga[1],ts=Ja({beforeCreate:function(){var t=this.$parent.steps,e=this.$parent.slots().indexOf(this.$vnode);t.splice(-1===e?t.length:e,0,this)},beforeDestroy:function(){var t=this.$parent.steps.indexOf(this);t>-1&&this.$parent.steps.splice(t,1)},computed:{status:function(){var t=this.$parent.steps.indexOf(this),e=this.$parent.active;return ti*r&&i>0?this.open("right"):"left"===t&&e>n*r&&n>0?this.open("left"):this.swipeMove(0)},startDrag:function(t){this.disabled||(this.dragging=!0,this.startOffset=this.offset,this.touchStart(t))},onDrag:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(k(t),this.swipeMove(this.deltaX+this.startOffset)))},endDrag:function(){this.disabled||(this.dragging=!1,this.swiping&&this.swipeLeaveTransition(this.offset>0?"left":"right"))},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.offset&&(this.onClose?this.onClose(t,this):this.swipeMove(0))}},render:function(t){var e=this,n=function(t,n){return function(i){n&&i.stopPropagation(),e.onClick(t)}},i={transform:"translate3d("+this.offset+"px, 0, 0)",transition:this.dragging?"none":".6s cubic-bezier(0.18, 0.89, 0.32, 1)"};return t("div",{class:ps(),on:{click:n("cell"),touchstart:this.startDrag,touchmove:this.onDrag,touchend:this.endDrag,touchcancel:this.endDrag}},[t("div",{class:ps("wrapper"),style:i,on:{transitionend:function(){e.swiping=!1}}},[this.leftWidth?t("div",{class:ps("left"),on:{click:n("left",!0)}},[this.slots("left")]):null,this.slots(),this.rightWidth?t("div",{class:ps("right"),on:{click:n("right",!0)}},[this.slots("right")]):null])])}}),ms=Object(a.k)("tabbar"),gs=ms[0],bs=ms[1],ys=gs({data:function(){return{items:[]}},props:{value:Number,activeColor:String,safeAreaInsetBottom:Boolean,fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1}},watch:{items:function(){this.setActiveItem()},value:function(){this.setActiveItem()}},methods:{setActiveItem:function(){var t=this;this.items.forEach(function(e,n){e.active=n===t.value})},onChange:function(t){t!==this.value&&(this.$emit("input",t),this.$emit("change",t))}},render:function(t){return t("div",{style:{zIndex:this.zIndex},class:["van-hairline--top-bottom",bs({fixed:this.fixed,"safe-area-inset-bottom":this.safeAreaInsetBottom})]},[this.slots()])}}),xs=Object(a.k)("tabbar-item"),ks=xs[0],ws=xs[1],Cs=ks({props:Object(i.a)({},Ot,{icon:String,dot:Boolean,info:[String,Number]}),data:function(){return{active:!1}},beforeCreate:function(){this.$parent.items.push(this)},destroyed:function(){this.$parent.items.splice(this.$parent.items.indexOf(this),1)},methods:{onClick:function(t){this.$parent.onChange(this.$parent.items.indexOf(this)),this.$emit("click",t),St(this.$router,this)}},render:function(t){var e=this.icon,n=this.slots,i=this.active,r=i?{color:this.$parent.activeColor}:null;return t("div",{class:ws({active:i}),style:r,on:{click:this.onClick}},[t("div",{class:ws("icon",{dot:this.dot})},[n("icon",{active:i})||e&&t(H,{attrs:{name:e}}),t(R,{attrs:{info:this.info}})]),t("div",{class:ws("text")},[n("default",{active:i})])])}}),Ss=Object(a.k)("tree-select"),_s=Ss[0],Os=Ss[1];function $s(t,e,n,i){var r=e.height,a=e.items,s=e.mainActiveIndex,c=e.activeId,l=(a[s]||{}).children||[];return t("div",o()([{class:Os(),style:{height:r+"px"}},u(i)]),[t("div",{class:Os("nav")},[a.map(function(e,n){return t("div",{key:n,class:["van-ellipsis",Os("nitem",{active:s===n,disabled:e.disabled})],on:{click:function(){e.disabled||d(i,"navclick",n)}}},[e.text])})]),t("div",{class:Os("content")},[l.map(function(e){return t("div",{key:e.id,class:["van-ellipsis",Os("item",{active:c===e.id,disabled:e.disabled})],on:{click:function(){e.disabled||d(i,"itemclick",e)}}},[e.text,c===e.id&&t(H,{attrs:{name:"checked",size:"16px"},class:Os("selected")})])})])])}$s.props={items:Array,mainActiveIndex:Number,activeId:{type:[Number,String],default:0},height:{type:Number,default:300}};var Ts=_s($s),js="@@Waterfall",As=300;function Es(){var t=this;if(!this.el[js].binded){this.el[js].binded=!0,this.scrollEventListener=function(){var t=this.el,e=this.scrollEventTarget;if(!this.disabled){var n=I(e),i=B(e),r=n+i;if(i){(t===e?e.scrollHeight-r0)&&this.cb.upper&&this.cb.upper({target:e,top:n})}}}.bind(this),this.scrollEventTarget=N(this.el);var e=this.el.getAttribute("waterfall-disabled"),n=!1;e&&(this.vm.$watch(e,function(e){t.disabled=e,t.scrollEventListener()}),n=Boolean(this.vm[e])),this.disabled=n;var i=this.el.getAttribute("waterfall-offset");this.offset=Number(i)||As,b(this.scrollEventTarget,"scroll",this.scrollEventListener,!0),this.scrollEventListener()}}function Ns(t){t[js].vm.$nextTick(function(){Es.call(t[js])})}var Is=function(t){return{bind:function(e,n,i){e[js]||(e[js]={el:e,vm:i.context,cb:{}}),e[js].cb[t]=n.value,function(t){var e=t[js];e.vm._isMounted?Ns(t):e.vm.$on("hook:mounted",function(){Ns(t)})}(e)},update:function(t){var e=t[js];e.scrollEventListener&&e.scrollEventListener()},unbind:function(t){var e=t[js];e.scrollEventTarget&&y(e.scrollEventTarget,"scroll",e.scrollEventListener)}}};Is.install=function(t){t.directive("WaterfallLower",Is("lower")),t.directive("WaterfallUpper",Is("upper"))};var zs=Is;n.d(e,"a",function(){return _r}),n.d(e,"b",function(){return $r}),n.d(e,"c",function(){return Ir.a}),n.d(e,"d",function(){return zs});var Bs=[ot,Ae,Ke,wt,Ze,rn,te,mn,Et,kn,Cn,$n,zn,Mn,Un,Yn,Zn,oi,di,bi,Si,Mi,Yi,se,Lt,Ji,ir,cr,H,_r,R,Nr,Q,Mr,Ur,Jr,lo,$,mo,ko,Oo,bt,tt,Ao,Lo,Me,ze,Ro,qo,Go,Wa,Qa,ts,ya,rs,ds,hr,vs,mr,ye,Se,Ti,ys,Cs,Ii,dn,Xt,Ts,Ta],Ls=function(t){Bs.forEach(function(e){t.use(e)})};"undefined"!=typeof window&&window.Vue&&Ls(window.Vue);e.e={install:Ls,version:"1.6.28"}},function(t,e,n){var i=n(29).version;t.exports={"zh-CN":{header:{logo:{image:"https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png",title:"Vant",version:i,href:"#/"},nav:{"Vue 组件":"https://vant-ui.github.io/vant/v1/","小程序组件":"https://vant-ui.github.io/vant-weapp/",lang:{text:"En",from:"zh-CN",to:"en-US"},github:"https://github.com/youzan/vant"}},nav:[{name:"开发指南",groups:[{list:[{path:"/intro",title:"介绍"},{path:"/quickstart",title:"快速上手"},{path:"/changelog",title:"更新日志"},{path:"/style",title:"内置样式"},{path:"/theme",title:"定制主题"},{path:"/contribution",title:"开发指南"},{path:"/design",title:"设计资源"},{path:"/style-guide",title:"风格指南"},{path:"/demo",title:"示例页面"},{path:"/locale",title:"国际化"}]}]},{name:"组件",showInMobile:!0,groups:[{groupName:"基础组件",icon:"https://img.yzcdn.cn/vant/basic-0401.svg",list:[{path:"/button",title:"Button 按钮"},{path:"/cell",title:"Cell 单元格"},{path:"/icon",title:"Icon 图标"},{path:"/col",title:"Layout 布局"},{path:"/popup",title:"Popup 弹出层"}]},{groupName:"表单组件",icon:"https://img.yzcdn.cn/vant/form-0401.svg",list:[{path:"/checkbox",title:"Checkbox 复选框"},{path:"/datetime-picker",title:"DatetimePicker 时间选择"},{path:"/field",title:"Field 输入框"},{path:"/number-keyboard",title:"NumberKeyboard 数字键盘"},{path:"/password-input",title:"PasswordInput 密码输入框"},{path:"/picker",title:"Picker 选择器"},{path:"/radio",title:"Radio 单选框"},{path:"/rate",title:"Rate 评分"},{path:"/search",title:"Search 搜索"},{path:"/slider",title:"Slider 滑块"},{path:"/stepper",title:"Stepper 步进器"},{path:"/switch",title:"Switch 开关"},{path:"/switch-cell",title:"SwitchCell 开关单元格"},{path:"/uploader",title:"Uploader 图片上传"}]},{groupName:"反馈组件",icon:"passed",list:[{path:"/actionsheet",title:"Actionsheet 上拉菜单"},{path:"/dialog",title:"Dialog 弹出框"},{path:"/loading",title:"Loading 加载"},{path:"/notify",title:"Notify 消息通知"},{path:"/pull-refresh",title:"PullRefresh 下拉刷新"},{path:"/swipe-cell",title:"SwipeCell 滑动单元格"},{path:"/toast",title:"Toast 轻提示"}]},{groupName:"展示组件",icon:"photo-o",list:[{path:"/circle",title:"Circle 环形进度条"},{path:"/collapse",title:"Collapse 折叠面板"},{path:"/image-preview",title:"ImagePreview 图片预览"},{path:"/lazyload",title:"Lazyload 图片懒加载"},{path:"/list",title:"List 列表"},{path:"/notice-bar",title:"NoticeBar 通告栏"},{path:"/panel",title:"Panel 面板"},{path:"/progress",title:"Progress 进度条"},{path:"/steps",title:"Steps 步骤条"},{path:"/swipe",title:"Swipe 轮播"},{path:"/tag",title:"Tag 标记"}]},{groupName:"导航组件",icon:"https://img.yzcdn.cn/vant/nav-0401.svg",list:[{path:"/badge",title:"Badge 徽章"},{path:"/nav-bar",title:"NavBar 导航栏"},{path:"/pagination",title:"Pagination 分页"},{path:"/tab",title:"Tab 标签页"},{path:"/tabbar",title:"Tabbar 标签栏"},{path:"/tree-select",title:"TreeSelect 分类选择"}]},{groupName:"业务组件",icon:"ellipsis",list:[{path:"/address-edit",title:"AddressEdit 地址编辑"},{path:"/address-list",title:"AddressList 地址列表"},{path:"/area",title:"Area 省市区选择"},{path:"/card",title:"Card 商品卡片"},{path:"/contact-card",title:"Contact 联系人"},{path:"/coupon-list",title:"Coupon 优惠券"},{path:"/goods-action",title:"GoodsAction 商品导航"},{path:"/submit-bar",title:"SubmitBar 提交订单栏"},{path:"/sku",title:"Sku 商品规格"}]}]}]},"en-US":{header:{logo:{image:"https://img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png",title:"Vant",version:i,href:"#/"},nav:{lang:{text:"中文",from:"en-US",to:"zh-CN"},github:"https://github.com/youzan/vant"}},nav:[{name:"Essentials",groups:[{list:[{path:"/intro",title:"Introduction"},{path:"/quickstart",title:"Quickstart"},{path:"/changelog",title:"Changelog"},{path:"/style",title:"Built-in style"},{path:"/theme",title:"Custom Theme"},{path:"/demo",title:"Demo pages"},{path:"/locale",title:"Internationalization"}]}]},{name:"Components",showInMobile:!0,groups:[{groupName:"Basic Components",icon:"https://img.yzcdn.cn/vant/basic-0401.svg",list:[{path:"/button",title:"Button"},{path:"/cell",title:"Cell"},{path:"/icon",title:"Icon"},{path:"/col",title:"Layout"},{path:"/popup",title:"Popup"}]},{groupName:"Form Components",icon:"https://img.yzcdn.cn/vant/form-0401.svg",list:[{path:"/checkbox",title:"Checkbox"},{path:"/datetime-picker",title:"DatetimePicker"},{path:"/field",title:"Field"},{path:"/number-keyboard",title:"NumberKeyboard"},{path:"/password-input",title:"PasswordInput"},{path:"/picker",title:"Picker"},{path:"/radio",title:"Radio"},{path:"/rate",title:"Rate"},{path:"/search",title:"Search"},{path:"/slider",title:"Slider"},{path:"/stepper",title:"Stepper"},{path:"/switch",title:"Switch"},{path:"/switch-cell",title:"SwitchCell"},{path:"/uploader",title:"Uploader"}]},{groupName:"Action Components",icon:"passed",list:[{path:"/actionsheet",title:"Actionsheet"},{path:"/dialog",title:"Dialog"},{path:"/loading",title:"Loading"},{path:"/notify",title:"Notify"},{path:"/pull-refresh",title:"PullRefresh"},{path:"/swipe-cell",title:"SwipeCell"},{path:"/toast",title:"Toast"}]},{groupName:"Display Components",icon:"photo-o",list:[{path:"/circle",title:"Circle"},{path:"/collapse",title:"Collapse"},{path:"/image-preview",title:"ImagePreview"},{path:"/lazyload",title:"Lazyload"},{path:"/list",title:"List"},{path:"/notice-bar",title:"NoticeBar"},{path:"/panel",title:"Panel"},{path:"/progress",title:"Progress"},{path:"/steps",title:"Steps"},{path:"/swipe",title:"Swipe"},{path:"/tag",title:"Tag"}]},{groupName:"Navigation Components",icon:"https://img.yzcdn.cn/vant/nav-0401.svg",list:[{path:"/badge",title:"Badge"},{path:"/nav-bar",title:"NavBar"},{path:"/pagination",title:"Pagination"},{path:"/tab",title:"Tab"},{path:"/tabbar",title:"Tabbar"},{path:"/tree-select",title:"TreeSelect"}]},{groupName:"Business Components",icon:"ellipsis",list:[{path:"/address-edit",title:"AddressEdit"},{path:"/address-list",title:"AddressList"},{path:"/area",title:"Area"},{path:"/card",title:"Card"},{path:"/contact-card",title:"Contact"},{path:"/coupon-list",title:"Coupon"},{path:"/goods-action",title:"GoodsAction"},{path:"/submit-bar",title:"SubmitBar"},{path:"/sku",title:"Sku"}]}]}]}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"});return[n].concat(o).concat([r]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r=0&&u.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var i=function(){0;return n.nc}();i&&(t.attrs.nonce=i)}return g(e,t.attrs),p(t,e),e}function g(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function b(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=o}if(e.singleton){var a=l++;n=c||(c=m(e)),i=k.bind(null,n,a,!1),r=k.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),p(t,e),e}(e),i=function(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=d(i));r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),r=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),i=function(t,e){var n=e.css,i=e.media;i&&t.setAttribute("media",i);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){v(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return h(n,e),function(t){for(var i=[],r=0;r-1}function r(t,e){for(var n in e)t[n]=e[n];return t}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),d=0,h=!1;o&&o._routerRoot!==o;){var f=o.$vnode&&o.$vnode.data;f&&(f.routerView&&d++,f.keepAlive&&o._inactive&&(h=!0)),o=o.$parent}if(a.routerViewDepth=d,h)return s(u[c],a,i);var p=l.matched[d];if(!p)return u[c]=null,s();var v=u[c]=p.components[c];a.registerRouteInstance=function(t,e){var n=p.instances[c];(e&&n!==t||!e&&n===t)&&(p.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){p.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==p.instances[c]&&(p.instances[c]=t.componentInstance)};var m=a.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(l,p.props&&p.props[c]);if(m){m=a.props=r({},m);var g=a.attrs=a.attrs||{};for(var b in m)v.props&&b in v.props||(g[b]=m[b],delete m[b])}return s(v,a,i)}};var a=/[!'()*]/g,s=function(t){return"%"+t.charCodeAt(0).toString(16)},c=/%2C/g,l=function(t){return encodeURIComponent(t).replace(a,s).replace(c,",")},u=decodeURIComponent;function d(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),i=u(n.shift()),r=n.length>0?u(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}),e):e}function h(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var i=[];return n.forEach(function(t){void 0!==t&&(null===t?i.push(l(e)):i.push(l(e)+"="+l(t)))}),i.join("&")}return l(e)+"="+l(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var f=/\/?$/;function p(t,e,n,i){var r=i&&i.options.stringifyQuery,o=e.query||{};try{o=v(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:b(e,r),matched:t?g(t):[]};return n&&(a.redirectedFrom=b(n,r)),Object.freeze(a)}function v(t){if(Array.isArray(t))return t.map(v);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=v(t[n]);return e}return t}var m=p(null,{path:"/"});function g(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function b(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;return void 0===r&&(r=""),(n||"/")+(e||h)(i)+r}function y(t,e){return e===m?t===e:!!e&&(t.path&&e.path?t.path.replace(f,"")===e.path.replace(f,"")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every(function(n){var i=t[n],r=e[n];return"object"==typeof i&&"object"==typeof r?x(i,r):String(i)===String(r)})}var k,w=[String,Object],C=[String,Array],S={name:"RouterLink",props:{to:{type:w,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:C,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,c=o.href,l={},u=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==u?"router-link-active":u,v=null==d?"router-link-exact-active":d,m=null==this.activeClass?h:this.activeClass,g=null==this.exactActiveClass?v:this.exactActiveClass,b=a.path?p(null,a,null,n):s;l[g]=y(i,b),l[m]=this.exact?l[g]:function(t,e){return 0===t.path.replace(f,"/").indexOf(e.path.replace(f,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(i,b);var x=function(t){_(t)&&(e.replace?n.replace(a):n.push(a))},k={click:_};Array.isArray(this.event)?this.event.forEach(function(t){k[t]=x}):k[this.event]=x;var w={class:l};if("a"===this.tag)w.on=k,w.attrs={href:c};else{var C=function t(e){if(e)for(var n,i=0;i=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}(o.path||""),l=e&&e.path||"/",u=c.path?$(c.path,l,n||o.append):l,h=function(t,e,n){void 0===e&&(e={});var i,r=n||d;try{i=r(t||"")}catch(t){i={}}for(var o in e)i[o]=e[o];return i}(c.query,o.query,i&&i.options.parseQuery),f=o.hash||c.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:u,query:h,hash:f}}function Q(t,e){var n=Y(t),i=n.pathList,r=n.pathMap,o=n.nameMap;function a(t,n,a){var s=K(t,n,!1,e),l=s.name;if(l){var u=o[l];if(!u)return c(null,s);var d=u.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var h in n.params)!(h in s.params)&&d.indexOf(h)>-1&&(s.params[h]=n.params[h]);if(u)return s.path=W(u.path,s.params),c(u,s,a)}else if(s.path){s.params={};for(var f=0;f=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function vt(t){return function(e,n,r){var o=!1,a=0,s=null;mt(t,function(t,e,n,c){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var l,u=yt(function(e){var i;((i=e).__esModule||bt&&"Module"===i[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:k.extend(e),n.components[c]=e,--a<=0&&r()}),d=yt(function(t){var e="Failed to resolve async component "+c+": "+t;s||(s=i(t)?t:new Error(e),r(s))});try{l=t(u,d)}catch(t){d(t)}if(l)if("function"==typeof l.then)l.then(u,d);else{var h=l.component;h&&"function"==typeof h.then&&h.then(u,d)}}}),o||r()}}function mt(t,e){return gt(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function gt(t){return Array.prototype.concat.apply([],t)}var bt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function yt(t){var e=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var xt=function(t,e){this.router=t,this.base=function(t){if(!t)if(O){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function kt(t,e,n,i){var r=mt(t,function(t,i,r,o){var a=function(t,e){"function"!=typeof t&&(t=k.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,i,r,o)}):n(a,i,r,o)});return gt(i?r.reverse():r)}function wt(t,e){if(e)return function(){return t.apply(e,arguments)}}xt.prototype.listen=function(t){this.cb=t},xt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},xt.prototype.onError=function(t){this.errorCbs.push(t)},xt.prototype.transitionTo=function(t,e,n){var i=this,r=this.router.match(t,this.current);this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(r)}))},function(t){n&&n(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(e){e(t)}))})},xt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,a=function(t){i(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):console.error(t)),n&&n(t)};if(y(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),a();var s=function(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n-1?decodeURI(t.slice(0,i))+t.slice(i):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function Tt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function jt(t){st?ht(Tt(t)):window.location.hash=t}function At(t){st?ft(Tt(t)):window.location.replace(Tt(t))}var Et=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){e.index=n,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(xt),Nt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Q(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!st&&!1!==t.fallback,this.fallback&&(e="hash"),O||(e="abstract"),this.mode=e,e){case"history":this.history=new Ct(this,t.base);break;case"hash":this.history=new _t(this,t.base,this.fallback);break;case"abstract":this.history=new Et(this,t.base);break;default:0}},It={currentRoute:{configurable:!0}};function zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Nt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},It.currentRoute.get=function(){return this.history&&this.history.current},Nt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)}),!this.app){this.app=t;var n=this.history;if(n instanceof Ct)n.transitionTo(n.getCurrentLocation());else if(n instanceof _t){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Nt.prototype.beforeEach=function(t){return zt(this.beforeHooks,t)},Nt.prototype.beforeResolve=function(t){return zt(this.resolveHooks,t)},Nt.prototype.afterEach=function(t){return zt(this.afterHooks,t)},Nt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Nt.prototype.onError=function(t){this.history.onError(t)},Nt.prototype.push=function(t,e,n){this.history.push(t,e,n)},Nt.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Nt.prototype.go=function(t){this.history.go(t)},Nt.prototype.back=function(){this.go(-1)},Nt.prototype.forward=function(){this.go(1)},Nt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Nt.prototype.resolve=function(t,e,n){var i=K(t,e=e||this.history.current,n,this),r=this.match(i,e),o=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:function(t,e,n){var i="hash"===n?"#"+e:e;return t?T(t+"/"+i):i}(this.history.base,o,this.mode),normalizedTo:i,resolved:r}},Nt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Nt.prototype,It),Nt.install=function t(e){if(!t.installed||k!==e){t.installed=!0,k=e;var n=function(t){return void 0!==t},i=function(t,e){var i=t.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",o),e.component("RouterLink",S);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},Nt.version="3.0.6",O&&window.Vue&&window.Vue.use(Nt),e.a=Nt},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(32);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(34);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(36);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(13)(i,r);i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n(0),r=Object.prototype.hasOwnProperty;function o(t,e){return Object.keys(e).forEach(function(n){!function(t,e,n){var a=e[n];Object(i.d)(a)&&(r.call(t,n)&&Object(i.g)(a)?t[n]=o(Object(t[n]),e[n]):t[n]=a)}(t,e,n)}),t}},function(t,e,n){"use strict";e.a={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",confirmDelete:"确定要删除么",telInvalid:"请填写正确的电话",vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{valid:"有效期",unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"使用优惠",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠",enable:"可使用优惠券",disabled:"不可使用优惠券",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}},function(t,e,n){"use strict";function i(t,e){var n=function n(){t.contentWindow.changePath?e():setTimeout(function(){n()},50)};"complete"===(t.contentDocument||t.contentWindow.document).readyState?n():t.onload=n}n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i});var r=navigator.userAgent.toLowerCase(),o=/ios|iphone|ipod|ipad|android/.test(r)},function(t,e,n){ /*! * Vue-Lazyload.js v1.2.3 * (c) 2018 Awe * Released under the MIT License. */ t.exports=function(){"use strict";function t(t){t=t||{};var i=arguments.length,r=0;if(1===i)return t;for(;++r-1?t.splice(n,1):void 0}}function o(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],r=t.parentNode,o=r.offsetWidth*e,a=void 0,s=void 0,c=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(a=t.lastIndexOf(" "))?(s=t,c=999998):(s=t.substr(0,a),c=parseInt(t.substr(a+1,t.length-a-2),10)),i.push([c,s])}),i.sort(function(t,e){if(t[0]e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0});for(var l="",u=void 0,d=i.length,h=0;h=o){l=u[1];break}return l}}function a(t,e){for(var n=void 0,i=0,r=t.length;i0&&void 0!==arguments[0]?arguments[0]:1;return g&&window.devicePixelRatio||t},w=function(){if(g){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),C={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];w?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},S=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},_=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},O=function(t){return _(t,"overflow")+_(t,"overflow-y")+_(t,"overflow-x")},$={},T=function(){function t(e){var n=e.el,i=e.src,r=e.error,o=e.loading,a=e.bindType,s=e.$parent,c=e.options,l=e.elRenderer;u(this,t),this.el=n,this.src=i,this.error=r,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=s,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return d(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.topthis.options.preLoadTop&&this.rect.left0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;S({src:this.loading},function(n){e.render("loading",!1),t()},function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")})}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||$[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),S({src:t.src},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),$[t.src]=1,e()},function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)})})}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),j="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",A=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],E={rootMargin:"0px",threshold:0},N=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,o=t.preLoadTop,a=t.dispatchEvent,c=t.loading,l=t.attempt,d=t.silent,h=void 0===d||d,f=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),m=t.adapter,g=t.observer,b=t.observerOptions;u(this,e),this.version="1.2.3",this.mode=y.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:h,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:o||0,error:i||j,loading:c||j,attempt:l||3,scale:f||k(f),ListenEvents:p||A,hasbind:!1,supportWebp:s(),filter:v||{},adapter:m||{},observer:!!g,observerOptions:b||E},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var r=Date.now()-i,o=this,a=arguments,s=function(){i=Date.now(),n=!1,t.apply(o,a)};r>=e?s():n=setTimeout(s,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?y.observer:y.event)}return d(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),g&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,i){var r=this;if(function(t,e){for(var n=!1,i=0,r=t.length;i1&&void 0!==arguments[1]?arguments[1]:{},n=N(t),i=new n(e),r=new I({lazy:i}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=i,e.lazyComponent&&t.component("lazy-component",function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),g&&this.rect.top0&&this.rect.left0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}}(i)),o?(t.directive("lazy",{bind:i.add.bind(i),update:i.update.bind(i),componentUpdated:i.lazyLoadHandler.bind(i),unbind:i.remove.bind(i)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:i.lazyLoadHandler.bind(i),update:function(t,e){m(this.vm.$refs,this.vm.$els),i.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}}()},function(t,e,n){"use strict";var i=n(3),r=n(11),o=n.n(r),a={props:{base:String,group:Object},data:function(){return{active:[]}}},s=(n(31),n(7)),c=Object(s.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-collapse",{staticClass:"mobile-nav",attrs:{border:!1},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-collapse-item",{staticClass:"mobile-nav__item",attrs:{title:t.group.groupName,name:t.group.groupName}},[n("van-icon",{staticClass:"mobile-nav__icon",attrs:{slot:"right-icon",name:t.group.icon},slot:"right-icon"}),t._l(t.group.list,function(e,i){return[e.disabled?t._e():n("van-cell",{key:i,attrs:{to:"/"+t.base+e.path,title:e.title,"is-link":""}})]})],2)],1)},[],!1,null,null,null).exports,l=n(8),u={"en-US":{title:"Vant - Mobile UI Components built on Vue",messages:{name:"Name",tel:"Phone",save:"Save",confirm:"Confirm",cancel:"Cancel",delete:"Delete",complete:"Complete",loading:"Loading...",telEmpty:"Please fill in the tel",nameEmpty:"Please fill in the name",confirmDelete:"Are you sure you want to delete?",telInvalid:"Malformed phone number",vanContactCard:{addText:"Add contact info"},vanContactList:{addText:"Add new contact"},vanPagination:{prev:"Previous",next:"Next"},vanPullRefresh:{pulling:"Pull to refresh...",loosing:"Loose to refresh..."},vanSubmitBar:{label:"Total:"},vanCoupon:{valid:"Valid",unlimited:"Unlimited",discount:function(t){return 10*t+"% off"},condition:function(t){return"At least "+t}},vanCouponCell:{title:"Coupon",tips:"Select coupon",count:function(t){return"You have "+t+" coupons"}},vanCouponList:{empty:"No coupons",exchange:"Exchange",close:"Close",enable:"Available",disabled:"Unavailable",placeholder:"Coupon code"},vanAddressEdit:{area:"Area",postal:"Postal",areaEmpty:"Please select a receiving area",addressEmpty:"Address can not be empty",postalEmpty:"Wrong postal code",defaultAddress:"Set as the default address",telPlaceholder:"Phone",namePlaceholder:"Name",areaPlaceholder:"Area"},vanAddressEditDetail:{label:"Address",placeholder:"Address"},vanAddressList:{add:"Add new address"}}},"zh-CN":{title:"Vant - 轻量、可靠的移动端 Vue 组件库",messages:n(20).a}},d="";function h(t){d!==t&&(d=t,window.localStorage&&localStorage.setItem("VANT_LANGUAGE",t),l.a.use(t,u[t].messages),document.title=u[t].title)}h(function(){for(var t=Object.keys(u),e=location.hash,n=0;n1?r-1:0),a=1;a=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(27),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(15))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,r,o,a,s,c=1,l={},u=!1,d=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},i=function(t){o.port2.postMessage(t)}):d&&"onreadystatechange"in d.createElement("script")?(r=d.documentElement,i=function(t){var e=d.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):i=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),i=function(e){t.postMessage(a+e,"*")}),h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n= 2.5.0"},devDependencies:{"@babel/core":"^7.4.3","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-syntax-jsx":"^7.2.0","@babel/plugin-transform-object-assign":"^7.0.0","@babel/plugin-transform-runtime":"^7.4.3","@babel/polyfill":"^7.4.3","@babel/preset-env":"^7.4.3","@babel/preset-typescript":"^7.3.3","@types/jest":"^24.0.11","@vant/doc":"^1.0.25","@vant/eslint-config":"^1.1.2","@vant/markdown-loader":"^1.0.3","@vue/babel-preset-jsx":"^1.0.0-beta.3","@vue/server-test-utils":"^1.0.0-beta.29","@vue/test-utils":"^1.0.0-beta.29",autoprefixer:"^9.5.1","babel-jest":"^24.7.1","babel-loader":"^8.0.4",codecov:"^3.3.0","cross-env":"^5.2.0","css-loader":"^2.1.1","dependency-tree":"^7.0.2",eslint:"^5.16.0","fast-glob":"^2.2.4","gh-pages":"^2.0.1",gulp:"3.9.1","gulp-csso":"^3.0.1","gulp-less":"^4.0.1","gulp-postcss":"^8.0.0","html-webpack-plugin":"3.2.0",husky:"^1.2.1",jest:"^24.7.1","jest-serializer-vue":"^2.0.2",less:"^3.8.1","less-loader":"^4.1.0","lint-staged":"^8.1.5","markdown-vetur":"0.0.5",postcss:"^7.0.14","postcss-loader":"^3.0.0","progress-bar-webpack-plugin":"^1.12.1",rimraf:"^2.5.4",shelljs:"^0.8.3",signale:"^1.4.0","style-loader":"^0.23.1",stylelint:"^10.0.1","stylelint-config-standard":"^18.3.0","ts-jest":"^24.0.2",typescript:"^3.4.4",uppercamelcase:"^3.0.0","url-loader":"^1.1.2",vue:"2.6.10","vue-jest":"4.0.0-beta.1","vue-loader":"^15.7.0","vue-router":"^3.0.6","vue-server-renderer":"^2.6.10","vue-template-compiler":"2.6.10","vue-template-es2015-compiler":"^1.9.1",webpack:"^4.30.0","webpack-cli":"^3.3.2","webpack-dev-server":"^3.3.1"},vetur:{tags:"vetur/tags.json",attributes:"vetur/attributes.json"}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(t,e,n){"use strict";var i=n(16);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".mobile-nav__item {\n margin-bottom: 16px;\n}\n.mobile-nav__icon {\n font-size: 24px;\n}\n.mobile-nav__icon img {\n width: 100%;\n}\n.mobile-nav .van-collapse-item__content {\n padding: 0;\n}\n.mobile-nav .van-collapse-item__title {\n font-size: 16px;\n font-weight: 500;\n line-height: 40px;\n -webkit-box-align: center;\n -webkit-align-items: center;\n align-items: center;\n border-radius: 2px;\n}\n",""])},function(t,e,n){"use strict";var i=n(17);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".side-nav {\n width: 100%;\n box-sizing: border-box;\n padding: 64px 20px 20px;\n}\n.side-nav .vant-title,\n.side-nav .vant-desc {\n font-weight: normal;\n -webkit-user-select: none;\n user-select: none;\n padding-left: 15px;\n}\n.side-nav .vant-title {\n margin: 0 0 15px;\n}\n.side-nav .vant-title img,\n.side-nav .vant-title span {\n display: inline-block;\n vertical-align: middle;\n}\n.side-nav .vant-title img {\n width: 36px;\n}\n.side-nav .vant-title span {\n font-size: 36px;\n font-weight: 500;\n margin-left: 15px;\n}\n.side-nav .vant-desc {\n font-size: 14px;\n color: #7d7e80;\n margin: 0 0 40px;\n}\n.mobile-switch-lang {\n position: absolute;\n top: 24px;\n right: 24px;\n color: #1989fa;\n font-size: 12px;\n cursor: pointer;\n overflow: hidden;\n}\n.mobile-switch-lang span {\n color: #969799;\n width: 48px;\n line-height: 22px;\n text-align: center;\n display: inline-block;\n border: 1px solid #dcdee0;\n background-color: #f7f8fa;\n}\n.mobile-switch-lang span:first-child {\n border-right: none;\n border-radius: 3px 0 0 3px;\n}\n.mobile-switch-lang span:last-child {\n border-left: none;\n border-radius: 0 3px 3px 0;\n}\n.mobile-switch-lang span.active {\n color: #fff;\n border-color: #1989fa;\n background-color: #1989fa;\n}\n",""])},function(t,e,n){"use strict";var i=n(18);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,".van-doc-demo-pages__gallery {\n margin-top: 30px;\n}\n.van-doc-demo-pages__item {\n width: 28%;\n text-align: center;\n margin-bottom: 40px;\n display: inline-block;\n}\n.van-doc-demo-pages__item:nth-child(3n+1),\n.van-doc-demo-pages__item:nth-child(3n+2) {\n margin-right: 4%;\n}\n.van-doc-demo-pages__item h4 {\n font-size: 14px;\n line-height: 20px;\n font-weight: normal;\n}\n.van-doc-demo-pages__item img {\n width: 100%;\n cursor: pointer;\n border-radius: 3px;\n background-color: #f8f8f8;\n box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);\n}\n.van-doc-demo-pages__item a {\n font-size: 12px;\n margin: 4px 0 7px;\n display: inline-block;\n}\n.van-doc-demo-pages__item--active img {\n box-shadow: 0 1px 4px rgba(51, 136, 255, 0.4), 0 0 0 1px rgba(51, 136, 255, 0.4);\n}\n",""])},function(t,e,n){"use strict";var i=n(24);n.n(i).a},function(t,e,n){(t.exports=n(12)(!1)).push([t.i,'.van-doc-intro {\n padding-top: 40px;\n text-align: center;\n font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;\n}\n.van-doc-intro__youzan {\n width: 32px;\n height: 32px;\n display: block;\n margin: 25px 0 0;\n}\n.van-doc-intro__logo {\n width: 120px;\n height: 120px;\n}\n.van-doc-intro h2 {\n font-size: 36px;\n line-height: 60px;\n font-weight: normal;\n}\n.van-doc-intro p {\n font-size: 15px;\n color: #455a64;\n}\n',""])},,,,,,function(t,e,n){"use strict";n.r(e);var i=n(3),r=n(14),o=n(9),a=n.n(o),s=n(11),c=n.n(s),l={data:function(){return{simulators:["mobile.html"+location.hash],demoURL:""}},computed:{base:function(){return"/"+this.$vantLang},config:function(){return c.a[this.$vantLang]},currentSimulator:function(){var t=this.$route.name;return t&&-1!==t.indexOf("demo")?1:0}},methods:{onChangeDemoURL:function(t){this.simulators=[this.simulators[0],t]}}},u=(n(37),n(7)),d=Object(u.a)(l,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app"},[e("van-doc",{attrs:{base:this.base,config:this.config,active:"Vue 组件",simulators:this.simulators,"current-simulator":this.currentSimulator}},[e("router-view",{on:{changeDemoURL:this.onChangeDemoURL}})],1)],1)},[],!1,null,null,null).exports,h=n(23),f=n(21);i.default.use(r.a).use(a.a);var p=new r.a({mode:"hash",routes:Object(h.a)()});p.beforeEach(function(t,e,n){f.b&&location.replace("mobile.html"+location.hash),o.progress.start(),document.title=t.meta.title||document.title,n()}),p.afterEach(function(){o.progress.done(),window.scrollTo(0,0),i.default.nextTick(function(){return window.syncPath()})}),window.vueRouter=p,new i.default({el:"#app",render:function(t){return t(d)},router:p})}]);