UNPKG

tida

Version:

tida

1 lines 15.4 kB
!function(e){function n(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t=window.webpackJsonp;window.webpackJsonp=function(r,o,a){for(var s,u,c,l=0,f=[];l<r.length;l++)u=r[l],i[u]&&f.push(i[u][0]),i[u]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);for(t&&t(r,o,a);f.length;)f.shift()();if(a)for(l=0;l<a.length;l++)c=n(n.s=a[l]);return c};var r={},i={19:0};n.e=function(e){function t(){s.onerror=s.onload=null,clearTimeout(u);var n=i[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),i[e]=void 0)}var r=i[e];if(0===r)return new Promise(function(e){e()});if(r)return r[2];var o=new Promise(function(n,t){r=i[e]=[n,t]});r[2]=o;var a=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.charset="utf-8",s.async=!0,s.timeout=12e4,n.nc&&s.setAttribute("nonce",n.nc),s.src=n.p+""+e+".js";var u=setTimeout(t,12e4);return s.onerror=s.onload=t,a.appendChild(s),o},n.m=e,n.c=r,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e}}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(1),i=t(10),o=(function(e){e&&e.__esModule}(i),{});r.isWeex||t(11),o.call=function(e,n,i,a,s){if(r.isWeex){var u=t(2);u.call&&u.call({class:e,method:n,data:i},a)}else{t(11);"undefined"!=typeof WindVane&&WindVane.isAvailable?(o.isAvailable=WindVane.isAvailable,WindVane.call(e,n,i,a,s)):s&&s({msg:"浏览器不支持 windvane",ret:["HY_NOT_SUPPORT_DEVICE"]})}},n.default=o,e.exports=n.default},function(e,n,t){"use strict";(function(e){var t="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};Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?function(e){return void 0===e?"undefined":t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":t(e)};n.isWeb="object"===("undefined"==typeof navigator?"undefined":r(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),n.isNode=void 0!==e&&!(!e.versions||!e.versions.node),n.isWeex="function"==typeof callNative,n.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig}).call(n,t(3))},,function(e,n,t){"use strict";function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(n){try{return f.call(null,e,0)}catch(n){return f.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(n){try{return d.call(null,e)}catch(n){return d.call(this,e)}}}function s(){m&&v&&(m=!1,v.length?h=v.concat(h):w=-1,h.length&&u())}function u(){if(!m){var e=o(s);m=!0;for(var n=h.length;n;){for(v=h,h=[];++w<n;)v&&v[w].run();w=-1,n=h.length}v=null,m=!1,a(e)}}function c(e,n){this.fun=e,this.array=n}function l(){}var f,d,p=e.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(e){d=i}}();var v,h=[],m=!1,w=-1;p.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];h.push(new c(e,n)),1!==h.length||m||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var 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},i=t(5),o=(function(e){e&&e.__esModule}(i),{newReport:function(e,n,t,r){var i=location.host.split(".")[0];!function(){var a=t+"&domain="+i;window.goldlog?goldlog.record&&goldlog.record(e,n||"",a,r):setTimeout(function(){o.newReport(e,n,t,r)},200)}()},report:function(e){var n=[];if("string"==typeof e)n.push("pos="+e);else if("object"===(void 0===e?"undefined":r(e)))for(var t in e)n.push(t+"="+e[t]);o.newReport("/tida4.wv.record","CLK",n.join("&"),"GET")},error:function(e){var n=[];if("string"==typeof e)n.push("pos="+e);else if("object"===(void 0===e?"undefined":r(e)))for(var t in e)n.push(t+"="+e[t]);o.newReport("/tida4.wv.fail","CLK",n.join("&"),"GET")},faceReport:function(e){var n=[];if("string"==typeof e)n.push("pos="+e);else if("object"===(void 0===e?"undefined":r(e)))for(var t in e)n.push(t+"="+e[t]);o.newReport("/tida4.wv.facelogin","CLK",n.join("&"),"GET")}});n.default=o,e.exports=n.default},function(e,n,t){"use strict";var r=t(20),i=function(e){return e&&e.__esModule?e:{default:e}}(r),o={getParam:function(e,n){var t=e;if(n=n||location.href,-1==n.indexOf(t+"="))return"";n=n.split("#")[0];for(var r,i,o,a=n.indexOf("?")>-1?n.substring(n.indexOf("?")+1):n,s=a.split("&"),u=0;u<s.length;u++)if(-1!=(r=s[u].indexOf("="))&&(i=s[u].substring(0,r),o=s[u].substring(r+1),i==t))return decodeURIComponent(o.replace(/\+/g," "));return""},addParama:function(e,n,t){var r=e.split("?")[1],i=e.split("?")[0];if(r){for(var o=r.split("&"),a=[],s=0,u=0;u<o.length;u++)if(o[u]){var c=o[u].split("=");n==c[0]?(s=1,a.push(n+"="+t)):"page"!=c[0]&&"token"!=c[0]&&a.push(o[u])}s||a.push(n+"="+t),e=i+"?"+a.join("&")}else e=i+"?"+n+"="+t;return e},requiredParam:function(e,n){function t(n){return!Object.keys(e).includes(n)}var r=n.filter(t);if(r.length>0)throw new i.default.paramException(r);return 0==r.length},getTimout:function(e){return void 0!=e[e.length-1]?e[e.length-1]:(e.pop(),this.getTimout(e))}};e.exports=o},,,,,function(e,n,t){"use strict";!function(e,n){function t(e){Object.defineProperty(this,"val",{value:e.toString(),enumerable:!0}),this.gt=function(e){return t.compare(this,e)>0},this.gte=function(e){return t.compare(this,e)>=0},this.lt=function(e){return t.compare(this,e)<0},this.lte=function(e){return t.compare(this,e)<=0},this.eq=function(e){return 0===t.compare(this,e)}}n.env=n.env||{},t.prototype.toString=function(){return this.val},t.prototype.valueOf=function(){for(var e=this.val.split("."),n=[],t=0;t<e.length;t++){var r=parseInt(e[t],10);isNaN(r)&&(r=0);var i=r.toString();i.length<5&&(i=Array(6-i.length).join("0")+i),n.push(i),1===n.length&&n.push(".")}return parseFloat(n.join(""))},t.compare=function(e,n){e=e.toString().split("."),n=n.toString().split(".");for(var t=0;t<e.length||t<n.length;t++){var r=parseInt(e[t],10),i=parseInt(n[t],10);if(window.isNaN(r)&&(r=0),window.isNaN(i)&&(i=0),i>r)return-1;if(r>i)return 1}return 0},n.version=function(e){return new t(e)}}(window,window.lib||(window.lib={})),function(e,n){n.env=n.env||{};var t=e.location.search.replace(/^\?/,"");if(n.env.params={},t)for(var r=t.split("&"),i=0;i<r.length;i++){var o=r[i].split("=")[0],a=o+"=",s=r[i].split(a)[1];r[i]=r[i].split("=");try{n.env.params[r[i][0]]=decodeURIComponent(s)}catch(e){n.env.params[r[i][0]]=s}}}(window,window.lib||(window.lib={})),function(e,n){n.env=n.env||{};var t,r=e.navigator.userAgent;if(t=r.match(/Windows\sPhone\s(?:OS\s)?([\d\.]+)/))n.env.os={name:"Windows Phone",isWindowsPhone:!0,version:t[1]};else if(r.match(/Safari/)&&(t=r.match(/Android[\s\/]([\d\.]+)/)))n.env.os={version:t[1]},r.match(/Mobile\s+Safari/)?(n.env.os.name="Android",n.env.os.isAndroid=!0):(n.env.os.name="AndroidPad",n.env.os.isAndroidPad=!0);else if(t=r.match(/(iPhone|iPad|iPod)/)){var i=t[1];(t=r.match(/OS ([\d_\.]+) like Mac OS X/))&&(n.env.os={name:i,isIPhone:"iPhone"===i||"iPod"===i,isIPad:"iPad"===i,isIOS:!0,version:t[1].split("_").join(".")})}n.env.os||(n.env.os={name:"unknown",version:"0.0.0"}),n.version&&(n.env.os.version=n.version(n.env.os.version))}(window,window.lib||(window.lib={})),function(e,n){n.env=n.env||{};var t,r=e.navigator.userAgent;(t=r.match(/(?:UCWEB|UCBrowser\/)([\d\.]+)/))?n.env.browser={name:"UC",isUC:!0,version:t[1]}:(t=r.match(/MQQBrowser\/([\d\.]+)/))?n.env.browser={name:"QQ",isQQ:!0,version:t[1]}:(t=r.match(/(?:Firefox|FxiOS)\/([\d\.]+)/))?n.env.browser={name:"Firefox",isFirefox:!0,version:t[1]}:(t=r.match(/MSIE\s([\d\.]+)/))||(t=r.match(/IEMobile\/([\d\.]+)/))?(n.env.browser={version:t[1]},r.match(/IEMobile/)?(n.env.browser.name="IEMobile",n.env.browser.isIEMobile=!0):(n.env.browser.name="IE",n.env.browser.isIE=!0),r.match(/Android|iPhone/)&&(n.env.browser.isIELikeWebkit=!0)):(t=r.match(/(?:Chrome|CriOS)\/([\d\.]+)/))?(n.env.browser={name:"Chrome",isChrome:!0,version:t[1]},r.match(/Version\/[\d+\.]+\s*Chrome/)&&(n.env.browser.name="Chrome Webview",n.env.browser.isWebview=!0)):r.match(/Safari/)&&(t=r.match(/Android[\s\/]([\d\.]+)/))?n.env.browser={name:"Android",isAndroid:!0,version:t[1]}:r.match(/iPhone|iPad|iPod/)&&(r.match(/Safari/)&&(t=r.match(/Version\/([\d\.]+)/))?n.env.browser={name:"Safari",isSafari:!0,version:t[1]}:(t=r.match(/OS ([\d_\.]+) like Mac OS X/))&&(n.env.browser={name:"iOS Webview",isWebview:!0,version:t[1].replace(/\_/g,".")})),n.env.browser||(n.env.browser={name:"unknown",version:"0.0.0"}),n.version&&(n.env.browser.version=n.version(n.env.browser.version))}(window,window.lib||(window.lib={})),function(e,n){n.env=n.env||{};var t=e.navigator.userAgent;t.match(/Weibo/i)?n.env.thirdapp={appname:"Weibo",isWeibo:!0}:t.match(/MicroMessenger/i)?n.env.thirdapp={appname:"Weixin",isWeixin:!0}:n.env.thirdapp=!1}(window,window.lib||(window.lib={})),function(e,n){n.env=n.env||{};var t,r,i=e.navigator.userAgent;(r=i.match(/WindVane[\/\s]([\d\.\_]+)/))&&(t=r[1]);var o=!1,a="",s="",u="",c=e._ua_popLayer||"",l=!1,f="";(r=i.match(/AliApp\(([A-Z\-]+)\/([\d\.]+)\)/i))&&(o=!0,a=r[1],u=r[2],s=a.indexOf("-PD")>0?n.env.os.isIOS?"iPad":n.env.os.isAndroid?"AndroidPad":n.env.os.name:n.env.os.name),!a&&i.indexOf("TBIOS")>0&&(a="TB"),c&&(r=c.match(/PopLayer\/([\d\.]+)/i))&&(l=!0,f=r[1]),n.env.aliapp=!!o&&{windvane:n.version(t||"0.0.0"),appname:a||"unkown",version:n.version(u||"0.0.0"),platform:s||n.env.os.name,poplayer:l||!1,poplayerVersion:n.version(f||"0.0.0")},n.env.taobaoApp=n.env.aliapp}(window,window.lib||(window.lib={})),e.exports=window.lib},function(e,n,t){"use strict";var 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};!function(e,n){var t=e.Promise,i=e.document,o=e.navigator.userAgent,a=/Windows\sPhone\s(?:OS\s)?[\d\.]+/i.test(o)||/Windows\sNT\s[\d\.]+/i.test(o),s=a&&e.WindVane_Win_Private&&e.WindVane_Win_Private.call,u=/iPhone|iPad|iPod/i.test(o),c=/Android/i.test(o),l=o.match(/WindVane[\/\s](\d+[._]\d+[._]\d+)/),f=Object.prototype.hasOwnProperty,d=n.windvane=e.WindVane||(e.WindVane={}),p=(e.WindVane_Native,Math.floor(65536*Math.random())),v=1,h=[];l=l?(l[1]||"0.0.0").replace(/\_/g,"."):"0.0.0";var m={isAvailable:1===function(e,n){e=e.toString().split("."),n=n.toString().split(".");for(var t=0;t<e.length||t<n.length;t++){var r=parseInt(e[t],10),i=parseInt(n[t],10);if(window.isNaN(r)&&(r=0),window.isNaN(i)&&(i=0),r<i)return-1;if(r>i)return 1}return 0}(l,"0"),call:function(e,n,r,i,o,a){var s,u;"number"==typeof arguments[arguments.length-1]&&(a=arguments[arguments.length-1]),"function"!=typeof i&&(i=null),"function"!=typeof o&&(o=null),t&&(u={},u.promise=new t(function(e,n){u.resolve=e,u.reject=n})),s=w.getSid();var c={success:i,failure:o,deferred:u};if(a>0&&(c.timeout=setTimeout(function(){m.onFailure(s,{ret:"HY_TIMEOUT"})},a)),w.registerCall(s,c),w.registerGC(s,a),m.isAvailable?w.callMethod(e,n,r,s):m.onFailure(s,{ret:"HY_NOT_IN_WINDVANE"}),u)return u.promise},fireEvent:function(e,n,t){var r=i.createEvent("HTMLEvents");r.initEvent(e,!1,!0),r.param=w.parseData(n||w.getData(t)),i.dispatchEvent(r)},getParam:function(e){return w.getParam(e)},setData:function(e,n){w.setData(e,n)},onSuccess:function(e,n){w.onComplete(e,n,"success")},onFailure:function(e,n){w.onComplete(e,n,"failure")}},w={params:{},chunks:{},calls:{},getSid:function(){return(p+v++)%65536+""},buildParam:function(e){return e&&"object"===(void 0===e?"undefined":r(e))?JSON.stringify(e):e||""},getParam:function(e){return this.params["param_"+e]||""},setParam:function(e,n){this.params["param_"+e]=n},parseData:function(e){var n;if(e&&"string"==typeof e)try{n=JSON.parse(e)}catch(e){n={ret:["WV_ERR::PARAM_PARSE_ERROR"]}}else n=e||{};return n},setData:function(){this.chunks["chunk_"+sid]=this.chunks["chunk_"+sid]||[],this.chunks["chunk_"+sid].push(chunk)},getData:function(e){return this.chunks["chunk_"+e]?this.chunks["chunk_"+e].join(""):""},registerCall:function(e,n){this.calls[e]=n},unregisterCall:function(e){var n={};return this.calls[e]&&(n=this.calls[e],delete this.calls[e]),n},useIframe:function(e,n){var t="iframe_"+e,r=h.pop();r||(r=i.createElement("iframe"),r.setAttribute("frameborder","0"),r.style.cssText="width:0;height:0;border:0;display:none;"),r.setAttribute("id",t),r.setAttribute("src",n),r.parentNode||setTimeout(function(){i.body.appendChild(r)},5)},retrieveIframe:function(e){var n="iframe_"+e,t=i.querySelector("#"+n);h.length>=3?i.body.removeChild(t):h.indexOf(t)<0&&h.push(t)},callMethod:function(n,t,r,i){if(r=w.buildParam(r),a)s?e.WindVane_Win_Private.call(n,t,i,r):this.onComplete(i,{ret:"HY_NO_HANDLER_ON_WP"},"failure");else{var o="hybrid://"+n+":"+i+"/"+t+"?"+r;if(u)this.setParam(i,r),this.useIframe(i,o);else if(c){window.prompt(o,"wv_hybrid:")}else this.onComplete(i,{ret:"HY_NOT_SUPPORT_DEVICE"},"failure")}},registerGC:function(e,n){var t=this,r=Math.max(n||0,6e5),i=Math.max(n||0,6e4),o=Math.max(n||0,6e5);setTimeout(function(){t.unregisterCall(e)},r),u?setTimeout(function(){t.params["param_"+e]&&delete t.params["param_"+e]},i):c&&setTimeout(function(){t.chunks["chunk_"+e]&&delete t.chunks["chunk_"+e]},o)},onComplete:function(e,n,t){var r=this.unregisterCall(e),i=r.success,o=r.failure,a=r.deferred,s=r.timeout;s&&clearTimeout(s),n=n||this.getData(e),n=this.parseData(n);var l=n.ret;"string"==typeof l&&(n=n.value||n,n.ret||(n.ret=[l])),"success"===t?(i&&i(n),a&&a.resolve(n)):"failure"===t&&(o&&o(n),a&&a.reject(n)),u?(this.retrieveIframe(e),this.params["param_"+e]&&delete this.params["param_"+e]):c&&this.chunks["chunk_"+e]&&delete this.chunks["chunk_"+e]}};for(var b in m)f.call(d,b)||(d[b]=m[b]);e.WindVane=d}(window,window.lib||(window.lib={}))},,,,,,,,,function(e,n,t){"use strict";e.exports={paramException:function(e){this.message="param '"+e.join(", ")+"' should be required!",this.name="paramException"}}}]);