UNPKG

weex-vue-s-render

Version:

Web renderer for weex project written in Vue DSL.

1 lines 118 kB
!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){return t={exports:{}},e(t,t.exports),t.exports}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=ir.createEvent("HTMLEvents");if(r.initEvent(t,!0,!0),"object"==typeof n)for(var i in n)r[i]=n[i];r._for="weex",e&&e.dispatchEvent(r)}function r(e){for(var r=0;r<e.changedTouches.length;r++){var i=e.changedTouches[r];if(!(w=sr[i.identifier]))return;w.lastTouch||(w.lastTouch=w.startTouch),w.lastTime||(w.lastTime=w.startTime),w.velocityX||(w.velocityX=0),w.velocityY||(w.velocityY=0),w.duration||(w.duration=0);var o=Date.now()-w.lastTime,a=(i.clientX-w.lastTouch.clientX)/o,s=(i.clientY-w.lastTouch.clientY)/o;o>70&&(o=70),w.duration+o>70&&(w.duration=70-o),w.velocityX=(w.velocityX*w.duration+a*o)/(w.duration+o),w.velocityY=(w.velocityY*w.duration+s*o)/(w.duration+o),w.duration+=o,w.lastTouch={};for(var c in i)w.lastTouch[c]=i[c];w.lastTime=Date.now();var l=i.clientX-w.startTouch.clientX,u=i.clientY-w.startTouch.clientY,d=Math.sqrt(Math.pow(l,2)+Math.pow(u,2)),h=!(Math.abs(l)>Math.abs(u)),f=h?u>=0?"down":"up":l>=0?"right":"left";("tapping"===w.status||"pressing"===w.status)&&d>10&&(w.status="panning",w.isVertical=h,w.direction=f,n(w.element,"panstart",{touch:i,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:w.isVertical,direction:f})),"panning"===w.status&&(w.panTime=Date.now(),n(w.element,"panmove",{displacementX:l,displacementY:u,touch:i,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:w.isVertical,direction:f}))}if(2==Object.keys(sr).length){var m,p=[],v=[],g=[];for(r=0;r<e.touches.length;r++){i=e.touches[r];var w=sr[i.identifier];p.push([w.startTouch.clientX,w.startTouch.clientY]),v.push([i.clientX,i.clientY])}for(var c in sr)g.push(sr[c].element);m=function(e,t,n,r,i,o,a,s){var c=Math.atan2(s-o,a-i)-Math.atan2(r-t,n-e),l=Math.sqrt((Math.pow(s-o,2)+Math.pow(a-i,2))/(Math.pow(r-t,2)+Math.pow(n-e,2))),u=[i-l*e*Math.cos(c)+l*t*Math.sin(c),o-l*t*Math.cos(c)-l*e*Math.sin(c)];return{rotate:c,scale:l,translate:u,matrix:[[l*Math.cos(c),-l*Math.sin(c),u[0]],[l*Math.sin(c),l*Math.cos(c),u[1]],[0,0,1]]}}(p[0][0],p[0][1],p[1][0],p[1][1],v[0][0],v[0][1],v[1][0],v[1][1]),n(t(g[0],g[1]),"dualtouch",{transform:m,touches:e.touches,touchEvent:e})}}function i(e){if(2==Object.keys(sr).length){var a=[];for(var s in sr)a.push(sr[s].element);n(t(a[0],a[1]),"dualtouchend",{touches:ar.call(e.touches),touchEvent:e})}for(var c=0;c<e.changedTouches.length;c++){var l=e.changedTouches[c],u=l.identifier,d=sr[u];if(d){if(d.pressingHandler&&(clearTimeout(d.pressingHandler),d.pressingHandler=null),"tapping"===d.status&&(d.timestamp=Date.now(),n(d.element,"weex$tap",{touch:l,touchEvent:e}),cr&&d.timestamp-cr.timestamp<300&&n(d.element,"doubletap",{touch:l,touchEvent:e}),cr=d),"panning"===d.status){var h=Date.now(),f=h-d.startTime,m=l.clientX-d.startTouch.clientX,p=l.clientY-d.startTouch.clientY,v=Math.sqrt(d.velocityY*d.velocityY+d.velocityX*d.velocityX)>.5&&h-d.lastTime<100,g={duration:f,isSwipe:v,velocityX:d.velocityX,velocityY:d.velocityY,displacementX:m,displacementY:p,touch:l,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e,isVertical:d.isVertical,direction:d.direction};n(d.element,"panend",g),v&&n(d.element,"swipe",g)}"pressing"===d.status&&n(d.element,"pressend",{touch:l,touchEvent:e}),delete sr[u]}}0===Object.keys(sr).length&&(or.removeEventListener("touchmove",r,!1),or.removeEventListener("touchend",i,!1),or.removeEventListener("touchcancel",o,!1))}function o(e){if(2==Object.keys(sr).length){var a=[];for(var s in sr)a.push(sr[s].element);n(t(a[0],a[1]),"dualtouchend",{touches:ar.call(e.touches),touchEvent:e})}for(var c=0;c<e.changedTouches.length;c++){var l=e.changedTouches[c],u=l.identifier,d=sr[u];d&&(d.pressingHandler&&(clearTimeout(d.pressingHandler),d.pressingHandler=null),"panning"===d.status&&n(d.element,"panend",{touch:l,touches:e.touches,changedTouches:e.changedTouches,touchEvent:e}),"pressing"===d.status&&n(d.element,"pressend",{touch:l,touchEvent:e}),delete sr[u])}0===Object.keys(sr).length&&(or.removeEventListener("touchmove",r,!0),or.removeEventListener("touchend",i,!0),or.removeEventListener("touchcancel",o,!0))}function a(e){Object.defineProperty(this,"val",{value:e.toString(),enumerable:!0}),this.gt=function(e){return a.compare(this,e)>0},this.gte=function(e){return a.compare(this,e)>=0},this.lt=function(e){return a.compare(this,e)<0},this.lte=function(e){return a.compare(this,e)<=0},this.eq=function(e){return 0===a.compare(this,e)}}function s(e){return yr.call(e)===xr}function c(e){return yr.call(e)===_r}function l(e){return"string"==typeof value||"number"==typeof value||"symbol"==typeof value||"boolean"==typeof value}function u(e){return void 0!==e&&null!==e}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){var n;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];clearTimeout(n),n=setTimeout(function(){n=null,e.apply(null,r)},t)}}function m(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 c=this,l=(new Date).getTime();l-r>t&&(n&&(i&&clearTimeout(i),i=setTimeout(function(){i=null,e.apply(c,a)},o)),e.apply(c,a),r=l)}}function p(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function v(e){var t={};for(var n in e){t[kr(n).replace(Or,function(e){return"-"+e})]=e[n]}return t}function g(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 w(e,t,n){var r=window.document,i=750*e/t/10;if(r.documentElement){r.documentElement.style.fontSize&&!n||(r.documentElement.style.fontSize=i+"px"),Rr.rem=i,Rr.rootValue=t/10}}function b(e){if(jr){if(parseInt(jr.getAttribute("content"))===e)return}else{(jr=document.createElement("meta")).setAttribute("name","weex-viewport");var t=document.querySelector("meta"),n=t&&t.parentElement||document.documentElement.children[0];t?n.insertBefore(jr,t):n.appendChild(jr)}jr.setAttribute("content",e+"")}function y(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 x(e,t,n){var r=new Event(t,{bubbles:!1});if(y(r,n),-1!==window.navigator.userAgent.toLowerCase().indexOf("phantomjs"))return r;try{Object.defineProperty(r,"target",{enumerable:!0,value:e})}catch(t){return y(r,{target:e})}return r}function _(e,t,n){e.dispatchEvent(x(e,t,n))}function S(e){if("boolean"==typeof e._insideA)return e._insideA;for(var t=e.parentElement,n=[],r=function(t){return e._insideA=t,function(e){for(var t=0,r=n.length;t<r;t++)n[t]._insideA=e}(t),t};t!==document.body;){if("a"===t.tagName.toLowerCase())return r(!0);if("boolean"==typeof t._insideA)return r(t._insideA);n.push(t),t=t.parentElement}return r(!1)}function C(e){function t(n){if(n)return Wr.scrollableTypes.indexOf(n.weexType)>-1?(e._parentScroller=n,n):t(n.$parent)}return e?e._parentScroller?e._parentScroller:t(e.$parent):null}function T(e){function t(n){if(n){var r=n.tagName.toLowerCase();return"body"===r||"main"===r&&Wr.scrollableTypes.indexOf(n.getAttribute("weex-type"))>-1?(e._parentScroller=n,n):t(n.parentElement)}}if(!e)return null;var n=e instanceof HTMLElement?e:e.$el;if(n&&1===n.nodeType)return e._parentScroller?e._parentScroller:t(n)}function E(e,t,n,r){var i="up"===(n=n||"up")||"down"===n;if(("left"===n||"right"===n)&&!function(e,t){return e.top<t.bottom&&e.bottom>t.top}(e,t))return[!1,!1];if(i&&!function(e,t){return e.left<t.right&&e.right>t.left}(e,t))return[!1,!1];switch(r=r?parseInt(r)*weex.config.env.scale:0,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 k(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 E(e.getBoundingClientRect(),o,n,r)}function O(e,t,n){_(e,t,{direction:n})}function N(e){return e&&e.getAttribute("appear-offset")}function I(e,t){var n=e&&e.$el;if(n&&1===n.nodeType){var r=!1,i=T(e);if(i){i===document.body&&(r=!0);var o=i._scrollHandler;o||(o=i._scrollHandler=function(e){!function(e){e._watchAppearList=Array.prototype.slice.call(e.querySelectorAll("[weex-appear]"))}(i);var t=r?window.pageYOffset:i.scrollTop,n=i._lastScrollTop;i._lastScrollTop=t;var o=(t<n?"down":t>n?"up":i._prevDirection)||null;i._prevDirection=o;for(var a=i._watchAppearList||[],s=a.length,c=0;c<s;c++){var l=a[c],u=N(l);A(l,k(l,i,o,u),o)}},i.addEventListener("scroll",m(o,100,!0))),t&&e.$nextTick(o)}}}function A(e,t,n,r){if(void 0===n&&(n=null),e){var i=t[0],o=t[1];if((e._appearedOnce||i)&&e._visible!==i){e._visible=i,i&&!e._appearedOnce&&(e._appearedOnce=!0);var a=i?"appear":"disappear";""===e.getAttribute("data-evt-"+a)&&O(e,a,n)}if((e._offsetAppearedOnce||o)&&e._offsetVisible!==o){e._offsetVisible=o,o&&!e._offsetAppearedOnce&&(e._offsetAppearedOnce=!0);var s=o?["offset-appear","offsetAppear"]:["offset-disappear","offsetDisappear"];""===e.getAttribute("data-evt-"+s[0])&&O(e,s[1],n)}}}function j(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 L(e,t,n){function r(){delete e._src_loading}t&&(window._processImgSrc&&(t=window._processImgSrc(t,e),n&&(n=window._processImgSrc(n,e))),e._src_loading!==t&&(e.style.backgroundImage="url("+(t||"")+")",e.removeAttribute(Vr),e._src_loading=t,j(t,function(n){e.style.backgroundImage="url("+(t||"")+")";var i=this.width,o=this.height;_(e,"load",{success:!0,size:{naturalWidth:i,naturalHeight:o}}),r()},function(t){_(e,"load",{success:!1,size:{naturalWidth:0,naturalHeight:0}}),n&&j(n,function(){e.style.backgroundImage="url("+(n||"")+")"}),r()})))}function P(e){if(e){var t=e._ptScroller;if(!t){for(var n=e.parentElement;n&&n!==document.body;){if((n.className+""||"").match(/weex-list|weex-scroller|weex-waterfall/)){t=n;break}n=n.parentElement}t=n,e._ptScroller=n}return t}}function $(e,t){if(Array.isArray(e))return e.forEach(function(e){return $(e)});if(e=e||document.body){var n=(e||document.body).querySelectorAll("["+Vr+"]");e.getAttribute(Vr)&&(n=[e]);for(var r=0;r<n.length;r++){var i=n[r];"boolean"==typeof t&&t?L(i,i.getAttribute(Vr),i.getAttribute(Xr)):k(i,P(e))[0]&&L(i,i.getAttribute(Vr),i.getAttribute(Xr))}}}function M(e,t){void 0===e&&(e=16),void 0===t&&(t=document.body);var n=+(t&&t.dataset.throttleId);(isNaN(n)||n<=0)&&(n=Yr++,t&&t.setAttribute("data-throttle-id",n+"")),!qr[n]&&(qr[n]={});return qr[n][e]||(qr[n][e]=m($.bind(this,t),parseFloat(e),!0))}function R(){if(void 0===Dr){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),Dr=1===n.offsetHeight,t.removeChild(r)}else Dr=!1}return Dr}function z(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 B(e){return Object.keys(e).reduce(function(t,n){return t+e[n]+" "},"")}function H(e){for(var t=e.length,n=0,r=0;r<t;r++)n+=e[r].getBoundingClientRect().width;return n}function W(e,t){return e.replace(/([+-]?\d+(?:.\d*)?)([p|w]x)/g,function(e,n,r){if("wx"===r)return n+"px";var i=parseFloat(n),o=i>0?1:i<0?-1:0;return Math.abs(i)<=1?R()?.5*o+"px":1*o+"px":i/(t||window.weex.config.env.rem)+"rem"})}function F(e){var t=e.data||{};return h({},t.staticStyle,t.style)}function D(e){var t=e&&e.$vnode;if(!t)return{};for(var n={};t;)d(n,F(t)),t=t.parent;return n}function V(e,t){return function(e,n,r,i,o){return(c(n)||l())&&(i=r,r=n,n={}),u(n)||(n={}),u(n.is)&&(e=n.is),"string"==typeof e?(n=K(this,n,e),e=X(this,e)):n=K(this,n,void 0),t.call(this,e,n,r,i,o)}.bind(e)}function X(e,t){return oi[t]||t}function q(e,t,n,r,i){for(var o in t){var a=ri[o];if(a)n["data-evt-"+a]="",i.value||(i.value=!0,n["weex-appear"]="");else if(n["data-evt-"+o]="","click"!==o){var s=t[o];c(t[o])?s.unshift(e.$stopPropagation):t[o]=[e.$stopPropagation,s]}}t.click&&(t.weex$tap=t.click,t.click=e.$stopOuterA),t.scroll&&(t.weex$scroll=t.scroll,delete t.scroll)}function Y(e,t,n){var r=t.style;if(r){var i=ti(function(e){return ai[e]||e}(n));t.style=i?e._px2rem(i.transform(r),75):e._px2rem(r,75)}}function K(e,t,n){if(c(t))return t;var r=function(e){return Wr.weexBuiltInComponents.indexOf(e)>-1}(n);return r&&function(e,t){var n=e.class,r=si[t];n||(n=e.class=[]),n&&c(n)?e.class=n.concat(Object.keys(r)):"object"==typeof n&&Object.assign(n,r)}(t,n),Y(e,t,n),r&&function(e,t){var n=e.attrs,r=e.directives;if(n||(n=e.attrs={}),n["weex-type"]=t,"image"===t){var i=n.src,o=n.resize;i&&(n["data-img-src"]=i),o&&(r||(r=e.directives=[]),r.push({name:"weex-resize",value:n.resize}))}}(t,n),function(e,t,n){var r=t.on,i=t.nativeOn;ni.indexOf(n)>-1&&(i=null,delete t.nativeOn),u(weex._components[n])&&(delete t.nativeOn,i=null,r&&(i=t.nativeOn=r),r=null,delete t.on);var o=t.attrs;o||(o=t.attrs={});var a={value:!1};if(r&&q(e,r,o,0,a),i&&q(e,i,o,0,a),"a"===n){r||(r=t.on={});var s=r.weex$tap;s?Array.isArray(s)?s.unshift(e.$stopPropagation):s=[e.$stopPropagation,s]:r.weex$tap=e.$stopPropagation}}(e,t,n),t}function U(e){if(!e)throw new Error("[Vue Render] Vue not found. Please make sure vue 2.x runtime is imported.");global.weex.__vue__||(global.weex.__vue__=e,weex.install(xi))}function G(e){if(!_i){_i=!0,U(e),e.prototype.$getConfig=function(){return console.warn('[Vue Render] "this.$getConfig" is deprecated, please use "weex.config" instead.'),weex.config};var t=/^html:/i;e.config.isReservedTag=function(e){return t.test(e)},e.config.parsePlatformTagName=function(e){return e.replace(t,"")};var n=e.config.getTagNamespace;e.config.getTagNamespace=function(e){if(!function(e){return void 0!==weex._components[e]}(e))return n(e)},e.mixin(mi),e.mixin(pi),e.mixin(gi),e.mixin(bi)}}function Q(e){var t=D(e),n=t.placeholderColor||t["placeholder-color"];return n&&function(e,t){if(t){var n=["::-webkit-input-placeholder",":-moz-placeholder","::-moz-placeholder",":-ms-input-placeholder",":placeholder-shown"],r=e._id;Ci(n.map(function(e,i){return"#"+Ai+r+n[i]+"{color:"+t+";}"}).join(""),""+Ii+r,!0)}}(e,n),t}function Z(e,t){!function(e){e._styleSheet||(e._styleSheet=Oi("weex-cmp-loading-indicator"))}(e);for(var n=function(e){if(!e)return;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=function(e){var i=ki(n,e,"r");r.push(t.map(function(e,t){return e+" "+i[t]}).join(", "))},o=0;o<t.length;o++)i(o);return r}(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,c=0,l=s.length;c<l;c++){var u=s[c];u.type!==CSSRule.KEYFRAME_RULE&&u.type!==CSSRule.WEBKIT_KEYFRAME_RULE||(u.style.boxShadow=n[c])}}}function J(e,t){var n={},r=t?e.itemSelectedColor||e["item-selected-color"]:e.itemColor||e["item-color"];return n["background-color"]=r,n.width=n.height=e.itemSize||e["item-size"],n}function ee(e,t,n){e.performCallback(t,{result:no,data:n||io})}function te(e,t){e.performCallback(t,{result:no,data:"localStorage is disabled or not supported."})}function ne(e,t){return t.encode?t.strict?ho(e):encodeURIComponent(e):e}function re(){return(window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now)()}function ie(e,t){if(this===document.body||this===window&&window.scrollTo)return window.scrollTo(0,t);this["scroll"+e]=t}function oe(e){e.frame=window.requestAnimationFrame(oe.bind(window,e));var t=(re()-e.startTime)/468,n=function(e){return.5*(1-Math.cos(Math.PI*e))}(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 ae(){this.wrap=document.querySelector(Yo),this.node=document.querySelector(Ko),this.wrap||this.createWrap(),this.node||this.createNode(),this.clearNode(),this.createNodeContent(),this.bindEvents()}function se(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",ae.call(this),this.node.classList.add("weex-alert")}function ce(e){this.msg=e.message||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",ae.call(this),this.node.classList.add("weex-confirm")}function le(e){this.msg=e.message||"",this.defaultMsg=e.default||"",this.callback=e.callback,this.okTitle=e.okTitle||"OK",this.cancelTitle=e.cancelTitle||"Cancel",ae.call(this),this.node.classList.add("weex-prompt")}var ue=Math.ceil,de=Math.floor,he=function(e){return isNaN(e=+e)?0:(e>0?de:ue)(e)},fe=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},me=e(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)}),pe=e(function(e){var t=e.exports={version:"2.5.2"};"number"==typeof __e&&(__e=t)}),ve=(pe.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),ge=function(e){if(!ve(e))throw TypeError(e+" is not an object!");return e},we=function(e){try{return!!e()}catch(e){return!0}},be=!we(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),ye=me.document,xe=ve(ye)&&ve(ye.createElement),_e=function(e){return xe?ye.createElement(e):{}},Se=!be&&!we(function(){return 7!=Object.defineProperty(_e("div"),"a",{get:function(){return 7}}).a}),Ce=function(e,t){if(!ve(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!ve(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!ve(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!ve(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Te=Object.defineProperty,Ee={f:be?Object.defineProperty:function(e,t,n){if(ge(e),t=Ce(t,!0),ge(n),Se)try{return Te(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}},ke=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Oe=be?function(e,t,n){return Ee.f(e,t,ke(1,n))}:function(e,t,n){return e[t]=n,e},Ne={}.hasOwnProperty,Ie=function(e,t){return Ne.call(e,t)},Ae=0,je=Math.random(),Le=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++Ae+je).toString(36))},Pe=e(function(e){var t=Le("src"),n="toString",r=Function[n],i=(""+r).split(n);pe.inspectSource=function(e){return r.call(e)},(e.exports=function(e,n,r,o){var a="function"==typeof r;a&&(Ie(r,"name")||Oe(r,"name",n)),e[n]!==r&&(a&&(Ie(r,t)||Oe(r,t,e[n]?""+e[n]:i.join(String(n)))),e===me?e[n]=r:o?e[n]?e[n]=r:Oe(e,n,r):(delete e[n],Oe(e,n,r)))})(Function.prototype,n,function(){return"function"==typeof this&&this[t]||r.call(this)})}),$e=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Me=function(e,t,n){if($e(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)}},Re="prototype",ze=function(e,t,n){var r,i,o,a,s=e&ze.F,c=e&ze.G,l=e&ze.S,u=e&ze.P,d=e&ze.B,h=c?me:l?me[t]||(me[t]={}):(me[t]||{})[Re],f=c?pe:pe[t]||(pe[t]={}),m=f[Re]||(f[Re]={});c&&(n=t);for(r in n)o=((i=!s&&h&&void 0!==h[r])?h:n)[r],a=d&&i?Me(o,me):u&&"function"==typeof o?Me(Function.call,o):o,h&&Pe(h,r,o,e&ze.U),f[r]!=o&&Oe(f,r,a),u&&m[r]!=o&&(m[r]=o)};me.core=pe,ze.F=1,ze.G=2,ze.S=4,ze.P=8,ze.B=16,ze.W=32,ze.U=64,ze.R=128;var Be=ze,He={},We={}.toString,Fe=function(e){return We.call(e).slice(8,-1)},De=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==Fe(e)?e.split(""):Object(e)},Ve=function(e){return De(fe(e))},Xe=Math.min,qe=function(e){return e>0?Xe(he(e),9007199254740991):0},Ye=Math.max,Ke=Math.min,Ue="__core-js_shared__",Ge=me[Ue]||(me[Ue]={}),Qe=function(e){return Ge[e]||(Ge[e]={})},Ze=Qe("keys"),Je=function(e){return Ze[e]||(Ze[e]=Le(e))},et=function(e){return function(t,n,r){var i,o=Ve(t),a=qe(o.length),s=function(e,t){return(e=he(e))<0?Ye(e+t,0):Ke(e,t)}(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),tt=Je("IE_PROTO"),nt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),rt=Object.keys||function(e){return function(e,t){var n,r=Ve(e),i=0,o=[];for(n in r)n!=tt&&Ie(r,n)&&o.push(n);for(;t.length>i;)Ie(r,n=t[i++])&&(~et(o,n)||o.push(n));return o}(e,nt)},it=be?Object.defineProperties:function(e,t){ge(e);for(var n,r=rt(t),i=r.length,o=0;i>o;)Ee.f(e,n=r[o++],t[n]);return e},ot=me.document,at=ot&&ot.documentElement,st=Je("IE_PROTO"),ct=function(){},lt="prototype",ut=function(){var e,t=_e("iframe"),n=nt.length;for(t.style.display="none",at.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),ut=e.F;n--;)delete ut[lt][nt[n]];return ut()},dt=Object.create||function(e,t){var n;return null!==e?(ct[lt]=ge(e),n=new ct,ct[lt]=null,n[st]=e):n=ut(),void 0===t?n:it(n,t)},ht=e(function(e){var t=Qe("wks"),n=me.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:Le)("Symbol."+e))}).store=t}),ft=Ee.f,mt=ht("toStringTag"),pt=function(e,t,n){e&&!Ie(e=n?e:e.prototype,mt)&&ft(e,mt,{configurable:!0,value:t})},vt={};Oe(vt,ht("iterator"),function(){return this});var gt=function(e){return Object(fe(e))},wt=Je("IE_PROTO"),bt=Object.prototype,yt=Object.getPrototypeOf||function(e){return e=gt(e),Ie(e,wt)?e[wt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?bt:null},xt=ht("iterator"),_t=!([].keys&&"next"in[].keys()),St="values",Ct=function(){return this},Tt=function(e,t,n,r,i,o,a){!function(e,t,n){e.prototype=dt(vt,{next:ke(1,n)}),pt(e,t+" Iterator")}(n,t,r);var s,c,l,u=function(e){if(!_t&&e in m)return m[e];switch(e){case"keys":case St:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h=i==St,f=!1,m=e.prototype,p=m[xt]||m["@@iterator"]||i&&m[i],v=p||u(i),g=i?h?u("entries"):v:void 0,w="Array"==t?m.entries||p:p;if(w&&(l=yt(w.call(new e)))!==Object.prototype&&l.next&&(pt(l,d,!0),Ie(l,xt)||Oe(l,xt,Ct)),h&&p&&p.name!==St&&(f=!0,v=function(){return p.call(this)}),(_t||f||!m[xt])&&Oe(m,xt,v),He[t]=v,He[d]=Ct,i)if(s={values:h?v:u(St),keys:o?v:u("keys"),entries:g},a)for(c in s)c in m||Pe(m,c,s[c]);else Be(Be.P+Be.F*(_t||f),t,s);return s},Et=function(e){return function(t,n){var r,i,o=String(fe(t)),a=he(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);Tt(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=Et(t,n),this._i+=e.length,{value:e,done:!1})});var kt=function(e,t,n,r){try{return r?t(ge(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&ge(i.call(e)),t}},Ot=ht("iterator"),Nt=Array.prototype,It=function(e){return void 0!==e&&(He.Array===e||Nt[Ot]===e)},At=function(e,t,n){t in e?Ee.f(e,t,ke(0,n)):e[t]=n},jt=ht("toStringTag"),Lt="Arguments"==Fe(function(){return arguments}()),Pt=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),jt))?n:Lt?Fe(t):"Object"==(r=Fe(t))&&"function"==typeof t.callee?"Arguments":r},$t=ht("iterator"),Mt=pe.getIteratorMethod=function(e){if(void 0!=e)return e[$t]||e["@@iterator"]||He[Pt(e)]},Rt=ht("iterator"),zt=!1;try{[7][Rt]().return=function(){zt=!0}}catch(e){}var Bt=function(e,t){if(!t&&!zt)return!1;var n=!1;try{var r=[7],i=r[Rt]();i.next=function(){return{done:n=!0}},r[Rt]=function(){return i},e(r)}catch(e){}return n};Be(Be.S+Be.F*!Bt(function(e){}),"Array",{from:function(e){var t,n,r,i,o=gt(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=0,d=Mt(o);if(l&&(c=Me(c,s>2?arguments[2]:void 0,2)),void 0==d||a==Array&&It(d))for(n=new a(t=qe(o.length));t>u;u++)At(n,u,l?c(o[u],u):o[u]);else for(i=d.call(o),n=new a;!(r=i.next()).done;u++)At(n,u,l?kt(i,c,[r.value,u],!0):r.value);return n.length=u,n}});pe.Array.from;var Ht={f:Object.getOwnPropertySymbols},Wt={f:{}.propertyIsEnumerable},Ft=Object.assign,Dt=!Ft||we(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=Ft({},e)[n]||Object.keys(Ft({},t)).join("")!=r})?function(e,t){for(var n=arguments,r=gt(e),i=arguments.length,o=1,a=Ht.f,s=Wt.f;i>o;)for(var c,l=De(n[o++]),u=a?rt(l).concat(a(l)):rt(l),d=u.length,h=0;d>h;)s.call(l,c=u[h++])&&(r[c]=l[c]);return r}:Ft;Be(Be.S+Be.F,"Object",{assign:Dt});pe.Object.assign;var Vt=Object.getOwnPropertyDescriptor,Xt={f:be?Vt:function(e,t){if(e=Ve(e),t=Ce(t,!0),Se)try{return Vt(e,t)}catch(e){}if(Ie(e,t))return ke(!Wt.f.call(e,t),e[t])}},qt=function(e,t){if(ge(e),!ve(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},Yt={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=Me(Function.call,Xt.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return qt(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:qt};Be(Be.S,"Object",{setPrototypeOf:Yt.set});pe.Object.setPrototypeOf;var Kt={};Kt[ht("toStringTag")]="z",Kt+""!="[object z]"&&Pe(Object.prototype,"toString",function(){return"[object "+Pt(this)+"]"},!0);var Ut=ht("unscopables"),Gt=Array.prototype;void 0==Gt[Ut]&&Oe(Gt,Ut,{});var Qt=function(e){Gt[Ut][e]=!0},Zt=function(e,t){return{value:t,done:!!e}},Jt=Tt(Array,"Array",function(e,t){this._t=Ve(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,Zt(1)):Zt(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");He.Arguments=He.Array,Qt("keys"),Qt("values"),Qt("entries");for(var en=ht("iterator"),tn=ht("toStringTag"),nn=He.Array,rn={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},on=rt(rn),an=0;an<on.length;an++){var sn,cn=on[an],ln=rn[cn],un=me[cn],dn=un&&un.prototype;if(dn&&(dn[en]||Oe(dn,en,nn),dn[tn]||Oe(dn,tn,cn),He[cn]=nn,ln))for(sn in Jt)dn[sn]||Pe(dn,sn,Jt[sn],!0)}var hn,fn,mn,pn=e(function(e){var t={},n={},r=e.exports=function(e,r,i,o,a){var s,c,l,u,d=a?function(){return e}:Mt(e),h=Me(i,o,r?2:1),f=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(It(d)){for(s=qe(e.length);s>f;f++)if((u=r?h(ge(c=e[f])[0],c[1]):h(e[f]))===t||u===n)return u}else for(l=d.call(e);!(c=l.next()).done;)if((u=kt(l,h,c.value,r))===t||u===n)return u};r.BREAK=t,r.RETURN=n}),vn=ht("species"),gn=me.process,wn=me.setImmediate,bn=me.clearImmediate,yn=me.MessageChannel,xn=me.Dispatch,_n=0,Sn={},Cn="onreadystatechange",Tn=function(){var e=+this;if(Sn.hasOwnProperty(e)){var t=Sn[e];delete Sn[e],t()}},En=function(e){Tn.call(e.data)};wn&&bn||(wn=function(e){for(var t=arguments,n=[],r=1;arguments.length>r;)n.push(t[r++]);return Sn[++_n]=function(){!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])}e.apply(n,t)}("function"==typeof e?e:Function(e),n)},hn(_n),_n},bn=function(e){delete Sn[e]},"process"==Fe(gn)?hn=function(e){gn.nextTick(Me(Tn,e,1))}:xn&&xn.now?hn=function(e){xn.now(Me(Tn,e,1))}:yn?(mn=(fn=new yn).port2,fn.port1.onmessage=En,hn=Me(mn.postMessage,mn,1)):me.addEventListener&&"function"==typeof postMessage&&!me.importScripts?(hn=function(e){me.postMessage(e+"","*")},me.addEventListener("message",En,!1)):hn=Cn in _e("script")?function(e){at.appendChild(_e("script"))[Cn]=function(){at.removeChild(this),Tn.call(e)}}:function(e){setTimeout(Me(Tn,e,1),0)});var kn,On,Nn,In,An={set:wn,clear:bn},jn=An.set,Ln=me.MutationObserver||me.WebKitMutationObserver,Pn=me.process,$n=me.Promise,Mn="process"==Fe(Pn),Rn={f:function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=$e(t),this.reject=$e(n)}(e)}},zn=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},Bn=ht("species"),Hn=An.set,Wn=function(){var e,t,n,r=function(){var r,i;for(Mn&&(r=Pn.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(Mn)n=function(){Pn.nextTick(r)};else if(!Ln||me.navigator&&me.navigator.standalone)if($n&&$n.resolve){var i=$n.resolve();n=function(){i.then(r)}}else n=function(){jn.call(me,r)};else{var o=!0,a=document.createTextNode("");new Ln(r).observe(a,{characterData:!0}),n=function(){a.data=o=!o}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}(),Fn="Promise",Dn=me.TypeError,Vn=me.process,Xn=me[Fn],qn="process"==Pt(Vn),Yn=function(){},Kn=On=Rn.f,Un=!!function(){try{var e=Xn.resolve(1),t=(e.constructor={})[ht("species")]=function(e){e(Yn,Yn)};return(qn||"function"==typeof PromiseRejectionEvent)&&e.then(Yn)instanceof t}catch(e){}}(),Gn=function(e){var t;return!(!ve(e)||"function"!=typeof(t=e.then))&&t},Qn=function(e,t){if(!e._n){e._n=!0;var n=e._c;Wn(function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,c=t.reject,l=t.domain;try{a?(i||(2==e._h&&er(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&l.exit()),n===t.promise?c(Dn("Promise-chain cycle")):(o=Gn(n))?o.call(n,s,c):s(n)):c(r)}catch(e){c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&Zn(e)})}},Zn=function(e){Hn.call(me,function(){var t,n,r,i=e._v,o=Jn(e);if(o&&(t=zn(function(){qn?Vn.emit("unhandledRejection",i,e):(n=me.onunhandledrejection)?n({promise:e,reason:i}):(r=me.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=qn||Jn(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},Jn=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||!Jn(t.promise))return!1;return!0},er=function(e){Hn.call(me,function(){var t;qn?Vn.emit("rejectionHandled",e):(t=me.onrejectionhandled)&&t({promise:e,reason:e._v})})},tr=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()),Qn(t,!0))},nr=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw Dn("Promise can't be resolved itself");(t=Gn(e))?Wn(function(){var r={_w:n,_d:!1};try{t.call(e,Me(nr,r,1),Me(tr,r,1))}catch(e){tr.call(r,e)}}):(n._v=e,n._s=1,Qn(n,!1))}catch(e){tr.call({_w:n,_d:!1},e)}}};Un||(Xn=function(e){!function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!")}(this,Xn,Fn,"_h"),$e(e),kn.call(this);try{e(Me(nr,this,1),Me(tr,this,1))}catch(e){tr.call(this,e)}},(kn=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)Pe(e,r,t[r],n);return e}(Xn.prototype,{then:function(e,t){var n=Kn(function(e,t){var n,r=ge(e).constructor;return void 0===r||void 0==(n=ge(r)[vn])?t:$e(n)}(this,Xn));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=qn?Vn.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Qn(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),Nn=function(){var e=new kn;this.promise=e,this.resolve=Me(nr,e,1),this.reject=Me(tr,e,1)},Rn.f=Kn=function(e){return e===Xn||e===In?new Nn(e):On(e)}),Be(Be.G+Be.W+Be.F*!Un,{Promise:Xn}),pt(Xn,Fn),function(e){var t=me[e];be&&t&&!t[Bn]&&Ee.f(t,Bn,{configurable:!0,get:function(){return this}})}(Fn),In=pe[Fn],Be(Be.S+Be.F*!Un,Fn,{reject:function(e){var t=Kn(this);return(0,t.reject)(e),t.promise}}),Be(Be.S+Be.F*!Un,Fn,{resolve:function(e){return function(e,t){if(ge(e),ve(t)&&t.constructor===e)return t;var n=Rn.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Be(Be.S+Be.F*!(Un&&Bt(function(e){Xn.all(e).catch(Yn)})),Fn,{all:function(e){var t=this,n=Kn(t),r=n.resolve,i=n.reject,o=zn(function(){var n=[],o=0,a=1;pn(e,!1,function(e){var s=o++,c=!1;n.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=Kn(t),r=n.reject,i=zn(function(){pn(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}});var rr=!1,ir=window.document,or=ir.documentElement,ar=Array.prototype.slice,sr={},cr=null;rr||(or.addEventListener("touchstart",function(e){0===Object.keys(sr).length&&(or.addEventListener("touchmove",r,!0),or.addEventListener("touchend",i,!0),or.addEventListener("touchcancel",o,!0));for(var a=0;a<e.changedTouches.length;a++){var s=e.changedTouches[a],c={};for(var l in s)c[l]=s[l];var u={startTouch:c,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[a]),500)};sr[s.identifier]=u}if(2==Object.keys(sr).length){var d=[];for(var l in sr)d.push(sr[l].element);n(t(d[0],d[1]),"dualtouchstart",{touches:ar.call(e.touches),touchEvent:e})}},!0),rr=!0);var lr=window.lib||(window.lib={});a.prototype.toString=function(){return this.val},a.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(""))},a.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},lr.version=function(e){return new a(e)};var ur=window.lib||(window.lib={}),dr=ur.env||(ur.env={}),hr=window.location.search.replace(/^\?/,"");if(dr.params={},hr)for(var fr=hr.split("&"),mr=0;mr<fr.length;mr++){fr[mr]=fr[mr].split("=");try{dr.params[fr[mr][0]]=decodeURIComponent(fr[mr][1])}catch(e){dr.params[fr[mr][0]]=fr[mr][1]}}var pr,vr=window.lib||(window.lib={}),gr=vr.env||(vr.env={}),wr=window.navigator.userAgent;if(pr=wr.match(/Windows\sPhone\s(?:OS\s)?([\d.]+)/))gr.os={name:"Windows Phone",isWindowsPhone:!0,version:pr[1]};else if(wr.match(/Safari/)&&(pr=wr.match(/Android[\s/]([\d.]+)/)))gr.os={version:pr[1]},wr.match(/Mobile\s+Safari/)?(gr.os.name="Android",gr.os.isAndroid=!0):(gr.os.name="AndroidPad",gr.os.isAndroidPad=!0);else if(pr=wr.match(/(iPhone|iPad|iPod)/)){var br=pr[1];pr=wr.match(/OS ([\d_.]+) like Mac OS X/),gr.os={name:br,isIPhone:"iPhone"===br||"iPod"===br,isIPad:"iPad"===br,isIOS:!0,version:pr&&pr[1].split("_").join(".")||""}}else gr.os={name:"unknown",version:"0.0.0"};vr.version&&(gr.os.version=vr.version(gr.os.version)),(pr=wr.match(/(?:UCWEB|UCBrowser\/)([\d.]+)/))?gr.browser={name:"UC",isUC:!0,version:pr[1]}:(pr=wr.match(/MQQBrowser\/([\d.]+)/))?gr.browser={name:"QQ",isQQ:!0,version:pr[1]}:(pr=wr.match(/Firefox\/([\d.]+)/))?gr.browser={name:"Firefox",isFirefox:!0,version:pr[1]}:(pr=wr.match(/MSIE\s([\d.]+)/))||(pr=wr.match(/IEMobile\/([\d.]+)/))?(gr.browser={version:pr[1]},wr.match(/IEMobile/)?(gr.browser.name="IEMobile",gr.browser.isIEMobile=!0):(gr.browser.name="IE",gr.browser.isIE=!0),wr.match(/Android|iPhone/)&&(gr.browser.isIELikeWebkit=!0)):(pr=wr.match(/(?:Chrome|CriOS)\/([\d.]+)/))?(gr.browser={name:"Chrome",isChrome:!0,version:pr[1]},wr.match(/Version\/[\d+.]+\s*Chrome/)&&(gr.browser.name="Chrome Webview",gr.browser.isWebview=!0)):wr.match(/Safari/)&&(pr=wr.match(/Android[\s/]([\d.]+)/))?gr.browser={name:"Android",isAndroid:!0,version:pr[1]}:wr.match(/iPhone|iPad|iPod/)?wr.match(/Safari/)?(pr=wr.match(/Version\/([\d.]+)/),gr.browser={name:"Safari",isSafari:!0,version:pr&&pr[1]||""}):(pr=wr.match(/OS ([\d_.]+) like Mac OS X/),gr.browser={name:"iOS Webview",isWebview:!0,version:pr&&pr[1].replace(/_/g,".")||""}):gr.browser={name:"unknown",version:"0.0.0"},vr.version&&(gr.browser.version=vr.version(gr.browser.version));var yr=Object.prototype.toString,xr="[object Object]",_r="[object Array]",Sr=/-(\w)/g,Cr=p(function(e){return e.replace(Sr,function(e,t){return t.toUpperCase()})}),Tr=p(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Er=/([^-])([A-Z])/g,kr=p(function(e){return e.replace(Er,"$1-$2").replace(Er,"$1-$2").toLowerCase()}),Or=/webkit-|moz-|o-|ms-/,Nr=!1,Ir=parseInt(750),Ar=!isNaN(Ir)&&Ir>0?Ir:750,jr=document.querySelector('meta[name="weex-viewport"]'),Lr=jr&&parseInt(jr.getAttribute("content"));Lr&&!isNaN(Lr)&&Lr>0&&(Ar=Lr);var Pr=0,$r=0,Mr=0,Rr={dpr:Pr,scale:0,rootValue:0,rem:0,deviceWidth:0,deviceHeight:0},zr=!1;try{document.createElement("div").addEventListener("test",function(e){},{get passive(){zr=!0}})}catch(e){}var Br=["width","height","left","right","top","bottom","border","borderRadius","borderWidth","borderLeft","borderRight","borderTop","borderBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","fontSize","lineHeight","transform","webkitTransform","WebkitTransform","mozTransform","MozTransform","itemSize"],Hr=/webkit|moz/i,Wr={scrollableTypes:["scroller","list","waterfall"],gestureEvents:["panstart","panmove","panend","swipe","longpress","tap"],weexBuiltInComponents:["div","container","text","image","img","cell","a"],bindingStyleNamesForPx2Rem:Object.keys(Br.reduce(function(e,t){return e[t]=1,e[function(e){return kr(e.replace(Hr,function(e){return"-"+e.toLowerCase()+"-"}))}(t)]=1,e},{}))};if(!window._rmInjected){window._rmInjected=!0;var Fr=HTMLElement.prototype.removeChild;HTMLElement.prototype.removeChild=function(e){return e._visible&&O(e,"disappear",null),e._offsetVisible&&O(e,"offsetDisappear",null),Fr.apply(this,arguments)}}var Dr,Vr="data-img-src",Xr="placeholder",qr={},Yr=1,Kr=Wr.bindingStyleNamesForPx2Rem,Ur=null,Gr=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:function(e,t){return function(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}},debounce:f,depress:function(e,t){function n(){r=null}var r;return function(){r||e.apply(),clearTimeout(r),r=setTimeout(n,t)}},throttle:m,loopArray:function(e,t,n){if(c(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:p,camelize:Cr,camelizeKeys:function(e){var t={};for(var n in e)t[Cr(n)]=e[n];return t},capitalize:Tr,hyphenate:kr,hyphenateKeys:function(e){var t={};for(var n in e)t[kr(n)]=e[n];return t},hyphenateStyleKeys:v,camelToKebab:function(e){return e?e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}):""},appendCss:g,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:function(){return zr},createEvent:x,createBubblesEvent:function(e,t,n){var r=new Event(t,{bubbles:!0});if(y(r,n),-1!==window.navigator.userAgent.toLowerCase().indexOf("phantomjs"))return r;try{Object.defineProperty(r,"target",{enumerable:!0,value:e})}catch(t){return y(r,{target:e})}return r},createCustomEvent:function(e,t,n){var r=document.createEvent("CustomEvent");r.initCustomEvent(t,!1,!0,{}),y(r,n);try{Object.defineProperty(r,"target",{enumerable:!0,value:e||null})}catch(t){return y(r,{target:e||null})}return r},dispatchNativeEvent:_,mapFormEvents:function(e){var t={};return["input","change","focus","blur","return"].forEach(function(n){t[n]=function(t){e.$el&&(t.value=e.$el.value,"input"===n&&e.$emit(n,t))}}),t},contains:function(e,t,n){return!(!n||e!==t)||(e.contains?e.contains(t)&&e!==t:!0&e.compareDocumentPosition(t))},insideA:S,getParentScroller:C,getParentScrollerElement:T,hasIntersection:E,isElementVisible:k,getEventHandlers:function(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},watchAppear:I,detectAppear:A,applySrc:L,fireLazyload:$,getThrottleLazyload:M,supportHairlines:R,supportSticky:function(){if(null!==Ur)return Ur;var e=window.document.createElement("div").style;return e.cssText="position:-webkit-sticky;position:sticky;",Ur=-1!==e.position.indexOf("sticky")},getTransformObj:z,getTransformStr:B,addTransform:function(e,t,n){if(t){var r={};n||(r=z(e));for(var i in t){var o=t[i];o&&(r[i]=o)}var a=B(r);e.style.webkitTransform=a,e.style.mozTransform=a,e.style.transform=a}},copyTransform:function(e,t,n){var r;if(n){var i=z(e);if(!i[n])return;var o=z(t);o[n]=i[n],r=B(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=document.createElement("span"),n=document.body;t.style.cssText="color: "+e+"; width: 0px; height: 0px;",n&&n.appendChild(t),e=window.getComputedStyle(t).color+"",n&&n.removeChild(t);var r;return(r=e.match(/#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})/))?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:(r=e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/))?{r:parseInt(r[1]),g:parseInt(r[2]),b:parseInt(r[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 H(t);var n=document.createRange();return n.selectNodeContents?(n.selectNodeContents(e),n.getBoundingClientRect().width):H(t)},styleObject2rem:function(e,t){var n={};for(var r in e){var i=Cr(r);Kr.indexOf(i)>-1?n[i]=W(e[r]+"",t):n[i]=e[r]}return n},px2rem:W,rem2px:function(e,t){return e.replace(/([+-]?\d+(?:.\d*)?)rem/g,function(e,n){return parseFloat(n)*(t||window.weex.config.env.rem)+"px"})},isPlainObject:s,isArray:c,isPrimitive:l,isDef: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(e,{platform:"Web",weexVersion:"1.0.11",userAgent:navigator.userAgent,appName:n,appVersion:r,osName:i,osVersion:o,deviceModel:t.os.name||null})}(function(e){if(void 0===e&&(e=Ar),!Nr){Nr=!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.");Pr=Rr.dpr=window.devicePixelRatio,$r=t.documentElement.clientWidth,Mr=t.documentElement.clientHeight,w($r,e),b(e),window.addEventListener("resize",function(){Mr=t.documentElement.clientHeight;var e=window.weex&&window.weex.config.env;Rr.deviceHeight=e.deviceHeight=Mr*Pr}),d(Rr,{scale:$r/e,rootValue:e/10,deviceWidth:$r*Pr,deviceHeight:Mr*Pr})}return Rr}(),window.lib.env);var Qr={},Zr=[],Jr={__vue__:null,utils:Gr,config:{env:window.WXEnvironment,bundleUrl:location.href},_components:{},_modules:Qr,_meta:{mounted:{},updated:{},destroyed:{},requiredModules:{},apiCalled:{},perf:{}},document:{body:{}},requireModule:function(e){var t=Jr._meta.requiredModules;return t[e]||(t[e]=0),t[e]++,Qr[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 void 0!==this._components[r]||Wr.weexBuiltInComponents.indexOf(r)>=0;case"module":var o=Qr[r];return o&&i?!!o[i]:!!o}},supports:function(){return this.support.apply(this,arguments)},isRegisteredModule:function(e,t){var n=t?e+"."+t:e;return this.support("@module/"+n)},isRegisteredComponent:function(e){return this.support("@component/"+e)},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){if(Qr[e]||(Qr[e]={}),n&&"assignment"===n.registerType)Qr[e]=t;else{var r=function(n){t.hasOwnProperty(n)&&(Qr[e][n]=function(){var r=Jr._meta.apiCalled;r[e]||(r[e]={});var i=r[e];return i[n]||(i[n]=0),i[n]++,t[n].apply(Jr,arguments)})};for(var i in t)r(i)}},registerComponent:function(e,t){if(!this.__vue__)return console.log("[Vue Render] Vue is not found. Please import Vue.js before register a component.");if(this._components[e]=0,t._css){g(t._css.replace(/\b[+-]?[\d.]+rem;?\b/g,function(e){return 75*parseFloat(e)*Jr.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(Jr.document.body,"children",{get:function(){return Zr}}),["on","once","off","emit"].forEach(function(e){Jr[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}});var ei={text:{transform:function(e){var t=e.lines;return t>0?Object.assign(e,{overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:t}):e}}},ti=function(e){return ei[e]},ni=Wr.weexBuiltInComponents,ri={appear:"appear",disappear:"disappear",offsetAppear:"offset-appear",offsetDisappear:"offset-disappear"},ii={figure:["img","image","figure"],p:["text","p"],div:["container","div"],section:["cell"]},oi=Object.keys(ii).reduce(function(e,t){return ii[t].forEach(function(n){e[n]=t}),e},{}),ai={p:"text",figure:"image",section:"cell"},si={div:{"weex-ct":!0,"weex-div":!0},image:{"weex-el":!0,"weex-image":!0},text:{"weex-el":!0,"weex-text":!0},cell:{"weex-ct":!0,"weex-cell":!0},a:{"weex-ct":!0,"weex-a":!0}},ci=Object.freeze({extractComponentStyle:function(e){return D(e)},getComponentInlineStyle:D,trimTextVNodes:function(e){return c(e)?e.filter(function(e){return!!e.tag}):e},transformRender:V,transformTag:X,transformData:K,mapNativeEvents:function(e,t){var n={},r=function(e){n[e]=function(n){_(n.target,t[e])}};for(var i in t)r(i);return n}}),li=Wr.scrollableTypes,ui=!1,di=0,hi=!1,fi=f(function(){I(hi,!0)},50),mi={beforeCreate:function(){ui||(ui=!0,["scroll","resize"].forEach(function(e){window.addEventListener(e,M(25,document.body))}),document.body.addEventListener("scroll",M(25,document.body)))},updated:function(){var e=this.$el;if(e&&1===e.nodeType){this._rootId&&e.className.indexOf("weex-root")<=-1&&(e.classList.add("weex-root"),e.classList.add("weex-ct"),e.setAttribute("data-wx-root-id",this._rootId));var t=this.$options&&this.$options._componentTag,n=weex._meta.updated;n[t]||(n[t]=0),n[t]++,fi(),this._fireLazyload()}},mounted:function(){var e=this.$options&&this.$options._componentTag,t=this.$el;if(t&&1===t.nodeType){void 0!==weex._components[e]&&weex._components[e]++;var n=weex._meta.mounted;if(n[e]||(n[e]=0),n[e]++,function(e,t){if(li.indexOf(e)>-1){var n=t.scrollDirection;n&&"horizontal"===n||(hi=t,I(t,!0))}}(e,this),this===this.$root){var r="wx-root-"+di++;if(weex._root||(weex._root=