miniapp-framework
Advanced tools
Comparing version 0.1.60 to 0.1.61
@@ -1,1 +0,1 @@ | ||
/*! miniapp framework version: 0.1.60 bulid time: Fri Nov 16 2018 17:55:02 GMT+0800 (CST) */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=129)}({1:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"d",function(){return u}),n.d(t,"b",function(){return l});var o=n(4),r={all:-1,debug:0,log:1,info:1,warn:2,error:3,none:4},i="error";try{Object(o.a)().__set_log_level__=function(e){i=e}}catch(e){u("mount __set_log_level__ at global object err",e)}function a(){if(r[i]<=r.log){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Log]"].concat(n))}}function c(){if(r[i]<=r.debug){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Debug]"].concat(n))}}function u(){if(r[i]<=r.warn){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[WARN]"].concat(n))}}function l(){if(r[i]<=r.error){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[ERROR]"].concat(n))}}},10:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={taobao:{"--color-primary":"#ff5500","--color-warn":"#fb9025","--button-primary-background-color-from":"#ff8800","--button-primary-background-color-to":"#ff5500","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"#fbca2f","--button-warn-background-color-to":"#fb9025","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#ff5500","--button-border-radius":"40px"},alipay:{"--color-primary":"#2E7ADC","--color-warn":"red","--button-primary-background-color-from":"#2E7ADC","--button-primary-background-color-to":"#2E7ADC","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"red","--button-warn-background-color-to":"red","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#2E7ADC","--button-border-radius":"10px"}};function r(e,t){var n=e&&e.themeName,r=o[n];r||(r=o[n="taobao"]),e&&e.customVars&&(r=Object.assign({},r,e.customVars));var i=t.document.documentElement;t.CSS&&t.CSS.supports&&t.CSS.supports("--a",0)?function(e,t){Object.keys(e||{}).forEach(function(n){var o=e[n];t.style.setProperty(n,o)})}(r,i):new t.MutationObserver(function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var c=i.value;if("childList"===c.type){var u=c.addedNodes[0];u&&u.shadowRoot&&function(){var e=u.shadowRoot.querySelector("style"),t=e.textContent;Object.keys(r).forEach(function(e){var n=r[e];t=t.replace(new RegExp("var\\(".concat(e,"[^\\)]*\\)"),"g"),n)}),e.textContent=t}()}}}catch(e){n=!0,o=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw o}}}).observe(t.document.body,{childList:!0,subtree:!0})}},11:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var i,a,c=0,u=[],l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.current=[],this.elements=t,this.options={container:window,wait:100,x:0,y:0,cls:"appear",once:!1,onReset:function(){},onAppear:function(){},onDisappear:function(){}},this.container=null,this.appearWatchElements=null,this.initConfig.apply(this,arguments)}return r(e,null,[{key:"createEvent",value:function(){i=document.createEvent("HTMLEvents"),a=document.createEvent("HTMLEvents"),i.initEvent("appear",!1,!0),a.initEvent("disappear",!1,!0)}}]),r(e,[{key:"initConfig",value:function(e){this.extend(this.options,e||(e={})),this.appearWatchElements=this.appearWatchElements||this.getElements(),this.bindEvent()}},{key:"extend",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},{key:"inViewport",value:function(e,t,n){var o=e.getBoundingClientRect(),r=o.top,i=o.right,a=o.bottom,u=o.left;return u=t.right>u&&t.left<i,r=t.bottom>r-c&&t.top<a,u&&r}},{key:"getElements",value:function(e){var t,n=this.options.container;return this.container=n,t=u||[],t=[].slice.call(t,null)}},{key:"check",value:function(e){var t=this;s(function(){t.calculate(e)})}},{key:"calculate",value:function(e){var t=this,n=this.container,o=e||this.getElements(),r=d(window,{x:this.options.x,y:this.options.y}),c=this.options.once;arguments[0];n&&o&&o.length>0&&[].forEach.call(o,function(e,n){if(e){if(e.isOnce&&e._hasAppear)return u.splice(n,1),void o.splice(n,1);t.checkEveryDom(e,r,c,i,a,"normal",n)}})}},{key:"checkEveryDom",value:function(e,t,n,o,r,i,a){var c=d(e),u=this.getDirection(e._eleOffset,c),l=this.inViewport(e,t,i),s=e._appear,f=e._hasAppear,p=e._hasDisAppear;e._eleOffset=c,o.direction=u,r.direction=u,l&&!s?(n&&!f||!n)&&(e.dispatchEvent(o),e._hasAppear=!0,e._appear=!0):!l&&s&&(n&&!p||!n)&&(e.dispatchEvent(r),e._hasDisAppear=!0,e._appear=!1)}},{key:"reset",value:function(e){return this.initConfig(e),this.appearWatchElements.forEach(function(e){delete e._hasAppear,delete e._hasDisAppear,delete e._appear}),this}},{key:"bindEvent",value:function(){var e=this,t=function(e,t){var n,o,r,i=null,a=0,c=function(){a=Date.now(),i=null,r=e.apply(n,o)};return function(){var u=Date.now(),l=t-(u-a);return n=this,o=arguments,l<=0?(clearTimeout(i),i=null,a=u,r=e.apply(n,o)):i||(i=setTimeout(c,l)),r}}(function(){e.check()},this.options.wait);this.__handle&&(this.container.removeEventListener("scroll",this.__handle,!1,!0),this.__handle=null),this.__handle=t,this.container.addEventListener("scroll",t,!1,!0)}},{key:"getDirection",value:function(e,t){var n="none",o=e.left-t.left,r=e.top-t.top;return 0==r&&(n=0!=o?o>0?"left":"right":"none"),0==o&&(n=0!=r?r>0?"up":"down":"none"),n}}]),e}(),s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,1/60*1e3)};function f(e){e.offsetTop&&"number"==typeof e.offsetTop&&(c=e.offsetTop)}function d(e,t){var n,o,r,i;if(e){if(t||(t={x:0,y:0}),e===window)i=0,o=(n=0)+e.innerWidth,r=i+e.innerHeight;else if(null===e.parentNode)n=0,i=0,o=0,r=0;else{var a=e.getBoundingClientRect(),c=a.top,u=a.right,l=a.bottom;n=a.left,i=c,o=u,r=l}return{left:n,top:i,right:o+t.x,bottom:r+t.y}}}var p,v,y,h=l,m={root:null,rootMargin:"0px",threshold:0};function g(e){e.forEach(function(e){var t=e.target;e.boundingClientRect;e.intersectionRatio>0?(t.dataset.appeared=!0,t.dispatchEvent(p)):t.dataset.appeared&&(t.dataset.appeared=!1,t.dispatchEvent(v))})}function b(){p=document.createEvent("HTMLEvents"),v=document.createEvent("HTMLEvents"),p.initEvent("appear",!1,!0),v.initEvent("disappear",!1,!0),y=new IntersectionObserver(g,m)}var w=null,_="function"==typeof IntersectionObserver,k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.prototype.addEventListener,o=t.prototype.removeEventListener;t.prototype.addEventListener=function(t,o,r,i){var a=t&&String(t).toLowerCase(),c="appear"===a||"disappear"===a;c&&(_?function(e){e===document&&(e=document.documentElement),y.observe(e)}(this):function(e){if(-1===u.indexOf(e)&&!e.appended){var t=Boolean(e.getAttribute("isonce"))||Boolean(e.getAttribute("data-once"));e.isOnce=t,e.appended=!0,u.push(e),e._eleOffset=d(e)}}(this)),_||(w&&c&&w.check([this]),"scroll"!==a||i||(w=new h({container:this}),e.push(w))),n.call(this,t,o,r)},t.prototype.removeEventListener=function(t,n,r,i){var a=this,c=t&&String(t).toLowerCase();_||"scroll"!==c||i||e.forEach(function(t,n){t.__handle&&t.container===a&&(a.removeEventListener("scroll",t.__handle,!1,!0),t.__handle=null,t.appearWatchElements=[],t.container=null,e.splice(n,1))}),o.call(this,t,n,r)}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(!_){var t=[];return h.createEvent(),k(t,e.Node),w=new h({container:e}),t.push(w),{config:f}}b(),k([],e.Node)}},129:function(e,t,n){"use strict";n.r(t);var o=n(36),r=n.n(o),i=n(8),a=n.n(i),c="undefined"==typeof __sfc__?null:void 0!==__sfc__.getRawJSON?JSON.parse(__sfc__.getRawJSON()):__sfc__;function u(e){var t=location.href,n=new RegExp("".concat(e,"=([^&]+)")).exec(t);return n?decodeURIComponent(n[1]):"$unknown"}var l=n(37),s=n.n(l),f=document.documentElement.style,d=document.documentElement.clientWidth,p="ontouchstart"in window||"onmsgesturechange"in window;var v=n(1),y=n(5),h=n.n(y),m=n(9),g="https://g.alicdn.com/miniapp/miniapp-console/rax-console.js?r="+Date.now(),b=null;var w=[],_=["info","log","error","debug","warn"];function k(e){var t=(e||{}).payload,n=void 0===t?{}:t;"switch"!==n.type?b&&b.instance?-1!==_.indexOf(n.type)&&b&&b.instance&&b.instance.addMessage({source:"console-api",type:"log",level:n.type,parameters:n.args.map(function(e){return Object(m.a)(e)})}):w.push(e):!0===n.value?function(){if(b)return h.a.resolve(b);var e=document.createElement("script");return new h.a(function(t,n){e.onload=function(){b={load:window.RaxConsole.default,unload:window.RaxConsole.unload},t(b)},e.charset="utf-8",e.onerror=n,e.src=g,document.head.appendChild(e)})}().then(function(e){e.instance=e.load(),w.forEach(k),w=[]}):!1===n.value&&(b.unload(),b.instance=null)}var S=1,E=2,M=0;var x=n(11),O=n(10);Object(x.a)(window);var A=r()({}),j=c?c.options.pageName:u("pageName"),$=c?c.options.clientId:u("clientId"),C=function(){var e=location.search||"";return"?"===e[0]&&(e=e.slice(1)),a.a.parse(e)}(),T={inited:!1};A.$on("[[VideoContextAction]]",function(e){var t=e.data,n=t.action,o=t.id,r=t.args,i=document.getElementById(o);null!==i&&i[n].apply(i,r)}),A.$on("[[ModuleAPIEvent]]",function(e){var t=e.data,n=t.type,o=t.data;switch(n){case"pageScrollTo":var r=o.behavior,i=o.scrollTop;window.scrollTo({top:i||0,behavior:r||"auto"})}}),A.$on("r#",function(e){T.inited||(!function(e){p&&(document.documentElement.style.cursor="pointer"),f.fontSize=d/750*100+"px";var t={postMessage:function(t){e.$emit("r2w",{data:t},"AppWorker")}};e.$on("w2r",function(e){"function"==typeof t.onmessage&&t.onmessage(e.data)}),s()({worker:t,tagNamePrefix:"a-"})}(A),T.inited=!0)}),A.$on("console",function(e){k(e.data)}),A.$call("miniApp.getConfig",{},function(e){var t=e?e.themeConfig:{};Object(O.a)(t,window)},function(e){Object(v.b)("miniApp.getConfig on err",e)}),window.__renderer_to_worker__=function(e){A.$emit(e.type,{payload:e,pageName:j},"AppWorker")},A.$emit("r$",{clientId:$,pageName:j,pageQuery:C},"AppWorker"),C.remoteInspectUrl&&function(e){if(!(M>=S)){M=S;var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){M=E},document.body.appendChild(t)}}(C.remoteInspectUrl)},13:function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var u,l=[],s=!1,f=-1;function d(){s&&u&&(s=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!s){var e=c(d);s=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,s=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function y(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new v(e,t)),1!==l.length||s||c(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=y,r.addListener=y,r.once=y,r.off=y,r.removeListener=y,r.removeAllListeners=y,r.emit=y,r.prependListener=y,r.prependOnceListener=y,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},14:function(e,t,n){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var c=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var s=0;s<l;++s){var f,d,p,v,y=e[s].replace(c,"%20"),h=y.indexOf(n);h>=0?(f=y.substr(0,h),d=y.substr(h+1)):(f=y,d=""),p=decodeURIComponent(f),v=decodeURIComponent(d),o(a,p)?r(a[p])?a[p].push(v):a[p]=[a[p],v]:a[p]=v}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},15:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){switch(o(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===o(e)?a(c(e),function(o){var c=encodeURIComponent(r(o))+n;return i(e[o])?a(e[o],function(e){return c+encodeURIComponent(r(e))}).join(t):c+encodeURIComponent(r(e[o]))}).join(t):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},2:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},36:function(e,t,n){(function(o,r){var i,a;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}console.log("Start windmill renderer (0.4.1) framework. Build at 2018-09-18 16:04"),function(o,r){"object"===c(t)&&void 0!==e?e.exports=r():void 0===(a="function"==typeof(i=r)?i.call(t,n,t,e):i)||(e.exports=a)}(0,function(){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{writable:!0,enumerable:!1,configurable:!0,value:function(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),r=1;r<arguments.length;r++){var i=n[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])}return o}});var e=function(){var e=1e5;return function(){var t=String(e);return e+=1,t}}();function t(e,t,n){void 0===n&&(n=!0);var r=void 0!==o?o:"undefined"!=typeof self?self:new Function("return this")();try{Object.defineProperty(r,e,{value:t,configurable:!0,enumerable:!0,writable:!n})}catch(n){r[e]=t}}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function i(e){return"Object"===n(e)}function a(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t]}var u=function(){},l={},s=["Android","iOS"];var f=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};function d(e,t){return"object"===(void 0===r?"undefined":c(r))&&r&&r.env&&"test"===r.env.PURPOSE?"function"==typeof __test_logger__&&(u=__test_logger__,!0):(l.debugMode,!0)}function p(e,t){d()&&u("debug",e)}function v(e,t){d()&&u("warn",e)}function y(e,t){d()&&u("error",e)}function h(e){if(y(e),"test"!==r.env.PURPOSE)throw new Error(e)}u=function(e,t){var n="["+f(e)+"][wml-r] "+t;return l.isWeex&&s.indexOf(l.platform)>-1?console.log(n):console.error(n)};var m={network:["request","uploadFile"],miniApp:["setAppShareInfo","hideLauncherLoading","setWebViewTop","setWebViewBackgroundImage"],mtop:["request"],storage:["length","setItem","getItem","removeItem"],memoryStorage:["setItem","getItem"],tabBar:["show","hide"],navigator:["push","pop","openMessagePage","reloadPage","getBackStack","popToHome","navigateTo","redirectTo","switchTab"],user:["login","logout","info"],modal:["alert","confirm","toast","showLoading","hideLoading"],navigatorBar:["show","hide","setTitle","setRightItem","setStyle","setDrawer","setActionSheet","hasIndexBadge","scaleIndexBadge","resetIndexBadge","getHeight","openDrawer","isDrawerOpened","closeDrawer","setLeftItem","showMenu","hideMenu","getStatusBarHeight","setNavigationBar"],clipboard:["writeText","readText"],picker:["pick","pickDate","pickTime","chooseCity"],webSocket:["webSocket","send","close","onOpen","onMessage","onClose","onError"],calendar:["addEvent","checkEvent","removeEvent"],connection:["getType","getDownlinkMax","onChange"],screen:["setAlwaysOn","setBrightness","getScreenBrightness"],broadcast:["createChannel","postMessage","onMessage","close"],share:["doShare"],cookie:["read","write","getAllObjects"],audio:["load","play","pause","stop","setVolume","canPlayType"],wopc:["authLogin","checkAuthSession","doAuth","getSessionKey","setSessionKey"],WopcMtopPlugin:["request"],device:["onShake","vibrate"],keyboard:["hideKeyboard"],contact:["choosePhoneContact"],location:["getLocation"],alipay:["tradePay"],userTrack:["commit","commitut","commitEvent","customAdvance","pageAppear","pageDisappear","skipPage","updatePageUtparam","updateNextPageUtparam"],"nuvajs-exec":["exec"],aluWVJSBridge:["userIsLogin","refreshAlipayCookie"],TBDeviceInfo:["getUtdid"],actionSheet:["showActionSheet"],image:["chooseImage","previewImage","compressImage","getImageInfo","saveImage"],media:["startVoice","stopVoice"],audioRecord:["startRecord","stopRecord","cancelRecord"],audioPlayer:["playVoice","pauseVoice","stopVoice"],file:["saveFile","getFileInfo","getFileList","removeFile"],video:["chooseVideo","getVideoInfo"],phone:["makePhoneCall"],compass:["startCompass","stopCompass","onCompassChange"],tbsecurity:["secureToken"]};var g="__WINDMILL_MODULE_GETTER__",b=function(){};b.prototype.$on=function(e,t){return void 0===t&&(t=a),p('$on "'+e+'"'),!e&&h("invalid event name "+e+" for windmill.$on."),t===a&&h("bind event "+e+" with no callback through windmill.$on."),this.bridge.onReceiveMessage({data:{type:e},origin:this.label,type:"Event"},t)},b.prototype.$once=function(e,t){return void 0===t&&(t=a),p('$once "'+e+'"'),!e&&h("invalid event name "+e+" for windmill.$once."),t===a&&h("bind event "+e+" with no callback through windmill.$once."),this.bridge.onReceiveMessage({data:{type:e,once:!0},origin:this.label,type:"Event"},t)},b.prototype.$off=function(e,t){return p('$off "'+e+'"'),!e&&h("invalid event name "+e+" for windmill.$off."),this.bridge.unbindEventListener("Event."+e,t)},b.prototype.$cycle=function(e,t){return void 0===t&&(t=a),p('$cycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||h("invalid lifecycle name "+e+" for windmill.$cycle."),t===a&&h("hook lifecycle "+e+" with no callback function through windmill.$cycle."),"AppWorker"!==this.label&&/^app:/.test(e)&&h("Shouldn't bind lifecycle hook for app in a page client."),this.bridge.onReceiveMessage({type:"Lifecycle",origin:this.label,data:{type:e}},t)},b.prototype.$decycle=function(e,t){return p('$decycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||h("invalid lifecycle name "+e+" for windmill.$decycle."),this.bridge.unbindEventListener("Lifecycle."+e,t)},b.prototype.$emit=function(e,t,n){return void 0===t&&(t={}),p('$emit("'+e+'")'),!e&&h("invalid event name "+e+" for windmill.$emit."),n&&n!==this.label?this.bridge.postMessage({data:{type:e,data:t},origin:this.label,target:n,type:"Event"}):this.bridge.emitEvent(""+e,t)},b.prototype.$callAsync=function(e,t){var n=this;return void 0===t&&(t={}),p('$callAsync "'+e+'"'),e||h("invalid method name "+e+" for windmill.$callAsync."),new Promise(function(o,r){n.bridge.dispatchMessage({type:"ModuleCall",origin:n.label,target:"AppWorker",data:{method:e,params:t}},o,r,!1)})},b.prototype.$call=function(e,t,n,o){return void 0===t&&(t={}),void 0===n&&(n=a),void 0===o&&(o=a),p('$call "'+e+'", params: '+JSON.stringify(t)),e||h("invalid method name "+e+" for windmill.$call."),this.bridge.dispatchMessage({type:"ModuleCall",origin:this.label,target:"AppWorker",data:{method:e,params:t}},n,o,!0)},b.prototype.$registerModules=function(e){!function(e,t){if(void 0===t&&(t=!1),i(e)){var n=function(n){var o=e[n];m[n]?t||v('The "'+n+'" module has already been registered.It would be overridden.'):m[n]=[];var r=m[n];Array.isArray(o)?o.forEach(function(e){-1===r.indexOf(e)?r.push(e):t||v('The "'+e+'" of the "'+n+'" module has already been registered.')}):y('Invalid parameter type! The method list of the "'+n+'" module should be an Array.')};for(var o in e)n(o)}else y("Invalid parameter type! The module definition is not a plain object.")}(e,!0)},b.prototype.$getAvailableModules=function(){return function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){}return t}(m)};var w="[[EVENT_MAP]]";function _(e,t){var n=e[w];return Array.isArray(n[t])||(n[t]=[]),n[t]}var k,S=function(){p("Create new EventEmitter."),Object.defineProperty(this,w,{configurable:!1,enumerable:!1,writable:!1,value:{}})};function E(e){var t;try{t=JSON.stringify(e)}catch(n){t=e}h("failed to postMessage: "+t)}function M(e,t,n,o,r,i){var a=t+"."+n;return e.WindVane?e.WindVane.call(t,n,o,r,i):h("should have WindVane in global context"+(a?" to call "+a:"")+".")}S.prototype.on=function(e,t){return p('EventEmitter: on("'+e+'")'),_(this,e).push({listener:t,once:!1,callCount:0}),this},S.prototype.once=function(e,t){return p('EventEmitter: once("'+e+'")'),_(this,e).push({listener:t,once:!0,callCount:0}),this},S.prototype.off=function(e,t){p('EventEmitter: off("'+e+'"'+(t?", listener":"")+")");var n=this[w];if(t){var o=n[e];if(Array.isArray(o)){var r=o.findIndex(function(e){return e.listener===t});-1!==r&&o.splice(r,1)}}else delete n[e];return this},S.prototype.emit=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];p('EventEmitter: emit("'+e+'", '+JSON.stringify(t)+")");var o=this[w],r=o[e];return Array.isArray(r)&&(o[e]=r.filter(function(n){try{n.listener.apply(null,t),n.callCount+=1}catch(t){return y('Failed to emit "'+e+'" event.'),y(t.toString()),!0}return!n.once})),this};var x=!1;var O=function(){this._messages=[]};O.prototype.postMessage=function(e){p("cache message in lazyMsgModule. "+JSON.stringify(e)),this._messages.push(e)},O.prototype.replaceWith=function(e){A=!1,this._messageModule=e,this._flush()},O.prototype._flush=function(){var e=this;this._messages.forEach(function(t){return e._messageModule.postMessage(t)})};var A,j,$=new O;function C(e,t){var n=e?function(e){return e.requireModule("@weex/windmill")||e.requireModule("windmill")}(e):function(){if(!k){var e="undefined"!=typeof window?window:o;k={postMessage:function(t){return M(e,"Windmill","postMessage",t,function(){},E)},onmessage:function(t){if(console.debug("Set onMessage for webview."),!x)return x=!0,M(e,"Windmill","onMessage",{},t,E)}}}return k}();if(!n)return h("can't find message module ("+(e?"windmill module":"message module in webview")+")."),A=!0,$;if("function"==typeof t){p('Set the "onmessage" method to the bridge through callback.');try{n.onmessage(t)}catch(e){y('Failed to set the "onmessage" method to the bridge through callback.'),y(e.toString())}}return A&&$.replaceWith(n),n}function T(e){var t=e.match(/([^@]+)(@\S+)/);return t&&t[1]||e}var P=function(e,t){var o=this;void 0===t&&(t={}),p("Create a new RendererBridge."),j=t.isWeex,this._emitter=new S,p("Register onmessage api for "+(j?"Weex windmill module":"webview")+"."),j&&(this._weex=e),this._onMessage=function(e){if(p("Receive message from the worker. (message: "+JSON.stringify(e)+")"),!i(e)&&(y("The parameter of onmessage should be a plain object! Not "+n(e)),"string"==typeof e))try{e=JSON.parse(e)}catch(e){return void y("Failed to parse the message string. "+e.toString())}var t=e.type,r=e.data;void 0===r&&(r={});var a=e.origin,c=e.callbackId;switch(t){case"Callback":o._emitter.emit("callback@AppWorker:"+c,r);break;case"Event":var u=T(r.type);o._emitter.emit(t+"."+u,Object.assign({origin:a},r,{type:u}));break;case"Lifecycle":o._emitter.emit(t+"."+r.lifecycle,r.options);break;case"SetData":o._emitter.emit("Event.setdata",r);break;default:h('Unknown message type received from worker: "'+t+'"')}},C(e,this._onMessage)};P.prototype.dispatchMessage=function(e,t,n,o){p("Dispatch message to worker. (message: "+JSON.stringify(e)+")"),e.callbackId=this._genCallbackId(function(o){return o.status&&"SUCCESS"===o.status?t(o):(o.status,y("call API "+e.data.method+" from renderer failed: "+o.status+", "+o.error),n(o))},{keepAlive:o});try{e.keepAlive=!0,this.postMessage(e)}catch(e){n(e)}},P.prototype.postMessage=function(e){try{p("Call postMessage to worker. (message: "+JSON.stringify(e)+")"),C(this._weex,this._onMessage).postMessage(e)}catch(e){h(e.message||e.toString()||"postMessage failed.")}},P.prototype._genCallbackId=function(t,n){var o=n.keepAlive,r=n.callbackId,i=r||e();return this._emitter[o?"on":"once"]("callback@AppWorker:"+i,t),i},P.prototype.onReceiveMessage=function(e,t){var n=e.type,o=e.data;void 0===o&&(o={});var r=o.type;"Event"===n&&(r=T(r),o.type=r);var i=o.once?"once":"on";this._emitter[i](n+"."+r,t)},P.prototype.unbindEventListener=function(e,t){this._emitter.off(T(e),t)},P.prototype.emitEvent=function(e,t){void 0===t&&(t={});var n=T(e);this._emitter.emit("Event."+n,{type:n,data:t})};var N=function(e){function t(t,n){void 0===n&&(n={}),e.call(this),this._name=n.pageName||"",this.label=n.clientId||"",t&&i(t.config)&&(this._name=t.config.pageName||"",this.label=t.config.clientId||"",t.config.availableModules?(this.$registerModules(t.config.availableModules),this._gotAvailableModulesFromWeex=!0):v("No available modules in weex options.")),p("Create a new RendererRuntime. ("+this.label+", "+this._name+")"),this.bridge=new P(t,n),this._init()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._init=function(){var e=this;this.bridge.onReceiveMessage({origin:"AppWorker",target:this.label,type:"Event",data:{type:"registerModules"}},function(t){t&&"registerModules"===t.type&&(p("Register available modules in renderer. ("+Object.keys(t.data)+")"),e.$registerModules(t.data))})},t.prototype.ready=function(){this.bridge.dispatchMessage({origin:this.label,target:"AppWorker",type:"Event",data:{type:"[[RendererRuntimeReady]]",data:{label:this.label,handshake:!this._gotAvailableModulesFromWeex}}},a,a)},t.prototype.$getCurrentActivePageId=function(){return this.label},t}(b),I=["$on","$once","$off","$emit","$cycle","$decycle","$call","$callAsync","$navTo","$getAvailableModules","$getCurrentActivePageId"];return function(e,n){var o=!(!e||!e.requireModule);!function(e){if(!e||!e.platform)return console.error("set logger environment failed.");Object.assign(l,e)}({platform:o&&e.config.env.platform,debugMode:o&&e.config.env.debugMode,isWeex:o}),p("Setup Windmill renderer framework."),e&&!e.requireModule&&(n=e,e=void 0),n||(n={}),(n=Object.assign({},n)).isWeex=o,p("Instantiate renderer in "+(o?"Weex container":"WindVane container")+".");var r=new N(e,n),i=function(e,t){var n={};return t.forEach(function(t){"function"==typeof e[t]&&(n[t]=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return e[t].apply(e,n)})}),n}(r,I);return p("Prepare runtime APIs: "+JSON.stringify(I)),n.exposeModuleGetter&&t(g,function(e,t){var n=t||function(){for(var t,n=[],o=arguments.length;o--;)n[o]=arguments[o];return(t=e()).$call.apply(t,n)};return function(e){if(!e)return p("Require a universal module proxy."),{call:n};var t=m[e];if(Array.isArray(t)){p('Require the "'+e+'" module.');var o={};return t.forEach(function(t){o[t]=function(){for(var o=[],r=arguments.length;r--;)o[r]=arguments[r];return n.apply(void 0,[e+"."+t].concat(o))}}),o}v('Require unknown module "'+e+"\".It may not exist or haven't been registered.")}}(function(){return i})),r.ready(),i}})}).call(this,n(2),n(13))},37:function(e,t,n){var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){"object"===r(t)&&void 0!==e?e.exports=i():void 0===(o=function(e,t,n){n.exports=i()}.call(t,n,t,e))||(e.exports=o)}(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===r(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r[e]||(r[e]=e.replace(o,function(e){return e.slice(1).toUpperCase()}))};var o=/-[a-z]/g,r={};e.exports=t.default},,function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sharedNodeMap=t.default=void 0;var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_map",new Map)}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"get",value:function(e){return e?"BODY"===e.nodeName?document.body:this._map.get(e.$$id):null}},{key:"set",value:function(e,t){return t.$$id=e.$$id,this._map.set(e.$$id,t)}},{key:"delete",value:function(e){return e?this._map.delete(e.$$id):null}}]),e}();t.default=r;var i=new r;t.sharedNodeMap=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStyle=function(e,t){var n={};for(var o in t){var r=t[o];i.shouldPrefix(o)?i[o](r,n):n[o]=r}for(var a in n){var c=n[a];if(Array.isArray(c))for(var u=0;u<c.length;u++)e.style[a]=c[u];else e.style[a]=c}};var o={flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0,lineClamp:!0,textSizeAdjust:!0,textDecorationLine:!0,textDecorationColor:!0,textDecorationStyle:!0,textDecorationSkip:!0,writingMode:!0,animatin:!0,animationName:!0,animationDuration:!0,animationTimingFunction:!0,animationDelay:!0,animationIterationCount:!0,animationDirection:!0,animationFillMode:!0,animationPlayState:!0,transform:!0,transformOrigin:!0,transformStyle:!0,perspective:!0,perspectiveOrigin:!0,backfaceVisibility:!0,appearance:!0,userSelect:!0,columns:!0,columnWidth:!0,columnCount:!0,columnGap:!0,columnRule:!0,columnRuleWidth:!0,columnRuleStyle:!0,columnRuleColor:!0,columnSpan:!0,columnFill:!0,columnBreakBefore:!0,columnBreakAfter:!0,columnBreakInside:!0},r={position:"sticky",display:"flex"},i={shouldPrefix:function(e){return o[e]||r[e]}};Object.keys(o).forEach(function(e){var t="webkit"+e[0].toUpperCase()+e.slice(1);i[e]=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o[t]=n,o[e]=n,o}}),Object.keys(r).forEach(function(e){var t=r[e];i[e]=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o[e]=n===t?["-webkit-"+t,t]:n,o}})},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.setPostMessage=function(e){s=e},t.addEvent=function(e,t){if(c[t])f(e,t);else{var n=l[t];n?l[t]++:(l[t]=1,document.addEventListener(t,p,a))}},t.removeEvent=function(e,t){c[t]?d(e,t):(l[t]--,0===l[t]&&document.removeEventListener(t,p))},t.addNoBubblesEventListener=f,t.removeNoBubblesEventListener=d,t.eventProxyHandler=p;var i,a=!n(30).passive||{capture:!0,passive:!0},c={load:!0,error:!0,unload:!0,abort:!0,loadstart:!0,progress:!0,loadend:!0,blur:!0,focus:!0,scroll:!0,appear:!0,disappear:!0,invalid:!0},u=["touchstart","touchmove","touchend","touchcancel"],l={},s=null;function f(e,t){function n(n){var o={$$id:e.$$id};s({type:"event",event:{type:t,target:o,currentTarget:o,detail:n.detail}})}e["__$".concat(t,"_listener__")]=n,e.addEventListener(t,n)}function d(e,t){var n=e["__$".concat(t,"_listener__")];n&&(e.removeEventListener(t,n),e["__$".concat(t,"_listener__")]=null)}function p(e){if("click"===e.type&&i)return!1;var t={type:e.type};for(var n in e.target&&(t.target=e.target.$$id),"scroll"===e.type&&e.target===document&&(t.target=document.body.$$id,t.scrollTop=document.documentElement.scrollTop||document.body.scrollTop),e.detail&&(t.detail=e.detail),e){var r=e[n];"object"===o(r)||"function"==typeof r||n===n.toUpperCase()||t.hasOwnProperty(n)||(t[n]=r)}if(-1!==u.indexOf(e.type)&&(t.touches=y(e.touches),t.changedTouches=y(e.changedTouches)),s({type:"event",event:t}),"touchstart"===e.type)i=v(e);else if("touchend"===e.type&&i){var a=v(e);if(a)Math.sqrt(Math.pow(a.pageX-i.pageX,2)+Math.pow(a.pageY-i.pageY,2))<10&&(t.type="click",s({type:"event",event:t}))}}function v(e){var t=e.changedTouches&&e.changedTouches[0]||e.touches&&e.touches[0]||e;return t&&{pageX:t.pageX,pageY:t.pageY}}function y(e){for(var t=[],n=0,o=e.length;n<o;n++){var r=e[n],i=r.clientX,a=r.clientY,c=r.pageX,u=r.pageY,l=r.identifier,s=r.target;t.push({clientX:i,clientY:a,pageX:c,pageY:u,identifier:l,$$id:s.$$id})}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInvalidAttr=l,t.setAttribute=function(e,t,n){if(l(t))return;if(t===c)return void(0,o.setStyle)(e,n);"object"===a(n)||"boolean"==typeof n?e[(0,i.default)(t)]=n:null==n?e.removeAttribute(t):e.setAttribute(t,n)};var o=n(8),i=function(e){return e&&e.__esModule?e:{default:e}}(n(5));function a(e){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}var c="style",u={slot:!0};function l(e){return u.hasOwnProperty(e)}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(28)),r=a(n(32)),i=a(n(33));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.worker,n=t.postMessage.bind(t),a={MutationRecord:new o.default(n),EvaluationRecord:new r.default(n),Location:new i.default(n)};t.onmessage=function(e){var t=e.data,n=t.type;a[n]?a[n].apply(t):console.error("Can not handle with "+n,t)},t.postMessage({type:"init",url:location.href,width:document.documentElement.clientWidth})},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(7),r=n(29),i=n(9),a=n(10);function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u="textContent"in document?"textContent":"nodeValue",l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,i.setPostMessage)(t)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(e,[{key:"apply",value:function(e){for(var t=e.mutations,n=0;n<t.length;n++){var o=t[n];this[o.type](o)}}},{key:"childList",value:function(e){var t=e.target,n=e.removedNodes,i=e.addedNodes,a=e.nextSibling,c=t;c&&"BODY"===c.nodeName&&(document.body.$$id=c.$$id);var u=o.sharedNodeMap.get(c);if(n)for(var l=n.length;l--;){var s=o.sharedNodeMap.get(n[l]);o.sharedNodeMap.delete(s),u&&s&&u.removeChild(s)}if(i)for(var f=0;f<i.length;f++){var d=o.sharedNodeMap.get(i[f]);d||(d=(0,r.createNode)(i[f])),u&&u.insertBefore(d,a&&o.sharedNodeMap.get(a)||null)}}},{key:"attributes",value:function(e){var t=e.target,n=e.attributeName,r=e.newValue,i=e.style,c=o.sharedNodeMap.get(t);c&&(i&&(0,a.setAttribute)(c,"style",i),n&&(0,a.setAttribute)(c,n,r))}},{key:"characterData",value:function(e){var t=e.target,n=e.newValue;o.sharedNodeMap.get(t)[u]=n}},{key:"addEvent",value:function(e){var t=e.target,n=e.eventName,r=o.sharedNodeMap.get(t);r&&(0,i.addEvent)(r,n)}},{key:"removeEvent",value:function(e){var t=e.target,n=e.eventName,r=o.sharedNodeMap.get(t);r&&(0,i.removeEvent)(r,n)}},{key:"canvasRenderingContext2D",value:function(e){var t=e.target,n=e.method,r=e.args,i=e.properties,a=o.sharedNodeMap.get(t);if(a){var c=a.getContext("2d");if(i)for(var u in i)i.hasOwnProperty(u)&&(c[u]=i[u]);n&&c[n].apply(c,r)}}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNode=function e(t){var n,l;if(3===t.nodeType)n=document.createTextNode(t.data);else if(1===t.nodeType&&(l=function(e){var t=String(e).toLowerCase();return(0,a.isValidW3CTag)(t)?t:(0,a.isValidCustomTags)(t)?u+t:"a-unknown"}(t.nodeName))){if(n=document.createElement(l),t.className&&(n.className=t.className),t.style&&(0,o.setStyle)(n,t.style),t.attributes)for(var s=0;s<t.attributes.length;s++){var f=t.attributes[s],d=f.name,p=f.value;(0,c.setAttribute)(n,d,p)}if(t.childNodes)for(var v=0;v<t.childNodes.length;v++)n.appendChild(e(t.childNodes[v]));if(t.events)for(var y=0;y<t.events.length;y++)(0,i.addEvent)(n,t.events[y])}else 8===t.nodeType&&(n=document.createComment(t.data));r.sharedNodeMap.set(t,n);return n};var o=n(8),r=n(7),i=n(9),a=n(31),c=n(10),u="a-"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.passive=void 0;var o=!1;try{addEventListener("test",null,{get passive(){o=!0}})}catch(e){}var r=o;t.passive=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCustomTags=function(e){return o.hasOwnProperty(e)},t.isValidW3CTag=function(e){return r.hasOwnProperty(e)};var o={audio:!0,button:!0,canvas:!0,checkbox:!0,"checkbox-group":!0,icon:!0,label:!0,picker:!0,"picker-view":!0,"picker-view-column":!0,radio:!0,slider:!0,text:!0,video:!0,image:!0,input:!0,map:!0,"radio-group":!0,swiper:!0,"swiper-item":!0,textarea:!0,view:!0,form:!0,navigator:!0,progress:!0,"scroll-view":!0,switch:!0,"web-view":!0,page:!0},r={style:!0}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sender=t}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"apply",value:function(e){var t=e.data;this[t.type](t)}},{key:"returnSuccess",value:function(e,t){if("object"===o(t))try{t=JSON.parse(JSON.stringify(t))}catch(e){t=t.toString()}"function"==typeof t&&(t=t.toString()),this.send({type:"success",id:e,success:t})}},{key:"returnError",value:function(e,t){var n=t.name,o=t.message;this.send({type:"error",id:e,error:{name:n,message:o}})}},{key:"send",value:function(e){this.sender({type:"return",return:e})}},{key:"eval",value:function(e){var t=e.id,n=e.code;try{this.returnSuccess(t,window.eval(n))}catch(e){this.returnError(t,e)}}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sender=t}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"apply",value:function(e){var t=e.data,n=t.type,o=t.prop;"call"===n&&"replace"===o&&location.replace(t.args[0])}}]),e}();t.default=r,e.exports=t.default}])})},4:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var o="undefined"!=typeof navigator?navigator.userAgent:"unknow";/(iPhone|iPad|iPod)/.test(o),/Android/.test(o),/AliTB/.test(o);function r(){return void 0!==e?e:"undefined"!=typeof self?self:new Function("return this")()}}).call(this,n(2))},5:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}function i(){}var a="function"==typeof setImmediate&&setImmediate||function(e){"function"==typeof setTimeout?setTimeout(e,0):e()},c=function(e){"undefined"!=typeof console&&console&&console.log("Possible Unhandled Promise Rejection:",e)};function u(e){if("object"!==r(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise resolver is not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function l(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void f(t.promise,e)}s(t.promise,o)}else(1===e._state?s:f)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof u)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void p(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,d(e)}catch(t){f(e,t)}}function f(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a(function(){e._handled||c(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)l(e,e._deferreds[t]);e._deferreds=null}function p(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,f(t,e))})}catch(e){if(n)return;n=!0,f(t,e)}}u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){var n=new this.constructor(i);return l(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},u.all=function(e){var t=Array.prototype.slice.call(e);return new u(function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,c){try{if(c&&("object"===r(c)||"function"==typeof c)){var u=c.then;if("function"==typeof u)return void u.call(c,function(e){i(a,e)},n)}t[a]=c,0==--o&&e(t)}catch(e){n(e)}}for(var a=0;a<t.length;a++)i(a,t[a])})},u.resolve=function(e){return e&&"object"===r(e)&&e.constructor===u?e:new u(function(t){t(e)})},u.reject=function(e){return new u(function(t,n){n(e)})},u.race=function(e){return new u(function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)})},u._setImmediateFn=function(e){a=e},u._setUnhandledRejectionFn=function(e){c=e},e.exports=u},8:function(e,t,n){"use strict";t.decode=t.parse=n(14),t.encode=t.stringify=n(15)},9:function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function retrocycle($){var px=/^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\(?:[\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/;return function rez(value){value&&"object"===_typeof(value)&&(Array.isArray(value)?value.forEach(function(element,i){if("object"===_typeof(element)&&null!==element){var path=element.$ref;"string"==typeof path&&px.test(path)?value[i]=eval(path):rez(element)}}):Object.keys(value).forEach(function(name){var item=value[name];if("object"===_typeof(item)&&null!==item){var path=item.$ref;"string"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)}}))}($),$}__webpack_require__.d(__webpack_exports__,"a",function(){return retrocycle})}}); | ||
/*! miniapp framework version: 0.1.61 bulid time: Tue Nov 20 2018 17:42:43 GMT+0800 (CST) */!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=129)}({1:function(e,t,n){"use strict";n.d(t,"c",function(){return a}),n.d(t,"a",function(){return c}),n.d(t,"d",function(){return u}),n.d(t,"b",function(){return l});var o=n(4),r={all:-1,debug:0,log:1,info:1,warn:2,error:3,none:4},i="error";try{Object(o.a)().__set_log_level__=function(e){i=e}}catch(e){u("mount __set_log_level__ at global object err",e)}function a(){if(r[i]<=r.log){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Log]"].concat(n))}}function c(){if(r[i]<=r.debug){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[Debug]"].concat(n))}}function u(){if(r[i]<=r.warn){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[WARN]"].concat(n))}}function l(){if(r[i]<=r.error){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];(e=console).log.apply(e,["[ERROR]"].concat(n))}}},10:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={taobao:{"--color-primary":"#ff5500","--color-warn":"#fb9025","--button-primary-background-color-from":"#ff8800","--button-primary-background-color-to":"#ff5500","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"#fbca2f","--button-warn-background-color-to":"#fb9025","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#ff5500","--button-border-radius":"40px"},alipay:{"--color-primary":"#2E7ADC","--color-warn":"red","--button-primary-background-color-from":"#2E7ADC","--button-primary-background-color-to":"#2E7ADC","--button-primary-text-color":"#ffffff","--button-warn-background-color-from":"red","--button-warn-background-color-to":"red","--button-warn-text-color":"#ffffff","--button-default-background-color-from":"#ffffff","--button-default-background-color-to":"#ffffff","--button-default-text-color":"#2E7ADC","--button-border-radius":"10px"}};function r(e,t){var n=e&&e.themeName,r=o[n];r||(r=o[n="taobao"]),e&&e.customVars&&(r=Object.assign({},r,e.customVars));var i=t.document.documentElement;t.CSS&&t.CSS.supports&&t.CSS.supports("--a",0)?function(e,t){Object.keys(e||{}).forEach(function(n){var o=e[n];t.style.setProperty(n,o)})}(r,i):new t.MutationObserver(function(e){var t=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var c=i.value;if("childList"===c.type){var u=c.addedNodes[0];u&&u.shadowRoot&&function(){var e=u.shadowRoot.querySelector("style"),t=e.textContent;Object.keys(r).forEach(function(e){var n=r[e];t=t.replace(new RegExp("var\\(".concat(e,"[^\\)]*\\)"),"g"),n)}),e.textContent=t}()}}}catch(e){n=!0,o=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw o}}}).observe(t.document.body,{childList:!0,subtree:!0})}},11:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var i,a,c=0,u=[],l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.current=[],this.elements=t,this.options={container:window,wait:100,x:0,y:0,cls:"appear",once:!1,onReset:function(){},onAppear:function(){},onDisappear:function(){}},this.container=null,this.appearWatchElements=null,this.initConfig.apply(this,arguments)}return r(e,null,[{key:"createEvent",value:function(){i=document.createEvent("HTMLEvents"),a=document.createEvent("HTMLEvents"),i.initEvent("appear",!1,!0),a.initEvent("disappear",!1,!0)}}]),r(e,[{key:"initConfig",value:function(e){this.extend(this.options,e||(e={})),this.appearWatchElements=this.appearWatchElements||this.getElements(),this.bindEvent()}},{key:"extend",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},{key:"inViewport",value:function(e,t,n){var o=e.getBoundingClientRect(),r=o.top,i=o.right,a=o.bottom,u=o.left;return u=t.right>u&&t.left<i,r=t.bottom>r-c&&t.top<a,u&&r}},{key:"getElements",value:function(e){var t,n=this.options.container;return this.container=n,t=u||[],t=[].slice.call(t,null)}},{key:"check",value:function(e){var t=this;s(function(){t.calculate(e)})}},{key:"calculate",value:function(e){var t=this,n=this.container,o=e||this.getElements(),r=d(window,{x:this.options.x,y:this.options.y}),c=this.options.once;arguments[0];n&&o&&o.length>0&&[].forEach.call(o,function(e,n){if(e){if(e.isOnce&&e._hasAppear)return u.splice(n,1),void o.splice(n,1);t.checkEveryDom(e,r,c,i,a,"normal",n)}})}},{key:"checkEveryDom",value:function(e,t,n,o,r,i,a){var c=d(e),u=this.getDirection(e._eleOffset,c),l=this.inViewport(e,t,i),s=e._appear,f=e._hasAppear,p=e._hasDisAppear;e._eleOffset=c,o.direction=u,r.direction=u,l&&!s?(n&&!f||!n)&&(e.dispatchEvent(o),e._hasAppear=!0,e._appear=!0):!l&&s&&(n&&!p||!n)&&(e.dispatchEvent(r),e._hasDisAppear=!0,e._appear=!1)}},{key:"reset",value:function(e){return this.initConfig(e),this.appearWatchElements.forEach(function(e){delete e._hasAppear,delete e._hasDisAppear,delete e._appear}),this}},{key:"bindEvent",value:function(){var e=this,t=function(e,t){var n,o,r,i=null,a=0,c=function(){a=Date.now(),i=null,r=e.apply(n,o)};return function(){var u=Date.now(),l=t-(u-a);return n=this,o=arguments,l<=0?(clearTimeout(i),i=null,a=u,r=e.apply(n,o)):i||(i=setTimeout(c,l)),r}}(function(){e.check()},this.options.wait);this.__handle&&(this.container.removeEventListener("scroll",this.__handle,!1,!0),this.__handle=null),this.__handle=t,this.container.addEventListener("scroll",t,!1,!0)}},{key:"getDirection",value:function(e,t){var n="none",o=e.left-t.left,r=e.top-t.top;return 0==r&&(n=0!=o?o>0?"left":"right":"none"),0==o&&(n=0!=r?r>0?"up":"down":"none"),n}}]),e}(),s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,1/60*1e3)};function f(e){e.offsetTop&&"number"==typeof e.offsetTop&&(c=e.offsetTop)}function d(e,t){var n,o,r,i;if(e){if(t||(t={x:0,y:0}),e===window)i=0,o=(n=0)+e.innerWidth,r=i+e.innerHeight;else if(null===e.parentNode)n=0,i=0,o=0,r=0;else{var a=e.getBoundingClientRect(),c=a.top,u=a.right,l=a.bottom;n=a.left,i=c,o=u,r=l}return{left:n,top:i,right:o+t.x,bottom:r+t.y}}}var p,v,y,h=l,m={root:null,rootMargin:"0px",threshold:0};function g(e){e.forEach(function(e){var t=e.target;e.boundingClientRect;e.intersectionRatio>0?(t.dataset.appeared=!0,t.dispatchEvent(p)):t.dataset.appeared&&(t.dataset.appeared=!1,t.dispatchEvent(v))})}function b(){p=document.createEvent("HTMLEvents"),v=document.createEvent("HTMLEvents"),p.initEvent("appear",!1,!0),v.initEvent("disappear",!1,!0),y=new IntersectionObserver(g,m)}var w=null,_="function"==typeof IntersectionObserver,k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.prototype.addEventListener,o=t.prototype.removeEventListener;t.prototype.addEventListener=function(t,o,r,i){var a=t&&String(t).toLowerCase(),c="appear"===a||"disappear"===a;c&&(_?function(e){e===document&&(e=document.documentElement),y.observe(e)}(this):function(e){if(-1===u.indexOf(e)&&!e.appended){var t=Boolean(e.getAttribute("isonce"))||Boolean(e.getAttribute("data-once"));e.isOnce=t,e.appended=!0,u.push(e),e._eleOffset=d(e)}}(this)),_||(w&&c&&w.check([this]),"scroll"!==a||i||(w=new h({container:this}),e.push(w))),n.call(this,t,o,r)},t.prototype.removeEventListener=function(t,n,r,i){var a=this,c=t&&String(t).toLowerCase();_||"scroll"!==c||i||e.forEach(function(t,n){t.__handle&&t.container===a&&(a.removeEventListener("scroll",t.__handle,!1,!0),t.__handle=null,t.appearWatchElements=[],t.container=null,e.splice(n,1))}),o.call(this,t,n,r)}};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(!_){var t=[];return h.createEvent(),k(t,e.Node),w=new h({container:e}),t.push(w),{config:f}}b(),k([],e.Node)}},129:function(e,t,n){"use strict";n.r(t);var o=n(36),r=n.n(o),i=n(8),a=n.n(i),c="undefined"==typeof __sfc__?null:void 0!==__sfc__.getRawJSON?JSON.parse(__sfc__.getRawJSON()):__sfc__;function u(e){var t=location.href,n=new RegExp("".concat(e,"=([^&]+)")).exec(t);return n?decodeURIComponent(n[1]):"$unknown"}var l=n(37),s=n.n(l),f=document.documentElement.style,d=document.documentElement.clientWidth,p="ontouchstart"in window||"onmsgesturechange"in window;var v=n(1),y=n(5),h=n.n(y),m=n(9),g="https://g.alicdn.com/miniapp/miniapp-console/rax-console.js?r="+Date.now(),b=null;var w=[],_=["info","log","error","debug","warn"];function k(e){var t=(e||{}).payload,n=void 0===t?{}:t;"switch"!==n.type?b&&b.instance?-1!==_.indexOf(n.type)&&b&&b.instance&&b.instance.addMessage({source:"console-api",type:"log",level:n.type,parameters:n.args.map(function(e){return Object(m.a)(e)})}):w.push(e):!0===n.value?function(){if(b)return h.a.resolve(b);var e=document.createElement("script");return new h.a(function(t,n){e.onload=function(){b={load:window.RaxConsole.default,unload:window.RaxConsole.unload},t(b)},e.charset="utf-8",e.onerror=n,e.src=g,document.head.appendChild(e)})}().then(function(e){e.instance=e.load(),w.forEach(k),w=[]}):!1===n.value&&(b.unload(),b.instance=null)}var S=1,E=2,M=0;var x=n(11),O=n(10);Object(x.a)(window);var A=r()({}),j=c?c.options.pageName:u("pageName"),$=c?c.options.clientId:u("clientId"),C=function(){var e=location.search||"";return"?"===e[0]&&(e=e.slice(1)),a.a.parse(e)}(),T={inited:!1};A.$on("[[VideoContextAction]]",function(e){var t=e.data,n=t.action,o=t.id,r=t.args,i=document.getElementById(o);null!==i&&i[n].apply(i,r)}),A.$on("[[ModuleAPIEvent]]",function(e){var t=e.data,n=t.type,o=t.data;switch(n){case"pageScrollTo":var r=o.behavior,i=o.scrollTop;window.scrollTo({top:i||0,behavior:r||"auto"})}}),A.$on("r#",function(e){T.inited||(!function(e){p&&(document.documentElement.style.cursor="pointer"),f.fontSize=d/750*100+"px";var t={postMessage:function(t){e.$emit("r2w",{data:t},"AppWorker")}};e.$on("w2r",function(e){"function"==typeof t.onmessage&&t.onmessage(e.data)}),s()({worker:t,tagNamePrefix:"a-"})}(A),T.inited=!0)}),A.$on("console",function(e){k(e.data)}),A.$call("miniApp.getConfig",{},function(e){var t=e?e.themeConfig:{};Object(O.a)(t,window)},function(e){Object(v.b)("miniApp.getConfig on err",e)}),window.__renderer_to_worker__=function(e){A.$emit(e.type,{payload:e,pageName:j},"AppWorker")},A.$emit("r$",{clientId:$,pageName:j,pageQuery:C},"AppWorker"),C.remoteInspectUrl&&function(e){if(!(M>=S)){M=S;var t=document.createElement("script");t.async=!0,t.src=e,t.onload=function(){M=E},document.body.appendChild(t)}}(C.remoteInspectUrl)},13:function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var u,l=[],s=!1,f=-1;function d(){s&&u&&(s=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!s){var e=c(d);s=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,s=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function v(e,t){this.fun=e,this.array=t}function y(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new v(e,t)),1!==l.length||s||c(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=y,r.addListener=y,r.once=y,r.off=y,r.removeListener=y,r.removeAllListeners=y,r.emit=y,r.prependListener=y,r.prependOnceListener=y,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},14:function(e,t,n){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var c=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var s=0;s<l;++s){var f,d,p,v,y=e[s].replace(c,"%20"),h=y.indexOf(n);h>=0?(f=y.substr(0,h),d=y.substr(h+1)):(f=y,d=""),p=decodeURIComponent(f),v=decodeURIComponent(d),o(a,p)?r(a[p])?a[p].push(v):a[p]=[a[p],v]:a[p]=v}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},15:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=function(e){switch(o(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===o(e)?a(c(e),function(o){var c=encodeURIComponent(r(o))+n;return i(e[o])?a(e[o],function(e){return c+encodeURIComponent(r(e))}).join(t):c+encodeURIComponent(r(e[o]))}).join(t):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var c=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},2:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(o=window)}e.exports=o},36:function(e,t,n){(function(o,r){var i,a;function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}console.log("Start windmill renderer (0.4.1) framework. Build at 2018-09-18 16:04"),function(o,r){"object"===c(t)&&void 0!==e?e.exports=r():void 0===(a="function"==typeof(i=r)?i.call(t,n,t,e):i)||(e.exports=a)}(0,function(){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{writable:!0,enumerable:!1,configurable:!0,value:function(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),r=1;r<arguments.length;r++){var i=n[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])}return o}});var e=function(){var e=1e5;return function(){var t=String(e);return e+=1,t}}();function t(e,t,n){void 0===n&&(n=!0);var r=void 0!==o?o:"undefined"!=typeof self?self:new Function("return this")();try{Object.defineProperty(r,e,{value:t,configurable:!0,enumerable:!0,writable:!n})}catch(n){r[e]=t}}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function i(e){return"Object"===n(e)}function a(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t]}var u=function(){},l={},s=["Android","iOS"];var f=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};function d(e,t){return"object"===(void 0===r?"undefined":c(r))&&r&&r.env&&"test"===r.env.PURPOSE?"function"==typeof __test_logger__&&(u=__test_logger__,!0):(l.debugMode,!0)}function p(e,t){d()&&u("debug",e)}function v(e,t){d()&&u("warn",e)}function y(e,t){d()&&u("error",e)}function h(e){if(y(e),"test"!==r.env.PURPOSE)throw new Error(e)}u=function(e,t){var n="["+f(e)+"][wml-r] "+t;return l.isWeex&&s.indexOf(l.platform)>-1?console.log(n):console.error(n)};var m={network:["request","uploadFile"],miniApp:["setAppShareInfo","hideLauncherLoading","setWebViewTop","setWebViewBackgroundImage"],mtop:["request"],storage:["length","setItem","getItem","removeItem"],memoryStorage:["setItem","getItem"],tabBar:["show","hide"],navigator:["push","pop","openMessagePage","reloadPage","getBackStack","popToHome","navigateTo","redirectTo","switchTab"],user:["login","logout","info"],modal:["alert","confirm","toast","showLoading","hideLoading"],navigatorBar:["show","hide","setTitle","setRightItem","setStyle","setDrawer","setActionSheet","hasIndexBadge","scaleIndexBadge","resetIndexBadge","getHeight","openDrawer","isDrawerOpened","closeDrawer","setLeftItem","showMenu","hideMenu","getStatusBarHeight","setNavigationBar"],clipboard:["writeText","readText"],picker:["pick","pickDate","pickTime","chooseCity"],webSocket:["webSocket","send","close","onOpen","onMessage","onClose","onError"],calendar:["addEvent","checkEvent","removeEvent"],connection:["getType","getDownlinkMax","onChange"],screen:["setAlwaysOn","setBrightness","getScreenBrightness"],broadcast:["createChannel","postMessage","onMessage","close"],share:["doShare"],cookie:["read","write","getAllObjects"],audio:["load","play","pause","stop","setVolume","canPlayType"],wopc:["authLogin","checkAuthSession","doAuth","getSessionKey","setSessionKey"],WopcMtopPlugin:["request"],device:["onShake","vibrate"],keyboard:["hideKeyboard"],contact:["choosePhoneContact"],location:["getLocation"],alipay:["tradePay"],userTrack:["commit","commitut","commitEvent","customAdvance","pageAppear","pageDisappear","skipPage","updatePageUtparam","updateNextPageUtparam"],"nuvajs-exec":["exec"],aluWVJSBridge:["userIsLogin","refreshAlipayCookie"],TBDeviceInfo:["getUtdid"],actionSheet:["showActionSheet"],image:["chooseImage","previewImage","compressImage","getImageInfo","saveImage"],media:["startVoice","stopVoice"],audioRecord:["startRecord","stopRecord","cancelRecord"],audioPlayer:["playVoice","pauseVoice","stopVoice"],file:["saveFile","getFileInfo","getFileList","removeFile"],video:["chooseVideo","getVideoInfo"],phone:["makePhoneCall"],compass:["startCompass","stopCompass","onCompassChange"],tbsecurity:["secureToken"]};var g="__WINDMILL_MODULE_GETTER__",b=function(){};b.prototype.$on=function(e,t){return void 0===t&&(t=a),p('$on "'+e+'"'),!e&&h("invalid event name "+e+" for windmill.$on."),t===a&&h("bind event "+e+" with no callback through windmill.$on."),this.bridge.onReceiveMessage({data:{type:e},origin:this.label,type:"Event"},t)},b.prototype.$once=function(e,t){return void 0===t&&(t=a),p('$once "'+e+'"'),!e&&h("invalid event name "+e+" for windmill.$once."),t===a&&h("bind event "+e+" with no callback through windmill.$once."),this.bridge.onReceiveMessage({data:{type:e,once:!0},origin:this.label,type:"Event"},t)},b.prototype.$off=function(e,t){return p('$off "'+e+'"'),!e&&h("invalid event name "+e+" for windmill.$off."),this.bridge.unbindEventListener("Event."+e,t)},b.prototype.$cycle=function(e,t){return void 0===t&&(t=a),p('$cycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||h("invalid lifecycle name "+e+" for windmill.$cycle."),t===a&&h("hook lifecycle "+e+" with no callback function through windmill.$cycle."),"AppWorker"!==this.label&&/^app:/.test(e)&&h("Shouldn't bind lifecycle hook for app in a page client."),this.bridge.onReceiveMessage({type:"Lifecycle",origin:this.label,data:{type:e}},t)},b.prototype.$decycle=function(e,t){return p('$decycle "'+e+'"'),e&&/^app:|^page(:|@)/.test(e)||h("invalid lifecycle name "+e+" for windmill.$decycle."),this.bridge.unbindEventListener("Lifecycle."+e,t)},b.prototype.$emit=function(e,t,n){return void 0===t&&(t={}),p('$emit("'+e+'")'),!e&&h("invalid event name "+e+" for windmill.$emit."),n&&n!==this.label?this.bridge.postMessage({data:{type:e,data:t},origin:this.label,target:n,type:"Event"}):this.bridge.emitEvent(""+e,t)},b.prototype.$callAsync=function(e,t){var n=this;return void 0===t&&(t={}),p('$callAsync "'+e+'"'),e||h("invalid method name "+e+" for windmill.$callAsync."),new Promise(function(o,r){n.bridge.dispatchMessage({type:"ModuleCall",origin:n.label,target:"AppWorker",data:{method:e,params:t}},o,r,!1)})},b.prototype.$call=function(e,t,n,o){return void 0===t&&(t={}),void 0===n&&(n=a),void 0===o&&(o=a),p('$call "'+e+'", params: '+JSON.stringify(t)),e||h("invalid method name "+e+" for windmill.$call."),this.bridge.dispatchMessage({type:"ModuleCall",origin:this.label,target:"AppWorker",data:{method:e,params:t}},n,o,!0)},b.prototype.$registerModules=function(e){!function(e,t){if(void 0===t&&(t=!1),i(e)){var n=function(n){var o=e[n];m[n]?t||v('The "'+n+'" module has already been registered.It would be overridden.'):m[n]=[];var r=m[n];Array.isArray(o)?o.forEach(function(e){-1===r.indexOf(e)?r.push(e):t||v('The "'+e+'" of the "'+n+'" module has already been registered.')}):y('Invalid parameter type! The method list of the "'+n+'" module should be an Array.')};for(var o in e)n(o)}else y("Invalid parameter type! The module definition is not a plain object.")}(e,!0)},b.prototype.$getAvailableModules=function(){return function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){}return t}(m)};var w="[[EVENT_MAP]]";function _(e,t){var n=e[w];return Array.isArray(n[t])||(n[t]=[]),n[t]}var k,S=function(){p("Create new EventEmitter."),Object.defineProperty(this,w,{configurable:!1,enumerable:!1,writable:!1,value:{}})};function E(e){var t;try{t=JSON.stringify(e)}catch(n){t=e}h("failed to postMessage: "+t)}function M(e,t,n,o,r,i){var a=t+"."+n;return e.WindVane?e.WindVane.call(t,n,o,r,i):h("should have WindVane in global context"+(a?" to call "+a:"")+".")}S.prototype.on=function(e,t){return p('EventEmitter: on("'+e+'")'),_(this,e).push({listener:t,once:!1,callCount:0}),this},S.prototype.once=function(e,t){return p('EventEmitter: once("'+e+'")'),_(this,e).push({listener:t,once:!0,callCount:0}),this},S.prototype.off=function(e,t){p('EventEmitter: off("'+e+'"'+(t?", listener":"")+")");var n=this[w];if(t){var o=n[e];if(Array.isArray(o)){var r=o.findIndex(function(e){return e.listener===t});-1!==r&&o.splice(r,1)}}else delete n[e];return this},S.prototype.emit=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];p('EventEmitter: emit("'+e+'", '+JSON.stringify(t)+")");var o=this[w],r=o[e];return Array.isArray(r)&&(o[e]=r.filter(function(n){try{n.listener.apply(null,t),n.callCount+=1}catch(t){return y('Failed to emit "'+e+'" event.'),y(t.toString()),!0}return!n.once})),this};var x=!1;var O=function(){this._messages=[]};O.prototype.postMessage=function(e){p("cache message in lazyMsgModule. "+JSON.stringify(e)),this._messages.push(e)},O.prototype.replaceWith=function(e){A=!1,this._messageModule=e,this._flush()},O.prototype._flush=function(){var e=this;this._messages.forEach(function(t){return e._messageModule.postMessage(t)})};var A,j,$=new O;function C(e,t){var n=e?function(e){return e.requireModule("@weex/windmill")||e.requireModule("windmill")}(e):function(){if(!k){var e="undefined"!=typeof window?window:o;k={postMessage:function(t){return M(e,"Windmill","postMessage",t,function(){},E)},onmessage:function(t){if(console.debug("Set onMessage for webview."),!x)return x=!0,M(e,"Windmill","onMessage",{},t,E)}}}return k}();if(!n)return h("can't find message module ("+(e?"windmill module":"message module in webview")+")."),A=!0,$;if("function"==typeof t){p('Set the "onmessage" method to the bridge through callback.');try{n.onmessage(t)}catch(e){y('Failed to set the "onmessage" method to the bridge through callback.'),y(e.toString())}}return A&&$.replaceWith(n),n}function T(e){var t=e.match(/([^@]+)(@\S+)/);return t&&t[1]||e}var P=function(e,t){var o=this;void 0===t&&(t={}),p("Create a new RendererBridge."),j=t.isWeex,this._emitter=new S,p("Register onmessage api for "+(j?"Weex windmill module":"webview")+"."),j&&(this._weex=e),this._onMessage=function(e){if(p("Receive message from the worker. (message: "+JSON.stringify(e)+")"),!i(e)&&(y("The parameter of onmessage should be a plain object! Not "+n(e)),"string"==typeof e))try{e=JSON.parse(e)}catch(e){return void y("Failed to parse the message string. "+e.toString())}var t=e.type,r=e.data;void 0===r&&(r={});var a=e.origin,c=e.callbackId;switch(t){case"Callback":o._emitter.emit("callback@AppWorker:"+c,r);break;case"Event":var u=T(r.type);o._emitter.emit(t+"."+u,Object.assign({origin:a},r,{type:u}));break;case"Lifecycle":o._emitter.emit(t+"."+r.lifecycle,r.options);break;case"SetData":o._emitter.emit("Event.setdata",r);break;default:h('Unknown message type received from worker: "'+t+'"')}},C(e,this._onMessage)};P.prototype.dispatchMessage=function(e,t,n,o){p("Dispatch message to worker. (message: "+JSON.stringify(e)+")"),e.callbackId=this._genCallbackId(function(o){return o.status&&"SUCCESS"===o.status?t(o):(o.status,y("call API "+e.data.method+" from renderer failed: "+o.status+", "+o.error),n(o))},{keepAlive:o});try{e.keepAlive=!0,this.postMessage(e)}catch(e){n(e)}},P.prototype.postMessage=function(e){try{p("Call postMessage to worker. (message: "+JSON.stringify(e)+")"),C(this._weex,this._onMessage).postMessage(e)}catch(e){h(e.message||e.toString()||"postMessage failed.")}},P.prototype._genCallbackId=function(t,n){var o=n.keepAlive,r=n.callbackId,i=r||e();return this._emitter[o?"on":"once"]("callback@AppWorker:"+i,t),i},P.prototype.onReceiveMessage=function(e,t){var n=e.type,o=e.data;void 0===o&&(o={});var r=o.type;"Event"===n&&(r=T(r),o.type=r);var i=o.once?"once":"on";this._emitter[i](n+"."+r,t)},P.prototype.unbindEventListener=function(e,t){this._emitter.off(T(e),t)},P.prototype.emitEvent=function(e,t){void 0===t&&(t={});var n=T(e);this._emitter.emit("Event."+n,{type:n,data:t})};var N=function(e){function t(t,n){void 0===n&&(n={}),e.call(this),this._name=n.pageName||"",this.label=n.clientId||"",t&&i(t.config)&&(this._name=t.config.pageName||"",this.label=t.config.clientId||"",t.config.availableModules?(this.$registerModules(t.config.availableModules),this._gotAvailableModulesFromWeex=!0):v("No available modules in weex options.")),p("Create a new RendererRuntime. ("+this.label+", "+this._name+")"),this.bridge=new P(t,n),this._init()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype._init=function(){var e=this;this.bridge.onReceiveMessage({origin:"AppWorker",target:this.label,type:"Event",data:{type:"registerModules"}},function(t){t&&"registerModules"===t.type&&(p("Register available modules in renderer. ("+Object.keys(t.data)+")"),e.$registerModules(t.data))})},t.prototype.ready=function(){this.bridge.dispatchMessage({origin:this.label,target:"AppWorker",type:"Event",data:{type:"[[RendererRuntimeReady]]",data:{label:this.label,handshake:!this._gotAvailableModulesFromWeex}}},a,a)},t.prototype.$getCurrentActivePageId=function(){return this.label},t}(b),I=["$on","$once","$off","$emit","$cycle","$decycle","$call","$callAsync","$navTo","$getAvailableModules","$getCurrentActivePageId"];return function(e,n){var o=!(!e||!e.requireModule);!function(e){if(!e||!e.platform)return console.error("set logger environment failed.");Object.assign(l,e)}({platform:o&&e.config.env.platform,debugMode:o&&e.config.env.debugMode,isWeex:o}),p("Setup Windmill renderer framework."),e&&!e.requireModule&&(n=e,e=void 0),n||(n={}),(n=Object.assign({},n)).isWeex=o,p("Instantiate renderer in "+(o?"Weex container":"WindVane container")+".");var r=new N(e,n),i=function(e,t){var n={};return t.forEach(function(t){"function"==typeof e[t]&&(n[t]=function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return e[t].apply(e,n)})}),n}(r,I);return p("Prepare runtime APIs: "+JSON.stringify(I)),n.exposeModuleGetter&&t(g,function(e,t){var n=t||function(){for(var t,n=[],o=arguments.length;o--;)n[o]=arguments[o];return(t=e()).$call.apply(t,n)};return function(e){if(!e)return p("Require a universal module proxy."),{call:n};var t=m[e];if(Array.isArray(t)){p('Require the "'+e+'" module.');var o={};return t.forEach(function(t){o[t]=function(){for(var o=[],r=arguments.length;r--;)o[r]=arguments[r];return n.apply(void 0,[e+"."+t].concat(o))}}),o}v('Require unknown module "'+e+"\".It may not exist or haven't been registered.")}}(function(){return i})),r.ready(),i}})}).call(this,n(2),n(13))},37:function(e,t,n){var o;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(i){"object"===r(t)&&void 0!==e?e.exports=i():void 0===(o=function(e,t,n){n.exports=i()}.call(t,n,t,e))||(e.exports=o)}(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===r(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r[e]||(r[e]=e.replace(o,function(e){return e.slice(1).toUpperCase()}))};var o=/-[a-z]/g,r={};e.exports=t.default},,function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.sharedNodeMap=t.default=void 0;var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_map",new Map)}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"get",value:function(e){return e?"BODY"===e.nodeName?document.body:this._map.get(e.$$id):null}},{key:"set",value:function(e,t){return t.$$id=e.$$id,this._map.set(e.$$id,t)}},{key:"delete",value:function(e){return e?this._map.delete(e.$$id):null}}]),e}();t.default=r;var i=new r;t.sharedNodeMap=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStyle=function(e,t){var n={};for(var o in t){var r=t[o];i.shouldPrefix(o)?i[o](r,n):n[o]=r}for(var a in n){var c=n[a];if(Array.isArray(c))for(var u=0;u<c.length;u++)e.style[a]=c[u];else e.style[a]=c}};var o={flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0,lineClamp:!0,textSizeAdjust:!0,textDecorationLine:!0,textDecorationColor:!0,textDecorationStyle:!0,textDecorationSkip:!0,writingMode:!0,animatin:!0,animationName:!0,animationDuration:!0,animationTimingFunction:!0,animationDelay:!0,animationIterationCount:!0,animationDirection:!0,animationFillMode:!0,animationPlayState:!0,transform:!0,transformOrigin:!0,transformStyle:!0,perspective:!0,perspectiveOrigin:!0,backfaceVisibility:!0,appearance:!0,userSelect:!0,columns:!0,columnWidth:!0,columnCount:!0,columnGap:!0,columnRule:!0,columnRuleWidth:!0,columnRuleStyle:!0,columnRuleColor:!0,columnSpan:!0,columnFill:!0,columnBreakBefore:!0,columnBreakAfter:!0,columnBreakInside:!0},r={position:"sticky",display:"flex"},i={shouldPrefix:function(e){return o[e]||r[e]}};Object.keys(o).forEach(function(e){var t="webkit"+e[0].toUpperCase()+e.slice(1);i[e]=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o[t]=n,o[e]=n,o}}),Object.keys(r).forEach(function(e){var t=r[e];i[e]=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o[e]=n===t?["-webkit-"+t,t]:n,o}})},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.setPostMessage=function(e){s=e},t.addEvent=function(e,t){if(c[t])f(e,t);else{var n=l[t];n?l[t]++:(l[t]=1,document.addEventListener(t,p,a))}},t.removeEvent=function(e,t){c[t]?d(e,t):(l[t]--,0===l[t]&&document.removeEventListener(t,p))},t.addNoBubblesEventListener=f,t.removeNoBubblesEventListener=d,t.eventProxyHandler=p;var i,a=!n(30).passive||{capture:!0,passive:!0},c={load:!0,error:!0,unload:!0,abort:!0,loadstart:!0,progress:!0,loadend:!0,blur:!0,focus:!0,scroll:!0,appear:!0,disappear:!0,invalid:!0},u=["touchstart","touchmove","touchend","touchcancel"],l={},s=null;function f(e,t){function n(n){var o={$$id:e.$$id};s({type:"event",event:{type:t,target:o,currentTarget:o,detail:n.detail}})}e["__$".concat(t,"_listener__")]=n,e.addEventListener(t,n)}function d(e,t){var n=e["__$".concat(t,"_listener__")];n&&(e.removeEventListener(t,n),e["__$".concat(t,"_listener__")]=null)}function p(e){if("click"===e.type&&i)return!1;var t={type:e.type};for(var n in e.target&&(t.target=e.target.$$id),"scroll"===e.type&&e.target===document&&(t.target=document.body.$$id,t.scrollTop=document.documentElement.scrollTop||document.body.scrollTop),e.detail&&(t.detail=e.detail),e){var r=e[n];"object"===o(r)||"function"==typeof r||n===n.toUpperCase()||t.hasOwnProperty(n)||(t[n]=r)}if(-1!==u.indexOf(e.type)&&(t.touches=y(e.touches),t.changedTouches=y(e.changedTouches)),s({type:"event",event:t}),"touchstart"===e.type)i=v(e);else if("touchend"===e.type&&i){var a=v(e);if(a)Math.sqrt(Math.pow(a.pageX-i.pageX,2)+Math.pow(a.pageY-i.pageY,2))<10&&(t.type="click",s({type:"event",event:t}))}}function v(e){var t=e.changedTouches&&e.changedTouches[0]||e.touches&&e.touches[0]||e;return t&&{pageX:t.pageX,pageY:t.pageY}}function y(e){for(var t=[],n=0,o=e.length;n<o;n++){var r=e[n],i=r.clientX,a=r.clientY,c=r.pageX,u=r.pageY,l=r.identifier,s=r.target;t.push({clientX:i,clientY:a,pageX:c,pageY:u,identifier:l,$$id:s.$$id})}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInvalidAttr=l,t.setAttribute=function(e,t,n){if(l(t))return;if(t===c)return void(0,o.setStyle)(e,n);"object"===a(n)||"boolean"==typeof n?e[(0,i.default)(t)]=n:null==n?e.removeAttribute(t):e.setAttribute(t,n)};var o=n(8),i=function(e){return e&&e.__esModule?e:{default:e}}(n(5));function a(e){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}var c="style",u={slot:!0};function l(e){return u.hasOwnProperty(e)}},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(28)),r=a(n(32)),i=a(n(33));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.worker,n=t.postMessage.bind(t),a={MutationRecord:new o.default(n),EvaluationRecord:new r.default(n),Location:new i.default(n)};t.onmessage=function(e){var t=e.data,n=t.type;a[n]?a[n].apply(t):console.error("Can not handle with "+n,t)},t.postMessage({type:"init",url:location.href,width:document.documentElement.clientWidth})},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(7),r=n(29),i=n(9),a=n(10);function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u="textContent"in document?"textContent":"nodeValue",l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(0,i.setPostMessage)(t)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(e,[{key:"apply",value:function(e){for(var t=e.mutations,n=0;n<t.length;n++){var o=t[n];this[o.type](o)}}},{key:"childList",value:function(e){var t=e.target,n=e.removedNodes,i=e.addedNodes,a=e.nextSibling,c=t;c&&"BODY"===c.nodeName&&(document.body.$$id=c.$$id);var u=o.sharedNodeMap.get(c);if(n)for(var l=n.length;l--;){var s=o.sharedNodeMap.get(n[l]);o.sharedNodeMap.delete(s),u&&s&&u.removeChild(s)}if(i)for(var f=0;f<i.length;f++){var d=o.sharedNodeMap.get(i[f]);d||(d=(0,r.createNode)(i[f])),u&&u.insertBefore(d,a&&o.sharedNodeMap.get(a)||null)}}},{key:"attributes",value:function(e){var t=e.target,n=e.attributeName,r=e.newValue,i=e.style,c=o.sharedNodeMap.get(t);c&&(i&&(0,a.setAttribute)(c,"style",i),n&&(0,a.setAttribute)(c,n,r))}},{key:"characterData",value:function(e){var t=e.target,n=e.newValue;o.sharedNodeMap.get(t)[u]=n}},{key:"addEvent",value:function(e){var t=e.target,n=e.eventName,r=o.sharedNodeMap.get(t);r&&(0,i.addEvent)(r,n)}},{key:"removeEvent",value:function(e){var t=e.target,n=e.eventName,r=o.sharedNodeMap.get(t);r&&(0,i.removeEvent)(r,n)}},{key:"canvasRenderingContext2D",value:function(e){var t=e.target,n=e.method,r=e.args,i=e.properties,a=o.sharedNodeMap.get(t);if(a){var c=a.getContext("2d");if(i)for(var u in i)i.hasOwnProperty(u)&&(c[u]=i[u]);n&&c[n].apply(c,r)}}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createNode=function e(t){var n,l;if(3===t.nodeType)n=document.createTextNode(t.data);else if(1===t.nodeType&&(l=function(e){var t=String(e).toLowerCase();return(0,a.isValidW3CTag)(t)?t:(0,a.isValidCustomTags)(t)?u+t:"a-unknown"}(t.nodeName))){if(n=document.createElement(l),t.className&&(n.className=t.className),t.style&&(0,o.setStyle)(n,t.style),t.attributes)for(var s=0;s<t.attributes.length;s++){var f=t.attributes[s],d=f.name,p=f.value;(0,c.setAttribute)(n,d,p)}if(t.childNodes)for(var v=0;v<t.childNodes.length;v++)n.appendChild(e(t.childNodes[v]));if(t.events)for(var y=0;y<t.events.length;y++)(0,i.addEvent)(n,t.events[y])}else 8===t.nodeType&&(n=document.createComment(t.data));r.sharedNodeMap.set(t,n);return n};var o=n(8),r=n(7),i=n(9),a=n(31),c=n(10),u="a-"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.passive=void 0;var o=!1;try{addEventListener("test",null,{get passive(){o=!0}})}catch(e){}var r=o;t.passive=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCustomTags=function(e){return o.hasOwnProperty(e)},t.isValidW3CTag=function(e){return r.hasOwnProperty(e)};var o={audio:!0,button:!0,canvas:!0,checkbox:!0,"checkbox-group":!0,icon:!0,label:!0,picker:!0,"picker-view":!0,"picker-view-column":!0,radio:!0,slider:!0,text:!0,video:!0,image:!0,input:!0,map:!0,"radio-group":!0,swiper:!0,"swiper-item":!0,textarea:!0,view:!0,form:!0,navigator:!0,progress:!0,"scroll-view":!0,switch:!0,"web-view":!0,page:!0},r={style:!0}},function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sender=t}return function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(e,[{key:"apply",value:function(e){var t=e.data;this[t.type](t)}},{key:"returnSuccess",value:function(e,t){if("object"===o(t))try{t=JSON.parse(JSON.stringify(t))}catch(e){t=t.toString()}"function"==typeof t&&(t=t.toString()),this.send({type:"success",id:e,success:t})}},{key:"returnError",value:function(e,t){var n=t.name,o=t.message;this.send({type:"error",id:e,error:{name:n,message:o}})}},{key:"send",value:function(e){this.sender({type:"return",return:e})}},{key:"eval",value:function(e){var t=e.id,n=e.code;try{this.returnSuccess(t,window.eval(n))}catch(e){this.returnError(t,e)}}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sender=t}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"apply",value:function(e){var t=e.data,n=t.type,o=t.prop;"call"===n&&"replace"===o&&location.replace(t.args[0])}}]),e}();t.default=r,e.exports=t.default}])})},4:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var o="undefined"!=typeof navigator?navigator.userAgent:"unknow";/(iPhone|iPad|iPod)/.test(o),/Android/.test(o),/AliTB/.test(o);function r(){return void 0!==e?e:"undefined"!=typeof self?self:new Function("return this")()}}).call(this,n(2))},5:function(e,t,n){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e){return(r="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}function i(){}var a="function"==typeof setImmediate&&setImmediate||function(e){"function"==typeof setTimeout?setTimeout(e,0):e()},c=function(e){"undefined"!=typeof console&&console&&console.log("Possible Unhandled Promise Rejection:",e)};function u(e){if("object"!==r(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("Promise resolver is not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function l(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void f(t.promise,e)}s(t.promise,o)}else(1===e._state?s:f)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof u)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void p(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,d(e)}catch(t){f(e,t)}}function f(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a(function(){e._handled||c(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)l(e,e._deferreds[t]);e._deferreds=null}function p(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,f(t,e))})}catch(e){if(n)return;n=!0,f(t,e)}}u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){var n=new this.constructor(i);return l(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},u.all=function(e){var t=Array.prototype.slice.call(e);return new u(function(e,n){if(0===t.length)return e([]);var o=t.length;function i(a,c){try{if(c&&("object"===r(c)||"function"==typeof c)){var u=c.then;if("function"==typeof u)return void u.call(c,function(e){i(a,e)},n)}t[a]=c,0==--o&&e(t)}catch(e){n(e)}}for(var a=0;a<t.length;a++)i(a,t[a])})},u.resolve=function(e){return e&&"object"===r(e)&&e.constructor===u?e:new u(function(t){t(e)})},u.reject=function(e){return new u(function(t,n){n(e)})},u.race=function(e){return new u(function(t,n){for(var o=0,r=e.length;o<r;o++)e[o].then(t,n)})},u._setImmediateFn=function(e){a=e},u._setUnhandledRejectionFn=function(e){c=e},e.exports=u},8:function(e,t,n){"use strict";t.decode=t.parse=n(14),t.encode=t.stringify=n(15)},9:function(module,__webpack_exports__,__webpack_require__){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function retrocycle($){var px=/^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\(?:[\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/;return function rez(value){value&&"object"===_typeof(value)&&(Array.isArray(value)?value.forEach(function(element,i){if("object"===_typeof(element)&&null!==element){var path=element.$ref;"string"==typeof path&&px.test(path)?value[i]=eval(path):rez(element)}}):Object.keys(value).forEach(function(name){var item=value[name];if("object"===_typeof(item)&&null!==item){var path=item.$ref;"string"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)}}))}($),$}__webpack_require__.d(__webpack_exports__,"a",function(){return retrocycle})}}); |
{ | ||
"name": "miniapp-framework", | ||
"version": "0.1.60", | ||
"version": "0.1.61", | ||
"description": "", | ||
@@ -25,3 +25,3 @@ "files": [ | ||
"@ali/windmill-renderer": "0.4.1", | ||
"atag": "^0.1.28", | ||
"atag": "^0.1.29", | ||
"babel-plugin-transform-es2015-constants": "^6.1.4", | ||
@@ -28,0 +28,0 @@ "driver-worker": "0.7.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Updatedatag@^0.1.29