UNPKG

weex-lrui

Version:

A Flyme Style UI library based on Weex for Creator.

2 lines 143 kB
console.log("START WEEX VUE RENDER: 0.12.21, Build 2017-10-12 15:49."),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.WeexVueRender=t()}(this,function(){"use strict";function e(e,t){if("undefined"==typeof document)return t;e=e||"";var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");return r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),n.appendChild(r),t}function t(e,t){for(var n=e;n;){if(n.contains(t)||n==t)return n;n=n.parentNode}return null}function n(e,t,n){var r=kt.createEvent("HTMLEvents");if(r.initEvent(t,!0,!0),"object"==typeof n)for(var i in n)r[i]=n[i];r._for="weex",e.dispatchEvent(r)}function r(e,t,n,r,i,o,a,s){var l=Math.atan2(s-o,a-i)-Math.atan2(r-t,n-e),c=Math.sqrt((Math.pow(s-o,2)+Math.pow(a-i,2))/(Math.pow(r-t,2)+Math.pow(n-e,2))),u=[i-c*e*Math.cos(l)+c*t*Math.sin(l),o-c*t*Math.cos(l)-c*e*Math.sin(l)];return{rotate:l,scale:c,translate:u,matrix:[[c*Math.cos(l),-c*Math.sin(l),u[0]],[c*Math.sin(l),c*Math.cos(l),u[1]],[0,0,1]]}}function i(e){for(v=0;v<e.changedTouches.length;v++){w=e.changedTouches[v];if(!(b=Et[w.identifier]))return;b.lastTouch||(b.lastTouch=b.startTouch),b.lastTime||(b.lastTime=b.startTime),b.velocityX||(b.velocityX=0),b.velocityY||(b.velocityY=0),b.duration||(b.duration=0);var i=Date.now()-b.lastTime,o=(w.clientX-b.lastTouch.clientX)/i,a=(w.clientY-b.lastTouch.clientY)/i;i>70&&(i=70),b.duration+i>70&&(b.duration=70-i),b.velocityX=(b.velocityX*b.duration+o*i)/(b.duration+i),b.velocityY=(b.velocityY*b.duration+a*i)/(b.duration+i),b.duration+=i,b.lastTouch={};for(var s in w)b.lastTouch[s]=w[s];b.lastTime=Date.now();var l=w.clientX-b.startTouch.clientX,c=w.clientY-b.startTouch.clientY,u=Math.sqrt(Math.pow(l,2)+Math.pow(c,2)),d=!(Math.abs(l)>Math.abs(c)),h=d?c>=0?"down":"up":l>=0?"right":"left";("tapping"===b.status||"pressing"===b.status)&&u>10&&(b.status="panning",b.isVertical=d,b.direction=h,n(b.element,"panstart",{touch:w,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:b.isVertical,direction:h})),"panning"===b.status&&(b.panTime=Date.now(),n(b.element,"panmove",{displacementX:l,displacementY:c,touch:w,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:b.isVertical,direction:h}))}if(2==Object.keys(Et).length){for(var f,p=[],m=[],g=[],v=0;v<e.touches.length;v++){var w=e.touches[v],b=Et[w.identifier];p.push([b.startTouch.clientX,b.startTouch.clientY]),m.push([w.clientX,w.clientY])}for(var s in Et)g.push(Et[s].element);f=r(p[0][0],p[0][1],p[1][0],p[1][1],m[0][0],m[0][1],m[1][0],m[1][1]),n(t(g[0],g[1]),"dualtouch",{transform:f,touches:e.touches,touchEvent:e})}}function o(e){if(2==Object.keys(Et).length){var r=[];for(var s in Et)r.push(Et[s].element);n(t(r[0],r[1]),"dualtouchend",{touches:Tt.call(e.touches),touchEvent:e})}for(var l=0;l<e.changedTouches.length;l++){var c=e.changedTouches[l],u=c.identifier,d=Et[u];if(d){if(d.pressingHandler&&(clearTimeout(d.pressingHandler),d.pressingHandler=null),"tapping"===d.status&&(d.timestamp=Date.now(),n(d.element,"tap",{touch:c,touchEvent:e}),Ot&&d.timestamp-Ot.timestamp<300&&n(d.element,"doubletap",{touch:c,touchEvent:e}),Ot=d),"panning"===d.status){var h=Date.now(),f=h-d.startTime,p=c.clientX-d.startTouch.clientX,m=c.clientY-d.startTouch.clientY,g=Math.sqrt(d.velocityY*d.velocityY+d.velocityX*d.velocityX)>.5&&h-d.lastTime<100,v={duration:f,isSwipe:g,velocityX:d.velocityX,velocityY:d.velocityY,displacementX:p,displacementY:m,touch:c,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:d.isVertical,direction:d.direction};n(d.element,"panend",v),g&&n(d.element,"swipe",v)}"pressing"===d.status&&n(d.element,"pressend",{touch:c,touchEvent:e}),delete Et[u]}}0===Object.keys(Et).length&&(Ct.removeEventListener("touchmove",i,!1),Ct.removeEventListener("touchend",o,!1),Ct.removeEventListener("touchcancel",a,!1))}function a(e){if(2==Object.keys(Et).length){var r=[];for(var s in Et)r.push(Et[s].element);n(t(r[0],r[1]),"dualtouchend",{touches:Tt.call(e.touches),touchEvent:e})}for(var l=0;l<e.changedTouches.length;l++){var c=e.changedTouches[l],u=c.identifier,d=Et[u];d&&(d.pressingHandler&&(clearTimeout(d.pressingHandler),d.pressingHandler=null),"panning"===d.status&&n(d.element,"panend",{touch:c,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e}),"pressing"===d.status&&n(d.element,"pressend",{touch:c,touchEvent:e}),delete Et[u])}0===Object.keys(Et).length&&(Ct.removeEventListener("touchmove",i,!1),Ct.removeEventListener("touchend",o,!1),Ct.removeEventListener("touchcancel",a,!1))}function s(e){return e&&e.__esModule?e.default:e}function l(e,t){return t={exports:{}},e(t,t.exports),t.exports}function c(e){Object.defineProperty(this,"val",{value:e.toString(),enumerable:!0}),this.gt=function(e){return c.compare(this,e)>0},this.gte=function(e){return c.compare(this,e)>=0},this.lt=function(e){return c.compare(this,e)<0},this.lte=function(e){return c.compare(this,e)<=0},this.eq=function(e){return 0===c.compare(this,e)}}function u(e){return ta.call(e)===ra}function d(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return!t||t.length<=0?e:(t.forEach(function(t){if("object"==typeof t)for(var n in t)e[n]=t[n]}),e)}function h(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return!t||t.length<=0?e:(t.forEach(function(t){if("object"==typeof t){var n;for(var r in t)!(n=t[r])&&""!==n&&0!==n||"undefined"===n||(e[r]=n)}}),e)}function f(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}}function p(e,t,n){var r=0,i=null,o=t+(t>25?t:25);return function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];var l=this,c=(new Date).getTime();c-r>t&&(n&&(i&&clearTimeout(i),i=setTimeout(function(){i=null,e.apply(l,a)},o)),e.apply(l,a),r=c)}}function m(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function g(e){var t={};for(var n in e)t[oa(n)]=e[n];return t}function v(e){var t={};for(var n in e)t[la(n).replace(ca,function(e){return"-"+e})]=e[n];return t}function w(e,t,n){var r=document.getElementById(t);r&&n&&(r.parentNode.removeChild(r),r=null),r||((r=document.createElement("style")).type="text/css",t&&(r.id=t),document.getElementsByTagName("head")[0].appendChild(r)),r.appendChild(document.createTextNode(e))}function b(e){var t=window.document,n=e/10;t.documentElement&&(t.documentElement.style.fontSize||(t.documentElement.style.fontSize=n+"px",wa.rem=n))}function x(e){if(fa){if(parseInt(fa.getAttribute("content"))===e)return}else(fa=document.createElement("meta")).setAttribute("name","weex-viewport");fa.setAttribute("content",e+"")}function y(){return wa}function _(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return!t||t.length<=0?e:(t.forEach(function(t){if("object"==typeof t)for(var n in t)e[n]=t[n]}),e)}function S(){return ba}function k(e,t,n){var r=new Event(t,{bubbles:!1});if(_(r,n),-1!==window.navigator.userAgent.toLowerCase().indexOf("phantomjs"))return r;try{Object.defineProperty(r,"target",{enumerable:!0,value:e})}catch(t){return _({},r,{target:e})}return r}function C(e,t){e.dispatchEvent(t)}function T(e){function t(n){if(n)return ya.scrollableTypes.indexOf(n.weexType)>-1?(e._parentScroller=n,n):t(n.$parent)}return e?e._parentScroller?e._parentScroller:t(e.$parent):null}function E(e,t){return e.left<t.right&&e.right>t.left}function O(e,t){return e.top<t.bottom&&e.bottom>t.top}function I(e,t,n,r){var i="left"===(n=n||"up")||"right"===n,o="up"===n||"down"===n;if(i&&!O(e,t))return[!1,!1];if(o&&!E(e,t))return[!1,!1];switch(r=parseInt(r||0)*weex.config.env.scale,n){case"up":return[e.top<t.bottom&&e.bottom>t.top,e.top<t.bottom+r&&e.bottom>t.top-r];case"down":return[e.bottom>t.top&&e.top<t.bottom,e.bottom>t.top-r&&e.top<t.bottom+r];case"left":return[e.left<t.right&&e.right>t.left,e.left<t.right+r&&e.right>t.left-r];case"right":return[e.right>t.left&&e.left<t.right,e.right>t.left-r&&e.left<t.right+r]}}function A(e,t,n,r){if(!e.getBoundingClientRect)return!1;var i={top:0,left:0,bottom:window.innerHeight,right:window.innerWidth},o=t===window||t===document.body?i:t?t.getBoundingClientRect():i;return I(e.getBoundingClientRect(),o,n,r)}function N(e,t,n,r){var i=t[n];i&&i.fn&&(i=i.fn),i&&i(k(e,n,{direction:r}))}function j(e){for(var t=e.$vnode,n={},r=[];t;)r.push(t),t=t.parent;return r.forEach(function(e){var t=e.componentOptions&&e.componentOptions.listeners,r=e.data&&e.data.on;d(n,t,r)}),n}function z(e){return e&&e.getAttribute("appear-offset")}function $(e){return[!(!e.appear&&!e.disappear),!(!e.offsetAppear&&!e.offsetDisappear)]}function P(e,t){var n=e&&e.$el;if(n&&1===n.nodeType){var r=z(n),i=$(j(e));if(i[0]||i[1]){var o=!1,a=window,s=T(e);if(s&&s.$el?a=s.$el:o=!0,t&&L(e,A(n,a,null,r),null),a._watchAppearList||(a._watchAppearList=[]),a._watchAppearList.push(e),!a._scrollWatched){a._scrollWatched=!0;var l=p(function(e){var t=o?window.pageYOffset:a.scrollTop,n=a._lastScrollTop;a._lastScrollTop=t;var r=(t<n?"down":t>n?"up":a._prevDirection)||null;a._prevDirection=r;for(var i=a._watchAppearList||[],s=i.length,l=0;l<s;l++){var c=i[l],u=c.$el,d=z(u);L(c,A(u,a,r,d),r)}},25,!0);a.addEventListener("scroll",l,!1)}}}}function M(e){return L(e,[!1,!1])}function L(e,t,n,r){void 0===n&&(n=null);var i=e&&e.$el,o=t[0],a=t[1];if(i){var s=j(e);(e._appearedOnce||o)&&e._visible!==o&&(e._appearedOnce||(e._appearedOnce=!0),e._visible=o,N(i,s,o?"appear":"disappear",n)),(e._offsetAppearedOnce||a)&&e._offsetVisible!==a&&(e._offsetAppearedOnce||(e._offsetAppearedOnce=!0),e._offsetVisible=a,N(i,s,a?"offsetAppear":"offsetDisappear",n))}}function R(e,t,n){var r=new Image;r.onload=t?t.bind(r):null,r.onerror=n?n.bind(r):null,r.src=e}function W(e,t,n){function r(){delete e._src_loading}t&&e._src_loading!==t&&(e.style.backgroundImage="url("+(t||"")+")",e.removeAttribute("img-src"),e._src_loading=t,R(t,function(n){e.style.backgroundImage="url("+(t||"")+")";var i=this,o=i.width,a=i.height;C(e,k(e,"load",{success:!0,size:{naturalWidth:o,naturalHeight:a}})),r()},function(t){C(e,k(e,"load",{success:!1,size:{naturalWidth:0,naturalHeight:0}})),n&&R(n,function(){e.style.backgroundImage="url("+(n||"")+")"}),r()}))}function F(e,t){if(Array.isArray(e))return e.forEach(function(e){return F(e)});if(e=e||document.body){var n=(e||document.body).querySelectorAll("[img-src]");e.getAttribute("img-src")&&(n=[e]);for(var r=0;r<n.length;r++){var i=n[r];"boolean"==typeof t&&t?W(i,i.getAttribute("img-src"),i.getAttribute("img-placeholder")):A(i,e)[0]&&W(i,i.getAttribute("img-src"),i.getAttribute("img-placeholder"))}}}function B(e,t){void 0===e&&(e=16),void 0===t&&(t=document.body);var n=+(t&&t.dataset.throttleId);return(isNaN(n)||n<=0)&&(n=Sa++,t&&t.setAttribute("data-throttle-id",n+"")),!_a[n]&&(_a[n]={}),_a[n][e]||(_a[n][e]=p(F.bind(this,t),parseFloat(e),!0))}function H(e,t){return parseFloat(e)/t*360}function D(e,t,n){var r=t-e;return((n-e)%r+r)%r+e}function U(e){return e?e.trim().replace(/^([+-]?\d+(?:.\d+)?)grad/,function(e,t){return H(t,400)+"deg"}).replace(/^([+-]?\d+(?:.\d+)?)rad/,function(e,t){return H(t,2*Math.PI)+"deg"}).replace(/^([+-]?\d+(?:.\d+)?)turn/,function(e,t){return H(t,1)+"deg"}).replace(/^([+-]?\d+(?:.\d+)?)deg/,function(e,t){var n=D(0,360,parseFloat(t))+"deg";switch(n){case"0deg":n="to top";break;case"90deg":n="to right";break;case"180deg":n="to bottom";break;case"270deg":n="to left"}return n}):e}function Y(e){return e.replace(/^to\s(top|left|bottom|right)(?:\s+(top|left|bottom|right))?/,function(e,t,n){var r=n&&" "+Ra[n]||"";return""+Ra[t]+r}).replace(/^([+-]?\d+(?:.\d+)?)deg/,function(e,t){var n=Math.abs(450-parseFloat(t))%360;return(n=parseFloat(n.toFixed(3)))+"deg"})}function V(e){return e.replace(/^(\S+)\sat\s([^,]+)/,function(e,t,n){return n+", "+t})}function K(e){return e=U(e),e=Y(e),e=V(e)}function X(){if(void 0===xa){var e=window.devicePixelRatio;if(e&&e>=2&&document.documentElement){var t=document.documentElement,n=document.createElement("div"),r=document.createElement("body"),i=t.firstElementChild||t.firstChild;n.style.border="0.5px solid transparent",r.appendChild(n),t.insertBefore(r,i),xa=1===n.offsetHeight,t.removeChild(r)}else xa=!1}return xa}function q(e){return e.replace(/(?:\/\*)[\s\S]*?\*\//g,"")}function G(){if(null!==es)return es;var e=window.document.createElement("div").style;return e.cssText="position:-webkit-sticky;position:sticky;",es=-1!==e.position.indexOf("sticky")}function Q(e){return ts.test(e)}function Z(e){var t=e.match(ns);if(!t)return"";var n="px";return t[2]&&(n=t[2]),te(parseFloat(t[1]),n)}function J(){var e=y(),t=e.scale;return{px:t,wx:t*e.dpr}}function ee(e,t){t=t||1;var n=0===e?0:e>0?1:-1,r=Math.abs(e)>t?e:n*t;return 1===r&&e<1&&X()&&(r=.5),r}function te(e,t){return ee(e*J()[t])+"px"}function ne(e,t){if(Q(t))return t;var n=Z(t);if(n)return n;var r=/([+-]?[\d.]+)([p,w]x)/gi;if(r.test(t)){var i=J();return t.replace(r,function(e,t,n){return ee(parseFloat(t)*i[n])+"px"})}return t}function re(e){var t=Za(e),n=t.flex;return n&&(t.WebkitBoxFlex=n,t.MozBoxFlex=n,t.MsFlex=n),t}function ie(e,t){return t*y().scale+"px"}function oe(e){var t={};for(var n in e){var r=e[n];if(Ja.indexOf(n)>-1)t[n]=r;else switch(typeof r){case"string":t[n]=ne(n,r);break;case"number":t[n]=ie(n,r);break;default:t[n]=r}}return t}function ae(e){var t={};if(!e)return t;var n=e.style.webkitTransform||e.style.mozTransform||e.style.transform;return n&&n.match(/(?: *(?:translate|rotate|scale)[^(]*\([^(]+\))+/i)&&(t=n.trim().replace(/, +/g,",").split(" ").reduce(function(e,t){return["translate","scale","rotate"].forEach(function(n){new RegExp(n,"i").test(t)&&(e[n]=t)}),e},{})),t}function se(e){return Object.keys(e).reduce(function(t,n){return t+e[n]+" "},"")}function le(e){for(var t=e.length,n=0,r=0;r<t;r++)n+=e[r].getBoundingClientRect().width;return n}function ce(){var e=[],t=Array.from(document.styleSheets||[]).filter(function(e){return"1"!==e.ownerNode.getAttribute("weex-scanned")}),n=Array.from(t).reduce(function(t,n){if(n.ownerNode.setAttribute("weex-scanned",1),"link"===n.ownerNode.tagName.toLowerCase()||!n.ownerNode.textContent||n.ownerNode.id.match(/weex-pseudo-\d+/))return t;for(var r=q(n.ownerNode.textContent.trim()).split(/}/),i=r.length,o=[],a=0;a<i;a++){var s=r[a];if(s&&!s.match(/^\s*$/)){var l=s.match(/((?:,?\s*\.[\w-]+\[data-v-\w+\](?::\w+)?)+)\s*({[^}]+)/);if(!l)return t;for(var c=l[1].split(",").map(function(e){return e.trim()}),u=l[2].replace(/[{}]/g,"").trim(),h=0,f=c.length;h<f;)o.push({selectorText:c[h],cssText:u}),h++}}return Array.from(o).forEach(function(e){var n=e.selectorText||"",r=!1;n.match(/:(?:active|focus|enabled|disabled)/)&&(r=!0);var i=q(e.cssText).split(";").reduce(function(e,t){if((t=t.trim())&&t.indexOf("/*")<=-1){var n=t.split(":").map(function(e){return e.trim()});e[n[0]]=n[1]}return e},{});r&&w(n+"{"+Object.keys(i).reduce(function(e,t){return e+t+":"+i[t]+"!important;"},"")+"}","weex-pseudo-"+ss++);var o=r?t.pseudo:t;o[n]?d(o[n],i):o[n]=i}),e.push(n.ownerNode),t},{pseudo:{}});return window._no_remove_style_sheets||e.forEach(function(e){e.parentNode.removeChild(e)}),n}function ue(e){return e.context.$options._scopeId}function de(e,t){for(var n=ue(e),r={},i=weex._styleMap||{},o=0,a=t.length;o<a;){var s=i["."+t[o]+"["+n+"]"];s&&h(r,s),o++}return g(r)}function he(e,t){var n=e.data||{},r="string"==typeof n.staticClass?n.staticClass.split(" "):n.staticClass||[],i="string"==typeof n.class?n.class.split(" "):n.class||[],o=oe(de(e,r.concat(i)));return n.cached||(n.cached=h({},n.staticStyle)),h(n.cached,n.style),d(o,n.cached),n.staticStyle=o,t&&(delete n.staticStyle,delete n.style),o}function fe(e,t){if(!e.$vnode)return{};for(var n={},r=e.$vnode;r;)d(n,he(r,t)),r=r.parent;n=re(n);for(var i in n)!function(t){if(Array.isArray(n[t])){var r=n[t];e.$nextTick(function(){var n=e.$el;if(n)for(var i=0;i<r.length;i++)n.style[t]=r[i]}),"position"!==t&&delete n[t]}}(i);var o=n.position,a=/sticky$/;if("fixed"===o)e.$nextTick(function(){var t=e.$el;t&&t.classList.add("weex-fixed")});else if(u(o)&&o[0].match(a)||(o+"").match(a))if(delete n.position,G())e.$nextTick(function(){var t=e.$el;t&&t.classList.add("weex-ios-sticky")});else if(!e._stickyAdded){var s=e._uid,l=T(e);l&&(e._stickyAdded=!0,l._stickyChildren||(l._stickyChildren={}),l._stickyChildren[s]=e),e.$nextTick(function(){var t=e.$el;t&&(e._initOffsetTop=t.offsetTop)})}return n}function pe(e,t){for(var n=[];e;){if(e.data&&e.data.on){var r=e.data.on[t];r&&n.push(r)}if(e.componentOptions&&e.componentOptions.listeners){var i=e.componentOptions.listeners[t];i&&n.push(i)}e=e.parent}return n}function me(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(Array.isArray(e))for(var r=e.slice(),i=r.length,o=0;o<i;o++){var a=r[o];a._weex_hook||a.apply(null,t)}else e._weex_hook||e.apply(null,t)}function ge(){cs=!0,["scroll","resize"].forEach(function(e){window.addEventListener(e,B(25,document.body))})}function ve(){if(!us){us=!0;var e=window._process_style_note_page||ds;console.warn("[vue-render]: you should add vue-loader config with $processStyle to enable inline styles's normalization. see "+e+" If you already did this, please ignore this message.")}}function we(e){if(!e)throw new Error("[Vue Render] Vue not found. Please make sure vue 2.x runtime is imported.");global.weex.__vue__=e,console.log("[Vue Render] install Vue "+e.version+".")}function be(e){return"a"===e.tagName.toLowerCase()}function xe(e){for(var t=e.parentElement;t&&t!==document.body;){if("A"===t.tagName)return!0;t=t.parentElement}return!1}function ye(e,t){for(var n=[];e;){if(e.data&&e.data.on){var r=e.data.on[t];r&&n.push(r)}if(e.componentOptions&&e.componentOptions.listeners){var i=e.componentOptions.listeners[t];i&&n.push(i)}e=e.parent}return n}function _e(e){if(!ys&&e){ys=!0;var t=S();xs.forEach(function(n){var r="click"===n||!!(bs.indexOf(n)>-1&&t)&&{passive:!0};e.addEventListener(n,function(e){for(var t=e.target,n=t.__vue__;!n&&t&&t!==document.body;)n=(t=t.parentElement)&&t.__vue__;if(n){var r=!1,i=e.type;if("tap"!==i||"weex"===e._for)for(;n;){var o=n._vnode||n.$vnode,a=n.$el,s=ye(o,"tap"===i?"click":i),l=s&&s.length;if(l>0){if("click"!==i)for(var c=0;c<l;c++){var u=s[c],d="tap"===i?k(t,"click"):e;d._triggered={target:a},me(u.fns,d)}e._triggered={target:a},r=!0}if(be(a)&&("click"===i||"tap"===i)){var h=a.getAttribute("href"),f=/^\s*javascript\s*:\s*void\s*(?:\(\s*0\s*\)|0)\s*;?\s*$/,p=a.getAttribute("prevent");window._should_intercept_a_jump&&window._should_intercept_a_jump(a)?(e._triggered=!1,r=!0):h.match(f)||""===p||"true"===p?(e._triggered=!1,e.preventDefault()):(e._triggered={target:a},r=!0)}if(r&&"click"===i&&xe(a))return e._triggered={target:a},void e.preventDefault();if(r)return;n=n.$parent}}},r)})}}function Se(){_e(document)}function ke(e){function t(e){return!!weex._components[e]}if(!_s){_s=!0,we(e),e.prototype.$getConfig=function(){return console.warn('[Vue Render] "this.$getConfig" is deprecated, please use "weex.config" instead.'),weex.config};var n=/^html:/i;e.config.isReservedTag=function(e){return n.test(e)},e.config.parsePlatformTagName=function(e){return e.replace(n,"")};var r=e.config.getTagNamespace;e.config.getTagNamespace=function(e){if(!t(e))return r(e)},e.mixin(fs),e.mixin(ps),e.mixin(vs),Se()}}function Ce(e){var t=e.extractComponentStyle,n=e.trimTextVNodes;return{name:"weex-a",props:{href:String},render:function(e){return e("html:a",{attrs:{"weex-type":"a",href:this.href},staticClass:"weex-a weex-ct",staticStyle:t(this)},n(this.$slots.default))},_css:zs}}function Te(e){var t=e.extractComponentStyle,n=e.trimTextVNodes;return{name:"weex-div",render:function(e){return e("html:div",{attrs:{"weex-type":"div"},staticClass:"weex-div weex-ct",staticStyle:t(this)},n(this.$slots.default))},_css:Ps}}function Ee(e){var t=e.resize||"100% 100%";return{"background-size":["cover","contain","100% 100%"].indexOf(t)>-1?t:"100% 100%"}}function Oe(e,t,n){if(!n||!n.width||!n.height)return t;var r=n.width,i=n.height;return e.processImgSrc&&e.processImgSrc(t,{width:parseFloat(r),height:parseFloat(i),quality:e.quality,sharpen:e.sharpen,original:e.original})||t}function Ie(e,t){try{var n,r,i=!1;e.match(/data:image\/[^;]+;base64,/)&&(i=!0,n=e.split(",")),r=i?n[1].substr(0,Ls):e.replace(/\?[^?]+/,"").replace(/#[^#]+/,"").match(/([^/]+)$/);var o=document.createElement("a");o.href=e,o.download=r;var a=new Event("click",{bubbles:!1});o.dispatchEvent(a),t&&t({success:!0})}catch(e){!function(e){t&&t({success:!1,errorDesc:e+""})}(e)}}function Ae(e,t){if(t){var n=["::-webkit-input-placeholder",":-moz-placeholder","::-moz-placeholder",":-ms-input-placeholder",":placeholder-shown"],r=e._id;Os(n.map(function(e,i){return"#"+Bs+r+n[i]+"{color:"+t+";}"}).join(""),""+Fs+r,!0)}}function Ne(e){var t=Ts(e),n=t.placeholderColor;return n&&Ae(e,n),t}function je(e){return{name:"weex-input",mixins:[e.mixins.inputCommon],props:{type:{type:String,default:"text",validator:function(e){return-1!==["email","number","password","search","tel","text","url","date","datetime","time"].indexOf(e)}},value:String,placeholder:String,disabled:{type:[String,Boolean],default:!1},autofocus:{type:[String,Boolean],default:!1},maxlength:[String,Number],returnKeyType:String},render:function(e){this._id||(this._id=Hs++);var t=Es(this);return e("html:input",{attrs:{"weex-type":"input",id:""+Bs+this._id,type:this.type,value:this.value,disabled:"false"!==this.disabled&&!1!==this.disabled,autofocus:"false"!==this.autofocus&&!1!==this.autofocus,placeholder:this.placeholder,maxlength:this.maxlength,returnKeyType:this.returnKeyType},domProps:{value:this.value},on:this.createKeyboardEvent(t),staticClass:"weex-input weex-el",staticStyle:Ne(this)})},_css:Ds}}function ze(e){var t=e.extractComponentStyle;return{name:"weex-switch",props:{checked:{type:[Boolean,String],default:!1},disabled:{type:[Boolean,String],default:!1}},data:function(){return{isChecked:"false"!==this.checked&&!1!==this.checked,isDisabled:"false"!==this.disabled&&!1!==this.disabled}},computed:{wrapperClass:function(){var e=["weex-switch"];return this.isChecked&&e.push("weex-switch-checked"),this.isDisabled&&e.push("weex-switch-disabled"),e.join(" ")}},methods:{toggle:function(){this.isDisabled||(this.isChecked=!this.isChecked,this.$emit("change",{value:this.isChecked}))}},render:function(e){var n=this;return e("span",{attrs:{"weex-type":"switch"},on:{click:function(e){n.$emit("click",e),n.toggle()}},staticClass:this.wrapperClass,staticStyle:t(this)},[e("small",{staticClass:"weex-switch-inner"})])},_css:Ys}}function $e(e){var t=weex.config.env.scale;if(!e._throttleScroll){var n=e.$refs.wrapper,r=e.$refs.inner,i=("horizontal"===e.scrollDirection?n.scrollLeft:n.scrollTop)||0;e._throttleScroll=weex.utils.throttle(function(o){var a="horizontal"===e.scrollDirection?n.scrollLeft:n.scrollTop,s=parseInt(e.offsetAccuracy)*t;Math.abs(a-i)>=s&&(!function(){var t=r.getBoundingClientRect();o.contentSize={width:t.width,height:t.height},o.contentOffset={x:n.scrollLeft,y:-n.scrollTop},e.$emit("scroll",o)}(),i=a)},16,!0)}return e._throttleScroll}function Pe(e){var t=e.extractComponentStyle,n=e.createEventMap;return{name:"weex-list",mixins:[Ks,Xs],computed:{wrapperClass:function(){var e=["weex-list","weex-list-wrapper","weex-ct"];return this._refresh&&e.push("with-refresh"),this._loading&&e.push("with-loading"),e.join(" ")}},methods:{createChildren:function(e){var t=this.$slots.default||[];return this._cells=t.filter(function(e){return!(!e.tag||!e.componentOptions)}),[e("article",{ref:"inner",staticClass:"weex-list-inner weex-ct"},this._cells)]}},render:function(e){var r=this;return this.weexType="list",this.$nextTick(function(){r.updateLayout()}),e("main",{ref:"wrapper",attrs:{"weex-type":"list"},staticClass:this.wrapperClass,on:n(this,{scroll:this.handleListScroll,touchstart:this.handleTouchStart,touchmove:this.handleTouchMove,touchend:this.handleTouchEnd}),staticStyle:t(this)},this.createChildren(e))}}}function Me(e){var t=e.extractComponentStyle,n=e.createEventMap;return{name:"weex-scroller",mixins:[Ks,Xs],props:{scrollDirection:{type:[String],default:"vertical",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},scrollable:{type:[Boolean],default:!0}},computed:{wrapperClass:function(){var e=["weex-scroller","weex-scroller-wrapper","weex-ct"];return"horizontal"===this.scrollDirection?e.push("weex-scroller-horizontal"):e.push("weex-scroller-vertical"),this.scrollable||e.push("weex-scroller-disabled"),e.join(" ")}},methods:{createChildren:function(e){var t=this.$slots.default||[];return this._cells=t.filter(function(e){return!(!e.tag||!e.componentOptions)}),[e("article",{ref:"inner",staticClass:"weex-scroller-inner weex-ct"},this._cells)]}},render:function(e){var r=this;return this.weexType="scroller",this._cells=this.$slots.default||[],this.$nextTick(function(){r.updateLayout()}),e("main",{ref:"wrapper",attrs:{"weex-type":"scroller"},on:n(this,{scroll:this.handleScroll,touchstart:this.handleTouchStart,touchmove:this.handleTouchMove,touchend:this.handleTouchEnd}),staticClass:this.wrapperClass,staticStyle:t(this)},this.createChildren(e))}}}function Le(e){var t=e.extractComponentStyle,n=e.createEventMap;return{name:"weex-waterfall",mixins:[Ks],props:{columnGap:{type:[String,Number],default:"normal",validator:function(e){return!e||"normal"===e||(e=parseInt(e),!isNaN(e)&&e>0)}},columnCount:{type:[String,Number],default:Zs,validator:function(e){return e=parseInt(e),!isNaN(e)&&e>0}},columnWidth:{type:[String,Number],default:"auto",validator:function(e){return!e||"auto"===e||(e=parseInt(e),!isNaN(e)&&e>0)}}},mounted:function(){this._nextTick()},updated:function(){this.$nextTick(this._nextTick())},methods:{_createChildren:function(e,t){var n=this,r=this.$slots.default||[];this._headers=[],this._others=[],this._cells=r.filter(function(e){if(!e.tag||!e.componentOptions)return!1;var t=e.componentOptions.tag;return"refresh"===t||"loading"===t?(n["_"+t]=e,!1):"header"===t?(n._headers.push(e),!1):"cell"===t||(n._others.push(e),!1)}),this._reCalc(t),this._genColumns(e);var i=[];return this._refresh&&i.push(this._refresh),(i=i.concat(this._headers).concat(this._others)).push(e("html:div",{ref:"columns",staticClass:"weex-waterfall-inner-columns weex-ct"},this._columns)),this._loading&&i.push(this._loading),[e("article",{ref:"inner",staticClass:"weex-waterfall-inner weex-ct"},i)]},_reCalc:function(t){function n(e,t){return e-(t.padding?2*parseInt(t.padding):parseInt(t.paddingLeft||0)+parseInt(t.paddingRight||0))}var r,i,o,a,s=e.config.env.scale,l=this.$el;if(l&&1===l.nodeType){var c=window.getComputedStyle(l);a=n(l.getBoundingClientRect().width,c)}else a=n(document.documentElement.clientWidth,t);if(i=this.columnGap,i=i&&"normal"!==i?parseInt(i):Qs,i*=s,r=this.columnWidth,o=this.columnCount,r&&"auto"!==r&&(r=parseInt(r)*s),o&&"auto"!==o&&(o=parseInt(o)),"auto"===o&&"auto"===r);else if("auto"!==o&&"auto"===r)r=(a-(o-1)*i)/o;else if("auto"===o&&"auto"!==r)o=(a+i)/(r+i);else if("auto"!==o&&"auto"!==r){var u,d=function(){(u=o*r+(o-1)*i)<a?r+=(a-u)/o:u>a&&o>1?(o--,d()):u>a&&(r=a)};d()}this._columnCount=o,this._columnWidth=r,this._columnGap=i},_genColumns:function(e){var t=this;this._columns=[];for(var n=this._cells,r=this._columnCount,i=n.length,o=this._columnCells=Array(r).join(".").split(".").map(function(){return[]}),a=0;a<i;a++)(n[a].data.attrs||(n[a].data.attrs={}))["data-cell"]=a,o[a%r].push(n[a]);for(var s=0;s<r;s++)t._columns.push(e("html:div",{ref:"column"+s,attrs:{"data-column":s},staticClass:"weex-ct",staticStyle:{width:t._columnWidth+"px",marginLeft:0===s?0:t._columnGap+"px"}},o[s]))},_nextTick:function(){this._reLayoutChildren()},_reLayoutChildren:function(){for(var e=this,t=this._columnCount,n=[],r=[],i=[],o=Number.MAX_SAFE_INTEGER,a=0,s=0;s<t;s++){var l=e._columns[s].elm,c=l.lastElementChild,u=c?c.getBoundingClientRect().bottom:0;n.push(l),i[s]=u,r.push(document.createDocumentFragment()),u<o&&(o=u,a=s)}for(var d=[],h={},f=0;f<t;f++)if(f!==a)for(var p=n[f].querySelectorAll("section.weex-cell"),m=p.length-1;m>=0;m--){var g=p[m],v=g.getBoundingClientRect();if(v.top>o){var w=~~g.getAttribute("data-cell");d.push(w),h[w]={elm:g,height:v.height},i[f]-=v.height}}d.sort(function(e,t){return e>t});for(var b=d.length,x=0;x<b;x++)!function(e){o=Math.min.apply(Math,i),a=i.indexOf(o);var t=e.elm,n=e.height;r[a].appendChild(t),i[a]+=n}(h[d[x]]);for(var y=0;y<t;y++)n[y].appendChild(r[y])}},render:function(e){var r=this;this.weexType="waterfall",this._cells=this.$slots.default||[],this.$nextTick(function(){r.updateLayout()});var i=t(this);return e("main",{ref:"wrapper",attrs:{"weex-type":"waterfall"},on:n(this,{scroll:this.handleScroll,touchstart:this.handleTouchStart,touchmove:this.handleTouchMove,touchend:this.handleTouchEnd}),staticClass:"weex-waterfall weex-waterfall-wrapper weex-ct",staticStyle:i},this._createChildren(e,i))}}}function Re(e){var t=e.extractComponentStyle;return{name:"weex-cell",render:function(e){return e("section",{attrs:{"weex-type":"cell"},staticClass:"weex-cell weex-ct",staticStyle:t(this)},this.$slots.default)}}}function We(e){var t=e.extractComponentStyle,n=e.utils.supportSticky;return{data:function(){return{sticky:!1,initTop:0,placeholder:null,supportSticky:n()}},mounted:function(){this.initTop=this.$el.offsetTop,this.placeholder=window.document.createElement("header")},updated:function(){this.sticky||(this.initTop=this.$el.offsetTop)},methods:{addSticky:function(){this.sticky=!0,this.placeholder.style.display="block",this.placeholder.style.width=this.$el.offsetWidth+"px",this.placeholder.style.height=this.$el.offsetHeight+"px",this.$el.parentNode.insertBefore(this.placeholder,this.$el)},removeSticky:function(){this.sticky=!1;try{this.$el.parentNode.removeChild(this.placeholder)}catch(e){}}},render:function(e){return e("html:header",{attrs:{"weex-type":"header"},ref:"header",staticClass:"weex-header weex-ct",class:{"weex-sticky":this.sticky,"weex-ios-sticky":this.supportSticky},staticStyle:t(this)},this.$slots.default)}}}function Fe(){var e=weex.extractComponentStyle;return{name:"weex-loading",props:{display:{type:String,default:"show",validator:function(e){return-1!==["show","hide"].indexOf(e)}}},data:function(){return{height:-1,viewHeight:0}},mounted:function(){this.viewHeight=this.$el.offsetHeight,"hide"===this.display?this.height=0:this.height=this.viewHeight},watch:{height:function(e){this.$el.style.height=e+"px"},display:function(e){this.height="hide"===e?0:this.viewHeight}},methods:{pulling:function(e){void 0===e&&(e=0),this.height=e},pullingUp:function(e){this.$el.style.transition="height 0s",this.pulling(e)},pullingEnd:function(){this.$el.style.transition="height .2s",this.height>=this.viewHeight?(this.pulling(this.viewHeight),this.$emit("loading")):this.pulling(0)},getChildren:function(){var e=this.$slots.default||[];return"show"===this.display?e:e.filter(function(e){return e.componentOptions&&"loading-indicator"!==e.componentOptions.tag})}},render:function(t){return this.$parent._loading=this,t("aside",{ref:"loading",attrs:{"weex-type":"loading"},staticClass:"weex-loading weex-ct",staticStyle:e(this)},this.getChildren())}}}function Be(e){var t=e.extractComponentStyle,n=e.utils.createEvent;return{name:"weex-refresh",props:{display:{type:String,default:"show",validator:function(e){return-1!==["show","hide"].indexOf(e)}}},data:function(){return{lastDy:0,viewHeight:0,height:-1}},mounted:function(){this.viewHeight=this.$el.offsetHeight,"hide"===this.display?this.height=0:this.height=this.viewHeight},watch:{height:function(e){this.$el.style.height=e+"px"},display:function(e){this.height="hide"===e?0:this.viewHeight}},methods:{pulling:function(e){void 0===e&&(e=0),this.height=e,this.$emit("pullingdown",n(this,"pullingdown",{dy:e-this.lastDy,pullingDistance:e,viewHeight:this.viewHeight})),this.lastDy=e},pullingDown:function(e){this.$el.style.transition="height 0s",this.pulling(e)},pullingEnd:function(){this.$el.style.transition="height .2s",this.height>=this.viewHeight?(this.pulling(this.viewHeight),this.$emit("refresh")):this.pulling(0)},getChildren:function(){var e=this.$slots.default||[];return"show"===this.display?e:e.filter(function(e){return e.componentOptions&&"loading-indicator"!==e.componentOptions.tag})}},render:function(e){return this.$parent._refresh=this,e("aside",{ref:"refresh",attrs:{"weex-type":"refresh"},staticClass:"weex-refresh weex-ct",staticStyle:t(this)},this.getChildren())}}}function He(e){e._styleSheet||(e._styleSheet=js("weex-cmp-loading-indicator"))}function De(e,t){He(e);for(var n=Ue(t),r=e._styleSheet.rules||e._styleSheet.cssRules,i=0,o=r.length;i<o;i++){var a=r.item(i);if((a.type===CSSRule.KEYFRAMES_RULE||a.type===CSSRule.WEBKIT_KEYFRAMES_RULE)&&"weex-spinner"===a.name)for(var s=a.cssRules,l=0,c=s.length;l<c;l++){var u=s[l];u.type!==CSSRule.KEYFRAME_RULE&&u.type!==CSSRule.WEBKIT_KEYFRAME_RULE||(u.style.boxShadow=n[l])}}}function Ue(e){if(e){for(var t=["0em -1.3em 0em 0em","0.9em -0.9em 0 0em","1.25em 0em 0 0em","0.875em 0.875em 0 0em","0em 1.25em 0 0em","-0.9em 0.9em 0 0em","-1.3em 0em 0 0em","-0.9em -0.9em 0 0em"],n=["1","0.2","0.2","0.2","0.2","0.2","0.5","0.7"].map(function(t){return"rgba("+e.r+","+e.g+","+e.b+","+t+")"}),r=[],i=0;i<t.length;i++)!function(e){var i=Ns(n,e,"r");r.push(t.map(function(e,t){return e+" "+i[t]}).join(", "))}(i);return r}}function Ye(e){var t=Is(e),n=t.color,r=n&&As(n);return r&&De(e,r),t}function Ve(e,t){var n={};return n["background-color"]=e[t?"itemSelectedColor":"itemColor"],n.width=n.height=e.itemSize,n}function Ke(e,t){for(var n=[],r=ll(e),i=ul({},r,["itemColor","itemSelectedColor","itemSize"]),o=0;o<Number(e.count);++o){var a=["weex-indicator-item weex-el"],s=!1;o===Number(e.active)&&(a.push("weex-indicator-item-active"),s=!0),n.push(t("mark",{staticClass:a.join(" "),staticStyle:Ve(i,s)}))}return e.$nextTick(function(){Qe(this,Xe(this,r),qe(this,r))}),t("nav",{attrs:{"weex-type":"indicator"},staticClass:"weex-indicator weex-ct",staticStyle:r},n)}function Xe(e,t){var n=e._getParentRect();return["width","height"].reduce(function(e,r){var i=t&&t[r];return e[r]=i?parseFloat(i):n[r],e},{})}function qe(e,t){return["left","top","bottom","right"].reduce(function(e,n){var r=t&&t[n];return r||0===r?(e[n]=parseFloat(r),e):e},{})}function Ge(e){var t,n;if(1===e.children.length)t=n=window.getComputedStyle(e.children[0]);else{var r=window.getComputedStyle(e.children[1]),i=parseFloat(r.marginLeft);n=parseFloat(r.height),t=e.children.length*(n+i)-i}return{width:t,height:n}}function Qe(e,t,n){var r=e.$el,i=Ge(r),o=Object.keys(i).reduce(function(e,t){return e[t]=i[t]+"px",e},{});cl(r.style,o);var a=[{dir:n.left||0===n.left?"left":n.right||0===n.right?"right":"left",scale:"width"},{dir:n.top||0===n.top?"top":n.bottom||0===n.bottom?"bottom":"top",scale:"height"}];Object.keys(a).forEach(function(e){var o=a[e],s=o.dir,l=o.scale;r.style[s]=(n[s]||0)+t[l]/2-i[l]/2+"px"})}function Ze(e){void 0===e&&(e={});var t=parseInt(e.lines)||0,n=e["text-overflow"]||"ellipsis";if(t>0)return{overflow:"hidden","text-overflow":n,"-webkit-line-clamp":t}}function Je(e){var t=e.extractComponentStyle,n=e.createEventMap,r=e.utils.extend;return{name:"weex-text",props:{lines:[Number,String],value:[String]},render:function(e){var i=t(this),o=Ze(i);return e("p",{attrs:{"weex-type":"text"},on:n(this),staticClass:"weex-text weex-el",staticStyle:r(i,o)},this.$slots.default||[this.value])},_css:wl}}function et(e){var t=e.extractComponentStyle,n=e.createEventMap,r=e.mixins.inputCommon,i=e.utils,o=i.extend,a=i.mapFormEvents;return{name:"weex-textarea",mixins:[r],props:{value:String,placeholder:String,disabled:{type:[String,Boolean],default:!1},autofocus:{type:[String,Boolean],default:!1},rows:{type:[String,Number],default:2},returnKeyType:String},render:function(e){var r=o(n(this),a(this));return e("html:textarea",{attrs:{"weex-type":"textarea",value:this.value,disabled:"false"!==this.disabled&&!1!==this.disabled,autofocus:"false"!==this.autofocus&&!1!==this.autofocus,placeholder:this.placeholder,rows:this.rows,"return-key-type":this.returnKeyType},domProps:{value:this.value},on:this.createKeyboardEvent(r),staticClass:"weex-textarea weex-el",staticStyle:t(this)})},_css:bl}}function tt(e){var t=e.extractComponentStyle,n=e.createEventMap;return{name:"weex-video",props:{src:String,playStatus:{type:String,default:"pause",validator:function(e){return-1!==["play","pause"].indexOf(e)}},autoplay:{type:[String,Boolean],default:!1},autoPlay:{type:[String,Boolean],default:!1},playsinline:{type:[String,Boolean],default:!0},controls:{type:[String,Boolean],default:!1}},render:function(e){return"play"===this.playStatus?this.$nextTick(function(){this.$el&&this.$el.play()}):"pause"===this.playStatus&&this.$nextTick(function(){this.$el&&this.$el.pause()}),e("html:video",{attrs:{"weex-type":"video",autoplay:"false"!==this.autoplay&&!1!==this.autoplay||"false"!==this.autoPlay&&!1!==this.autoPlay,"webkit-playsinline":this.playsinline,controls:this.controls,src:this.src},on:n(this,["start","pause","finish","fail"]),staticClass:"weex-video weex-el",staticStyle:t(this)})}}}function nt(e){var t=e.extractComponentStyle,n=e.createEventMap,r=e.utils.createEvent;return{name:"weex-web",props:{src:String},methods:{goBack:function(){this.$el&&this.$el.contentWindow.history.back()},goForward:function(){this.$el&&this.$el.contentWindow.history.forward()},reload:function(){this.$el&&this.$el.contentWindow.history.reload()}},mounted:function(){var e=this;this.$el&&(this.$emit("pagestart",r(this.$el,"pagestart",{url:this.src})),this.$el.addEventListener("load",function(t){e.$emit("pagefinish",r(e.$el,"pagefinish",{url:e.src}))}))},render:function(e){return e("iframe",{attrs:{"weex-type":"web",src:this.src},on:n(this,["error"]),staticClass:"weex-web weex-el",staticStyle:t(this)})},_css:xl}}function rt(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function it(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[at(t,e),"[",r,"]"].join(""):[at(t,e),"[",at(r,e),"]=",at(n,e)].join("")};case"bracket":return function(t,n){return null===n?at(t,e):[at(t,e),"[]=",at(n,e)].join("")};default:return function(t,n){return null===n?at(t,e):[at(t,e),"=",at(n,e)].join("")}}}function ot(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t&&void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function at(e,t){return t.encode?t.strict?Ll(e):encodeURIComponent(e):e}function st(e){return Array.isArray(e)?e.sort():"object"==typeof e?st(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function lt(e,t,n){var r,i="jsonp_"+ ++Fl;e.url||console.error("[h5-render] config.url should be set in _jsonp for 'fetch' API."),global[i]=function(e){return function(n){t({status:200,ok:!0,statusText:"OK",data:n}),delete global[e]}}(i);var o=document.createElement("script");try{r=lib.httpurl(e.url)}catch(t){console.error("[h5-render] invalid config.url in _jsonp for 'fetch' API: "+e.url)}r.params.callback=i,o.type="text/javascript",o.src=r.toString(),o.onerror=function(e){return function(n){console.error("[h5-render] unexpected error in _jsonp for 'fetch' API",n),t({status:Bl,ok:!1,statusText:"",data:""}),delete global[e]}}(i),document.getElementsByTagName("head")[0].insertBefore(o,null)}function ct(e,t,n){var r=new XMLHttpRequest;r.responseType=e.type,r.open(e.method,e.url,!0),!0===e.withCredentials&&(r.withCredentials=!0);var i=e.headers||{};for(var o in i)r.setRequestHeader(o,i[o]);r.onload=function(e){t({status:r.status,ok:r.status>=200&&r.status<300,statusText:r.statusText,data:r.response,headers:r.getAllResponseHeaders().split("\n").reduce(function(e,t){var n=t.match(/(.+): (.+)/);return n&&(e[n[1]]=n[2]),e},{})})},n&&(r.onprogress=function(e){n({readyState:r.readyState,status:r.status,length:e.loaded,total:e.total,statusText:r.statusText,headers:r.getAllResponseHeaders().split("\n").reduce(function(e,t){var n=t.match(/(.+): (.+)/);return n&&(e[n[1]]=n[2]),e},{})})}),r.onerror=function(e){console.error("[h5-render] unexpected error in _xhr for 'fetch' API",e),t({status:Bl,ok:!1,statusText:"",data:""})},r.send(e.body||null)}function ut(){var e=document.getElementById(Yl);return e||((e=document.createElement("input")).setAttribute("id",Yl),e.style.cssText="height:1px;width:1px;border:none;",document.body.appendChild(e)),e}function dt(e,t,n){var r=Zl.nextFrame,i=Zl.toCSSText,o=Zl.autoPrefix,a=Zl.camelizeKeys,s=Zl.normalizeStyle;(0,Zl.isArray)(e)&&(e=e[0]);var l="all "+(t.duration||0)+"ms "+(t.timingFunction||"linear")+" "+(t.delay||0)+"ms",c=e.$el;c&&weex.utils.fireLazyload(c,!0);var u=function(e){e&&e.stopPropagation(),jl&&(c.removeEventListener(jl,u),c.style[zl]=""),n()};jl&&(c.style[zl]=l,c.addEventListener(jl,u)),r(function(){c.style.cssText+=i(o(s(a(t.styles)))||{})})}function ht(e){if(!e)return null;var t=e.$el?e:e.elm?e.componentInstance||e.context:null;if(!t)return null;var n=t.$el&&t.$el.getAttribute("weex-type");return ya.scrollableTypes.indexOf(n)>-1?t:ht(t.$parent)}function ft(){return(window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now)()}function pt(e,t){if(this===document.body||this===window&&window.scrollTo)return window.scrollTo(0,t);this["scroll"+e]=t}function mt(e){e.frame=window.requestAnimationFrame(mt.bind(window,e));var t=(ft()-e.startTime)/468,n=gt(t=t>1?1:t),r=e.startPosition+(e.position-e.startPosition)*n;e.method.call(e.scrollable,e.dSuffix,r),~~r!=~~e.position||window.cancelAnimationFrame(e.frame)}function gt(e){return.5*(1-Math.cos(Math.PI*e))}function vt(e,t){ec||((ec=document.createElement("div")).classList.add(dc),ec.classList.add("hide"),document.body.appendChild(ec)),ec.textContent=e,setTimeout(function(){ec.classList.remove("hide"),t&&t()},16)}function wt(e){ec&&(ec.classList.add("hide"),setTimeout(function(){e&&e()},1e3*hc))}function bt(){this.wrap=document.querySelector(pc),this.node=document.querySelector(mc),this.wrap||this.createWrap(),this.node||this.createNode(),this.clearNode(),this.createNodeContent(),this.bindEvents()}function xt(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",bt.call(this),this.node.classList.add("weex-alert")}function yt(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",bt.call(this),this.node.classList.add("weex-confirm")}function _t(e){this.msg=e.message||"",this.defaultMsg=e.default||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",bt.call(this),this.node.classList.add("weex-prompt")}e('/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements.  See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership.  The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License.  You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n \n.weex-root,\n.weex-root * {\n  color: initial;\n  cursor: initial;\n  direction: initial;\n  font: initial;\n  font-family: initial;\n  font-size: initial;\n  font-style: initial;\n  font-variant: initial;\n  font-weight: initial;\n  line-height: initial;\n  text-align: initial;\n  text-indent: initial;\n  visibility: initial;\n  white-space: initial;\n  word-spacing: initial;\n  font-family: BlinkMacSystemFont, \'Source Sans Pro\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n}\n\n.weex-root,\n.weex-root *,\n.weex-root *::before,\n.weex-root *::after {\n  box-sizing: border-box;\n  -webkit-text-size-adjust: none;\n  -moz-text-size-adjust: none;\n  -ms-text-size-adjust: none;\n  text-size-adjust: none;\n}\n\n.weex-root a,\n.weex-root button,\n.weex-root [role="button"],\n.weex-root input,\n.weex-root label,\n.weex-root select,\n.weex-root textarea {\n  -ms-touch-action: manipulation;\n      touch-action: manipulation;\n}\n\n.weex-root p,\n.weex-root ol,\n.weex-root ul,\n.weex-root dl {\n  margin: 0;\n  padding: 0;\n}\n\n.weex-root li {\n  list-style: none;\n}\n\n.weex-root figure {\n  margin: 0;\n}\n\n.weex-root textarea {\n  resize: none;\n}\n\n/* show no scroll bar. */\n::-webkit-scrollbar {\n  display: none;\n}\n',void 0),e('/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements.  See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership.  The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License.  You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n \n.weex-root * {\n  border-width: 0;\n  border-color: inherit;\n  border-style: solid;\n}\n\n.weex-flex-ct {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n}\n\n.weex-ct {\n  box-sizing: border-box;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n  position: relative;\n  -webkit-box-orient: vertical;\n  -webkit-flex-direction: column;\n  -moz-box-orient: vertical;\n  -moz-box-direction: normal;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  -webkit-flex-shrink: 0;\n  -ms-flex-negative: 0;\n  flex-shrink: 0;\n  -webkit-flex-grow: 0;\n  -moz-box-flex: 0;\n  -ms-flex-grow: 0;\n  flex-grow: 0;\n  -webkit-flex-basis: auto;\n  -ms-flex-preferred-size: auto;\n  flex-basis: auto;\n  -webkit-box-align: stretch;\n  -webkit-align-items: stretch;\n  -moz-box-align: stretch;\n  -ms-flex-align: stretch;\n  align-items: stretch;\n  -webkit-align-content: flex-start;\n  -ms-flex-line-pack: start;\n  align-content: flex-start;\n  border: 0 solid black;\n  margin: 0;\n  padding: 0;\n  min-width: 0;\n}\n\n.weex-ct.horizontal {\n  -webkit-box-orient: horizontal;\n  -webkit-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n}\n\n.weex-el {\n  display: block;\n  box-sizing: border-box;\n  position: relative;\n  -webkit-flex-shrink: 0;\n  -ms-flex-negative: 0;\n  flex-shrink: 0;\n  -webkit-flex-grow: 0;\n  -moz-box-flex: 0;\n  -ms-flex-grow: 0;\n  flex-grow: 0;\n  -webkit-flex-basis: auto;\n  -ms-flex-preferred-size: auto;\n  flex-basis: auto;\n  border: 0 solid black;\n  margin: 0;\n  padding: 0;\n  min-width: 0;\n}\n\n.weex-ios-sticky {\n  position: -webkit-sticky !important;\n  position: sticky !important;\n  z-index: 9999;\n  top: 0;\n}\n\n.weex-fixed {\n  position: fixed;\n  z-index: 1;\n}\n\n.weex-sticky {\n  position: fixed;\n  top: 0;\n  z-index: 9999;\n}\n',void 0);var St=!1,kt=window.document,Ct=kt.documentElement,Tt=Array.prototype.slice,Et={},Ot=null;St||(Ct.addEventListener("touchstart",function(e){0===Object.keys(Et).length&&(Ct.addEventListener("touchmove",i,!1),Ct.addEventListener("touchend",o,!1),Ct.addEventListener("touchcancel",a,!1));for(var r=0;r<e.changedTouches.length;r++){var s=e.changedTouches[r],l={};for(var c in s)l[c]=s[c];var u={startTouch:l,startTime:Date.now(),status:"tapping",element:e.srcElement||e.target,pressingHandler:setTimeout(function(t,r){return function(){"tapping"===u.status&&(u.status="pressing",n(t,"longpress",{touch:r,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e})),clearTimeout(u.pressingHandler),u.pressingHandler=null}}(e.srcElement||e.target,e.changedTouches[r]),500)};Et[s.identifier]=u}if(2==Object.keys(Et).length){var d=[];for(var c in Et)d.push(Et[c].element);n(t(d[0],d[1]),"dualtouchstart",{touches:Tt.call(e.touches),touchEvent:e})}},!1),St=!0),Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},n=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},r=Math.pow(2,53)-1,i=function(e){var t=n(e);return Math.min(Math.max(t,0),r)};return function(e){var n=this,r=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var o,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!t(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var s,l=i(r.length),c=t(n)?Object(new n(l)):new Array(l),u=0;u<l;)s=r[u],c[u]=a?void 0===o?a(s,u):a.call(o,s,u):s,u+=1;return c.length=l,c}}());var It=l(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),At=l(function(e){var t=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=t)}),Nt=function(e){return"object"==typeof e?null!==e:"function"==typeof e},jt=Nt,zt=function(e){if(!jt(e))throw TypeError(e+" is not an object!");return e},$t=function(e){try{return!!e()}catch(e){return!0}},Pt=!$t(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Mt=Nt,Lt=It.document,Rt=Mt(Lt)&&Mt(Lt.createElement),Wt=function(e){return Rt?Lt.createElement(e):{}},Ft=!Pt&&!$t(function(){return 7!=Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a}),Bt=Nt,Ht=zt,Dt=Ft,Ut=function(e,t){if(!Bt(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Bt(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Bt(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Bt(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Yt=Object.defineProperty,Vt={f:Pt?Object.defineProperty:function(e,t,n){if(Ht(e),t=Ut(t,!0),Ht(n),Dt)try{return Yt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},Kt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xt=Vt,qt=Kt,Gt=Pt?function(e,t,n){return Xt.f(e,t,qt(1,n))}:function(e,t,n){return e[t]=n,e},Qt={}.hasOwnProperty,Zt=function(e,t){return Qt.call(e,t)},Jt=0,en=Math.random(),tn=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Jt+en).toString(36))},nn=l(function(e){var t=It,n=Gt,r=Zt,i=tn("src"),o=Function.toString,a=(""+o).split("toString");At.inspectSource=function(e){return o.call(e)},(e.exports=function(e,o,s,l){var c="function"==typeof s;c&&(r(s,"name")||n(s,"name",o)),e[o]!==s&&(c&&(r(s,i)||n(s,i,e[o]?""+e[o]:a.join(String(o)))),e===t?e[o]=s:l?e[o]?e[o]=s:n(e,o,s):(delete e[o],n(e,o,s)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||o.call(this)})}),rn=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},on=rn,an=function(e,t,n){if(on(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},sn=It,ln=At,cn=Gt,un=nn,dn=an,hn=function(e,t,n){var r,i,o,a,s=e&hn.F,l=e&hn.G,c=e&hn.S,u=e&hn.P,d=e&hn.B,h=l?sn:c?sn[t]||(sn[t]={}):(sn[t]||{}).prototype,f=l?ln:ln[t]||(ln[t]={}),p=f.prototype||(f.prototype={});l&&(n=t);for(r in n)o=((i=!s&&h&&void 0!==h[r])?h:n)[r],a=d&&i?dn(o,sn):u&&"function"==typeof o?dn(Function.call,o):o,h&&un(h,r,o,e&hn.U),f[r]!=o&&cn(f,r,a),u&&p[r]!=o&&(p[r]=o)};sn.core=ln,hn.F=1,hn.G=2,hn.S=4,hn.P=8,hn.B=16,hn.W=32,hn.U=64,hn.R=128;var fn=hn,pn={}.toString,mn=function(e){return pn.call(e).slice(8,-1)},gn=mn,vn=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==gn(e)?e.split(""):Object(e)},wn=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e},bn=vn,xn=wn,yn=function(e){return bn(xn(e))},_n=Math.ceil,Sn=Math.floor,kn=function(e){return isNaN(e=+e)?0:(e>0?Sn:_n)(e)},Cn=kn,Tn=Math.min,En=function(e){return e>0?Tn(Cn(e),9007199254740991):0},On=kn,In=Math.max,An=Math.min,Nn=yn,jn=En,zn=function(e,t){return(e=On(e))<0?In(e+t,0):An(e,t)},$n=It,Pn=$n["__core-js_shared__"]||($n["__core-js_shared__"]={}),Mn=function(e){return Pn[e]||(Pn[e]={})},Ln=Mn("keys"),Rn=tn,Wn=function(e){return Ln[e]||(Ln[e]=Rn(e))},Fn=Zt,Bn=yn,Hn=function(e){return function(t,n,r){var i,o=Nn(t),a=jn(o.length),s=zn(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}}(!1),Dn=Wn("IE_PROTO"),Un="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Yn=function(e,t){var n,r=Bn(e),i=0,o=[];for(n in r)n!=Dn&&Fn(r,n)&&o.push(n);for(;t.length>i;)Fn(r,n=t[i++])&&(~Hn(o,n)||o.push(n));return o},Vn=Un,Kn=Object.keys||function(e){return Yn(e,Vn)},Xn=wn,qn=function(e){return Object(Xn(e))},Gn=Kn,Qn={f:Object.getOwnPropertySymbols},Zn={f:{}.propertyIsEnumerable},Jn=qn,er=vn,tr=Object.assign,nr=!tr||$t(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=tr({},e)[n]||Object.keys(tr({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=Jn(e),i=arguments.length,o=1,a=Qn.f,s=Zn.f;i>o;)for(var l,c=er(n[o++]),u=a?Gn(c).concat(a(c)):Gn(c),d=u.length,h=0;d>h;)s.call(c,l=u[h++])&&(r[l]=c[l]);return r}:tr,rr=fn;rr(rr.S+rr.F,"Object",{assign:nr}),Object.setPrototypeOf||(Object.setPrototypeOf=function(e,t){function n(e,t){return r.call(e,t),e}var r;try{(r=e.getOwnPropertyDescriptor(e.prototype,"__proto__").set).call({},null)}catch(t){if(e.prototype!=={}.__proto__||void 0==={__proto__:null}.__proto__)return;r=function(e){this.__proto__=e},n.polyfill=n(n({},null),e.prototype)instanceof e}return n}(Object));var ir=l(function(e){var t=Mn("wks"),n=tn,r=It.Symbol,i="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=i&&r[e]||(i?r:n)("Symbol."+e))}).store=t}),or=mn,ar=ir("toStringTag"),sr="Arguments"==or(function(){return arguments}()),lr=function(e,t){try{return e[t]}catch(e){}},cr=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=lr(t=Object(e),ar))?n:sr?or(t):"Object"==(r=or(t))&&"function"==typeof t.callee?"Arguments":r},ur=cr,dr={};dr[ir("toStringTag")]="z",dr+""!="[object z]"&&nn(Object.prototype,"toString",function(){return"[object "+ur(this)+"]"},!0);var hr=kn,fr=wn,pr={},mr=Vt,gr=zt,vr=Kn,wr=Pt?Object.defineProperties:function(e,t){gr(e);for(var n,r=vr(t),i=r.length,o=0;i>o;)mr.f(e,n=r[o++],t[n]);return e},br=It.document&&document.documentElement,xr=zt,yr=wr,_r=Un,Sr=Wn("IE_PROTO"),kr=function(){},Cr=function(){var e,t=Wt("iframe"),n=_r.length;for(t.style.display="none",br.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Cr=e.F;n--;)delete Cr.prototype[_r[n]];return Cr()},Tr=Object.create||function(e,t){var n;return null!==e?(kr.prototype=xr(e),n=new kr,kr.prototype=null,n[Sr]=e):n=Cr(),void 0===t?n:yr(n,t)},Er=Vt.f,Or=Zt,Ir=ir("toStringTag"),Ar=function(e,t,n){e&&!Or(e=n?e:e.prototype,Ir)&&Er(e,Ir,{configurable:!0,value:t})},Nr=Tr,jr=Kt,zr=Ar,$r={};Gt($r,ir("iterator"),function(){return this});var Pr=Zt,Mr=qn,Lr=Wn("IE_PROTO"),Rr=Object.prototype,Wr=Object.getPrototypeOf||function(e){return e=Mr(e),Pr(e,Lr)?e[Lr]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Rr:null},Fr=fn,Br=nn,Hr=Gt,Dr=Zt,Ur=pr,Yr=function(e,t,n){e.prototype=Nr($r,{next:jr(1,n)}),zr(e,t+" Iterator")},Vr=Ar,Kr=Wr,Xr=ir("iterator"),qr=!([].keys&&"next"in[].keys()),Gr=function(){return this},Qr=function(e,t,n,r,i,o,a){Yr(n,t,r);var s,l,c,u=function(e){if(!qr&&e in p)return p[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h="values"==i,f=!1,p=e.prototype,m=p[Xr]||p["@@iterator"]||i&&p[i],g=m||u(i),v=i?h?u("entries"):g:void 0,w="Array"==t?p.entries||m:m;if(w&&(c=Kr(w.call(new e)))!==Object.prototype&&(Vr(c,d,!0),Dr(c,Xr)||Hr(c,Xr,Gr)),h&&m&&"values"!==m.name&&(f=!0,g=function(){return m.call(this)}),(qr||f||!p[Xr])&&Hr(p,Xr,g),Ur[t]=g,Ur[d]=Gr,i)if(s={values:h?g:u("values"),keys:o?g:u("keys"),entries:v},a)for(l in s)l in p||Br(p,l,s[l]);else Fr(Fr.P+Fr.F*(qr||f),t,s);return s},Zr=function(e){return function(t,n){var r,i,o=String(fr(t)),a=hr(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}}(!0);Qr(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=Zr(t,n),this._i+=e.length,{value:e,done:!1})});var Jr=ir("unscopables"),ei=Array.prototype;void 0==ei[Jr]&&Gt(ei,Jr,{});var ti=function(e){ei[Jr][e]=!0},ni=function(e,t){return{value:t,done:!!e}},ri=pr,ii=yn,oi=Qr(Array,"Array",function(e,t){this._t=ii(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,ni(1)):"keys"==t?ni(0,n):"values"==t?ni(0,e[n]):ni(0,[n,e[n]])},"values");ri.Arguments=ri.Array,ti("keys"),ti("values"),ti("entries");for(var ai=oi,si=nn,li=It,ci=Gt,ui=pr,di=ir,hi=di("iterator"),fi=di("toStringTag"),pi=ui.Array,mi=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],gi=0;gi<5;gi++){var vi,wi=mi[gi],bi=li[wi],xi=bi&&bi.prototype;if(xi){xi[hi]||ci(xi,hi,pi),xi[fi]||ci(xi,fi,wi),ui[wi]=pi;for(vi in ai)xi[vi]||si(xi,vi,ai[vi],!0)}}var yi,_i,Si,ki=zt,Ci=function(e,t,n,r){try{return r?t(ki(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&ki(i.call(e)),t}},Ti=pr,Ei=ir("iterator"),Oi=Array.prototype,Ii=function(e){return void 0!==e&&(Ti.Array===e||Oi[Ei]===e)},Ai=cr,Ni=ir("iterator"),ji=pr,zi=At.getIteratorMethod=function(e){if(void 0!=e)return e[Ni]||e["@@iterator"]||ji[Ai(e)]},$i=l(function(e){var t=an,n=Ci,r=Ii,i=zt,o=En,a=zi,s={},l={},c=e.exports=function(e,c,u,d,h){var f,p,m,g,v=h?function(){return e}:a(e),w=t(u,d,c?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(f=o(e.length);f>b;b++)if((g=c?w(i(p=e[b])[0],p[1]):w(e[b]))===s||g===l)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=n(m,w,p.value,c))===s||g===l)return g};c.BREAK=s,c.RETURN=l}),Pi=zt,Mi=rn,Li=ir("species"),Ri=an,Wi=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},Fi=br,Bi=Wt,Hi=It,Di=Hi.process,Ui=Hi.setImmediate,Yi=Hi.clearImmediate,Vi=Hi.MessageChannel,Ki=0,Xi={},qi=function(){var e=+this;if(Xi.hasOwnProperty(e)){var t=Xi[e];delete Xi[e],t()}},Gi=function(e){qi.call(e.data)};Ui&&Yi||(Ui=function(e){for(var t=arguments,n=[],r=1;arguments.length>r;)n.push(t[r++]);return Xi[++Ki]=function(){Wi("function"==typeof e?e:Function(e),n)},yi(Ki),Ki},Yi=function(e){delete Xi[e]},"process"==mn(Di)?yi=function(e){Di.nextTick(Ri(qi,e,1))}:Vi?(Si=(_i=new Vi).port2,_i.port1.onmessage=Gi,yi=Ri(Si.postMessage,Si,1)):Hi.addEventListener&&"function"==typeof postMessage&&!Hi.importScripts?(yi=function(e){Hi.postMessage(e+"","*")},Hi.addEventListener("message",Gi,!1)):yi="onreadystatechange"in Bi("script")?function(e){Fi.appendChild(Bi("script")).onreadystatechange=function(){Fi.removeChild(this),qi.call(e)}}:function(e){setTimeout(Ri(qi,e,1),0)});var Qi={set:Ui,clear:Yi},Zi=It,Ji=Qi.set,eo=Zi.MutationObserver||Zi.WebKitMutationObserver,to=Zi.process,no=Zi.Promise,ro="process"==mn(to),io=nn,oo=It,ao=Vt,so=Pt,lo=ir("species"),co=ir("iterator"),uo=!1;try{var ho=[7][co]();ho.return=function(){uo=!0},Array.from(ho,function(){throw 2})}catch(e){}var fo,po,mo,go=It,vo=an,wo=cr,bo=fn,xo=Nt,yo=rn,_o=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},So=$i,ko=function(e,t){var n,r=Pi(e).constructor;return void 0===r||void 0==(n=Pi(r)[Li])?t:Mi(n)},Co=Qi.set,To=function(){var e,t,n,r=function(){var r,i;for(ro&&(r=to.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(ro)n=function(){to.nextTick(r)};else if(eo){var i=!0,o=document.createTextNode("");new eo(r).observe(o,{characterData:!0}),n=function(){o.data=i=!i}}else if(no&&no.resolve){var a=no.resolve();n=function(){a.then(r)}}else n=function(){Ji.call(Zi,r)};return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}(),Eo=go.TypeError,Oo=go.process,Io=go.Promise,Ao="process"==wo(Oo=go.process),No=function(){},jo=!!function(){try{var e=Io.resolve(1),t=(e.constructor={})[ir("species")]=function(e){e(No,No)};return(Ao||"function"==typeof PromiseRejectionEvent)&&e.then(No)instanceof t}catch(e){}}(),zo=function(e,t){return e===t||e===Io&&t===mo},$o=function(e){var t;return!(!xo(e)||"function"!=typeof(t=e.then))&&t},Po=function(e){return zo(Io,e)?new Mo(e):new po(e)},Mo=po=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw Eo("Bad Promise constructor");t=e,n=r}),this.resolve=yo(t),this.reject=yo(n)},Lo=function(e){try{e()}catch(e){return{error:e}}},Ro=function(e,t){if(!e._n){e._n=!0;var n=e._c;To(function(){for(var r=e._v,i=1==e._s,o=0;n.length>o;)!function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,l=t.reject,c=t.domain;try{a?(i||(2==e._h&&Bo(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?l(Eo("Promise-chain cycle")):(o=$o(n))?o.call(n,s,l):s(n)):l(r)}catch(e){l(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&Wo(e)})}},Wo=function(e){Co.call(go,function(){var t,n,r,i=e._v;if(Fo(e)&&(t=Lo(function(){Ao?Oo.emit("unhandledRejection",i,e):(n=go.onunhandledrejection)?n({promise:e,reason:i}):(r=go.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=Ao||Fo(e)?2:1),e._a=void 0,t)throw t.error})},Fo=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if((t=n[r++]).fail||!Fo(t.promise))return!1;return!0},Bo=function(e){Co.call(go,function(){var t;Ao?Oo.emit("rejectionHandled",e):(t=go.onrejectionhandled)&&t({promise:e,reason:e._v})})},Ho=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Ro(t,!0))},Do=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw Eo("Promise can't be resolved itself");(t=$o(e))?To(function(){var r={_w:n,_d:!1};try{t.call(e,vo(Do,r,1),vo(Ho,r,1))}catch(e){Ho.call(r,e)}}):(n._v=e,n._s=1,Ro(n,!1))}catch(e){Ho.call({_w:n,_d:!1},e)}}};jo||(Io=function(e){_o(this,Io,"Promise","_h"),yo(e),fo.call(this);try{e(vo(Do,this,1),vo(Ho,this,1))}catch(e){Ho.call(this,e)}},(fo=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var r in t)io(e,r,t[r],n);return e}(Io.prototype,{then:function(e,t){var n=Po(ko(this,Io));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Ao?Oo.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Ro(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),Mo=function(){var e=new fo;this.promise=e,this.resolve=vo(Do,e,1),this.reject=vo(Ho,e,1)}),bo(bo.G+bo.W+bo.F*!jo,{Promise:Io}),Ar(Io,"Promise"),function(e){var t=oo[e];so&&t&&!t[lo]&&ao.f(t,lo,{configurable:!0,get:function(){return this}})}("Promise"),mo=At.Promise,bo(bo.S+bo.F*!jo,"Promise",{reject:function(e){var t=Po(this);return(0,t.reject)(e),t.promise}}),bo(bo.S+bo.F*!jo,"Promise",{resolve:function(e){if(e instanceof Io&&zo(e.constructor,this))return e;var t=Po(this);return(0,t.resolve)(e),t.promise}}),bo(bo.S+bo.F*!(jo&&function(e,t){if(!t&&!uo)return!1;var n=!1;try{var r=[7],i=r[co]();i.next=function(){return{done:n=!0}},r[co]=function(){return i},e(r)}catch(e){}return n}(function(e){Io.all(e).catch(No)})),"Promise",{all:function(e){var t=this,n=Po(t),r=n.resolve,i=n.reject,o=Lo(function(){var n=[],o=0,a=1;So(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o&&i(o.error),n.promise},race:function(e){var t=this,n=Po(t),r=n.reject,i=Lo(function(){So(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i&&r(i.error),n.promise}});var Uo=window.lib||(window.lib={});c.prototype.toString=function(){return this.val},c.prototype.valueOf=function(){for(var e=this.val.split("."),t=[],n=0;n<e.length;n++){var r=parseInt(e[n],10);isNaN(r)&&(r=0);var i=r.toString();i.length<5&&(i=Array(6-i.length).join("0")+i),t.push(i),1===t.length&&t.push(".")}return parseFloat(t.join(""))},c.compare=function(e,t){e=e.toString().split("."),t=t.toString().split(".");for(var n=0;n<e.length||n<t.length;n++){var r=parseInt(e[n],10),i=parseInt(t[n],10);if(window.isNaN(r)&&(r=0),window.isNaN(i)&&(i=0),r<i)return-1;if(r>i)return 1}return 0},Uo.version=function(e){return new c(e)};var Yo=window.lib||(window.lib={}),Vo=Yo.env||(Yo.env={}),Ko=window.location.search.replace(/^\?/,"");if(Vo.params={},Ko)for(var Xo=Ko.split("&"),qo=0;qo<Xo.length;qo++){Xo[qo]=Xo[qo].split("=");try{Vo.params[Xo[qo][0]]=decodeURIComponent(Xo[qo][1])}catch(e){Vo.params[Xo[qo][0]]=Xo[qo][1]}}var Go,Qo=window.lib||(window.lib={}),Zo=Qo.env||(Qo.env={}),Jo=window.navigator.userAgent;if(Go=Jo.match(/Windows\sPhone\s(?:OS\s)?([\d.]+)/))Zo.os={name:"Windows Phone",isWindowsPhone:!0,version:Go[1]};else if(Jo.match(/Safari/)&&(Go=Jo.match(/Android[\s/]([\d.]+)/)))Zo.os={version:Go[1]},Jo.match(/Mobile\s+Safari/)?(Zo.os.name="Android",Zo.os.isAndroid=!0):(Zo.os.name="AndroidPad",Zo.os.isAndroidPad=!0);else if(Go=Jo.match(/(iPhone|iPad|iPod)/)){var ea=Go[1];Go=Jo.match(/OS ([\d_.]+) like Mac OS X/),Zo.os={name:ea,isIPhone:"iPhone"===ea||"iPod"===ea,isIPad:"iPad"===ea,isIOS:!0,version:Go&&Go[1].split("_").join(".")||""}}else Zo.os={name:"unknown",version:"0.0.0"};Qo.version&&(Zo.os.version=Qo.version(Zo.os.version)),(Go=Jo.match(/(?:UCWEB|UCBrowser\/)([\d.]+)/))?Zo.browser={name:"UC",isUC:!0,version:Go[1]}:(Go=Jo.match(/MQQBrowser\/([\d.]+)/))?Zo.browser={name:"QQ",isQQ:!0,version:Go[1]}:(Go=Jo.match(/Firefox\/([\d.]+)/))?Zo.browser={name:"Firefox",isFirefox:!0,version:Go[1]}:(Go=Jo.match(/MSIE\s([\d.]+)/))||(Go=Jo.match(/IEMobile\/([\d.]+)/))?(Zo.browser={version:Go[1]},Jo.match(/IEMobile/)?(Zo.browser.name="IEMobile",Zo.browser.isIEMobile=!0):(Zo.browser.name="IE",Zo.browser.isIE=!0),Jo.match(/Android|iPhone/)&&(Zo.browser.isIELikeWebkit=!0)):(Go=Jo.match(/(?:Chrome|CriOS)\/([\d.]+)/))?(Zo.browser={name:"Chrome",isChrome:!0,version:Go[1]},Jo.match(/Version\/[\d+.]+\s*Chrome/)&&(Zo.browser.name="Chrome Webview",Zo.browser.isWebview=!0)):Jo.match(/Safari/)&&(Go=Jo.match(/Android[\s/]([\d.]+)/))?Zo.browser={name:"Android",isAndroid:!0,version:Go[1]}:Jo.match(/iPhone|iPad|iPod/)?Jo.match(/Safari/)?(Go=Jo.match(/Version\/([\d.]+)/),Zo.browser={name:"Safari",isSafari:!0,version:Go&&Go[1]||""}):(Go=Jo.match(/OS ([\d_.]+) like Mac OS X/),Zo.browser={name:"iOS Webview",isWebview:!0,version:Go&&Go[1].replace(/_/g,".")||""}):Zo.browser={name:"unknown",version:"0.0.0"},Qo.version&&(Zo.browser.version=Qo.version(Zo.browser.version));var ta=Object.prototype.toString,na="[object Object]",ra="[object Array]",ia=/-(\w)/g,oa=m(function(e){return e.replace(ia,function(e,t){return t.toUpperCase()})}),aa=m(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),sa=/([^-])([A-Z])/g,la=m(function(e){return e.replace(sa,"$1-$2").replace(sa,"$1-$2").toLowerCase()}),ca=/webkit-|moz-|o-|ms-/,ua=!1,da=parseInt(750),ha=!isNaN(da)&&da>0?da:750,fa=document.querySelector('meta[name="weex-viewport"]'),pa=fa&&parseInt(fa.getAttribute("content"));pa&&!isNaN(pa)&&pa>0&&(ha=pa);var ma=0,ga=0,va=0,wa={dpr:ma,scale:0,rem:0,deviceWidth:0,deviceHeight:0},ba=!1;try{document.createElement("div").addEventListener("test",function(e){},{get passive(){ba=!0}})}catch(e){}var xa,ya={scrollableTypes:["scroller","list","waterfall"],gestureEvents:["panstart","panmove","panend","swipe","longpress","tap"]},_a={},Sa=1,ka=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.exports=t.default}),Ca=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(e.hasOwnProperty(t))for(var i=e[t],o=0,a=i.length;o<a;++o)r[i[o]+(0,n.default)(t)]=r[t]};var n=function(e){return e&&e.__esModule?e:{default:e}}(ka);e.exports=t.default}),Ta=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}},e.exports=t.default}),Ea=l(function(e,t){function n(e,t){-1===e.indexOf(t)&&e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(Array.isArray(t))for(var r=0,i=t.length;r<i;++r)n(e,t[r]);else n(e,t)},e.exports=t.default}),Oa=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Object&&!Array.isArray(e)},e.exports=t.default}),Ia=l(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(e){for(var l in e){var c=e[l];if((0,a.default)(c))e[l]=t(c);else if(Array.isArray(c)){for(var u=[],d=0,h=c.length;d<h;++d){var f=(0,i.default)(s,l,c[d],e,n);(0,o.default)(u,f||c[d])}u.length>0&&(e[l]=u)}else{var p=(0,i.default)(s,l,c,e,n);p&&(e[l]=p),(0,r.default)(n,l,e)}}return e}var n=e.prefixMap,s=e.plugins;return t};var r=n(Ca),i=n(Ta),o=n(Ea),a=n(Oa);e.exports=t.default}),Aa=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["Webkit"],r=["Moz"],i=["ms"],o=["Webkit","Moz"],a=["Webkit","ms"],s=["Webkit","Moz","ms"];t.default={plugins:[],prefixMap:{appearance:o,userSelect:s,textEmphasisPosition:n,textEmphasis:n,textEmphasisStyle:n,textEmphasisColor:n,boxDecorationBreak:n,clipPath:n,maskImage:n,maskMode:n,maskRepeat:n,maskPosition:n,maskClip:n,maskOrigin:n,maskSize:n,maskComposite:n,mask:n,maskBorderSource:n,maskBorderMode:n,maskBorderSlice:n,maskBorderWidth:n,maskBorderOutset:n,maskBorderRepeat:n,maskBorder:n,maskType:n,textDecorationStyle:n,textDecorationSkip:n,textDecorationLine:n,textDecorationColor:n,filter:n,fontFeatureSettings:n,breakAfter:s,breakBefore:s,breakInside:s,columnCount:o,columnFill:o,columnGap:o,columnRule:o,columnRuleColor:o,columnRuleStyle:o,columnRuleWidth:o,columns:o,columnSpan:o,columnWidth:o,flex:n,flexBasis:n,flexDirection:n,flexGrow:n,flexFlow:n,flexShrink:n,flexWrap:n,alignContent:n,alignItems:n,alignSelf:n,justifyContent:n,order:n,transform:n,transformOrigin:n,transformOriginX:n,transformOriginY:n,backfaceVisibility:n,perspective:n,perspectiveOrigin:n,transformStyle:n,transformOriginZ:n,animation:n,animationDelay:n,animationDirection:n,animationFillMode:n,animationDuration:n,animationIterationCount:n,animationName:n,animationPlayState:n,animationTimingFunction:n,backdropFilter:n,fontKerning:n,scrollSnapType:a,scrollSnapPointsX:a,scrollSnapPointsY:a,scrollSnapDestination:a,scrollSnapCoordinate:a,shapeImageThreshold:n,shapeImageMargin:n,shapeImageOutside:n,hyphens:s,flowInto:a,flowFrom:a,regionFragment:a,textAlignLast:r,tabSize:r,wrapFlow:i,wrapThrough:i,wrapMargin:i,gridTemplateColumns:i,gridTemplateRows:i,gridTemplateAreas:i,gridTemplate:i,gridAutoColumns:i,gridAutoRows:i,gridAutoFlow:i,grid:i,gridRowStart:i,gridColumnStart:i,gridRowEnd:i,gridRow:i,gridColumn:i,gridColumnEnd:i,gridColumnGap:i,gridRowGap:i,gridArea:i,gridGap:i,textSizeAdjust:a,borderImage:n,borderImageOutset:n,borderImageRepeat:n,borderImageSlice:n,borderImageSource:n,borderImageWidth:n,transitionDelay:n,transitionDuration:n,transitionProperty:n,transitionTimingFunction:n}},e.exports=t.default}),Na=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("cursor"===e&&r.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default}),ja=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/;e.exports=t.default}),za=s(ja),$a=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("cross-fade(")>-1)return r.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})};var n=function(e){return e&&e.__esModule?e:{default:e}}(ja),r=["-webkit-",""];e.exports=t.default}),Pa=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("filter(")>-1)return r.map(function(e){return t.replace(/filter\(/g,e+"filter(")})};var n=function(e){return e&&e.__esModule?e:{default:e}}(ja),r=["-webkit-",""];e.exports=t.default}),Ma=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("display"===e&&n.hasOwnProperty(t))return n[t]};var n={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};e.exports=t.default}),La=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?i.WebkitBoxOrient="vertical":i.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?i.WebkitBoxDirection="reverse":i.WebkitBoxDirection="normal"),r.hasOwnProperty(e)&&(i[r[e]]=n[t]||t)};var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t.default}),Ra={top:"bottom",left:"right",bottom:"top",right:"left"},Wa=["-webkit-","-moz-"],Fa=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/,Ba=Object.freeze({default:function(e,t){if("string"==typeof t&&!za(t)&&Fa.test(t)){var n=new RegExp("("+Fa.toString().substr(1).replace(/\/$/,"")+")\\(([^)]+)\\)","g"),r=t.replace(n,function(e,t,n){return"@@@"+t+"("+K(n)+")"}),i=Wa.map(function(e){return r.replace(new RegExp("@@@","g"),e)});return i.push(t),i}}}),Ha=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("image-set(")>-1)return r.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var n=function(e){return e&&e.__esModule?e:{default:e}}(ja),r=["-webkit-",""];e.exports=t.default}),Da=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},e.exports=t.default}),Ua=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(r.hasOwnProperty(e)&&i.hasOwnProperty(t))return n.map(function(e){return e+t})};var n=["-webkit-","-moz-",""],r={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},i={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default}),Ya=/[A-Z]/g,Va=/^ms-/,Ka={},Xa=function(e){return e in Ka?Ka[e]:Ka[e]=e.replace(Ya,"-$&").toLowerCase().replace(Va,"-ms-")},qa=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(Xa);e.exports=t.default}),Ga=l(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if((0,o.default)(e))return e;for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),r=0,a=n.length;r<a;++r){var s=n[r],c=[s];for(var u in t){var d=(0,i.default)(u);if(s.indexOf(d)>-1&&"order"!==d)for(var h=t[u],f=0,p=h.length;f<p;++f)c.unshift(s.replace(d,l[h[f]]+d))}n[r]=c.join(",")}return n.join(",")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){if("string"==typeof t&&s.hasOwnProperty(e)){var o=r(t,i),l=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return l;var c=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?c:(n["Webkit"+(0,a.default)(e)]=l,n["Moz"+(0,a.default)(e)]=c,o)}};var i=n(qa),o=n(ja),a=n(ka),s={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},l={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default}),Qa=Ba&&Ba.default||Ba,Za=s(l(function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(Ia),i=n(Aa),o=n(Na),a=n($a),s=n(Pa),l=n(Ma),c=n(La),u=n(Qa),d=n(Ha),h=n(Da),f=n(Ua),p=n(Ga),m=[a.default,o.default,s.default,c.default,u.default,d.default,h.default,f.default,p.default,l.default];t.default=(0,r.default)({prefixMap:i.default.prefixMap,plugins:m}),e.exports=t.default})),Ja=["flex","opacity","zIndex","fontWeight","lines"],es=null,ts=/^[+-]?\d+(\.\d+)?%$/,ns=/^([+-]?\d+(?:\.\d+)?)([p,w]x)?$/,rs=Object.freeze({extend:d,extendTruthy:h,extendKeys:function(e,t,n){return void 0===t&&(t={}),(n||[]).forEach(function(n){t&&(e[n]=t[n])}),e},extractKeys:function(e,t,n){return void 0===t&&(t={}),t?((n||[]).forEach(function(n){t&&(e[n]=t[n]),t&&delete t[n]}),e):e},bind:f,debounce:function(e,t){function n(){r=null,e.apply(null)}var r;return function(){clearTimeout(r),r=setTimeout(n,t)}},depress:function(e,t){function n(){r=null}var r;return function(){r||e.apply(),clearTimeout(r),r=setTimeout(n,t)}},throttle:p,loopArray:function(e,t,n){if(u(e)){var r="l"===(n+"").toLowerCase(),i=e.length;if((t%=i)<0&&(t=-t,r=!r),0===t)return e;var o,a;return r?(o=e.slice(0,t),a=e.slice(t)):(o=e.slice(0,i-t),a=e.slice(i-t)),a.concat(o)}},cached:m,camelize:oa,camelizeKeys:g,capitalize:aa,hyphenate:la,hyphenateKeys:function(e){var t={};for(var n in e)t[la(n)]=e[n];return t},hyphenateStyleKeys:v,camelToKebab:function(e){return e?e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}):""},appendCss:w,nextFrame:function(e){(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)})(e)},toCSSText:function(e){if(e){var t=v(e),n="";for(var r in t)n+=r+":"+t[r]+";";return n}},supportsPassive:S,createEvent:k,createBubblesEvent:function(e,t,n){var r=new Event(t,{bubbles:!0});if(_(r,n),-1!==window.navigator.userAgent.toLowerCase().indexOf("phantomjs"))return r;try{Object.defineProperty(r,"target",{enumerable:!0,value:e})}catch(t){return _({},r,{target:e})}return r},createCustomEvent:function(e,t,n){var r=document.createEvent("CustomEvent");r.initCustomEvent(t,!1,!0,{}),_(r,n);try{Object.defineProperty(r,"target",{enumerable:!0,value:e||null})}catch(t){return _({},r,{target:e||null})}return r},dispatchEvent:C,mapFormEvents:function(e){var t={};return["input","change","focus","blur"].forEach(function(n){t[n]=function(t){e.$el&&(t.value=e.$el.value),e.$emit(n,t)}}),t},getParentScroller:T,hasIntersection:I,isElementVisible:A,getEventHandlers:j,watchAppear:P,triggerDisappear:M,detectAppear:L,applySrc:W,fireLazyload:F,getThrottleLazyload:B,supportHairlines:X,trimComment:q,supportSticky:G,isPercentage:Q,normalizeUnitsNum:Z,normalizeString:ne,autoPrefix:re,normalizeNumber:ie,normalizeStyle:oe,getTransformObj:ae,getTransformStr:se,addTransform:function(e,t,n){if(t){var r={};n||(r=ae(e));for(var i in t){var o=t[i];o&&(r[i]=o)}var a=se(r);e.style.webkitTransform=a,e.style.mozTransform=a,e.style.transform=a}},addTranslateX:function(e,t){if(t){var n=ae(e);n.translate||(n.translate="translate3d(0px, 0px, 0px)"),n.translate=n.translate.replace(/[+-\d.]+[pw]x/,function(e){return parseFloat(e)+t+"px"});var r=se(n);e.style.webkitTransform=r,e.style.mozTransform=r,e.style.transform=r}},copyTransform:function(e,t,n){var r;if(n){var i=ae(e);if(!i[n])return;var o=ae(t);o[n]=i[n],r=se(o)}else r=e.style.webkitTransform||e.style.mozTransform||e.style.transform;t.style.webkitTransform=r,t.style.mozTransform=r,t.style.transform=r},getRgb:function(e){var t=/#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})/,n=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/,r=document.createElement("span"),i=document.body;r.style.cssText="color: "+e+"; width: 0px; height: 0px;",i&&i.appendChild(r),e=window.getComputedStyle(r).color+"",i&&i.removeChild(r);var o;return(o=e.match(t))?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:(o=e.match(n))?{r:parseInt(o[1]),g:parseInt(o[2]),b:parseInt(o[3])}:void 0},getStyleSheetById:function(e){if(e)for(var t=document.styleSheets,n=t.length,r=0;r<n;r++){var i=t[r];if(i.ownerNode.id===e)return i}},getRangeWidth:function(e){var t=e.children;if(!t)return e.getBoundingClientRect().width;if(!Range)return le(t);var n=document.createRange();return n.selectNodeContents?(n.selectNodeContents(e),n.getBoundingClientRect().width):le(t)},isPlainObject:function(e){return ta.call(e)===na},isArray:u});window.WXEnvironment=function(e,t){var n=t.browser?t.browser.name:navigator.appName,r=t.browser?t.browser.version.val:null,i=t.os.name;i.match(/(iPhone|iPad|iPod)/i)?i="iOS":i.match(/Android/i)&&(i="android");var o=t.os.version.val;return d({platform:"Web",weexVersion:"0.12.21",userAgent:navigator.userAgent,appName:n,appVersion:r,osName:i,osVersion:o,deviceModel:t.os.name||null},e)}(function(e){if(void 0===e&&(e=ha),!ua){ua=!0;var t=window.document;if(!t)return void console.error("[vue-render] window.document is undfined.");if(!t.documentElement)return void console.error("[vue-render] document.documentElement is undfined.");ma=wa.dpr=window.devicePixelRatio,ga=t.documentElement.clientWidth,va=t.documentElement.clientHeight,b(ga),x(e),window.addEventListener("resize",function(){va=t.documentElement.clientHeight;var e=window.weex&&window.weex.config.env;wa.deviceHeight=e.deviceHeight=va*ma}),d(wa,{scale:ga/e,deviceWidth:ga*ma,deviceHeight:va*ma})}return wa}(),window.lib.env);var is={},os=[],as={__vue__:null,utils:rs,config:{env:window.WXEnvironment,bundleUrl:location.href},_components:{},document:{body:{}},requireModule:function(e){return is[e]},registerModule:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return(n=this).registerApiModule.apply(n,e);var n},support:function(e){void 0===e&&(e="");var t=(e+"").match(/@(component|module)\/(\w+)(.\w+)?/);if(!t)return console.warn("[vue-render] invalid argument for weex.support: "+e),null;var n=t[1],r=t[2],i=t[3];switch(i=i&&i.replace(/^\./,""),n){case"component":return!!this._components[r];case"module":var o=this.requireModule(r);return o&&i?!!o[i]:!!o}},registerVueInstance:function(e){if(!(!e instanceof Vue)){var t=e.$root;t&&t.$el&&this.document.body.children.push(t.$el)}},require:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return console.log('[Vue Render] "weex.require" is deprecated, please use "weex.requireModule" instead.'),(n=this).requireModule.apply(n,e);var n},registerApiModule:function(e,t,n){var r=this;is[e]||(is[e]={}),n&&"full"===n.mountType&&(is[e]=t);for(var i in t)t.hasOwnProperty(i)&&(is[e][i]=f(t[i],r))},registerComponent:function(e,t){if(!this.__vue__)return console.log("[Vue Render] Vue is not found. Please import Vue.js before register a component.");this._components[e]=1,t._css&&(w(t._css.replace(/\b[+-]?[\d.]+rem;?\b/g,function(e){return 75*parseFloat(e)*as.config.env.scale+"px"}),"weex-cmp-"+e),delete t._css),this.__vue__.component(e,t)},getRoot:function(){},sender:{performCallback:function(e,t,n){return"function"==typeof e?e(t):null}},install:function(e){e.init(this)}};Object.defineProperty(as.document.body,"children",{get:function(){return os}}),["on","once","off","emit"].forEach(function(e){as[e]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return this._vue||(this._vue=new this.__vue__),(r=this._vue)["$"+e].apply(r,t);var r}});window._weex_perf={time:{}};var ss=0,ls=Object.freeze({getHeadStyleMap:ce,getScopeId:ue,getScopeStyle:de,getComponentStyle:fe,extractComponentStyle:function(e){return fe(e,!0)},trimTextVNodes:function(e){return u(e)?e.filter(function(e){return!!e.tag}):e},applyFns:me,createEventMap:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r={},i=function(t){return function(n){var i,o=t||n;"function"==typeof n?i=n:"string"==typeof n&&((i=function(t){if(!t._triggered)for(var r=e;r;){var i=pe(r._vnode||r.$vnode,n),o=i.length;if(o>0){for(var a=0;a<o;)me(i[a].fns,t),a++;return void(t._triggered={el:r.$el})}r=r.$parent}})._weex_hook=!0),r[o]||(r[o]=[]),r[o].push(i)}};if(t)for(var o=t.length,a=0;a<o;a++){var s=t[a];if(u(s))s.forEach(i());else if("object"==typeof s)for(var l in s)i(l)(s[l])}return r}}),cs=!1,us=!1,ds="https://gist.github.com/MrRaindrop/5a805a067146609e5cfd4d64d775d693#file-weex-vue-render-config-for-vue-loader-js",hs=0,fs={beforeCreate:function(){cs||ge()},updated:function(){if(this._rootId){var e=this.$el;1===e.nodeType&&e.className.indexOf("weex-root")<=-1&&(e.classList.add("weex-root"),e.setAttribute("data-wx-root-id",this._rootId))}this._fireLazyload()},mounted:function(){if(this===this.$root){var e="wx-root-"+hs++;weex._root||(weex._root={}),weex._root[e]=this,this._rootId=e;var t=this.$el;if(1!==t.nodeType)return;t.classList.add("weex-root"),t.setAttribute("data-wx-root-id",e),this._fireLazyload(t)}us||window._style_processing_added||ve();var n,r;this.$el&&(n=r=this.$vnode)&&(n=n.data)&&(r=r.componentOptions)&&(this.$el.attrs=d({},n.attrs,r.propsData)),P(this,!0)},destroyed:function(){this._rootId&&(delete weex._root[this._rootId],delete this._rootId),this._fireLazyload(),M(this)},methods:{_fireLazyload:function(e){B(25,e||document.body)()}}},ps={beforeCreate:function(){function e(){var e=this.$options&&this.$options._componentTag;if((this.$vnode&&this.$vnode.data&&"component"===this.$vnode.data.tag||this===this.$root&&this.$options&&!this._firstScanned)&&(this._firstScanned=!0,d(weex._styleMap,ce())),(this===this.$root&&this.$options||e&&!weex._components[e]&&!t[e])&&!this._secondScanned){t[e]=1,this._secondScanned=!0;for(var n=this.$options.beforeCreate,r=n.length,i=0;i<r&&!n[i]._styleMixin;i++);if(i!==r-1){var o=n[r-1];n[r-1]=function(){o.call(this),d(weex._styleMap,ce()),n[r-1]=o}}}}var t={};return e._styleMixin=!0,e}(),methods:{$processStyle:function(e){if(window._style_processing_added=!0,e)return oe(g(e))},_getParentRect:function(){var e=this.$options._parentElm;return e&&e.getBoundingClientRect()}}},ms=function(e){return["default","go","next","search","send"].indexOf(e)>-1?e:"done"},gs={methods:{focus:function(){this.$el&&this.$el.focus()},blur:function(){this.$el&&this.$el.blur()},setSelectionRange:function(e,t){try{this.$el.setSelectionRange(e,t)}catch(e){}},getSelectionRange:function(e){try{var t=window.getSelection().toString(),n=this.$el.value.indexOf(t),r=-1===n?n:n+t.length;e&&e({selectionStart:n,selectionEnd:r})}catch(t){e&&e(new Error("[vue-render] getSelection is not supported."))}},getEditSelectionRange:function(e){return this.getSelectionRange(e)},createKeyboardEvent:function(e){var t=this.returnKeyType,n=this;return this._events.return&&(e=d(e,{keyup:function(e){var r=e.keyCode,i=e.key;if(13===r){i&&"tab"!==i.toLowerCase()||(e.key="next");var o=ms(t);e.returnKeyType=o,e.value=e.target.value,n.$emit("return",e)}}})),e}}},vs={destroyed:function(){if(this._stickyAdded){var e=T(this);e&&delete e._stickyChildren[this._uid]}},methods:{_addSticky:function(){var e=this.$el;e&&1!==e.nodeType&&(e.classList.add("sticky"),this._placeholder||(this._placeholder=e.cloneNode(!0)),this._placeholder.style.display="block",this._placeholder.style.width=this.$el.offsetWidth+"px",this._placeholder.style.height=this.$el.offsetHeight+"px",e.parentNode.insertBefore(this._placeholder,this.$el))},_removeSticky:function(){var e=this.$el;e&&1!==e.nodeType&&(e.classList.remove("sticky"),this._placeholder&&this._placeholder.parentNode.removeChild(this._placeholder),this._placeholder=null)}}};window.global=window,window.weex=as,as._styleMap={},["getComponentStyle","extractComponentStyle","createEventMap","trimTextVNodes"].forEach(function(e){as[e]=ls[e].bind(as)}),as.mixins={inputCommon:gs};var ws=["click","touchstart","touchmove","touchend"],bs=["touchmove"],xs=ya.gestureEvents.concat(ws),ys=!1,_s=!1;"undefined"!=typeof window&&window.Vue&&ke(window.Vue),weex.init=ke;var Ss,ks,Cs,Ts,Es,Os,Is,As,Ns,js,zs="\n.weex-a {\n  text-decoration: none;\n}\n",$s={init:function(e){e.registerComponent("a",Ce(e))}},Ps="\nbody > .weex-div {\n  min-height: 100%;\n}\n",Ms={init:function(e){var t=Te(e);e.registerComponent("div",t),e.registerComponent("container",t)}},Ls=15,Rs={name:"weex-image",props:{src:String,placeholder:String,resize:String,quality:String,sharpen:String,original:[String,Boolean]},updated:function(){this._fireLazyload()},mounted:function(){this._fireLazyload()},methods:{save:function(e){Ie(this.src,e)}},render:function(e){var t=Ee(this),n=Ss(this);return e("figure",{attrs:{"weex-type":"image","img-src":Oe(this,this.src,n),"img-placeholder":Oe(this,this.placeholder,n)},on:ks(this,["load","error"]),staticClass:"weex-image weex-el",staticStyle:Cs(n,t)})},_css:"\n.weex-image, .weex-img {\n  background-repeat: no-repeat;\n  background-position: 50% 50%;\n}\n"},Ws={init:function(e){Ss=e.extractComponentStyle,ks=e.createEventMap,Cs=e.utils.extend,e.registerComponent("image",Rs),e.registerComponent("img",Rs)}},Fs="wipt_plc_",Bs="wipt_",Hs=0,Ds="\n.weex-input, .weex-textarea {\n  font-size: 0.426667rem;\n}\n.weex-input:focus, .weex-textarea:focus {\n  outline: none;\n}\n",Us={init:function(e){Ts=e.extractComponentStyle,Es=e.utils.mapFormEvents,Os=e.utils.appendCss,e.registerComponent("input",je(e))}},Ys="\n.weex-switch {\n  border: 0.013333rem solid #dfdfdf;\n  cursor: pointer;\n  display: inline-block;\n  position: relative;\n  vertical-align: middle;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n  box-sizing: content-box;\n  background-clip: content-box;\n  color: #64bd63;\n  width: 1.333333rem;\n  height: 0.8rem;\n  background-color: white;\n  border-color: #dfdfdf;\n  box-shadow: #dfdfdf 0 0 0 0 inset;\n  border-radius: 0.8rem;\n  -webkit-transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;\n  -moz-transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;\n  transition: border 0.4s, box-shadow 0.4s, background-color 1.2s;\n}\n\n.weex-switch-checked {\n  background-color: #64bd63;\n  border-color: #64bd63;\n  box-shadow: #64bd63 0 0 0 0.533333rem inset;\n}\n\n.weex-switch-checked.weex-switch-disabled {\n  background-color: #A0CCA0;\n  box-shadow: #A0CCA0 0 0 0 0.533333rem inset;\n}\n\n.weex-switch-disabled {\n  background-color: #EEEEEE;\n}\n\n.weex-switch-inner {\n  width: 0.8rem;\n  height: 0.8rem;\n  background: #fff;\n  border-radius: 100%;\n  box-shadow: 0 0.013333rem 0.04rem rgba(0, 0, 0, 0.4);\n  position: absolute;\n  top: 0;\n  left: 0;\n  -webkit-transition: background-color 0.4s, left 0.2s;\n  -moz-transition: background-color 0.4s, left 0.2s;\n  transition: background-color 0.4s, left 0.2s;\n}\n\n.weex-switch-checked > .weex-switch-inner {\n  left: 0.533333rem;\n}\n",Vs={init:function(e){e.registerComponent("switch",ze(e))}},Ks={props:{loadmoreoffset:{type:[String,Number],default:0,validator:function(e){var t=parseInt(e);return!isNaN(t)&&t>=0}},offsetAccuracy:{type:[Number,String],default:10,validator:function(e){var t=parseInt(e);return!isNaN(t)&&t>=10}}},created:function(){this._loadmoreReset=!0},methods:{updateLayout:function(){var e=this.$refs.wrapper;if(e){var t=e.getBoundingClientRect();this._wrapperWidth=t.width,this._wrapperHeight=t.height}var n=this.$refs.inner,r=n&&n.children;if(n){var i=n.getBoundingClientRect();this._innerWidth=i.width,this._innerHeight=i.height}var o=this._loading&&this._loading.$el,a=this._refresh&&this._refresh.$el;o&&(this._innerHeight-=o.getBoundingClientRect().height),a&&(this._innerHeight-=a.getBoundingClientRect().height),"horizontal"===this.scrollDirection&&r&&(this._innerWidth=weex.utils.getRangeWidth(n))},resetLoadmore:function(){this._loadmoreReset=!0},processSticky:function(){if(!weex.utils.supportSticky()&&"horizontal"!==this.scrollDirection){var e=this._stickyChildren,t=e&&e.length||0;if(!(t<=0)){var n=this.$el;if(n)for(var r,i=n.scrollTop,o=0;o<t;o++)(r=e[o])._initOffsetTop<i?r._addSticky():r._removeSticky()}}},handleScroll:function(e){if(weex.utils.getThrottleLazyload(25,this.$el,"scroll")(),$e(this)(e),this.processSticky(),this.$refs.inner){var t="horizontal"===this.scrollDirection?this._innerWidth:this._innerHeight;this._innerLength||(this._innerLength=t),this._innerLength!==t&&(this._innerLength=t,this._loadmoreReset=!0),this._loadmoreReset&&this.reachBottom(this.loadmoreoffset)&&(this._loadmoreReset=!1,this.$emit("loadmore",e))}},reachTop:function(){var e=this.$refs.wrapper;return!!e&&e.scrollTop<=0},reachBottom:function(e){var t=this.$refs.wrapper,n=this.$refs.inner;if(e=parseInt(e||0)*weex.config.env.scale,t&&n){var r="horizontal"===this.scrollDirection?"width":"height",i=this["_inner"+r[0].toUpperCase()+r.substr(1)],o=this["_wrapper"+r[0].toUpperCase()+r.substr(1)];return("horizontal"===this.scrollDirection?t.scrollLeft:t.scrollTop)>=i-o-e}return!1},handleTouchStart:function(e){if(this._loading||this._refresh){var t=e.changedTouches[0];this._touchParams={reachTop:this.reachTop(),reachBottom:this.reachBottom(),startTouchEvent:t,startX:t.pageX,startY:t.pageY,timeStamp:e.timeStamp}}},handleTouchMove:function(e){if(this._touchParams&&(this._refresh||this._loading)){var t=this.$refs.inner,n=this._touchParams,r=n.startY,i=n.reachTop,o=n.reachBottom;if(t){var a=e.changedTouches[0].pageY-r,s=a>0?"down":"up";this._touchParams.offsetY=a,this._refresh&&"down"===s&&i?this._refresh.pullingDown(a):this._loading&&"up"===s&&o&&this._loading.pullingUp(-a)}}},handleTouchEnd:function(e){if(this._touchParams&&(this._refresh||this._loading)){var t=this.$refs.inner,n=this._touchParams,r=n.startY,i=n.reachTop,o=n.reachBottom;if(t){var a=e.changedTouches[0].pageY-r,s=a>0?"down":"up";this._touchParams.offsetY=a,this._refresh&&"down"===s&&i?this._refresh.pullingEnd():this._loading&&"up"===s&&o&&this._loading.pullingEnd()}delete this._touchParams}}}},Xs={methods:{handleListScroll:function(e){if(this.handleScroll(e),!weex.utils.supportSticky()){var t=this.$el.scrollTop,n=this.$children.filter(function(e){return e.$refs.header});if(!(n.length<=0))for(var r=0;r<n.length;r++)n[r].initTop<t?n[r].addSticky():n[r].removeSticky()}}}},qs={init:function(e){e.registerComponent("list",Pe(e))}},Gs={init:function(e){e.registerComponent("scroller",Me(e))}},Qs=32,Zs=1,Js={init:function(e){e.registerComponent("waterfall",Le(e))}},el={init:function(e){e.registerComponent("cell",Re(e))}},tl={init:function(e){e.registerComponent("header",We(e))}},nl={init:function(e){e.registerComponent("loading",Fe())}},rl={init:function(e){e.registerComponent("refresh",Be(e))}},il={name:"weex-loading-indicator",render:function(e){return this.weexType="loading-indicator",e("mark",{attrs:{"weex-type":"loading-indicator"},staticClass:"weex-loading-indicator weex-ct",staticStyle:Ye(this)})},_css:"\n.weex-refresh-indicator,\n.weex-loading-indicator {\n  width: 1rem !important;\n  height: 1rem !important;\n  -webkit-box-align: center;\n  -moz-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  align-items: center;\n  -webkit-box-pack: center;\n  -moz-box-pack: center;\n  -webkit-justify-content: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  overflow: visible;\n  background: none;\n}\n.weex-refresh-indicator:before,\n.weex-loading-indicator:before {\n  display: block;\n  content: '';\n  font-size: 0.16rem;\n  width: 0.5em;\n  height: 0.5em;\n  left: 0;\n  top: 0;\n  border-radius: 50%;\n  position: relative;\n  text-indent: -9999em;\n  -webkit-animation: weex-spinner 1.1s infinite ease;\n  -moz-animation: weex-spinner 1.1s infinite ease;\n  animation: weex-spinner 1.1s infinite ease;\n}\n\n@-webkit-keyframes weex-spinner {\n  0%,\n  100% {\n    box-shadow: 0em -1.3em 0em 0em #ffffff, 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.5), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.7);\n  }\n  11.25% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.7), 0.9em -0.9em 0 0em #ffffff, 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.5);\n  }\n  25% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.5), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.7), 1.25em 0em 0 0em #ffffff, 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  37.5% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.5), 1.25em 0em 0 0em rgba(255, 255, 255, 0.7), 0.875em 0.875em 0 0em #ffffff, 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  50% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.5), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.7), 0em 1.25em 0 0em #ffffff, -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  61.25% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.5), 0em 1.25em 0 0em rgba(255, 255, 255, 0.7), -0.9em 0.9em 0 0em #ffffff, -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  75% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.5), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.7), -1.3em 0em 0 0em #ffffff, -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  87.5% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.5), -1.3em 0em 0 0em rgba(255, 255, 255, 0.7), -0.9em -0.9em 0 0em #ffffff;\n  }\n}\n\n@keyframes weex-spinner {\n  0%,\n  100% {\n    box-shadow: 0em -1.3em 0em 0em #ffffff, 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.5), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.7);\n  }\n  11.25% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.7), 0.9em -0.9em 0 0em #ffffff, 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.5);\n  }\n  25% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.5), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.7), 1.25em 0em 0 0em #ffffff, 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  37.5% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.5), 1.25em 0em 0 0em rgba(255, 255, 255, 0.7), 0.875em 0.875em 0 0em #ffffff, 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  50% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.5), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.7), 0em 1.25em 0 0em #ffffff, -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.2), -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  61.25% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.5), 0em 1.25em 0 0em rgba(255, 255, 255, 0.7), -0.9em 0.9em 0 0em #ffffff, -1.3em 0em 0 0em rgba(255, 255, 255, 0.2), -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  75% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.5), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.7), -1.3em 0em 0 0em #ffffff, -0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2);\n  }\n  87.5% {\n    box-shadow: 0em -1.3em 0em 0em rgba(255, 255, 255, 0.2), 0.9em -0.9em 0 0em rgba(255, 255, 255, 0.2), 1.25em 0em 0 0em rgba(255, 255, 255, 0.2), 0.875em 0.875em 0 0em rgba(255, 255, 255, 0.2), 0em 1.25em 0 0em rgba(255, 255, 255, 0.2), -0.9em 0.9em 0 0em rgba(255, 255, 255, 0.5), -1.3em 0em 0 0em rgba(255, 255, 255, 0.7), -0.9em -0.9em 0 0em #ffffff;\n  }\n}\n"},ol={init:function(e){Is=e.extractComponentStyle,As=e.utils.getRgb,Ns=e.utils.loopArray,js=e.utils.getStyleSheetById,e.registerComponent("loading-indicator",il)}};e('/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements.  See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership.  The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License.  You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nbody > .weex-list,\nbody > .weex-scroller,\nbody > .weex-waterfall {\n  max-height: 100%;\n}\n\n.weex-list-wrapper,\n.weex-scroller-wrapper,\n.weex-waterfall-wrapper {\n  -webkit-overflow-scrolling: touch;\n}\n\n.weex-list-wrapper,\n.weex-waterfall-wrapper {\n  overflow-y: scroll !important;\n  overflow-x: hidden !important;\n}\n\n.weex-list-inner,\n.weex-scroller-inner,\n.weex-waterfall-inner {\n  -webkit-overflow-scrolling: touch;\n}\n\n.weex-waterfall-inner-columns {\n  -webkit-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-box-orient: horizontal;\n}\n\n.weex-scroller-wrapper.weex-scroller-vertical {\n  overflow-x: hidden;\n  overflow-y: scroll;\n}\n\n.weex-scroller-wrapper.weex-scroller-horizontal {\n  overflow-x: scroll;\n  overflow-y: hidden;\n}\n\n.weex-scroller-wrapper.weex-scroller-disabled {\n  overflow-x: hidden;\n  overflow-y: hidden;\n}\n\n.weex-scroller-horizontal .weex-scroller-inner {\n  -webkit-flex-direction: row;\n  -ms-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  flex-direction: row;\n  -webkit-box-orient: horizontal;\n  height: 100%;\n}\n\n.weex-cell {\n  width: 100%;\n}\n\n.weex-refresh,\n.weex-loading {\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -moz-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -moz-box-pack: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  width: 100%;\n  overflow: hidden;\n}\n',void 0);var al=[qs,Gs,Js,el,tl,nl,rl,ol],sl={init:function(e){al.forEach(function(t){e.install(t)})}};e('/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements.  See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership.  The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * "License"); you may not use this file except in compliance\n * with the License.  You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied.  See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n \n.weex-slider-wrapper {\n  overflow-x: hidden;\n  overflow-y: visible;\n}\n\n.weex-slider-inner {\n  width: 100%;\n  height: 100%;\n  overflow: visible;\n  -webkit-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-box-orient: horizontal;\n}\n\n.weex-slider-cell {\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  top: 0px;\n  left: 0px;\n  background: transparent !important;\n  overflow: hidden;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -moz-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -moz-box-pack: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n}\n\n.neighbor-cell {\n  overflow: visible !important;\n}',void 0);var ll,cl,ul,dl={created:function(){this._clones=[],this.innerOffset=0,this._indicator=null},beforeUpdate:function(){this._getWrapperSize()},updated:function(){var e=this.$children,t=e&&e.length;if(e&&t>0)for(var n=0;n<t;n++){var r=e[n];if("indicator"===r.$options._componentTag||"indicator"===r.$vnode.data.ref){r._watcher.get();break}}weex.utils.fireLazyload(this.$el,!0),this._preIndex!==this.currentIndex&&this._slideTo(this.currentIndex)},mounted:function(){this._getWrapperSize(),this._slideTo(this.currentIndex),weex.utils.fireLazyload(this.$el,!0)},methods:{_getWrapperSize:function(){var e=this.$refs.wrapper;if(e){var t=e.getBoundingClientRect();this._wrapperWidth=t.width,this._wrapperHeight=t.height}},_formatChildren:function(e){var t,n=this,r=(this.$slots.default||[]).filter(function(e){return!!e.tag&&(!e.componentOptions||"indicator"!==e.componentOptions.tag||(t=e,!1))}).map(function(t){return e("li",{ref:"cells",staticClass:"weex-slider-cell weex-ct"+(n.isNeighbor?" neighbor-cell":"")},[t])});return t&&(t.data.attrs=t.data.attrs||{},t.data.attrs.count=r.length,t.data.attrs.active=this.currentIndex,this._indicator=t),r},_renderSlides:function(e){return this._cells=this._formatChildren(e),this.frameCount=this._cells.length,e("nav",{ref:"wrapper",attrs:{"weex-type":this.isNeighbor?"slider-neighbor":"slider"},on:weex.createEventMap(this,["scroll","scrollstart","scrollend"],{touchstart:this._handleTouchStart,touchmove:weex.utils.throttle(weex.utils.bind(this._handleTouchMove,this),25),touchend:this._handleTouchEnd,touchcancel:this._handleTouchCancel}),staticClass:"weex-slider weex-slider-wrapper weex-ct",staticStyle:weex.extractComponentStyle(this)},[e("ul",{ref:"inner",staticClass:"weex-slider-inner weex-ct"},this._cells),this._indicator])},_normalizeIndex:function(e){var t=(e+this.frameCount)%this.frameCount;return Math.min(Math.max(t,0),this.frameCount-1)},_startAutoPlay:function(){if(this.autoPlay&&"false"!==this.autoPlay){this._autoPlayTimer&&(clearTimeout(this._autoPlayTimer),this._autoPlayTimer=null);var e=parseInt(this.interval-400-100);e=e>200?e:200,this._autoPlayTimer=setTimeout(weex.utils.bind(this._next,this),e)}},_stopAutoPlay:function(){this._autoPlayTimer&&(clearTimeout(this._autoPlayTimer),this._autoPlayTimer=null)},_slideTo:function(e,t){var n=this;if(!(this.frameCount<=0))if(this.infinite&&"false"!==this.infinite||!(-1===e||e>this.frameCount-1)){if(this._preIndex||0===this._preIndex||(this._showNodes&&this._showNodes[0]?this._preIndex=this._showNodes[0].index:this._preIndex=this.currentIndex),!this._sliding){this._sliding=!0;var r=this._normalizeIndex(e),i=this.$refs.inner,o=this._step=this.frameCount<=1?0:this._preIndex-e;if(i){this._prepareNodes();var a=weex.utils.getTransformObj(i).translate,s=a&&a.match(/translate[^(]+\(([+-\d.]+)/),l=(s&&s[1]||0)-this.innerOffset;this.innerOffset+=o*this._wrapperWidth,i.style.webkitTransition="-webkit-transform 0.4s ease-in-out",i.style.mozTransition="transform 0.4s ease-in-out",i.style.transition="transform 0.4s ease-in-out",i.style.webkitTransform="translate3d("+this.innerOffset+"px, 0, 0)",i.style.mozTransform="translate3d("+this.innerOffset+"px, 0, 0)",i.style.transform="translate3d("+this.innerOffset+"px, 0, 0)",t||this._emitScrollEvent("scrollstart"),setTimeout(function(){n._throttleEmitScroll(l,function(){n._emitScrollEvent("scrollend")})},25),this._loopShowNodes(o),setTimeout(function(){n.isNeighbor&&n._setNeighbors(),setTimeout(function(){i.style.webkitTransition="",i.style.mozTransition="",i.style.transition="";for(var e=n._showStartIdx;e<=n._showEndIdx;e++){var t=n._showNodes[e];if(t){var o=t.firstElementChild;o.style.webkitTransition="",o.style.mozTransition="",o.style.transition=""}}n._rearrangeNodes(r)},100)},400)}r!==this._preIndex&&this.$emit("change",weex.utils.createEvent(this.$el,"change",{index:r}))}}else this._slideTo(this.currentIndex)},_clearNodesOffset:function(){for(var e=this,t=this._showEndIdx,n=this._showStartIdx;n<=t;n++){var r=e._showNodes[n];(r=r&&r.firstElementChild)&&weex.utils.addTransform(e._showNodes[n].firstElementChild,{translate:"translate3d(0px, 0px, 0px)"})}},_loopShowNodes:function(e){var t=this;if(e&&!(this.frameCount<=1)){for(var n=e>0?1:-1,r=e<=0?this._showStartIdx:this._showEndIdx,i=e<=0?this._showEndIdx:this._showStartIdx;r!==i-n;r-=n){var o=r+e;t._showNodes[o]=t._showNodes[r],t._showNodes[o]._showIndex=o,delete t._showNodes[r]}this._showStartIdx+=e,this._showEndIdx+=e}},_prepareNodes:function(){var e=this._step;if(this._inited||(this._initNodes(),this._inited=!0,this._showNodes={}),this.frameCount<=1){this._showStartIdx=this._showEndIdx=0;var t=this._cells[0].elm;return t.style.opacity=1,t.style.zIndex=99,t.index=0,this._showNodes[0]=t,t._inShow=!0,void(t._showIndex=0)}var n=this._showCount=Math.abs(e)+3;this._showStartIdx=e<=0?-1:2-n,this._showEndIdx=e<=0?n-2:1,this._clearNodesOffset(),this._positionNodes(this._showStartIdx,this._showEndIdx,e)},_initNodes:function(){for(var e=this.frameCount,t=this._cells,n=0;n<e;n++){var r=t[n].elm;r.index=n,r._inShow=!1,r.style.zIndex=0,r.style.opacity=0}},_positionNodes:function(e,t,n,r){for(var i=this,o=this._cells,a=n<=0?e:t,s=n<=0?t:e,l=n<=0?-1:1,c=this._preIndex+l,u=a;u!==s-l;u-=l){var d=o[i._normalizeIndex(c)].elm;c-=l,i._positionNode(d,u)}},_positionNode:function(e,t){var n=this._showNodes[t];if(e._inShow&&n!==e)n&&this._removeClone(n),e=this._getClone(e.index);else if(e._inShow)return;e._inShow=!0;var r=t*this._wrapperWidth-this.innerOffset;weex.utils.addTransform(e,{translate:"translate3d("+r+"px, 0px, 0px)"}),e.style.zIndex=99-Math.abs(t),e.style.opacity=1,e._showIndex=t,this._showNodes[t]=e},_getClone:function(e){var t=this._clones[e];if(t||(this._clones[e]=t=[]),t.length<=0){var n=this._cells[e].elm,r=n.cloneNode(!0);r._isClone=!0,r._inShow=n._inShow,r.index=n.index,r.style.opacity=0,r.style.zIndex=0,this.$refs.inner.appendChild(r),t.push(r)}return t.pop()},_removeClone:function(e){var t=e.index;this._hideNode(e),this._clones[t].push(e)},_hideNode:function(e){e._inShow=!1,e.style.opacity=0,e.style.zIndex=0},_clearNodes:function(e,t){for(var n=this,r=e;r<=t;r++){var i=n._showNodes[r];if(!i)return;i._isClone?n._removeClone(i):i._inShow||n._hideNode(i),delete n._showNodes[r]}},_copyStyle:function(e,t,n,r){void 0===n&&(n=["opacity","zIndex"]),void 0===r&&(r={}),weex.utils.extendKeys(t.style,e.style,n);var i=weex.utils.getTransformObj(e);for(var o in r)i[o]=r[o];weex.utils.addTransform(t,i);var a=e.firstElementChild,s=t.firstElementChild;s.style.opacity=a.style.opacity,weex.utils.copyTransform(a,s)},_replaceClone:function(e,t){var n=this,r=this._cells[e.index].elm;if(!r._inShow){var i,o=r._showIndex,a=["opacity","zIndex"];Math.abs(o)<=1&&(i=this._getClone(r.index),this._copyStyle(r,i),this._showNodes[o]=i),r._inShow=!0;var s=weex.utils.getTransformObj(e);s.translate=s.translate.replace(/[+-\d.]+[pw]x/,function(e){return t*n._wrapperWidth-n.innerOffset+"px"}),this._copyStyle(e,r,a,s),this._removeClone(e),i||delete this._showNodes[o],this._showNodes[t]=r,r._showIndex=t}},_rearrangeNodes:function(e){var t=this;if(this.frameCount<=1)return this._sliding=!1,void(this.currentIndex=0);this._startAutoPlay();for(var n=this._showNodes,r=this._showStartIdx;r<=this._showEndIdx;r++)n[r]._inShow=!1;for(var i=-1;i<=1;i++){var o=n[i];o._isClone?t._replaceClone(o,i):o._inShow=!0}this._clearNodes(this._showStartIdx,-2),this._showStartIdx=-1,this._clearNodes(2,this._showEndIdx),this._showEndIdx=1,this._sliding=!1,this.currentIndex=e,this._preIndex=e},_setNeighbors:function(){for(var e=this,t=this._showStartIdx;t<=this._showEndIdx;t++){var n=e._showNodes[t].firstElementChild;n.style.webkitTransition="all 0.1s ease",n.style.mozTransition="all 0.1s ease",n.style.transition="all 0.1s ease";var r={scale:"scale("+(0===t?e.currentItemScale:e.neighborScale)+")"},i=void 0;e._neighborWidth||(e._neighborWidth=parseFloat(n.style.width)||n.getBoundingClientRect().width),i=1===Math.abs(t)?-t*(((e._wrapperWidth-e._neighborWidth*e.neighborScale)/2+e.neighborSpace*weex.config.env.scale)/e.neighborScale):0,r.translate="translate3d("+i+"px, 0px, 0px)",weex.utils.addTransform(n,r),n.style.opacity=0===t?1:e.neighborAlpha}},_next:function(){var e=this.currentIndex+1;this.frameCount<=1&&e--,this._slideTo(e)},_prev:function(){var e=this.currentIndex-1;this.frameCount<=1&&e++,this._slideTo(e)},_handleTouchStart:function(e){var t=e.changedTouches[0];this._stopAutoPlay();var n=this.$refs.inner;this._touchParams={originalTransform:n.style.webkitTransform||n.style.mozTransform||n.style.transform,startTouchEvent:t,startX:t.pageX,startY:t.pageY,timeStamp:e.timeStamp}},_handleTouchMove:function(e){var t=this._touchParams;if(t&&!this._sliding){var n=this._touchParams,r=n.startX,i=n.startY,o=e.changedTouches[0],a=o.pageX-r,s=o.pageY-i;t.offsetX=a,t.offsetY=s;var l=t.isVertical;if(void 0===l&&((l=t.isVertical=Math.abs(a)<Math.abs(s))||this._emitScrollEvent("scrollstart")),!l){e.preventDefault();var c=this.$refs.inner;c&&a&&(this._nodesOffsetCleared||(this._nodesOffsetCleared=!0,this._clearNodesOffset()),this._emitScrollEvent("scroll",{offsetXRatio:a/this._wrapperWidth}),c.style.webkitTransform="translate3d("+(this.innerOffset+a)+"px, 0, 0)",c.style.mozTransform="translate3d("+(this.innerOffset+a)+"px, 0, 0)",c.style.transform="translate3d("+(this.innerOffset+a)+"px, 0, 0)")}}},_handleTouchEnd:function(e){this._startAutoPlay();var t=this._touchParams;if(t&&void 0!==t.isVertical){var n=this.$refs.inner,r=t.offsetX;if(n){this._nodesOffsetCleared=!1;var i=Math.abs(r/this._wrapperWidth)<.2,o=r>0?1:-1,a=i?this.currentIndex:this.currentIndex-o;this._slideTo(a,!0)}delete this._touchParams}},_handleTouchCancel:function(e){return this._handleTouchEnd(e)},_emitScrollEvent:function(e,t){void 0===t&&(t={}),this.$emit(e,weex.utils.createEvent(this.$el,e,t))},_throttleEmitScroll:function(e,t){var n=this,r=0,i=parseInt(16)-1,o=e>0?1:-1,a=Math.abs(e/this._wrapperWidth),s=function(){if(++r>i)return t&&t.call(n);var e=0===n._step?o*a*(1-r/i):o*(a+(1-a)*r/i);n._emitScrollEvent("scroll",{offsetXRatio:e}),setTimeout(s,25)};s()}}},hl={mixins:[dl],props:{index:{type:[String,Number],default:0},"auto-play":{type:[String,Boolean],default:!1},interval:{type:[String,Number],default:3e3},infinite:{type:[String,Boolean],default:!0}},watch:{index:function(){this.currentIndex=this._normalizeIndex(this.index)}},data:function(){return{frameCount:0,currentIndex:this.index}},beforeCreate:function(){this.weexType="slider"},render:function(e){return this._renderSlides(e)}},fl={init:function(e){e.registerComponent("slider",hl),e.registerComponent("cycleslider",hl)}},pl={mixins:[dl],props:{index:{type:[String,Number],default:0},autoPlay:{type:[String,Boolean],default:!1},interval:{type:[String,Number],default:3e3},infinite:{type:[String,Boolean],default:!0},neighborSpace:{type:[String,Number],validator:function(e){return e=parseFloat(e),!isNaN(e)&&e>0},default:20},neighborAlpha:{type:[String,Number],validator:function(e){return e=parseFloat(e),!isNaN(e)&&e>=0&&e<=1},default:.6},neighborScale:{type:[String,Number],validator:function(e){return e=parseFloat(e),!isNaN(e)&&e>=0&&e<=1},default:.8},currentItemScale:{type:[String,Number],validator:function(e){return e=parseFloat(e),!isNaN(e)&&e>=0&&e<=1},default:.9}},watch:{index:function(){this.currentIndex=this._normalizeIndex(this.index)}},data:function(){return{currentIndex:this.index,frameCount:0}},beforeCreate:function(){this.isNeighbor=!0,this.weexType="slider-neighbor"},render:function(e){return this._renderSlides(e)}},ml={init:function(e){e.registerComponent("slider-neighbor",pl)}},gl={name:"weex-indicator",methods:{show:function(){this.$el.style.visibility="visible"}},data:function(){return{count:0,active:0}},render:function(e){var t=this.$vnode.data.attrs||{},n=t.count,r=t.active;if(this.count=n,this.active=r,this.count)return Ke(this,e)},_css:"\n.weex-indicator {\n  position: absolute;\n  z-index: 10;\n  -webkit-flex-direction: row;\n  -ms-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  flex-direction: row;\n  -webkit-box-orient: horizontal;\n  margin: 0;\n  padding: 0;\n}\n\n.weex-indicator-item {\n  display: inline-block;\n  position: relative;\n  border-radius: 50%;\n  width: 0.266667rem;\n  height: 0.266667rem;\n  background-color: #BBBBBB;\n}\n.weex-indicator-item + .weex-indicator-item {\n  margin-left: 0.133333rem;\n}\n\n.weex-indicator-item-active {\n  background-color: blue;\n}\n"},vl={init:function(e){ll=e.extractComponentStyle,cl=e.utils.extend,ul=e.utils.extendKeys,e.registerComponent("indicator",gl)}},wl="\n.weex-text {\n  display: -webkit-box;\n  display: -moz-box;\n  -webkit-box-orient: vertical;\n  -moz-box-orient: vertical;\n  -moz-box-direction: normal;\n  position: relative;\n  white-space: pre-wrap;  /* not using 'pre': support auto line feed. */\n  font-size: 0.426667rem;\n  word-wrap: break-word;\n  overflow: hidden; /* it'll be clipped if the height is not high enough. */\n}\n",bl="\n.weex-textarea {\n  font-size: 0.426667rem\n}\n.weex-textarea:focus {\n  outline: none;\n}\n",xl="\n.weex-web {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  border: none;\n  box-sizing: border-box;\n}\n",yl=[$s,Ms,Ws,Us,Vs,sl,{init:function(e){e.install(fl),e.install(ml),e.install(vl)}},{init:function(e){e.registerComponent("text",Je(e))}},{init:function(e){e.registerComponent("textarea",et(e))}},{init:function(e){e.registerComponent("video",tt(e))}},{init:function(e){e.registerComponent("web",nt(e))}}],_l="geolocation"in navigator,Sl="[h5-render]: browser doesn't support geolocation.",kl={getCurrentPosition:function(e,t,n){var r=this,i=function(e){return r.sender.performCallback(t,e)};_l?navigator.geolocation.getCurrentPosition(function(t){return r.sender.performCallback(e,t)},i,n):(console.warn(Sl),i(new Error(Sl)))},watchPosition:function(e,t,n){var r=this,i=function(t){return r.sender.performCallback(e,t,!0)},o=function(e){return r.sender.performCallback(t,e)};if(_l)var a=navigator.geolocation.watchPosition(function(e){e.watchId=a,i(e)},o,n);else console.warn(Sl),o(new Error(Sl))},clearWatch:function(e){_l?navigator.geolocation.clearWatch(e):console.warn(Sl)}},Cl={geolocation:[{name:"getCurrentPosition",args:["function","function","object"]},{name:"watchPosition",args:["function","function","object"]},{name:"clearWatch",args:["string"]}]},Tl={init:function(e){e.registerApiModule("geolocation",kl,Cl)}},El="undefined"!=typeof localStorage,Ol={setItem:function(e,t,n){if(El){var r=this.sender;if(e&&(t||0===t))try{localStorage.setItem(e,t),r.performCallback(n,{result:"success",data:"undefined"})}catch(e){r.performCallback(n,{result:"failed",data:"undefined"})}else r.performCallback(n,{result:"failed",data:"invalid_param"})}else console.error("your browser is not support localStorage yet.")},getItem:function(e,t){if(El){var n=this.sender;if(e){var r=localStorage.getItem(e);n.performCallback(t,{result:r?"success":"failed",data:r||"undefined"})}else n.performCallback(t,{result:"failed",data:"invalid_param"})}else console.error("your browser is not support localStorage yet.")},removeItem:function(e,t){if(El){var n=this.sender;e?(localStorage.removeItem(e),n.performCallback(t,{result:"success",data:"undefined"})):n.performCallback(t,{result:"failed",data:"invalid_param"})}else console.error("your browser is not support localStorage yet.")},length:function(e){if(El){var t=this.sender,n=localStorage.length;t.performCallback(e,{result:"success",data:n})}else console.error("your browser is not support localStorage yet.")},getAllKeys:function(e){if(El){for(var t=this.sender,n=[],r=0;r<localStorage.length;r++)n.push(localStorage.key(r));t.performCallback(e,{result:"success",data:n})}else console.error("your browser is not support localStorage yet.")}},Il={storage:[{name:"setItem",args:["string","string","function"]},{name:"getItem",args:["string","function"]},{name:"removeItem",args:["string","function"]},{name:"length",args:["function"]},{name:"getAllKeys",args:["function"]}]},Al={init:function(e){e.registerApiModule("storage",Ol,Il)}};"undefined"==typeof window&&(window={ctrl:{},lib:{}}),!window.ctrl&&(window.ctrl={}),!window.lib&&(window.lib={}),function(e,t){function n(e){var t={};Object.defineProperty(this,"params",{set:function(e){if("object"==typeof e){for(var n in t)delete t[n];for(var n in e)t[n]=e[n]}},get:function(){return t},enumerable:!0}),Object.defineProperty(this,"search",{set:function(e){if("string"==typeof e){0===e.indexOf("?")&&(e=e.substr(1));var n=e.split("&");for(var r in t)delete t[r];for(var i=0;i<n.length;i++){var o=n[i].split("=");if(void 0!==o[1]&&(o[1]=o[1].toString()),o[0])try{t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}catch(e){t[o[0]]=o[1]}}}},get:function(){var e=[];for(var n in t)if(void 0!==t[n])if(""!==t[n])try{e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]))}catch(r){e.push(n+"="+t[n])}else try{e.push(encodeURIComponent(n))}catch(t){e.push(n)}return e.length?"?"+e.join("&"):""},enumerable:!0});var n;Object.defineProperty(this,"hash",{set:function(e){"string"==typeof e&&(e&&e.indexOf("#")<0&&(e="#"+e),n=e||"")},get:function(){return n},enumerable:!0}),this.set=function(e){var t;if(!(t=(e=e||"").match(new RegExp("^([a-z0-9-]+:)?[/]{2}(?:([^@/:?]+)(?::([^@/:]+))?@)?([^:/?#]+)(?:[:]([0-9]+))?([/][^?#;]*)?(?:[?]([^#]*))?([#][^?]*)?$","i"))))throw new Error("Wrong uri scheme.");this.protocol=t[1]||("object"==typeof location?location.protocol:""),this.username=t[2]||"",this.password=t[3]||"",this.hostname=this.host=t[4],this.port=t[5]||"",this.pathname=t[6]||"/",this.search=t[7]||"",this.hash=t[8]||"",this.origin=this.protocol+"//"+this.hostname},this.toString=function(){var e=this.protocol+"//";return this.username&&(e+=this.username,this.password&&(e+=":"+this.password),e+="@"),e+=this.host,this.port&&"80"!==this.port&&(e+=":"+this.port),this.pathname&&(e+=this.pathname),this.search&&(e+=this.search),this.hash&&(e+=this.hash),e},e&&this.set(e.toString())}(window.lib||(window.lib={})).httpurl=function(e){return new n(e)}}(window);var Nl,jl,zl,$l=Object.getOwnPropertySymbols,Pl=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Ll=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},Rl=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,i=arguments,o=rt(e),a=1;a<arguments.length;a++){n=Object(i[a]);for(var s in n)Pl.call(n,s)&&(o[s]=n[s]);if($l){r=$l(n);for(var l=0;l<r.length;l++)Ml.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o},Wl={extract:function(e){return e.split("?")[1]||""},parse:function(e,t){var n=ot(t=Rl({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:decodeURIComponent(o),n(decodeURIComponent(i),o,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=st(n):e[t]=n,e},Object.create(null))):r},stringify:function(e,t){var n=it(t=Rl({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(r){var i=e[r];if(void 0===i)return"";if(null===i)return at(r,t);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(n(r,e,o.length))}),o.join("&")}return at(r,t)+"="+at(i,t)}).filter(function(e){return e.length>0}).join("&"):""}},Fl=0,Bl=-1,Hl={sendHttp:function(e,t){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return}if("object"!=typeof e||!e.url)return console.error("[h5-render] invalid config or invalid config.url for sendHttp API");var n=this.sender,r=e.method||"GET",i=new XMLHttpRequest;i.open(r,e.url,!0),i.onload=function(){n.performCallback(t,this.responseText)},i.onerror=function(e){return console.error("[h5-render] unexpected error in sendHttp API",e)},i.send()},fetch:function(e,t,n){var r=["GET","POST","PUT","DELETE","HEAD","PATCH"],i=["cors","no-cors","same-origin","navigate"],o=["text","json","jsonp","arraybuffer"],a=this.sender,s=Nl.extend({},e);if(void 0===s.method)s.method="GET",console.warn("[h5-render] options.method for 'fetch' API has been set to default value '"+s.method+"'");else if(-1===r.indexOf((s.method+"").toUpperCase()))return console.error("[h5-render] options.method '"+s.method+"' for 'fetch' API should be one of "+r+".");if(!s.url)return console.error("[h5-render] options.url should be set for 'fetch' API.");if("GET"===s.method.toUpperCase()){var l=s.body;Nl.isPlainObject(l)&&(l=Wl.stringify(l));var c=s.url,u=c.indexOf("#");u<=-1&&(u=c.length);var d=c.substr(u);d&&"#"===d[0]&&(d=d.substr(1)),c=c.substring(0,u),l&&(c+=(s.url.indexOf("?")<=-1?"?":"&")+l),c+="#"+d,s.url=c}if(void 0===s.mode)s.mode="cors";else if(-1===i.indexOf((s.mode+"").toLowerCase()))return console.error("[h5-render] options.mode '"+s.mode+"' for 'fetch' API should be one of "+i+".");if(void 0===s.type)s.type="text",console.warn("[h5-render] options.type for 'fetch' API has been set to default value '"+s.type+"'.");else if(-1===o.indexOf((s.type+"").toLowerCase()))return console.error("[h5-render] options.type '"+s.type+"' for 'fetch' API should be one of "+o+".");if(s.headers=s.headers||{},!Nl.isPlainObject(s.headers))return console.error("[h5-render] options.headers should be a plain object");s.timeout=parseInt(s.timeout,10)||2500;var h=[s,function(e){a.performCallback(t,e)}];n&&h.push(function(e){a.performCallback(n,e,!0)}),"jsonp"===s.type?lt.apply(this,h):ct.apply(this,h)}},Dl={stream:[{name:"sendHttp",args:["object","function"]},{name:"fetch",args:["object","function","function"]}]},Ul={init:function(e){Nl=e.utils,e.registerApiModule("stream",Hl,Dl)}},Yl="__weex_clipboard_id__",Vl={getString:function(e){console.log("clipboard.getString() is not supported now.")},setString:function(e){if("string"==typeof e&&""!==e&&document.execCommand){var t=ut();t.value=e,t.select(),document.execCommand("copy"),t.value="",t.blur()}else console.log("only support string input now")}},Kl={clipboard:[{name:"getString",args:["function"]},{name:"setString",args:["string"]}]},Xl={init:function(e){e.registerApiModule("clipboard",Vl,Kl)}},ql={openURL:function(e){location.href=e}},Gl={event:[{name:"openURL",args:["string"]}]},Ql={init:function(e){e.registerApiModule("event",ql,Gl)}},Zl={},Jl={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"};!function(){var e=document.createElement("div").style;for(var t in Jl)if(t in e){jl=Jl[t],zl=t;break}}();var ec,tc={transition:function(e,t,n){if(t.styles)return dt(e,t,function(){n&&n()})}},nc={init:function(e){(0,e.utils.extendKeys)(Zl,e.utils,["nextFrame","toCSSText","autoPrefix","camelizeKeys","normalizeStyle","isArray"]),e.registerModule("animation",tc)}},rc={},ic={scrollToElement:function(e,t){(0,rc.isArray)(e)&&(e=e[0]);var n=ht(e),r=n&&n.scrollDirection||"vertical",i=!n,o=i?document.body:n.$el,a=e.$el||e.elm;if(o&&a){var s={horizontal:"Left",vertical:"Top"}[r],l=o.getBoundingClientRect(),c=a.getBoundingClientRect();n&&"waterfall"===n.weexType&&n._headers&&n._headers.indexOf(e.$vnode||e)>-1&&(c=o.firstElementChild.getBoundingClientRect());var u=s.toLowerCase(),d=(i?0:o["scroll"+s])+c[u]-l[u];if(t&&(d+=t.offset&&t.offset*weex.config.env.scale||0),t&&!1===t.animated)return pt.call(o,s,d);mt({scrollable:o,startTime:ft(),frame:null,startPosition:i?window.pageYOffset:o["scroll"+s],position:d,method:pt,dSuffix:s})}},getComponentRect:function(e,t){function n(e){var t={};return o.forEach(function(n){e[n]&&(t[n]=e[n]/r)}),t}(0,rc.isArray)(e)&&(e=e[0]);var r=window.weex.config.env.scale,i={result:!1},o=["width","height","top","bottom","left","right"];e&&"viewport"===e?(i.result=!0,i.size=n({width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,top:0,left:0,right:document.documentElement.clientWidth,bottom:document.documentElement.clientHeight}),i.contentSize=n({width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight})):e&&e.$el&&(i.result=!0,i.size=n(e.$el.getBoundingClientRect()),e.$refs.inner?i.contentSize=n({width:e.$refs.inner.offsetWidth,height:e.$refs.inner.offsetHeight}):i.contentSize=n({width:e.$el.offsetWidth,height:e.$el.offsetHeight}));var a=i.result?i:{result:!1,errMsg:"Illegal parameter"};return t&&t(a),a},addRule:function(e,t){var n=rc.camelToKebab,r=rc.appendCss;e=n(e);var i="";for(var o in t)t.hasOwnProperty(o)&&(i+=n(o)+":"+t[o]+";");r("@"+e+"{"+i+"}","dom-added-rules")}},oc={init:function(e){(0,e.utils.extendKeys)(rc,e.utils,["camelToKebab","appendCss","isArray"]),e.registerModule("dom",ic)}},ac={},sc={addEventListener:function(e,t){if(t){var n=ac[e];n||(n=ac[e]=[]);for(var r=n.length,i=0;i<r;i++)if(n[i]===t)return;n.push(t),document.addEventListener(e,t)}},removeEventListener:function(e){var t=ac[e];t&&(t.forEach(function(t){return document.removeEventListener(e,t)}),delete ac[e])}},lc={init:function(e){e.registerModule("globalEvent",sc)}},cc=[],uc=!1,dc="weex-toast",hc=.4,fc={push:function(e,t){cc.push({msg:e,duration:t||.8}),this.show()},show:function(){var e=this;if(!cc.length)return ec&&ec.parentNode.removeChild(ec),void(ec=null);if(!uc){uc=!0;var t=cc.shift();vt(t.msg,function(){setTimeout(function(){wt(function(){uc=!1,e.show()})},1e3*t.duration)})}}},pc="weex-modal-wrap",mc="weex-modal-node";bt.prototype={show:function(){this.wrap.style.display="block",this.node.classList.remove("hide")},destroy:function(){document.body.removeChild(this.wrap),document.body.removeChild(this.node),this.wrap=null,this.node=null},createWrap:function(){this.wrap=document.createElement("div"),this.wrap.className=pc,document.body.appendChild(this.wrap)},createNode:function(){this.node=document.createElement("div"),this.node.classList.add(mc,"hide"),document.body.appendChild(this.node)},clearNode:function(){this.node.innerHTML=""},createNodeContent:function(){},bindEvents:function(){this.wrap.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation()})}};(xt.prototype=Object.create(bt.prototype)).createNodeContent=function(){var e=document.createElement("div");e.classList.add("content"),this.node.appendChild(e);var t=document.createElement("div");t.classList.add("content-msg"),t.appendChild(document.createTextNode(this.msg)),e.appendChild(t);var n=document.createElement("div");n.classList.add("btn-group"),this.node.appendChild(n);var r=document.createElement("div");r.classList.add("btn","alert-ok"),r.appendChild(document.createTextNode(this.okTitle)),n.appendChild(r)},xt.prototype.bindEvents=function(){bt.prototype.bindEvents.call(this),this.node.querySelector(".btn").addEventListener("click",function(){this.destroy(),this.callback&&this.callback()}.bind(this))};(yt.prototype=Object.create(bt.prototype)).createNodeContent=function(){var e=document.createElement("div");e.classList.add("content"),this.node.appendChild(e);var t=document.createElement("div");t.classList.add("content-msg"),t.appendChild(document.createTextNode(this.msg)),e.appendChild(t);var n=document.createElement("div");n.classList.add("btn-group"),this.node.appendChild(n);var r=document.createElement("div");r.appendChild(document.createTextNode(this.okTitle)),r.classList.add("btn-ok","btn");var i=document.createElement("div");i.appendChild(document.createTextNode(this.cancelTitle)),i.classList.add("btn-cancel","btn"),n.appendChild(r),n.appendChild(i),this.node.appendChild(n)},yt.prototype.bindEvents=function(){bt.prototype.bindEvents.call(this);var e=this.node.querySelector(".btn.btn-ok"),t=this.node.querySelector(".btn.btn-cancel");e.addEventListener("click",function(){this.destroy(),this.callback&&this.callback(this.okTitle)}.bind(this)),t.addEventListener("click",function(){this.destroy(),this.callback&&this.callback(this.cancelTitle)}.bind(this))};(_t.prototype=Object.create(bt.prototype)).createNodeContent=function(){var e=document.createElement("div");e.classList.add("content"),this.node.appendChild(e);var t=document.createElement("div");t.classList.add("content-msg"),t.appendChild(document.createTextNode(this.msg)),e.appendChild(t);var n=document.createElement("div");n.classList.add("input-wrap"),e.appendChild(n);var r=document.createElement("input");r.classList.add("input"),r.type="text",r.autofocus=!0,r.placeholder=this.defaultMsg,n.appendChild(r);var i=document.createElement("div");i.classList.add("btn-group");var o=document.createElement("div");o.appendChild(document.createTextNode(this.okTitle)),o.classList.add("btn-ok","btn");var a=document.createElement("div");a.appendChild(document.createTextNode(this.cancelTitle)),a.classList.add("btn-cancel","btn"),i.appendChild(o),i.appendChild(a),this.node.appendChild(i)},_t.prototype.bindEvents=function(){bt.prototype.bindEvents.call(this);var e=this.node.querySelector(".btn.btn-ok"),t=this.node.querySelector(".btn.btn-cancel"),n=this;e.addEventListener("click",function(){var e=document.querySelector("input").value;this.destroy(),this.callback&&this.callback({result:n.okTitle,data:e})}.bind(this)),t.addEventListener("click",function(){var e=document.querySelector("input").value;this.destroy(),this.callback&&this.callback({result:n.cancelTitle,data:e})}.bind(this))};var gc,vc={toast:function(e){fc.push(e.message,e.duration)},alert:function(e,t){e.callback=function(){t&&t()},new xt(e).show()},confirm:function(e,t){e.callback=function(e){t&&t(e)},new yt(e).show()},prompt:function(e,t){e.callback=function(e){t&&t(e)},new _t(e).show()}},wc={init:function(e){e.utils.appendCss("\n.weex-toast {\n  font-size: 0.426667rem;\n  line-height: 0.426667rem;\n  position: fixed;\n  z-index: 1999999999;\n  box-sizing: border-box;\n  max-width: 80%;\n  bottom: 50%;\n  left: 50%;\n  padding: 0.213333rem;\n  background-color: #000;\n  color: #fff;\n  text-align: center;\n  opacity: 0.7;\n  -webkit-transition: all 0.4s ease-in-out;\n  -moz-transition: all 0.4s ease-in-out;\n  -ms-transition: all 0.4s ease-in-out;\n  transition: all 0.4s ease-in-out;\n  border-radius: 0.066667rem;\n  -webkit-transform: translateX(-50%);\n  -moz-transform: translateX(-50%);\n  -ms-transform: translateX(-50%);\n  transform: translateX(-50%);\n}\n\n.weex-toast.hide {\n  opacity: 0;\n}\n\n.weex-alert .weex-alert-ok {\n  width: 100%;\n}\n\n.weex-confirm .btn-group .btn {\n  float: left;\n  width: 50%;\n}\n\n.weex-confirm .btn-group .btn.btn-ok {\n  border-right: 0.013333rem solid #ddd;\n}\n\n.weex-modal-wrap {\n  display: none;\n  position: fixed;\n  z-index: 999999999;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: #000;\n  opacity: 0.5;\n}\n\n.weex-modal-node {\n  position: fixed;\n  z-index: 9999999999;\n  top: 50%;\n  left: 50%;\n  width: 6.666667rem;\n  min-height: 2.666667rem;\n  border-radius: 0.066667rem;\n  -webkit-transform: translate(-50%, -50%);\n  -moz-transform: translate(-50%, -50%);\n  -ms-transform: translate(-50%, -50%);\n  transform: translate(-50%, -50%);\n  background-color: #fff;\n}\n\n.weex-modal-node.hide {\n  display: none;\n}\n\n.weex-modal-node .content {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: vertical;\n  -webkit-flex-direction: column;\n  -moz-box-orient: vertical;\n  -moz-box-direction: normal;\n  -ms-flex-direction: column;\n      flex-direction: column;\n  -webkit-box-align: center;\n  -webkit-align-items: center;\n  -ms-flex-align: center;\n  -moz-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  -webkit-box-pack: center;\n  -webkit-justify-content: center;\n  -moz-box-pack: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  width: 100%;\n  min-height: 1.866667rem;\n  box-sizing: border-box;\n  font-size: 0.426667rem;\n  line-height: 0.426667rem;\n  padding: 0.213333rem;\n  border-bottom: 0.013333rem solid #ddd;\n}\n\n.weex-modal-node .btn-group {\n  width: 100%;\n  height: 0.8rem;\n  font-size: 0.373333rem;\n  text-align: center;\n  margin: 0;\n  padding: 0;\n  border: none;\n}\n\n.weex-modal-node .btn-group .btn {\n  text-align: center;\n}\n\n.weex-modal-node .btn-group .btn {\n  box-sizing: border-box;\n  height: 0.8rem;\n  line-height: 0.8rem;\n  margin: 0;\n  padding: 0;\n  border: none;\n  background: none;\n  text-align: center;\n}\n\n.weex-prompt .input-wrap {\n  box-sizing: border-box;\n  width: 100%;\n  margin-top: 0.133333rem;\n  height: 0.96rem;\n}\n\n.weex-prompt .input-wrap .input {\n  box-sizing: border-box;\n  width: 100%;\n  height: 0.56rem;\n  line-height: 0.56rem;\n  font-size: 0.426667rem;\n  border: 0.013333rem solid #999;\n}\n\n.weex-prompt .btn-group .btn {\n  float: left;\n  width: 50%;\n}\n\n.weex-prompt .btn-group .btn.btn-ok {\n  border-right: 0.013333rem solid #ddd;\n}\n","weex-mud-modal"),e.registerModule("modal",vc)}},bc={push:function(e,t){window.location.href=e.url,t&&t()},pop:function(e,t){window.history.back(),t&&t()}},xc={init:function(e){e.registerModule("navigator",bc)}},yc={goBack:function(e){gc(e)&&(e=e[0]),e&&"function"==typeof e.goBack&&e.goBack()},goForward:function(e){gc(e)&&(e=e[0]),e&&"function"==typeof e.goForward&&e.goForward()},reload:function(e){gc(e)&&(e=e[0]),e&&"function"==typeof e.reload&&e.reload()}},_c={init:function(e){gc=e.utils.isArray,e.registerModule("webview",yc)}},Sc=function(){var e=["onopen","onmessage","onerror","onclose"],t={INSTANCE:null,WebSocket:function(e,n){if(e)return t.INSTANCE=n?new WebSocket(e,n):new WebSocket(e),t.INSTANCE;t.INSTANCE=null},send:function(e){t.INSTANCE&&t.INSTANCE.send(e)},close:function(){t.INSTANCE&&t.INSTANCE.close()}};for(var n in e)!function(n){e.hasOwnProperty(n)&&Object.defineProperty(t,e[n],{get:function(){return t.INSTANCE&&t.INSTANCE[e[n]]},set:function(r){t.INSTANCE&&(t.INSTANCE[e[n]]=r)}})}(n);return t}(),kc={setViewport:function(e){console.warn('[vue-render] meta.setViewport doesn\'t works as expected in web platform. Please use <meta name="weex-viewport" content="xxx"> to specify your viewport width.')}},Cc=[Tl,Al,Ul,Xl,Ql,wc,{init:function(e){e.registerModule("webSocket",Sc,{mountType:"full"})}},nc,oc,lc,xc,_c,{init:function(e){e.registerModule("meta",kc)}}],Tc=weex.init;return weex.init=function(){Tc.apply(weex,arguments),yl.concat(Cc).forEach(function(e){weex.install(e)})},global.Vue&&weex.init(global.Vue),weex});