fastman2 2.7.5 → 2.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domman.js +1 -1
- package/fastman3-miniprogram-bridge/fastman3-miniprogram-bridge-1.0.0.js +1 -0
- package/package.json +1 -1
- package/third-jsbridge/dfgj-jsbridge-1.0.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.0.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.1.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.10.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.11.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.2.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.3.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.4.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.5.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.6.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.7.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.8.js +1 -0
- package/third-jsbridge/dfzq-jsbridge-1.9.js +1 -0
- package/third-jsbridge/jsbridgeman.js +1 -0
- package/third-jsbridge/tools.js +1 -0
- package/third-jsbridge/wxPay.js +1 -0
package/domman.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fastman=e():t.fastman=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n=window.webpackJsonpfastman;window.webpackJsonpfastman=function(i,o,a){for(var s,u,c,l=0,f=[];l<i.length;l++)u=i[l],r[u]&&f.push(r[u][0]),r[u]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s]);for(n&&n(i,o,a);f.length;)f.shift()();if(a)for(l=0;l<a.length;l++)c=e(e.s=a[l]);return c};var i={},r={32:0};return e.e=function(t){function n(){s.onerror=s.onload=null,clearTimeout(u);var e=r[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),r[t]=void 0)}var i=r[t];if(0===i)return new Promise(function(t){t()});if(i)return i[2];var o=new Promise(function(e,n){i=r[t]=[e,n]});i[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,e.nc&&s.setAttribute("nonce",e.nc),s.src=e.p+""+t+".js";var u=setTimeout(n,12e4);return s.onerror=s.onload=n,a.appendChild(s),o},e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw t},e(e.s=232)}({103:function(t,e,n){"use strict";var i={},r=navigator.userAgent,o=r.match(/(Android);?[\s\/]+([\d.]+)?/),a=r.match(/(iPad).*OS\s([\d_]+)/),s=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!a&&r.match(/(iPhone\sOS)\s([\d_]+)/),c=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^?]+).*rv:([0-9.].)/);if(i.ios=i.android=i.iphone=i.ipad=i.androidChrome=i.ie=!1,o&&(i.os="android",i.osVersion=o[2],i.android=!0,i.androidChrome=r.toLowerCase().indexOf("chrome")>=0),(a||u||s)&&(i.os="ios",i.ios=!0),u&&!s&&(i.osVersion=u[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&r.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=r.toLowerCase().split("version/")[1].split(" ")[0]),c&&(i.ie=!0,i.ieVersion=c[1]),i.hasNativeHistory=history&&history.pushState,i.webView=(u||a||s)&&r.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var l=i.osVersion.split(".");i.minimalUi=!i.webView&&(s||u)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&$('meta[name="viewport"]').length>0&&$('meta[name="viewport"]').attr("content").indexOf("minimal-ui")>=0}var f=$(window).width(),h=$(window).height();i.statusBar=!1,i.webView&&f*h==screen.width*screen.height?i.statusBar=!0:i.statusBar=!1;var p=[];if(i.pixelRatio=window.devicePixelRatio||1,p.push("pixel-ratio-"+Math.floor(i.pixelRatio)),i.pixelRatio>=2&&p.push("retina"),i.os&&(p.push(i.os,i.os+"-"+i.osVersion.split(".")[0],i.os+"-"+i.osVersion.replace(/\./g,"-")),"ios"===i.os))for(var d=parseInt(i.osVersion.split(".")[0],10),m=d-1;m>=6;m--)p.push("ios-gt-"+m);i.statusBar?p.push("with-statusbar-overlay"):$("html").removeClass("with-statusbar-overlay"),p.length>0&&$("html").addClass(p.join(" ")),i.isWeixin=/MicroMessenger/i.test(r),$.device=i},105:function(t,e){!function(t){function e(e,n,i){var r=t.Event(n);return t(e).trigger(r,i),!r.isDefaultPrevented()}function n(t,n,i,r){if(t.global)return e(n||w,i,r)}function i(e){e.global&&0==t.active++&&n(e,null,"ajaxStart")}function r(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var i=e.context;if(!1===e.beforeSend.call(i,t,e)||!1===n(e,i,"ajaxBeforeSend",[t,e]))return!1;n(e,i,"ajaxSend",[t,e])}function a(t,e,i,r){var o=i.context;i.success.call(o,t,"success",e),r&&r.resolveWith(o,[t,"success",e]),n(i,o,"ajaxSuccess",[e,i,t]),u("success",e,i)}function s(t,e,i,r,o){var a=r.context;r.error.call(a,i,e,t),o&&o.rejectWith(a,[i,e,t]),n(r,a,"ajaxError",[i,r,t||e]),u(e,i,r)}function u(t,e,i){var o=i.context;i.complete.call(o,e,t),n(i,o,"ajaxComplete",[e,i]),r(i)}function c(t,e,n){if(n.dataFilter==l)return t;var i=n.context;return n.dataFilter.call(i,t,e)}function l(){}function f(t){return t&&(t=t.split(";",2)[0]),t&&(t==S?"html":t==T?"json":x.test(t)?"script":E.test(t)&&"xml")||"text"}function h(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function p(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=h(e.url,e.data),e.data=void 0)}function d(e,n,i,r){return t.isFunction(n)&&(r=i,i=n,n=void 0),t.isFunction(i)||(r=i,i=void 0),{url:e,data:n,success:i,dataType:r}}function m(e,n,i,r){var o,a=t.isArray(n),s=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),r&&(n=i?r:r+"["+(s||"object"==o||"array"==o?n:"")+"]"),!r&&a?e.add(u.name,u.value):"array"==o||!i&&"object"==o?m(e,u,i,n):e.add(n,u)})}var v,g,y=+new Date,w=window.document,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,x=/^(?:text|application)\/javascript/i,E=/^(?:text|application)\/xml/i,T="application/json",S="text/html",C=/^\s*$/,j=w.createElement("a");j.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,n){if(!("type"in e))return t.ajax(e);var i,r,u=e.jsonpCallback,c=(t.isFunction(u)?u():u)||"Zepto"+y++,l=w.createElement("script"),f=window[c],h=function(e){t(l).triggerHandler("error",e||"abort")},p={abort:h};return n&&n.promise(p),t(l).on("load error",function(o,u){clearTimeout(r),t(l).off().remove(),"error"!=o.type&&i?a(i[0],p,e,n):s(null,u||"error",p,e,n),window[c]=f,i&&t.isFunction(f)&&f(i[0]),f=i=void 0}),!1===o(p,e)?(h("abort"),p):(window[c]=function(){i=arguments},l.src=e.url.replace(/\?(.+)=\?/,"?$1="+c),w.head.appendChild(l),e.timeout>0&&(r=setTimeout(function(){h("timeout")},e.timeout)),p)},t.ajaxSettings={type:"GET",beforeSend:l,success:l,error:l,complete:l,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:T,xml:"application/xml, text/xml",html:S,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:l},t.ajax=function(e){var n,r,u=t.extend({},e||{}),d=t.Deferred&&t.Deferred();for(v in t.ajaxSettings)void 0===u[v]&&(u[v]=t.ajaxSettings[v]);i(u),u.crossDomain||(n=w.createElement("a"),n.href=u.url,n.href=n.href,u.crossDomain=j.protocol+"//"+j.host!=n.protocol+"//"+n.host),u.url||(u.url=window.location.toString()),(r=u.url.indexOf("#"))>-1&&(u.url=u.url.slice(0,r)),p(u);var m=u.dataType,y=/\?.+=\?/.test(u.url);if(y&&(m="jsonp"),!1!==u.cache&&(e&&!0===e.cache||"script"!=m&&"jsonp"!=m)||(u.url=h(u.url,"_="+Date.now())),"jsonp"==m)return y||(u.url=h(u.url,u.jsonp?u.jsonp+"=?":!1===u.jsonp?"":"callback=?")),t.ajaxJSONP(u,d);var b,x=u.accepts[m],E={},T=function(t,e){E[t.toLowerCase()]=[t,e]},S=/^([\w-]+:)\/\//.test(u.url)?RegExp.$1:window.location.protocol,A=u.xhr(),$=A.setRequestHeader;if(d&&d.promise(A),u.crossDomain||T("X-Requested-With","XMLHttpRequest"),T("Accept",x||"*/*"),(x=u.mimeType||x)&&(x.indexOf(",")>-1&&(x=x.split(",",2)[0]),A.overrideMimeType&&A.overrideMimeType(x)),(u.contentType||!1!==u.contentType&&u.data&&"GET"!=u.type.toUpperCase())&&T("Content-Type",u.contentType||"application/x-www-form-urlencoded"),u.headers)for(g in u.headers)T(g,u.headers[g]);if(A.setRequestHeader=T,A.onreadystatechange=function(){if(4==A.readyState){A.onreadystatechange=l,clearTimeout(b);var e,n=!1;if(A.status>=200&&A.status<300||304==A.status||0==A.status&&"file:"==S){if(m=m||f(u.mimeType||A.getResponseHeader("content-type")),"arraybuffer"==A.responseType||"blob"==A.responseType)e=A.response;else{e=A.responseText;try{e=c(e,m,u),"script"==m?(0,eval)(e):"xml"==m?e=A.responseXML:"json"==m&&(e=C.test(e)?null:t.parseJSON(e))}catch(t){n=t}if(n)return s(n,"parsererror",A,u,d)}a(e,A,u,d)}else s(A.statusText||null,A.status?"error":"abort",A,u,d)}},!1===o(A,u))return A.abort(),s(null,"abort",A,u,d),A;var M=!("async"in u)||u.async;if(A.open(u.type,u.url,M,u.username,u.password),u.xhrFields)for(g in u.xhrFields)A[g]=u.xhrFields[g];for(g in E)$.apply(A,E[g]);return u.timeout>0&&(b=setTimeout(function(){A.onreadystatechange=l,A.abort(),s(null,"timeout",A,u,d)},u.timeout)),A.send(u.data?u.data:null),A},t.get=function(){return t.ajax(d.apply(null,arguments))},t.post=function(){var e=d.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=d.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,i){if(!this.length)return this;var r,o=this,a=e.split(/\s/),s=d(e,n,i),u=s.success;return a.length>1&&(s.url=a[0],r=a[1]),s.success=function(e){o.html(r?t("<div>").html(e.replace(b,"")).find(r):e),u&&u.apply(o,arguments)},t.ajax(s),this};var A=encodeURIComponent;t.param=function(e,n){var i=[];return i.add=function(e,n){t.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(A(e)+"="+A(n))},m(i,e,n),i.join("&").replace(/%20/g,"+")}}(Zepto)},106:function(t,e){!function(t){function e(e,i){var u=e[s],c=u&&r[u];if(void 0===i)return c||n(e);if(c){if(i in c)return c[i];var l=a(i);if(l in c)return c[l]}return o.call(t(e),i)}function n(e,n,o){var u=e[s]||(e[s]=++t.uuid),c=r[u]||(r[u]=i(e));return void 0!==n&&(c[a(n)]=o),c}function i(e){var n={};return t.each(e.attributes||u,function(e,i){0==i.name.indexOf("data-")&&(n[a(i.name.replace("data-",""))]=t.zepto.deserializeValue(i.value))}),n}var r={},o=t.fn.data,a=t.camelCase,s=t.expando="Zepto"+ +new Date,u=[];t.fn.data=function(i,r){return void 0===r?t.isPlainObject(i)?this.each(function(e,r){t.each(i,function(t,e){n(r,t,e)})}):0 in this?e(this[0],i):void 0:this.each(function(){n(this,i,r)})},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(e){var n=e[s],i=n&&r[n];return!!i&&!t.isEmptyObject(i)},t.fn.removeData=function(e){return"string"==typeof e&&(e=e.split(/\s+/)),this.each(function(){var n=this[s],i=n&&r[n];i&&t.each(e||i,function(t){delete i[e?a(this):t]})})},["remove","empty"].forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(Zepto)},107:function(t,e){!function(t){function e(t){return t._zid||(t._zid=h++)}function n(t,n,o,a){if(n=i(n),n.ns)var s=r(n.ns);return(v[e(t)]||[]).filter(function(t){return t&&(!n.e||t.e==n.e)&&(!n.ns||s.test(t.ns))&&(!o||e(t.fn)===e(o))&&(!a||t.sel==a)})}function i(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function r(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&!y&&t.e in w||!!e}function a(t){return b[t]||y&&w[t]||t}function s(n,r,s,u,l,h,p){var d=e(n),m=v[d]||(v[d]=[]);r.split(/\s/).forEach(function(e){if("ready"==e)return t(document).ready(s);var r=i(e);r.fn=s,r.sel=l,r.e in b&&(s=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return r.fn.apply(this,arguments)}),r.del=h;var d=h||s;r.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var e=d.apply(n,t._args==f?[t]:[t].concat(t._args));return!1===e&&(t.preventDefault(),t.stopPropagation()),e}},r.i=m.length,m.push(r),"addEventListener"in n&&n.addEventListener(a(r.e),r.proxy,o(r,p))})}function u(t,i,r,s,u){var c=e(t);(i||"").split(/\s/).forEach(function(e){n(t,e,r,s).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(a(e.e),e.proxy,o(e,u))})})}function c(e,n){return!n&&e.isDefaultPrevented||(n||(n=e),t.each(S,function(t,i){var r=n[t];e[t]=function(){return this[i]=x,r&&r.apply(n,arguments)},e[i]=E}),e.timeStamp||(e.timeStamp=Date.now()),(n.defaultPrevented!==f?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=x)),e}function l(t){var e,n={originalEvent:t};for(e in t)T.test(e)||t[e]===f||(n[e]=t[e]);return c(n,t)}var f,h=1,p=Array.prototype.slice,d=t.isFunction,m=function(t){return"string"==typeof t},v={},g={},y="onfocusin"in window,w={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};g.click=g.mousedown=g.mouseup=g.mousemove="MouseEvents",t.event={add:s,remove:u},t.proxy=function(n,i){var r=2 in arguments&&p.call(arguments,2);if(d(n)){var o=function(){return n.apply(i,r?r.concat(p.call(arguments)):arguments)};return o._zid=e(n),o}if(m(i))return r?(r.unshift(n[i],n),t.proxy.apply(null,r)):t.proxy(n[i],n);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},E=function(){return!1},T=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,S={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,i,r,o){var a,c,h=this;return e&&!m(e)?(t.each(e,function(t,e){h.on(t,n,i,e,o)}),h):(m(n)||d(r)||!1===r||(r=i,i=n,n=f),r!==f&&!1!==i||(r=i,i=f),!1===r&&(r=E),h.each(function(f,h){o&&(a=function(t){return u(h,t.type,r),r.apply(this,arguments)}),n&&(c=function(e){var i,o=t(e.target).closest(n,h).get(0);if(o&&o!==h)return i=t.extend(l(e),{currentTarget:o,liveFired:h}),(a||r).apply(o,[i].concat(p.call(arguments,1)))}),s(h,e,r,i,n,c||a)}))},t.fn.off=function(e,n,i){var r=this;return e&&!m(e)?(t.each(e,function(t,e){r.off(t,n,e)}),r):(m(n)||d(i)||!1===i||(i=n,n=f),!1===i&&(i=E),r.each(function(){u(this,e,i,n)}))},t.fn.trigger=function(e,n){return e=m(e)||t.isPlainObject(e)?t.Event(e):c(e),e._args=n,this.each(function(){e.type in w&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,i){var r,o;return this.each(function(a,s){r=l(m(e)?t.Event(e):e),r._args=i,r.target=s,t.each(n(s,e.type||e),function(t,e){if(o=e.proxy(r),r.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),t.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(g[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),c(n)}}(Zepto)},108:function(t,e){var n=function(){function t(t){return null==t?String(t):X[J.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function i(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function r(e){return"object"==t(e)}function o(t){return r(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function a(t){var e=!!t&&"length"in t&&t.length,i=S.type(t);return"function"!=i&&!n(t)&&("array"==i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t){return P.call(t,function(t){return null!=t})}function u(t){return t.length>0?S.fn.concat.apply([],t):t}function c(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in V?V[t]:V[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function f(t,e){return"number"!=typeof e||F[c(t)]?e:e+"px"}function h(t){var e,n;return D[t]||(e=O.createElement(t),O.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),D[t]=n),D[t]}function p(t){return"children"in t?N.call(t.children):S.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function d(t,e){var n,i=t?t.length:0;for(n=0;n<i;n++)this[n]=t[n];this.length=i,this.selector=e||""}function m(t,e,n){for(T in e)n&&(o(e[T])||Q(e[T]))?(o(e[T])&&!o(t[T])&&(t[T]={}),Q(e[T])&&!Q(t[T])&&(t[T]=[]),m(t[T],e[T],n)):e[T]!==E&&(t[T]=e[T])}function v(t,e){return null==e?S(t):S(t).filter(e)}function g(t,n,i,r){return e(n)?n.call(t,i,r):n}function y(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function w(t,e){var n=t.className||"",i=n&&n.baseVal!==E;if(e===E)return i?n.baseVal:n;i?n.baseVal=e:t.className=e}function b(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?S.parseJSON(t):t):t}catch(e){return t}}function x(t,e){e(t);for(var n=0,i=t.childNodes.length;n<i;n++)x(t.childNodes[n],e)}var E,T,S,C,j,A,$=[],M=$.concat,P=$.filter,N=$.slice,O=window.document,D={},V={},F={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},k=/^\s*<(\w+|!)[^>]*>/,L=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,_=/^(?:body|html)$/i,R=/([A-Z])/g,q=["val","css","html","text","data","width","height","offset"],I=["after","prepend","before","append"],Z=O.createElement("table"),B=O.createElement("tr"),U={tr:O.createElement("tbody"),tbody:Z,thead:Z,tfoot:Z,td:B,th:B,"*":O.createElement("div")},H=/complete|loaded|interactive/,W=/^[\w-]*$/,X={},J=X.toString,Y={},G=O.createElement("div"),K={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(t){return t instanceof Array};return Y.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=G).appendChild(t),i=~Y.qsa(r,e).indexOf(t),o&&G.removeChild(t),i},j=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},A=function(t){return P.call(t,function(e,n){return t.indexOf(e)==n})},Y.fragment=function(t,e,n){var i,r,a;return L.test(t)&&(i=S(O.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(z,"<$1></$2>")),e===E&&(e=k.test(t)&&RegExp.$1),e in U||(e="*"),a=U[e],a.innerHTML=""+t,i=S.each(N.call(a.childNodes),function(){a.removeChild(this)})),o(n)&&(r=S(i),S.each(n,function(t,e){q.indexOf(t)>-1?r[t](e):r.attr(t,e)})),i},Y.Z=function(t,e){return new d(t,e)},Y.isZ=function(t){return t instanceof Y.Z},Y.init=function(t,n){var i;if(!t)return Y.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&k.test(t))i=Y.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return S(n).find(t);i=Y.qsa(O,t)}else{if(e(t))return S(O).ready(t);if(Y.isZ(t))return t;if(Q(t))i=s(t);else if(r(t))i=[t],t=null;else if(k.test(t))i=Y.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return S(n).find(t);i=Y.qsa(O,t)}}return Y.Z(i,t)},S=function(t,e){return Y.init(t,e)},S.extend=function(t){var e,n=N.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){m(t,n,e)}),t},Y.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],o=i||r?e.slice(1):e,a=W.test(o);return t.getElementById&&a&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:N.call(a&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},S.contains=O.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},S.type=t,S.isFunction=e,S.isWindow=n,S.isArray=Q,S.isPlainObject=o,S.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},S.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},S.inArray=function(t,e,n){return $.indexOf.call(e,t,n)},S.camelCase=j,S.trim=function(t){return null==t?"":String.prototype.trim.call(t)},S.uuid=0,S.support={},S.expr={},S.noop=function(){},S.map=function(t,e){var n,i,r,o=[];if(a(t))for(i=0;i<t.length;i++)null!=(n=e(t[i],i))&&o.push(n);else for(r in t)null!=(n=e(t[r],r))&&o.push(n);return u(o)},S.each=function(t,e){var n,i;if(a(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(i in t)if(!1===e.call(t[i],i,t[i]))return t;return t},S.grep=function(t,e){return P.call(t,e)},window.JSON&&(S.parseJSON=JSON.parse),S.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){X["[object "+e+"]"]=e.toLowerCase()}),S.fn={constructor:Y.Z,length:0,forEach:$.forEach,reduce:$.reduce,push:$.push,sort:$.sort,splice:$.splice,indexOf:$.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=Y.isZ(e)?e.toArray():e;return M.apply(Y.isZ(this)?this.toArray():this,n)},map:function(t){return S(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return S(N.apply(this,arguments))},ready:function(t){return H.test(O.readyState)&&O.body?t(S):O.addEventListener("DOMContentLoaded",function(){t(S)},!1),this},get:function(t){return t===E?N.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return $.every.call(this,function(e,n){return!1!==t.call(e,n,e)}),this},filter:function(t){return e(t)?this.not(this.not(t)):S(P.call(this,function(e){return Y.matches(e,t)}))},add:function(t,e){return S(A(this.concat(S(t,e))))},is:function(t){return this.length>0&&Y.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):a(t)&&e(t.item)?N.call(t):S(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return S(n)},has:function(t){return this.filter(function(){return r(t)?S.contains(this,t):S(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:S(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:S(t)},find:function(t){var e=this;return t?"object"==typeof t?S(t).filter(function(){var t=this;return $.some.call(e,function(e){return S.contains(e,t)})}):1==this.length?S(Y.qsa(this[0],t)):this.map(function(){return Y.qsa(this,t)}):S()},closest:function(t,e){var n=[],r="object"==typeof t&&S(t);return this.each(function(o,a){for(;a&&!(r?r.indexOf(a)>=0:Y.matches(a,t));)a=a!==e&&!i(a)&&a.parentNode;a&&n.indexOf(a)<0&&n.push(a)}),S(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=S.map(n,function(t){if((t=t.parentNode)&&!i(t)&&e.indexOf(t)<0)return e.push(t),t});return v(e,t)},parent:function(t){return v(A(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return p(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||N.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,e){return P.call(p(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return S.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var i=S(t).get(0),r=i.parentNode||this.length>1;return this.each(function(e){S(this).wrapAll(n?t.call(this,e):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){S(this[0]).before(t=S(t));for(var e;(e=t.children()).length;)t=e.first();S(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var i=S(this),r=i.contents(),o=n?t.call(this,e):t;r.length?r.wrapAll(o):i.append(o)})},unwrap:function(){return this.parent().each(function(){S(this).replaceWith(S(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=S(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return S(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return S(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;S(this).empty().append(g(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=g(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(r(t))for(T in t)y(this,T,t[T]);else y(this,t,g(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){y(this,t)},this)})},prop:function(t,e){return t=K[t]||t,1 in arguments?this.each(function(n){this[t]=g(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=K[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(R,"-$1").toLowerCase(),i=1 in arguments?this.attr(n,e):this.attr(n);return null!==i?b(i):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=g(this,t,e,this.value)})):this[0]&&(this[0].multiple?S(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var n=S(this),i=g(this,t,e,n.offset()),r=n.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(O.documentElement!==this[0]&&!S.contains(O.documentElement,this[0]))return{top:0,left:0};var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[j(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(Q(e)){if(!i)return;var r={},o=getComputedStyle(i,"");return S.each(e,function(t,e){r[e]=i.style[j(e)]||o.getPropertyValue(e)}),r}}var a="";if("string"==t(e))n||0===n?a=c(e)+":"+f(e,n):this.each(function(){this.style.removeProperty(c(e))});else for(T in e)e[T]||0===e[T]?a+=c(T)+":"+f(T,e[T])+";":this.each(function(){this.style.removeProperty(c(T))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(S(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&$.some.call(this,function(t){return this.test(w(t))},l(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){C=[];var n=w(this);g(this,t,e,n).split(/\s+/g).forEach(function(t){S(this).hasClass(t)||C.push(t)},this),C.length&&w(this,n+(n?" ":"")+C.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return w(this,"");C=w(this),g(this,t,e,C).split(/\s+/g).forEach(function(t){C=C.replace(l(t)," ")}),w(this,C.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var i=S(this);g(this,t,n,w(this)).split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=_.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(S(t).css("margin-top"))||0,n.left-=parseFloat(S(t).css("margin-left"))||0,i.top+=parseFloat(S(e[0]).css("border-top-width"))||0,i.left+=parseFloat(S(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||O.body;t&&!_.test(t.nodeName)&&"static"==S(t).css("position");)t=t.offsetParent;return t})}},S.fn.detach=S.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});S.fn[t]=function(r){var o,a=this[0];return r===E?n(a)?a["inner"+e]:i(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=S(this),a.css(t,g(this,r,e,a[t]()))})}}),I.forEach(function(e,n){var i=n%2;S.fn[e]=function(){var e,r,o=S.map(arguments,function(n){var i=[];return e=t(n),"array"==e?(n.forEach(function(t){return t.nodeType!==E?i.push(t):S.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(Y.fragment(t)))}),i):"object"==e||null==n?n:Y.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){r=i?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var s=S.contains(O.documentElement,r);o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!r)return S(t).remove();r.insertBefore(t,e),s&&x(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},S.fn[i?e+"To":"insert"+(n?"Before":"After")]=function(t){return S(t)[e](this),this}}),Y.Z.prototype=d.prototype=S.fn,Y.uniq=A,Y.deserializeValue=b,S.zepto=Y,S}();window.Zepto=n,void 0===window.$&&(window.$=n)},232:function(t,e,n){n(108),n(107),n(94),n(106),n(105),n(103),n(77),t.exports=n(76)},32:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.compareVersion=function(t,e){var n=t.split("."),i=e.split(".");if(t===e)return 0;for(var r=0;r<n.length;r++){var o=parseInt(n[r]);if(!i[r])return 1;var a=parseInt(i[r]);if(o<a)return-1;if(o>a)return 1}return-1}},76:function(t,e,n){"use strict";function i(){var t=0,e=0,n=screen.height,i=screen.width,r=document.documentElement.clientHeight,u=document.documentElement.clientWidth,f=window.devicePixelRatio;switch(window.orientation){case 0:case 180:s?(t=Math.max(n,i),e=Math.max(r,u),o||a||t/f>=e&&u!=i&&(t/=f)):(t=Math.min(n,i),e=Math.min(r,u),o||a||Math.ceil(t/f)>=e&&r!=n&&(t/=f));break;case-90:case 90:s?(t=Math.min(n,i),e=Math.min(r,u),o||a||t/f>=e&&r!=n&&(t/=f)):c||l?(t=Math.max(n,i),e=Math.max(r,u),o||a||t/f>=e&&u!=i&&(t=t/f-100)):(t=Math.max(n,i),e=Math.max(r,u),o||a||Math.ceil(t/f)>=e&&u!=i&&(t/=f));break;default:t=i}window.remFontSize=t/16,document.documentElement.style.fontSize=t/16+"px";try{for(var h=document.getElementById(kb.settings.id+"_kb").querySelectorAll(".keyboardEle"),p=0;p<h.length;p++)$(h[p]).removeClass("active").removeClass("active2")}catch(t){}}var r=n(32),o=window.navigator.appVersion.match(/iPad/gi),a=window.navigator.appVersion.match(/iphone/gi),s=window.navigator.appVersion.match(/SM-T800/gi),u=window.navigator.appVersion.match(/UCBrowser/gi),c=window.navigator.appVersion.match(/Lenovo A890e/gi)&&window.navigator.appVersion.match(/360 Aphone Browser/gi),l=window.navigator.appVersion.match(/HUAWEI D2-6070/gi)&&window.navigator.appVersion.match(/LieBaoFast/gi),f=window.navigator.userAgent.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i),h=window.navigator.userAgent.match(/U3\/((\d+|\.){5,})/i),p=h&&parseInt(h[1].split(".").join(""),10)>=80,d=window.navigator.appVersion.match(/(iphone|ipad|ipod)/gi),m=!0,v=window.navigator.appVersion.match(/android/gi);if(function(){o&&(document.querySelector("html").className="ua-ipad")}(),v&&u){var g=null;window.addEventListener("orientationchange",function(){m=!1,clearTimeout(g),g=setTimeout(i,300)},!1);navigator.userAgent.match(/Firefox/gi)&&window.addEventListener("resize",function(){clearTimeout(g),g=setTimeout(i,300)},!1),i()}else!function(t){function e(){var t=o.getAttribute("data-dpr");if(t)try{a=parseInt(t)}catch(t){}if("no"!=o.getAttribute("data-rem")){var e=o.getBoundingClientRect().width/a,n=e/16,i=n*a;o.style.fontSize=i+"px";var r=o.getAttribute("data-sysfont");if(v&&r){var s=document.createElement("div");s.style.cssText="width:1rem;height:0;overflow: hidden;position:absolute;z-index:-1;visibility: hidden;",document.body.appendChild(s);var u=s.offsetWidth;document.body.removeChild(s);var c=document.querySelector("html"),l=parseFloat(c.style.fontSize)||0,f=l;u!=l&&(f=Math.pow(l,2)/u),c.style.fontSize=f+"px"}}}var n,i=t.document,o=i.documentElement,a=t.devicePixelRatio||1;d||f&&f[1]>534||p||(a=1),a=parseInt(a);var s=o.getAttribute("data-dpr");if(s)try{a=parseInt(s)}catch(t){}o.setAttribute("data-dpr",a);var u=1/a,c=i.querySelector('meta[name="viewport"]');c||(c=i.createElement("meta"),c.setAttribute("name","viewport"),i.head.appendChild(c)),$.device.ios&&r.compareVersion($.device.osVersion,"10.0.0")<0&&(u=1),o.setAttribute("data-scale",u),"no"!=o.getAttribute("data-rem")&&c.setAttribute("content","width=device-width,user-scalable=no,initial-scale="+u+",maximum-scale="+u+",minimum-scale="+u+",viewport-fit=cover"),t.addEventListener("resize",function(){clearTimeout(n),n=setTimeout(e,300)},!1),t.addEventListener("pageshow",function(t){t.persisted&&(clearTimeout(n),n=setTimeout(e,300))},!1),e()}(window)},77:function(t,e,n){"use strict";function i(t,e){function n(t){if(t.target===this)for(e.call(this,t),i=0;i<r.length;i++)o.off(r[i],n)}var i,r=t,o=this;if(e)for(i=0;i<r.length;i++)o.on(r[i],n)}["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});$.fn["outer"+e]=function(e){var n=this;if(n){var i=n[t]();return{width:["left","right"],height:["top","bottom"]}[t].forEach(function(t){e&&(i+=parseInt(n.css("margin-"+t),10))}),i}return null}}),$.support=function(){return{touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)}}(),$.touchEvents={start:$.support.touch?"touchstart":"mousedown",move:$.support.touch?"touchmove":"mousemove",end:$.support.touch?"touchend":"mouseup"},$.getTranslate=function(t,e){var n,i,r,o;return void 0===e&&(e="x"),r=window.getComputedStyle(t,null),window.WebKitCSSMatrix?o=new WebKitCSSMatrix("none"===r.webkitTransform?"":r.webkitTransform):(o=r.MozTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(i=window.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(i=window.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0},$.requestAnimationFrame=function(t){return window.requestAnimationFrame?window.requestAnimationFrame(t):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(t):window.mozRequestAnimationFrame?window.mozRequestAnimationFrame(t):window.setTimeout(t,1e3/60)},$.cancelAnimationFrame=function(t){return window.cancelAnimationFrame?window.cancelAnimationFrame(t):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(t):window.mozCancelAnimationFrame?window.mozCancelAnimationFrame(t):window.clearTimeout(t)},$.fn.dataset=function(){var t={},e=this[0].dataset;for(var n in e){var i=t[n]=e[n];"false"===i?t[n]=!1:"true"===i?t[n]=!0:parseFloat(i)===1*i&&(t[n]=1*i)}return $.extend({},t,this[0].__eleData)},$.fn.zeptoData=$.fn.data,$.fn.data=function(t,e){var n=$(this).dataset();if(!t)return n;if(void 0===e){var i=n[t],r=this[0].__eleData;return r&&t in r?r[t]:i}for(var o=0;o<this.length;o++){var a=this[o];t in n&&delete a.dataset[t],a.__eleData||(a.__eleData={}),a.__eleData[t]=e}return this},$.fn.animationEnd=function(t){return i.call(this,["webkitAnimationEnd","animationend"],t),this},$.fn.transitionEnd=function(t){return i.call(this,["webkitTransitionEnd","transitionend"],t),this},$.fn.transition=function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e++){var n=this[e].style;n.webkitTransitionDuration=n.MozTransitionDuration=n.transitionDuration=t}return this},$.fn.transform=function(t){for(var e=0;e<this.length;e++){var n=this[e].style;n.webkitTransform=n.MozTransform=n.transform=t}return this},$.fn.prevAll=function(t){var e=[],n=this[0];if(!n)return $([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?$(i).is(t)&&e.push(i):e.push(i),n=i}return $(e)},$.fn.nextAll=function(t){var e=[],n=this[0];if(!n)return $([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?$(i).is(t)&&e.push(i):e.push(i),n=i}return $(e)},$.fn.show=function(){function t(t){var n,i;return e[t]||(n=document.createElement(t),document.body.appendChild(n),i=getComputedStyle(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),e[t]=i),e[t]}var e={};return this.each(function(){"none"===this.style.display&&(this.style.display=""),getComputedStyle(this,"").getPropertyValue("display"),this.style.display=t(this.nodeName)})},$.fn.serializeArray=function(){var t,e,n=[],i=function e(i){if(i.forEach)return i.forEach(e);n.push({name:t,value:i})};return this[0]&&$.each(this[0].elements,function(n,r){e=r.type,t=r.name,t&&"fieldset"!=r.nodeName.toLowerCase()&&!r.disabled&&"submit"!=e&&"reset"!=e&&"button"!=e&&"file"!=e&&("radio"!=e&&"checkbox"!=e||r.checked)&&i($(r).val())}),n},$.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")}},94:function(t,e,n){"use strict";!function(t){function e(t,e,n,i){return Math.abs(t-e)>=Math.abs(n-i)?t-e>0?"Left":"Right":n-i>0?"Up":"Down"}function n(){l=null,h.last&&(h.el.trigger("longTap"),h={})}function i(){l&&clearTimeout(l),l=null}function r(){s&&clearTimeout(s),u&&clearTimeout(u),c&&clearTimeout(c),l&&clearTimeout(l),s=u=c=l=null,h={}}function o(t){return("touch"==t.pointerType||t.pointerType==t.MSPOINTER_TYPE_TOUCH)&&t.isPrimary}function a(t,e){return t.type=="pointer"+e||t.type.toLowerCase()=="mspointer"+e}var s,u,c,l,f,h={};t(document).ready(function(){var p,d,m,v,g=0,y=0;"MSGesture"in window&&(f=new MSGesture,f.target=document.body),t(document).bind("MSGestureEnd",function(t){var e=t.velocityX>1?"Right":t.velocityX<-1?"Left":t.velocityY>1?"Down":t.velocityY<-1?"Up":null;e&&(h.el.trigger("swipe"),h.el.trigger("swipe"+e))}).on("touchstart MSPointerDown",function(e){(v=a(e,"down"))&&!o(e)||(m=v?e:e.touches[0],e.touches&&1===e.touches.length&&h.x2&&(h.x2=void 0,h.y2=void 0),p=Date.now(),d=p-(h.last||p),h.el=t("tagName"in m.target?m.target:m.target.parentNode),s&&clearTimeout(s),h.x1=m.pageX,h.y1=m.pageY,d>0&&d<=250&&(h.isDoubleTap=!0),h.last=p,l=setTimeout(n,750),f&&v&&f.addPointer(e.pointerId))}).on("touchmove MSPointerMove",function(t){(v=a(t,"move"))&&!o(t)||(m=v?t:t.touches[0],i(),h.x2=m.pageX,h.y2=m.pageY,g+=Math.abs(h.x1-h.x2),y+=Math.abs(h.y1-h.y2))}).on("touchend MSPointerUp",function(n){(v=a(n,"up"))&&!o(n)||(i(),h.x2&&Math.abs(h.x1-h.x2)>30||h.y2&&Math.abs(h.y1-h.y2)>30?c=setTimeout(function(){h.el&&(h.el.trigger("swipe"),h.el.trigger("swipe"+e(h.x1,h.x2,h.y1,h.y2))),h={}},0):"last"in h&&(g<30&&y<30?u=setTimeout(function(){var e=t.Event("tap");e.cancelTouch=r,h.el&&h.el.trigger(e),h.isDoubleTap?(h.el&&h.el.trigger("doubleTap"),h={}):s=setTimeout(function(){s=null,h.el&&h.el.trigger("singleTap"),h={}},250)},0):h={}),g=y=0)}).on("touchcancel MSPointerCancel",r),t(window).on("scroll",r)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(e){t.fn[e]=function(t){return this.on(e,t)}})}(Zepto)}})});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fastman=e():t.fastman=e()}(this,function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n=window.webpackJsonpfastman;window.webpackJsonpfastman=function(i,o,a){for(var s,u,c,l=0,f=[];l<i.length;l++)u=i[l],r[u]&&f.push(r[u][0]),r[u]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s]);for(n&&n(i,o,a);f.length;)f.shift()();if(a)for(l=0;l<a.length;l++)c=e(e.s=a[l]);return c};var i={},r={32:0};return e.e=function(t){function n(){s.onerror=s.onload=null,clearTimeout(u);var e=r[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),r[t]=void 0)}var i=r[t];if(0===i)return new Promise(function(t){t()});if(i)return i[2];var o=new Promise(function(e,n){i=r[t]=[e,n]});i[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,e.nc&&s.setAttribute("nonce",e.nc),s.src=e.p+""+t+".js";var u=setTimeout(n,12e4);return s.onerror=s.onload=n,a.appendChild(s),o},e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw t},e(e.s=232)}({103:function(t,e,n){"use strict";var i={},r=navigator.userAgent,o=r.match(/(Android);?[\s\/]+([\d.]+)?/),a=r.match(/(iPad).*OS\s([\d_]+)/),s=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!a&&r.match(/(iPhone\sOS)\s([\d_]+)/),c=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/[\d](?=[^?]+).*rv:([0-9.].)/);if(i.ios=i.android=i.iphone=i.ipad=i.androidChrome=i.ie=!1,o&&(i.os="android",i.osVersion=o[2],i.android=!0,i.androidChrome=r.toLowerCase().indexOf("chrome")>=0),(a||u||s)&&(i.os="ios",i.ios=!0),u&&!s&&(i.osVersion=u[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&r.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=r.toLowerCase().split("version/")[1].split(" ")[0]),c&&(i.ie=!0,i.ieVersion=c[1]),i.hasNativeHistory=history&&history.pushState,i.webView=(u||a||s)&&r.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var l=i.osVersion.split(".");i.minimalUi=!i.webView&&(s||u)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&$('meta[name="viewport"]').length>0&&$('meta[name="viewport"]').attr("content").indexOf("minimal-ui")>=0}var f=$(window).width(),h=$(window).height();i.statusBar=!1,i.webView&&f*h==screen.width*screen.height?i.statusBar=!0:i.statusBar=!1;var p=[];if(i.pixelRatio=window.devicePixelRatio||1,p.push("pixel-ratio-"+Math.floor(i.pixelRatio)),i.pixelRatio>=2&&p.push("retina"),i.os&&(p.push(i.os,i.os+"-"+i.osVersion.split(".")[0],i.os+"-"+i.osVersion.replace(/\./g,"-")),"ios"===i.os))for(var d=parseInt(i.osVersion.split(".")[0],10),m=d-1;m>=6;m--)p.push("ios-gt-"+m);i.statusBar?p.push("with-statusbar-overlay"):$("html").removeClass("with-statusbar-overlay"),p.length>0&&$("html").addClass(p.join(" ")),i.isWeixin=/MicroMessenger/i.test(r),$.device=i},105:function(t,e){!function(t){function e(e,n,i){var r=t.Event(n);return t(e).trigger(r,i),!r.isDefaultPrevented()}function n(t,n,i,r){if(t.global)return e(n||w,i,r)}function i(e){e.global&&0==t.active++&&n(e,null,"ajaxStart")}function r(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var i=e.context;if(!1===e.beforeSend.call(i,t,e)||!1===n(e,i,"ajaxBeforeSend",[t,e]))return!1;n(e,i,"ajaxSend",[t,e])}function a(t,e,i,r){var o=i.context;i.success.call(o,t,"success",e),r&&r.resolveWith(o,[t,"success",e]),n(i,o,"ajaxSuccess",[e,i,t]),u("success",e,i)}function s(t,e,i,r,o){var a=r.context;r.error.call(a,i,e,t),o&&o.rejectWith(a,[i,e,t]),n(r,a,"ajaxError",[i,r,t||e]),u(e,i,r)}function u(t,e,i){var o=i.context;i.complete.call(o,e,t),n(i,o,"ajaxComplete",[e,i]),r(i)}function c(t,e,n){if(n.dataFilter==l)return t;var i=n.context;return n.dataFilter.call(i,t,e)}function l(){}function f(t){return t&&(t=t.split(";",2)[0]),t&&(t==S?"html":t==T?"json":x.test(t)?"script":E.test(t)&&"xml")||"text"}function h(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function p(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=h(e.url,e.data),e.data=void 0)}function d(e,n,i,r){return t.isFunction(n)&&(r=i,i=n,n=void 0),t.isFunction(i)||(r=i,i=void 0),{url:e,data:n,success:i,dataType:r}}function m(e,n,i,r){var o,a=t.isArray(n),s=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),r&&(n=i?r:r+"["+(s||"object"==o||"array"==o?n:"")+"]"),!r&&a?e.add(u.name,u.value):"array"==o||!i&&"object"==o?m(e,u,i,n):e.add(n,u)})}var v,g,y=+new Date,w=window.document,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,x=/^(?:text|application)\/javascript/i,E=/^(?:text|application)\/xml/i,T="application/json",S="text/html",C=/^\s*$/,A=w.createElement("a");A.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,n){if(!("type"in e))return t.ajax(e);var i,r,u=e.jsonpCallback,c=(t.isFunction(u)?u():u)||"Zepto"+y++,l=w.createElement("script"),f=window[c],h=function(e){t(l).triggerHandler("error",e||"abort")},p={abort:h};return n&&n.promise(p),t(l).on("load error",function(o,u){clearTimeout(r),t(l).off().remove(),"error"!=o.type&&i?a(i[0],p,e,n):s(null,u||"error",p,e,n),window[c]=f,i&&t.isFunction(f)&&f(i[0]),f=i=void 0}),!1===o(p,e)?(h("abort"),p):(window[c]=function(){i=arguments},l.src=e.url.replace(/\?(.+)=\?/,"?$1="+c),w.head.appendChild(l),e.timeout>0&&(r=setTimeout(function(){h("timeout")},e.timeout)),p)},t.ajaxSettings={type:"GET",beforeSend:l,success:l,error:l,complete:l,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:T,xml:"application/xml, text/xml",html:S,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:l},t.ajax=function(e){var n,r,u=t.extend({},e||{}),d=t.Deferred&&t.Deferred();for(v in t.ajaxSettings)void 0===u[v]&&(u[v]=t.ajaxSettings[v]);i(u),u.crossDomain||(n=w.createElement("a"),n.href=u.url,n.href=n.href,u.crossDomain=A.protocol+"//"+A.host!=n.protocol+"//"+n.host),u.url||(u.url=window.location.toString()),(r=u.url.indexOf("#"))>-1&&(u.url=u.url.slice(0,r)),p(u);var m=u.dataType,y=/\?.+=\?/.test(u.url);if(y&&(m="jsonp"),!1!==u.cache&&(e&&!0===e.cache||"script"!=m&&"jsonp"!=m)||(u.url=h(u.url,"_="+Date.now())),"jsonp"==m)return y||(u.url=h(u.url,u.jsonp?u.jsonp+"=?":!1===u.jsonp?"":"callback=?")),t.ajaxJSONP(u,d);var b,x=u.accepts[m],E={},T=function(t,e){E[t.toLowerCase()]=[t,e]},S=/^([\w-]+:)\/\//.test(u.url)?RegExp.$1:window.location.protocol,j=u.xhr(),$=j.setRequestHeader;if(d&&d.promise(j),u.crossDomain||T("X-Requested-With","XMLHttpRequest"),T("Accept",x||"*/*"),(x=u.mimeType||x)&&(x.indexOf(",")>-1&&(x=x.split(",",2)[0]),j.overrideMimeType&&j.overrideMimeType(x)),(u.contentType||!1!==u.contentType&&u.data&&"GET"!=u.type.toUpperCase())&&T("Content-Type",u.contentType||"application/x-www-form-urlencoded"),u.headers)for(g in u.headers)T(g,u.headers[g]);if(j.setRequestHeader=T,j.onreadystatechange=function(){if(4==j.readyState){j.onreadystatechange=l,clearTimeout(b);var e,n=!1;if(j.status>=200&&j.status<300||304==j.status||0==j.status&&"file:"==S){if(m=m||f(u.mimeType||j.getResponseHeader("content-type")),"arraybuffer"==j.responseType||"blob"==j.responseType)e=j.response;else{e=j.responseText;try{e=c(e,m,u),"script"==m?(0,eval)(e):"xml"==m?e=j.responseXML:"json"==m&&(e=C.test(e)?null:t.parseJSON(e))}catch(t){n=t}if(n)return s(n,"parsererror",j,u,d)}a(e,j,u,d)}else s(j.statusText||null,j.status?"error":"abort",j,u,d)}},!1===o(j,u))return j.abort(),s(null,"abort",j,u,d),j;var M=!("async"in u)||u.async;if(j.open(u.type,u.url,M,u.username,u.password),u.xhrFields)for(g in u.xhrFields)j[g]=u.xhrFields[g];for(g in E)$.apply(j,E[g]);return u.timeout>0&&(b=setTimeout(function(){j.onreadystatechange=l,j.abort(),s(null,"timeout",j,u,d)},u.timeout)),j.send(u.data?u.data:null),j},t.get=function(){return t.ajax(d.apply(null,arguments))},t.post=function(){var e=d.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=d.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,i){if(!this.length)return this;var r,o=this,a=e.split(/\s/),s=d(e,n,i),u=s.success;return a.length>1&&(s.url=a[0],r=a[1]),s.success=function(e){o.html(r?t("<div>").html(e.replace(b,"")).find(r):e),u&&u.apply(o,arguments)},t.ajax(s),this};var j=encodeURIComponent;t.param=function(e,n){var i=[];return i.add=function(e,n){t.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(j(e)+"="+j(n))},m(i,e,n),i.join("&").replace(/%20/g,"+")}}(Zepto)},106:function(t,e){!function(t){function e(e,i){var u=e[s],c=u&&r[u];if(void 0===i)return c||n(e);if(c){if(i in c)return c[i];var l=a(i);if(l in c)return c[l]}return o.call(t(e),i)}function n(e,n,o){var u=e[s]||(e[s]=++t.uuid),c=r[u]||(r[u]=i(e));return void 0!==n&&(c[a(n)]=o),c}function i(e){var n={};return t.each(e.attributes||u,function(e,i){0==i.name.indexOf("data-")&&(n[a(i.name.replace("data-",""))]=t.zepto.deserializeValue(i.value))}),n}var r={},o=t.fn.data,a=t.camelCase,s=t.expando="Zepto"+ +new Date,u=[];t.fn.data=function(i,r){return void 0===r?t.isPlainObject(i)?this.each(function(e,r){t.each(i,function(t,e){n(r,t,e)})}):0 in this?e(this[0],i):void 0:this.each(function(){n(this,i,r)})},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(e){var n=e[s],i=n&&r[n];return!!i&&!t.isEmptyObject(i)},t.fn.removeData=function(e){return"string"==typeof e&&(e=e.split(/\s+/)),this.each(function(){var n=this[s],i=n&&r[n];i&&t.each(e||i,function(t){delete i[e?a(this):t]})})},["remove","empty"].forEach(function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(Zepto)},107:function(t,e){!function(t){function e(t){return t._zid||(t._zid=h++)}function n(t,n,o,a){if(n=i(n),n.ns)var s=r(n.ns);return(v[e(t)]||[]).filter(function(t){return t&&(!n.e||t.e==n.e)&&(!n.ns||s.test(t.ns))&&(!o||e(t.fn)===e(o))&&(!a||t.sel==a)})}function i(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function r(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&!y&&t.e in w||!!e}function a(t){return b[t]||y&&w[t]||t}function s(n,r,s,u,l,h,p){var d=e(n),m=v[d]||(v[d]=[]);r.split(/\s/).forEach(function(e){if("ready"==e)return t(document).ready(s);var r=i(e);r.fn=s,r.sel=l,r.e in b&&(s=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return r.fn.apply(this,arguments)}),r.del=h;var d=h||s;r.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var e=d.apply(n,t._args==f?[t]:[t].concat(t._args));return!1===e&&(t.preventDefault(),t.stopPropagation()),e}},r.i=m.length,m.push(r),"addEventListener"in n&&n.addEventListener(a(r.e),r.proxy,o(r,p))})}function u(t,i,r,s,u){var c=e(t);(i||"").split(/\s/).forEach(function(e){n(t,e,r,s).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(a(e.e),e.proxy,o(e,u))})})}function c(e,n){return!n&&e.isDefaultPrevented||(n||(n=e),t.each(S,function(t,i){var r=n[t];e[t]=function(){return this[i]=x,r&&r.apply(n,arguments)},e[i]=E}),e.timeStamp||(e.timeStamp=Date.now()),(n.defaultPrevented!==f?n.defaultPrevented:"returnValue"in n?!1===n.returnValue:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=x)),e}function l(t){var e,n={originalEvent:t};for(e in t)T.test(e)||t[e]===f||(n[e]=t[e]);return c(n,t)}var f,h=1,p=Array.prototype.slice,d=t.isFunction,m=function(t){return"string"==typeof t},v={},g={},y="onfocusin"in window,w={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};g.click=g.mousedown=g.mouseup=g.mousemove="MouseEvents",t.event={add:s,remove:u},t.proxy=function(n,i){var r=2 in arguments&&p.call(arguments,2);if(d(n)){var o=function(){return n.apply(i,r?r.concat(p.call(arguments)):arguments)};return o._zid=e(n),o}if(m(i))return r?(r.unshift(n[i],n),t.proxy.apply(null,r)):t.proxy(n[i],n);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},E=function(){return!1},T=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,S={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,i,r,o){var a,c,h=this;return e&&!m(e)?(t.each(e,function(t,e){h.on(t,n,i,e,o)}),h):(m(n)||d(r)||!1===r||(r=i,i=n,n=f),r!==f&&!1!==i||(r=i,i=f),!1===r&&(r=E),h.each(function(f,h){o&&(a=function(t){return u(h,t.type,r),r.apply(this,arguments)}),n&&(c=function(e){var i,o=t(e.target).closest(n,h).get(0);if(o&&o!==h)return i=t.extend(l(e),{currentTarget:o,liveFired:h}),(a||r).apply(o,[i].concat(p.call(arguments,1)))}),s(h,e,r,i,n,c||a)}))},t.fn.off=function(e,n,i){var r=this;return e&&!m(e)?(t.each(e,function(t,e){r.off(t,n,e)}),r):(m(n)||d(i)||!1===i||(i=n,n=f),!1===i&&(i=E),r.each(function(){u(this,e,i,n)}))},t.fn.trigger=function(e,n){return e=m(e)||t.isPlainObject(e)?t.Event(e):c(e),e._args=n,this.each(function(){e.type in w&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,i){var r,o;return this.each(function(a,s){r=l(m(e)?t.Event(e):e),r._args=i,r.target=s,t.each(n(s,e.type||e),function(t,e){if(o=e.proxy(r),r.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),t.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(g[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),c(n)}}(Zepto)},108:function(t,e){var n=function(){function t(t){return null==t?String(t):X[J.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function i(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function r(e){return"object"==t(e)}function o(t){return r(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function a(t){var e=!!t&&"length"in t&&t.length,i=S.type(t);return"function"!=i&&!n(t)&&("array"==i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t){return P.call(t,function(t){return null!=t})}function u(t){return t.length>0?S.fn.concat.apply([],t):t}function c(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in V?V[t]:V[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function f(t,e){return"number"!=typeof e||F[c(t)]?e:e+"px"}function h(t){var e,n;return D[t]||(e=O.createElement(t),O.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),D[t]=n),D[t]}function p(t){return"children"in t?N.call(t.children):S.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function d(t,e){var n,i=t?t.length:0;for(n=0;n<i;n++)this[n]=t[n];this.length=i,this.selector=e||""}function m(t,e,n){for(T in e)n&&(o(e[T])||Q(e[T]))?(o(e[T])&&!o(t[T])&&(t[T]={}),Q(e[T])&&!Q(t[T])&&(t[T]=[]),m(t[T],e[T],n)):e[T]!==E&&(t[T]=e[T])}function v(t,e){return null==e?S(t):S(t).filter(e)}function g(t,n,i,r){return e(n)?n.call(t,i,r):n}function y(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function w(t,e){var n=t.className||"",i=n&&n.baseVal!==E;if(e===E)return i?n.baseVal:n;i?n.baseVal=e:t.className=e}function b(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?S.parseJSON(t):t):t}catch(e){return t}}function x(t,e){e(t);for(var n=0,i=t.childNodes.length;n<i;n++)x(t.childNodes[n],e)}var E,T,S,C,A,j,$=[],M=$.concat,P=$.filter,N=$.slice,O=window.document,D={},V={},F={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},k=/^\s*<(\w+|!)[^>]*>/,L=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,_=/^(?:body|html)$/i,R=/([A-Z])/g,I=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],Z=O.createElement("table"),B=O.createElement("tr"),U={tr:O.createElement("tbody"),tbody:Z,thead:Z,tfoot:Z,td:B,th:B,"*":O.createElement("div")},H=/complete|loaded|interactive/,W=/^[\w-]*$/,X={},J=X.toString,Y={},G=O.createElement("div"),K={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(t){return t instanceof Array};return Y.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=G).appendChild(t),i=~Y.qsa(r,e).indexOf(t),o&&G.removeChild(t),i},A=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},j=function(t){return P.call(t,function(e,n){return t.indexOf(e)==n})},Y.fragment=function(t,e,n){var i,r,a;return L.test(t)&&(i=S(O.createElement(RegExp.$1))),i||(t.replace&&(t=t.replace(z,"<$1></$2>")),e===E&&(e=k.test(t)&&RegExp.$1),e in U||(e="*"),a=U[e],a.innerHTML=""+t,i=S.each(N.call(a.childNodes),function(){a.removeChild(this)})),o(n)&&(r=S(i),S.each(n,function(t,e){I.indexOf(t)>-1?r[t](e):r.attr(t,e)})),i},Y.Z=function(t,e){return new d(t,e)},Y.isZ=function(t){return t instanceof Y.Z},Y.init=function(t,n){var i;if(!t)return Y.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&k.test(t))i=Y.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return S(n).find(t);i=Y.qsa(O,t)}else{if(e(t))return S(O).ready(t);if(Y.isZ(t))return t;if(Q(t))i=s(t);else if(r(t))i=[t],t=null;else if(k.test(t))i=Y.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return S(n).find(t);i=Y.qsa(O,t)}}return Y.Z(i,t)},S=function(t,e){return Y.init(t,e)},S.extend=function(t){var e,n=N.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){m(t,n,e)}),t},Y.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],o=i||r?e.slice(1):e,a=W.test(o);return t.getElementById&&a&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:N.call(a&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},S.contains=O.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},S.type=t,S.isFunction=e,S.isWindow=n,S.isArray=Q,S.isPlainObject=o,S.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},S.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},S.inArray=function(t,e,n){return $.indexOf.call(e,t,n)},S.camelCase=A,S.trim=function(t){return null==t?"":String.prototype.trim.call(t)},S.uuid=0,S.support={},S.expr={},S.noop=function(){},S.map=function(t,e){var n,i,r,o=[];if(a(t))for(i=0;i<t.length;i++)null!=(n=e(t[i],i))&&o.push(n);else for(r in t)null!=(n=e(t[r],r))&&o.push(n);return u(o)},S.each=function(t,e){var n,i;if(a(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(i in t)if(!1===e.call(t[i],i,t[i]))return t;return t},S.grep=function(t,e){return P.call(t,e)},window.JSON&&(S.parseJSON=JSON.parse),S.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){X["[object "+e+"]"]=e.toLowerCase()}),S.fn={constructor:Y.Z,length:0,forEach:$.forEach,reduce:$.reduce,push:$.push,sort:$.sort,splice:$.splice,indexOf:$.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=Y.isZ(e)?e.toArray():e;return M.apply(Y.isZ(this)?this.toArray():this,n)},map:function(t){return S(S.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return S(N.apply(this,arguments))},ready:function(t){return H.test(O.readyState)&&O.body?t(S):O.addEventListener("DOMContentLoaded",function(){t(S)},!1),this},get:function(t){return t===E?N.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return $.every.call(this,function(e,n){return!1!==t.call(e,n,e)}),this},filter:function(t){return e(t)?this.not(this.not(t)):S(P.call(this,function(e){return Y.matches(e,t)}))},add:function(t,e){return S(j(this.concat(S(t,e))))},is:function(t){return this.length>0&&Y.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):a(t)&&e(t.item)?N.call(t):S(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return S(n)},has:function(t){return this.filter(function(){return r(t)?S.contains(this,t):S(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:S(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:S(t)},find:function(t){var e=this;return t?"object"==typeof t?S(t).filter(function(){var t=this;return $.some.call(e,function(e){return S.contains(e,t)})}):1==this.length?S(Y.qsa(this[0],t)):this.map(function(){return Y.qsa(this,t)}):S()},closest:function(t,e){var n=[],r="object"==typeof t&&S(t);return this.each(function(o,a){for(;a&&!(r?r.indexOf(a)>=0:Y.matches(a,t));)a=a!==e&&!i(a)&&a.parentNode;a&&n.indexOf(a)<0&&n.push(a)}),S(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=S.map(n,function(t){if((t=t.parentNode)&&!i(t)&&e.indexOf(t)<0)return e.push(t),t});return v(e,t)},parent:function(t){return v(j(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return p(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||N.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,e){return P.call(p(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return S.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var i=S(t).get(0),r=i.parentNode||this.length>1;return this.each(function(e){S(this).wrapAll(n?t.call(this,e):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){S(this[0]).before(t=S(t));for(var e;(e=t.children()).length;)t=e.first();S(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var i=S(this),r=i.contents(),o=n?t.call(this,e):t;r.length?r.wrapAll(o):i.append(o)})},unwrap:function(){return this.parent().each(function(){S(this).replaceWith(S(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=S(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return S(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return S(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;S(this).empty().append(g(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=g(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(r(t))for(T in t)y(this,T,t[T]);else y(this,t,g(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){y(this,t)},this)})},prop:function(t,e){return t=K[t]||t,1 in arguments?this.each(function(n){this[t]=g(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=K[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(R,"-$1").toLowerCase(),i=1 in arguments?this.attr(n,e):this.attr(n);return null!==i?b(i):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=g(this,t,e,this.value)})):this[0]&&(this[0].multiple?S(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var n=S(this),i=g(this,t,e,n.offset()),r=n.offsetParent().offset(),o={top:i.top-r.top,left:i.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(O.documentElement!==this[0]&&!S.contains(O.documentElement,this[0]))return{top:0,left:0};var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[A(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(Q(e)){if(!i)return;var r={},o=getComputedStyle(i,"");return S.each(e,function(t,e){r[e]=i.style[A(e)]||o.getPropertyValue(e)}),r}}var a="";if("string"==t(e))n||0===n?a=c(e)+":"+f(e,n):this.each(function(){this.style.removeProperty(c(e))});else for(T in e)e[T]||0===e[T]?a+=c(T)+":"+f(T,e[T])+";":this.each(function(){this.style.removeProperty(c(T))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(S(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&$.some.call(this,function(t){return this.test(w(t))},l(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){C=[];var n=w(this);g(this,t,e,n).split(/\s+/g).forEach(function(t){S(this).hasClass(t)||C.push(t)},this),C.length&&w(this,n+(n?" ":"")+C.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return w(this,"");C=w(this),g(this,t,e,C).split(/\s+/g).forEach(function(t){C=C.replace(l(t)," ")}),w(this,C.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var i=S(this);g(this,t,n,w(this)).split(/\s+/g).forEach(function(t){(e===E?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),i=_.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(S(t).css("margin-top"))||0,n.left-=parseFloat(S(t).css("margin-left"))||0,i.top+=parseFloat(S(e[0]).css("border-top-width"))||0,i.left+=parseFloat(S(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||O.body;t&&!_.test(t.nodeName)&&"static"==S(t).css("position");)t=t.offsetParent;return t})}},S.fn.detach=S.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});S.fn[t]=function(r){var o,a=this[0];return r===E?n(a)?a["inner"+e]:i(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=S(this),a.css(t,g(this,r,e,a[t]()))})}}),q.forEach(function(e,n){var i=n%2;S.fn[e]=function(){var e,r,o=S.map(arguments,function(n){var i=[];return e=t(n),"array"==e?(n.forEach(function(t){return t.nodeType!==E?i.push(t):S.zepto.isZ(t)?i=i.concat(t.get()):void(i=i.concat(Y.fragment(t)))}),i):"object"==e||null==n?n:Y.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){r=i?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var s=S.contains(O.documentElement,r);o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!r)return S(t).remove();r.insertBefore(t,e),s&&x(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},S.fn[i?e+"To":"insert"+(n?"Before":"After")]=function(t){return S(t)[e](this),this}}),Y.Z.prototype=d.prototype=S.fn,Y.uniq=j,Y.deserializeValue=b,S.zepto=Y,S}();window.Zepto=n,void 0===window.$&&(window.$=n)},232:function(t,e,n){n(108),n(107),n(94),n(106),n(105),n(103),n(77),t.exports=n(76)},32:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.compareVersion=function(t,e){var n=t.split("."),i=e.split(".");if(t===e)return 0;for(var r=0;r<n.length;r++){var o=parseInt(n[r]);if(!i[r])return 1;var a=parseInt(i[r]);if(o<a)return-1;if(o>a)return 1}return-1}},76:function(t,e,n){"use strict";function i(){var t=0,e=0,n=screen.height,i=screen.width,r=document.documentElement.clientHeight,u=document.documentElement.clientWidth,f=window.devicePixelRatio;switch(window.orientation){case 0:case 180:s?(t=Math.max(n,i),e=Math.max(r,u),o||a||t/f>=e&&u!=i&&(t/=f)):(t=Math.min(n,i),e=Math.min(r,u),o||a||Math.ceil(t/f)>=e&&r!=n&&(t/=f));break;case-90:case 90:s?(t=Math.min(n,i),e=Math.min(r,u),o||a||t/f>=e&&r!=n&&(t/=f)):c||l?(t=Math.max(n,i),e=Math.max(r,u),o||a||t/f>=e&&u!=i&&(t=t/f-100)):(t=Math.max(n,i),e=Math.max(r,u),o||a||Math.ceil(t/f)>=e&&u!=i&&(t/=f));break;default:t=i}window.remFontSize=t/16,document.documentElement.style.fontSize=t/16+"px";try{for(var h=document.getElementById(kb.settings.id+"_kb").querySelectorAll(".keyboardEle"),p=0;p<h.length;p++)$(h[p]).removeClass("active").removeClass("active2")}catch(t){}}var r=n(32),o=window.navigator.appVersion.match(/iPad/gi),a=window.navigator.appVersion.match(/iphone/gi),s=window.navigator.appVersion.match(/SM-T800/gi),u=window.navigator.appVersion.match(/UCBrowser/gi),c=window.navigator.appVersion.match(/Lenovo A890e/gi)&&window.navigator.appVersion.match(/360 Aphone Browser/gi),l=window.navigator.appVersion.match(/HUAWEI D2-6070/gi)&&window.navigator.appVersion.match(/LieBaoFast/gi),f=window.navigator.userAgent.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i),h=window.navigator.userAgent.match(/U3\/((\d+|\.){5,})/i),p=h&&parseInt(h[1].split(".").join(""),10)>=80,d=window.navigator.appVersion.match(/(iphone|ipad|ipod)/gi),m=!0,v=window.navigator.appVersion.match(/android/gi);if(function(){o&&(document.querySelector("html").className="ua-ipad")}(),v&&u){var g=null;window.addEventListener("orientationchange",function(){m=!1,clearTimeout(g),g=setTimeout(i,300)},!1);navigator.userAgent.match(/Firefox/gi)&&window.addEventListener("resize",function(){clearTimeout(g),g=setTimeout(i,300)},!1),i()}else!function(t){function e(){var t=o.getAttribute("data-dpr");if(t)try{a=parseInt(t)}catch(t){}var e=o.getAttribute("data-android-dpr");if(e&&v)try{a=parseInt(e)}catch(t){}var n=o.getAttribute("data-ios-dpr");if(n&&d)try{a=parseInt(n)}catch(t){}if("no"!=o.getAttribute("data-rem")){var i=o.getBoundingClientRect().width/a,r=i/16,s=r*a;o.style.fontSize=s+"px";var u=o.getAttribute("data-sysfont");if(v&&u){var c=document.createElement("div");c.style.cssText="width:1rem;height:0;overflow: hidden;position:absolute;z-index:-1;visibility: hidden;",document.body.appendChild(c);var l=c.offsetWidth;document.body.removeChild(c);var f=document.querySelector("html"),h=parseFloat(f.style.fontSize)||0,p=h;l!=h&&(p=Math.pow(h,2)/l),f.style.fontSize=p+"px"}}}var n,i=t.document,o=i.documentElement,a=t.devicePixelRatio||1;d||f&&f[1]>534||p||(a=1),a=parseInt(a);var s=o.getAttribute("data-dpr");if(s)try{a=parseInt(s)}catch(t){}var u=o.getAttribute("data-android-dpr");if(u&&v)try{a=parseInt(u)}catch(t){}var c=o.getAttribute("data-ios-dpr");if(c&&d)try{a=parseInt(c)}catch(t){}o.setAttribute("data-dpr",a);var l=1/a,h=i.querySelector('meta[name="viewport"]');h||(h=i.createElement("meta"),h.setAttribute("name","viewport"),i.head.appendChild(h)),$.device.ios&&r.compareVersion($.device.osVersion,"10.0.0")<0&&(l=1),o.setAttribute("data-scale",l),"no"!=o.getAttribute("data-rem")&&h.setAttribute("content","width=device-width,user-scalable=no,initial-scale="+l+",maximum-scale="+l+",minimum-scale="+l+",viewport-fit=cover"),t.addEventListener("resize",function(){clearTimeout(n),n=setTimeout(e,300)},!1),t.addEventListener("pageshow",function(t){t.persisted&&(clearTimeout(n),n=setTimeout(e,300))},!1),e()}(window)},77:function(t,e,n){"use strict";function i(t,e){function n(t){if(t.target===this)for(e.call(this,t),i=0;i<r.length;i++)o.off(r[i],n)}var i,r=t,o=this;if(e)for(i=0;i<r.length;i++)o.on(r[i],n)}["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});$.fn["outer"+e]=function(e){var n=this;if(n){var i=n[t]();return{width:["left","right"],height:["top","bottom"]}[t].forEach(function(t){e&&(i+=parseInt(n.css("margin-"+t),10))}),i}return null}}),$.support=function(){return{touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch)}}(),$.touchEvents={start:$.support.touch?"touchstart":"mousedown",move:$.support.touch?"touchmove":"mousemove",end:$.support.touch?"touchend":"mouseup"},$.getTranslate=function(t,e){var n,i,r,o;return void 0===e&&(e="x"),r=window.getComputedStyle(t,null),window.WebKitCSSMatrix?o=new WebKitCSSMatrix("none"===r.webkitTransform?"":r.webkitTransform):(o=r.MozTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(i=window.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(i=window.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),i||0},$.requestAnimationFrame=function(t){return window.requestAnimationFrame?window.requestAnimationFrame(t):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(t):window.mozRequestAnimationFrame?window.mozRequestAnimationFrame(t):window.setTimeout(t,1e3/60)},$.cancelAnimationFrame=function(t){return window.cancelAnimationFrame?window.cancelAnimationFrame(t):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(t):window.mozCancelAnimationFrame?window.mozCancelAnimationFrame(t):window.clearTimeout(t)},$.fn.dataset=function(){var t={},e=this[0].dataset;for(var n in e){var i=t[n]=e[n];"false"===i?t[n]=!1:"true"===i?t[n]=!0:parseFloat(i)===1*i&&(t[n]=1*i)}return $.extend({},t,this[0].__eleData)},$.fn.zeptoData=$.fn.data,$.fn.data=function(t,e){var n=$(this).dataset();if(!t)return n;if(void 0===e){var i=n[t],r=this[0].__eleData;return r&&t in r?r[t]:i}for(var o=0;o<this.length;o++){var a=this[o];t in n&&delete a.dataset[t],a.__eleData||(a.__eleData={}),a.__eleData[t]=e}return this},$.fn.animationEnd=function(t){return i.call(this,["webkitAnimationEnd","animationend"],t),this},$.fn.transitionEnd=function(t){return i.call(this,["webkitTransitionEnd","transitionend"],t),this},$.fn.transition=function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e++){var n=this[e].style;n.webkitTransitionDuration=n.MozTransitionDuration=n.transitionDuration=t}return this},$.fn.transform=function(t){for(var e=0;e<this.length;e++){var n=this[e].style;n.webkitTransform=n.MozTransform=n.transform=t}return this},$.fn.prevAll=function(t){var e=[],n=this[0];if(!n)return $([]);for(;n.previousElementSibling;){var i=n.previousElementSibling;t?$(i).is(t)&&e.push(i):e.push(i),n=i}return $(e)},$.fn.nextAll=function(t){var e=[],n=this[0];if(!n)return $([]);for(;n.nextElementSibling;){var i=n.nextElementSibling;t?$(i).is(t)&&e.push(i):e.push(i),n=i}return $(e)},$.fn.show=function(){function t(t){var n,i;return e[t]||(n=document.createElement(t),document.body.appendChild(n),i=getComputedStyle(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),e[t]=i),e[t]}var e={};return this.each(function(){"none"===this.style.display&&(this.style.display=""),getComputedStyle(this,"").getPropertyValue("display"),this.style.display=t(this.nodeName)})},$.fn.serializeArray=function(){var t,e,n=[],i=function e(i){if(i.forEach)return i.forEach(e);n.push({name:t,value:i})};return this[0]&&$.each(this[0].elements,function(n,r){e=r.type,t=r.name,t&&"fieldset"!=r.nodeName.toLowerCase()&&!r.disabled&&"submit"!=e&&"reset"!=e&&"button"!=e&&"file"!=e&&("radio"!=e&&"checkbox"!=e||r.checked)&&i($(r).val())}),n},$.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")}},94:function(t,e,n){"use strict";!function(t){function e(t,e,n,i){return Math.abs(t-e)>=Math.abs(n-i)?t-e>0?"Left":"Right":n-i>0?"Up":"Down"}function n(){l=null,h.last&&(h.el.trigger("longTap"),h={})}function i(){l&&clearTimeout(l),l=null}function r(){s&&clearTimeout(s),u&&clearTimeout(u),c&&clearTimeout(c),l&&clearTimeout(l),s=u=c=l=null,h={}}function o(t){return("touch"==t.pointerType||t.pointerType==t.MSPOINTER_TYPE_TOUCH)&&t.isPrimary}function a(t,e){return t.type=="pointer"+e||t.type.toLowerCase()=="mspointer"+e}var s,u,c,l,f,h={};t(document).ready(function(){var p,d,m,v,g=0,y=0;"MSGesture"in window&&(f=new MSGesture,f.target=document.body),t(document).bind("MSGestureEnd",function(t){var e=t.velocityX>1?"Right":t.velocityX<-1?"Left":t.velocityY>1?"Down":t.velocityY<-1?"Up":null;e&&(h.el.trigger("swipe"),h.el.trigger("swipe"+e))}).on("touchstart MSPointerDown",function(e){(v=a(e,"down"))&&!o(e)||(m=v?e:e.touches[0],e.touches&&1===e.touches.length&&h.x2&&(h.x2=void 0,h.y2=void 0),p=Date.now(),d=p-(h.last||p),h.el=t("tagName"in m.target?m.target:m.target.parentNode),s&&clearTimeout(s),h.x1=m.pageX,h.y1=m.pageY,d>0&&d<=250&&(h.isDoubleTap=!0),h.last=p,l=setTimeout(n,750),f&&v&&f.addPointer(e.pointerId))}).on("touchmove MSPointerMove",function(t){(v=a(t,"move"))&&!o(t)||(m=v?t:t.touches[0],i(),h.x2=m.pageX,h.y2=m.pageY,g+=Math.abs(h.x1-h.x2),y+=Math.abs(h.y1-h.y2))}).on("touchend MSPointerUp",function(n){(v=a(n,"up"))&&!o(n)||(i(),h.x2&&Math.abs(h.x1-h.x2)>30||h.y2&&Math.abs(h.y1-h.y2)>30?c=setTimeout(function(){h.el&&(h.el.trigger("swipe"),h.el.trigger("swipe"+e(h.x1,h.x2,h.y1,h.y2))),h={}},0):"last"in h&&(g<30&&y<30?u=setTimeout(function(){var e=t.Event("tap");e.cancelTouch=r,h.el&&h.el.trigger(e),h.isDoubleTap?(h.el&&h.el.trigger("doubleTap"),h={}):s=setTimeout(function(){s=null,h.el&&h.el.trigger("singleTap"),h={}},250)},0):h={}),g=y=0)}).on("touchcancel MSPointerCancel",r),t(window).on("scroll",r)}),["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap","singleTap","longTap"].forEach(function(e){t.fn[e]=function(t){return this.on(e,t)}})}(Zepto)}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fastman3=e():t.fastman3=e()}(this,function(){return function(t){function e(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={wx:!1,my:!1,swan:!1,tt:!1,qq:!1,ft:!1},r=function(){try{n.wx=wx}catch(t){n.wx=!1}try{n.my=my}catch(t){n.my=!1}try{n.swan=swan}catch(t){n.swan=!1}try{n.tt=tt}catch(t){n.tt=!1}try{n.qq=qq}catch(t){n.qq=!1}try{n.ft=ft}catch(t){n.ft=!1}},o=function(t){r(),n.wx?wx.miniProgram.navigateTo(t):n.my?my.navigateTo(t):n.swan?swan.webView.navigateTo(t):n.tt?tt.miniProgram.navigateTo(t):n.qq?qq.miniProgram.navigateTo(t):n.ft&&(t.url=t.url.replace("..","pages"),ft.miniProgram.navigateTo(t))},i=function(t){r(),n.wx?wx.miniProgram.postMessage(t):n.my?my.postMessage(t):n.swan?swan.webView.postMessage(t):n.tt?tt.miniProgram.postMessage(t):n.qq?qq.miniProgram.postMessage(t):n.ft&&ft.miniProgram.postMessage(t)},s=function(t){r(),n.wx?wx.miniProgram.navigateBack(t):n.my?my.navigateBack(t):n.swan?swan.webView.navigateBack(t):n.tt?tt.miniProgram.navigateBack(t):n.qq?qq.miniProgram.navigateBack(t):n.ft&&ft.miniProgram.navigateBack(t)};e.navigateTo=o,e.postMessage=i,e.navigateBack=s}])});
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fastman=e():n.fastman=e()}(this,function(){return function(n){function e(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return n[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t={};return e.m=n,e.c=t,e.i=function(n){return n},e.d=function(n,t,o){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:o})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},e.p="",e(e.s=5)}([function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(n){var e=document.createElement("a");e.setAttribute("href",n);var t=e.href;return e=null,t},i=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},r=function(n){return!(null!=n&&(n.length||n.length>0))};e.getAbsoluteUrl=o,e._extends=i,e.isEmpty=r},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(n){new Date};e.log=o},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.onApiRequest=e.pageWillAppear=e.onRequest=e.onDynamicLink=e.subscribeNotify=e.onNotify=e.onPushView=e.onNavigationBar=e.onRefresh=e.onBack=e.ready=e.wrapNotOkPayload=e.wrapOkPayload=void 0;var o=t(0),i=t(1),r=navigator.userAgent,a=r.match(/(Android);?[\s\/]+([\d.]+)?/),c=r.match(/(iPad).*OS\s([\d_]+)/),u=r.match(/(iPod)(.*OS\s([\d_]+))?/),s=!c&&r.match(/(iPhone\sOS)\s([\d_]+)/),l=!!r.toLowerCase().match(/DFYJ/i),f=function(n){return n.init(function(n,e){e&&e(data)}),n},d=function(n){var e=function(e){(0,i.log)("ready end"),n(e)};if(l)if(c||s||u){if(window.WebViewJavascriptBridge)return(0,i.log)("ready sync start"),e(WebViewJavascriptBridge);if((0,i.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(e);(0,i.log)("ready async start(iframe)"),window.WVJBCallbacks=[e];var t=document.createElement("iframe");t.style.display="none",t.src="https://__bridge_loaded__",document.documentElement.appendChild(t),setTimeout(function(){document.documentElement.removeChild(t)},0)}else a?window.WebViewJavascriptBridge?((0,i.log)("ready sync start"),e(f(WebViewJavascriptBridge))):((0,i.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){e(f(WebViewJavascriptBridge))},!1)):((0,i.log)("other platform ready sync start"),e());else(0,i.log)("non app ready sync start"),e()},p=function(){},g=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},v=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},h=function(n){var e={complete:p};e=(0,o._extends)({},e,n),(0,i.log)("onBack->"+JSON.stringify(e)),WebViewJavascriptBridge.callHandler("back",e,function(n){(0,i.log)("onBack<-"+JSON.stringify(n)),e.complete(n)})},y=function(n){var e={complete:p};e=(0,o._extends)({},e,n),(0,i.log)("onRefresh->"+JSON.stringify(e)),WebViewJavascriptBridge.callHandler("refresh",e,function(n){(0,i.log)("onRefresh<-"+JSON.stringify(n)),e.complete(n)})},m=function(n){var e={complete:p};e=(0,o._extends)({},e,n),(0,i.log)("onNavigationBar->"+JSON.stringify(e)),WebViewJavascriptBridge.callHandler("navigationBar",e,function(n){(0,i.log)("onNavigationBar<-"+JSON.stringify(n)),e.complete(n)})},b=function(n){var e={title:""};e=(0,o._extends)({},e,n),e.uri&&(-1!=e.uri.indexOf("http")||-1!=e.uri.indexOf("https")||(e.uri=(0,o.getAbsoluteUrl)(e.uri))),(0,i.log)("onPushView->"+JSON.stringify(e)),WebViewJavascriptBridge.callHandler("pushView",e,function(n){(0,i.log)("onPushView<-"+JSON.stringify(n))})},w=function(n){"function"==typeof n&&WebViewJavascriptBridge.registerHandler("pageWillAppear",n)},A=function(n){var e={type:"javascriptNotify"};e=(0,o._extends)({},e,n),(0,i.log)("onNotify->"+JSON.stringify(e)),WebViewJavascriptBridge.callHandler("notify",e,function(n){(0,i.log)("onNotify<-"+JSON.stringify(n))})},x={},O=function(n,e){if("function"==typeof e){var t=n;"sae_video"==t&&(t="notify"),x[t]=e,(0,i.log)("subscribeNotify->"+n),WebViewJavascriptBridge.registerHandler(t,function(n){(0,i.log)("subscribeNotify<-"+JSON.stringify(n)),Object.prototype.toString.call(n).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(n=JSON.parse(n)),x[t]&&x[t](n)})}},k=function(n){var e={url:""};e=(0,o._extends)({},e,n),(0,i.log)("onDynamicLink->"+JSON.stringify(e)),WebViewJavascriptBridge.callHandler("dynamicLink",e,function(n){(0,i.log)("onDynamicLink<-"+JSON.stringify(n))})},B={},S=!1,N=function(n,e){switch(arguments.length){case 1:return parseInt(Math.random()*n+1,10);case 2:return parseInt(Math.random()*(e-n+1)+n,10);default:return 0}},M=[],j=function n(){var e=N(1e3,9999);return-1!==M.indexOf(e)?n(e):(M.push(e),e)},I=function(n,e,t,o){var r={type:n||"1",payload:e||{},callbackId:j()};B[n+"-ok"]="function"==typeof t?t:p,B[n+"-notok"]="function"==typeof o?o:p,B[n+"_"+r.callbackId+"-ok"]="function"==typeof t?t:p,B[n+"_"+r.callbackId+"-notok"]="function"==typeof o?o:p,(0,i.log)("onRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("request",r,function(n){"string"==typeof n&&(n=JSON.parse(n)),(0,i.log)("onRequest<-"+JSON.stringify(n)),n.error||"true"===n.error?n.callbackId&&"function"==typeof B[n.type+"_"+n.callbackId+"-notok"]?B[n.type+"_"+n.callbackId+"-notok"](v(-1,n.info)):"function"==typeof B[n.type+"-notok"]&&B[n.type+"-notok"](v(-1,n.info)):n.callbackId&&"function"==typeof B[n.type+"_"+n.callbackId+"-ok"]?(c||s||u||n.payload)&&B[n.type+"_"+n.callbackId+"-ok"](g(n.payload)):"function"==typeof B[n.type+"-ok"]&&(c||s||u||n.payload)&&B[n.type+"-ok"](g(n.payload))}),S||(WebViewJavascriptBridge.registerHandler("request",function(n){"string"==typeof n&&(n=JSON.parse(n)),n.error||"true"===n.error?n.callbackId&&"function"==typeof B[n.type+"_"+n.callbackId+"-notok"]?B[n.type+"_"+n.callbackId+"-notok"](v(-1,n.info)):"function"==typeof B[n.type+"-notok"]&&B[n.type+"-notok"](v(-1,n.info)):n.callbackId&&"function"==typeof B[n.type+"_"+n.callbackId+"-ok"]?B[n.type+"_"+n.callbackId+"-ok"](g(n.payload)):"function"==typeof B[n.type+"-ok"]&&B[n.type+"-ok"](g(n.payload))}),S=!0)},P=function(n,e,t,r){if((0,o.isEmpty)(n))throw new Error("functionNo is required ...");var a={funcId:n,payload:e||{}};(0,i.log)("onApiRequest->"+JSON.stringify(a)),WebViewJavascriptBridge.callHandler("apiRequest",a,function(n){if((0,i.log)("onApiRequest<-"+JSON.stringify(n)),"string"==typeof n&&(n=JSON.parse(n)),c||s||u){if(n.error||"true"===n.error)n.payload?"function"==typeof r&&r(v(n.payload.code,n.payload.info)):"function"==typeof r&&r(v(-1,n.info));else if("function"==typeof t){var e={};n.payload&&(e="string"==typeof n.payload.data?JSON.parse(n.payload.data):n.payload.data),t(g(e))}}else if(n.error||"true"===n.error)"function"==typeof r&&r(v(-1,n.info));else{var o={};o="string"==typeof n.payload.data?JSON.parse(n.payload.data):n.payload.data?n.payload.data:{},"0"!=n.payload.code?"function"==typeof r&&r(v(n.payload.code,n.payload.info)):"function"==typeof t&&t(g(o))}})};e.wrapOkPayload=g,e.wrapNotOkPayload=v,e.ready=d,e.onBack=h,e.onRefresh=y,e.onNavigationBar=m,e.onPushView=b,e.onNotify=A,e.subscribeNotify=O,e.onDynamicLink=k,e.onRequest=I,e.pageWillAppear=w,e.onApiRequest=P},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(n,e){for(var t=n.split(".").length;t<e;)n+=".0",t++;return n},i=function(n){var e=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return e?e[1]:void 0},r=function(n,e){var t=n.split("."),i=e.split("."),r=Math.max(t.length,i.length);n=o(n,r),e=o(e,r);var a=n.split("."),c=e.split(".");if(n===e)return 0;for(var u=0;u<a.length;u++){var s=parseInt(a[u]);if(!c[u])return 1;var l=parseInt(c[u]);if(s<l)return-1;if(s>l)return 1}return-1},a=function(n){var e=i();return e?r(e,n):1};e.getVersion=i,e.compareVersion=a,e._compareVersion=r},function(n,e,t){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(e,"__esModule",{value:!0});var i=t(21),r=o(i),a=t(6),c=o(a),u=navigator.userAgent.toLowerCase(),s=function(){return!!u.match(/MicroMessenger/i)},l=function(){return!!u.match(/QQ/i)},f=u.match(/(iPad).*OS\s([\d_]+)/),d=u.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&u.match(/(iPhone\sOS)\s([\d_]+)/),g=!!(f||p||d),v=function(){var n=navigator.userAgent.match(/(Android);?[\s\/]+([\d.]+)?/),e=n?"在浏览器中打开":"在Safari中打开",t=document.createElement("div");t.id="mask-panel",t.innerHTML='\n <div id="arraw">\n <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAADkCAYAAABTwODqAAAAAXNSR0IArs4c6QAAE0RJREFUeAHtnQewLEUVhnkSxEcSkCCoPKJgwoCIKAoUBjIqiogBkGwgZ4HygSQLqDIgUIAIiAEQy1JBlFBYij5J+kQo4FUpiCgISFKR8Pz+W7uPvXtnZ7tnuqdPz52u6rq7M6dPn/6/7dk5M71zF1pompb58+fvQN2y7cNfpO0DLBofYDdg+27ax+sHZsyYcVuRXRu2vagNg/AZA0BXw/4wqsauegTbXsHfVpZpBRiQy0DxGOpLBmguwetj2bfUwLbWvJw2gAG4KNSOpq5UQO/lbDsKm9Z9ZU0bwAD8HHW9Arj9Ta/jxX79N235Oy0AMzM/CrDNHKC9B9sPOthlY9J6wADbGBq7eBDZlTZv87A3bdpqwIBaC/UP8iQwA/tDaLu6ZzuT5q0FDKDlUVxnzC+uoPziaouPZSu0NdWklYABMwEIpZerofYKtP0Cvhar4SN509YBBogOsQdS1wyg7jr4OCCAn2QuWgcYJT9J1YlVqLIJH5qPhXLWtJ9WAQbE5gi4YwQRd8b3uyL4je6yNYABoIsYupgRqxxAHzpkZ1X0fZV9QXhdfjydunTkwfwL/wdx9+mhyP0Ec5/9DAbuTNQ4lhobrkR/qfqiz8GbFdputmQNGKEXRlnd+ntVgwrPoi9dCMlCuyyCLIG3B/veUrI/1q4NcbxbLOch/WYLmBm0JUJsE1IMT19a8vNezzaNm2cJGGHfiFL7NK7W1A73I5bXT91sZ0t2gBFUy2uOoFqIXecAWiiwih2kkyOxINLkiEreIaSW1eiMWctsrJQlCURn1vprrmQDGAG1nOYoqpbXWCurEpAW72lGmyrZAEa1falaVmO1rE9ge1sLLgvAzAwtozF/xkqMWxLrdpYgmweMYMo5d7Uk2phYPk3MWlhvopgGjFBaNnMoNadr5tL0MGLXAvvkxSxgBNJyGS250eqMGOVOnN4dwzE+da1aZ9ZaaJ+0mASMMIuhihapa9lMjKK7QSdST6A+HKMDfK5I1ZIfLbhPVkwCRo39qa+OpMp/8TubW36PUh/h9fHUpyP1tS5+Px/Jt5Nbc4D5xGt5TKzVE/Px/WXA/rmvDq/n8fo0qvbFKJsypp1iOHbxaQowQmxC0Du7BF7R5nyAzhluy7Yb2fat4e0B33+csb0joD9nV2YAI8A6RB1zBePVgPzhKGXYdzn7rhm1P8D2AxmjFuI3WkwAZuA6mdIZs06uYpS5OP2Gg+OvY3O7g10VEy3A12J6LchvrCQHzID7i9S1HCZGeQCnJzFDnx3nHJtnsNHZ9d/H2Vbcr4X4ghwr9ZsSVlLADFT9H0LVBY0Y5SmcfhFwT7g6x/ZxbGdT/+3axtNuTewPYuyNXLxJCpiB7kqN9Uu+5/F9MsDu569Xoc19NDiFKh8xyttx+skYjod9JgPMJ/g9BPOB4YACvj8LULdV9UfbW2h7TtX2Du12RIPNHexqmSQBzMB02y/mr+l/BKAraylDY3z8hD8/ruunpP3n0OK1Jftr72ocMAPSDXvduNcN/BjlZpyeH9Dxufi6NaC/QVcTixjQZOXBjSFfNwqYgWipzbHUpUIOYsDXvbw+lZn33MC2Wi97vk7Gib6XY5SlcaobE1rAH7w0BpgBLEz0WiwX65lUE2e/AAl+9tvzOZvY1UeM8kqcRlny0xhgBrAX9Y0x1MGnctwTAPGPSP71fazcWDny2Hy6Ygxvot2eFduObNYIYGbvtkSw1cgo6u/4CgDuqO+m3AN96CrX18qtau3dGq22ruVhqHF0wAT8ZvrcY6jfkG+/j/DXhXRY5ou+dL36sjKbmvv2QjPN5iAlKmACfRVRHk6N1c+v8X1xECX8nFyI+W/8mjhbSyt9H+t7uXaJJbye4qrlKjpjjnJ2iN951DOYUbHu4+K+uPT6PI29iiFGkWY6s9YZdq0SBTCBaZmKct2VakU3uvEj7DoeobU6I0np9X08nSuWGEW5sX4WIy0rlyiAieaz1NdUjqq8oZbXCO7D5Wbx9/ZiEGTFFKPoKtd+dRwHB8wn7sMEtHmdoMa0PR1h7xlj09juXixnROxwCzT9UFX/QQETSOy7JBciqE6sTBVi+hUBXRQxqE+h7UZV/AcDTABrEsDBVYJwbHMdQl7qaNu4GbF9n06vj9Sx7h3rsRFr+PoPApiOl6PjY6halhKj6CLGV2M4DuzzK/i7M7DPvjtpqzNrae1cagOmw4m1RvS4vHOvfoa6/PglZoiW05guvRhPIMgHIwUqjbWY3nki1QJMRzp0HEhdK9KA/oNfnTE/Fsl/cLe9WGfjWLHHKGvjVA9lc1ryUwswHe1CjbXe93l8n4Jgf+FvVqUX86kErTHEKO/EqbQfWyoD5hO0Kd53GttDdYPzEOrm6s3TtiT2m4jgvIhR7NRjUNpFJcA4Xg+v+v1QrHIlAv0olvO+X8axAtXrpKXf1uVvbwxXuthWtNm/x2Jkc2/AONSv5o6mLjLSa70dv6f52fVcjG/NOGZipWvlOjONuU5ZY9GYYhQxOLrHpNC/F+ABUXQjIUa5H6da6vpcDOd9n4xjYV4fRp1FVf4e7dGEvbFoyY/GFqNM3NTpsZni3xkwDmR7KHW1KV7CbHgSN/pZp/7GLnvRwVsGOnkbr/cYeB/0ZW9Ms3Eaa2xicmiP0aTYnQHTanfqBpNah3ujGXsiQvwtnMtiT4iwA3u2Kti7LfuKtheY+m/qje1EWsY6OomNGE0qToAZ+Ptotf2klmHfnIkAc8O6nOqNcWimThFhwHJvbAZn9sCu+i97YzyzvqeRHrbvsVpgMBYwDdbHet8FLcK/uIKBXx3e7WSPjEMXY/QVU3aBQHocju3qk1uHe9cb6xXhPE7xtG+P2cSOUsAYrorVkVSdlMQoc3B6QQzHgz4Zx8t4fwzV5RLfS7DzvuY72J/D6wuw0dhjFLE6sseu9NMco/PGfTLQmXR6CnWWZ+fzsD+CGZds1YhnvIXmpTO4sEVGG4E7mA75Rh41ffINpqp9qwEjynA65KtT1PTJN5gq9q0FzOwdlQ756qT0KehidN8A6ti3EjBAxqVDvpppMXqsawC+sXjZtw4wIFzSIS+RMJZOev5ktPTJNyBX+1YBBoBPOuSqUd+uifSp31ewv60BDFylQ8dRo93+w7c+QLHvPtFFuNIKwMCtkw75qplV+tQKwBDakxrtGnLBJyCb9Cl7wMxepUMp0pgs0qesAQM3dDpUMFlLN5lPn7IFDNwY6VApzYKd0s90+pQlYODGTIcKOJZuMp0+ZQcYuBI0djpUSrRgp9n0KSvAwFU6dDh1VoHIqTcpfSpcF5UysKwAI1TT6ZAvmw1pEG3xnm8wss8GMLNXa8JSpEO+uppKn7IADFylQ5/2VTqhvZn0yTxg4FpIh3w/K9LVRPo0wzfyJu2Bq7NTPa4o5g2EmEPSg2IOYl1XrCfxjI3d7AwGrsV0aKygQwbL8z7p3SeTgIFrOR0aYjj2bdL0ySRgJLOeDo2lOmSQLH0yB5jZm0s6NMRw7Nsk6ZMpwMDNLR0aS3XIoPH0yQxg4OaYDg3xG/tWejeaPplIk4Cbezo0luyQgdKng0mf9DdqST6DgduGdMgXktKnRv7FXVLAwG1TOuQLuZH0KSlgFGlbOuQLOXr6lAwws7et6ZAvZKVP2/g2crVPApgBtT0dctW/b7cnmmzQfxPyb+OAGcjEdw+DMHEGH1LMGr7EIcqjIxoVGbjTLR3yZR48fWpsBgN3OqZDvoCDp0+NAAbudE6HfCEHTZ8aAcwIp3s65As5WPoUHTCzdztGl8NiOV8Ise2DpE9RAQNX6ZCpZaSxqQT2Xzt9igYYuF06VJ+2+NRKn6KkScDt0qH6cAc9VE6fgs9g4Hbp0CCaMK8rp09BAQNX6dBh1FlhxtV5GVCgUvoUFDDBKB2Kck11YKDT+aV3+hQMMLO3S4ea+eh5pU9BAAO3S4eagdvvxTl9qg0YuF061Je9ub/i5pQ+1UqTgNulQ81BLeppbPpUeQYDt0uHiiRvdtvY3z5VAgzcLh1qFmRZb2uwc+SjIyoBxmGXDpVJ3vy+kemTN2Bmb5cONQ/QpcfC9MkLMHC7dMhF6nQ2U9InZ8DA7dKhdOBcexbPSemTU5oEXJ2tnU7N9VEKrgK1xW5B+jR2BgO3S4fyw74gfRo7gwG8O+N7a8IxLkbfKybsv27Xf63roEb7OWMB13AepCkfsHVx9OUgzpp38hA/EdUESVbGHqKTRfZCx7qokmtJOXsnNOsAx/3odIAd9M15Bt/nML6oJt0MjirvQt0MdtA35xncAXYAvIiDjUWTpziDfjR1YN0hOh6B5N+/GloOgHOdwckPz7kA1qXSHEsH2JGa/ulkjqUD7EgtV8D3Oo4vqlkO38E5HqIf5wz6gajkHJ3nAHgJx7FYMvuTlWByAJzjIboD7PEJ7wB7iDVsmsMMzu07+H+IPG9Y6FTvcwD80lTiVOz3Lk6wnq3YNngz04BZzaEVJ7kBNvP9q0+LacDEtzQ1t7tJHWB9shzLso52VszmE8gdVoJRHNZncG6A/8L37787wO4K5Ab4j+5Da8aym8FhdZ4T1l19b9YBa4V+LuUpAp1rLVjrgFeyJlhJPHMs5b/9OK0Dfnk/0Az+3mgxRrOAexc5VrYoWkFMT7Pt1oLtyTeZBYwyeoLPoskVcgvgVg7P/3UzbdbKMuDu8Bzgs9ABri/ic7gwlx71h2UZ8Cr9II3/ncvh+UmrMVoGvKpV0YbiMnn23I/RMuA1+kEa/qub+zcYjs/mzQZSpCURbQXLwvViu8Hy4VkxWp3Bq2cAVyH+1HqcVgGvaV044pvH7L3bepxWAa9hXTjiMz97paFVwNYP0bpzdIMEtF7MAeYES8/FeqVx4a61emlyWDdzgAlwHar1hXZXDgtp9b1FwK+zKlYvrj8ye038et9FJ4uAX+sSeEKbKxL27d21KcB8/+rQrEcXWi13M3vN3lgoEs0UYAJU/rt4UaBGtl1sJA7nMKwBtnx4/hOz9xZnZY0YWgNs+QQru9mrz5gZwHz/annO+kY++MNh/IHZa25J7HCQRe/NACa4N1BfXBSkgW1Zzl7pZglwyqfKl32GbmH2mvpBWVmww/ssAd5wODgj77OdvdLPBGC+f3VzweIN/quZveZvCZZNBBOACdDi4fkx4vpmmXg57LMCeCODYp3L7DW7WtJVr+SAOTxreezargE3ZKdfKlzfUF9Ru0kOmNFtHnWE/s61UvIb/s1strAAeFNj0nyX2fuAsZgqh5MUMIfn1xC5pd8A30s8Wd0OHEc+KWCC22xcgA3uf56+vsbsNfMQsxBjTwa4d+15kxCDCOTj28DN9orVKA2SASagd1KtPCpYP96+dJRIOW9PCXhbI8I9QhynMXv1ELPWlSSAOTxrWY6F3Fffu6cCV1etWlmSAEbJ7YyoeRFwbzcSS5QwGgfM7NWzrzaOMho/pzdhfrlfk/ysGweMRFtSUy9sf4gYzmjr9+7gx7BRwMzemXS+1WAACV7rBsJxwH08Qd+Nd9koYEanM+elGh/lCx3qOvNs4Gbzy4QXQq/2qjHAvdn7gWphBmnVP2Nu3cWMMnUaA0wQ21NTXtg4k5n72zIx2rivEcDMXj1zQ4BTlUuA+7NUnafstxHADDDl7L0KuN9JKXLKvqMDZvYu1wOcYpzX0ulZKTq20uciDQSyK32k+OdWP6bfc5i9rbzG7MotKmBm73oEkuKe7/cAm/V6ZleA4+yiAQauDv97jwsgwv7zgXtFBL9ZuowGGDXeS9XvfZsqOhR/HbjT8mx5lMhRADN7dbXqE6M6jbBdj/TVPd1fRvCdtcsogFFEh+alG1LmX/RzMnBbfduvqpbBATN7dSvw3VUD8mx3F/YnAvdhz3bTxjwoYOAug3KfaUi9q+nnLOA+01B/WXYTFDAKfJYa+9CsZa1nA/aqLBVvOOhggJm9mxJ77B+RaYHcScC9s2Gdsu0uCGDgrowC+0RWQXeCtDBdJ1VdcVSgNmDg6uGhR1Fj3Qp8Ct86JF/nOKbObECB2oDxtS811uN/tTBOs7Y7Sx6A5vOyFmBm7/vobAufDh1t9U+W9QPsnzvad2YjFKgMGLhauB7je/dm/OqSo1Y+dqWmApUAA1f/mftIaqX2I2K+n+3nAfZ3I/Z3myso4A0IuLq3exx1hQr9FTXRSdQl1J8Ct1U/3SwabNPbvAADVwvWj6CGuEukVY76xxZaL/UEf7sSQQEvwPSvK1VvDhCHnrl8AWDvC+Crc1GigDNgZu/H8LNFia9xu3S/9tfUSwE7b5xxtz+MAk6Agbs13e1csUsdinWR4jLA/rWij65ZRQXGAgaufktUJR3SXR7d8fkBYB+sGF/XrKYCM8ra92auL9x/4FPLZn4B2EfL/Hf74iswErAnXC2Z0c2Aq6i3AVbft10xoEAhYA+4f2cMmq3XdLPVAM2CEKYABu5HsPtEgW1/0z95obPhX1Hv6GZrXxabfxcABqwuYuj79v0Foep7tQ/1rg5qgUJGN00ABu7ixHcotf/UdaU2ylVvpd4I0Hv425UMFZgBXC2UO5Y6k/r7Xp0L1OyflcxYugLg9ah68k1XOgU6BXJT4P/OYxRnaI6r8QAAAABJRU5ErkJggg=="/>\n </div>\n <p>请点击右上角按钮,选择“'+e+"”</p>",document.body.appendChild(t),t.addEventListener("click",function(){t.remove()})},h=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.isDirectCallApp,t=void 0!==e&&e,o=n.icon,i=void 0===o?"https://app.dfzq.com.hk/dfhqcf-app/open/favicon.png":o,a=n.mainText,u=void 0===a?"东方环球财富":a,f=n.subText,d=void 0===f?"悦享投资之美":f,p=n.buttonText,h=void 0===p?"立即打开":p,y=n.appDownloadUrl,m=void 0===y?"https://static.dfzq.com.hk/html5-dfgj-commonappdownload-dist/common-appdownload/index.html":y,b=n.appStoreUrl,w=void 0===b?"https://static.dfzq.com.hk/html5-dfgj-commonappdownload-dist/common-appdownload/index.html":b,A=n.scheme;A=void 0===A?{}:A;var x=A.protocol,O=void 0===x?"dfgj":x,k=n.universal,B=n.path,S={scheme:{protocol:O},appstore:w,yingyongbao:m,fallback:m,timeout:5e3};k&&(S.universal=k);var N=new r.default(S),M=function(n,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((s()||g&&l())&&!t)return void v();n||(n=document.location.href),/^http/.test(n)&&(n="dl/wb?url="+encodeURIComponent(n)),N.open({path:n,callback:e})},j=document.createElement("style");j.innerHTML=c.default,document.head.appendChild(j);var I=document.createElement("div");I.className="share-navigation",I.innerHTML='\n <div>\n <div class="logo-image">\n <img src="'+i+'" />\n </div>\n <div class="logo-text">\n <p>'+u+"</p>\n <p>"+d+'</p>\n </div>\n </div>\n <button class="open">'+h+"</button>",document.body.appendChild(I);var P=I.getElementsByClassName("open")[0];P&&(P.addEventListener("click",function(){M(B)}),t&&(s()||g&&l()||M(B,function(){},!0)))};e.default=h},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.onCallAppInstall=e.hideLoading=e.showLoading=e.getSystemInfo=e.onIdCardOCR=e.onShareCheckInstall=e.onTradeLogin=e.onViewWillAppear=e.onWxPay=e.onNavigateBar=e.onNavigateNativeTo=e.onReq=e.onNavigateBack=e.onNavigateTo=e.onShare=e.onMobileLogin=e.updateState=e.oauth=e.ready=e.isFromAndroid=e.isFromIOS=e.isFromWeiXin=e.isFromApp=void 0;var o=t(0),i=t(2),r=t(3),a=t(1),c=t(4),u=function(n){return n&&n.__esModule?n:{default:n}}(c),s=function(){},l=navigator.userAgent,f=l.match(/(Android);?[\s\/]+([\d.]+)?/),d=l.match(/(iPad).*OS\s([\d_]+)/),p=l.match(/(iPod)(.*OS\s([\d_]+))?/),g=!d&&l.match(/(iPhone\sOS)\s([\d_]+)/),v=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},h=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},y=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},m=function(){return!!(d||g||p)},b=function(){return!!f},w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;(0,i.ready)(n)},A=function(n){var e={success:s,fail:s};n=(0,o._extends)({},e,n),h()?((0,a.log)("[jsbridge oauth] callback"),(0,i.onRequest)("refreshToken",null,function(e){if("function"==typeof n.success){var t=(0,i.wrapOkPayload)(e);n.success(t)}(0,a.log)("[jsbridge oauth] end")})):v()},x=function(n){h()?((0,a.log)("[jsbridge updateState] callback"),n&&(0,i.onRequest)("updateState",n)):v()},O=function(n){var e={success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("mobileLogin",{},n.success,n.fail):v()},k=function(n){var e={success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("tradeLogin",{},n.success,n.fail):v()},B=function(n){var e={channel:["1","2","3","4"],title:"",description:"",thumbImageUrl:"https://app.dfzq.com.hk/dfhqcf-app/open/favicon.png",link:"",ext:"",success:s,fail:s};n=(0,o._extends)({},e,n),h()?(-1!==n.channel.indexOf(3)&&(d||g||p)&&(n.thumbImageUrl=n.thumbImageUrl),(0,i.onRequest)("onShare",{channel:n.channel,title:n.title,description:n.description,thumbImageUrl:n.thumbImageUrl,link:n.link,ext:n.ext},n.success,n.fail)):v()},S=function(n){var e={title:"",uri:"",success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onPushView)(n):v()},N=function(n){var e={title:"",uri:"",success:s,fail:s};n=(0,o._extends)({},e,n),h()?(n.complete=n.success,(0,i.onBack)(n)):v()},M=function(n,e){var t={success:s,fail:s};e=(0,o._extends)({},t,e),h()?(0,i.onApiRequest)(n,e,e.success,e.fail):v()},j=function(n){var e={url:"",success:s,fail:s};n=(0,o._extends)({},e,n),(0,r.compareVersion)("3.2.6")>=0&&""!=n.url&&(n.url=n.url.replace("dfyj://dl","dfyj20170811://dl")),h()?(0,i.onDynamicLink)(n):v()},I=function(n){var e={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:s,isShowBackButton:!0,success:s,fail:s};n=(0,o._extends)({},e,n),h()?(n.onRightButtonPress!=s&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",n.onRightButtonPress),(0,i.onNavigationBar)(n)):v()},P=function(n){var e={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("5",{appId:n.appId,partnerId:n.partnerId,prePayId:n.prePayId,noncestr:n.noncestr,timestamp:n.timestamp,package:n.package,sign:n.sign},n.success,n.fail):v()},q=function(n){"function"==typeof n&&(h()?((0,a.log)("pageWillAppear->{}"),(0,i.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,a.log)("pageWillAppear<-{DOMContentReady:yes}"),n()):document.addEventListener("DOMContentLoaded",function(){(0,a.log)("pageWillAppear<-{DOMContentLoaded:yes}"),n()})})):v())},C=function(n){var e={channel:[1,2,3,4],success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("onShareCheckInstall",n,n.success,n.fail):v()},V=function(n){var e={mode:"1",success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("9",n,n.success,n.fail):v()},L=function(n){var e={success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("getSystemInfo",{},n.success,n.fail):v()},E=function(n){var e={text:"加载中",cancelable:!0,success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("showLoading",n,n.success,n.fail):v()},D=function(n){var e={success:s,fail:s};n=(0,o._extends)({},e,n),h()?(0,i.onRequest)("hideLoading",{},n.success,n.fail):v()},J=function(n){h()||(0,u.default)(n)};e.isFromApp=h,e.isFromWeiXin=y,e.isFromIOS=m,e.isFromAndroid=b,e.ready=w,e.oauth=A,e.updateState=x,e.onMobileLogin=O,e.onShare=B,e.onNavigateTo=S,e.onNavigateBack=N,e.onReq=M,e.onNavigateNativeTo=j,e.onNavigateBar=I,e.onWxPay=P,e.onViewWillAppear=q,e.onTradeLogin=k,e.onShareCheckInstall=C,e.onIdCardOCR=V,e.getSystemInfo=L,e.showLoading=E,e.hideLoading=D,e.onCallAppInstall=J},function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".share-navigation {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 100;\n background: #ffffff;\n -webkit-box-shadow: 0 0 8px 1px rgba(215, 215, 215, 0.5);\n box-shadow: 0 0 8px 1px rgba(215, 215, 215, 0.5);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 68px;\n width: 100%;\n padding: 0 16px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.share-navigation p {\n margin: 0;\n}\n.share-navigation > :first-child {\n -webkit-box-flex: 1;\n -ms-flex: auto;\n flex: auto;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.share-navigation > :first-child .logo-image {\n display: inline-block;\n width: 40px;\n height: 40px;\n margin-right: 16px;\n}\n.share-navigation > :first-child .logo-image img{\n width: 100%;\n height: 100%;\n display: block;\n}\n.share-navigation > :first-child .logo-text {\n font-size: 15px;\n color: #777770;\n}\n.share-navigation .open {\n font-size: 15px;\n width: 100px;\n height: 38px;\n color: #ffffff;\n text-align: center;\n background: #ec2e31;\n border-radius: 4px;\n border: none;\n outline: none;\n}\n\n#mask-panel {\n position: fixed;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.7);\n z-index: 1000;\n color: #d0d0d0;\n top: 0;\n left: 0;\n}\n#mask-panel #arraw {\n position: absolute;\n right: 20px;\n top: 25px;\n width: 35px;\n}\n#mask-panel #arraw img {\n width: 100%;\n}\n#mask-panel p {\n text-align: center;\n margin-top: 140px;\n}"},,,,,,,,,,,,,,,function(n,e,t){!function(e,t){n.exports=function(){"use strict";function n(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function e(n,e){return e={exports:{}},n(e,e.exports),e.exports}function t(){var n=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return parseInt(n[1],10)}function o(){return navigator.appVersion.match(/micromessenger\/(\d+\.\d+\.\d+)/i)[1]}function i(){var n=window.navigator.userAgent||"",e=/android/i.test(n),t=/iphone|ipad|ipod/i.test(n);return{isAndroid:e,isIos:t,isWechat:/micromessenger\/([\d.]+)/i.test(n),isWeibo:/(weibo).*weibo__([\d.]+)/i.test(n),isQQ:/qq\/([\d.]+)/i.test(n),isQQBrowser:/(qqbrowser)\/([\d.]+)/i.test(n),isQzone:/qzone\/.*_qz_([\d.]+)/i.test(n),isOriginalChrome:/chrome\/[\d.]+ Mobile Safari\/[\d.]+/i.test(n)&&e,isSafari:/safari\/([\d.]+)$/i.test(n)&&t&&n.indexOf("Crios")<0&&0===n.indexOf("Mozilla")}}function r(n,e){var t=n.path,o=n.param,i=e.buildScheme;if(void 0!==i)return i(n,e);var r=e.scheme,a=r.host,c=r.port,u=r.protocol,s=c?":"+c:"",l=a?""+a+s+"/":"",f=void 0!==o?Mn(o).map(function(n){return n+"="+o[n]}).join("&"):"";return u+"://"+l+t+(f?"?"+f:"")}function a(n,e){var t=e.outChain,o=r(n,e);return void 0!==t&&t&&(o=t.protocol+"://"+t.path+"?"+t.key+"="+encodeURIComponent(o)),o}function c(n,e){var t=e.outChain,o=e.intent,i=e.fallback,a=Mn(o).map(function(n){return n+"="+o[n]+";"}).join(""),c="#Intent;"+a+"S.browser_fallback_url="+encodeURIComponent(i)+";end;",u=r(n,e);if(void 0!==t&&t){var s=e.outChain;return"intent://"+s.path+"?"+s.key+"="+encodeURIComponent(u)+c}return"intent://"+(u=u.slice(u.indexOf("//")+2))+c}function u(n,e){var t=e.universal;if(!t)return"";var o=t.host,i=t.pathKey,r=n.path,a=n.param,c=void 0!==a?Mn(a).map(function(n){return n+"="+a[n]}).join("&"):"";return"https://"+o+"?"+i+"="+r+(c?"&"+c:"")}function s(n,e){var t=a(n,e);return e.yingyongbao+"&android_schema="+encodeURIComponent(t)}function l(){var n=["webkit","moz","ms","o"],e=void 0;return"hidden"in document?"":(n.forEach(function(n){n+"Hidden"in document&&(e=n)}),e||!1)}function f(){var n=l();if(!1===n)return!1;var e=n?n+"Hidden":"hidden";return document[e]}function d(){var n=l();return!1!==n&&n+"visibilitychange"}function p(n){window.top.location.href=n}function g(n){jn||(jn=document.createElement("iframe"),jn.frameborder="0",jn.style.cssText="display:none;border:0;width:0;height:0;",document.body.appendChild(jn)),jn.src=n}function v(n){var e=document.createElement("a");e.setAttribute("href",n),e.style.display="none",document.body.appendChild(e),e.click()}function h(n,e){var t=d(),o=setTimeout(function(){f()||n()},e);if(t)return void document.addEventListener(t,function(){clearTimeout(o)});window.addEventListener("pagehide",function(){clearTimeout(o)})}var y=e(function(n){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),m=e(function(n){var e=n.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)}),b=(m.version,function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}),w=function(n,e,t){if(b(n),void 0===e)return n;switch(t){case 1:return function(t){return n.call(e,t)};case 2:return function(t,o){return n.call(e,t,o)};case 3:return function(t,o,i){return n.call(e,t,o,i)}}return function(){return n.apply(e,arguments)}},A=function(n){return"object"==typeof n?null!==n:"function"==typeof n},x=function(n){if(!A(n))throw TypeError(n+" is not an object!");return n},O=function(n){try{return!!n()}catch(n){return!0}},k=!O(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),B=y.document,S=A(B)&&A(B.createElement),N=function(n){return S?B.createElement(n):{}},M=!k&&!O(function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a}),j=function(n,e){if(!A(n))return n;var t,o;if(e&&"function"==typeof(t=n.toString)&&!A(o=t.call(n)))return o;if("function"==typeof(t=n.valueOf)&&!A(o=t.call(n)))return o;if(!e&&"function"==typeof(t=n.toString)&&!A(o=t.call(n)))return o;throw TypeError("Can't convert object to primitive value")},I=Object.defineProperty,P=k?Object.defineProperty:function(n,e,t){if(x(n),e=j(e,!0),x(t),M)try{return I(n,e,t)}catch(n){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(n[e]=t.value),n},q={f:P},C=function(n,e){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:e}},V=k?function(n,e,t){return q.f(n,e,C(1,t))}:function(n,e,t){return n[e]=t,n},L={}.hasOwnProperty,E=function(n,e){return L.call(n,e)},D=function(n,e,t){var o,i,r,a=n&D.F,c=n&D.G,u=n&D.S,s=n&D.P,l=n&D.B,f=n&D.W,d=c?m:m[e]||(m[e]={}),p=d.prototype,g=c?y:u?y[e]:(y[e]||{}).prototype;c&&(t=e);for(o in t)(i=!a&&g&&void 0!==g[o])&&E(d,o)||(r=i?g[o]:t[o],d[o]=c&&"function"!=typeof g[o]?t[o]:l&&i?w(r,y):f&&g[o]==r?function(n){var e=function(e,t,o){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,t)}return new n(e,t,o)}return n.apply(this,arguments)};return e.prototype=n.prototype,e}(r):s&&"function"==typeof r?w(Function.call,r):r,s&&((d.virtual||(d.virtual={}))[o]=r,n&D.R&&p&&!p[o]&&V(p,o,r)))};D.F=1,D.G=2,D.S=4,D.P=8,D.B=16,D.W=32,D.U=64,D.R=128;var J=D,W={}.toString,R=function(n){return W.call(n).slice(8,-1)},Y=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==R(n)?n.split(""):Object(n)},T=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n},H=function(n){return Y(T(n))},z=Math.ceil,F=Math.floor,U=function(n){return isNaN(n=+n)?0:(n>0?F:z)(n)},_=Math.min,X=function(n){return n>0?_(U(n),9007199254740991):0},Q=Math.max,K=Math.min,Z=function(n,e){return n=U(n),n<0?Q(n+e,0):K(n,e)},G=e(function(n){var e=y["__core-js_shared__"]||(y["__core-js_shared__"]={});(n.exports=function(n,t){return e[n]||(e[n]=void 0!==t?t:{})})("versions",[]).push({version:m.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),$=0,nn=Math.random(),en=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++$+nn).toString(36))},tn=G("keys"),on=function(n){return function(n,e,t){for(var o=H(n),i=X(o.length),r=Z(t,i);i>r;r++)if(r in o&&o[r]===e)return r||0;return-1}}(),rn=function(n){return tn[n]||(tn[n]=en(n))}("IE_PROTO"),an=function(n,e){var t,o=H(n),i=0,r=[];for(t in o)t!=rn&&E(o,t)&&r.push(t);for(;e.length>i;)E(o,t=e[i++])&&(~on(r,t)||r.push(t));return r},cn="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),un=Object.keys||function(n){return an(n,cn)},sn=Object.getOwnPropertySymbols,ln={f:sn},fn={}.propertyIsEnumerable,dn={f:fn},pn=function(n){return Object(T(n))},gn=Object.assign,vn=!gn||O(function(){var n={},e={},t=Symbol(),o="abcdefghijklmnopqrst";return n[t]=7,o.split("").forEach(function(n){e[n]=n}),7!=gn({},n)[t]||Object.keys(gn({},e)).join("")!=o})?function(n,e){for(var t=pn(n),o=arguments.length,i=1,r=ln.f,a=dn.f;o>i;)for(var c,u=Y(arguments[i++]),s=r?un(u).concat(r(u)):un(u),l=s.length,f=0;l>f;)c=s[f++],k&&!a.call(u,c)||(t[c]=u[c]);return t}:gn;J(J.S+J.F,"Object",{assign:vn});var hn=m.Object.assign,yn=e(function(n){n.exports={default:hn,__esModule:!0}}),mn=n(yn),bn=e(function(n,e){e.__esModule=!0,e.default=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}}),wn=n(bn);J(J.S+J.F*!k,"Object",{defineProperty:q.f});var An=m.Object,xn=function(n,e,t){return An.defineProperty(n,e,t)},On=e(function(n){n.exports={default:xn,__esModule:!0}});n(On);var kn=e(function(n,e){e.__esModule=!0;var t=function(n){return n&&n.__esModule?n:{default:n}}(On);e.default=function(){function n(n,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,t.default)(n,i.key,i)}}return function(e,t,o){return t&&n(e.prototype,t),o&&n(e,o),e}}()}),Bn=n(kn);!function(n,e){var t=(m.Object||{})[n]||Object[n],o={};o[n]=function(){return function(n){return un(pn(n))}}(),J(J.S+J.F*O(function(){t(1)}),"Object",o)}("keys");var Sn=m.Object.keys,Nn=e(function(n){n.exports={default:Sn,__esModule:!0}}),Mn=n(Nn),jn=null;return function(){function n(e){wn(this,n);var t={timeout:2e3};this.options=mn(t,e)}return Bn(n,[{key:"generateScheme",value:function(n){return a(n,this.options)}},{key:"generateIntent",value:function(n){return c(n,this.options)}},{key:"generateUniversalLink",value:function(n){return u(n,this.options)}},{key:"generateYingYongBao",value:function(n){return s(n,this.options)}},{key:"checkOpen",value:function(n){return h(n,this.options.timeout)}},{key:"fallToAppStore",value:function(){var n=this;this.checkOpen(function(){p(n.options.appstore)})}},{key:"fallToFbUrl",value:function(){var n=this;this.checkOpen(function(){p(n.options.fallback)})}},{key:"fallToCustomCb",value:function(n){this.checkOpen(function(){n()})}},{key:"open",value:function(n){var e=i(),r=this.options,a=r.universal,c=r.appstore,u=r.logFunc,s=r.intent,l=n.callback,f=void 0!==a,d=this.generateScheme(n),h=null;if(void 0!==u&&u(),e.isIos?e.isWechat&&o()<"7.0.5"||e.isQQ||e.isQQBrowser?p(c):t()<9?(g(d),h=this.fallToAppStore):f?p(this.generateUniversalLink(n)):(p(d),h=this.fallToAppStore):e.isWechat?p(this.generateYingYongBao(n)):e.isOriginalChrome?void 0!==s?p(this.generateIntent(n)):(v(d),h=this.fallToFbUrl):(g(d),h=this.fallToFbUrl),void 0!==l)return void this.fallToCustomCb(l);h&&h.call(this)}}]),n}()}()}()}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=i,t.isEmpty=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),i=n(1),a=navigator.userAgent,r=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),l=a.match(/(iPod)(.*OS\s([\d_]+))?/),s=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/),f=!!a.toLowerCase().match(/DFYJ/i),d=function(e){return e.init(function(e,t){t&&t(data)}),e},u=function(e){var t=function(t){(0,i.log)("ready end"),e(t)};if(f)if(c||s||l){if(window.WebViewJavascriptBridge)return(0,i.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,i.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,i.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,i.log)("ready sync start"),t(d(WebViewJavascriptBridge))):((0,i.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(d(WebViewJavascriptBridge))},!1)):((0,i.log)("other platform ready sync start"),t());else(0,i.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,i.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,i.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,i.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},k=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,i.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,i.log)("onPushView<-"+JSON.stringify(e))})},m=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,i.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,i.log)("onNotify<-"+JSON.stringify(e))})},J={},O=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),J[n]=t,(0,i.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,i.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),J[n]&&J[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,i.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,i.log)("onDynamicLink<-"+JSON.stringify(e))})},_={},B=!1,x=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},S=[],V=function e(){var t=x(1e3,9999);return-1!==S.indexOf(t)?e(t):(S.push(t),t)},W=function(e,t,n,o){var a={type:e||"1",payload:t||{},callbackId:V()};_[e+"-ok"]="function"==typeof n?n:p,_[e+"-notok"]="function"==typeof o?o:p,_[e+"_"+a.callbackId+"-ok"]="function"==typeof n?n:p,_[e+"_"+a.callbackId+"-notok"]="function"==typeof o?o:p,(0,i.log)("onRequest->"+JSON.stringify(a)),WebViewJavascriptBridge.callHandler("request",a,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,i.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-notok"]?_[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof _[e.type+"-notok"]&&_[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-ok"]?(c||s||l||e.payload)&&_[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof _[e.type+"-ok"]&&(c||s||l||e.payload)&&_[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-notok"]?_[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof _[e.type+"-notok"]&&_[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-ok"]?_[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof _[e.type+"-ok"]&&_[e.type+"-ok"](y(e.payload))}),B=!0)},I=function(e,t,n,a){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,i.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,i.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||s||l){if(e.error||"true"===e.error)e.payload?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof a&&a(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof a&&a(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=u,t.onBack=v,t.onRefresh=b,t.onNavigationBar=h,t.onPushView=k,t.onNotify=w,t.subscribeNotify=O,t.onDynamicLink=N,t.onRequest=W,t.pageWillAppear=m,t.onApiRequest=I},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=void 0;var o=n(0),i=n(2),a=!1,r=function(){},c=function(){return{error:!1,info:"ok",payload:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},l=function(){return{error:!0,info:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"error"}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请在东方赢家财富版客户端打开链接",t=document.createElement("div");t.style.cssText="display:table;position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:white;z-index:99999;",t.innerHTML='<div style="display:table-cell;vertical-align: middle;text-align: center;">'+e+"</div>",document.body.appendChild(t)},f=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;f()?(0,i.ready)(e):s()},u=function(e){var t={success:r,fail:r};e=(0,o._extends)({},t,e),f()?a||(a=!0,WebViewJavascriptBridge&&WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=c(n);e.success(o)}}else if("function"==typeof e.fail){var i=l("桥接程序建立失败");e.fail(i)}a=!1})):s()},p=function(e){var t={success:r,fail:r};e=(0,o._extends)({},t,e),f()?(0,i.onRequest)("2","",e.success,e.fail):s()},y=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:r,fail:r};e=(0,o._extends)({},t,e),f()?(0,i.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail):s()},g=function(e){var t={title:"",uri:"",success:r,fail:r};e=(0,o._extends)({},t,e),f()?(0,i.onPushView)(e):s()},v=function(e){var t={title:"",uri:"",success:r,fail:r};e=(0,o._extends)({},t,e),f()?(e.complete=e.success,(0,i.onBack)(e)):s()};t.ready=d,t.oauth=u,t.onLogin=p,t.onShare=y,t.onNavigateTo=g,t.onNavigateBack=v}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=i,t.isEmpty=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),i=n(1),a=navigator.userAgent,r=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),s=a.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/),f=!!a.toLowerCase().match(/DFYJ/i),u=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,i.log)("ready end"),e(t)};if(f)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,i.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,i.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,i.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,i.log)("ready sync start"),t(u(WebViewJavascriptBridge))):((0,i.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(u(WebViewJavascriptBridge))},!1)):((0,i.log)("other platform ready sync start"),t());else(0,i.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,i.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,i.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,i.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},k=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,i.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,i.log)("onPushView<-"+JSON.stringify(e))})},m=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,i.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,i.log)("onNotify<-"+JSON.stringify(e))})},J={},O=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),J[n]=t,(0,i.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,i.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),J[n]&&J[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,i.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,i.log)("onDynamicLink<-"+JSON.stringify(e))})},_={},B=!1,x=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},S=[],V=function e(){var t=x(1e3,9999);return-1!==S.indexOf(t)?e(t):(S.push(t),t)},W=function(e,t,n,o){var a={type:e||"1",payload:t||{},callbackId:V()};_[e+"-ok"]="function"==typeof n?n:p,_[e+"-notok"]="function"==typeof o?o:p,_[e+"_"+a.callbackId+"-ok"]="function"==typeof n?n:p,_[e+"_"+a.callbackId+"-notok"]="function"==typeof o?o:p,(0,i.log)("onRequest->"+JSON.stringify(a)),WebViewJavascriptBridge.callHandler("request",a,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,i.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-notok"]?_[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof _[e.type+"-notok"]&&_[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&_[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof _[e.type+"-ok"]&&(c||l||s||e.payload)&&_[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-notok"]?_[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof _[e.type+"-notok"]&&_[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-ok"]?_[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof _[e.type+"-ok"]&&_[e.type+"-ok"](y(e.payload))}),B=!0)},I=function(e,t,n,a){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,i.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,i.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof a&&a(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof a&&a(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=b,t.onNavigationBar=h,t.onPushView=k,t.onNotify=w,t.subscribeNotify=O,t.onDynamicLink=N,t.onRequest=W,t.pageWillAppear=m,t.onApiRequest=I},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),i=n(2),a=!1,r=function(){},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请在东方赢家财富版客户端打开链接",t=document.createElement("div");t.style.cssText="display:table;position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:white;z-index:99999;",t.innerHTML='<div style="display:table-cell;vertical-align: middle;text-align: center;">'+e+"</div>",document.body.appendChild(t)},s=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},l=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;s()?(0,i.ready)(e):c()},u=function(e){var t={success:r,fail:r};e=(0,o._extends)({},t,e),s()?a||(a=!0,WebViewJavascriptBridge&&WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,i.wrapOkPayload)(n);e.success(o)}}else if("function"==typeof e.fail){var r=(0,i.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(r)}a=!1})):c()},d=function(e){var t={success:r,fail:r};e=(0,o._extends)({},t,e),s()?(0,i.onRequest)("2","",e.success,e.fail):c()},p=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:r,fail:r};e=(0,o._extends)({},t,e),s()?(0,i.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail):c()},y=function(e){var t={title:"",uri:"",success:r,fail:r};e=(0,o._extends)({},t,e),s()?(0,i.onPushView)(e):c()},g=function(e){var t={title:"",uri:"",success:r,fail:r};e=(0,o._extends)({},t,e),s()?(e.complete=e.success,(0,i.onBack)(e)):c()},v=function(e,t){var n={success:r,fail:r};t=(0,o._extends)({},n,t),s()?(0,i.onApiRequest)(e,t,t.success,t.fail):c()};t.isFromApp=s,t.isFromWeiXin=l,t.ready=f,t.oauth=u,t.onLogin=d,t.onShare=p,t.onNavigateTo=y,t.onNavigateBack=g,t.onReq=v}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=9)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(s||l||c){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},O=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},w={},_=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),w[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),w[n]&&w[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},I=[],x=function e(){var t=S(1e3,9999);return-1!==I.indexOf(t)?e(t):(I.push(t),t)},W=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:x()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(s||l||c||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(s||l||c||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},V=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),s||l||c){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=h,t.onNavigationBar=m,t.onPushView=b,t.onNotify=O,t.subscribeNotify=_,t.onDynamicLink=N,t.onRequest=W,t.pageWillAppear=k,t.onApiRequest=V},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),s=t.split(".");if(e===t)return 0;for(var c=0;c<r.length;c++){var l=parseInt(r[c]);if(!s[c])return 1;var u=parseInt(s[c]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionalStocks=t.onIdCardOCR=t.onShareCheckInstall=t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromAndroid=t.isFromIOS=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=n(1),s=!1,c=function(){},l=navigator.userAgent,u=l.match(/(Android);?[\s\/]+([\d.]+)?/),f=l.match(/(iPad).*OS\s([\d_]+)/),d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&l.match(/(iPhone\sOS)\s([\d_]+)/),y=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},g=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},v=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},h=function(){return!!(f||p||d)},m=function(){return!!u},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;(0,a.ready)(e)},k=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()?s||(s=!0,WebViewJavascriptBridge&&((0,r.log)("oauth start"),WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){(0,r.log)("oauth successful:"+JSON.stringify(t));var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if((0,r.log)("oauth failure:"+JSON.stringify(t)),"function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}s=!1,(0,r.log)("oauth end")}))):y()},O=function(e){var t={success:c,fail:c};if(e=(0,o._extends)({},t,e),g()){var n=(0,i.compareVersion)("4.6.0")>=0?{type:"2"}:"";(0,a.onRequest)("2",n,e.success,e.fail)}else y()},w=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),e.type="1",g()?(0,a.onRequest)("1",e,e.success,e.fail):y()},_=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"https://cfyjh5-v3.dfzq.com.cn/html5-marketing/images/icon/200.png",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?("3"==e.channel&&(f||p||d)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):y()},N=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onPushView)(e):y()},J=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.complete=e.success,(0,a.onBack)(e)):y()},B=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),g()?(0,a.onApiRequest)(e,t,t.success,t.fail):y()},S=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),g()?(0,a.onDynamicLink)(e):y()},I=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):y()},x=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):y()},W=function(e){"function"==typeof e&&(g()?((0,r.log)("pageWillAppear->{}"),(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,r.log)("pageWillAppear<-{DOMContentReady:yes}"),e()):document.addEventListener("DOMContentLoaded",function(){(0,r.log)("pageWillAppear<-{DOMContentLoaded:yes}"),e()})})):y())},V=function(e){var t={channel:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("8",e,e.success,e.fail):y()},P=function(e){var t={mode:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("9",e,e.success,e.fail):y()},R=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()&&(0,a.onRequest)("1001",e,e.success,e.fail)};t.isFromApp=g,t.isFromWeiXin=v,t.isFromIOS=h,t.isFromAndroid=m,t.ready=b,t.oauth=k,t.onLogin=O,t.onShare=_,t.onNavigateTo=N,t.onNavigateBack=J,t.onReq=B,t.onNavigateNativeTo=S,t.onNavigateBar=I,t.onWxPay=x,t.onViewWillAppear=W,t.onLoginEnhance=w,t.onShareCheckInstall=V,t.onIdCardOCR=P,t.getOptionalStocks=R}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=10)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(s||l||c){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},O=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},w={},_=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),w[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),w[n]&&w[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},I=[],x=function e(){var t=S(1e3,9999);return-1!==I.indexOf(t)?e(t):(I.push(t),t)},W=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:x()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(s||l||c||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(s||l||c||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},V=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),s||l||c){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=h,t.onNavigationBar=m,t.onPushView=b,t.onNotify=O,t.subscribeNotify=_,t.onDynamicLink=N,t.onRequest=W,t.pageWillAppear=k,t.onApiRequest=V},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),s=t.split(".");if(e===t)return 0;for(var c=0;c<r.length;c++){var l=parseInt(r[c]);if(!s[c])return 1;var u=parseInt(s[c]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i},,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onQueryLatestLoginAccount=t.getOptionalStocks=t.onIdCardOCR=t.onShareCheckInstall=t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromAndroid=t.isFromIOS=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=n(1),s=!1,c=function(){},l=navigator.userAgent,u=l.match(/(Android);?[\s\/]+([\d.]+)?/),f=l.match(/(iPad).*OS\s([\d_]+)/),d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&l.match(/(iPhone\sOS)\s([\d_]+)/),y=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},g=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},v=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},h=function(){return!!(f||p||d)},m=function(){return!!u},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;(0,a.ready)(e)},k=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()?s||(s=!0,WebViewJavascriptBridge&&((0,r.log)("oauth start"),WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){(0,r.log)("oauth successful:"+JSON.stringify(t));var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if((0,r.log)("oauth failure:"+JSON.stringify(t)),"function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}s=!1,(0,r.log)("oauth end")}))):y()},O=function(e){var t={success:c,fail:c};if(e=(0,o._extends)({},t,e),g()){var n=(0,i.compareVersion)("4.6.0")>=0?{type:"2"}:"";(0,a.onRequest)("2",n,e.success,e.fail)}else y()},w=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),e.type="1",g()?(0,a.onRequest)("1",e,e.success,e.fail):y()},_=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"https://cfyjh5-v3.dfzq.com.cn/html5-marketing/images/icon/200.png",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?("3"==e.channel&&(f||p||d)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):y()},N=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onPushView)(e):y()},J=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.complete=e.success,(0,a.onBack)(e)):y()},B=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),g()?(0,a.onApiRequest)(e,t,t.success,t.fail):y()},S=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),g()?(0,a.onDynamicLink)(e):y()},I=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):y()},x=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):y()},W=function(e){"function"==typeof e&&(g()?((0,r.log)("pageWillAppear->{}"),(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,r.log)("pageWillAppear<-{DOMContentReady:yes}"),e()):document.addEventListener("DOMContentLoaded",function(){(0,r.log)("pageWillAppear<-{DOMContentLoaded:yes}"),e()})})):y())},V=function(e){var t={channel:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("8",e,e.success,e.fail):y()},P=function(e){var t={mode:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("9",e,e.success,e.fail):y()},R=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()&&(0,a.onRequest)("1001",e,e.success,e.fail)},A=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("13",e,e.success,e.fail):y()};t.isFromApp=g,t.isFromWeiXin=v,t.isFromIOS=h,t.isFromAndroid=m,t.ready=b,t.oauth=k,t.onLogin=O,t.onShare=_,t.onNavigateTo=N,t.onNavigateBack=J,t.onReq=B,t.onNavigateNativeTo=S,t.onNavigateBar=I,t.onWxPay=x,t.onViewWillAppear=W,t.onLoginEnhance=w,t.onShareCheckInstall=V,t.onIdCardOCR=P,t.getOptionalStocks=R,t.onQueryLatestLoginAccount=A}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=i,t.isEmpty=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),i=n(1),a=navigator.userAgent,r=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),s=a.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/),u=!!a.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,i.log)("ready end"),e(t)};if(u)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,i.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,i.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,i.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,i.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,i.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,i.log)("other platform ready sync start"),t());else(0,i.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,i.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,i.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,i.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,i.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,i.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,i.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,i.log)("onNotify<-"+JSON.stringify(e))})},N={},J=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),N[n]=t,(0,i.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,i.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),N[n]&&N[n](e)})}},_=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,i.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,i.log)("onDynamicLink<-"+JSON.stringify(e))})},O={},B=!1,x=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},V=[],S=function e(){var t=x(1e3,9999);return-1!==V.indexOf(t)?e(t):(V.push(t),t)},W=function(e,t,n,o){var a={type:e||"1",payload:t||{},callbackId:S()};O[e+"-ok"]="function"==typeof n?n:p,O[e+"-notok"]="function"==typeof o?o:p,O[e+"_"+a.callbackId+"-ok"]="function"==typeof n?n:p,O[e+"_"+a.callbackId+"-notok"]="function"==typeof o?o:p,(0,i.log)("onRequest->"+JSON.stringify(a)),WebViewJavascriptBridge.callHandler("request",a,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,i.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-notok"]?O[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof O[e.type+"-notok"]&&O[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&O[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof O[e.type+"-ok"]&&(c||l||s||e.payload)&&O[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-notok"]?O[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof O[e.type+"-notok"]&&O[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-ok"]?O[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof O[e.type+"-ok"]&&O[e.type+"-ok"](y(e.payload))}),B=!0)},P=function(e,t,n,a){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,i.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,i.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof a&&a(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof a&&a(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=b,t.onNavigationBar=h,t.onPushView=m,t.onNotify=w,t.subscribeNotify=J,t.onDynamicLink=_,t.onRequest=W,t.pageWillAppear=k,t.onApiRequest=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},i=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},a=function(e,t){var n=e.split("."),i=t.split("."),a=Math.max(n.length,i.length);e=o(e,a),t=o(t,a);var r=e.split("."),c=t.split(".");if(e===t)return 0;for(var s=0;s<r.length;s++){var l=parseInt(r[s]);if(!c[s])return 1;var u=parseInt(c[s]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=i();return t?a(t,e):1};t.getVersion=i,t.compareVersion=r,t._compareVersion=a},,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),i=n(2),a=n(3),r=!1,c=function(){},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请在东方赢家财富版客户端打开链接",t=document.createElement("div");t.style.cssText="display:table;position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:white;z-index:99999;",t.innerHTML='<div style="display:table-cell;vertical-align: middle;text-align: center;">'+e+"</div>",document.body.appendChild(t)},l=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},u=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;l()?(0,i.ready)(e):s()},d=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),l()?r||(r=!0,WebViewJavascriptBridge&&WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,i.wrapOkPayload)(n);e.success(o)}}else if("function"==typeof e.fail){var a=(0,i.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(a)}r=!1})):s()},p=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),l()?(0,i.onRequest)("2","",e.success,e.fail):s()},y=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),l()?(0,i.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail):s()},g=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),l()?(0,i.onPushView)(e):s()},v=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),l()?(e.complete=e.success,(0,i.onBack)(e)):s()},b=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),l()?(0,i.onApiRequest)(e,t,t.success,t.fail):s()},h=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,a.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),l()?(0,i.onDynamicLink)(e):s()},m=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),l()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,i.onNavigationBar)(e)):s()};t.isFromApp=l,t.isFromWeiXin=u,t.ready=f,t.oauth=d,t.onLogin=p,t.onShare=y,t.onNavigateTo=g,t.onNavigateBack=v,t.onReq=b,t.onNavigateNativeTo=h,t.onNavigateBar=m}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=12)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=i,t.isEmpty=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),i=n(1),a=navigator.userAgent,r=a.match(/(Android);?[\s\/]+([\d.]+)?/),c=a.match(/(iPad).*OS\s([\d_]+)/),s=a.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&a.match(/(iPhone\sOS)\s([\d_]+)/),u=!!a.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,i.log)("ready end"),e(t)};if(u)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,i.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,i.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,i.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,i.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,i.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,i.log)("other platform ready sync start"),t());else(0,i.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,i.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,i.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,i.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,i.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,i.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,i.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,i.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,i.log)("onNotify<-"+JSON.stringify(e))})},N={},_=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),N[n]=t,(0,i.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,i.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),N[n]&&N[n](e)})}},J=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,i.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,i.log)("onDynamicLink<-"+JSON.stringify(e))})},O={},B=!1,x=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},S=[],V=function e(){var t=x(1e3,9999);return-1!==S.indexOf(t)?e(t):(S.push(t),t)},P=function(e,t,n,o){var a={type:e||"1",payload:t||{},callbackId:V()};O[e+"-ok"]="function"==typeof n?n:p,O[e+"-notok"]="function"==typeof o?o:p,O[e+"_"+a.callbackId+"-ok"]="function"==typeof n?n:p,O[e+"_"+a.callbackId+"-notok"]="function"==typeof o?o:p,(0,i.log)("onRequest->"+JSON.stringify(a)),WebViewJavascriptBridge.callHandler("request",a,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,i.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-notok"]?O[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof O[e.type+"-notok"]&&O[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&O[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof O[e.type+"-ok"]&&(c||l||s||e.payload)&&O[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-notok"]?O[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof O[e.type+"-notok"]&&O[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof O[e.type+"_"+e.callbackId+"-ok"]?O[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof O[e.type+"-ok"]&&O[e.type+"-ok"](y(e.payload))}),B=!0)},W=function(e,t,n,a){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,i.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,i.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof a&&a(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof a&&a(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof a&&a(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=h,t.onNavigationBar=b,t.onPushView=m,t.onNotify=w,t.subscribeNotify=_,t.onDynamicLink=J,t.onRequest=P,t.pageWillAppear=k,t.onApiRequest=W},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},i=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},a=function(e,t){var n=e.split("."),i=t.split("."),a=Math.max(n.length,i.length);e=o(e,a),t=o(t,a);var r=e.split("."),c=t.split(".");if(e===t)return 0;for(var s=0;s<r.length;s++){var l=parseInt(r[s]);if(!c[s])return 1;var u=parseInt(c[s]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=i();return t?a(t,e):1};t.getVersion=i,t.compareVersion=r,t._compareVersion=a},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),i=n(2),a=n(3),r=!1,c=function(){},s=navigator.userAgent,l=(s.match(/(Android);?[\s\/]+([\d.]+)?/),s.match(/(iPad).*OS\s([\d_]+)/)),u=s.match(/(iPod)(.*OS\s([\d_]+))?/),f=!l&&s.match(/(iPhone\sOS)\s([\d_]+)/),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请在东方赢家财富版客户端打开链接",t=document.createElement("div");t.style.cssText="display:table;position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:white;z-index:99999;",t.innerHTML='<div style="display:table-cell;vertical-align: middle;text-align: center;">'+e+"</div>",document.body.appendChild(t)},p=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},y=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;p()?(0,i.ready)(e):d()},v=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),p()?r||(r=!0,WebViewJavascriptBridge&&WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,i.wrapOkPayload)(n);e.success(o)}}else if("function"==typeof e.fail){var a=(0,i.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(a)}r=!1})):d()},h=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),p()?(0,i.onRequest)("2","",e.success,e.fail):d()},b=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?("3"==e.channel&&(l||f||u)&&(e.thumbImageUrl=t.thumbImageUrl),(0,i.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):d()},m=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?(0,i.onPushView)(e):d()},k=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?(e.complete=e.success,(0,i.onBack)(e)):d()},w=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),p()?(0,i.onApiRequest)(e,t,t.success,t.fail):d()},N=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,a.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),p()?(0,i.onDynamicLink)(e):d()},_=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),p()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,i.onNavigationBar)(e)):d()};t.isFromApp=p,t.isFromWeiXin=y,t.ready=g,t.oauth=v,t.onLogin=h,t.onShare=b,t.onNavigateTo=m,t.onNavigateBack=k,t.onReq=w,t.onNavigateNativeTo=N,t.onNavigateBar=_}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=13)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),s=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),d=function(e){return e.init(function(e,t){t&&t(data)}),e},f=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(d(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(d(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},_={},N=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),_[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),_[n]&&_[n](e)})}},O=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,x=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},S=[],I=function e(){var t=x(1e3,9999);return-1!==S.indexOf(t)?e(t):(S.push(t),t)},V=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:I()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(c||l||s||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},P=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=f,t.onBack=v,t.onRefresh=m,t.onNavigationBar=h,t.onPushView=b,t.onNotify=w,t.subscribeNotify=N,t.onDynamicLink=O,t.onRequest=V,t.pageWillAppear=k,t.onApiRequest=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),c=t.split(".");if(e===t)return 0;for(var s=0;s<r.length;s++){var l=parseInt(r[s]);if(!c[s])return 1;var u=parseInt(c[s]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i},,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=!1,c=function(){},s=navigator.userAgent,l=(s.match(/(Android);?[\s\/]+([\d.]+)?/),s.match(/(iPad).*OS\s([\d_]+)/)),u=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&s.match(/(iPhone\sOS)\s([\d_]+)/),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请在东方赢家财富版客户端打开链接",t=document.createElement("div");t.style.cssText="display:table;position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:white;z-index:99999;",t.innerHTML='<div style="display:table-cell;vertical-align: middle;text-align: center;">'+e+"</div>",document.body.appendChild(t)},p=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},y=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;p()?(0,a.ready)(e):e()},v=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),p()?r||(r=!0,WebViewJavascriptBridge&&WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if("function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}r=!1})):f()},m=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),p()?(0,a.onRequest)("2","",e.success,e.fail):f()},h=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?("3"==e.channel&&(l||d||u)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):f()},b=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?(0,a.onPushView)(e):f()},k=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?(e.complete=e.success,(0,a.onBack)(e)):f()},w=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),p()?(0,a.onApiRequest)(e,t,t.success,t.fail):f()},_=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),p()?(0,a.onDynamicLink)(e):f()},N=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),p()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):f()},O=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),p()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):f()},J=function(e){"function"==typeof e&&(p()?(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?e():document.addEventListener("DOMContentLoaded",e)}):f())};t.isFromApp=p,t.isFromWeiXin=y,t.ready=g,t.oauth=v,t.onLogin=m,t.onShare=h,t.onNavigateTo=b,t.onNavigateBack=k,t.onReq=w,t.onNavigateNativeTo=_,t.onNavigateBar=N,t.onWxPay=O,t.onViewWillAppear=J}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=14)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),s=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),d=function(e){return e.init(function(e,t){t&&t(data)}),e},f=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(d(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(d(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},_={},N=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),_[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),_[n]&&_[n](e)})}},O=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,x=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},S=[],I=function e(){var t=x(1e3,9999);return-1!==S.indexOf(t)?e(t):(S.push(t),t)},V=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:I()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(c||l||s||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},P=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=f,t.onBack=v,t.onRefresh=h,t.onNavigationBar=m,t.onPushView=b,t.onNotify=w,t.subscribeNotify=N,t.onDynamicLink=O,t.onRequest=V,t.pageWillAppear=k,t.onApiRequest=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),c=t.split(".");if(e===t)return 0;for(var s=0;s<r.length;s++){var l=parseInt(r[s]);if(!c[s])return 1;var u=parseInt(c[s]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=!1,c=function(){},s=navigator.userAgent,l=(s.match(/(Android);?[\s\/]+([\d.]+)?/),s.match(/(iPad).*OS\s([\d_]+)/)),u=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&s.match(/(iPhone\sOS)\s([\d_]+)/),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"请在东方赢家财富版客户端打开链接",t=document.createElement("div");t.style.cssText="display:table;position:absolute;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:white;z-index:99999;",t.innerHTML='<div style="display:table-cell;vertical-align: middle;text-align: center;">'+e+"</div>",document.body.appendChild(t)},p=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},y=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;p()?(0,a.ready)(e):e()},v=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),p()?r||(r=!0,WebViewJavascriptBridge&&WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if("function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}r=!1})):f()},h=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),p()?(0,a.onRequest)("2","",e.success,e.fail):f()},m=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),e.type="1",p()?(0,a.onRequest)("1",e,e.success,e.fail):f()},b=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?("3"==e.channel&&(l||d||u)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):f()},k=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?(0,a.onPushView)(e):f()},w=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),p()?(e.complete=e.success,(0,a.onBack)(e)):f()},_=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),p()?(0,a.onApiRequest)(e,t,t.success,t.fail):f()},N=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),p()?(0,a.onDynamicLink)(e):f()},O=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),p()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):f()},J=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),p()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):f()},B=function(e){"function"==typeof e&&(p()?(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?e():document.addEventListener("DOMContentLoaded",e)}):f())};t.isFromApp=p,t.isFromWeiXin=y,t.ready=g,t.oauth=v,t.onLogin=h,t.onShare=b,t.onNavigateTo=k,t.onNavigateBack=w,t.onReq=_,t.onNavigateNativeTo=N,t.onNavigateBar=O,t.onWxPay=J,t.onViewWillAppear=B,t.onLoginEnhance=m}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},15:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromAndroid=t.isFromIOS=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=n(1),c=!1,s=function(){},l=navigator.userAgent,u=l.match(/(Android);?[\s\/]+([\d.]+)?/),f=l.match(/(iPad).*OS\s([\d_]+)/),d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&l.match(/(iPhone\sOS)\s([\d_]+)/),y=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},g=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},v=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},m=function(){return!!(f||p||d)},h=function(){return!!u},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;(0,a.ready)(e)},k=function(e){var t={success:s,fail:s};e=(0,o._extends)({},t,e),g()?c||(c=!0,WebViewJavascriptBridge&&((0,r.log)("oauth start"),WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){(0,r.log)("oauth successful:"+JSON.stringify(t));var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if((0,r.log)("oauth failure:"+JSON.stringify(t)),"function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}c=!1,(0,r.log)("oauth end")}))):y()},w=function(e){var t={success:s,fail:s};if(e=(0,o._extends)({},t,e),g()){var n=(0,i.compareVersion)("4.6.0")>=0?{type:"2"}:"";(0,a.onRequest)("2",n,e.success,e.fail)}else y()},O=function(e){var t={success:s,fail:s};e=(0,o._extends)({},t,e),e.type="1",g()?(0,a.onRequest)("1",e,e.success,e.fail):y()},N=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:s,fail:s};e=(0,o._extends)({},t,e),g()?("3"==e.channel&&(f||p||d)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):y()},_=function(e){var t={title:"",uri:"",success:s,fail:s};e=(0,o._extends)({},t,e),g()?(0,a.onPushView)(e):y()},J=function(e){var t={title:"",uri:"",success:s,fail:s};e=(0,o._extends)({},t,e),g()?(e.complete=e.success,(0,a.onBack)(e)):y()},B=function(e,t){var n={success:s,fail:s};t=(0,o._extends)({},n,t),g()?(0,a.onApiRequest)(e,t,t.success,t.fail):y()},S=function(e){var t={url:"",success:s,fail:s};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),g()?(0,a.onDynamicLink)(e):y()},I=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:s,isShowBackButton:!0,success:s,fail:s};e=(0,o._extends)({},t,e),g()?(e.onRightButtonPress!=s&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):y()},W=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):y()},V=function(e){"function"==typeof e&&(g()?((0,r.log)("pageWillAppear->{}"),(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,r.log)("pageWillAppear<-{DOMContentReady:yes}"),e()):document.addEventListener("DOMContentLoaded",function(){(0,r.log)("pageWillAppear<-{DOMContentLoaded:yes}"),e()})})):y())};t.isFromApp=g,t.isFromWeiXin=v,t.isFromIOS=m,t.isFromAndroid=h,t.ready=b,t.oauth=k,t.onLogin=w,t.onShare=N,t.onNavigateTo=_,t.onNavigateBack=J,t.onReq=B,t.onNavigateNativeTo=S,t.onNavigateBar=I,t.onWxPay=W,t.onViewWillAppear=V,t.onLoginEnhance=O},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),s=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},O={},N=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),O[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),O[n]&&O[n](e)})}},_=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},I=[],W=function e(){var t=S(1e3,9999);return-1!==I.indexOf(t)?e(t):(I.push(t),t)},V=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:W()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(c||l||s||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},x=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=m,t.onNavigationBar=h,t.onPushView=b,t.onNotify=w,t.subscribeNotify=N,t.onDynamicLink=_,t.onRequest=V,t.pageWillAppear=k,t.onApiRequest=x},3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),c=t.split(".");if(e===t)return 0;for(var s=0;s<r.length;s++){var l=parseInt(r[s]);if(!c[s])return 1;var u=parseInt(c[s]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=16)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},16:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onShareCheckInstall=t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromAndroid=t.isFromIOS=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=n(1),c=!1,s=function(){},l=navigator.userAgent,u=l.match(/(Android);?[\s\/]+([\d.]+)?/),f=l.match(/(iPad).*OS\s([\d_]+)/),d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&l.match(/(iPhone\sOS)\s([\d_]+)/),y=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},g=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},v=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},h=function(){return!!(f||p||d)},m=function(){return!!u},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;(0,a.ready)(e)},k=function(e){var t={success:s,fail:s};e=(0,o._extends)({},t,e),g()?c||(c=!0,WebViewJavascriptBridge&&((0,r.log)("oauth start"),WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){(0,r.log)("oauth successful:"+JSON.stringify(t));var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if((0,r.log)("oauth failure:"+JSON.stringify(t)),"function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}c=!1,(0,r.log)("oauth end")}))):y()},w=function(e){var t={success:s,fail:s};if(e=(0,o._extends)({},t,e),g()){var n=(0,i.compareVersion)("4.6.0")>=0?{type:"2"}:"";(0,a.onRequest)("2",n,e.success,e.fail)}else y()},O=function(e){var t={success:s,fail:s};e=(0,o._extends)({},t,e),e.type="1",g()?(0,a.onRequest)("1",e,e.success,e.fail):y()},_=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:s,fail:s};e=(0,o._extends)({},t,e),g()?("3"==e.channel&&(f||p||d)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):y()},N=function(e){var t={title:"",uri:"",success:s,fail:s};e=(0,o._extends)({},t,e),g()?(0,a.onPushView)(e):y()},J=function(e){var t={title:"",uri:"",success:s,fail:s};e=(0,o._extends)({},t,e),g()?(e.complete=e.success,(0,a.onBack)(e)):y()},B=function(e,t){var n={success:s,fail:s};t=(0,o._extends)({},n,t),g()?(0,a.onApiRequest)(e,t,t.success,t.fail):y()},S=function(e){var t={url:"",success:s,fail:s};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),g()?(0,a.onDynamicLink)(e):y()},I=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:s,isShowBackButton:!0,success:s,fail:s};e=(0,o._extends)({},t,e),g()?(e.onRightButtonPress!=s&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):y()},W=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):y()},x=function(e){"function"==typeof e&&(g()?((0,r.log)("pageWillAppear->{}"),(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,r.log)("pageWillAppear<-{DOMContentReady:yes}"),e()):document.addEventListener("DOMContentLoaded",function(){(0,r.log)("pageWillAppear<-{DOMContentLoaded:yes}"),e()})})):y())},V=function(e){var t={channel:"1",success:s,fail:s};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("8",e,e.success,e.fail):y()};t.isFromApp=g,t.isFromWeiXin=v,t.isFromIOS=h,t.isFromAndroid=m,t.ready=b,t.oauth=k,t.onLogin=w,t.onShare=_,t.onNavigateTo=N,t.onNavigateBack=J,t.onReq=B,t.onNavigateNativeTo=S,t.onNavigateBar=I,t.onWxPay=W,t.onViewWillAppear=x,t.onLoginEnhance=O,t.onShareCheckInstall=V},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),s=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!c&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(c||l||s){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},O={},_=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),O[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),O[n]&&O[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},I=[],W=function e(){var t=S(1e3,9999);return-1!==I.indexOf(t)?e(t):(I.push(t),t)},x=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:W()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(c||l||s||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(c||l||s||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},V=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||l||s){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=h,t.onNavigationBar=m,t.onPushView=b,t.onNotify=w,t.subscribeNotify=_,t.onDynamicLink=N,t.onRequest=x,t.pageWillAppear=k,t.onApiRequest=V},3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),c=t.split(".");if(e===t)return 0;for(var s=0;s<r.length;s++){var l=parseInt(r[s]);if(!c[s])return 1;var u=parseInt(c[s]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=17)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},17:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onIdCardOCR=t.onShareCheckInstall=t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromAndroid=t.isFromIOS=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=n(1),s=!1,c=function(){},l=navigator.userAgent,u=l.match(/(Android);?[\s\/]+([\d.]+)?/),f=l.match(/(iPad).*OS\s([\d_]+)/),d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&l.match(/(iPhone\sOS)\s([\d_]+)/),y=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},g=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},v=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},h=function(){return!!(f||p||d)},m=function(){return!!u},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;(0,a.ready)(e)},k=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()?s||(s=!0,WebViewJavascriptBridge&&((0,r.log)("oauth start"),WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){(0,r.log)("oauth successful:"+JSON.stringify(t));var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if((0,r.log)("oauth failure:"+JSON.stringify(t)),"function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}s=!1,(0,r.log)("oauth end")}))):y()},w=function(e){var t={success:c,fail:c};if(e=(0,o._extends)({},t,e),g()){var n=(0,i.compareVersion)("4.6.0")>=0?{type:"2"}:"";(0,a.onRequest)("2",n,e.success,e.fail)}else y()},O=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),e.type="1",g()?(0,a.onRequest)("1",e,e.success,e.fail):y()},_=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?("3"==e.channel&&(f||p||d)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):y()},N=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onPushView)(e):y()},J=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.complete=e.success,(0,a.onBack)(e)):y()},B=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),g()?(0,a.onApiRequest)(e,t,t.success,t.fail):y()},S=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),g()?(0,a.onDynamicLink)(e):y()},I=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):y()},x=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):y()},W=function(e){"function"==typeof e&&(g()?((0,r.log)("pageWillAppear->{}"),(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,r.log)("pageWillAppear<-{DOMContentReady:yes}"),e()):document.addEventListener("DOMContentLoaded",function(){(0,r.log)("pageWillAppear<-{DOMContentLoaded:yes}"),e()})})):y())},V=function(e){var t={channel:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("8",e,e.success,e.fail):y()},P=function(e){var t={mode:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("9",e,e.success,e.fail):y()};t.isFromApp=g,t.isFromWeiXin=v,t.isFromIOS=h,t.isFromAndroid=m,t.ready=b,t.oauth=k,t.onLogin=w,t.onShare=_,t.onNavigateTo=N,t.onNavigateBack=J,t.onReq=B,t.onNavigateNativeTo=S,t.onNavigateBar=I,t.onWxPay=x,t.onViewWillAppear=W,t.onLoginEnhance=O,t.onShareCheckInstall=V,t.onIdCardOCR=P},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(s||l||c){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},O={},_=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),O[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),O[n]&&O[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},I=[],x=function e(){var t=S(1e3,9999);return-1!==I.indexOf(t)?e(t):(I.push(t),t)},W=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:x()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(s||l||c||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(s||l||c||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},V=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),s||l||c){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=h,t.onNavigationBar=m,t.onPushView=b,t.onNotify=w,t.subscribeNotify=_,t.onDynamicLink=N,t.onRequest=W,t.pageWillAppear=k,t.onApiRequest=V},3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),s=t.split(".");if(e===t)return 0;for(var c=0;c<r.length;c++){var l=parseInt(r[c]);if(!s[c])return 1;var u=parseInt(s[c]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=18)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},18:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOptionalStocks=t.onIdCardOCR=t.onShareCheckInstall=t.onLoginEnhance=t.onViewWillAppear=t.onWxPay=t.onNavigateBar=t.onNavigateNativeTo=t.onReq=t.onNavigateBack=t.onNavigateTo=t.onShare=t.onLogin=t.oauth=t.ready=t.isFromAndroid=t.isFromIOS=t.isFromWeiXin=t.isFromApp=void 0;var o=n(0),a=n(2),i=n(3),r=n(1),s=!1,c=function(){},l=navigator.userAgent,u=l.match(/(Android);?[\s\/]+([\d.]+)?/),f=l.match(/(iPad).*OS\s([\d_]+)/),d=l.match(/(iPod)(.*OS\s([\d_]+))?/),p=!f&&l.match(/(iPhone\sOS)\s([\d_]+)/),y=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]},g=function(){return!!navigator.userAgent.toLowerCase().match(/DFYJ/i)},v=function(){return!!navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},h=function(){return!!(f||p||d)},m=function(){return!!u},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;(0,a.ready)(e)},k=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()?s||(s=!0,WebViewJavascriptBridge&&((0,r.log)("oauth start"),WebViewJavascriptBridge.callHandler("refreshToken",{},function(t){if("string"==typeof t&&(t=JSON.parse(t)),"0"==t.code){(0,r.log)("oauth successful:"+JSON.stringify(t));var n={};if(n.token=t.token,n.vtDeviceId=t.vtDeviceId,"function"==typeof e.success){var o=(0,a.wrapOkPayload)(n);e.success(o)}}else if((0,r.log)("oauth failure:"+JSON.stringify(t)),"function"==typeof e.fail){var i=(0,a.wrapNotOkPayload)(-1,"桥接程序建立失败");e.fail(i)}s=!1,(0,r.log)("oauth end")}))):y()},w=function(e){var t={success:c,fail:c};if(e=(0,o._extends)({},t,e),g()){var n=(0,i.compareVersion)("4.6.0")>=0?{type:"2"}:"";(0,a.onRequest)("2",n,e.success,e.fail)}else y()},O=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),e.type="1",g()?(0,a.onRequest)("1",e,e.success,e.fail):y()},_=function(e){var t={channel:"1",title:"",description:"",thumbImageUrl:"http://wxs.dfzq.com.cn/fileRes/new_download/images/new_pic.jpg",link:"",ext:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?("3"==e.channel&&(f||p||d)&&(e.thumbImageUrl=t.thumbImageUrl),(0,a.onRequest)("4",{channel:e.channel,title:e.title,description:e.description,thumbImageUrl:e.thumbImageUrl,link:e.link,ext:e.ext},e.success,e.fail)):y()},N=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onPushView)(e):y()},J=function(e){var t={title:"",uri:"",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.complete=e.success,(0,a.onBack)(e)):y()},B=function(e,t){var n={success:c,fail:c};t=(0,o._extends)({},n,t),g()?(0,a.onApiRequest)(e,t,t.success,t.fail):y()},S=function(e){var t={url:"",success:c,fail:c};e=(0,o._extends)({},t,e),(0,i.compareVersion)("3.2.6")>=0&&""!=e.url&&(e.url=e.url.replace("dfyj://dl","dfyj20170811://dl")),g()?(0,a.onDynamicLink)(e):y()},I=function(e){var t={title:"",type:"0",rightButtonTitle:"",onRightButtonPress:c,isShowBackButton:!0,success:c,fail:c};e=(0,o._extends)({},t,e),g()?(e.onRightButtonPress!=c&&WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler("onRightButtonPress",e.onRightButtonPress),(0,a.onNavigationBar)(e)):y()},x=function(e){var t={appId:"",partnerId:"",prePayId:"",noncestr:"",timestamp:"",package:"Sign=WXPay",sign:""};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("5",{appId:e.appId,partnerId:e.partnerId,prePayId:e.prePayId,noncestr:e.noncestr,timestamp:e.timestamp,package:e.package,sign:e.sign},e.success,e.fail):y()},W=function(e){"function"==typeof e&&(g()?((0,r.log)("pageWillAppear->{}"),(0,a.pageWillAppear)(function(){"l"!==document.readyState[0]?((0,r.log)("pageWillAppear<-{DOMContentReady:yes}"),e()):document.addEventListener("DOMContentLoaded",function(){(0,r.log)("pageWillAppear<-{DOMContentLoaded:yes}"),e()})})):y())},V=function(e){var t={channel:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("8",e,e.success,e.fail):y()},P=function(e){var t={mode:"1",success:c,fail:c};e=(0,o._extends)({},t,e),g()?(0,a.onRequest)("9",e,e.success,e.fail):y()},R=function(e){var t={success:c,fail:c};e=(0,o._extends)({},t,e),g()&&(0,a.onRequest)("1001",e,e.success,e.fail)};t.isFromApp=g,t.isFromWeiXin=v,t.isFromIOS=h,t.isFromAndroid=m,t.ready=b,t.oauth=k,t.onLogin=w,t.onShare=_,t.onNavigateTo=N,t.onNavigateBack=J,t.onReq=B,t.onNavigateNativeTo=S,t.onNavigateBar=I,t.onWxPay=x,t.onViewWillAppear=W,t.onLoginEnhance=O,t.onShareCheckInstall=V,t.onIdCardOCR=P,t.getOptionalStocks=R},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&i.match(/(iPhone\sOS)\s([\d_]+)/),u=!!i.toLowerCase().match(/DFYJ/i),f=function(e){return e.init(function(e,t){t&&t(data)}),e},d=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(u)if(s||l||c){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(f(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(f(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},p=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},v=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},h=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},m=function(e){var t={complete:p};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},b=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},k=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},w=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},O={},_=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),O[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),O[n]&&O[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},J={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},I=[],x=function e(){var t=S(1e3,9999);return-1!==I.indexOf(t)?e(t):(I.push(t),t)},W=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:x()};J[e+"-ok"]="function"==typeof n?n:p,J[e+"-notok"]="function"==typeof o?o:p,J[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:p,J[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:p,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?(s||l||c||e.payload)&&J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&(s||l||c||e.payload)&&J[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-notok"]?J[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof J[e.type+"-notok"]&&J[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof J[e.type+"_"+e.callbackId+"-ok"]?J[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof J[e.type+"-ok"]&&J[e.type+"-ok"](y(e.payload))}),B=!0)},V=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),s||l||c){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=d,t.onBack=v,t.onRefresh=h,t.onNavigationBar=m,t.onPushView=b,t.onNotify=w,t.subscribeNotify=_,t.onDynamicLink=N,t.onRequest=W,t.pageWillAppear=k,t.onApiRequest=V},3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){for(var n=e.split(".").length;n<t;)e+=".0",n++;return e},a=function(e){var t=navigator.userAgent.toLowerCase().match(/DFYJ\/([\d.]+)/i);return t?t[1]:void 0},i=function(e,t){var n=e.split("."),a=t.split("."),i=Math.max(n.length,a.length);e=o(e,i),t=o(t,i);var r=e.split("."),s=t.split(".");if(e===t)return 0;for(var c=0;c<r.length;c++){var l=parseInt(r[c]);if(!s[c])return 1;var u=parseInt(s[c]);if(l<u)return-1;if(l>u)return 1}return-1},r=function(e){var t=a();return t?i(t,e):1};t.getVersion=a,t.compareVersion=r,t._compareVersion=i}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=document.createElement("a");t.setAttribute("href",e);var n=t.href;return t=null,n},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},i=function(e){return!(null!=e&&(e.length||e.length>0))};t.getAbsoluteUrl=o,t._extends=a,t.isEmpty=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){new Date};t.log=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onApiRequest=t.pageWillAppear=t.onRequest=t.onDynamicLink=t.subscribeNotify=t.onNotify=t.onPushView=t.onNavigationBar=t.onRefresh=t.onBack=t.ready=t.wrapNotOkPayload=t.wrapOkPayload=void 0;var o=n(0),a=n(1),i=navigator.userAgent,r=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),l=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!c&&i.match(/(iPhone\sOS)\s([\d_]+)/),s=!!i.toLowerCase().match(/DFYJ/i),d=function(e){return e.init(function(e,t){t&&t(data)}),e},p=function(e){var t=function(t){(0,a.log)("ready end"),e(t)};if(s)if(c||f||l){if(window.WebViewJavascriptBridge)return(0,a.log)("ready sync start"),t(WebViewJavascriptBridge);if((0,a.log)("ready async start(push)"),window.WVJBCallbacks)return window.WVJBCallbacks.push(t);(0,a.log)("ready async start(iframe)"),window.WVJBCallbacks=[t];var n=document.createElement("iframe");n.style.display="none",n.src="https://__bridge_loaded__",document.documentElement.appendChild(n),setTimeout(function(){document.documentElement.removeChild(n)},0)}else r?window.WebViewJavascriptBridge?((0,a.log)("ready sync start"),t(d(WebViewJavascriptBridge))):((0,a.log)("ready async start"),document.addEventListener("WebViewJavascriptBridgeReady",function(){t(d(WebViewJavascriptBridge))},!1)):((0,a.log)("other platform ready sync start"),t());else(0,a.log)("non app ready sync start"),t()},u=function(){},y=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},g=function(){return{code:arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,info:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}},b=function(e){var t={complete:u};t=(0,o._extends)({},t,e),(0,a.log)("onBack->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("back",t,function(e){(0,a.log)("onBack<-"+JSON.stringify(e)),t.complete(e)})},v=function(e){var t={complete:u};t=(0,o._extends)({},t,e),(0,a.log)("onRefresh->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("refresh",t,function(e){(0,a.log)("onRefresh<-"+JSON.stringify(e)),t.complete(e)})},k=function(e){var t={complete:u};t=(0,o._extends)({},t,e),(0,a.log)("onNavigationBar->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("navigationBar",t,function(e){(0,a.log)("onNavigationBar<-"+JSON.stringify(e)),t.complete(e)})},w=function(e){var t={title:""};t=(0,o._extends)({},t,e),t.uri&&(-1!=t.uri.indexOf("http")||-1!=t.uri.indexOf("https")||(t.uri=(0,o.getAbsoluteUrl)(t.uri))),(0,a.log)("onPushView->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("pushView",t,function(e){(0,a.log)("onPushView<-"+JSON.stringify(e))})},J=function(e){"function"==typeof e&&WebViewJavascriptBridge.registerHandler("pageWillAppear",e)},m=function(e){var t={type:"javascriptNotify"};t=(0,o._extends)({},t,e),(0,a.log)("onNotify->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("notify",t,function(e){(0,a.log)("onNotify<-"+JSON.stringify(e))})},O={},h=function(e,t){if("function"==typeof t){var n=e;"sae_video"==n&&(n="notify"),O[n]=t,(0,a.log)("subscribeNotify->"+e),WebViewJavascriptBridge.registerHandler(n,function(e){(0,a.log)("subscribeNotify<-"+JSON.stringify(e)),Object.prototype.toString.call(e).toLocaleLowerCase()=="[object String]".toLocaleLowerCase()&&(e=JSON.parse(e)),O[n]&&O[n](e)})}},N=function(e){var t={url:""};t=(0,o._extends)({},t,e),(0,a.log)("onDynamicLink->"+JSON.stringify(t)),WebViewJavascriptBridge.callHandler("dynamicLink",t,function(e){(0,a.log)("onDynamicLink<-"+JSON.stringify(e))})},_={},B=!1,S=function(e,t){switch(arguments.length){case 1:return parseInt(Math.random()*e+1,10);case 2:return parseInt(Math.random()*(t-e+1)+e,10);default:return 0}},V=[],W=function e(){var t=S(1e3,9999);return-1!==V.indexOf(t)?e(t):(V.push(t),t)},x=function(e,t,n,o){var i={type:e||"1",payload:t||{},callbackId:W()};_[e+"-ok"]="function"==typeof n?n:u,_[e+"-notok"]="function"==typeof o?o:u,_[e+"_"+i.callbackId+"-ok"]="function"==typeof n?n:u,_[e+"_"+i.callbackId+"-notok"]="function"==typeof o?o:u,(0,a.log)("onRequest->"+JSON.stringify(i)),WebViewJavascriptBridge.callHandler("request",i,function(e){"string"==typeof e&&(e=JSON.parse(e)),(0,a.log)("onRequest<-"+JSON.stringify(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-notok"]?_[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof _[e.type+"-notok"]&&_[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-ok"]?(c||f||l||e.payload)&&_[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof _[e.type+"-ok"]&&(c||f||l||e.payload)&&_[e.type+"-ok"](y(e.payload))}),B||(WebViewJavascriptBridge.registerHandler("request",function(e){"string"==typeof e&&(e=JSON.parse(e)),e.error||"true"===e.error?e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-notok"]?_[e.type+"_"+e.callbackId+"-notok"](g(-1,e.info)):"function"==typeof _[e.type+"-notok"]&&_[e.type+"-notok"](g(-1,e.info)):e.callbackId&&"function"==typeof _[e.type+"_"+e.callbackId+"-ok"]?_[e.type+"_"+e.callbackId+"-ok"](y(e.payload)):"function"==typeof _[e.type+"-ok"]&&_[e.type+"-ok"](y(e.payload))}),B=!0)},I=function(e,t,n,i){if((0,o.isEmpty)(e))throw new Error("functionNo is required ...");var r={funcId:e,payload:t||{}};(0,a.log)("onApiRequest->"+JSON.stringify(r)),WebViewJavascriptBridge.callHandler("apiRequest",r,function(e){if((0,a.log)("onApiRequest<-"+JSON.stringify(e)),"string"==typeof e&&(e=JSON.parse(e)),c||f||l){if(e.error||"true"===e.error)e.payload?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof i&&i(g(-1,e.info));else if("function"==typeof n){var t={};e.payload&&(t="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data),n(y(t))}}else if(e.error||"true"===e.error)"function"==typeof i&&i(g(-1,e.info));else{var o={};o="string"==typeof e.payload.data?JSON.parse(e.payload.data):e.payload.data?e.payload.data:{},"0"!=e.payload.code?"function"==typeof i&&i(g(e.payload.code,e.payload.info)):"function"==typeof n&&n(y(o))}})};t.wrapOkPayload=y,t.wrapNotOkPayload=g,t.ready=p,t.onBack=b,t.onRefresh=v,t.onNavigationBar=k,t.onPushView=w,t.onNotify=m,t.subscribeNotify=h,t.onDynamicLink=N,t.onRequest=x,t.pageWillAppear=J,t.onApiRequest=I}])});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.fastman=e():t.fastman=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=19)}({19:function(t,e,n){"use strict";function i(t){for(var e=document.scripts,n=e.length;n>0;n--)if(e[n-1].src.indexOf(t)>-1)return e[n-1].src;return""}function o(t,e){for(var n=t.split("?"),i=n[1].split("&"),o=0;o<i.length;o++){var a=i[o].split("=");if(a[0]==e)return a[1]}return""}var a=document.createElement("div"),s={0:{domain:"",path:"/message/transport",ver:"3.5.0",channel:"3"},1:{domain:"http://itest.dfzq.com.cn",path:"/message/transport",ver:"3.5.0",channel:"3"}};$.extend({dialog:function(t){t=$.extend({},{title:"提示",text:"",onClick:function(){}},t),a.innerHTML='<div id="dialog" class="js_dialog" style="display: none;">\n <div class="weui-mask"></div>\n <div class="weui-dialog">\n <div class="weui-dialog__hd"><strong class="weui-dialog__title"></strong></div>\n <div class="weui-dialog__bd"></div>\n <div class="weui-dialog__ft">\n <a id="certain" href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default">确定</a>\n </div>\n </div>\n </div>';var e=$(a).children();e.find(".weui-dialog__title").text(t.title),e.find(".weui-dialog__bd").text(t.text),$("body").append(e[0]),$(e[0]).fadeIn("fast"),$(e[0]).on("click",".weui-dialog__btn",function(){t.onClick&&"function"==typeof t.onClick&&t.onClick(),$(this).parents(".js_dialog").fadeOut("fast",function(){$(this).remove()})})},actionSheet:function(t){function e(){$("#iosActionsheet").removeClass("weui-actionsheet_toggle"),$("#iosMask").fadeOut("fast",function(){$(this).remove(),$("#iosActionsheet").remove(),$(document).off()})}if(t=$.extend({},{actions:[],title:""},t),0!=t.actions.length){var n='<div class="weui-actionsheet" id="iosActionsheet">\n <div class="weui-actionsheet__title">\n <p class="weui-actionsheet__title-text">'+t.title+'</p>\n </div>\n <div class="weui-actionsheet__menu">\n </div>\n <div class="weui-actionsheet__action">\n <div class="weui-actionsheet__cell" id="iosActionsheetCancel">取消</div>\n </div>\n </div>';a.innerHTML=n;var i=$(a).children();t.title||i.find(".weui-actionsheet__title").remove(),i.find(".weui-actionsheet__menu").empty().append(t.actions.map(function(t,n){var i='<div class="weui-actionsheet__cell actionsheet__menuitem'+n+'">'+t.text+"</div>";return $(document).on("touchstart",".actionsheet__menuitem"+n,function(){"function"==typeof t.onClick&&(t.onClick(t.value),e())}),$(i)[0]})),$("body").append(i[0]);var o=$('<div class="weui-mask" id="iosMask" style="display: none;"></div>');o.on("click",e),$("#iosActionsheetCancel").on("click",e),$("body").append(o[0]),$(i[0]).addClass("weui-actionsheet_toggle"),o.fadeIn("fast")}},loadingToast:function(t){t=$.extend({},{showStatus:"show",text:"数据加载中"},t);var e='<div id="loadingToast">\n <div class="weui-mask_transparent"></div>\n <div class="weui-toast">\n <i class="weui-loading weui-icon_toast"></i>\n <p class="weui-toast__content">'+t.text+"</p>\n </div>\n </div>",n=$(e);0==$("body").find("#loadingToast").length&&"show"==t.showStatus?($("body").append(n),n.fadeIn("fast")):($("body").find("#loadingToast").fadeOut("fast"),$("body").find("#loadingToast").remove())},http:function(t){if(t=$.extend({},{scene:"sit",funcNo:"",params:{},success:function(){},error:function(){}},t),!t.funcNo)return void alert("请定义功能号");var e=i("tools.js"),n=o(e,"env"),a=s[n];$.ajax(a.domain+a.path,{type:"POST",crossDomain:!0,contentType:"application/json",data:JSON.stringify({target:"http://itest.dfzq.com.cn/api/gateway?func="+t.funcNo+"&scene="+t.scene,header:{funcNo:t.funcNo,ver:a.ver,channel:a.channel,token:window.token,vtDeviceId:window.vtDeviceId},payload:t.params}),success:t.success,error:t.error})},checkLoginState:function(t){return!(t>=3e3&&t<=3019||3030===t||10026===t||5200===t||3111===t)||(fastman?(fastman.onLogin({success:function(t){window.token=t.token,window.vtDeviceId=t.vtDeviceId}}),!1):void 0)},oauth:function(t){t=$.extend({},{success:function(){},error:function(){}},t),fastman?fastman.oauth({success:function(t){window.token=t.token,window.vtDeviceId=t.vtDeviceId},fail:function(t){alert(t.info)}}):t.success()}})}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fastman=t():e.fastman=t()}(this,function(){return function(e){function t(n){if(a[n])return a[n].exports;var o=a[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=20)}({20:function(e,t,a){"use strict";$(function(){function e(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),r=e.getMilliseconds()<100?"0"+(e.getMilliseconds()<10?"00"+e.getMilliseconds():e.getMilliseconds()):e.getMilliseconds(),d=parseInt(1e3*Math.random());return d=d<100?d<10?"00"+d:"0"+d:d,t+a+n+o+i+s+r+d}function t(){fastman&&fastman.onNavigateBar({title:"微信支付",rightButtonTitle:"切换环境",onRightButtonPress:n,isShowBackButton:!0})}function a(e){window.selectedVal=e,$("#currentEnv").text(e),i()}function n(){$.actionSheet({actions:[{text:"sit",value:"sit",onClick:function(e){a(e)}},{text:"dev",value:"dev",onClick:function(e){a(e)}}]})}function o(t){$.loadingToast({showStatus:"show",text:"支付请求中"}),$.http({scene:window.selectedVal,funcNo:"IF096103",params:{requestNo:e(),productNo:t.productNo,specId:t.specId,quantity:1,paymentType:2,protTypeCode:t.protTypeCode,needSignFlag:!0,productName:t.productName},success:function(e,t,a){$.checkLoginState(e.payload.code)?($.loadingToast({showStatus:"hide"}),0==e.payload.code?wxPay({appId:e.payload.data.wechatPayWay.appId,partnerId:e.payload.data.wechatPayWay.partnerId,prePayId:e.payload.data.wechatPayWay.prePayId,noncestr:e.payload.data.wechatPayWay.noncestr,timestamp:e.payload.data.wechatPayWay.timestamp,package:e.payload.data.wechatPayWay.package,sign:e.payload.data.wechatPayWay.sign}):$.dialog({text:e.payload.info})):$.loadingToast({showStatus:"hide"})},error:function(e,t,a){$.dialog({text:"支付商品时出现错误"}),$.loadingToast({showStatus:"hide"})}})}function i(){$.http({scene:window.selectedVal,funcNo:"IF096102",success:function(e,t,a){$("#productListPanel").empty().append(e.payload.data.specList.map(function(t,a){var n='<div class="weui-form-preview">\n <div class="weui-form-preview__hd">\n <div class="weui-form-preview__item">\n <label class="weui-form-preview__label">付款金额</label>\n <em class="weui-form-preview__value">¥'+t.salePrice+'</em>\n </div>\n </div>\n <div class="weui-form-preview__bd">\n <div class="weui-form-preview__item">\n <label class="weui-form-preview__label">商品</label>\n <span class="weui-form-preview__value">微信测试支付商品</span>\n </div>\n </div>\n <div class="weui-form-preview__bd">\n <div class="weui-form-preview__item">\n <label class="weui-form-preview__label">规格参数</label>\n <span class="weui-form-preview__value">'+t.specName+'</span>\n </div>\n </div>\n <div class="weui-form-preview__ft">\n <a class="weui-form-preview__btn weui-form-preview__btn_warn wxpay'+t.specId+'" href="javascript:">立即支付</a>\n </div>\n </div>';return $(document).off("click",".wxpay"+t.specId),$(document).on("click",".wxpay"+t.specId,function(){o($(this).data(s))}),$(n).find(".wxpay"+t.specId).data(s,{productNo:e.payload.data.productNo,specId:t.specId,protTypeCode:e.payload.data.protTypeCode,productName:e.payload.data.productName}).end()}))},error:function(e,t,a){$.dialog({text:"查询商品时出现错误"})}})}var s="prodData";a("dev"),fastman.ready(function(){t(),fastman.onViewWillAppear(function(){i()}),$.oauth()})})}})});
|