You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
26 KiB

!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="//<%=CSS_DOMAIN%>/qcloud/main/scripts/",t(0)}({0:function(e,t,n){"use strict";function r(){var e=window.location.href.split("#")[0],t=document.title,n=document.getElementById("shareThumbnail")||"";n&&(n=n.value);var r=n||"http://imgcache.qq.com/open_proj/proj_qcloud_v2/gateway/portal/css/img/home/responsive/m-qc-share.png",o=document.getElementsByName("description");return o=o&&o.length?o[0].getAttribute("content"):"",{title:t,link:e,imgUrl:r,desc:o,success:c.noop,cancel:c.noop}}function o(e,t,n){if(a.isInWechat()){var o=!1;e===!0&&(o=!0,e=null),"function"==typeof t&&"undefined"==typeof n&&(n=t,t={}),t||(t={});var i=void 0;"boolean"==typeof t.debug&&(i=t.debug),location.search.indexOf("!debug")>-1&&(i=!0);var c=r(),u={};if(e=e||window.WECHAT_SHARE_CONFIG,o&&s.info("init-share",{initConfig:JSON.stringify({WECHAT_SHARE_CONFIG:window.WECHAT_SHARE_CONFIG,defaultConfig:c})}),e&&e.default){u.default={};for(var f in c)u.default[f]=e.default[f]||c[f]}else u.default=c;for(var l in e)"default"!==l&&(u[l]=e[l]);var p=a.share(u,i);return"function"==typeof n&&p.then(function(e){return n(null,e)},function(e){return n(e)}),p}}var i=n("5zlo"),a=new i,c=n("K7ar"),s=n("vgsS"),u="miniprogram"===window.__wxjs_environment;o(!0),window.wechatJsSdk=e.exports={isInWeapp:u,share:o,setOption:function(e,t){a.options[e]=t},init:function(e,t){return c.wrapPromiseCallback(a.init.bind(a),e,t)},checkIsMiniprogram:function(e){return c.wrapPromiseCallback(a.checkIsMiniprogram.bind(a),e)}};try{Object.defineProperty(window.wechatJsSdk,"__api",{get:function(){return a}})}catch(e){}},knfd:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"4E3U":function(e,t,n){e.exports=n("CVma")},CVma:function(e,t,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n("dgxz"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},dgxz:function(e,t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),c=new h(r||[]);return a._invoke=u(e,n,c),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function o(){}function i(){}function a(){}function c(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function t(n,o,i,a){var c=r(e[n],e,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){s.value=e,i(s)},a)}a(c.arg)}function n(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=n}function u(e,t,n){var o=P;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return m()}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=f(c,n);if(s){if(s===R)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===P)throw o=I,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var u=r(e,t,n);if("normal"===u.type){if(o=n.done?I:O,u.arg===R)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=I,n.method="throw",n.arg=u.arg)}}}function f(e,t){var n=e.iterator[t.method];if(n===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,f(e,t),"throw"===t.method))return R;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var o=r(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,R;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,R):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,R)}function l(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(l,this),this.reset(!0)}function d(e){if(e){var t=e[x];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=g,t.done=!0,t};return r.next=r}}return{next:m}}function m(){return{value:g,done:!0}}var g,v=Object.prototype,y=v.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},x=w.iterator||"@@iterator",b=w.asyncIterator||"@@asyncIterator",k=w.toStringTag||"@@toStringTag",_="object"==typeof e,S=t.regeneratorRuntime;if(S)return void(_&&(e.exports=S));S=t.regeneratorRuntime=_?e.exports:{},S.wrap=n;var P="suspendedStart",O="suspendedYield",E="executing",I="completed",R={},C={};C[x]=function(){return this};var M=Object.getPrototypeOf,j=M&&M(M(d([])));j&&j!==v&&y.call(j,x)&&(C=j);var L=a.prototype=o.prototype=Object.create(C);i.prototype=L.constructor=a,a.constructor=i,a[k]=i.displayName="GeneratorFunction",S.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===i||"GeneratorFunction"===(t.displayName||t.name))},S.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,k in e||(e[k]="GeneratorFunction")),e.prototype=Object.create(L),e},S.awrap=function(e){return{__await:e}},c(s.prototype),s.prototype[b]=function(){return this},S.AsyncIterator=s,S.async=function(e,t,r,o){var i=new s(n(e,t,r,o));return S.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},c(L),L[k]="Generator",L[x]=function(){return this},L.toString=function(){return"[object Generator]"},S.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},S.values=d,h.prototype={constructor:h,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=g),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),c=y.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,R):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),R},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),R}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=g),R}}}(function(){return this}()||Function("return this")())},K7ar:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),c=a.value}catch(e){return void n(e)}return a.done?void e(c):Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function i(e){var t=document.createElement("script");return Promise.race([new Promise(function(n,r){function o(){document.body.removeChild(t),t=t.onload=t.onerror=null}t.async=!0,t.onload=function(){n(),o()},t.onerror=function(){r("Load script failed"),o()},t.src=e,document.body.appendChild(t)}),new Promise(function(e,t){return setTimeout(function(){return t("Load script timeout")},1e4)})])}function a(e){return new Promise(function(t,n){function r(){delete window[o]}var o="wechatApiCallback_"+Date.now(),a=!1;e=""+e+(e.indexOf("?")>-1?"&":"?")+"callback="+o,window[o]=function(e){a=!0,t(e),r()},i(e).catch(function(e){!a&&e&&(n(e),r())})})}function c(e,t){t||(t={}),e||(e={});var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function s(e){return JSON.parse(JSON.stringify(e))}function u(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=e.apply(void 0,r);return"function"==typeof t&&i.then(function(e){return t(null,e)},function(e){return t(e)}),i}var f=n("4E3U"),l=r(f),p=function(){var e=o(l.default.mark(function e(t){var n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=0,r=void 0;case 2:if(!(n<o)){e.next=16;break}return e.prev=3,e.next=6,t();case 6:return e.abrupt("return",e.sent);case 9:e.prev=9,e.t0=e.catch(3),console.warn(t.name+" error",e.t0),r=e.t0,n++;case 14:e.next=2;break;case 16:return e.abrupt("return",Promise.reject(t.name+" max retry exceed, reason: "+r));case 17:case"end":return e.stop()}},e,this,[[3,9]])}));return function(t){return e.apply(this,arguments)}}();e.exports={retryFn:p,getScript:i,getJsonp:a,extend:c,clone:s,wrapPromiseCallback:u,noop:function(){}}},"5zlo":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),c=a.value}catch(e){return void n(e)}return a.done?void e(c):Promise.resolve(c).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){if(!e)throw"\u975e\u6cd5\u7684\u5206\u4eab\u53c2\u6570\uff01";var t=["timeline","friend","qq","weibo","qzone"],n=e.default||null,r={};return t.forEach(function(t){e[t]?(e[t].success||(e[t].success=function(){return n.success(t)}),e[t].cancel||(e[t].cancel=function(){return n.cancel(t)}),r[t]=l.extend(l.clone(n),e[t])):(r[t]=l.clone(n),r[t].success=function(){return n.success(t)},r[t].cancel=function(){return n.cancel(t)})}),t.forEach(function(e){if(r[e]){if("function"==typeof r[e].success){var t=r[e].success;r[e].success=function(){h.info("share-"+e+"-success",{shareConfig:JSON.stringify(r[e])}),h.flush(),t()}}if("function"==typeof r[e].cancel){var n=r[e].cancel;r[e].cancel=function(){h.info("share-"+e+"-cancel"),h.flush(),n()}}}}),r}var c=n("4E3U"),s=r(c),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("K7ar"),p=n("ViP3"),h=n("vgsS"),d=function(){function e(t){i(this,e),this.options=l.extend(p,t),this.authReady=!1}return f(e,[{key:"isInWechat",value:function(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}},{key:"isDomainValidate",value:function(){return this.options.whiteList.some(function(e){return e.test(location.host)})}},{key:"initScript",value:function(){var e=this,t=function(){return e._initScriptPromise||(e._initScriptPromise=new Promise(function(t,r){if("wx"in window)return t();var o=Date.now(),i=(n("2tW8")||n("knfd").cmd)&&"seajs"in window,a=function(t){h.info("init-script-fail",{usingAMD:i,error:t,cost:Date.now()-o}),setTimeout(function(){r(t),e._initScriptPromise=null},0)},c=function(){h.info("init-script-success",{usingAMD:i,cost:Date.now()-o}),t()};h.info("init-script-start",{usingAMD:i}),i?seajs.use(e.options.scriptUrl,function(e){e?(window.wx=e,c()):a("Load script failed!")}):l.getScript(e.options.scriptUrl).then(c,a)}))};return l.retryFn(t)}},{key:"getSignature",value:function(){var e=this,t=this.options.authUrl,n=function(){return e._getSignaturePromise||(e._getSignaturePromise=new Promise(function(){var n=o(s.default.mark(function n(r,o){var i,a,c,f;return s.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return i=Date.now(),n.prev=1,h.info("get-api-signature-start"),n.next=5,l.getJsonp(t+"?url="+encodeURIComponent(location.href.split("#")[0]));case 5:if(a=n.sent){n.next=8;break}throw"Empty response";case 8:if(c=a.code,f=a.data,!c){n.next=11;break}throw a;case 11:h.info("get-api-signature-success",u({},f,{cost:Date.now()-i})),r(f),n.next=20;break;case 15:n.prev=15,n.t0=n.catch(1),h.info("get-api-signature-fail",{error:n.t0,cost:Date.now()-i}),o(n.t0),e._getSignaturePromise=null;case 20:case"end":return n.stop()}},n,e,[[1,15]])}));return function(e,t){return n.apply(this,arguments)}}()))};return l.retryFn(n)}},{key:"configSdk",value:function(){function e(e,n){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t,n){var r=this;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._configSdkPromise||(this._configSdkPromise=new Promise(function(){var e=o(s.default.mark(function e(o,i){var a,c,f,l,p,d;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=void 0,c=Date.now(),e.prev=2,f=r.options,l=f.debug,p=f.jsApiList,r.callbackRegitry||(r.callbackRegitry=!0,wx.ready(function(){r.__sdkConfigResolve()}),wx.error(function(e){r.__sdkConfigReject(e)})),d=u({debug:"boolean"==typeof n?n:l,jsApiList:p},t),h.info("sdk-config-start",d),e.next=9,Promise.race([new Promise(function(e,t){r.__sdkConfigResolve=e,r.__sdkConfigReject=t,wx.config(d)}),new Promise(function(e,t){a=setTimeout(function(){t("init auth timeout")},1e4)})]);case 9:h.info("sdk-config-success",{cost:Date.now()-c}),o(),e.next=19;break;case 13:e.prev=13,e.t0=e.catch(2),h.info("sdk-config-fail",{error:e.t0,cost:Date.now()-c}),r._configSdkPromise=null,r._getSignaturePromise=null,i(e.t0);case 19:return e.prev=19,clearTimeout(a),e.finish(19);case 22:case"end":return e.stop()}},e,r,[[2,13,19,22]])}));return function(t,n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}},e,this)}));return e}()},{key:"initAuth",value:function(){function e(e){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t){var n;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.authReady){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:return e.next=4,this.getSignature();case 4:return n=e.sent,e.next=7,this.configSdk(n,t);case 7:this.authReady=!0;case 8:case"end":return e.stop()}},e,this)}));return e}()},{key:"checkIsMiniprogram",value:function(){var e=this;return this._checkIsMiniprogramPromise||(this._checkIsMiniprogramPromise=new Promise(function(){var t=o(s.default.mark(function t(n,r){var o,i,a;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(){return new Promise(function(e){return wx.miniProgram.getEnv(function(t){return e(t.miniprogram)})})},o=Date.now(),t.prev=2,h.info("check-is-miniprogram-start"),t.next=6,e.initScript();case 6:return o=Date.now(),t.next=9,Promise.race([a(),new Promise(function(e,t){setTimeout(function(){t("wx.miniProgram.getEnv:fail timeout")},1e4)})]);case 9:i=t.sent,h.info("check-is-miniprogram-success",{isMiniProgram:i,cost:Date.now()-o}),n(i),t.next=19;break;case 14:t.prev=14,t.t0=t.catch(2),h.info("check-is-miniprogram-fail",{error:t.t0,cost:Date.now()-o}),r(t.t0),e._checkIsMiniprogramPromise=null;case 19:case"end":return t.stop()}},t,e,[[2,14]])}));return function(e,n){return t.apply(this,arguments)}}()))}},{key:"shareIconFallback",value:function(e){h.info("share-fallback-start");try{var t="__default_share_icon_id",n=document.getElementById(t);n||(n=document.createElement("div"),n.setAttribute("id",t),n.setAttribute("style","width: 0;height:0;overflow: hidden;"),document.body.insertBefore(n,document.body.firstChild)),e=e.replace(/^http:/,"https:"),n.innerHTML='<img src="'+e+'">',h.info("share-fallback-success",{imgUrl:e})}catch(e){h.info("share-fallback-fail",{error:e})}}},{key:"init",value:function(){function e(e){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t){var n=this;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._initPromise||(this._initPromise=new Promise(function(){var e=o(s.default.mark(function e(r,o){return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h.info("init-start"),e.prev=1,n.isInWechat()){e.next=4;break}throw"InvalidEnvironment";case 4:if(n.isDomainValidate()){e.next=6;break}throw"InvalidEnvironment";case 6:return e.next=8,n.initScript();case 8:return e.next=10,n.initAuth(t);case 10:h.info("init-success"),r(),e.next=19;break;case 14:e.prev=14,e.t0=e.catch(1),h.info("init-fail",{error:e.t0}),o(e.t0),n._initPromise=null;case 19:case"end":return e.stop()}},e,n,[[1,14]])}));return function(t,n){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}},e,this)}));return e}()},{key:"share",value:function(){function e(e,n){return t.apply(this,arguments)}var t=o(s.default.mark(function e(t,n){var r,o,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,h.info("share-start",{shareOptions:t,isDebug:n}),e.prev=2,t=a(t),e.next=6,this.checkIsMiniprogram();case 6:if(o=e.sent,!o){e.next=13;break}return h.info("miniprogram-postmessage-start"),i={data:{type:"share",shareConfig:{title:t.timeline.title,url:location.href}}},wx.miniProgram.postMessage(i),h.info("miniprogram-postmessage-success",{postData:JSON.stringify(i)}),e.abrupt("return");case 13:return e.next=15,this.init(n);case 15:wx.onMenuShareTimeline({title:t.timeline.title,link:t.timeline.link,imgUrl:t.timeline.imgUrl,success:t.timeline.success,cancel:t.timeline.cancel}),wx.onMenuShareAppMessage({title:t.friend.title,desc:t.friend.desc,link:t.friend.link,imgUrl:t.friend.imgUrl,type:t.friend.type||"link",success:t.friend.success,cancel:t.friend.cancel}),wx.onMenuShareQQ({title:t.qq.title,desc:t.qq.desc,link:t.qq.link,imgUrl:t.qq.imgUrl,success:t.qq.success,cancel:t.qq.cancel}),wx.onMenuShareWeibo({title:t.weibo.title,desc:t.weibo.desc,link:t.weibo.link,imgUrl:t.weibo.imgUrl,success:t.weibo.success,cancel:t.weibo.cancel}),wx.onMenuShareQZone({title:t.qzone.title,desc:t.qzone.desc,link:t.qzone.link,imgUrl:t.qzone.imgUrl,success:t.qzone.success,cancel:t.qzone.cancel}),h.info("share-setting-success",{shareOptions:r}),e.next=27;break;case 23:return e.prev=23,e.t0=e.catch(2),e.t0&&(h.info("share-setting-fail",{error:e.t0}),t&&t.default&&t.default.imgUrl&&this.shareIconFallback(t.default.imgUrl)),e.abrupt("return",Promise.reject(e.t0));case 27:return e.prev=27,h.flush(),e.finish(27);case 30:case"end":return e.stop()}},e,this,[[2,23,27,30]])}));return e}()}]),e}();e.exports=d},vgsS:function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(){var e=[],t=window.__IDC_DOMAINS__;if("object"===("undefined"==typeof t?"undefined":s(t)))for(var n in t)t[n]===!0&&e.push(n);var r=u.get("uin");return r=r?parseInt(r.replace(/\D/g,""),10):0,{lid:m,born:d,at:Date.now(),path:[location.pathname,location.hash].join("").replace(/^\/#/,""),uin:r,quid:u.get("qcloud_uid"),idcDomains:e.join("; "),idcDomainCount:e.length}}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.app,i=void 0===n?"wechatjssdk":n,a=t.level,s=void 0===a?0:a,u=t.message,f=t.stack,l=r(t,["app","level","message","stack"]);try{var p=c({},o(),{event:e,app:i,level:s,message:u,stack:f},l);l.error&&!u&&(p.message=l.error.message||l.error.msg||l.error.errMsg,p.stack=l.error.stack),"undefined"!=typeof p.code&&(p.code=String(p.code)),h.push(p),g&&console.log("report event: ",e,p)}catch(e){console.warn("push insight queue fail",e)}}function a(e){if("function"==typeof navigator.sendBeacon)navigator.sendBeacon(p,JSON.stringify(e));else{var t=XMLHttpRequest;/msie (\d+)/i.test(navigator.userAgent)&&+RegExp.$1<=9&&"function"==typeof XDomainRequest&&(t=XDomainRequest);var n=new t;n.open("POST",p),n.send(JSON.stringify(e))}}var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s="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},u=n("WPtr"),f=n("N7Fw"),l={INFO:0,WARN:1,ERROR:2},p="https://insight.cloud.tencent.com/event",h=[],d=Date.now(),m=f.gen(),g=location.search.indexOf("!debug")>-1;e.exports={reportInsight:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(e,t),h.length>15&&this.doReport()},flush:function(){this.doReport()},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.reportInsight(e,c({level:l.INFO},t))},warn:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.reportInsight(e,c({level:l.WARN},t))},error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.reportInsight(e,c({level:l.ERROR},t))},doReport:function(){h.length&&a(h),h.length=0}}},WPtr:function(e,t,n){var r,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};!function(i){r=i,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o))}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,o,i){var a;if("undefined"!=typeof document){if(arguments.length>1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,i.expires&&"; expires="+i.expires.toUTCString(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}t||(a={});for(var s=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,f=0;f<s.length;f++){var l=s[f].split("="),p=l.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var h=l[0].replace(u,decodeURIComponent);if(p=n.read?n.read(p,h):n(p,h)||p.replace(u,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(e){}if(t===h){a=p;break}t||(a[h]=p)}catch(e){}}return a}}return r.set=r,r.get=function(e){return r(e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t(function(){})})},N7Fw:function(e,t,n){var r,o;!function(i,a){"use strict";r=a,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o))}(void 0,function(){var e=14603328e5,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],n=62,r=function(e,t){return(e+t).slice(-e.length)},o=function(e){this._opt=e||{}};return o.prototype={_toBase:function(e,n){var r=this._opt,o=r.symbols||t,i="";if(n>o.length||n<=1)return!1;for(;e>=1;)i=o[e-n*Math.floor(e/n)]+i,e=Math.floor(e/n);return n<11?parseInt(i):i},_salts:function(){for(var e=this,t=e._opt,o=t.salts||2,i="",a=0;a<o;a++){var c=Math.floor(3844*Math.random());i+=r("00",e._toBase(c,n))}return i},gen:function(){var t=this,r=t._opt,o=r.interval||1,i=r.initTime||e,a=o>0?Math.floor(((new Date).getTime()-i)/o):0,c=t._salts();return 0===a?c:t._toBase(a,n)+c}},{inst:function(e){return new o(e)},gen:function(e){return new o(e).gen()},uuid:function(){return new o({salts:4}).gen()}}})},"2tW8":function(e,t){(function(t){e.exports=t}).call(t,{})},ViP3:function(e,t){"use strict";e.exports={debug:!1,scriptUrl:"//res.wx.qq.com/open/js/jweixin-1.4.0.js",authUrl:"//"+(location.hostname.indexOf("www.qcloud.com")>-1?"www.qcloud.com":"cloud.tencent.com")+"/services/ajax/get_wechat_api_signature",whiteList:[/www\.qcloud\.com$/,/cloud\.tencent\.com$/],maxRetry:3,jsApiList:["updateAppMessageShareData","updateTimelineShareData","miniProgram","getLocalImgData","startSearchBeacons","stopSearchBeacons","onSearchBeacons","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","startRecord","stopRecord","onVoiceRecordEnd","playVoice","pauseVoice","stopVoice","onVoicePlayEnd","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","translateVoice","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard","checkJSApi"]}}});